|
3 | 3 | Embedded accounting integrations for corporate card providers. |
4 | 4 |
|
5 | 5 | <!-- Start SDK Installation --> |
6 | | -replace me |
| 6 | +## SDK Installation |
| 7 | + |
| 8 | +```bash |
| 9 | +pip install codat-sync-for-expenses |
| 10 | +``` |
7 | 11 | <!-- End SDK Installation --> |
8 | 12 |
|
9 | 13 | ## Example Usage |
10 | 14 | <!-- Start SDK Example Usage --> |
11 | | -replace me |
| 15 | + |
| 16 | + |
| 17 | +```python |
| 18 | +import codatsyncexpenses |
| 19 | +from codatsyncexpenses.models import operations, shared |
| 20 | +from decimal import Decimal |
| 21 | + |
| 22 | +s = codatsyncexpenses.CodatSyncExpenses( |
| 23 | + security=shared.Security( |
| 24 | + auth_header="Basic BASE_64_ENCODED(API_KEY)", |
| 25 | + ), |
| 26 | +) |
| 27 | + |
| 28 | +req = operations.CreateAccountRequest( |
| 29 | + account=shared.Account( |
| 30 | + currency='USD', |
| 31 | + current_balance=Decimal('0'), |
| 32 | + description='Invoices the business has issued but has not yet collected payment on.', |
| 33 | + fully_qualified_category='Asset.Current', |
| 34 | + fully_qualified_name='Fixed Asset', |
| 35 | + id='1b6266d1-1e44-46c5-8eb5-a8f98e03124e', |
| 36 | + is_bank_account=False, |
| 37 | + metadata=shared.AccountMetadata( |
| 38 | + is_deleted=False, |
| 39 | + ), |
| 40 | + modified_date='2022-10-23T00:00:00.000Z', |
| 41 | + name='Accounts Receivable', |
| 42 | + nominal_code='610', |
| 43 | + source_modified_date='2022-10-23T00:00:00.000Z', |
| 44 | + status=shared.AccountStatus.ACTIVE, |
| 45 | + type=shared.AccountType.ASSET, |
| 46 | + valid_datatype_links=[ |
| 47 | + shared.AccountValidDataTypeLinks( |
| 48 | + links=[ |
| 49 | + 'unde', |
| 50 | + ], |
| 51 | + property='nulla', |
| 52 | + ), |
| 53 | + ], |
| 54 | + ), |
| 55 | + company_id='8a210b68-6988-11ed-a1eb-0242ac120002', |
| 56 | + connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', |
| 57 | + timeout_in_minutes=544883, |
| 58 | +) |
| 59 | + |
| 60 | +res = s.accounts.create(req) |
| 61 | + |
| 62 | +if res.create_account_response is not None: |
| 63 | + # handle response |
| 64 | +``` |
12 | 65 | <!-- End SDK Example Usage --> |
13 | 66 |
|
14 | 67 | <!-- Start SDK Available Operations --> |
15 | | -replace me |
| 68 | +## Available Resources and Operations |
| 69 | + |
| 70 | + |
| 71 | +### [accounts](docs/sdks/accounts/README.md) |
| 72 | + |
| 73 | +* [create](docs/sdks/accounts/README.md#create) - Create account |
| 74 | + |
| 75 | +### [companies](docs/sdks/companies/README.md) |
| 76 | + |
| 77 | +* [create](docs/sdks/companies/README.md#create) - Create company |
| 78 | +* [delete](docs/sdks/companies/README.md#delete) - Delete a company |
| 79 | +* [get](docs/sdks/companies/README.md#get) - Get company |
| 80 | +* [list](docs/sdks/companies/README.md#list) - List companies |
| 81 | +* [update](docs/sdks/companies/README.md#update) - Update company |
| 82 | + |
| 83 | +### [configuration](docs/sdks/configuration/README.md) |
| 84 | + |
| 85 | +* [get](docs/sdks/configuration/README.md#get) - Get company configuration |
| 86 | +* [get_mapping_options](docs/sdks/configuration/README.md#get_mapping_options) - Mapping options |
| 87 | +* [set](docs/sdks/configuration/README.md#set) - Set company configuration |
| 88 | + |
| 89 | +### [connections](docs/sdks/connections/README.md) |
| 90 | + |
| 91 | +* [create](docs/sdks/connections/README.md#create) - Create connection |
| 92 | +* [create_partner_expense_connection](docs/sdks/connections/README.md#create_partner_expense_connection) - Create Partner Expense connection |
| 93 | +* [delete](docs/sdks/connections/README.md#delete) - Delete connection |
| 94 | +* [get](docs/sdks/connections/README.md#get) - Get connection |
| 95 | +* [list](docs/sdks/connections/README.md#list) - List connections |
| 96 | +* [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection |
| 97 | + |
| 98 | +### [customers](docs/sdks/customers/README.md) |
| 99 | + |
| 100 | +* [create](docs/sdks/customers/README.md#create) - Create customer |
| 101 | +* [get](docs/sdks/customers/README.md#get) - Get customer |
| 102 | +* [list](docs/sdks/customers/README.md#list) - List customers |
| 103 | +* [update](docs/sdks/customers/README.md#update) - Update customer |
| 104 | + |
| 105 | +### [expenses](docs/sdks/expenses/README.md) |
| 106 | + |
| 107 | +* [create](docs/sdks/expenses/README.md#create) - Create expense transaction |
| 108 | +* [update](docs/sdks/expenses/README.md#update) - Update expense-transactions |
| 109 | +* [upload_attachment](docs/sdks/expenses/README.md#upload_attachment) - Upload attachment |
| 110 | + |
| 111 | +### [manage_data](docs/sdks/managedata/README.md) |
| 112 | + |
| 113 | +* [get](docs/sdks/managedata/README.md#get) - Get data status |
| 114 | +* [get_pull_operation](docs/sdks/managedata/README.md#get_pull_operation) - Get pull operation |
| 115 | +* [list_pull_operations](docs/sdks/managedata/README.md#list_pull_operations) - List pull operations |
| 116 | +* [refresh_all_data_types](docs/sdks/managedata/README.md#refresh_all_data_types) - Refresh all data |
| 117 | +* [refresh_data_type](docs/sdks/managedata/README.md#refresh_data_type) - Refresh data type |
| 118 | + |
| 119 | +### [push_operations](docs/sdks/pushoperations/README.md) |
| 120 | + |
| 121 | +* [get](docs/sdks/pushoperations/README.md#get) - Get push operation |
| 122 | +* [list](docs/sdks/pushoperations/README.md#list) - List push operations |
| 123 | + |
| 124 | +### [suppliers](docs/sdks/suppliers/README.md) |
| 125 | + |
| 126 | +* [create](docs/sdks/suppliers/README.md#create) - Create supplier |
| 127 | +* [get](docs/sdks/suppliers/README.md#get) - Get supplier |
| 128 | +* [list](docs/sdks/suppliers/README.md#list) - List suppliers |
| 129 | +* [update](docs/sdks/suppliers/README.md#update) - Update supplier |
| 130 | + |
| 131 | +### [sync](docs/sdks/sync/README.md) |
| 132 | + |
| 133 | +* [get](docs/sdks/sync/README.md#get) - Get Sync status |
| 134 | +* [get_last_successful_sync](docs/sdks/sync/README.md#get_last_successful_sync) - Last successful sync |
| 135 | +* [get_latest_sync](docs/sdks/sync/README.md#get_latest_sync) - Latest sync status |
| 136 | +* [initiate_sync](docs/sdks/sync/README.md#initiate_sync) - Initiate sync |
| 137 | +* [list](docs/sdks/sync/README.md#list) - List sync statuses |
| 138 | + |
| 139 | +### [transaction_status](docs/sdks/transactionstatus/README.md) |
| 140 | + |
| 141 | +* [get](docs/sdks/transactionstatus/README.md#get) - Get Sync Transaction |
| 142 | +* [list](docs/sdks/transactionstatus/README.md#list) - List sync transactions |
16 | 143 | <!-- End SDK Available Operations --> |
17 | 144 | ### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) |
0 commit comments