diff --git a/sync-for-payables/CodatSyncPayables/Accounts.cs b/sync-for-payables/CodatSyncPayables/Accounts.cs index d7a00494b..4df517718 100755 --- a/sync-for-payables/CodatSyncPayables/Accounts.cs +++ b/sync-for-payables/CodatSyncPayables/Accounts.cs @@ -95,8 +95,8 @@ public class AccountsSDK: IAccountsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/BillCreditNotes.cs b/sync-for-payables/CodatSyncPayables/BillCreditNotes.cs index 0c85649be..968e5dc44 100755 --- a/sync-for-payables/CodatSyncPayables/BillCreditNotes.cs +++ b/sync-for-payables/CodatSyncPayables/BillCreditNotes.cs @@ -114,8 +114,8 @@ public class BillCreditNotesSDK: IBillCreditNotesSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/BillPayments.cs b/sync-for-payables/CodatSyncPayables/BillPayments.cs index eedb24f6b..56305de3e 100755 --- a/sync-for-payables/CodatSyncPayables/BillPayments.cs +++ b/sync-for-payables/CodatSyncPayables/BillPayments.cs @@ -127,8 +127,8 @@ public class BillPaymentsSDK: IBillPaymentsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/Bills.cs b/sync-for-payables/CodatSyncPayables/Bills.cs index 8e1c28d60..7df4db20f 100755 --- a/sync-for-payables/CodatSyncPayables/Bills.cs +++ b/sync-for-payables/CodatSyncPayables/Bills.cs @@ -79,6 +79,35 @@ public interface IBillsSDK /// Task DeleteAsync(DeleteBillRequest? request = null); + /// + /// Delete bill attachment + /// + /// + /// The *Delete bill attachment* endpoint allows you to delete a specified bill attachment from an accounting platform.
+ ///
+ /// Bills are invoices
+ /// that represent the SMB's financial obligations to their supplier for a
+ /// purchase of goods or services.
+ ///
+ /// ### Process
+ ///
+ /// 1. Pass the `{billId}` and `{attachmentId}` to the *Delete bill attachment* endpoint and store the `pushOperationKey` returned.
+ ///
+ /// 2. Check the status of the delete operation by checking the status of push operation either via
+ ///
+ /// 1. Push operation webhook (advised),
+ ///
+ /// 2. Push operation status endpoint. A `Success` status indicates that the bill attachment object was deleted from the accounting platform.
+ ///
+ /// 3. (Optional) Check that the bill attachment was deleted from the accounting platform.
+ ///
+ /// >**Supported Integrations**
+ /// >
+ /// >This functionality is currently only supported for our QuickBooks Online integration. + ///
+ ///
+ Task DeleteAttachmentAsync(DeleteBillAttachmentRequest? request = null); + /// /// Download bill attachment /// @@ -210,8 +239,8 @@ public class BillsSDK: IBillsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; @@ -327,6 +356,54 @@ public async Task DeleteAsync(DeleteBillRequest? request = n } + public async Task DeleteAttachmentAsync(DeleteBillAttachmentRequest? request = null) + { + string baseUrl = _serverUrl; + if (baseUrl.EndsWith("/")) + { + baseUrl = baseUrl.Substring(0, baseUrl.Length - 1); + } + var urlString = URLBuilder.Build(baseUrl, "/companies/{companyId}/connections/{connectionId}/push/bills/{billId}/attachments/{attachmentId}", request); + + + var httpRequest = new HttpRequestMessage(HttpMethod.Delete, urlString); + httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}"); + + + var client = _securityClient; + + var httpResponse = await client.SendAsync(httpRequest); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + + var response = new DeleteBillAttachmentResponse + { + StatusCode = (int)httpResponse.StatusCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if((response.StatusCode == 200)) + { + if(Utilities.IsContentTypeMatch("application/json", response.ContentType)) + { + response.PushOperation = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }}); + } + + return response; + } + if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429)) + { + if(Utilities.IsContentTypeMatch("application/json", response.ContentType)) + { + response.ErrorMessage = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }}); + } + + return response; + } + return response; + } + + public async Task DownloadAttachmentAsync(DownloadBillAttachmentRequest? request = null) { string baseUrl = _serverUrl; diff --git a/sync-for-payables/CodatSyncPayables/CodatSyncPayables.csproj b/sync-for-payables/CodatSyncPayables/CodatSyncPayables.csproj index d0bc56c57..eefa3689d 100755 --- a/sync-for-payables/CodatSyncPayables/CodatSyncPayables.csproj +++ b/sync-for-payables/CodatSyncPayables/CodatSyncPayables.csproj @@ -2,7 +2,7 @@ true Codat.Sync.Payables - 1.1.0 + 1.2.0 Codat net6.0 enable diff --git a/sync-for-payables/CodatSyncPayables/CodatSyncPayablesSDK.cs b/sync-for-payables/CodatSyncPayables/CodatSyncPayablesSDK.cs index f57a8e85b..e72221ff1 100755 --- a/sync-for-payables/CodatSyncPayables/CodatSyncPayablesSDK.cs +++ b/sync-for-payables/CodatSyncPayables/CodatSyncPayablesSDK.cs @@ -141,8 +141,8 @@ public class CodatSyncPayablesSDK: ICodatSyncPayablesSDK }; private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/Companies.cs b/sync-for-payables/CodatSyncPayables/Companies.cs index a3ece172d..3c9d066c9 100755 --- a/sync-for-payables/CodatSyncPayables/Companies.cs +++ b/sync-for-payables/CodatSyncPayables/Companies.cs @@ -80,8 +80,8 @@ public class CompaniesSDK: ICompaniesSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/CompanyInfo.cs b/sync-for-payables/CodatSyncPayables/CompanyInfo.cs index 47362d345..6d0cd1f71 100755 --- a/sync-for-payables/CodatSyncPayables/CompanyInfo.cs +++ b/sync-for-payables/CodatSyncPayables/CompanyInfo.cs @@ -39,8 +39,8 @@ public class CompanyInfoSDK: ICompanyInfoSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/Connections.cs b/sync-for-payables/CodatSyncPayables/Connections.cs index 936936b04..1b79e1805 100755 --- a/sync-for-payables/CodatSyncPayables/Connections.cs +++ b/sync-for-payables/CodatSyncPayables/Connections.cs @@ -78,8 +78,8 @@ public class ConnectionsSDK: IConnectionsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/JournalEntries.cs b/sync-for-payables/CodatSyncPayables/JournalEntries.cs index 057b95624..83b0020de 100755 --- a/sync-for-payables/CodatSyncPayables/JournalEntries.cs +++ b/sync-for-payables/CodatSyncPayables/JournalEntries.cs @@ -66,8 +66,8 @@ public class JournalEntriesSDK: IJournalEntriesSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/Journals.cs b/sync-for-payables/CodatSyncPayables/Journals.cs index 9327c51d5..341644e7e 100755 --- a/sync-for-payables/CodatSyncPayables/Journals.cs +++ b/sync-for-payables/CodatSyncPayables/Journals.cs @@ -96,8 +96,8 @@ public class JournalsSDK: IJournalsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/ManageData.cs b/sync-for-payables/CodatSyncPayables/ManageData.cs index d5a3478f0..0e6a374b4 100755 --- a/sync-for-payables/CodatSyncPayables/ManageData.cs +++ b/sync-for-payables/CodatSyncPayables/ManageData.cs @@ -82,8 +82,8 @@ public class ManageDataSDK: IManageDataSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/Models/Operations/DeleteBillAttachmentRequest.cs b/sync-for-payables/CodatSyncPayables/Models/Operations/DeleteBillAttachmentRequest.cs new file mode 100755 index 000000000..3667926ea --- /dev/null +++ b/sync-for-payables/CodatSyncPayables/Models/Operations/DeleteBillAttachmentRequest.cs @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// 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 CodatSyncPayables.Models.Operations +{ + using CodatSyncPayables.Utils; + + public class DeleteBillAttachmentRequest + { + + /// + /// Unique identifier for an attachment + /// + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=attachmentId")] + public string AttachmentId { get; set; } = default!; + + /// + /// Unique identifier for a bill + /// + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=billId")] + public string BillId { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=companyId")] + public string CompanyId { get; set; } = default!; + + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=connectionId")] + public string ConnectionId { get; set; } = default!; + } +} \ No newline at end of file diff --git a/sync-for-payables/CodatSyncPayables/Models/Operations/DeleteBillAttachmentResponse.cs b/sync-for-payables/CodatSyncPayables/Models/Operations/DeleteBillAttachmentResponse.cs new file mode 100755 index 000000000..d560ddef8 --- /dev/null +++ b/sync-for-payables/CodatSyncPayables/Models/Operations/DeleteBillAttachmentResponse.cs @@ -0,0 +1,36 @@ + +//------------------------------------------------------------------------------ +// +// 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 CodatSyncPayables.Models.Operations +{ + using CodatSyncPayables.Models.Shared; + using System.Net.Http; + using System; + + public class DeleteBillAttachmentResponse + { + + public string? ContentType { get; set; } = default!; + + /// + /// Your API request was not properly authorized. + /// + public ErrorMessage? ErrorMessage { get; set; } + + /// + /// OK + /// + public PushOperation? PushOperation { get; set; } + + public int StatusCode { get; set; } = default!; + + public HttpResponseMessage? RawResponse { get; set; } + } +} \ No newline at end of file diff --git a/sync-for-payables/CodatSyncPayables/PaymentMethods.cs b/sync-for-payables/CodatSyncPayables/PaymentMethods.cs index 9601e502b..2be57ba07 100755 --- a/sync-for-payables/CodatSyncPayables/PaymentMethods.cs +++ b/sync-for-payables/CodatSyncPayables/PaymentMethods.cs @@ -60,8 +60,8 @@ public class PaymentMethodsSDK: IPaymentMethodsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/PushOperations.cs b/sync-for-payables/CodatSyncPayables/PushOperations.cs index 97437ee73..99a8a6988 100755 --- a/sync-for-payables/CodatSyncPayables/PushOperations.cs +++ b/sync-for-payables/CodatSyncPayables/PushOperations.cs @@ -48,8 +48,8 @@ public class PushOperationsSDK: IPushOperationsSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/Suppliers.cs b/sync-for-payables/CodatSyncPayables/Suppliers.cs index 60f6d318a..9cbc18c70 100755 --- a/sync-for-payables/CodatSyncPayables/Suppliers.cs +++ b/sync-for-payables/CodatSyncPayables/Suppliers.cs @@ -114,8 +114,8 @@ public class SuppliersSDK: ISuppliersSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/TaxRates.cs b/sync-for-payables/CodatSyncPayables/TaxRates.cs index 822b0ae91..dd4a9c5b3 100755 --- a/sync-for-payables/CodatSyncPayables/TaxRates.cs +++ b/sync-for-payables/CodatSyncPayables/TaxRates.cs @@ -60,8 +60,8 @@ public class TaxRatesSDK: ITaxRatesSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/CodatSyncPayables/TrackingCategories.cs b/sync-for-payables/CodatSyncPayables/TrackingCategories.cs index 1890f7eaa..60dd8ec34 100755 --- a/sync-for-payables/CodatSyncPayables/TrackingCategories.cs +++ b/sync-for-payables/CodatSyncPayables/TrackingCategories.cs @@ -60,8 +60,8 @@ public class TrackingCategoriesSDK: ITrackingCategoriesSDK { public SDKConfig Config { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.1.0"; - private const string _sdkGenVersion = "2.116.0"; + private const string _sdkVersion = "1.2.0"; + private const string _sdkGenVersion = "2.125.1"; private const string _openapiDocVersion = "3.0.0"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; diff --git a/sync-for-payables/README.md b/sync-for-payables/README.md index 721bc6cc2..fbec5b6c4 100644 --- a/sync-for-payables/README.md +++ b/sync-for-payables/README.md @@ -14,8 +14,6 @@ dotnet add package Codat.Sync.Payables ## Example Usage - - ```csharp using CodatSyncPayables; using CodatSyncPayables.Models.Shared; @@ -29,11 +27,11 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.Accounts.CreateAsync(new CreateAccountRequest() { Account = new Account() { - Currency = "USD", + Currency = "EUR", CurrentBalance = 0M, Description = "Invoices the business has issued but has not yet collected payment on.", FullyQualifiedCategory = "Asset.Current", - FullyQualifiedName = "Fixed Asset", + FullyQualifiedName = "Cash On Hand", Id = "1b6266d1-1e44-46c5-8eb5-a8f98e03124e", IsBankAccount = false, Metadata = new Metadata() { @@ -48,15 +46,15 @@ var res = await sdk.Accounts.CreateAsync(new CreateAccountRequest() { ValidDatatypeLinks = new List() { new AccountValidDataTypeLinks() { Links = new List() { - "unde", + "suscipit", }, - Property = "nulla", + Property = "iure", }, }, }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 544883, + TimeoutInMinutes = 297534, }); // handle response @@ -94,6 +92,7 @@ var res = await sdk.Accounts.CreateAsync(new CreateAccountRequest() { * [Create](docs/sdks/bills/README.md#create) - Create bill * [Delete](docs/sdks/bills/README.md#delete) - Delete bill +* [DeleteAttachment](docs/sdks/bills/README.md#deleteattachment) - Delete bill attachment * [DownloadAttachment](docs/sdks/bills/README.md#downloadattachment) - Download bill attachment * [Get](docs/sdks/bills/README.md#get) - Get bill * [GetAttachment](docs/sdks/bills/README.md#getattachment) - Get bill attachment @@ -171,4 +170,16 @@ var res = await sdk.Accounts.CreateAsync(new CreateAccountRequest() { * [Get](docs/sdks/trackingcategories/README.md#get) - Get tracking categories * [List](docs/sdks/trackingcategories/README.md#list) - List tracking categories + + + + + + + + + + + + ### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/sync-for-payables/RELEASES.md b/sync-for-payables/RELEASES.md index ba807f1c1..e8ab05513 100644 --- a/sync-for-payables/RELEASES.md +++ b/sync-for-payables/RELEASES.md @@ -46,4 +46,14 @@ Based on: ### Generated - [csharp v1.1.0] sync-for-payables ### Releases -- [NuGet v1.1.0] https://www.nuget.org/packages/Codat.Sync.Payables/1.1.0 - sync-for-payables \ No newline at end of file +- [NuGet v1.1.0] https://www.nuget.org/packages/Codat.Sync.Payables/1.1.0 - sync-for-payables + +## 2023-09-22 15:34:01 +### Changes +Based on: +- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml +- Speakeasy CLI 1.90.0 (2.125.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v1.2.0] sync-for-payables +### Releases +- [NuGet v1.2.0] https://www.nuget.org/packages/Codat.Sync.Payables/1.2.0 - sync-for-payables \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/DeleteBillAttachmentRequest.md b/sync-for-payables/docs/models/operations/DeleteBillAttachmentRequest.md new file mode 100755 index 000000000..b97225867 --- /dev/null +++ b/sync-for-payables/docs/models/operations/DeleteBillAttachmentRequest.md @@ -0,0 +1,11 @@ +# DeleteBillAttachmentRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `attachmentId` | *string* | :heavy_check_mark: | Unique identifier for an attachment | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `billId` | *string* | :heavy_check_mark: | Unique identifier for a bill | 13d946f0-c5d5-42bc-b092-97ece17923ab | +| `companyId` | *string* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `connectionId` | *string* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | \ No newline at end of file diff --git a/sync-for-payables/docs/models/operations/DeleteBillAttachmentResponse.md b/sync-for-payables/docs/models/operations/DeleteBillAttachmentResponse.md new file mode 100755 index 000000000..399aa27ce --- /dev/null +++ b/sync-for-payables/docs/models/operations/DeleteBillAttachmentResponse.md @@ -0,0 +1,12 @@ +# DeleteBillAttachmentResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | N/A | +| `errorMessage` | [ErrorMessage](../../models/shared/ErrorMessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `pushOperation` | [PushOperation](../../models/shared/PushOperation.md) | :heavy_minus_sign: | OK | +| `statusCode` | *int* | :heavy_check_mark: | N/A | +| `rawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/sync-for-payables/docs/sdks/accounts/README.md b/sync-for-payables/docs/sdks/accounts/README.md index 32a4ad569..2c368b34c 100755 --- a/sync-for-payables/docs/sdks/accounts/README.md +++ b/sync-for-payables/docs/sdks/accounts/README.md @@ -60,13 +60,13 @@ var res = await sdk.Accounts.CreateAsync(new CreateAccountRequest() { Links = new List() { "suscipit", }, - Property = "iure", + Property = "molestiae", }, }, }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 297534, + TimeoutInMinutes = 791725, }); // handle response @@ -109,7 +109,7 @@ var sdk = new CodatSyncPayablesSDK( ); var res = await sdk.Accounts.GetAsync(new GetAccountRequest() { - AccountId = "debitis", + AccountId = "placeat", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", }); @@ -200,7 +200,7 @@ var res = await sdk.Accounts.ListAsync(new ListAccountsRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "ipsa", + Query = "voluptatum", }); // handle response diff --git a/sync-for-payables/docs/sdks/billcreditnotes/README.md b/sync-for-payables/docs/sdks/billcreditnotes/README.md index 11964debd..a29f57c71 100755 --- a/sync-for-payables/docs/sdks/billcreditnotes/README.md +++ b/sync-for-payables/docs/sdks/billcreditnotes/README.md @@ -42,58 +42,58 @@ var res = await sdk.BillCreditNotes.CreateAsync(new CreateBillCreditNoteRequest( BillCreditNote = new BillCreditNote() { AllocatedOnDate = "2022-10-23T00:00:00.000Z", BillCreditNoteNumber = "91fe2a83-e161-4c21-929d-c5c10c4b07e5", - Currency = "GBP", - CurrencyRate = 3834.41M, + Currency = "USD", + CurrencyRate = 3927.85M, DiscountPercentage = 0M, Id = "1509398f-98e2-436d-8a5d-c042e0c74ffc", IssueDate = "2022-10-23T00:00:00.000Z", LineItems = new List() { new BillCreditNoteLineItem() { AccountRef = new AccountRef() { - Id = "cc8796ed-151a-405d-bc2d-df7cc78ca1ba", - Name = "Wayne Lind", + Id = "d151a05d-fc2d-4df7-8c78-ca1ba928fc81", + Name = "Tanya Gleason", }, - Description = "totam", - DiscountAmount = 1059.07M, - DiscountPercentage = 4146.62M, + Description = "cum", + DiscountAmount = 4561.5M, + DiscountPercentage = 2165.5M, ItemRef = new BillCreditNoteLineItemItemReference() { - Id = "742cb739-2059-4293-96fe-a7596eb10faa", - Name = "Ernest Ebert", + Id = "92059293-96fe-4a75-96eb-10faaa2352c5", + Name = "Corey Hane III", }, - Quantity = 7506.86M, - SubTotal = 3154.28M, - TaxAmount = 6078.31M, + Quantity = 6342.74M, + SubTotal = 9883.74M, + TaxAmount = 9589.5M, TaxRateRef = new TaxRateRef() { - EffectiveTaxRate = 3637.11M, - Id = "5907aff1-a3a2-4fa9-8677-39251aa52c3f", - Name = "Mr. Alberta Schuster", + EffectiveTaxRate = 1020.44M, + Id = "a3a2fa94-6773-4925-9aa5-2c3f5ad019da", + Name = "Johanna Wolf", }, - TotalAmount = 8379.45M, + TotalAmount = 5096.24M, Tracking = new BillCreditNoteLineItemTracking() { CategoryRefs = new List() { new TrackingCategoryRef() { - Id = "a1ffe78f-097b-4007-8f15-471b5e6e13b9", - Name = "Ervin Gleason", + Id = "f097b007-4f15-4471-b5e6-e13b99d488e1", + Name = "Kirk Boehm", }, }, CustomerRef = new BillCreditNoteLineItemTrackingCustomerRef() { - CompanyName = "voluptates", - Id = "1e91e450-ad2a-4bd4-8269-802d502a94bb", + CompanyName = "enim", + Id = "0ad2abd4-4269-4802-9502-a94bb4f63c96", }, - IsBilledTo = CodatSyncPayables.Models.Shared.BilledToType.NotApplicable, + IsBilledTo = CodatSyncPayables.Models.Shared.BilledToType.Customer, IsRebilledTo = CodatSyncPayables.Models.Shared.BilledToType.Project, ProjectRef = new BillCreditNoteLineItemTrackingProjectReference() { - Id = "63c969e9-a3ef-4a77-9fb1-4cd66ae395ef", - Name = "Rene Reinger", + Id = "9a3efa77-dfb1-44cd-a6ae-395efb9ba88f", + Name = "Sandy Huels", }, }, TrackingCategoryRefs = new List() { new TrackingCategoryRef() { - Id = "8f3a6699-7074-4ba4-869b-6e2141959890", - Name = "Abel O'Hara", + Id = "97074ba4-469b-46e2-9419-59890afa563e", + Name = "Vivian Boyle", }, }, - UnitAmount = 2212.62M, + UnitAmount = 8919.24M, }, }, Metadata = new Metadata() { @@ -106,21 +106,21 @@ var res = await sdk.BillCreditNotes.CreateAsync(new CreateBillCreditNoteRequest( Allocation = new ItemsAllocation() { AllocatedOnDate = "2022-10-23T00:00:00.000Z", Currency = "USD", - CurrencyRate = 972.6M, - TotalAmount = 4358.65M, + CurrencyRate = 7038.89M, + TotalAmount = 4479.26M, }, Payment = new PaymentAllocationPayment() { AccountRef = new AccountRef() { - Id = "fe4c8b71-1e5b-47fd-aed0-28921cddc692", - Name = "Donna Bernhard", + Id = "11e5b7fd-2ed0-4289-a1cd-dc692601fb57", + Name = "Candice Beatty", }, - Currency = "USD", - CurrencyRate = 4535.43M, - Id = "6b0d5f0d-30c5-4fbb-a587-053202c73d5f", - Note = "recusandae", + Currency = "EUR", + CurrencyRate = 166.27M, + Id = "d30c5fbb-2587-4053-a02c-73d5fe9b90c2", + Note = "blanditiis", PaidOnDate = "2022-10-23T00:00:00.000Z", - Reference = "facilis", - TotalAmount = 5966.56M, + Reference = "eaque", + TotalAmount = 5772.29M, }, }, }, @@ -130,28 +130,28 @@ var res = await sdk.BillCreditNotes.CreateAsync(new CreateBillCreditNoteRequest( SubTotal = 805.78M, SupplementalData = new SupplementalData() { Content = new Dictionary>() { - { "porro", new Dictionary() { - { "consequuntur", "blanditiis" }, + { "adipisci", new Dictionary() { + { "asperiores", "earum" }, } }, }, }, SupplierRef = new SupplierRef() { - Id = "909b3fe4-9a8d-49cb-b486-33323f9b77f3", - SupplierName = "dolorum", + Id = "49a8d9cb-f486-4333-a3f9-b77f3a410067", + SupplierName = "quaerat", }, TotalAmount = 805.78M, TotalDiscount = 0M, TotalTaxAmount = 0M, WithholdingTax = new List() { new WithholdingTaxitems() { - Amount = 2543.56M, - Name = "Melissa Bednar", + Amount = 8810.05M, + Name = "Jan Hodkiewicz", }, }, }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 311796, + TimeoutInMinutes = 542499, }); // handle response @@ -194,7 +194,7 @@ var sdk = new CodatSyncPayablesSDK( ); var res = await sdk.BillCreditNotes.GetAsync(new GetBillCreditNoteRequest() { - BillCreditNoteId = "accusamus", + BillCreditNoteId = "sit", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", }); @@ -286,7 +286,7 @@ var res = await sdk.BillCreditNotes.ListAsync(new ListBillCreditNotesRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "quidem", + Query = "fugiat", }); // handle response @@ -334,58 +334,58 @@ var res = await sdk.BillCreditNotes.UpdateAsync(new UpdateBillCreditNoteRequest( BillCreditNote = new BillCreditNote() { AllocatedOnDate = "2022-10-23T00:00:00.000Z", BillCreditNoteNumber = "91fe2a83-e161-4c21-929d-c5c10c4b07e5", - Currency = "USD", - CurrencyRate = 6176.58M, + Currency = "EUR", + CurrencyRate = 6793.93M, DiscountPercentage = 0M, Id = "1509398f-98e2-436d-8a5d-c042e0c74ffc", IssueDate = "2022-10-23T00:00:00.000Z", LineItems = new List() { new BillCreditNoteLineItem() { AccountRef = new AccountRef() { - Id = "80d1ba77-a89e-4bf7-b7ae-4203ce5e6a95", - Name = "Dr. Jimmie Murphy", + Id = "7a89ebf7-37ae-4420-bce5-e6a95d8a0d44", + Name = "Bernadette Torp", }, - Description = "tempora", - DiscountAmount = 4254.51M, - DiscountPercentage = 7980.47M, + Description = "a", + DiscountAmount = 4561.3M, + DiscountPercentage = 6874.88M, ItemRef = new BillCreditNoteLineItemItemReference() { - Id = "e2af7a73-cf3b-4e45-bf87-0b326b5a7342", - Name = "Simon Stracke MD", + Id = "73cf3be4-53f8-470b-b26b-5a73429cdb1a", + Name = "Randall Cole", }, - Quantity = 5173.79M, - SubTotal = 2768.94M, - TaxAmount = 1320.68M, + Quantity = 7044.74M, + SubTotal = 3960.6M, + TaxAmount = 4631.5M, TaxRateRef = new TaxRateRef() { - EffectiveTaxRate = 1749.09M, - Id = "bb679d23-2271-45bf-8cbb-1e31b8b90f34", - Name = "Mr. Josephine Pagac V", + EffectiveTaxRate = 5654.21M, + Id = "d2322715-bf0c-4bb1-a31b-8b90f3443a11", + Name = "Miss Billie Ward", }, - TotalAmount = 9295.3M, + TotalAmount = 7851.53M, Tracking = new BillCreditNoteLineItemTracking() { CategoryRefs = new List() { new TrackingCategoryRef() { - Id = "0adcf4b9-2187-49fc-a953-f73ef7fbc7ab", - Name = "Allan Greenholt", + Id = "f4b92187-9fce-4953-b73e-f7fbc7abd74d", + Name = "Earl Mosciski DVM", }, }, CustomerRef = new BillCreditNoteLineItemTrackingCustomerRef() { - CompanyName = "sequi", - Id = "9c0f5d2c-ff7c-470a-8562-6d436813f16d", + CompanyName = "exercitationem", + Id = "d2cff7c7-0a45-4626-9436-813f16d9f5fc", }, - IsBilledTo = CodatSyncPayables.Models.Shared.BilledToType.Customer, - IsRebilledTo = CodatSyncPayables.Models.Shared.BilledToType.Project, + IsBilledTo = CodatSyncPayables.Models.Shared.BilledToType.Project, + IsRebilledTo = CodatSyncPayables.Models.Shared.BilledToType.NotApplicable, ProjectRef = new BillCreditNoteLineItemTrackingProjectReference() { - Id = "5fce6c55-6146-4c3e-a50f-b008c42e141a", - Name = "Clark Franecki", + Id = "c556146c-3e25-40fb-808c-42e141aac366", + Name = "Clifton Simonis", }, }, TrackingCategoryRefs = new List() { new TrackingCategoryRef() { - Id = "c8dd6b14-4290-4747-8778-a7bd466d28c1", - Name = "Amelia Predovic", + Id = "b1442907-4747-478a-bbd4-66d28c10ab3c", + Name = "Salvatore Parker", }, }, - UnitAmount = 8472.76M, + UnitAmount = 3738.13M, }, }, Metadata = new Metadata() { @@ -398,21 +398,21 @@ var res = await sdk.BillCreditNotes.UpdateAsync(new UpdateBillCreditNoteRequest( Allocation = new ItemsAllocation() { AllocatedOnDate = "2022-10-23T00:00:00.000Z", Currency = "GBP", - CurrencyRate = 1783.67M, - TotalAmount = 3738.13M, + CurrencyRate = 2728.22M, + TotalAmount = 8920.5M, }, Payment = new PaymentAllocationPayment() { AccountRef = new AccountRef() { - Id = "1904e523-c7e0-4bc7-978e-4796f2a70c68", - Name = "Eugene Leuschke", + Id = "523c7e0b-c717-48e4-b96f-2a70c688282a", + Name = "Randall Lindgren", }, Currency = "USD", - CurrencyRate = 2775.96M, - Id = "82562f22-2e98-417e-a17c-be61e6b7b95b", - Note = "eligendi", + CurrencyRate = 1470.14M, + Id = "f222e981-7ee1-47cb-a61e-6b7b95bc0ab3", + Note = "cumque", PaidOnDate = "2022-10-23T00:00:00.000Z", - Reference = "culpa", - TotalAmount = 7313.98M, + Reference = "consequatur", + TotalAmount = 7963.92M, }, }, }, @@ -422,30 +422,30 @@ var res = await sdk.BillCreditNotes.UpdateAsync(new UpdateBillCreditNoteRequest( SubTotal = 805.78M, SupplementalData = new SupplementalData() { Content = new Dictionary>() { - { "cumque", new Dictionary() { - { "consequuntur", "consequatur" }, + { "sapiente", new Dictionary() { + { "consectetur", "esse" }, } }, }, }, SupplierRef = new SupplierRef() { - Id = "c4f3789f-d871-4f99-9d2e-fd121aa6f1e6", - SupplierName = "in", + Id = "89fd871f-99dd-42ef-9121-aa6f1e674bdb", + SupplierName = "accusantium", }, TotalAmount = 805.78M, TotalDiscount = 0M, TotalTaxAmount = 0M, WithholdingTax = new List() { new WithholdingTaxitems() { - Amount = 2586.84M, - Name = "Mrs. Gilberto Roberts", + Amount = 3069.86M, + Name = "Samuel Hermiston", }, }, }, - BillCreditNoteId = "dicta", + BillCreditNoteId = "nisi", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", ForceUpdate = false, - TimeoutInMinutes = 355369, + TimeoutInMinutes = 16328, }); // handle response diff --git a/sync-for-payables/docs/sdks/billpayments/README.md b/sync-for-payables/docs/sdks/billpayments/README.md index cd0e59dd8..b529a456a 100755 --- a/sync-for-payables/docs/sdks/billpayments/README.md +++ b/sync-for-payables/docs/sdks/billpayments/README.md @@ -41,23 +41,23 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.BillPayments.CreateAsync(new CreateBillPaymentRequest() { BillPayment = new BillPayment() { AccountRef = new AccountRef() { - Id = "756082d6-8ea1-49f1-9170-51339d08086a", - Name = "Mrs. Priscilla Fritsch", + Id = "82d68ea1-9f1d-4170-9133-9d08086a1840", + Name = "Toni Fritsch", }, - Currency = "GBP", - CurrencyRate = 7710.89M, + Currency = "USD", + CurrencyRate = 120.36M, Date = "2022-10-23T00:00:00.000Z", Id = "3d5a8e00-d108-4045-8823-7f342676cffa", Lines = new List() { new BillPaymentLine() { AllocatedOnDate = "2022-10-23T00:00:00.000Z", - Amount = 120.36M, + Amount = 9816.4M, Links = new List() { new BillPaymentLineLink() { - Amount = 4910.25M, - CurrencyRate = 1154.84M, - Id = "f93f5f06-42da-4c7a-b515-cc413aa63aae", - Type = CodatSyncPayables.Models.Shared.BillPaymentLineLinkType.BillPayment, + Amount = 6184.8M, + CurrencyRate = 2446.51M, + Id = "f5f0642d-ac7a-4f51-9cc4-13aa63aae8d6", + Type = CodatSyncPayables.Models.Shared.BillPaymentLineLinkType.CreditNote, }, }, }, @@ -68,24 +68,24 @@ var res = await sdk.BillPayments.CreateAsync(new CreateBillPaymentRequest() { ModifiedDate = "2022-10-23T00:00:00.000Z", Note = "Bill Payment against bill c13e37b6-dfaa-4894-b3be-9fe97bda9f44", PaymentMethodRef = "vel", - Reference = "ducimus", + Reference = "labore", SourceModifiedDate = "2022-10-23T00:00:00.000Z", SupplementalData = new SupplementalData() { Content = new Dictionary>() { - { "vel", new Dictionary() { - { "labore", "possimus" }, + { "facilis", new Dictionary() { + { "cum", "commodi" }, } }, }, }, SupplierRef = new SupplierRef() { - Id = "bb675fd5-e60b-4375-ad4f-6fbee41f3331", - SupplierName = "dignissimos", + Id = "75fd5e60-b375-4ed4-b6fb-ee41f33317fe", + SupplierName = "consectetur", }, TotalAmount = 1329.54M, }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 950953, + TimeoutInMinutes = 358107, }); // handle response @@ -143,7 +143,7 @@ var sdk = new CodatSyncPayablesSDK( ); var res = await sdk.BillPayments.DeleteAsync(new DeleteBillPaymentRequest() { - BillPaymentId = "debitis", + BillPaymentId = "harum", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", }); @@ -187,7 +187,7 @@ var sdk = new CodatSyncPayablesSDK( ); var res = await sdk.BillPayments.GetAsync(new GetBillPaymentsRequest() { - BillPaymentId = "consectetur", + BillPaymentId = "laboriosam", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", }); @@ -279,7 +279,7 @@ var res = await sdk.BillPayments.ListAsync(new ListBillPaymentsRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "corporis", + Query = "ipsa", }); // handle response diff --git a/sync-for-payables/docs/sdks/bills/README.md b/sync-for-payables/docs/sdks/bills/README.md index aace52e0f..d40dd8cfb 100755 --- a/sync-for-payables/docs/sdks/bills/README.md +++ b/sync-for-payables/docs/sdks/bills/README.md @@ -8,6 +8,7 @@ Bills * [Create](#create) - Create bill * [Delete](#delete) - Delete bill +* [DeleteAttachment](#deleteattachment) - Delete bill attachment * [DownloadAttachment](#downloadattachment) - Download bill attachment * [Get](#get) - Get bill * [GetAttachment](#getattachment) - Get bill attachment @@ -45,123 +46,123 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.Bills.CreateAsync(new CreateBillRequest() { Bill = new Bill() { - AmountDue = 6897.68M, - Currency = "USD", - CurrencyRate = 583.56M, + AmountDue = 9167.27M, + Currency = "EUR", + CurrencyRate = 1138.16M, DueDate = "2022-10-23T00:00:00.000Z", - Id = "b1ea4265-55ba-43c2-8744-ed53b88f3a8d", + Id = "a426555b-a3c2-4874-8ed5-3b88f3a8d8f5", IssueDate = "2022-10-23T00:00:00.000Z", LineItems = new List() { new BillLineItem() { AccountRef = new AccountRef() { - Id = "f5c0b2f2-fb7b-4194-a276-b26916fe1f08", - Name = "Troy Cormier", + Id = "0b2f2fb7-b194-4a27-ab26-916fe1f08f42", + Name = "Herbert Treutel", }, - Description = "necessitatibus", - DiscountAmount = 2155.29M, - DiscountPercentage = 4067.33M, + Description = "occaecati", + DiscountAmount = 5520.78M, + DiscountPercentage = 9757.52M, IsDirectCost = false, ItemRef = new ItemRef() { - Id = "98f447f6-03e8-4b44-9e80-ca55efd20e45", - Name = "Cecelia Braun", + Id = "447f603e-8b44-45e8-8ca5-5efd20e457e1", + Name = "Jorge Langosh", }, - Quantity = 5106.29M, - SubTotal = 7400.98M, - TaxAmount = 3868.27M, + Quantity = 6805.15M, + SubTotal = 5300.89M, + TaxAmount = 6223.85M, TaxRateRef = new TaxRateRef() { - EffectiveTaxRate = 6805.15M, - Id = "89fbe3a5-aa8e-4482-8d0a-b4075088e518", - Name = "Jane Bailey", + EffectiveTaxRate = 9447.08M, + Id = "be3a5aa8-e482-44d0-ab40-75088e518620", + Name = "Bernice Ullrich II", }, - TotalAmount = 9061.72M, + TotalAmount = 9688.65M, Tracking = new Tracking() { CategoryRefs = new List() { new TrackingCategoryRef() { - Id = "904f3b11-94b8-4abf-a03a-79f9dfe0ab7d", - Name = "Max O'Connell DDS", + Id = "3b1194b8-abf6-403a-b9f9-dfe0ab7da8a5", + Name = "Ms. Alexandra VonRueden", }, }, CustomerRef = new TrackingCustomerRef() { - CompanyName = "repudiandae", - Id = "187f86bc-173d-4689-aee9-526f8d986e88", + CompanyName = "asperiores", + Id = "86bc173d-689e-4ee9-926f-8d986e881ead", }, - IsBilledTo = CodatSyncPayables.Models.Shared.BilledToType.Unknown, + IsBilledTo = CodatSyncPayables.Models.Shared.BilledToType.NotApplicable, IsRebilledTo = CodatSyncPayables.Models.Shared.BilledToType.Project, ProjectRef = new TrackingProjectReference() { - Id = "ad4f0e10-1256-43f9-8e29-e973e922a57a", - Name = "Ana Predovic", + Id = "0e101256-3f94-4e29-a973-e922a57a15be", + Name = "Meghan Batz IV", }, }, TrackingCategoryRefs = new List() { new TrackingCategoryRef() { - Id = "e060807e-2b6e-43ab-8845-f0597a60ff2a", - Name = "Joanne Parisian DVM", + Id = "07e2b6e3-ab88-445f-8597-a60ff2a54a31", + Name = "Arturo Hagenes", }, }, - UnitAmount = 6072.49M, + UnitAmount = 2840M, }, }, Metadata = new Metadata() { IsDeleted = false, }, ModifiedDate = "2022-10-23T00:00:00.000Z", - Note = "molestiae", + Note = "adipisci", PaymentAllocations = new List() { new BillPaymentAllocation() { Allocation = new BillPaymentAllocationAllocation() { AllocatedOnDate = "2022-10-23T00:00:00.000Z", - Currency = "GBP", - CurrencyRate = 6330.62M, - TotalAmount = 2384.13M, + Currency = "USD", + CurrencyRate = 4326.06M, + TotalAmount = 3679.27M, }, Payment = new PaymentAllocationPayment() { AccountRef = new AccountRef() { - Id = "e865e795-6f92-451a-9a9d-a660ff57bfaa", - Name = "Edwin Wolf", + Id = "e7956f92-51a5-4a9d-a660-ff57bfaad4f9", + Name = "Miss Timmy Runolfsdottir", }, - Currency = "EUR", - CurrencyRate = 7645.62M, - Id = "1b4512c1-0326-448d-82f6-15199ebfd0e9", - Note = "maiores", + Currency = "USD", + CurrencyRate = 820.57M, + Id = "2c103264-8dc2-4f61-9199-ebfd0e9fe6c6", + Note = "dolorem", PaidOnDate = "2022-10-23T00:00:00.000Z", - Reference = "aliquid", - TotalAmount = 7809.31M, + Reference = "cumque", + TotalAmount = 6849.35M, }, }, }, PurchaseOrderRefs = new List() { new BillPurchaseOrderReference() { - Id = "632ca3ae-d011-4799-a312-fde04771778f", - PurchaseOrderNumber = "reiciendis", + Id = "3aed0117-9963-412f-9e04-771778ff61d0", + PurchaseOrderNumber = "dicta", }, }, - Reference = "vel", + Reference = "odio", SourceModifiedDate = "2022-10-23T00:00:00.000Z", - Status = CodatSyncPayables.Models.Shared.BillStatus.Draft, - SubTotal = 396.5M, + Status = CodatSyncPayables.Models.Shared.BillStatus.PartiallyPaid, + SubTotal = 4037.93M, SupplementalData = new BillSupplementalData() { Content = new Dictionary>() { - { "dicta", new Dictionary() { - { "odio", "tempora" }, + { "consectetur", new Dictionary() { + { "aliquid", "ipsa" }, } }, }, }, SupplierRef = new SupplierRef() { - Id = "76360a15-db6a-4660-a59a-1adeaab5851d", - SupplierName = "ex", + Id = "a15db6a6-6065-49a1-adea-ab5851d6c645", + SupplierName = "expedita", }, - TaxAmount = 7758.03M, - TotalAmount = 4053.73M, + TaxAmount = 299.5M, + TotalAmount = 5615.77M, WithholdingTax = new List() { new BillWithholdingTax() { - Amount = 2811.53M, - Name = "Lula Bartell", + Amount = 7372.54M, + Name = "Doris Lemke MD", }, }, }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 399660, + TimeoutInMinutes = 665678, }); // handle response @@ -224,7 +225,7 @@ var sdk = new CodatSyncPayablesSDK( ); var res = await sdk.Bills.DeleteAsync(new DeleteBillRequest() { - BillId = "13d946f0-c5d5-42bc-b092-97ece17923ab", + BillId = "7110701885", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", }); @@ -244,6 +245,65 @@ var res = await sdk.Bills.DeleteAsync(new DeleteBillRequest() { **[DeleteBillResponse](../../models/operations/DeleteBillResponse.md)** +## DeleteAttachment + +The *Delete bill attachment* endpoint allows you to delete a specified bill attachment from an accounting platform. + +[Bills](https://docs.codat.io/accounting-api#/schemas/Bill) are invoices +that represent the SMB's financial obligations to their supplier for a +purchase of goods or services. + +### Process + +1. Pass the `{billId}` and `{attachmentId}` to the *Delete bill attachment* endpoint and store the `pushOperationKey` returned. + +2. Check the status of the delete operation by checking the status of push operation either via + +1. [Push operation webhook](https://docs.codat.io/introduction/webhookscore-rules-types#push-operation-status-has-changed) (advised), + +2. [Push operation status endpoint](https://docs.codat.io/sync-for-payables-api#/operations/get-push-operation). A `Success` status indicates that the bill attachment object was deleted from the accounting platform. + +3. (Optional) Check that the bill attachment was deleted from the accounting platform. + +>**Supported Integrations** +> +>This functionality is currently only supported for our QuickBooks Online integration. + +### Example Usage + +```csharp +using CodatSyncPayables; +using CodatSyncPayables.Models.Shared; +using CodatSyncPayables.Models.Operations; + +var sdk = new CodatSyncPayablesSDK( + security: new Security() { + AuthHeader = "Basic BASE_64_ENCODED(API_KEY)", + } +); + +var res = await sdk.Bills.DeleteAttachmentAsync(new DeleteBillAttachmentRequest() { + AttachmentId = "8a210b68-6988-11ed-a1eb-0242ac120002", + BillId = "13d946f0-c5d5-42bc-b092-97ece17923ab", + CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", + ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", +}); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `request` | [DeleteBillAttachmentRequest](../../models/operations/DeleteBillAttachmentRequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[DeleteBillAttachmentResponse](../../models/operations/DeleteBillAttachmentResponse.md)** + + ## DownloadAttachment The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`. @@ -268,7 +328,7 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.Bills.DownloadAttachmentAsync(new DownloadBillAttachmentRequest() { AttachmentId = "8a210b68-6988-11ed-a1eb-0242ac120002", - BillId = "7110701885", + BillId = "EILBDVJVNUAGVKRQ", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", }); @@ -313,7 +373,7 @@ var sdk = new CodatSyncPayablesSDK( ); var res = await sdk.Bills.GetAsync(new GetBillRequest() { - BillId = "7110701885", + BillId = "EILBDVJVNUAGVKRQ", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", }); @@ -449,7 +509,7 @@ var res = await sdk.Bills.ListAsync(new ListBillsRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "rerum", + Query = "fuga", }); // handle response @@ -490,7 +550,7 @@ var sdk = new CodatSyncPayablesSDK( ); var res = await sdk.Bills.ListAttachmentsAsync(new ListBillAttachmentsRequest() { - BillId = "7110701885", + BillId = "EILBDVJVNUAGVKRQ", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", }); @@ -538,125 +598,125 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.Bills.UpdateAsync(new UpdateBillRequest() { Bill = new Bill() { - AmountDue = 6347.86M, + AmountDue = 8913.15M, Currency = "GBP", - CurrencyRate = 9591.43M, + CurrencyRate = 12.07M, DueDate = "2022-10-23T00:00:00.000Z", - Id = "1ade008e-6f8c-45f3-90d8-cdb5a3418143", + Id = "e6f8c5f3-50d8-4cdb-9a34-181430104218", IssueDate = "2022-10-23T00:00:00.000Z", LineItems = new List() { new BillLineItem() { AccountRef = new AccountRef() { - Id = "10421813-d520-48ec-a7e2-53b668451c6c", - Name = "Mrs. Kate Cronin", + Id = "3d5208ec-e7e2-453b-a684-51c6c6e205e1", + Name = "Teri Thiel", }, - Description = "quasi", - DiscountAmount = 3925.69M, - DiscountPercentage = 8711.03M, + Description = "sequi", + DiscountAmount = 9873.49M, + DiscountPercentage = 9180.92M, IsDirectCost = false, ItemRef = new ItemRef() { - Id = "eab3fec9-578a-4645-8427-3a8418d16230", - Name = "Miss Dominick Rogahn", + Id = "c9578a64-5842-473a-8418-d162309fb092", + Name = "Miss Joey Dach", }, - Quantity = 5790.11M, - SubTotal = 6128.67M, - TaxAmount = 1700.99M, + Quantity = 9768.02M, + SubTotal = 7196.2M, + TaxAmount = 6085.93M, TaxRateRef = new TaxRateRef() { - EffectiveTaxRate = 813.69M, - Id = "aefb9f58-c4d8-46e6-8e4b-e056013f59da", - Name = "Ida Kilback", + EffectiveTaxRate = 9663.9M, + Id = "58c4d86e-68e4-4be0-9601-3f59da757a59", + Name = "Garrett Welch", }, - TotalAmount = 5718.44M, + TotalAmount = 4043.06M, Tracking = new Tracking() { CategoryRefs = new List() { new TrackingCategoryRef() { - Id = "ecfef66e-f1ca-4a33-83c2-beb477373c8d", - Name = "Christina Wolf", + Id = "6ef1caa3-383c-42be-b477-373c8d72f64d", + Name = "Dr. Muriel Reinger", }, }, CustomerRef = new TrackingCustomerRef() { - CompanyName = "quibusdam", - Id = "1db1f2c4-3106-461e-9634-9e1cf9e06e3a", + CompanyName = "porro", + Id = "4310661e-9634-49e1-8f9e-06e3a437000a", }, - IsBilledTo = CodatSyncPayables.Models.Shared.BilledToType.NotApplicable, - IsRebilledTo = CodatSyncPayables.Models.Shared.BilledToType.Unknown, + IsBilledTo = CodatSyncPayables.Models.Shared.BilledToType.Project, + IsRebilledTo = CodatSyncPayables.Models.Shared.BilledToType.NotApplicable, ProjectRef = new TrackingProjectReference() { - Id = "7000ae6b-6bc9-4b8f-b59e-ac55a9741d31", - Name = "Florence Hand", + Id = "b6bc9b8f-759e-4ac5-9a97-41d311352965", + Name = "Wm Legros", }, }, TrackingCategoryRefs = new List() { new TrackingCategoryRef() { - Id = "65bb8a72-0261-4143-9e13-9dbc2259b1ab", - Name = "Oliver Luettgen IV", + Id = "20261143-5e13-49db-8225-9b1abda8c070", + Name = "Walter Beatty", }, }, - UnitAmount = 573.2M, + UnitAmount = 7551.06M, }, }, Metadata = new Metadata() { IsDeleted = false, }, ModifiedDate = "2022-10-23T00:00:00.000Z", - Note = "inventore", + Note = "voluptatem", PaymentAllocations = new List() { new BillPaymentAllocation() { Allocation = new BillPaymentAllocationAllocation() { AllocatedOnDate = "2022-10-23T00:00:00.000Z", Currency = "USD", - CurrencyRate = 2928.88M, - TotalAmount = 7551.06M, + CurrencyRate = 1729.51M, + TotalAmount = 8247.98M, }, Payment = new PaymentAllocationPayment() { AccountRef = new AccountRef() { - Id = "b0672d1a-d879-4eeb-9665-b85efbd02bae", - Name = "Mamie Torp", + Id = "1ad879ee-b966-45b8-9efb-d02bae0be2d7", + Name = "Fred Champlin", }, - Currency = "USD", - CurrencyRate = 5101.28M, - Id = "2259e3ea-4b51-497f-9244-3da7ce52b895", - Note = "placeat", + Currency = "EUR", + CurrencyRate = 2393.37M, + Id = "ea4b5197-f924-443d-a7ce-52b895c537c6", + Note = "modi", PaidOnDate = "2022-10-23T00:00:00.000Z", - Reference = "neque", - TotalAmount = 4468.77M, + Reference = "magnam", + TotalAmount = 9149.71M, }, }, }, PurchaseOrderRefs = new List() { new BillPurchaseOrderReference() { - Id = "c6454efb-0b34-4896-83ca-5acfbe2fd570", - PurchaseOrderNumber = "odio", + Id = "fb0b3489-6c3c-4a5a-8fbe-2fd570757792", + PurchaseOrderNumber = "error", }, }, - Reference = "minima", + Reference = "veritatis", SourceModifiedDate = "2022-10-23T00:00:00.000Z", Status = CodatSyncPayables.Models.Shared.BillStatus.PartiallyPaid, - SubTotal = 5678.46M, + SubTotal = 8667.89M, SupplementalData = new BillSupplementalData() { Content = new Dictionary>() { - { "dolores", new Dictionary() { - { "error", "veritatis" }, + { "itaque", new Dictionary() { + { "similique", "optio" }, } }, }, }, SupplierRef = new SupplierRef() { - Id = "77deac64-6ecb-4573-809e-3eb1e5a2b12e", - SupplierName = "nobis", + Id = "646ecb57-3409-4e3e-b1e5-a2b12eb07f11", + SupplierName = "laboriosam", }, - TaxAmount = 568.77M, - TotalAmount = 4973.57M, + TaxAmount = 8634.71M, + TotalAmount = 7294.48M, WithholdingTax = new List() { new BillWithholdingTax() { - Amount = 9804.86M, - Name = "Joyce Howe", + Amount = 5665.06M, + Name = "Maurice Haag", }, }, }, - BillId = "7110701885", + BillId = "EILBDVJVNUAGVKRQ", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", ForceUpdate = false, - TimeoutInMinutes = 578210, + TimeoutInMinutes = 574032, }); // handle response @@ -702,10 +762,10 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.Bills.UploadAttachmentAsync(new UploadBillAttachmentRequest() { RequestBody = new UploadBillAttachmentRequestBody() { - Content = "nemo as bytes <<<>>>", - RequestBody = "aliquam", + Content = "enim as bytes <<<>>>", + RequestBody = "hic", }, - BillId = "9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2", + BillId = "7110701885", CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", }); diff --git a/sync-for-payables/docs/sdks/companies/README.md b/sync-for-payables/docs/sdks/companies/README.md index 39aabceb4..6665a1351 100755 --- a/sync-for-payables/docs/sdks/companies/README.md +++ b/sync-for-payables/docs/sdks/companies/README.md @@ -146,7 +146,7 @@ var res = await sdk.Companies.ListAsync(new ListCompaniesRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "doloribus", + Query = "quas", }); // handle response diff --git a/sync-for-payables/docs/sdks/connections/README.md b/sync-for-payables/docs/sdks/connections/README.md index bb8efabfe..158647ebf 100755 --- a/sync-for-payables/docs/sdks/connections/README.md +++ b/sync-for-payables/docs/sdks/connections/README.md @@ -33,7 +33,7 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.Connections.CreateAsync(new CreateConnectionRequest() { RequestBody = new CreateConnectionRequestBody() { - PlatformKey = "eligendi", + PlatformKey = "totam", }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", }); @@ -150,7 +150,7 @@ var res = await sdk.Connections.ListAsync(new ListConnectionsRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "sint", + Query = "molestias", }); // handle response diff --git a/sync-for-payables/docs/sdks/journalentries/README.md b/sync-for-payables/docs/sdks/journalentries/README.md index 19a4e6552..389d2c427 100755 --- a/sync-for-payables/docs/sdks/journalentries/README.md +++ b/sync-for-payables/docs/sdks/journalentries/README.md @@ -38,30 +38,30 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.JournalEntries.CreateAsync(new CreateJournalEntryRequest() { JournalEntry = new JournalEntry() { CreatedOn = "2022-10-23T00:00:00.000Z", - Description = "animi", - Id = "88970e18-9dbb-430f-8b33-ea055b197cd4", + Description = "saepe", + Id = "189dbb30-fcb3-43ea-855b-197cd44e2f52", JournalLines = new List() { new JournalLine() { AccountRef = new AccountRef() { - Id = "4e2f52d8-2d35-413b-b6f4-8b656bcdb35f", - Name = "Russell Toy", + Id = "d82d3513-bb6f-448b-a56b-cdb35ff2e4b2", + Name = "Audrey Durgan", }, - Currency = "eos", - Description = "reprehenderit", - NetAmount = 3455.06M, + Currency = "rem", + Description = "eligendi", + NetAmount = 8536.06M, Tracking = new JournalLineTracking() { RecordRefs = new List() { new RecordRef() { - DataType = "journalEntry", - Id = "7a8cd9e7-319c-4177-9525-f77b114eeb52", + DataType = "accountTransaction", + Id = "e7319c17-7d52-45f7-bb11-4eeb52ff785f", }, }, }, }, }, JournalRef = new JournalRef() { - Id = "ff785fc3-7814-4d4c-98e0-c2bb89eb75da", - Name = "Elmer Emard", + Id = "c37814d4-c98e-40c2-bb89-eb75dad636c6", + Name = "Mrs. Donna Hand", }, Metadata = new Metadata() { IsDeleted = false, @@ -69,14 +69,14 @@ var res = await sdk.JournalEntries.CreateAsync(new CreateJournalEntryRequest() { ModifiedDate = "2022-10-23T00:00:00.000Z", PostedOn = "2022-10-23T00:00:00.000Z", RecordRef = new JournalEntryRecordReference() { - DataType = "journalEntry", - Id = "503d8bb3-1180-4f73-9ae9-e057eb809e28", + DataType = "accountTransaction", + Id = "31180f73-9ae9-4e05-beb8-09e2810331f3", }, SourceModifiedDate = "2022-10-23T00:00:00.000Z", SupplementalData = new SupplementalData() { Content = new Dictionary>() { - { "voluptatem", new Dictionary() { - { "velit", "dolor" }, + { "atque", new Dictionary() { + { "beatae", "at" }, } }, }, }, @@ -84,7 +84,7 @@ var res = await sdk.JournalEntries.CreateAsync(new CreateJournalEntryRequest() { }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 953676, + TimeoutInMinutes = 794988, }); // handle response diff --git a/sync-for-payables/docs/sdks/journals/README.md b/sync-for-payables/docs/sdks/journals/README.md index 9f46b1b7b..4796decd3 100755 --- a/sync-for-payables/docs/sdks/journals/README.md +++ b/sync-for-payables/docs/sdks/journals/README.md @@ -41,21 +41,21 @@ var res = await sdk.Journals.CreateAsync(new CreateJournalRequest() { Journal = new Journal() { CreatedOn = "2022-10-23T00:00:00.000Z", HasChildren = false, - Id = "981d4c70-0b60-47f3-893c-73b9da3f2ced", - JournalCode = "laborum", + Id = "00b607f3-c93c-473b-9da3-f2ceda7e23f2", + JournalCode = "explicabo", Metadata = new Metadata() { IsDeleted = false, }, ModifiedDate = "2022-10-23T00:00:00.000Z", - Name = "Clarence Feeney Sr.", - ParentId = "exercitationem", + Name = "Dr. Elaine Bernhard", + ParentId = "delectus", SourceModifiedDate = "2022-10-23T00:00:00.000Z", - Status = CodatSyncPayables.Models.Shared.JournalStatus.Unknown, - Type = "ab", + Status = CodatSyncPayables.Models.Shared.JournalStatus.Archived, + Type = "in", }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 72754, + TimeoutInMinutes = 349993, }); // handle response @@ -99,7 +99,7 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.Journals.GetAsync(new GetJournalRequest() { CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", - JournalId = "hic", + JournalId = "labore", }); // handle response @@ -190,7 +190,7 @@ var res = await sdk.Journals.ListAsync(new ListJournalsRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "deserunt", + Query = "numquam", }); // handle response diff --git a/sync-for-payables/docs/sdks/managedata/README.md b/sync-for-payables/docs/sdks/managedata/README.md index bfab1b24d..0fa53b564 100755 --- a/sync-for-payables/docs/sdks/managedata/README.md +++ b/sync-for-payables/docs/sdks/managedata/README.md @@ -107,7 +107,7 @@ var res = await sdk.ManageData.ListPullOperationsAsync(new ListPullOperationsReq OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "delectus", + Query = "repudiandae", }); // handle response @@ -186,7 +186,7 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.ManageData.RefreshDataTypeAsync(new RefreshDataTypeRequest() { CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", - ConnectionId = "4b7544e4-72e8-4028-97a5-b40463a7d575", + ConnectionId = "472e8028-57a5-4b40-863a-7d575f1400e7", DataType = CodatSyncPayables.Models.Shared.DataType.Invoices, }); diff --git a/sync-for-payables/docs/sdks/paymentmethods/README.md b/sync-for-payables/docs/sdks/paymentmethods/README.md index 8538d1727..034f81087 100755 --- a/sync-for-payables/docs/sdks/paymentmethods/README.md +++ b/sync-for-payables/docs/sdks/paymentmethods/README.md @@ -35,7 +35,7 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.PaymentMethods.GetAsync(new GetPaymentMethodRequest() { CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", - PaymentMethodId = "reiciendis", + PaymentMethodId = "commodi", }); // handle response @@ -80,7 +80,7 @@ var res = await sdk.PaymentMethods.ListAsync(new ListPaymentMethodsRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "ab", + Query = "numquam", }); // handle response diff --git a/sync-for-payables/docs/sdks/pushoperations/README.md b/sync-for-payables/docs/sdks/pushoperations/README.md index 669fb95c9..fcbcfd88e 100755 --- a/sync-for-payables/docs/sdks/pushoperations/README.md +++ b/sync-for-payables/docs/sdks/pushoperations/README.md @@ -28,7 +28,7 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.PushOperations.GetAsync(new GetPushOperationRequest() { CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", - PushOperationKey = "400e764a-d733-44ec-9b78-1b36a08088d1", + PushOperationKey = "ad7334ec-1b78-41b3-aa08-088d100efada", }); // handle response @@ -68,7 +68,7 @@ var res = await sdk.PushOperations.ListAsync(new ListPushOperationsRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "quae", + Query = "sed", }); // handle response diff --git a/sync-for-payables/docs/sdks/suppliers/README.md b/sync-for-payables/docs/sdks/suppliers/README.md index ebb1fb52d..09da9020b 100755 --- a/sync-for-payables/docs/sdks/suppliers/README.md +++ b/sync-for-payables/docs/sdks/suppliers/README.md @@ -42,40 +42,40 @@ var res = await sdk.Suppliers.CreateAsync(new CreateSupplierRequest() { Supplier = new Supplier() { Addresses = new List
() { new Address() { - City = "Fort Virgilfurt", - Country = "Sweden", - Line1 = "officia", - Line2 = "sed", - PostalCode = "09902", - Region = "qui", - Type = CodatSyncPayables.Models.Shared.AccountingAddressType.Unknown, + City = "North Tadshire", + Country = "Anguilla", + Line1 = "incidunt", + Line2 = "qui", + PostalCode = "86113", + Region = "modi", + Type = CodatSyncPayables.Models.Shared.AccountingAddressType.Delivery, }, }, - ContactName = "necessitatibus", - DefaultCurrency = "harum", - EmailAddress = "explicabo", - Id = "164cf9ab-8366-4c72-bffd-a9e06bee4825", + ContactName = "voluptatibus", + DefaultCurrency = "molestias", + EmailAddress = "officia", + Id = "b8366c72-3ffd-4a9e-86be-e4825c1fc0e1", Metadata = new Metadata() { IsDeleted = false, }, ModifiedDate = "2022-10-23T00:00:00.000Z", Phone = "+44 25691 154789", - RegistrationNumber = "voluptatibus", + RegistrationNumber = "optio", SourceModifiedDate = "2022-10-23T00:00:00.000Z", Status = CodatSyncPayables.Models.Shared.SupplierStatus.Unknown, SupplementalData = new SupplementalData() { Content = new Dictionary>() { - { "officiis", new Dictionary() { - { "architecto", "architecto" }, + { "facilis", new Dictionary() { + { "reiciendis", "a" }, } }, }, }, - SupplierName = "enim", - TaxNumber = "optio", + SupplierName = "iste", + TaxNumber = "dicta", }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", - TimeoutInMinutes = 525951, + TimeoutInMinutes = 552439, }); // handle response @@ -119,7 +119,7 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.Suppliers.GetAsync(new GetSupplierRequest() { CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", - SupplierId = "perferendis", + SupplierId = "ullam", }); // handle response @@ -210,7 +210,7 @@ var res = await sdk.Suppliers.ListAsync(new ListSuppliersRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "facilis", + Query = "dolore", }); // handle response @@ -258,42 +258,42 @@ var res = await sdk.Suppliers.UpdateAsync(new UpdateSupplierRequest() { Supplier = new Supplier() { Addresses = new List
() { new Address() { - City = "Wauwatosa", - Country = "Nauru", - Line1 = "dicta", - Line2 = "quos", - PostalCode = "22982", - Region = "consequuntur", - Type = CodatSyncPayables.Models.Shared.AccountingAddressType.Delivery, + City = "Fort Rafael", + Country = "Eritrea", + Line1 = "consequuntur", + Line2 = "assumenda", + PostalCode = "97785-9054", + Region = "esse", + Type = CodatSyncPayables.Models.Shared.AccountingAddressType.Billing, }, }, - ContactName = "vero", - DefaultCurrency = "doloribus", - EmailAddress = "impedit", - Id = "ce8f1977-773e-4635-a2a7-b408f05e3d48", + ContactName = "odio", + DefaultCurrency = "nesciunt", + EmailAddress = "debitis", + Id = "63562a7b-408f-405e-bd48-fdaf313a1f5f", Metadata = new Metadata() { IsDeleted = false, }, ModifiedDate = "2022-10-23T00:00:00.000Z", - Phone = "01224 658 999", - RegistrationNumber = "est", + Phone = "(877) 492-8687", + RegistrationNumber = "incidunt", SourceModifiedDate = "2022-10-23T00:00:00.000Z", - Status = CodatSyncPayables.Models.Shared.SupplierStatus.Unknown, + Status = CodatSyncPayables.Models.Shared.SupplierStatus.Active, SupplementalData = new SupplementalData() { Content = new Dictionary>() { - { "vitae", new Dictionary() { - { "nesciunt", "similique" }, + { "cupiditate", new Dictionary() { + { "optio", "alias" }, } }, }, }, - SupplierName = "illo", - TaxNumber = "repellat", + SupplierName = "quidem", + TaxNumber = "nesciunt", }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", ConnectionId = "2e9d2c44-f675-40ba-8049-353bfcb5e171", ForceUpdate = false, - SupplierId = "nemo", - TimeoutInMinutes = 987890, + SupplierId = "commodi", + TimeoutInMinutes = 956124, }); // handle response diff --git a/sync-for-payables/docs/sdks/taxrates/README.md b/sync-for-payables/docs/sdks/taxrates/README.md index 8820733f6..d8b1b638c 100755 --- a/sync-for-payables/docs/sdks/taxrates/README.md +++ b/sync-for-payables/docs/sdks/taxrates/README.md @@ -35,7 +35,7 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.TaxRates.GetAsync(new GetTaxRateRequest() { CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", - TaxRateId = "possimus", + TaxRateId = "consequuntur", }); // handle response @@ -80,7 +80,7 @@ var res = await sdk.TaxRates.ListAsync(new ListTaxRatesRequest() { OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "unde", + Query = "veniam", }); // handle response diff --git a/sync-for-payables/docs/sdks/trackingcategories/README.md b/sync-for-payables/docs/sdks/trackingcategories/README.md index 2b9d4a4a3..0b32f9011 100755 --- a/sync-for-payables/docs/sdks/trackingcategories/README.md +++ b/sync-for-payables/docs/sdks/trackingcategories/README.md @@ -35,7 +35,7 @@ var sdk = new CodatSyncPayablesSDK( var res = await sdk.TrackingCategories.GetAsync(new GetTrackingCategoryRequest() { CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", - TrackingCategoryId = "incidunt", + TrackingCategoryId = "debitis", }); // handle response @@ -80,7 +80,7 @@ var res = await sdk.TrackingCategories.ListAsync(new ListTrackingCategoriesReque OrderBy = "-modifiedDate", Page = 1, PageSize = 100, - Query = "explicabo", + Query = "officia", }); // handle response diff --git a/sync-for-payables/files.gen b/sync-for-payables/files.gen index 22a8152dc..093f9ac0e 100755 --- a/sync-for-payables/files.gen +++ b/sync-for-payables/files.gen @@ -60,6 +60,8 @@ CodatSyncPayables/Models/Operations/CreateBillRequest.cs CodatSyncPayables/Models/Operations/CreateBillResponse.cs CodatSyncPayables/Models/Operations/DeleteBillRequest.cs CodatSyncPayables/Models/Operations/DeleteBillResponse.cs +CodatSyncPayables/Models/Operations/DeleteBillAttachmentRequest.cs +CodatSyncPayables/Models/Operations/DeleteBillAttachmentResponse.cs CodatSyncPayables/Models/Operations/DownloadBillAttachmentRequest.cs CodatSyncPayables/Models/Operations/DownloadBillAttachmentResponse.cs CodatSyncPayables/Models/Operations/GetBillRequest.cs @@ -271,22 +273,6 @@ CodatSyncPayables/Models/Shared/ClientRateLimitResetWebhook.cs CodatSyncPayables/Models/Shared/ClientRateLimitResetWebhookData.cs CodatSyncPayables/Models/Webhooks/ClientRateLimitReachedResponse.cs CodatSyncPayables/Models/Webhooks/ClientRateLimitResetResponse.cs -docs/sdks/codatsyncpayables/README.md -docs/sdks/accounts/README.md -docs/sdks/billcreditnotes/README.md -docs/sdks/billpayments/README.md -docs/sdks/bills/README.md -docs/sdks/companies/README.md -docs/sdks/companyinfo/README.md -docs/sdks/connections/README.md -docs/sdks/journalentries/README.md -docs/sdks/journals/README.md -docs/sdks/managedata/README.md -docs/sdks/paymentmethods/README.md -docs/sdks/pushoperations/README.md -docs/sdks/suppliers/README.md -docs/sdks/taxrates/README.md -docs/sdks/trackingcategories/README.md USAGE.md docs/models/operations/CreateAccountRequest.md docs/models/operations/CreateAccountResponse.md @@ -320,6 +306,8 @@ docs/models/operations/CreateBillRequest.md docs/models/operations/CreateBillResponse.md docs/models/operations/DeleteBillRequest.md docs/models/operations/DeleteBillResponse.md +docs/models/operations/DeleteBillAttachmentRequest.md +docs/models/operations/DeleteBillAttachmentResponse.md docs/models/operations/DownloadBillAttachmentRequest.md docs/models/operations/DownloadBillAttachmentResponse.md docs/models/operations/GetBillRequest.md @@ -531,4 +519,20 @@ docs/models/shared/ClientRateLimitResetWebhook.md docs/models/shared/ClientRateLimitResetWebhookData.md docs/models/webhooks/ClientRateLimitReachedResponse.md docs/models/webhooks/ClientRateLimitResetResponse.md +docs/sdks/codatsyncpayables/README.md +docs/sdks/accounts/README.md +docs/sdks/billcreditnotes/README.md +docs/sdks/billpayments/README.md +docs/sdks/bills/README.md +docs/sdks/companies/README.md +docs/sdks/companyinfo/README.md +docs/sdks/connections/README.md +docs/sdks/journalentries/README.md +docs/sdks/journals/README.md +docs/sdks/managedata/README.md +docs/sdks/paymentmethods/README.md +docs/sdks/pushoperations/README.md +docs/sdks/suppliers/README.md +docs/sdks/taxrates/README.md +docs/sdks/trackingcategories/README.md .gitattributes \ No newline at end of file diff --git a/sync-for-payables/gen.yaml b/sync-for-payables/gen.yaml index 5cafbac7e..dd00b5ef6 100644 --- a/sync-for-payables/gen.yaml +++ b/sync-for-payables/gen.yaml @@ -1,23 +1,23 @@ configVersion: 1.0.0 management: - docChecksum: 216071168e7f110bcf1d8a9878c41754 + docChecksum: d4fce06bcead09dbfdcd3874d046f3bc docVersion: 3.0.0 - speakeasyVersion: 1.87.0 - generationVersion: 2.116.0 + speakeasyVersion: 1.90.0 + generationVersion: 2.125.1 generation: sdkClassName: Codat.SyncPayables singleTagPerOp: false telemetryEnabled: true features: csharp: - core: 2.85.8 + core: 2.85.9 deprecations: 2.81.1 examples: 2.81.2 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 nameOverrides: 2.81.1 csharp: - version: 1.1.0 + version: 1.2.0 author: Codat description: Streamline your customers' accounts payable workflow. dotnetVersion: net6.0