Skip to content

Commit 1959d26

Browse files
authored
Merge pull request #458 from codatio/speakeasy-sdk-regen-1697551940
chore: speakeasy sdk regeneration - Generate Commerce library
2 parents b6d5763 + f190379 commit 1959d26

File tree

185 files changed

+1162
-771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+1162
-771
lines changed

previous-versions/commerce/README.md

Lines changed: 86 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,98 @@ You can view your SMB customers' products, orders, payments, payouts, disputes,
77
<!-- End Codat Library Description -->
88

99
<!-- Start SDK Installation -->
10-
replace me
10+
## SDK Installation
11+
12+
```bash
13+
pip install codat-commerce
14+
```
1115
<!-- End SDK Installation -->
1216

1317
## Example Usage
1418
<!-- Start SDK Example Usage -->
15-
replace me
19+
```python
20+
import codatcommerce
21+
from codatcommerce.models import operations, shared
22+
23+
s = codatcommerce.CodatCommerce(
24+
auth_header="Basic BASE_64_ENCODED(API_KEY)",
25+
)
26+
27+
req = operations.GetCompanyInfoRequest(
28+
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
29+
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
30+
)
31+
32+
res = s.company_info.get(req)
33+
34+
if res.company_info is not None:
35+
# handle response
36+
pass
37+
```
1638
<!-- End SDK Example Usage -->
1739

1840
<!-- Start SDK Available Operations -->
19-
replace me
41+
## Available Resources and Operations
42+
43+
44+
### [company_info](docs/sdks/companyinfo/README.md)
45+
46+
* [get](docs/sdks/companyinfo/README.md#get) - Get company info
47+
48+
### [customers](docs/sdks/customers/README.md)
49+
50+
* [get](docs/sdks/customers/README.md#get) - Get customer
51+
* [list](docs/sdks/customers/README.md#list) - List customers
52+
53+
### [disputes](docs/sdks/disputes/README.md)
54+
55+
* [get](docs/sdks/disputes/README.md#get) - Get dispute
56+
* [list](docs/sdks/disputes/README.md#list) - List disputes
57+
58+
### [locations](docs/sdks/locations/README.md)
59+
60+
* [get](docs/sdks/locations/README.md#get) - Get location
61+
* [list](docs/sdks/locations/README.md#list) - List locations
62+
63+
### [orders](docs/sdks/orders/README.md)
64+
65+
* [get](docs/sdks/orders/README.md#get) - Get order
66+
* [list](docs/sdks/orders/README.md#list) - List orders
67+
68+
### [payments](docs/sdks/payments/README.md)
69+
70+
* [get](docs/sdks/payments/README.md#get) - Get payment
71+
* [get_method](docs/sdks/payments/README.md#get_method) - Get payment method
72+
* [list](docs/sdks/payments/README.md#list) - List payments
73+
* [list_methods](docs/sdks/payments/README.md#list_methods) - List payment methods
74+
75+
### [products](docs/sdks/products/README.md)
76+
77+
* [get](docs/sdks/products/README.md#get) - Get product
78+
* [get_category](docs/sdks/products/README.md#get_category) - Get product category
79+
* [list](docs/sdks/products/README.md#list) - List products
80+
* [list_categories](docs/sdks/products/README.md#list_categories) - List product categories
81+
82+
### [tax_components](docs/sdks/taxcomponents/README.md)
83+
84+
* [get](docs/sdks/taxcomponents/README.md#get) - Get tax component
85+
* [list](docs/sdks/taxcomponents/README.md#list) - List tax components
86+
87+
### [transactions](docs/sdks/transactions/README.md)
88+
89+
* [get](docs/sdks/transactions/README.md#get) - Get transaction
90+
* [list](docs/sdks/transactions/README.md#list) - List transactions
2091
<!-- End SDK Available Operations -->
92+
93+
94+
95+
<!-- Start Dev Containers -->
96+
97+
98+
99+
<!-- End Dev Containers -->
100+
101+
<!-- Placeholder for Future Speakeasy SDK Sections -->
102+
103+
21104
### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

previous-versions/commerce/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,4 +616,14 @@ Based on:
616616
### Generated
617617
- [python v0.1.0] previous-versions/commerce
618618
### Releases
619-
- [PyPI v0.1.0] https://pypi.org/project/codat-commerce/0.1.0 - previous-versions/commerce
619+
- [PyPI v0.1.0] https://pypi.org/project/codat-commerce/0.1.0 - previous-versions/commerce
620+
621+
## 2023-10-17 14:12:16
622+
### Changes
623+
Based on:
624+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
625+
- Speakeasy CLI 1.100.2 (2.159.2) https://github.com/speakeasy-api/speakeasy
626+
### Generated
627+
- [python v0.34.0] previous-versions/commerce
628+
### Releases
629+
- [PyPI v0.34.0] https://pypi.org/project/codat-commerce/0.34.0 - previous-versions/commerce

previous-versions/commerce/USAGE.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ import codatcommerce
66
from codatcommerce.models import operations, shared
77

88
s = codatcommerce.CodatCommerce(
9-
security=shared.Security(
10-
auth_header="Basic BASE_64_ENCODED(API_KEY)",
11-
),
9+
auth_header="Basic BASE_64_ENCODED(API_KEY)",
1210
)
1311

1412
req = operations.GetCompanyInfoRequest(
@@ -20,5 +18,6 @@ res = s.company_info.get(req)
2018

2119
if res.company_info is not None:
2220
# handle response
21+
pass
2322
```
2423
<!-- End SDK Example Usage -->

previous-versions/commerce/docs/models/operations/getcompanyinforequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
| Field | Type | Required | Description | Example |
77
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
8-
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9-
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
8+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9+
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |

previous-versions/commerce/docs/models/operations/getcompanyinforesponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
88
| `company_info` | [Optional[shared.CompanyInfo]](../../models/shared/companyinfo.md) | :heavy_minus_sign: | OK |
9-
| `content_type` | *str* | :heavy_check_mark: | N/A |
9+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
1010
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. |
11-
| `status_code` | *int* | :heavy_check_mark: | N/A |
12-
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
11+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
12+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |

previous-versions/commerce/docs/models/operations/getcustomerrequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
| Field | Type | Required | Description | Example |
77
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
8-
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9-
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
8+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9+
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
1010
| `customer_id` | *str* | :heavy_check_mark: | Unique identifier for a customer. | |

previous-versions/commerce/docs/models/operations/getcustomerresponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8-
| `content_type` | *str* | :heavy_check_mark: | N/A |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `customer` | [Optional[shared.Customer]](../../models/shared/customer.md) | :heavy_minus_sign: | OK |
1010
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. |
11-
| `status_code` | *int* | :heavy_check_mark: | N/A |
12-
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
11+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
12+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |

previous-versions/commerce/docs/models/operations/getdisputerequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
| Field | Type | Required | Description | Example |
77
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
8-
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9-
| `connection_id` | *str* | :heavy_check_mark: | N/A | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
8+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9+
| `connection_id` | *str* | :heavy_check_mark: | Unique identifier for a connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 |
1010
| `dispute_id` | *str* | :heavy_check_mark: | Unique identifier for a dispute. | |

previous-versions/commerce/docs/models/operations/getdisputeresponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8-
| `content_type` | *str* | :heavy_check_mark: | N/A |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `dispute` | [Optional[shared.Dispute]](../../models/shared/dispute.md) | :heavy_minus_sign: | OK |
1010
| `error_message` | [Optional[shared.ErrorMessage]](../../models/shared/errormessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. |
11-
| `status_code` | *int* | :heavy_check_mark: | N/A |
12-
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
11+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
12+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |

0 commit comments

Comments
 (0)