-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from codatio/speakeasy-sdk-regen-1702562868
chore: π Update SDK - Generate Sync for Commerce version 1 library
- Loading branch information
Showing
599 changed files
with
5,590 additions
and
4,279 deletions.
There are no files selected for viewing
Empty file modified
0
previous-versions/sync-for-commerce-version-1/.gitattributes
100755 β 100644
Empty file.
390 changes: 282 additions & 108 deletions
390
previous-versions/sync-for-commerce-version-1/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 6 additions & 39 deletions
45
previous-versions/sync-for-commerce-version-1/USAGE.md
100755 β 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,22 @@ | ||
<!-- Start SDK Example Usage --> | ||
|
||
|
||
<!-- Start SDK Example Usage [usage] --> | ||
```python | ||
import codatsynccommerce | ||
from codatsynccommerce.models import operations, shared | ||
from decimal import Decimal | ||
|
||
s = codatsynccommerce.CodatSyncCommerce( | ||
security=shared.Security( | ||
auth_header="Basic BASE_64_ENCODED(API_KEY)", | ||
), | ||
) | ||
|
||
req = operations.CreateAccountingAccountRequest( | ||
accounting_account=shared.AccountingAccount( | ||
currency='GBP', | ||
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='Cash On Hand', | ||
id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e', | ||
metadata=shared.AccountingAccountMetadata(), | ||
modified_date='2022-10-23T00:00:00.000Z', | ||
name='Accounts Receivable', | ||
nominal_code='610', | ||
source_modified_date='2022-10-23T00:00:00.000Z', | ||
status=shared.AccountStatus.ACTIVE, | ||
supplemental_data=shared.SupplementalData( | ||
content={ | ||
"Gasoline": { | ||
"Wall": 'Oriental', | ||
}, | ||
}, | ||
), | ||
type=shared.AccountType.ASSET, | ||
valid_datatype_links=[ | ||
shared.AccountingAccountValidDataTypeLinks( | ||
links=[ | ||
'Intranet', | ||
], | ||
), | ||
], | ||
), | ||
company_id='8a210b68-6988-11ed-a1eb-0242ac120002', | ||
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', | ||
req = operations.GetConfigTextSyncFlowRequest( | ||
locale=shared.Locale.EN_US, | ||
) | ||
|
||
res = s.accounting_accounts.create_accounting_account(req) | ||
res = s.sync_flow_preferences.get_config_text_sync_flow(req) | ||
|
||
if res.accounting_create_account_response is not None: | ||
if res.localization_info is not None: | ||
# handle response | ||
pass | ||
``` | ||
<!-- End SDK Example Usage --> | ||
<!-- End SDK Example Usage [usage] --> |
2 changes: 2 additions & 0 deletions
2
...sion-1/docs/models/shared/errormessage.md β ...sion-1/docs/models/errors/errormessage.md
100755 β 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# ErrorMessage | ||
|
||
Your API request was not properly authorized. | ||
|
||
|
||
## Fields | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file modified
0
...s/sync-for-commerce-version-1/docs/models/operations/createaccountingcreditnoterequest.md
100755 β 100644
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file modified
0
...ons/sync-for-commerce-version-1/docs/models/operations/createaccountingcustomerrequest.md
100755 β 100644
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file modified
0
...sync-for-commerce-version-1/docs/models/operations/createaccountingdirectincomerequest.md
100755 β 100644
Empty file.
Oops, something went wrong.