diff --git a/sync-for-expenses/CodatSyncExpenses/Accounts.cs b/sync-for-expenses/CodatSyncExpenses/Accounts.cs index 8f82ff755..b655f5e1f 100755 --- a/sync-for-expenses/CodatSyncExpenses/Accounts.cs +++ b/sync-for-expenses/CodatSyncExpenses/Accounts.cs @@ -69,10 +69,10 @@ public class AccountsSDK: IAccountsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -117,6 +117,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -165,6 +166,7 @@ public async Task GetCreateModelAsync(Get ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/CodatSyncExpenses/CodatSyncExpenses.csproj b/sync-for-expenses/CodatSyncExpenses/CodatSyncExpenses.csproj index 46845f5ff..13ebd6d2b 100755 --- a/sync-for-expenses/CodatSyncExpenses/CodatSyncExpenses.csproj +++ b/sync-for-expenses/CodatSyncExpenses/CodatSyncExpenses.csproj @@ -2,12 +2,13 @@ true Codat.Sync.Expenses - 3.1.0 + 3.2.0 Codat net6.0 enable README.md true + 1591 diff --git a/sync-for-expenses/CodatSyncExpenses/CodatSyncExpensesSDK.cs b/sync-for-expenses/CodatSyncExpenses/CodatSyncExpensesSDK.cs index e3bdb568d..6b6fd98b6 100755 --- a/sync-for-expenses/CodatSyncExpenses/CodatSyncExpensesSDK.cs +++ b/sync-for-expenses/CodatSyncExpenses/CodatSyncExpensesSDK.cs @@ -121,10 +121,10 @@ public class CodatSyncExpensesSDK: ICodatSyncExpensesSDK }; private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/sync-for-expenses/CodatSyncExpenses/Companies.cs b/sync-for-expenses/CodatSyncExpenses/Companies.cs index 569de660a..5cdca516c 100755 --- a/sync-for-expenses/CodatSyncExpenses/Companies.cs +++ b/sync-for-expenses/CodatSyncExpenses/Companies.cs @@ -83,10 +83,10 @@ public class CompaniesSDK: ICompaniesSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -131,6 +131,7 @@ public async Task CreateAsync(CompanyRequestBody? request ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -179,6 +180,7 @@ public async Task DeleteAsync(DeleteCompanyRequest? reque ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 204)) { @@ -223,6 +225,7 @@ public async Task GetAsync(GetCompanyRequest? request = null ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -271,6 +274,7 @@ public async Task ListAsync(ListCompaniesRequest? request ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -324,6 +328,7 @@ public async Task UpdateAsync(UpdateCompanyRequest? reque ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/CodatSyncExpenses/Configuration.cs b/sync-for-expenses/CodatSyncExpenses/Configuration.cs index 241f282af..b378a5de0 100755 --- a/sync-for-expenses/CodatSyncExpenses/Configuration.cs +++ b/sync-for-expenses/CodatSyncExpenses/Configuration.cs @@ -60,10 +60,10 @@ public class ConfigurationSDK: IConfigurationSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -103,6 +103,7 @@ public async Task GetAsync(GetCompanyConfigurat ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -151,6 +152,7 @@ public async Task GetMappingOptionsAsync(GetMappingOp ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -204,6 +206,7 @@ public async Task SetAsync(SetCompanyConfigurat ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/CodatSyncExpenses/Connections.cs b/sync-for-expenses/CodatSyncExpenses/Connections.cs index edd3b1571..a2c9cad22 100755 --- a/sync-for-expenses/CodatSyncExpenses/Connections.cs +++ b/sync-for-expenses/CodatSyncExpenses/Connections.cs @@ -90,10 +90,10 @@ public class ConnectionsSDK: IConnectionsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -138,6 +138,7 @@ public async Task CreateAsync(CreateConnectionRequest? ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -186,6 +187,7 @@ public async Task CreatePartnerExpenseCo ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -234,6 +236,7 @@ public async Task DeleteAsync(DeleteConnectionRequest? ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { @@ -278,6 +281,7 @@ public async Task GetAsync(GetConnectionRequest? request ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -326,6 +330,7 @@ public async Task ListAsync(ListConnectionsRequest? req ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -379,6 +384,7 @@ public async Task UnlinkAsync(UnlinkConnectionRequest? ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/CodatSyncExpenses/Customers.cs b/sync-for-expenses/CodatSyncExpenses/Customers.cs index 954a6bf18..4779a2f83 100755 --- a/sync-for-expenses/CodatSyncExpenses/Customers.cs +++ b/sync-for-expenses/CodatSyncExpenses/Customers.cs @@ -99,10 +99,10 @@ public class CustomersSDK: ICustomersSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -147,6 +147,7 @@ public CustomersSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient sec ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -195,6 +196,7 @@ public async Task GetAsync(GetCustomerRequest? request = nu ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -243,6 +245,7 @@ public async Task ListAsync(ListCustomersRequest? request ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -296,6 +299,7 @@ public async Task ListAsync(ListCustomersRequest? request ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/CodatSyncExpenses/Expenses.cs b/sync-for-expenses/CodatSyncExpenses/Expenses.cs index 9cfed51f1..70dbebab0 100755 --- a/sync-for-expenses/CodatSyncExpenses/Expenses.cs +++ b/sync-for-expenses/CodatSyncExpenses/Expenses.cs @@ -60,10 +60,10 @@ public class ExpensesSDK: IExpensesSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -108,6 +108,7 @@ public async Task CreateAsync(CreateExpenseTra ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -161,6 +162,7 @@ public async Task UpdateAsync(UpdateExpenseTra ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 202)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -214,6 +216,7 @@ public async Task UploadAttachmentAsync(UploadE ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/CodatSyncExpenses/ManageData.cs b/sync-for-expenses/CodatSyncExpenses/ManageData.cs index af485beac..45e7d8dd3 100755 --- a/sync-for-expenses/CodatSyncExpenses/ManageData.cs +++ b/sync-for-expenses/CodatSyncExpenses/ManageData.cs @@ -85,10 +85,10 @@ public class ManageDataSDK: IManageDataSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -128,6 +128,7 @@ public async Task GetAsync(GetDataStatusRequest? request ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -176,6 +177,7 @@ public async Task GetPullOperationAsync(GetPullOperati ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -224,6 +226,7 @@ public async Task ListPullOperationsAsync(ListPullOp ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -272,6 +275,7 @@ public async Task RefreshAllDataTypesAsync(RefreshA ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 204)) { @@ -316,6 +320,7 @@ public async Task RefreshDataTypeAsync(RefreshDataTypeR ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/CodatSyncExpenses/Models/Shared/Account.cs b/sync-for-expenses/CodatSyncExpenses/Models/Shared/Account.cs index 94419b595..a08b05a37 100755 --- a/sync-for-expenses/CodatSyncExpenses/Models/Shared/Account.cs +++ b/sync-for-expenses/CodatSyncExpenses/Models/Shared/Account.cs @@ -138,6 +138,17 @@ public class Account [JsonProperty("status")] public AccountStatus? Status { get; set; } + /// + /// Supplemental data is additional data you can include in our standard data types.
+ /// + /// + ///
+ /// It is referenced as a configured dynamic key value pair that is unique to the accounting platform. Learn more about supplemental data. + ///
+ ///
+ [JsonProperty("supplementalData")] + public SupplementalData? SupplementalData { get; set; } + /// /// Type of account /// diff --git a/sync-for-expenses/CodatSyncExpenses/Models/Shared/Supplier.cs b/sync-for-expenses/CodatSyncExpenses/Models/Shared/Supplier.cs index 1e60256ac..d6f845767 100755 --- a/sync-for-expenses/CodatSyncExpenses/Models/Shared/Supplier.cs +++ b/sync-for-expenses/CodatSyncExpenses/Models/Shared/Supplier.cs @@ -92,7 +92,7 @@ public class Supplier /// /// [JsonProperty("supplementalData")] - public SupplierSupplementalData? SupplementalData { get; set; } + public SupplementalData? SupplementalData { get; set; } /// /// Name of the supplier as recorded in the accounting system, typically the company name. diff --git a/sync-for-expenses/CodatSyncExpenses/Models/Shared/SupplierSupplementalData.cs b/sync-for-expenses/CodatSyncExpenses/Models/Shared/SupplierSupplementalData.cs deleted file mode 100755 index ee4a2fbcd..000000000 --- a/sync-for-expenses/CodatSyncExpenses/Models/Shared/SupplierSupplementalData.cs +++ /dev/null @@ -1,30 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace CodatSyncExpenses.Models.Shared -{ - using Newtonsoft.Json; - using System.Collections.Generic; - - /// - /// Supplemental data is additional data you can include in our standard data types.
- /// - /// - ///
- /// It is referenced as a configured dynamic key value pair that is unique to the accounting platform. Learn more about supplemental data. - ///
- ///
- public class SupplierSupplementalData - { - - [JsonProperty("content")] - public Dictionary>? Content { get; set; } - } -} \ No newline at end of file diff --git a/sync-for-expenses/CodatSyncExpenses/PushOperations.cs b/sync-for-expenses/CodatSyncExpenses/PushOperations.cs index 7bc548976..e1ac1eb54 100755 --- a/sync-for-expenses/CodatSyncExpenses/PushOperations.cs +++ b/sync-for-expenses/CodatSyncExpenses/PushOperations.cs @@ -51,10 +51,10 @@ public class PushOperationsSDK: IPushOperationsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -94,6 +94,7 @@ public async Task GetAsync(GetPushOperationRequest? re ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -142,6 +143,7 @@ public async Task ListAsync(ListPushOperationsReques ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/CodatSyncExpenses/Suppliers.cs b/sync-for-expenses/CodatSyncExpenses/Suppliers.cs index 722a08f5c..b15a8cf37 100755 --- a/sync-for-expenses/CodatSyncExpenses/Suppliers.cs +++ b/sync-for-expenses/CodatSyncExpenses/Suppliers.cs @@ -99,10 +99,10 @@ public class SuppliersSDK: ISuppliersSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -147,6 +147,7 @@ public SuppliersSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient sec ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -195,6 +196,7 @@ public async Task GetAsync(GetSupplierRequest? request = nu ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -243,6 +245,7 @@ public async Task ListAsync(ListSuppliersRequest? request ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -296,6 +299,7 @@ public async Task ListAsync(ListSuppliersRequest? request ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/CodatSyncExpenses/Sync.cs b/sync-for-expenses/CodatSyncExpenses/Sync.cs index 714c2ff46..810d732a7 100755 --- a/sync-for-expenses/CodatSyncExpenses/Sync.cs +++ b/sync-for-expenses/CodatSyncExpenses/Sync.cs @@ -79,10 +79,10 @@ public class SyncSDK: ISyncSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -122,6 +122,7 @@ public async Task GetAsync(GetSyncByIdRequest? request = nu ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -170,6 +171,7 @@ public async Task GetLastSuccessfulSyncAsync(GetL ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -218,6 +220,7 @@ public async Task GetLatestSyncAsync(GetLatestSyncRequest ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -271,6 +274,7 @@ public async Task InitiateSyncAsync(InitiateSyncRequest? r ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 202)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -319,6 +323,7 @@ public async Task ListAsync(ListSyncsRequest? request = null) ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/CodatSyncExpenses/TransactionStatus.cs b/sync-for-expenses/CodatSyncExpenses/TransactionStatus.cs index 91fc152f7..609ac5928 100755 --- a/sync-for-expenses/CodatSyncExpenses/TransactionStatus.cs +++ b/sync-for-expenses/CodatSyncExpenses/TransactionStatus.cs @@ -51,10 +51,10 @@ public class TransactionStatusSDK: ITransactionStatusSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.146.1"; + private const string _sdkVersion = "3.2.0"; + private const string _sdkGenVersion = "2.159.2"; private const string _openapiDocVersion = "prealpha"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.146.1 prealpha Codat.Sync.Expenses"; + private const string _userAgent = "speakeasy-sdk/csharp 3.2.0 2.159.2 prealpha Codat.Sync.Expenses"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -94,6 +94,7 @@ public async Task GetAsync(GetSyncTransactionRequest ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) @@ -142,6 +143,7 @@ public async Task ListAsync(ListSyncTransactionsRe ContentType = contentType, RawResponse = httpResponse }; + if((response.StatusCode == 200)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) diff --git a/sync-for-expenses/README.md b/sync-for-expenses/README.md index b0800df43..14e848c09 100644 --- a/sync-for-expenses/README.md +++ b/sync-for-expenses/README.md @@ -35,29 +35,30 @@ var res = await sdk.Accounts.CreateAsync(new CreateAccountRequest() { FullyQualifiedCategory = "Asset.Current", FullyQualifiedName = "Cash On Hand", Id = "1b6266d1-1e44-46c5-8eb5-a8f98e03124e", - IsBankAccount = false, - Metadata = new AccountMetadata() { - IsDeleted = false, - }, + Metadata = new AccountMetadata() {}, ModifiedDate = "2022-10-23T00:00:00.000Z", Name = "Accounts Receivable", NominalCode = "610", SourceModifiedDate = "2022-10-23T00:00:00.000Z", Status = CodatSyncExpenses.Models.Shared.AccountStatus.Active, + SupplementalData = new SupplementalData() { + Content = new Dictionary>() { + { "Money", new Dictionary() { + { "blue", "shred" }, + } }, + }, + }, Type = CodatSyncExpenses.Models.Shared.AccountType.Asset, ValidDatatypeLinks = new List() { new AccountValidDataTypeLinks() { Links = new List() { - "Money", + "abnormally", }, - Property = "Cambridgeshire grey technology", }, }, }, - AllowSyncOnPushComplete = false, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 86, }); // handle response diff --git a/sync-for-expenses/RELEASES.md b/sync-for-expenses/RELEASES.md index dbc74500d..c9c788f09 100644 --- a/sync-for-expenses/RELEASES.md +++ b/sync-for-expenses/RELEASES.md @@ -100,4 +100,14 @@ Based on: ### Generated - [csharp v3.1.0] sync-for-expenses ### Releases -- [NuGet v3.1.0] https://www.nuget.org/packages/Codat.Sync.Expenses/3.1.0 - sync-for-expenses \ No newline at end of file +- [NuGet v3.1.0] https://www.nuget.org/packages/Codat.Sync.Expenses/3.1.0 - sync-for-expenses + +## 2023-10-17 13:27:15 +### Changes +Based on: +- OpenAPI Doc prealpha https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml +- Speakeasy CLI 1.100.2 (2.159.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v3.2.0] sync-for-expenses +### Releases +- [NuGet v3.2.0] https://www.nuget.org/packages/Codat.Sync.Expenses/3.2.0 - sync-for-expenses \ No newline at end of file diff --git a/sync-for-expenses/USAGE.md b/sync-for-expenses/USAGE.md index 5a6184baf..09cbf39bc 100755 --- a/sync-for-expenses/USAGE.md +++ b/sync-for-expenses/USAGE.md @@ -20,29 +20,30 @@ var res = await sdk.Accounts.CreateAsync(new CreateAccountRequest() { FullyQualifiedCategory = "Asset.Current", FullyQualifiedName = "Cash On Hand", Id = "1b6266d1-1e44-46c5-8eb5-a8f98e03124e", - IsBankAccount = false, - Metadata = new AccountMetadata() { - IsDeleted = false, - }, + Metadata = new AccountMetadata() {}, ModifiedDate = "2022-10-23T00:00:00.000Z", Name = "Accounts Receivable", NominalCode = "610", SourceModifiedDate = "2022-10-23T00:00:00.000Z", Status = CodatSyncExpenses.Models.Shared.AccountStatus.Active, + SupplementalData = new SupplementalData() { + Content = new Dictionary>() { + { "Money", new Dictionary() { + { "blue", "shred" }, + } }, + }, + }, Type = CodatSyncExpenses.Models.Shared.AccountType.Asset, ValidDatatypeLinks = new List() { new AccountValidDataTypeLinks() { Links = new List() { - "Money", + "abnormally", }, - Property = "Cambridgeshire grey technology", }, }, }, - AllowSyncOnPushComplete = false, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 86, }); // handle response diff --git a/sync-for-expenses/docs/models/shared/Account.md b/sync-for-expenses/docs/models/shared/Account.md index 4f6c22c04..643645e1d 100755 --- a/sync-for-expenses/docs/models/shared/Account.md +++ b/sync-for-expenses/docs/models/shared/Account.md @@ -47,5 +47,6 @@ To determine the list of allowed categories for a specific integration, you can: | `NominalCode` | *string* | :heavy_minus_sign: | Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. | 610 | | `SourceModifiedDate` | *string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `Status` | [AccountStatus](../../models/shared/AccountStatus.md) | :heavy_minus_sign: | Status of the account | Active | +| `SupplementalData` | [SupplementalData](../../models/shared/SupplementalData.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `Type` | [AccountType](../../models/shared/AccountType.md) | :heavy_minus_sign: | Type of account | Asset | | `ValidDatatypeLinks` | List<[AccountValidDataTypeLinks](../../models/shared/AccountValidDataTypeLinks.md)> | :heavy_minus_sign: | The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/sync-for-expenses-api#/schemas/ValidDataTypeLinks). | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/AccountMappingInfo.md b/sync-for-expenses/docs/models/shared/AccountMappingInfo.md index b915216ac..f7bc60362 100755 --- a/sync-for-expenses/docs/models/shared/AccountMappingInfo.md +++ b/sync-for-expenses/docs/models/shared/AccountMappingInfo.md @@ -9,4 +9,4 @@ | `Currency` | *string* | :heavy_minus_sign: | Currency of the account. | GBP | | `Id` | *string* | :heavy_minus_sign: | Unique identifier of account. | 6 | | `Name` | *string* | :heavy_minus_sign: | Name of the account as it appears in the companies accounting software. | Purchases | -| `ValidTransactionTypes` | List<[AccountMappingInfoValidTransactionTypes](../../models/shared/AccountMappingInfoValidTransactionTypes.md)> | :heavy_minus_sign: | Supported transaction types for the account. | | \ No newline at end of file +| `ValidTransactionTypes` | List<[AccountMappingInfoValidTransactionTypes](../../models/shared/AccountMappingInfoValidTransactionTypes.md)> | :heavy_minus_sign: | Supported transaction types for the account. | Payment | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/Supplier.md b/sync-for-expenses/docs/models/shared/Supplier.md index b79de5caa..60394b6fd 100755 --- a/sync-for-expenses/docs/models/shared/Supplier.md +++ b/sync-for-expenses/docs/models/shared/Supplier.md @@ -22,6 +22,6 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers | `RegistrationNumber` | *string* | :heavy_minus_sign: | Company number of the supplier. In the UK, this is typically the company registration number issued by Companies House. | | | `SourceModifiedDate` | *string* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `Status` | [SupplierStatus](../../models/shared/SupplierStatus.md) | :heavy_check_mark: | Status of the supplier. | | -| `SupplementalData` | [SupplierSupplementalData](../../models/shared/SupplierSupplementalData.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | +| `SupplementalData` | [SupplementalData](../../models/shared/SupplementalData.md) | :heavy_minus_sign: | Supplemental data is additional data you can include in our standard data types.

It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. | | | `SupplierName` | *string* | :heavy_minus_sign: | Name of the supplier as recorded in the accounting system, typically the company name. | | | `TaxNumber` | *string* | :heavy_minus_sign: | Supplier's company tax number. | | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/SupplierSupplementalData.md b/sync-for-expenses/docs/models/shared/SupplierSupplementalData.md deleted file mode 100755 index a0266f39a..000000000 --- a/sync-for-expenses/docs/models/shared/SupplierSupplementalData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SupplierSupplementalData - -Supplemental data is additional data you can include in our standard data types. - -It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| `Content` | Dictionary> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-expenses/docs/models/shared/TaxRateMappingInfo.md b/sync-for-expenses/docs/models/shared/TaxRateMappingInfo.md index f66217eef..79323aebb 100755 --- a/sync-for-expenses/docs/models/shared/TaxRateMappingInfo.md +++ b/sync-for-expenses/docs/models/shared/TaxRateMappingInfo.md @@ -10,4 +10,4 @@ | `Id` | *string* | :heavy_minus_sign: | Unique identifier of tax rate. | 59_Bills | | `Name` | *string* | :heavy_minus_sign: | Name of the tax rate in the accounting platform. | UK Standard Rate (Bills) Bills | | `TotalTaxRate` | *decimal* | :heavy_minus_sign: | Total (not compounded) sum of the components of a tax rate. | 20 | -| `ValidTransactionTypes` | List<[TaxRateMappingInfoValidTransactionTypes](../../models/shared/TaxRateMappingInfoValidTransactionTypes.md)> | :heavy_minus_sign: | Supported transaction types for the account. | | \ No newline at end of file +| `ValidTransactionTypes` | List<[TaxRateMappingInfoValidTransactionTypes](../../models/shared/TaxRateMappingInfoValidTransactionTypes.md)> | :heavy_minus_sign: | Supported transaction types for the account. | Payment | \ No newline at end of file diff --git a/sync-for-expenses/docs/sdks/accounts/README.md b/sync-for-expenses/docs/sdks/accounts/README.md index dee7abb62..b125d7f44 100755 --- a/sync-for-expenses/docs/sdks/accounts/README.md +++ b/sync-for-expenses/docs/sdks/accounts/README.md @@ -44,29 +44,30 @@ var res = await sdk.Accounts.CreateAsync(new CreateAccountRequest() { FullyQualifiedCategory = "Asset.Current", FullyQualifiedName = "Cash On Hand", Id = "1b6266d1-1e44-46c5-8eb5-a8f98e03124e", - IsBankAccount = false, - Metadata = new AccountMetadata() { - IsDeleted = false, - }, + Metadata = new AccountMetadata() {}, ModifiedDate = "2022-10-23T00:00:00.000Z", Name = "Accounts Receivable", NominalCode = "610", SourceModifiedDate = "2022-10-23T00:00:00.000Z", Status = CodatSyncExpenses.Models.Shared.AccountStatus.Active, + SupplementalData = new SupplementalData() { + Content = new Dictionary>() { + { "Money", new Dictionary() { + { "blue", "shred" }, + } }, + }, + }, Type = CodatSyncExpenses.Models.Shared.AccountType.Asset, ValidDatatypeLinks = new List() { new AccountValidDataTypeLinks() { Links = new List() { - "Money", + "abnormally", }, - Property = "Cambridgeshire grey technology", }, }, }, - AllowSyncOnPushComplete = false, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 86, }); // handle response diff --git a/sync-for-expenses/docs/sdks/companies/README.md b/sync-for-expenses/docs/sdks/companies/README.md index 309951a35..cb3b2291d 100755 --- a/sync-for-expenses/docs/sdks/companies/README.md +++ b/sync-for-expenses/docs/sdks/companies/README.md @@ -147,7 +147,6 @@ var res = await sdk.Companies.ListAsync(new ListCompaniesRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "Northeast Metal Canada", }); // handle response diff --git a/sync-for-expenses/docs/sdks/configuration/README.md b/sync-for-expenses/docs/sdks/configuration/README.md index 40c2ea43e..7729e5e45 100755 --- a/sync-for-expenses/docs/sdks/configuration/README.md +++ b/sync-for-expenses/docs/sdks/configuration/README.md @@ -105,12 +105,8 @@ var res = await sdk.Configuration.SetAsync(new SetCompanyConfigurationRequest() BankAccount = new BankAccount() { Id = "32", }, - Customer = new CustomerDetails() { - Id = "", - }, - Supplier = new SupplierDetails() { - Id = "", - }, + Customer = new CustomerDetails() {}, + Supplier = new SupplierDetails() {}, }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", }); diff --git a/sync-for-expenses/docs/sdks/connections/README.md b/sync-for-expenses/docs/sdks/connections/README.md index 647374c10..10a2a6e8e 100755 --- a/sync-for-expenses/docs/sdks/connections/README.md +++ b/sync-for-expenses/docs/sdks/connections/README.md @@ -188,7 +188,6 @@ var res = await sdk.Connections.ListAsync(new ListConnectionsRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "Northeast Metal Canada", }); // handle response @@ -224,9 +223,7 @@ var sdk = new CodatSyncExpensesSDK( ); var res = await sdk.Connections.UnlinkAsync(new UnlinkConnectionRequest() { - RequestBody = new UnlinkConnectionUpdateConnection() { - Status = CodatSyncExpenses.Models.Shared.DataConnectionStatus.PendingAuth, - }, + RequestBody = new UnlinkConnectionUpdateConnection() {}, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", }); diff --git a/sync-for-expenses/docs/sdks/customers/README.md b/sync-for-expenses/docs/sdks/customers/README.md index 6f1632247..6c3740615 100755 --- a/sync-for-expenses/docs/sdks/customers/README.md +++ b/sync-for-expenses/docs/sdks/customers/README.md @@ -42,64 +42,39 @@ var res = await sdk.Customers.CreateAsync(new CreateCustomerRequest() { Customer = new Customer() { Addresses = new List() { new Items() { - City = "Jenafurt", - Country = "Sweden", - Line1 = "innovative blue", - Line2 = "grey technology East", - PostalCode = "30778", - Region = "quantify Polestar mobile", Type = CodatSyncExpenses.Models.Shared.AccountingAddressType.Billing, }, }, - ContactName = "Durham after", Contacts = new List() { new Contact() { Address = new Items() { - City = "Darenberg", - Country = "Cote d'Ivoire", - Line1 = "Buckinghamshire functionalities Grocery", - Line2 = "Metal", - PostalCode = "61380", - Region = "Interactions Senior Mouse", - Type = CodatSyncExpenses.Models.Shared.AccountingAddressType.Unknown, + Type = CodatSyncExpenses.Models.Shared.AccountingAddressType.Billing, }, - Email = "Judd27@hotmail.com", ModifiedDate = "2022-10-23T00:00:00.000Z", - Name = "transmit likewise", Phone = new List() { new ContactPhone() { - Number = "(877) 492-8687", - Type = CodatSyncExpenses.Models.Shared.PhoneNumberType.Fax, + Number = "01224 658 999", + Type = CodatSyncExpenses.Models.Shared.PhoneNumberType.Mobile, }, }, - Status = CodatSyncExpenses.Models.Shared.CustomerStatus.Active, + Status = CodatSyncExpenses.Models.Shared.CustomerStatus.Unknown, }, }, - CustomerName = "Rubber silver Indiana", - DefaultCurrency = "EUR", - EmailAddress = "Thea_Ritchie76@hotmail.com", - Id = "", - Metadata = new Metadata() { - IsDeleted = false, - }, + DefaultCurrency = "GBP", + Metadata = new Metadata() {}, ModifiedDate = "2022-10-23T00:00:00.000Z", - Phone = "948.595.2034", - RegistrationNumber = "digital", SourceModifiedDate = "2022-10-23T00:00:00.000Z", - Status = CodatSyncExpenses.Models.Shared.CustomerStatus.Unknown, + Status = CodatSyncExpenses.Models.Shared.CustomerStatus.Archived, SupplementalData = new SupplementalData() { Content = new Dictionary>() { - { "recusandae", new Dictionary() { - { "maiores", "Mongolia" }, + { "grey", new Dictionary() { + { "technology", "East" }, } }, }, }, - TaxNumber = "discrete", }, - AllowSyncOnPushComplete = false, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 522311, }); // handle response @@ -188,7 +163,6 @@ var res = await sdk.Customers.ListAsync(new ListCustomersRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "Northeast Metal Canada", }); // handle response @@ -236,66 +210,40 @@ var res = await sdk.Customers.UpdateAsync(new UpdateCustomerRequest() { Customer = new Customer() { Addresses = new List() { new Items() { - City = "Ann Arbor", - Country = "Montserrat", - Line1 = "Reactive", - Line2 = "Metal cheater Islands", - PostalCode = "43372", - Region = "Carolina syndicate", - Type = CodatSyncExpenses.Models.Shared.AccountingAddressType.Billing, + Type = CodatSyncExpenses.Models.Shared.AccountingAddressType.Delivery, }, }, - ContactName = "East", Contacts = new List() { new Contact() { Address = new Items() { - City = "Olenfurt", - Country = "Paraguay", - Line1 = "Home users Sharable", - Line2 = "Lev Wooden", - PostalCode = "36848", - Region = "brightly", - Type = CodatSyncExpenses.Models.Shared.AccountingAddressType.Delivery, + Type = CodatSyncExpenses.Models.Shared.AccountingAddressType.Unknown, }, - Email = "Josie49@yahoo.com", ModifiedDate = "2022-10-23T00:00:00.000Z", - Name = "possimus navigating Diesel", Phone = new List() { new ContactPhone() { Number = "+44 25691 154789", - Type = CodatSyncExpenses.Models.Shared.PhoneNumberType.Primary, + Type = CodatSyncExpenses.Models.Shared.PhoneNumberType.Landline, }, }, - Status = CodatSyncExpenses.Models.Shared.CustomerStatus.Unknown, + Status = CodatSyncExpenses.Models.Shared.CustomerStatus.Archived, }, }, - CustomerName = "Reactive Global Northeast", - DefaultCurrency = "USD", - EmailAddress = "Abe.Bogan@hotmail.com", - Id = "", - Metadata = new Metadata() { - IsDeleted = false, - }, + DefaultCurrency = "EUR", + Metadata = new Metadata() {}, ModifiedDate = "2022-10-23T00:00:00.000Z", - Phone = "(883) 732-4217 x6499", - RegistrationNumber = "redundant ew", SourceModifiedDate = "2022-10-23T00:00:00.000Z", - Status = CodatSyncExpenses.Models.Shared.CustomerStatus.Active, + Status = CodatSyncExpenses.Models.Shared.CustomerStatus.Archived, SupplementalData = new SupplementalData() { Content = new Dictionary>() { - { "asperiores", new Dictionary() { - { "quibusdam", "Omnigender" }, + { "redundant", new Dictionary() { + { "cheater", "Islands" }, } }, }, }, - TaxNumber = "Volkswagen Specialist Bacon", }, - AllowSyncOnPushComplete = false, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - CustomerId = "Copper port East", - ForceUpdate = false, - TimeoutInMinutes = 373959, + CustomerId = "withdrawal extend", }); // handle response diff --git a/sync-for-expenses/docs/sdks/expenses/README.md b/sync-for-expenses/docs/sdks/expenses/README.md index 4c824fbad..7d8728b7c 100755 --- a/sync-for-expenses/docs/sdks/expenses/README.md +++ b/sync-for-expenses/docs/sdks/expenses/README.md @@ -40,7 +40,6 @@ var res = await sdk.Expenses.CreateAsync(new CreateExpenseTransactionRequest() { Type = CodatSyncExpenses.Models.Shared.ContactRefType.Supplier, }, Currency = "GBP", - CurrencyRate = 4865.89M, Id = "4d7c6929-7770-412b-91bb-44d3bc71d111", IssueDate = "2022-10-23T00:00:00.000Z", Lines = new List() { @@ -111,7 +110,6 @@ var res = await sdk.Expenses.UpdateAsync(new UpdateExpenseTransactionRequest() { Type = CodatSyncExpenses.Models.Shared.ContactRefType.Supplier, }, Currency = "GBP", - CurrencyRate = 8574.78M, IssueDate = "2022-06-28T00:00:00.000Z", Lines = new List() { new ExpenseTransactionLine() { @@ -132,7 +130,7 @@ var res = await sdk.Expenses.UpdateAsync(new UpdateExpenseTransactionRequest() { }, MerchantName = "Amazon UK", Notes = "APPLE.COM/BILL - 09001077498 - Card Ending: 4590", - Type = "New", + Type = "Van", }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", TransactionId = "336694d8-2dca-4cb5-a28d-3ccb83e55eee", diff --git a/sync-for-expenses/docs/sdks/managedata/README.md b/sync-for-expenses/docs/sdks/managedata/README.md index 385393ca7..71ca93574 100755 --- a/sync-for-expenses/docs/sdks/managedata/README.md +++ b/sync-for-expenses/docs/sdks/managedata/README.md @@ -108,7 +108,6 @@ var res = await sdk.ManageData.ListPullOperationsAsync(new ListPullOperationsReq OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "Dock Elegant Buckinghamshire", }); // handle response @@ -187,7 +186,6 @@ var sdk = new CodatSyncExpensesSDK( var res = await sdk.ManageData.RefreshDataTypeAsync(new RefreshDataTypeRequest() { CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", - ConnectionId = "d6258093-be98-4f60-90e1-ca6bcd49fb9a", DataType = CodatSyncExpenses.Models.Shared.DataType.Invoices, }); diff --git a/sync-for-expenses/docs/sdks/pushoperations/README.md b/sync-for-expenses/docs/sdks/pushoperations/README.md index c1f5c3969..ebc751a59 100755 --- a/sync-for-expenses/docs/sdks/pushoperations/README.md +++ b/sync-for-expenses/docs/sdks/pushoperations/README.md @@ -69,7 +69,6 @@ var res = await sdk.PushOperations.ListAsync(new ListPushOperationsRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "Northeast Metal Canada", }); // handle response diff --git a/sync-for-expenses/docs/sdks/suppliers/README.md b/sync-for-expenses/docs/sdks/suppliers/README.md index 5427df885..9f2d9138c 100755 --- a/sync-for-expenses/docs/sdks/suppliers/README.md +++ b/sync-for-expenses/docs/sdks/suppliers/README.md @@ -42,41 +42,24 @@ var res = await sdk.Suppliers.CreateAsync(new CreateSupplierRequest() { Supplier = new Supplier() { Addresses = new List() { new SupplierAccountingAddress() { - City = "Jenafurt", - Country = "Sweden", - Line1 = "innovative blue", - Line2 = "grey technology East", - PostalCode = "30778", - Region = "quantify Polestar mobile", Type = CodatSyncExpenses.Models.Shared.AccountingAddressType.Billing, }, }, - ContactName = "Durham after", - DefaultCurrency = "Intelligent Fish", - EmailAddress = "Ricardo.Hand41@gmail.com", - Id = "", - Metadata = new Metadata() { - IsDeleted = false, - }, + Metadata = new Metadata() {}, ModifiedDate = "2022-10-23T00:00:00.000Z", Phone = "(877) 492-8687", - RegistrationNumber = "Profound", SourceModifiedDate = "2022-10-23T00:00:00.000Z", Status = CodatSyncExpenses.Models.Shared.SupplierStatus.Active, - SupplementalData = new SupplierSupplementalData() { + SupplementalData = new SupplementalData() { Content = new Dictionary>() { - { "pariatur", new Dictionary() { - { "accusantium", "Minivan" }, + { "innovative", new Dictionary() { + { "blue", "shred" }, } }, }, }, - SupplierName = "Senior Mouse West", - TaxNumber = "Towels likewise", }, - AllowSyncOnPushComplete = false, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 452224, }); // handle response @@ -165,7 +148,6 @@ var res = await sdk.Suppliers.ListAsync(new ListSuppliersRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "Northeast Metal Canada", }); // handle response @@ -213,43 +195,25 @@ var res = await sdk.Suppliers.UpdateAsync(new UpdateSupplierRequest() { Supplier = new Supplier() { Addresses = new List() { new SupplierAccountingAddress() { - City = "Ann Arbor", - Country = "Montserrat", - Line1 = "Reactive", - Line2 = "Metal cheater Islands", - PostalCode = "43372", - Region = "Carolina syndicate", - Type = CodatSyncExpenses.Models.Shared.AccountingAddressType.Billing, + Type = CodatSyncExpenses.Models.Shared.AccountingAddressType.Delivery, }, }, - ContactName = "East", - DefaultCurrency = "Bicycle guestbook", - EmailAddress = "Alexys.Hayes81@yahoo.com", - Id = "", - Metadata = new Metadata() { - IsDeleted = false, - }, + Metadata = new Metadata() {}, ModifiedDate = "2022-10-23T00:00:00.000Z", Phone = "(877) 492-8687", - RegistrationNumber = "indexing", SourceModifiedDate = "2022-10-23T00:00:00.000Z", - Status = CodatSyncExpenses.Models.Shared.SupplierStatus.Unknown, - SupplementalData = new SupplierSupplementalData() { + Status = CodatSyncExpenses.Models.Shared.SupplierStatus.Active, + SupplementalData = new SupplementalData() { Content = new Dictionary>() { - { "consectetur", new Dictionary() { - { "ullam", "Jaguar" }, + { "male", new Dictionary() { + { "Metal", "cheater" }, } }, }, }, - SupplierName = "visionary Buckinghamshire frictionless", - TaxNumber = "parse possimus", }, - AllowSyncOnPushComplete = false, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - ForceUpdate = false, - SupplierId = "7110701885", - TimeoutInMinutes = 427089, + SupplierId = "13d946f0-c5d5-42bc-b092-97ece17923ab", }); // handle response diff --git a/sync-for-expenses/files.gen b/sync-for-expenses/files.gen index d48ed2349..64ec19e82 100755 --- a/sync-for-expenses/files.gen +++ b/sync-for-expenses/files.gen @@ -118,6 +118,7 @@ CodatSyncExpenses/Models/Shared/AccountMetadata.cs CodatSyncExpenses/Models/Shared/AccountValidDataTypeLinks.cs CodatSyncExpenses/Models/Shared/Account.cs CodatSyncExpenses/Models/Shared/AccountType.cs +CodatSyncExpenses/Models/Shared/SupplementalData.cs CodatSyncExpenses/Models/Shared/AccountStatus.cs CodatSyncExpenses/Models/Shared/PushOperationChange.cs CodatSyncExpenses/Models/Shared/PushChangeType.cs @@ -151,7 +152,6 @@ CodatSyncExpenses/Models/Shared/AccountMappingInfo.cs CodatSyncExpenses/Models/Shared/Connections.cs CodatSyncExpenses/Models/Shared/CreateCustomerResponse.cs CodatSyncExpenses/Models/Shared/Customer.cs -CodatSyncExpenses/Models/Shared/SupplementalData.cs CodatSyncExpenses/Models/Shared/CustomerStatus.cs CodatSyncExpenses/Models/Shared/Metadata.cs CodatSyncExpenses/Models/Shared/ContactPhone.cs @@ -183,7 +183,6 @@ CodatSyncExpenses/Models/Shared/PushOperation.cs CodatSyncExpenses/Models/Shared/PushOperations.cs CodatSyncExpenses/Models/Shared/CreateSupplierResponse.cs CodatSyncExpenses/Models/Shared/SupplierAccountingAddress.cs -CodatSyncExpenses/Models/Shared/SupplierSupplementalData.cs CodatSyncExpenses/Models/Shared/Supplier.cs CodatSyncExpenses/Models/Shared/SupplierStatus.cs CodatSyncExpenses/Models/Shared/Suppliers.cs @@ -306,6 +305,7 @@ docs/models/shared/AccountMetadata.md docs/models/shared/AccountValidDataTypeLinks.md docs/models/shared/Account.md docs/models/shared/AccountType.md +docs/models/shared/SupplementalData.md docs/models/shared/AccountStatus.md docs/models/shared/PushOperationChange.md docs/models/shared/PushChangeType.md @@ -339,7 +339,6 @@ docs/models/shared/AccountMappingInfo.md docs/models/shared/Connections.md docs/models/shared/CreateCustomerResponse.md docs/models/shared/Customer.md -docs/models/shared/SupplementalData.md docs/models/shared/CustomerStatus.md docs/models/shared/Metadata.md docs/models/shared/ContactPhone.md @@ -371,7 +370,6 @@ docs/models/shared/PushOperation.md docs/models/shared/PushOperations.md docs/models/shared/CreateSupplierResponse.md docs/models/shared/SupplierAccountingAddress.md -docs/models/shared/SupplierSupplementalData.md docs/models/shared/Supplier.md docs/models/shared/SupplierStatus.md docs/models/shared/Suppliers.md diff --git a/sync-for-expenses/gen.yaml b/sync-for-expenses/gen.yaml index 2db583e92..19fa177f9 100644 --- a/sync-for-expenses/gen.yaml +++ b/sync-for-expenses/gen.yaml @@ -1,25 +1,25 @@ configVersion: 1.0.0 management: - docChecksum: 908430e8ef88caa5eeda9fb79d2ec363 + docChecksum: cd39427322ae650607fb0524405a4f11 docVersion: prealpha - speakeasyVersion: 1.93.3 - generationVersion: 2.146.1 + speakeasyVersion: 1.100.2 + generationVersion: 2.159.2 generation: sdkClassName: Codat.Sync.Expenses singleTagPerOp: false telemetryEnabled: true features: csharp: - core: 2.89.1 + core: 2.89.4 deprecations: 2.81.1 examples: 2.81.2 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 nameOverrides: 2.81.1 csharp: - version: 3.1.0 + version: 3.2.0 author: Codat - dotnetVersion: net6.0 description: Push expenses to accounting platforms. + dotnetVersion: net6.0 maxMethodParams: 0 packageName: Codat.Sync.Expenses