diff --git a/sync-for-payables/README.md b/sync-for-payables/README.md index 7e1df7f3a..60a85658c 100644 --- a/sync-for-payables/README.md +++ b/sync-for-payables/README.md @@ -12,8 +12,6 @@ pip install codat-sync-for-payables ## Example Usage - - ```python import codatsyncpayables from codatsyncpayables.models import operations, shared @@ -27,11 +25,11 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.CreateAccountRequest( account=shared.Account( - currency='USD', + currency='EUR', current_balance=Decimal('0'), description='Invoices the business has issued but has not yet collected payment on.', fully_qualified_category='Asset.Current', - fully_qualified_name='Fixed Asset', + fully_qualified_name='Cash On Hand', id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e', is_bank_account=False, metadata=shared.Metadata( @@ -46,15 +44,15 @@ req = operations.CreateAccountRequest( valid_datatype_links=[ shared.AccountValidDataTypeLinks( links=[ - 'unde', + 'suscipit', ], - property='nulla', + property='iure', ), ], ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', - timeout_in_minutes=544883, + timeout_in_minutes=297534, ) res = s.accounts.create(req) @@ -95,6 +93,7 @@ if res.create_account_response is not None: * [create](docs/sdks/bills/README.md#create) - Create bill * [delete](docs/sdks/bills/README.md#delete) - Delete bill +* [delete_attachment](docs/sdks/bills/README.md#delete_attachment) - Delete bill attachment * [download_attachment](docs/sdks/bills/README.md#download_attachment) - Download bill attachment * [get](docs/sdks/bills/README.md#get) - Get bill * [get_attachment](docs/sdks/bills/README.md#get_attachment) - Get bill attachment @@ -172,4 +171,30 @@ if res.create_account_response is not None: * [get](docs/sdks/trackingcategories/README.md#get) - Get tracking categories * [list](docs/sdks/trackingcategories/README.md#list) - List tracking categories + + + + + + + + + + + + +# Pagination + +Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the +returned response object will have a `Next` method that can be called to pull down the next group of results. If the +return value of `Next` is `None`, then there are no more pages to be fetched. + +Here's an example of one such pagination call: + + + + + + + ### 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 fd4d88b33..8c5f73f33 100644 --- a/sync-for-payables/RELEASES.md +++ b/sync-for-payables/RELEASES.md @@ -28,4 +28,14 @@ Based on: ### Generated - [python v1.1.0] sync-for-payables ### Releases -- [PyPI v1.1.0] https://pypi.org/project/codat-sync-for-payables/1.1.0 - sync-for-payables \ No newline at end of file +- [PyPI v1.1.0] https://pypi.org/project/codat-sync-for-payables/1.1.0 - sync-for-payables + +## 2023-09-22 15:32:22 +### 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 +- [python v1.2.0] sync-for-payables +### Releases +- [PyPI v1.2.0] https://pypi.org/project/codat-sync-for-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..02c92dbe0 --- /dev/null +++ b/sync-for-payables/docs/models/operations/deletebillattachmentrequest.md @@ -0,0 +1,11 @@ +# DeleteBillAttachmentRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `attachment_id` | *str* | :heavy_check_mark: | Unique identifier for an attachment | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `bill_id` | *str* | :heavy_check_mark: | Unique identifier for a bill | 13d946f0-c5d5-42bc-b092-97ece17923ab | +| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `connection_id` | *str* | :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..ca0145840 --- /dev/null +++ b/sync-for-payables/docs/models/operations/deletebillattachmentresponse.md @@ -0,0 +1,12 @@ +# DeleteBillAttachmentResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | +| `push_operation` | [Optional[shared.PushOperation]](../../models/shared/pushoperation.md) | :heavy_minus_sign: | OK | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :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 ec150aa29..6d7daefbc 100755 --- a/sync-for-payables/docs/sdks/accounts/README.md +++ b/sync-for-payables/docs/sdks/accounts/README.md @@ -60,13 +60,13 @@ req = operations.CreateAccountRequest( links=[ 'suscipit', ], - property='iure', + property='molestiae', ), ], ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', - timeout_in_minutes=297534, + timeout_in_minutes=791725, ) res = s.accounts.create(req) @@ -112,7 +112,7 @@ s = codatsyncpayables.CodatSyncPayables( ) req = operations.GetAccountRequest( - account_id='debitis', + account_id='placeat', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) @@ -209,7 +209,7 @@ req = operations.ListAccountsRequest( order_by='-modifiedDate', page=1, page_size=100, - query='ipsa', + query='voluptatum', ) res = s.accounts.list(req) diff --git a/sync-for-payables/docs/sdks/billcreditnotes/README.md b/sync-for-payables/docs/sdks/billcreditnotes/README.md index e1df570e7..5dddb5da2 100755 --- a/sync-for-payables/docs/sdks/billcreditnotes/README.md +++ b/sync-for-payables/docs/sdks/billcreditnotes/README.md @@ -42,58 +42,58 @@ req = operations.CreateBillCreditNoteRequest( bill_credit_note=shared.BillCreditNote( allocated_on_date='2022-10-23T00:00:00.000Z', bill_credit_note_number='91fe2a83-e161-4c21-929d-c5c10c4b07e5', - currency='GBP', - currency_rate=Decimal('3834.41'), + currency='USD', + currency_rate=Decimal('3927.85'), discount_percentage=Decimal('0'), id='1509398f-98e2-436d-8a5d-c042e0c74ffc', issue_date='2022-10-23T00:00:00.000Z', line_items=[ shared.BillCreditNoteLineItem( account_ref=shared.AccountRef( - id='cc8796ed-151a-405d-bc2d-df7cc78ca1ba', - name='Wayne Lind', + id='d151a05d-fc2d-4df7-8c78-ca1ba928fc81', + name='Tanya Gleason', ), - description='totam', - discount_amount=Decimal('1059.07'), - discount_percentage=Decimal('4146.62'), + description='cum', + discount_amount=Decimal('4561.5'), + discount_percentage=Decimal('2165.5'), item_ref=shared.BillCreditNoteLineItemItemReference( - id='742cb739-2059-4293-96fe-a7596eb10faa', - name='Ernest Ebert', + id='92059293-96fe-4a75-96eb-10faaa2352c5', + name='Corey Hane III', ), - quantity=Decimal('7506.86'), - sub_total=Decimal('3154.28'), - tax_amount=Decimal('6078.31'), + quantity=Decimal('6342.74'), + sub_total=Decimal('9883.74'), + tax_amount=Decimal('9589.5'), tax_rate_ref=shared.TaxRateRef( - effective_tax_rate=Decimal('3637.11'), - id='5907aff1-a3a2-4fa9-8677-39251aa52c3f', - name='Mr. Alberta Schuster', + effective_tax_rate=Decimal('1020.44'), + id='a3a2fa94-6773-4925-9aa5-2c3f5ad019da', + name='Johanna Wolf', ), - total_amount=Decimal('8379.45'), + total_amount=Decimal('5096.24'), tracking=shared.BillCreditNoteLineItemTracking( category_refs=[ shared.TrackingCategoryRef( - id='a1ffe78f-097b-4007-8f15-471b5e6e13b9', - name='Ervin Gleason', + id='f097b007-4f15-4471-b5e6-e13b99d488e1', + name='Kirk Boehm', ), ], customer_ref=shared.BillCreditNoteLineItemTrackingCustomerRef( - company_name='voluptates', - id='1e91e450-ad2a-4bd4-8269-802d502a94bb', + company_name='enim', + id='0ad2abd4-4269-4802-9502-a94bb4f63c96', ), - is_billed_to=shared.BilledToType.NOT_APPLICABLE, + is_billed_to=shared.BilledToType.CUSTOMER, is_rebilled_to=shared.BilledToType.PROJECT, project_ref=shared.BillCreditNoteLineItemTrackingProjectReference( - id='63c969e9-a3ef-4a77-9fb1-4cd66ae395ef', - name='Rene Reinger', + id='9a3efa77-dfb1-44cd-a6ae-395efb9ba88f', + name='Sandy Huels', ), ), tracking_category_refs=[ shared.TrackingCategoryRef( - id='8f3a6699-7074-4ba4-869b-6e2141959890', - name='Abel O'Hara', + id='97074ba4-469b-46e2-9419-59890afa563e', + name='Vivian Boyle', ), ], - unit_amount=Decimal('2212.62'), + unit_amount=Decimal('8919.24'), ), ], metadata=shared.Metadata( @@ -106,21 +106,21 @@ req = operations.CreateBillCreditNoteRequest( allocation=shared.ItemsAllocation( allocated_on_date='2022-10-23T00:00:00.000Z', currency='USD', - currency_rate=Decimal('972.6'), - total_amount=Decimal('4358.65'), + currency_rate=Decimal('7038.89'), + total_amount=Decimal('4479.26'), ), payment=shared.PaymentAllocationPayment( account_ref=shared.AccountRef( - id='fe4c8b71-1e5b-47fd-aed0-28921cddc692', - name='Donna Bernhard', + id='11e5b7fd-2ed0-4289-a1cd-dc692601fb57', + name='Candice Beatty', ), - currency='USD', - currency_rate=Decimal('4535.43'), - id='6b0d5f0d-30c5-4fbb-a587-053202c73d5f', - note='recusandae', + currency='EUR', + currency_rate=Decimal('166.27'), + id='d30c5fbb-2587-4053-a02c-73d5fe9b90c2', + note='blanditiis', paid_on_date='2022-10-23T00:00:00.000Z', - reference='facilis', - total_amount=Decimal('5966.56'), + reference='eaque', + total_amount=Decimal('5772.29'), ), ), ], @@ -130,28 +130,28 @@ req = operations.CreateBillCreditNoteRequest( sub_total=Decimal('805.78'), supplemental_data=shared.SupplementalData( content={ - "porro": { - "consequuntur": 'blanditiis', + "adipisci": { + "asperiores": 'earum', }, }, ), supplier_ref=shared.SupplierRef( - id='909b3fe4-9a8d-49cb-b486-33323f9b77f3', - supplier_name='dolorum', + id='49a8d9cb-f486-4333-a3f9-b77f3a410067', + supplier_name='quaerat', ), total_amount=Decimal('805.78'), total_discount=Decimal('0'), total_tax_amount=Decimal('0'), withholding_tax=[ shared.WithholdingTaxitems( - amount=Decimal('2543.56'), - name='Melissa Bednar', + amount=Decimal('8810.05'), + name='Jan Hodkiewicz', ), ], ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', - timeout_in_minutes=311796, + timeout_in_minutes=542499, ) res = s.bill_credit_notes.create(req) @@ -197,7 +197,7 @@ s = codatsyncpayables.CodatSyncPayables( ) req = operations.GetBillCreditNoteRequest( - bill_credit_note_id='accusamus', + bill_credit_note_id='sit', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) @@ -295,7 +295,7 @@ req = operations.ListBillCreditNotesRequest( order_by='-modifiedDate', page=1, page_size=100, - query='quidem', + query='fugiat', ) res = s.bill_credit_notes.list(req) @@ -347,58 +347,58 @@ req = operations.UpdateBillCreditNoteRequest( bill_credit_note=shared.BillCreditNote( allocated_on_date='2022-10-23T00:00:00.000Z', bill_credit_note_number='91fe2a83-e161-4c21-929d-c5c10c4b07e5', - currency='USD', - currency_rate=Decimal('6176.58'), + currency='EUR', + currency_rate=Decimal('6793.93'), discount_percentage=Decimal('0'), id='1509398f-98e2-436d-8a5d-c042e0c74ffc', issue_date='2022-10-23T00:00:00.000Z', line_items=[ shared.BillCreditNoteLineItem( account_ref=shared.AccountRef( - id='80d1ba77-a89e-4bf7-b7ae-4203ce5e6a95', - name='Dr. Jimmie Murphy', + id='7a89ebf7-37ae-4420-bce5-e6a95d8a0d44', + name='Bernadette Torp', ), - description='tempora', - discount_amount=Decimal('4254.51'), - discount_percentage=Decimal('7980.47'), + description='a', + discount_amount=Decimal('4561.3'), + discount_percentage=Decimal('6874.88'), item_ref=shared.BillCreditNoteLineItemItemReference( - id='e2af7a73-cf3b-4e45-bf87-0b326b5a7342', - name='Simon Stracke MD', + id='73cf3be4-53f8-470b-b26b-5a73429cdb1a', + name='Randall Cole', ), - quantity=Decimal('5173.79'), - sub_total=Decimal('2768.94'), - tax_amount=Decimal('1320.68'), + quantity=Decimal('7044.74'), + sub_total=Decimal('3960.6'), + tax_amount=Decimal('4631.5'), tax_rate_ref=shared.TaxRateRef( - effective_tax_rate=Decimal('1749.09'), - id='bb679d23-2271-45bf-8cbb-1e31b8b90f34', - name='Mr. Josephine Pagac V', + effective_tax_rate=Decimal('5654.21'), + id='d2322715-bf0c-4bb1-a31b-8b90f3443a11', + name='Miss Billie Ward', ), - total_amount=Decimal('9295.3'), + total_amount=Decimal('7851.53'), tracking=shared.BillCreditNoteLineItemTracking( category_refs=[ shared.TrackingCategoryRef( - id='0adcf4b9-2187-49fc-a953-f73ef7fbc7ab', - name='Allan Greenholt', + id='f4b92187-9fce-4953-b73e-f7fbc7abd74d', + name='Earl Mosciski DVM', ), ], customer_ref=shared.BillCreditNoteLineItemTrackingCustomerRef( - company_name='sequi', - id='9c0f5d2c-ff7c-470a-8562-6d436813f16d', + company_name='exercitationem', + id='d2cff7c7-0a45-4626-9436-813f16d9f5fc', ), - is_billed_to=shared.BilledToType.CUSTOMER, - is_rebilled_to=shared.BilledToType.PROJECT, + is_billed_to=shared.BilledToType.PROJECT, + is_rebilled_to=shared.BilledToType.NOT_APPLICABLE, project_ref=shared.BillCreditNoteLineItemTrackingProjectReference( - id='5fce6c55-6146-4c3e-a50f-b008c42e141a', - name='Clark Franecki', + id='c556146c-3e25-40fb-808c-42e141aac366', + name='Clifton Simonis', ), ), tracking_category_refs=[ shared.TrackingCategoryRef( - id='c8dd6b14-4290-4747-8778-a7bd466d28c1', - name='Amelia Predovic', + id='b1442907-4747-478a-bbd4-66d28c10ab3c', + name='Salvatore Parker', ), ], - unit_amount=Decimal('8472.76'), + unit_amount=Decimal('3738.13'), ), ], metadata=shared.Metadata( @@ -411,21 +411,21 @@ req = operations.UpdateBillCreditNoteRequest( allocation=shared.ItemsAllocation( allocated_on_date='2022-10-23T00:00:00.000Z', currency='GBP', - currency_rate=Decimal('1783.67'), - total_amount=Decimal('3738.13'), + currency_rate=Decimal('2728.22'), + total_amount=Decimal('8920.5'), ), payment=shared.PaymentAllocationPayment( account_ref=shared.AccountRef( - id='1904e523-c7e0-4bc7-978e-4796f2a70c68', - name='Eugene Leuschke', + id='523c7e0b-c717-48e4-b96f-2a70c688282a', + name='Randall Lindgren', ), currency='USD', - currency_rate=Decimal('2775.96'), - id='82562f22-2e98-417e-a17c-be61e6b7b95b', - note='eligendi', + currency_rate=Decimal('1470.14'), + id='f222e981-7ee1-47cb-a61e-6b7b95bc0ab3', + note='cumque', paid_on_date='2022-10-23T00:00:00.000Z', - reference='culpa', - total_amount=Decimal('7313.98'), + reference='consequatur', + total_amount=Decimal('7963.92'), ), ), ], @@ -435,30 +435,30 @@ req = operations.UpdateBillCreditNoteRequest( sub_total=Decimal('805.78'), supplemental_data=shared.SupplementalData( content={ - "cumque": { - "consequuntur": 'consequatur', + "sapiente": { + "consectetur": 'esse', }, }, ), supplier_ref=shared.SupplierRef( - id='c4f3789f-d871-4f99-9d2e-fd121aa6f1e6', - supplier_name='in', + id='89fd871f-99dd-42ef-9121-aa6f1e674bdb', + supplier_name='accusantium', ), total_amount=Decimal('805.78'), total_discount=Decimal('0'), total_tax_amount=Decimal('0'), withholding_tax=[ shared.WithholdingTaxitems( - amount=Decimal('2586.84'), - name='Mrs. Gilberto Roberts', + amount=Decimal('3069.86'), + name='Samuel Hermiston', ), ], ), - bill_credit_note_id='dicta', + bill_credit_note_id='nisi', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', force_update=False, - timeout_in_minutes=355369, + timeout_in_minutes=16328, ) res = s.bill_credit_notes.update(req) diff --git a/sync-for-payables/docs/sdks/billpayments/README.md b/sync-for-payables/docs/sdks/billpayments/README.md index e48735ec6..ba582a103 100755 --- a/sync-for-payables/docs/sdks/billpayments/README.md +++ b/sync-for-payables/docs/sdks/billpayments/README.md @@ -41,23 +41,23 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.CreateBillPaymentRequest( bill_payment=shared.BillPayment( account_ref=shared.AccountRef( - id='756082d6-8ea1-49f1-9170-51339d08086a', - name='Mrs. Priscilla Fritsch', + id='82d68ea1-9f1d-4170-9133-9d08086a1840', + name='Toni Fritsch', ), - currency='GBP', - currency_rate=Decimal('7710.89'), + currency='USD', + currency_rate=Decimal('120.36'), date_='2022-10-23T00:00:00.000Z', id='3d5a8e00-d108-4045-8823-7f342676cffa', lines=[ shared.BillPaymentLine( allocated_on_date='2022-10-23T00:00:00.000Z', - amount=Decimal('120.36'), + amount=Decimal('9816.4'), links=[ shared.BillPaymentLineLink( - amount=Decimal('4910.25'), - currency_rate=Decimal('1154.84'), - id='f93f5f06-42da-4c7a-b515-cc413aa63aae', - type=shared.BillPaymentLineLinkType.BILL_PAYMENT, + amount=Decimal('6184.8'), + currency_rate=Decimal('2446.51'), + id='f5f0642d-ac7a-4f51-9cc4-13aa63aae8d6', + type=shared.BillPaymentLineLinkType.CREDIT_NOTE, ), ], ), @@ -68,24 +68,24 @@ req = operations.CreateBillPaymentRequest( modified_date='2022-10-23T00:00:00.000Z', note='Bill Payment against bill c13e37b6-dfaa-4894-b3be-9fe97bda9f44', payment_method_ref='vel', - reference='ducimus', + reference='labore', source_modified_date='2022-10-23T00:00:00.000Z', supplemental_data=shared.SupplementalData( content={ - "vel": { - "labore": 'possimus', + "facilis": { + "cum": 'commodi', }, }, ), supplier_ref=shared.SupplierRef( - id='bb675fd5-e60b-4375-ad4f-6fbee41f3331', - supplier_name='dignissimos', + id='75fd5e60-b375-4ed4-b6fb-ee41f33317fe', + supplier_name='consectetur', ), total_amount=Decimal('1329.54'), ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', - timeout_in_minutes=950953, + timeout_in_minutes=358107, ) res = s.bill_payments.create(req) @@ -146,7 +146,7 @@ s = codatsyncpayables.CodatSyncPayables( ) req = operations.DeleteBillPaymentRequest( - bill_payment_id='debitis', + bill_payment_id='harum', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) @@ -193,7 +193,7 @@ s = codatsyncpayables.CodatSyncPayables( ) req = operations.GetBillPaymentsRequest( - bill_payment_id='consectetur', + bill_payment_id='laboriosam', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) @@ -291,7 +291,7 @@ req = operations.ListBillPaymentsRequest( order_by='-modifiedDate', page=1, page_size=100, - query='corporis', + query='ipsa', ) res = s.bill_payments.list(req) diff --git a/sync-for-payables/docs/sdks/bills/README.md b/sync-for-payables/docs/sdks/bills/README.md index a392c062b..d326ead56 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 +* [delete_attachment](#delete_attachment) - Delete bill attachment * [download_attachment](#download_attachment) - Download bill attachment * [get](#get) - Get bill * [get_attachment](#get_attachment) - Get bill attachment @@ -45,123 +46,123 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.CreateBillRequest( bill=shared.Bill( - amount_due=Decimal('6897.68'), - currency='USD', - currency_rate=Decimal('583.56'), + amount_due=Decimal('9167.27'), + currency='EUR', + currency_rate=Decimal('1138.16'), due_date='2022-10-23T00:00:00.000Z', - id='b1ea4265-55ba-43c2-8744-ed53b88f3a8d', + id='a426555b-a3c2-4874-8ed5-3b88f3a8d8f5', issue_date='2022-10-23T00:00:00.000Z', line_items=[ shared.BillLineItem( account_ref=shared.AccountRef( - id='f5c0b2f2-fb7b-4194-a276-b26916fe1f08', - name='Troy Cormier', + id='0b2f2fb7-b194-4a27-ab26-916fe1f08f42', + name='Herbert Treutel', ), - description='necessitatibus', - discount_amount=Decimal('2155.29'), - discount_percentage=Decimal('4067.33'), + description='occaecati', + discount_amount=Decimal('5520.78'), + discount_percentage=Decimal('9757.52'), is_direct_cost=False, item_ref=shared.ItemRef( - id='98f447f6-03e8-4b44-9e80-ca55efd20e45', - name='Cecelia Braun', + id='447f603e-8b44-45e8-8ca5-5efd20e457e1', + name='Jorge Langosh', ), - quantity=Decimal('5106.29'), - sub_total=Decimal('7400.98'), - tax_amount=Decimal('3868.27'), + quantity=Decimal('6805.15'), + sub_total=Decimal('5300.89'), + tax_amount=Decimal('6223.85'), tax_rate_ref=shared.TaxRateRef( - effective_tax_rate=Decimal('6805.15'), - id='89fbe3a5-aa8e-4482-8d0a-b4075088e518', - name='Jane Bailey', + effective_tax_rate=Decimal('9447.08'), + id='be3a5aa8-e482-44d0-ab40-75088e518620', + name='Bernice Ullrich II', ), - total_amount=Decimal('9061.72'), + total_amount=Decimal('9688.65'), tracking=shared.Tracking( category_refs=[ shared.TrackingCategoryRef( - id='904f3b11-94b8-4abf-a03a-79f9dfe0ab7d', - name='Max O'Connell DDS', + id='3b1194b8-abf6-403a-b9f9-dfe0ab7da8a5', + name='Ms. Alexandra VonRueden', ), ], customer_ref=shared.TrackingCustomerRef( - company_name='repudiandae', - id='187f86bc-173d-4689-aee9-526f8d986e88', + company_name='asperiores', + id='86bc173d-689e-4ee9-926f-8d986e881ead', ), - is_billed_to=shared.BilledToType.UNKNOWN, + is_billed_to=shared.BilledToType.NOT_APPLICABLE, is_rebilled_to=shared.BilledToType.PROJECT, project_ref=shared.TrackingProjectReference( - id='ad4f0e10-1256-43f9-8e29-e973e922a57a', - name='Ana Predovic', + id='0e101256-3f94-4e29-a973-e922a57a15be', + name='Meghan Batz IV', ), ), tracking_category_refs=[ shared.TrackingCategoryRef( - id='e060807e-2b6e-43ab-8845-f0597a60ff2a', - name='Joanne Parisian DVM', + id='07e2b6e3-ab88-445f-8597-a60ff2a54a31', + name='Arturo Hagenes', ), ], - unit_amount=Decimal('6072.49'), + unit_amount=Decimal('2840'), ), ], metadata=shared.Metadata( is_deleted=False, ), modified_date='2022-10-23T00:00:00.000Z', - note='molestiae', + note='adipisci', payment_allocations=[ shared.BillPaymentAllocation( allocation=shared.BillPaymentAllocationAllocation( allocated_on_date='2022-10-23T00:00:00.000Z', - currency='GBP', - currency_rate=Decimal('6330.62'), - total_amount=Decimal('2384.13'), + currency='USD', + currency_rate=Decimal('4326.06'), + total_amount=Decimal('3679.27'), ), payment=shared.PaymentAllocationPayment( account_ref=shared.AccountRef( - id='e865e795-6f92-451a-9a9d-a660ff57bfaa', - name='Edwin Wolf', + id='e7956f92-51a5-4a9d-a660-ff57bfaad4f9', + name='Miss Timmy Runolfsdottir', ), - currency='EUR', - currency_rate=Decimal('7645.62'), - id='1b4512c1-0326-448d-82f6-15199ebfd0e9', - note='maiores', + currency='USD', + currency_rate=Decimal('820.57'), + id='2c103264-8dc2-4f61-9199-ebfd0e9fe6c6', + note='dolorem', paid_on_date='2022-10-23T00:00:00.000Z', - reference='aliquid', - total_amount=Decimal('7809.31'), + reference='cumque', + total_amount=Decimal('6849.35'), ), ), ], purchase_order_refs=[ shared.BillPurchaseOrderReference( - id='632ca3ae-d011-4799-a312-fde04771778f', - purchase_order_number='reiciendis', + id='3aed0117-9963-412f-9e04-771778ff61d0', + purchase_order_number='dicta', ), ], - reference='vel', + reference='odio', source_modified_date='2022-10-23T00:00:00.000Z', - status=shared.BillStatus.DRAFT, - sub_total=Decimal('396.5'), + status=shared.BillStatus.PARTIALLY_PAID, + sub_total=Decimal('4037.93'), supplemental_data=shared.BillSupplementalData( content={ - "dicta": { - "odio": 'tempora', + "consectetur": { + "aliquid": 'ipsa', }, }, ), supplier_ref=shared.SupplierRef( - id='76360a15-db6a-4660-a59a-1adeaab5851d', - supplier_name='ex', + id='a15db6a6-6065-49a1-adea-ab5851d6c645', + supplier_name='expedita', ), - tax_amount=Decimal('7758.03'), - total_amount=Decimal('4053.73'), + tax_amount=Decimal('299.5'), + total_amount=Decimal('5615.77'), withholding_tax=[ shared.BillWithholdingTax( - amount=Decimal('2811.53'), - name='Lula Bartell', + amount=Decimal('7372.54'), + name='Doris Lemke MD', ), ], ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', - timeout_in_minutes=399660, + timeout_in_minutes=665678, ) res = s.bills.create(req) @@ -227,7 +228,7 @@ s = codatsyncpayables.CodatSyncPayables( ) req = operations.DeleteBillRequest( - bill_id='13d946f0-c5d5-42bc-b092-97ece17923ab', + bill_id='7110701885', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', ) @@ -251,6 +252,68 @@ if res.push_operation is not None: **[operations.DeleteBillResponse](../../models/operations/deletebillresponse.md)** +## delete_attachment + +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 + +```python +import codatsyncpayables +from codatsyncpayables.models import operations, shared + +s = codatsyncpayables.CodatSyncPayables( + security=shared.Security( + auth_header="Basic BASE_64_ENCODED(API_KEY)", + ), +) + +req = operations.DeleteBillAttachmentRequest( + attachment_id='8a210b68-6988-11ed-a1eb-0242ac120002', + bill_id='13d946f0-c5d5-42bc-b092-97ece17923ab', + company_id='8a210b68-6988-11ed-a1eb-0242ac120002', + connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', +) + +res = s.bills.delete_attachment(req) + +if res.push_operation is not None: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `request` | [operations.DeleteBillAttachmentRequest](../../models/operations/deletebillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + + +### Response + +**[operations.DeleteBillAttachmentResponse](../../models/operations/deletebillattachmentresponse.md)** + + ## download_attachment The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`. @@ -274,7 +337,7 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.DownloadBillAttachmentRequest( attachment_id='8a210b68-6988-11ed-a1eb-0242ac120002', - bill_id='7110701885', + bill_id='EILBDVJVNUAGVKRQ', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', ) @@ -322,7 +385,7 @@ s = codatsyncpayables.CodatSyncPayables( ) req = operations.GetBillRequest( - bill_id='7110701885', + bill_id='EILBDVJVNUAGVKRQ', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) @@ -467,7 +530,7 @@ req = operations.ListBillsRequest( order_by='-modifiedDate', page=1, page_size=100, - query='rerum', + query='fuga', ) res = s.bills.list(req) @@ -511,7 +574,7 @@ s = codatsyncpayables.CodatSyncPayables( ) req = operations.ListBillAttachmentsRequest( - bill_id='7110701885', + bill_id='EILBDVJVNUAGVKRQ', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', ) @@ -563,125 +626,125 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.UpdateBillRequest( bill=shared.Bill( - amount_due=Decimal('6347.86'), + amount_due=Decimal('8913.15'), currency='GBP', - currency_rate=Decimal('9591.43'), + currency_rate=Decimal('12.07'), due_date='2022-10-23T00:00:00.000Z', - id='1ade008e-6f8c-45f3-90d8-cdb5a3418143', + id='e6f8c5f3-50d8-4cdb-9a34-181430104218', issue_date='2022-10-23T00:00:00.000Z', line_items=[ shared.BillLineItem( account_ref=shared.AccountRef( - id='10421813-d520-48ec-a7e2-53b668451c6c', - name='Mrs. Kate Cronin', + id='3d5208ec-e7e2-453b-a684-51c6c6e205e1', + name='Teri Thiel', ), - description='quasi', - discount_amount=Decimal('3925.69'), - discount_percentage=Decimal('8711.03'), + description='sequi', + discount_amount=Decimal('9873.49'), + discount_percentage=Decimal('9180.92'), is_direct_cost=False, item_ref=shared.ItemRef( - id='eab3fec9-578a-4645-8427-3a8418d16230', - name='Miss Dominick Rogahn', + id='c9578a64-5842-473a-8418-d162309fb092', + name='Miss Joey Dach', ), - quantity=Decimal('5790.11'), - sub_total=Decimal('6128.67'), - tax_amount=Decimal('1700.99'), + quantity=Decimal('9768.02'), + sub_total=Decimal('7196.2'), + tax_amount=Decimal('6085.93'), tax_rate_ref=shared.TaxRateRef( - effective_tax_rate=Decimal('813.69'), - id='aefb9f58-c4d8-46e6-8e4b-e056013f59da', - name='Ida Kilback', + effective_tax_rate=Decimal('9663.9'), + id='58c4d86e-68e4-4be0-9601-3f59da757a59', + name='Garrett Welch', ), - total_amount=Decimal('5718.44'), + total_amount=Decimal('4043.06'), tracking=shared.Tracking( category_refs=[ shared.TrackingCategoryRef( - id='ecfef66e-f1ca-4a33-83c2-beb477373c8d', - name='Christina Wolf', + id='6ef1caa3-383c-42be-b477-373c8d72f64d', + name='Dr. Muriel Reinger', ), ], customer_ref=shared.TrackingCustomerRef( - company_name='quibusdam', - id='1db1f2c4-3106-461e-9634-9e1cf9e06e3a', + company_name='porro', + id='4310661e-9634-49e1-8f9e-06e3a437000a', ), - is_billed_to=shared.BilledToType.NOT_APPLICABLE, - is_rebilled_to=shared.BilledToType.UNKNOWN, + is_billed_to=shared.BilledToType.PROJECT, + is_rebilled_to=shared.BilledToType.NOT_APPLICABLE, project_ref=shared.TrackingProjectReference( - id='7000ae6b-6bc9-4b8f-b59e-ac55a9741d31', - name='Florence Hand', + id='b6bc9b8f-759e-4ac5-9a97-41d311352965', + name='Wm Legros', ), ), tracking_category_refs=[ shared.TrackingCategoryRef( - id='65bb8a72-0261-4143-9e13-9dbc2259b1ab', - name='Oliver Luettgen IV', + id='20261143-5e13-49db-8225-9b1abda8c070', + name='Walter Beatty', ), ], - unit_amount=Decimal('573.2'), + unit_amount=Decimal('7551.06'), ), ], metadata=shared.Metadata( is_deleted=False, ), modified_date='2022-10-23T00:00:00.000Z', - note='inventore', + note='voluptatem', payment_allocations=[ shared.BillPaymentAllocation( allocation=shared.BillPaymentAllocationAllocation( allocated_on_date='2022-10-23T00:00:00.000Z', currency='USD', - currency_rate=Decimal('2928.88'), - total_amount=Decimal('7551.06'), + currency_rate=Decimal('1729.51'), + total_amount=Decimal('8247.98'), ), payment=shared.PaymentAllocationPayment( account_ref=shared.AccountRef( - id='b0672d1a-d879-4eeb-9665-b85efbd02bae', - name='Mamie Torp', + id='1ad879ee-b966-45b8-9efb-d02bae0be2d7', + name='Fred Champlin', ), - currency='USD', - currency_rate=Decimal('5101.28'), - id='2259e3ea-4b51-497f-9244-3da7ce52b895', - note='placeat', + currency='EUR', + currency_rate=Decimal('2393.37'), + id='ea4b5197-f924-443d-a7ce-52b895c537c6', + note='modi', paid_on_date='2022-10-23T00:00:00.000Z', - reference='neque', - total_amount=Decimal('4468.77'), + reference='magnam', + total_amount=Decimal('9149.71'), ), ), ], purchase_order_refs=[ shared.BillPurchaseOrderReference( - id='c6454efb-0b34-4896-83ca-5acfbe2fd570', - purchase_order_number='odio', + id='fb0b3489-6c3c-4a5a-8fbe-2fd570757792', + purchase_order_number='error', ), ], - reference='minima', + reference='veritatis', source_modified_date='2022-10-23T00:00:00.000Z', status=shared.BillStatus.PARTIALLY_PAID, - sub_total=Decimal('5678.46'), + sub_total=Decimal('8667.89'), supplemental_data=shared.BillSupplementalData( content={ - "dolores": { - "error": 'veritatis', + "itaque": { + "similique": 'optio', }, }, ), supplier_ref=shared.SupplierRef( - id='77deac64-6ecb-4573-809e-3eb1e5a2b12e', - supplier_name='nobis', + id='646ecb57-3409-4e3e-b1e5-a2b12eb07f11', + supplier_name='laboriosam', ), - tax_amount=Decimal('568.77'), - total_amount=Decimal('4973.57'), + tax_amount=Decimal('8634.71'), + total_amount=Decimal('7294.48'), withholding_tax=[ shared.BillWithholdingTax( - amount=Decimal('9804.86'), - name='Joyce Howe', + amount=Decimal('5665.06'), + name='Maurice Haag', ), ], ), - bill_id='7110701885', + bill_id='EILBDVJVNUAGVKRQ', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', force_update=False, - timeout_in_minutes=578210, + timeout_in_minutes=574032, ) res = s.bills.update(req) @@ -730,10 +793,10 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.UploadBillAttachmentRequest( request_body=operations.UploadBillAttachmentRequestBody( - content='nemo'.encode(), - request_body='aliquam', + content='enim'.encode(), + request_body='hic', ), - bill_id='9wg4lep4ush5cxs79pl8sozmsndbaukll3ind4g7buqbm1h2', + bill_id='7110701885', company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='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 448a9d062..188f3a7a9 100755 --- a/sync-for-payables/docs/sdks/companies/README.md +++ b/sync-for-payables/docs/sdks/companies/README.md @@ -155,7 +155,7 @@ req = operations.ListCompaniesRequest( order_by='-modifiedDate', page=1, page_size=100, - query='doloribus', + query='quas', ) res = s.companies.list(req) diff --git a/sync-for-payables/docs/sdks/connections/README.md b/sync-for-payables/docs/sdks/connections/README.md index 00e74c8e3..dce46fcf7 100755 --- a/sync-for-payables/docs/sdks/connections/README.md +++ b/sync-for-payables/docs/sdks/connections/README.md @@ -32,7 +32,7 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.CreateConnectionRequest( request_body=operations.CreateConnectionRequestBody( - platform_key='eligendi', + platform_key='totam', ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) @@ -158,7 +158,7 @@ req = operations.ListConnectionsRequest( order_by='-modifiedDate', page=1, page_size=100, - query='sint', + query='molestias', ) res = s.connections.list(req) diff --git a/sync-for-payables/docs/sdks/journalentries/README.md b/sync-for-payables/docs/sdks/journalentries/README.md index c6c1036a4..ce319f9a8 100755 --- a/sync-for-payables/docs/sdks/journalentries/README.md +++ b/sync-for-payables/docs/sdks/journalentries/README.md @@ -38,30 +38,30 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.CreateJournalEntryRequest( journal_entry=shared.JournalEntry( created_on='2022-10-23T00:00:00.000Z', - description='animi', - id='88970e18-9dbb-430f-8b33-ea055b197cd4', + description='saepe', + id='189dbb30-fcb3-43ea-855b-197cd44e2f52', journal_lines=[ shared.JournalLine( account_ref=shared.AccountRef( - id='4e2f52d8-2d35-413b-b6f4-8b656bcdb35f', - name='Russell Toy', + id='d82d3513-bb6f-448b-a56b-cdb35ff2e4b2', + name='Audrey Durgan', ), - currency='eos', - description='reprehenderit', - net_amount=Decimal('3455.06'), + currency='rem', + description='eligendi', + net_amount=Decimal('8536.06'), tracking=shared.JournalLineTracking( record_refs=[ shared.RecordRef( - data_type='journalEntry', - id='7a8cd9e7-319c-4177-9525-f77b114eeb52', + data_type='accountTransaction', + id='e7319c17-7d52-45f7-bb11-4eeb52ff785f', ), ], ), ), ], journal_ref=shared.JournalRef( - id='ff785fc3-7814-4d4c-98e0-c2bb89eb75da', - name='Elmer Emard', + id='c37814d4-c98e-40c2-bb89-eb75dad636c6', + name='Mrs. Donna Hand', ), metadata=shared.Metadata( is_deleted=False, @@ -69,14 +69,14 @@ req = operations.CreateJournalEntryRequest( modified_date='2022-10-23T00:00:00.000Z', posted_on='2022-10-23T00:00:00.000Z', record_ref=shared.JournalEntryRecordReference( - data_type='journalEntry', - id='503d8bb3-1180-4f73-9ae9-e057eb809e28', + data_type='accountTransaction', + id='31180f73-9ae9-4e05-beb8-09e2810331f3', ), source_modified_date='2022-10-23T00:00:00.000Z', supplemental_data=shared.SupplementalData( content={ - "voluptatem": { - "velit": 'dolor', + "atque": { + "beatae": 'at', }, }, ), @@ -84,7 +84,7 @@ req = operations.CreateJournalEntryRequest( ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', - timeout_in_minutes=953676, + timeout_in_minutes=794988, ) res = s.journal_entries.create(req) diff --git a/sync-for-payables/docs/sdks/journals/README.md b/sync-for-payables/docs/sdks/journals/README.md index c6e54695a..38a896239 100755 --- a/sync-for-payables/docs/sdks/journals/README.md +++ b/sync-for-payables/docs/sdks/journals/README.md @@ -40,21 +40,21 @@ req = operations.CreateJournalRequest( journal=shared.Journal( created_on='2022-10-23T00:00:00.000Z', has_children=False, - id='981d4c70-0b60-47f3-893c-73b9da3f2ced', - journal_code='laborum', + id='00b607f3-c93c-473b-9da3-f2ceda7e23f2', + journal_code='explicabo', metadata=shared.Metadata( is_deleted=False, ), modified_date='2022-10-23T00:00:00.000Z', - name='Clarence Feeney Sr.', - parent_id='exercitationem', + name='Dr. Elaine Bernhard', + parent_id='delectus', source_modified_date='2022-10-23T00:00:00.000Z', - status=shared.JournalStatus.UNKNOWN, - type='ab', + status=shared.JournalStatus.ARCHIVED, + type='in', ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', - timeout_in_minutes=72754, + timeout_in_minutes=349993, ) res = s.journals.create(req) @@ -101,7 +101,7 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.GetJournalRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', - journal_id='hic', + journal_id='labore', ) res = s.journals.get(req) @@ -198,7 +198,7 @@ req = operations.ListJournalsRequest( order_by='-modifiedDate', page=1, page_size=100, - query='deserunt', + query='numquam', ) res = s.journals.list(req) diff --git a/sync-for-payables/docs/sdks/managedata/README.md b/sync-for-payables/docs/sdks/managedata/README.md index e861d1451..e641c60e2 100755 --- a/sync-for-payables/docs/sdks/managedata/README.md +++ b/sync-for-payables/docs/sdks/managedata/README.md @@ -112,7 +112,7 @@ req = operations.ListPullOperationsRequest( order_by='-modifiedDate', page=1, page_size=100, - query='delectus', + query='repudiandae', ) res = s.manage_data.list_pull_operations(req) @@ -197,7 +197,7 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.RefreshDataTypeRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', - connection_id='4b7544e4-72e8-4028-97a5-b40463a7d575', + connection_id='472e8028-57a5-4b40-863a-7d575f1400e7', data_type=shared.DataType.INVOICES, ) diff --git a/sync-for-payables/docs/sdks/paymentmethods/README.md b/sync-for-payables/docs/sdks/paymentmethods/README.md index d6706eb56..94b07bdd0 100755 --- a/sync-for-payables/docs/sdks/paymentmethods/README.md +++ b/sync-for-payables/docs/sdks/paymentmethods/README.md @@ -34,7 +34,7 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.GetPaymentMethodRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', - payment_method_id='reiciendis', + payment_method_id='commodi', ) res = s.payment_methods.get(req) @@ -82,7 +82,7 @@ req = operations.ListPaymentMethodsRequest( order_by='-modifiedDate', page=1, page_size=100, - query='ab', + query='numquam', ) res = s.payment_methods.list(req) diff --git a/sync-for-payables/docs/sdks/pushoperations/README.md b/sync-for-payables/docs/sdks/pushoperations/README.md index 726c2d6a7..aa76ac175 100755 --- a/sync-for-payables/docs/sdks/pushoperations/README.md +++ b/sync-for-payables/docs/sdks/pushoperations/README.md @@ -27,7 +27,7 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.GetPushOperationRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', - push_operation_key='400e764a-d733-44ec-9b78-1b36a08088d1', + push_operation_key='ad7334ec-1b78-41b3-aa08-088d100efada', ) res = s.push_operations.get(req) @@ -70,7 +70,7 @@ req = operations.ListPushOperationsRequest( order_by='-modifiedDate', page=1, page_size=100, - query='quae', + query='sed', ) res = s.push_operations.list(req) diff --git a/sync-for-payables/docs/sdks/suppliers/README.md b/sync-for-payables/docs/sdks/suppliers/README.md index 20e2aaa3b..633529a83 100755 --- a/sync-for-payables/docs/sdks/suppliers/README.md +++ b/sync-for-payables/docs/sdks/suppliers/README.md @@ -41,40 +41,40 @@ req = operations.CreateSupplierRequest( supplier=shared.Supplier( addresses=[ shared.Address( - city='Fort Virgilfurt', - country='Sweden', - line1='officia', - line2='sed', - postal_code='09902', - region='qui', - type=shared.AccountingAddressType.UNKNOWN, + city='North Tadshire', + country='Anguilla', + line1='incidunt', + line2='qui', + postal_code='86113', + region='modi', + type=shared.AccountingAddressType.DELIVERY, ), ], - contact_name='necessitatibus', - default_currency='harum', - email_address='explicabo', - id='164cf9ab-8366-4c72-bffd-a9e06bee4825', + contact_name='voluptatibus', + default_currency='molestias', + email_address='officia', + id='b8366c72-3ffd-4a9e-86be-e4825c1fc0e1', metadata=shared.Metadata( is_deleted=False, ), modified_date='2022-10-23T00:00:00.000Z', phone='+44 25691 154789', - registration_number='voluptatibus', + registration_number='optio', source_modified_date='2022-10-23T00:00:00.000Z', status=shared.SupplierStatus.UNKNOWN, supplemental_data=shared.SupplementalData( content={ - "officiis": { - "architecto": 'architecto', + "facilis": { + "reiciendis": 'a', }, }, ), - supplier_name='enim', - tax_number='optio', + supplier_name='iste', + tax_number='dicta', ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', - timeout_in_minutes=525951, + timeout_in_minutes=552439, ) res = s.suppliers.create(req) @@ -121,7 +121,7 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.GetSupplierRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', - supplier_id='perferendis', + supplier_id='ullam', ) res = s.suppliers.get(req) @@ -218,7 +218,7 @@ req = operations.ListSuppliersRequest( order_by='-modifiedDate', page=1, page_size=100, - query='facilis', + query='dolore', ) res = s.suppliers.list(req) @@ -269,42 +269,42 @@ req = operations.UpdateSupplierRequest( supplier=shared.Supplier( addresses=[ shared.Address( - city='Wauwatosa', - country='Nauru', - line1='dicta', - line2='quos', - postal_code='22982', - region='consequuntur', - type=shared.AccountingAddressType.DELIVERY, + city='Fort Rafael', + country='Eritrea', + line1='consequuntur', + line2='assumenda', + postal_code='97785-9054', + region='esse', + type=shared.AccountingAddressType.BILLING, ), ], - contact_name='vero', - default_currency='doloribus', - email_address='impedit', - id='ce8f1977-773e-4635-a2a7-b408f05e3d48', + contact_name='odio', + default_currency='nesciunt', + email_address='debitis', + id='63562a7b-408f-405e-bd48-fdaf313a1f5f', metadata=shared.Metadata( is_deleted=False, ), modified_date='2022-10-23T00:00:00.000Z', - phone='01224 658 999', - registration_number='est', + phone='(877) 492-8687', + registration_number='incidunt', source_modified_date='2022-10-23T00:00:00.000Z', - status=shared.SupplierStatus.UNKNOWN, + status=shared.SupplierStatus.ACTIVE, supplemental_data=shared.SupplementalData( content={ - "vitae": { - "nesciunt": 'similique', + "cupiditate": { + "optio": 'alias', }, }, ), - supplier_name='illo', - tax_number='repellat', + supplier_name='quidem', + tax_number='nesciunt', ), company_id='8a210b68-6988-11ed-a1eb-0242ac120002', connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', force_update=False, - supplier_id='nemo', - timeout_in_minutes=987890, + supplier_id='commodi', + timeout_in_minutes=956124, ) res = s.suppliers.update(req) diff --git a/sync-for-payables/docs/sdks/taxrates/README.md b/sync-for-payables/docs/sdks/taxrates/README.md index ba34003e4..95aeb4e68 100755 --- a/sync-for-payables/docs/sdks/taxrates/README.md +++ b/sync-for-payables/docs/sdks/taxrates/README.md @@ -34,7 +34,7 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.GetTaxRateRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', - tax_rate_id='possimus', + tax_rate_id='consequuntur', ) res = s.tax_rates.get(req) @@ -82,7 +82,7 @@ req = operations.ListTaxRatesRequest( order_by='-modifiedDate', page=1, page_size=100, - query='unde', + query='veniam', ) res = s.tax_rates.list(req) diff --git a/sync-for-payables/docs/sdks/trackingcategories/README.md b/sync-for-payables/docs/sdks/trackingcategories/README.md index 2d97f30af..22fb1b150 100755 --- a/sync-for-payables/docs/sdks/trackingcategories/README.md +++ b/sync-for-payables/docs/sdks/trackingcategories/README.md @@ -34,7 +34,7 @@ s = codatsyncpayables.CodatSyncPayables( req = operations.GetTrackingCategoryRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', - tracking_category_id='incidunt', + tracking_category_id='debitis', ) res = s.tracking_categories.get(req) @@ -82,7 +82,7 @@ req = operations.ListTrackingCategoriesRequest( order_by='-modifiedDate', page=1, page_size=100, - query='explicabo', + query='officia', ) res = s.tracking_categories.list(req) diff --git a/sync-for-payables/files.gen b/sync-for-payables/files.gen index 2ce155e80..1c5f5eb6e 100755 --- a/sync-for-payables/files.gen +++ b/sync-for-payables/files.gen @@ -39,6 +39,7 @@ src/codatsyncpayables/models/operations/get_create_billpayment_model.py src/codatsyncpayables/models/operations/list_bill_payments.py src/codatsyncpayables/models/operations/create_bill.py src/codatsyncpayables/models/operations/delete_bill.py +src/codatsyncpayables/models/operations/delete_bill_attachment.py src/codatsyncpayables/models/operations/download_bill_attachment.py src/codatsyncpayables/models/operations/get_bill.py src/codatsyncpayables/models/operations/get_bill_attachment.py @@ -191,23 +192,6 @@ src/codatsyncpayables/models/webhooks/client_rate_limit_reached.py src/codatsyncpayables/models/webhooks/client_rate_limit_reset.py src/codatsyncpayables/models/webhooks/__init__.py src/codatsyncpayables/models/errors/__init__.py -docs/sdks/codatsyncpayables/README.md -docs/models/utils/retryconfig.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 @@ -241,6 +225,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 @@ -452,4 +438,21 @@ 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/models/utils/retryconfig.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 180dad156..6d065b6de 100644 --- a/sync-for-payables/gen.yaml +++ b/sync-for-payables/gen.yaml @@ -1,16 +1,16 @@ 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: CodatSyncPayables singleTagPerOp: false telemetryEnabled: true features: python: - core: 2.85.5 + core: 2.85.6 deprecations: 2.81.1 examples: 2.81.2 globalSecurity: 2.81.1 @@ -18,7 +18,7 @@ features: nameOverrides: 2.81.1 retries: 2.82.0 python: - version: 1.1.0 + version: 1.2.0 author: Codat description: Streamline your customers' accounts payable workflow. maxMethodParams: 0 diff --git a/sync-for-payables/setup.py b/sync-for-payables/setup.py index a7a33edce..a669aee9a 100755 --- a/sync-for-payables/setup.py +++ b/sync-for-payables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="codat-sync-for-payables", - version="1.1.0", + version="1.2.0", author="Codat", description="Streamline your customers' accounts payable workflow.", long_description=long_description, diff --git a/sync-for-payables/src/codatsyncpayables/bills.py b/sync-for-payables/src/codatsyncpayables/bills.py index e514b48c1..9782e972f 100755 --- a/sync-for-payables/src/codatsyncpayables/bills.py +++ b/sync-for-payables/src/codatsyncpayables/bills.py @@ -155,6 +155,75 @@ def do_request(): return res + def delete_attachment(self, request: operations.DeleteBillAttachmentRequest, retries: Optional[utils.RetryConfig] = None) -> operations.DeleteBillAttachmentResponse: + r"""Delete bill attachment + 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. + """ + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) + + url = utils.generate_url(operations.DeleteBillAttachmentRequest, base_url, '/companies/{companyId}/connections/{connectionId}/push/bills/{billId}/attachments/{attachmentId}', request) + headers = {} + headers['Accept'] = 'application/json' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + + client = self.sdk_configuration.security_client + + global_retry_config = self.sdk_configuration.retry_config + retry_config = retries + if retry_config is None: + if global_retry_config: + retry_config = global_retry_config + else: + retry_config = utils.RetryConfig('backoff', utils.BackoffStrategy(500, 60000, 1.5, 3600000), True) + + def do_request(): + return client.request('DELETE', url, headers=headers) + + http_res = utils.retry(do_request, utils.Retries(retry_config, [ + '408', + '429', + '5XX' + ])) + content_type = http_res.headers.get('Content-Type') + + res = operations.DeleteBillAttachmentResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 200: + if utils.match_content_type(content_type, 'application/json'): + out = utils.unmarshal_json(http_res.text, Optional[shared.PushOperation]) + res.push_operation = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + elif http_res.status_code in [401, 404, 429]: + if utils.match_content_type(content_type, 'application/json'): + out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorMessage]) + res.error_message = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) + + return res + + def download_attachment(self, request: operations.DownloadBillAttachmentRequest, retries: Optional[utils.RetryConfig] = None, accept_header_override: Optional[DownloadAttachmentAcceptEnum] = None) -> operations.DownloadBillAttachmentResponse: r"""Download bill attachment The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`. diff --git a/sync-for-payables/src/codatsyncpayables/models/operations/__init__.py b/sync-for-payables/src/codatsyncpayables/models/operations/__init__.py index 742de0d05..6e919894c 100755 --- a/sync-for-payables/src/codatsyncpayables/models/operations/__init__.py +++ b/sync-for-payables/src/codatsyncpayables/models/operations/__init__.py @@ -10,6 +10,7 @@ from .create_journal_entry import * from .create_supplier import * from .delete_bill import * +from .delete_bill_attachment import * from .delete_billpayment import * from .delete_company import * from .delete_connection import * @@ -60,4 +61,4 @@ from .update_supplier import * from .upload_bill_attachment import * -__all__ = ["CreateAccountRequest","CreateAccountResponse","CreateBillCreditNoteRequest","CreateBillCreditNoteResponse","CreateBillPaymentRequest","CreateBillPaymentResponse","CreateBillRequest","CreateBillResponse","CreateCompanyResponse","CreateConnectionRequest","CreateConnectionRequestBody","CreateConnectionResponse","CreateJournalEntryRequest","CreateJournalEntryResponse","CreateJournalRequest","CreateJournalResponse","CreateSupplierRequest","CreateSupplierResponse","DeleteBillPaymentRequest","DeleteBillPaymentResponse","DeleteBillRequest","DeleteBillResponse","DeleteCompanyRequest","DeleteCompanyResponse","DeleteConnectionRequest","DeleteConnectionResponse","DownloadBillAttachmentRequest","DownloadBillAttachmentResponse","GetAccountRequest","GetAccountResponse","GetAccountingProfileRequest","GetAccountingProfileResponse","GetBillAttachmentRequest","GetBillAttachmentResponse","GetBillCreditNoteRequest","GetBillCreditNoteResponse","GetBillPaymentsRequest","GetBillPaymentsResponse","GetBillRequest","GetBillResponse","GetCompanyRequest","GetCompanyResponse","GetConnectionRequest","GetConnectionResponse","GetCreateAccountModelRequest","GetCreateAccountModelResponse","GetCreateBillPaymentModelRequest","GetCreateBillPaymentModelResponse","GetCreateJournalEntryModelRequest","GetCreateJournalEntryModelResponse","GetCreateJournalModelRequest","GetCreateJournalModelResponse","GetCreateUpdateBillCreditNoteModelRequest","GetCreateUpdateBillCreditNoteModelResponse","GetCreateUpdateBillModelRequest","GetCreateUpdateBillModelResponse","GetCreateUpdateSupplierModelRequest","GetCreateUpdateSupplierModelResponse","GetDataStatusRequest","GetDataStatusResponse","GetJournalRequest","GetJournalResponse","GetPaymentMethodRequest","GetPaymentMethodResponse","GetPullOperationRequest","GetPullOperationResponse","GetPushOperationRequest","GetPushOperationResponse","GetSupplierRequest","GetSupplierResponse","GetTaxRateRequest","GetTaxRateResponse","GetTrackingCategoryRequest","GetTrackingCategoryResponse","ListAccountsRequest","ListAccountsResponse","ListBillAttachmentsRequest","ListBillAttachmentsResponse","ListBillCreditNotesRequest","ListBillCreditNotesResponse","ListBillPaymentsRequest","ListBillPaymentsResponse","ListBillsRequest","ListBillsResponse","ListCompaniesRequest","ListCompaniesResponse","ListConnectionsRequest","ListConnectionsResponse","ListJournalsRequest","ListJournalsResponse","ListPaymentMethodsRequest","ListPaymentMethodsResponse","ListPullOperationsRequest","ListPullOperationsResponse","ListPushOperationsRequest","ListPushOperationsResponse","ListSuppliersRequest","ListSuppliersResponse","ListTaxRatesRequest","ListTaxRatesResponse","ListTrackingCategoriesRequest","ListTrackingCategoriesResponse","RefreshAllDataTypesRequest","RefreshAllDataTypesResponse","RefreshDataTypeRequest","RefreshDataTypeResponse","UnlinkConnectionRequest","UnlinkConnectionResponse","UnlinkConnectionUpdateConnection","UpdateBillCreditNoteRequest","UpdateBillCreditNoteResponse","UpdateBillRequest","UpdateBillResponse","UpdateCompanyRequest","UpdateCompanyResponse","UpdateSupplierRequest","UpdateSupplierResponse","UploadBillAttachmentRequest","UploadBillAttachmentRequestBody","UploadBillAttachmentResponse"] +__all__ = ["CreateAccountRequest","CreateAccountResponse","CreateBillCreditNoteRequest","CreateBillCreditNoteResponse","CreateBillPaymentRequest","CreateBillPaymentResponse","CreateBillRequest","CreateBillResponse","CreateCompanyResponse","CreateConnectionRequest","CreateConnectionRequestBody","CreateConnectionResponse","CreateJournalEntryRequest","CreateJournalEntryResponse","CreateJournalRequest","CreateJournalResponse","CreateSupplierRequest","CreateSupplierResponse","DeleteBillAttachmentRequest","DeleteBillAttachmentResponse","DeleteBillPaymentRequest","DeleteBillPaymentResponse","DeleteBillRequest","DeleteBillResponse","DeleteCompanyRequest","DeleteCompanyResponse","DeleteConnectionRequest","DeleteConnectionResponse","DownloadBillAttachmentRequest","DownloadBillAttachmentResponse","GetAccountRequest","GetAccountResponse","GetAccountingProfileRequest","GetAccountingProfileResponse","GetBillAttachmentRequest","GetBillAttachmentResponse","GetBillCreditNoteRequest","GetBillCreditNoteResponse","GetBillPaymentsRequest","GetBillPaymentsResponse","GetBillRequest","GetBillResponse","GetCompanyRequest","GetCompanyResponse","GetConnectionRequest","GetConnectionResponse","GetCreateAccountModelRequest","GetCreateAccountModelResponse","GetCreateBillPaymentModelRequest","GetCreateBillPaymentModelResponse","GetCreateJournalEntryModelRequest","GetCreateJournalEntryModelResponse","GetCreateJournalModelRequest","GetCreateJournalModelResponse","GetCreateUpdateBillCreditNoteModelRequest","GetCreateUpdateBillCreditNoteModelResponse","GetCreateUpdateBillModelRequest","GetCreateUpdateBillModelResponse","GetCreateUpdateSupplierModelRequest","GetCreateUpdateSupplierModelResponse","GetDataStatusRequest","GetDataStatusResponse","GetJournalRequest","GetJournalResponse","GetPaymentMethodRequest","GetPaymentMethodResponse","GetPullOperationRequest","GetPullOperationResponse","GetPushOperationRequest","GetPushOperationResponse","GetSupplierRequest","GetSupplierResponse","GetTaxRateRequest","GetTaxRateResponse","GetTrackingCategoryRequest","GetTrackingCategoryResponse","ListAccountsRequest","ListAccountsResponse","ListBillAttachmentsRequest","ListBillAttachmentsResponse","ListBillCreditNotesRequest","ListBillCreditNotesResponse","ListBillPaymentsRequest","ListBillPaymentsResponse","ListBillsRequest","ListBillsResponse","ListCompaniesRequest","ListCompaniesResponse","ListConnectionsRequest","ListConnectionsResponse","ListJournalsRequest","ListJournalsResponse","ListPaymentMethodsRequest","ListPaymentMethodsResponse","ListPullOperationsRequest","ListPullOperationsResponse","ListPushOperationsRequest","ListPushOperationsResponse","ListSuppliersRequest","ListSuppliersResponse","ListTaxRatesRequest","ListTaxRatesResponse","ListTrackingCategoriesRequest","ListTrackingCategoriesResponse","RefreshAllDataTypesRequest","RefreshAllDataTypesResponse","RefreshDataTypeRequest","RefreshDataTypeResponse","UnlinkConnectionRequest","UnlinkConnectionResponse","UnlinkConnectionUpdateConnection","UpdateBillCreditNoteRequest","UpdateBillCreditNoteResponse","UpdateBillRequest","UpdateBillResponse","UpdateCompanyRequest","UpdateCompanyResponse","UpdateSupplierRequest","UpdateSupplierResponse","UploadBillAttachmentRequest","UploadBillAttachmentRequestBody","UploadBillAttachmentResponse"] diff --git a/sync-for-payables/src/codatsyncpayables/models/operations/delete_bill_attachment.py b/sync-for-payables/src/codatsyncpayables/models/operations/delete_bill_attachment.py new file mode 100755 index 000000000..96a2d85a1 --- /dev/null +++ b/sync-for-payables/src/codatsyncpayables/models/operations/delete_bill_attachment.py @@ -0,0 +1,35 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from ..shared import errormessage as shared_errormessage +from ..shared import pushoperation as shared_pushoperation +from typing import Optional + + + +@dataclasses.dataclass +class DeleteBillAttachmentRequest: + attachment_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'attachmentId', 'style': 'simple', 'explode': False }}) + r"""Unique identifier for an attachment""" + bill_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'billId', 'style': 'simple', 'explode': False }}) + r"""Unique identifier for a bill""" + company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }}) + connection_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'connectionId', 'style': 'simple', 'explode': False }}) + + + + + +@dataclasses.dataclass +class DeleteBillAttachmentResponse: + content_type: str = dataclasses.field() + status_code: int = dataclasses.field() + error_message: Optional[shared_errormessage.ErrorMessage] = dataclasses.field(default=None) + r"""Your API request was not properly authorized.""" + push_operation: Optional[shared_pushoperation.PushOperation] = dataclasses.field(default=None) + r"""OK""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + diff --git a/sync-for-payables/src/codatsyncpayables/sdkconfiguration.py b/sync-for-payables/src/codatsyncpayables/sdkconfiguration.py index 74efdb5f6..90d114018 100755 --- a/sync-for-payables/src/codatsyncpayables/sdkconfiguration.py +++ b/sync-for-payables/src/codatsyncpayables/sdkconfiguration.py @@ -20,8 +20,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '3.0.0' - sdk_version: str = '1.1.0' - gen_version: str = '2.116.0' + sdk_version: str = '1.2.0' + gen_version: str = '2.125.1' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: