Skip to content

Commit fd6657b

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.18.9
1 parent 9d47935 commit fd6657b

21 files changed

+199
-191
lines changed

commerce/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,12 @@ Based on:
150150
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
151151
- Speakeasy CLI 1.18.7 (2.16.1) https://github.com/speakeasy-api/speakeasy
152152
### Releases
153-
- [PyPI v0.9.0] https://pypi.org/project/codat-commerce/0.9.0 - commerce
153+
- [PyPI v0.9.0] https://pypi.org/project/codat-commerce/0.9.0 - commerce
154+
155+
## 2023-03-28 00:20:05
156+
### Changes
157+
Based on:
158+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
159+
- Speakeasy CLI 1.18.9 (2.16.4) https://github.com/speakeasy-api/speakeasy
160+
### Releases
161+
- [PyPI v0.9.1] https://pypi.org/project/codat-commerce/0.9.1 - commerce

commerce/gen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: edd1a52044fbe581eba7b67e6e9f279b
3+
docChecksum: f5ac9a50081db95668ddf00d5a91939b
44
docVersion: 2.1.0
5-
speakeasyVersion: 1.18.7
6-
generationVersion: 2.16.1
5+
speakeasyVersion: 1.18.9
6+
generationVersion: 2.16.4
77
generation:
88
telemetryEnabled: false
99
sdkClassName: codat
1010
sdkFlattening: true
1111
singleTagPerOp: false
1212
python:
13-
version: 0.9.0
13+
version: 0.9.1
1414
author: Speakeasy
1515
description: Python Client SDK Generated by Speakeasy
1616
packageName: codat-commerce

commerce/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="codat-commerce",
13-
version="0.9.0",
13+
version="0.9.1",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

commerce/src/codat/customers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def list_commerce_customers(self, request: operations.ListCommerceCustomersReque
4141

4242
if http_res.status_code == 200:
4343
if utils.match_content_type(content_type, 'application/json'):
44-
out = utils.unmarshal_json(http_res.text, Optional[operations.ListCommerceCustomersLinks])
45-
res.links = out
44+
out = utils.unmarshal_json(http_res.text, Optional[operations.ListCommerceCustomers200ApplicationJSON])
45+
res.list_commerce_customers_200_application_json_object = out
4646

4747
return res
4848

commerce/src/codat/disputes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def list_commerce_disputes(self, request: operations.ListCommerceDisputesRequest
4141

4242
if http_res.status_code == 200:
4343
if utils.match_content_type(content_type, 'application/json'):
44-
out = utils.unmarshal_json(http_res.text, Optional[operations.ListCommerceDisputesLinks])
45-
res.links = out
44+
out = utils.unmarshal_json(http_res.text, Optional[operations.ListCommerceDisputes200ApplicationJSON])
45+
res.list_commerce_disputes_200_application_json_object = out
4646

4747
return res
4848

commerce/src/codat/locations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def list_commerce_locations(self, request: operations.ListCommerceLocationsReque
4242

4343
if http_res.status_code == 200:
4444
if utils.match_content_type(content_type, 'application/json'):
45-
out = utils.unmarshal_json(http_res.text, Optional[operations.ListCommerceLocationsLinks])
46-
res.links = out
45+
out = utils.unmarshal_json(http_res.text, Optional[operations.ListCommerceLocations200ApplicationJSON])
46+
res.list_commerce_locations_200_application_json_object = out
4747

4848
return res
4949

commerce/src/codat/models/operations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
from .list_commerce_products import *
1313
from .list_commerce_transactions import *
1414

15-
__all__ = ["GetCommerceInfoRequest","GetCommerceInfoResponse","GetCommerceInfoSourceModifiedDate","GetCommerceInfoSourceModifiedDateAccountBalances","GetCommerceInfoSourceModifiedDateAddress","GetCommerceInfoSourceModifiedDateAddressTypeEnum","GetCommerceInfoSourceModifiedDatePhoneNumbers","GetCommerceInfoSourceModifiedDatePhoneNumbersTypeEnum","GetCompaniesCompanyIDConnectionsConnectionIDDataCommerceTaxComponents200ApplicationJSON","GetCompaniesCompanyIDConnectionsConnectionIDDataCommerceTaxComponents200ApplicationJSONSourceModifiedDate","GetCompaniesCompanyIDConnectionsConnectionIDDataCommerceTaxComponentsRequest","GetCompaniesCompanyIDConnectionsConnectionIDDataCommerceTaxComponentsResponse","ListCommerceCustomersLinks","ListCommerceCustomersLinksLinks","ListCommerceCustomersLinksLinksHypertextReference","ListCommerceCustomersLinksSourceModifiedDate","ListCommerceCustomersLinksSourceModifiedDateAddress","ListCommerceCustomersLinksSourceModifiedDateAddressTypeEnum","ListCommerceCustomersRequest","ListCommerceCustomersResponse","ListCommerceDisputesLinks","ListCommerceDisputesLinksLinks","ListCommerceDisputesLinksLinksHypertextReference","ListCommerceDisputesLinksSourceModifiedDate","ListCommerceDisputesLinksSourceModifiedDateRecordRef","ListCommerceDisputesLinksSourceModifiedDateRecordRefTypeEnum","ListCommerceDisputesLinksSourceModifiedDateStatusEnum","ListCommerceDisputesRequest","ListCommerceDisputesResponse","ListCommerceLocationsLinks","ListCommerceLocationsLinksLinks","ListCommerceLocationsLinksLinksHypertextReference","ListCommerceLocationsLinksSourceModifiedDate","ListCommerceLocationsLinksSourceModifiedDateAddress","ListCommerceLocationsLinksSourceModifiedDateAddressTypeEnum","ListCommerceLocationsRequest","ListCommerceLocationsResponse","ListCommerceOrdersLinks","ListCommerceOrdersLinksLinks","ListCommerceOrdersLinksLinksHypertextReference","ListCommerceOrdersLinksSourceModifiedDate","ListCommerceOrdersLinksSourceModifiedDateNameRef","ListCommerceOrdersLinksSourceModifiedDateOrderLineItems","ListCommerceOrdersLinksSourceModifiedDateOrderLineItemsDiscountAllocations","ListCommerceOrdersLinksSourceModifiedDateOrderLineItemsNameRef","ListCommerceOrdersLinksSourceModifiedDateServiceCharges","ListCommerceOrdersLinksSourceModifiedDateServiceChargesTypeEnum","ListCommerceOrdersLinksSourceModifiedDateSourceModifiedDate","ListCommerceOrdersLinksSourceModifiedDateSourceModifiedDateStatusEnum","ListCommerceOrdersLinksSourceModifiedDateSourceModifiedDateTypeEnum","ListCommerceOrdersRequest","ListCommerceOrdersResponse","ListCommercePaymentMethodsLinks","ListCommercePaymentMethodsLinksLinks","ListCommercePaymentMethodsLinksLinksHypertextReference","ListCommercePaymentMethodsLinksSourceModifiedDate","ListCommercePaymentMethodsLinksSourceModifiedDateStatusEnum","ListCommercePaymentMethodsRequest","ListCommercePaymentMethodsResponse","ListCommercePaymentsLinks","ListCommercePaymentsLinksLinks","ListCommercePaymentsLinksLinksHypertextReference","ListCommercePaymentsLinksSourceModifiedDate","ListCommercePaymentsLinksSourceModifiedDateNameRef","ListCommercePaymentsLinksSourceModifiedDateStatusEnum","ListCommercePaymentsRequest","ListCommercePaymentsResponse","ListCommerceProductCategoriesLinks","ListCommerceProductCategoriesLinksLinks","ListCommerceProductCategoriesLinksLinksHypertextReference","ListCommerceProductCategoriesLinksProductCategory","ListCommerceProductCategoriesLinksProductCategoryModifiedDate","ListCommerceProductCategoriesLinksProductCategoryRecordRef","ListCommerceProductCategoriesLinksProductCategorySourceModifiedDate","ListCommerceProductCategoriesRequest","ListCommerceProductCategoriesResponse","ListCommerceProductsLinks","ListCommerceProductsLinksLinks","ListCommerceProductsLinksLinksHypertextReference","ListCommerceProductsLinksProduct","ListCommerceProductsLinksProductSourceModifiedDate","ListCommerceProductsLinksProductSourceModifiedDateStatusEnum","ListCommerceProductsRequest","ListCommerceProductsResponse","ListCommerceTransactionsLinks","ListCommerceTransactionsLinksLinks","ListCommerceTransactionsLinksLinksHypertextReference","ListCommerceTransactionsLinksSourceModifiedDate","ListCommerceTransactionsLinksSourceModifiedDateRecordRef","ListCommerceTransactionsLinksSourceModifiedDateRecordRefTypeEnum","ListCommerceTransactionsLinksSourceModifiedDateTypeEnum","ListCommerceTransactionsRequest","ListCommerceTransactionsResponse"]
15+
__all__ = ["GetCommerceInfoRequest","GetCommerceInfoResponse","GetCommerceInfoSourceModifiedDate","GetCommerceInfoSourceModifiedDateAccountBalances","GetCommerceInfoSourceModifiedDateAddress","GetCommerceInfoSourceModifiedDateAddressTypeEnum","GetCommerceInfoSourceModifiedDatePhoneNumbers","GetCommerceInfoSourceModifiedDatePhoneNumbersTypeEnum","GetCompaniesCompanyIDConnectionsConnectionIDDataCommerceTaxComponents200ApplicationJSON","GetCompaniesCompanyIDConnectionsConnectionIDDataCommerceTaxComponents200ApplicationJSONSourceModifiedDate","GetCompaniesCompanyIDConnectionsConnectionIDDataCommerceTaxComponentsRequest","GetCompaniesCompanyIDConnectionsConnectionIDDataCommerceTaxComponentsResponse","ListCommerceCustomers200ApplicationJSON","ListCommerceCustomers200ApplicationJSONLinks","ListCommerceCustomers200ApplicationJSONLinksHypertextReference","ListCommerceCustomers200ApplicationJSONSourceModifiedDate","ListCommerceCustomers200ApplicationJSONSourceModifiedDateAddress","ListCommerceCustomers200ApplicationJSONSourceModifiedDateAddressTypeEnum","ListCommerceCustomersRequest","ListCommerceCustomersResponse","ListCommerceDisputes200ApplicationJSON","ListCommerceDisputes200ApplicationJSONLinks","ListCommerceDisputes200ApplicationJSONLinksHypertextReference","ListCommerceDisputes200ApplicationJSONSourceModifiedDate","ListCommerceDisputes200ApplicationJSONSourceModifiedDateRecordRef","ListCommerceDisputes200ApplicationJSONSourceModifiedDateRecordRefTypeEnum","ListCommerceDisputes200ApplicationJSONSourceModifiedDateStatusEnum","ListCommerceDisputesRequest","ListCommerceDisputesResponse","ListCommerceLocations200ApplicationJSON","ListCommerceLocations200ApplicationJSONLinks","ListCommerceLocations200ApplicationJSONLinksHypertextReference","ListCommerceLocations200ApplicationJSONSourceModifiedDate","ListCommerceLocations200ApplicationJSONSourceModifiedDateAddress","ListCommerceLocations200ApplicationJSONSourceModifiedDateAddressTypeEnum","ListCommerceLocationsRequest","ListCommerceLocationsResponse","ListCommerceOrders200ApplicationJSON","ListCommerceOrders200ApplicationJSONLinks","ListCommerceOrders200ApplicationJSONLinksHypertextReference","ListCommerceOrders200ApplicationJSONSourceModifiedDate","ListCommerceOrders200ApplicationJSONSourceModifiedDateNameRef","ListCommerceOrders200ApplicationJSONSourceModifiedDateOrderLineItems","ListCommerceOrders200ApplicationJSONSourceModifiedDateOrderLineItemsDiscountAllocations","ListCommerceOrders200ApplicationJSONSourceModifiedDateOrderLineItemsNameRef","ListCommerceOrders200ApplicationJSONSourceModifiedDateServiceCharges","ListCommerceOrders200ApplicationJSONSourceModifiedDateServiceChargesTypeEnum","ListCommerceOrders200ApplicationJSONSourceModifiedDateSourceModifiedDate","ListCommerceOrders200ApplicationJSONSourceModifiedDateSourceModifiedDateStatusEnum","ListCommerceOrders200ApplicationJSONSourceModifiedDateSourceModifiedDateTypeEnum","ListCommerceOrdersRequest","ListCommerceOrdersResponse","ListCommercePaymentMethods200ApplicationJSON","ListCommercePaymentMethods200ApplicationJSONLinks","ListCommercePaymentMethods200ApplicationJSONLinksHypertextReference","ListCommercePaymentMethods200ApplicationJSONSourceModifiedDate","ListCommercePaymentMethods200ApplicationJSONSourceModifiedDateStatusEnum","ListCommercePaymentMethodsRequest","ListCommercePaymentMethodsResponse","ListCommercePayments200ApplicationJSON","ListCommercePayments200ApplicationJSONLinks","ListCommercePayments200ApplicationJSONLinksHypertextReference","ListCommercePayments200ApplicationJSONSourceModifiedDate","ListCommercePayments200ApplicationJSONSourceModifiedDateNameRef","ListCommercePayments200ApplicationJSONSourceModifiedDateStatusEnum","ListCommercePaymentsRequest","ListCommercePaymentsResponse","ListCommerceProductCategories200ApplicationJSON","ListCommerceProductCategories200ApplicationJSONLinks","ListCommerceProductCategories200ApplicationJSONLinksHypertextReference","ListCommerceProductCategories200ApplicationJSONProductCategory","ListCommerceProductCategories200ApplicationJSONProductCategoryModifiedDate","ListCommerceProductCategories200ApplicationJSONProductCategoryRecordRef","ListCommerceProductCategories200ApplicationJSONProductCategorySourceModifiedDate","ListCommerceProductCategoriesRequest","ListCommerceProductCategoriesResponse","ListCommerceProducts200ApplicationJSON","ListCommerceProducts200ApplicationJSONLinks","ListCommerceProducts200ApplicationJSONLinksHypertextReference","ListCommerceProducts200ApplicationJSONProduct","ListCommerceProducts200ApplicationJSONProductSourceModifiedDate","ListCommerceProducts200ApplicationJSONProductSourceModifiedDateStatusEnum","ListCommerceProductsRequest","ListCommerceProductsResponse","ListCommerceTransactions200ApplicationJSON","ListCommerceTransactions200ApplicationJSONLinks","ListCommerceTransactions200ApplicationJSONLinksHypertextReference","ListCommerceTransactions200ApplicationJSONSourceModifiedDate","ListCommerceTransactions200ApplicationJSONSourceModifiedDateRecordRef","ListCommerceTransactions200ApplicationJSONSourceModifiedDateRecordRefTypeEnum","ListCommerceTransactions200ApplicationJSONSourceModifiedDateTypeEnum","ListCommerceTransactionsRequest","ListCommerceTransactionsResponse"]

commerce/src/codat/models/operations/list_commerce_customers.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,28 @@ class ListCommerceCustomersRequest:
2626

2727
@dataclass_json(undefined=Undefined.EXCLUDE)
2828
@dataclasses.dataclass
29-
class ListCommerceCustomersLinksLinksHypertextReference:
29+
class ListCommerceCustomers200ApplicationJSONLinksHypertextReference:
3030

3131
href: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('href'), 'exclude': lambda f: f is None }})
3232

3333

3434
@dataclass_json(undefined=Undefined.EXCLUDE)
3535
@dataclasses.dataclass
36-
class ListCommerceCustomersLinksLinks:
36+
class ListCommerceCustomers200ApplicationJSONLinks:
3737

38-
current: ListCommerceCustomersLinksLinksHypertextReference = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('current') }})
39-
self_: ListCommerceCustomersLinksLinksHypertextReference = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('self') }})
40-
next: Optional[ListCommerceCustomersLinksLinksHypertextReference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('next'), 'exclude': lambda f: f is None }})
41-
previous: Optional[ListCommerceCustomersLinksLinksHypertextReference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('previous'), 'exclude': lambda f: f is None }})
38+
current: ListCommerceCustomers200ApplicationJSONLinksHypertextReference = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('current') }})
39+
self_: ListCommerceCustomers200ApplicationJSONLinksHypertextReference = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('self') }})
40+
next: Optional[ListCommerceCustomers200ApplicationJSONLinksHypertextReference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('next'), 'exclude': lambda f: f is None }})
41+
previous: Optional[ListCommerceCustomers200ApplicationJSONLinksHypertextReference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('previous'), 'exclude': lambda f: f is None }})
4242

43-
class ListCommerceCustomersLinksSourceModifiedDateAddressTypeEnum(str, Enum):
43+
class ListCommerceCustomers200ApplicationJSONSourceModifiedDateAddressTypeEnum(str, Enum):
4444
BILLING = "Billing"
4545
DELIVERY = "Delivery"
4646

4747

4848
@dataclass_json(undefined=Undefined.EXCLUDE)
4949
@dataclasses.dataclass
50-
class ListCommerceCustomersLinksSourceModifiedDateAddress:
50+
class ListCommerceCustomers200ApplicationJSONSourceModifiedDateAddress:
5151

5252
city: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city'), 'exclude': lambda f: f is None }})
5353
r"""The third line of the address, or city"""
@@ -61,17 +61,17 @@ class ListCommerceCustomersLinksSourceModifiedDateAddress:
6161
r"""The postal (or zip) code for the address"""
6262
region: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region'), 'exclude': lambda f: f is None }})
6363
r"""The fourth line of the address, or region"""
64-
type: Optional[ListCommerceCustomersLinksSourceModifiedDateAddressTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }})
64+
type: Optional[ListCommerceCustomers200ApplicationJSONSourceModifiedDateAddressTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }})
6565

6666

6767
@dataclass_json(undefined=Undefined.EXCLUDE)
6868
@dataclasses.dataclass
69-
class ListCommerceCustomersLinksSourceModifiedDate:
69+
class ListCommerceCustomers200ApplicationJSONSourceModifiedDate:
7070
r"""Represents a customer who has placed an order in the commerce system\""""
7171

7272
id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }})
7373
r"""A unique, persistent identifier for this record"""
74-
addresses: Optional[list[ListCommerceCustomersLinksSourceModifiedDateAddress]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is None }})
74+
addresses: Optional[list[ListCommerceCustomers200ApplicationJSONSourceModifiedDateAddress]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is None }})
7575
r"""Addresses of the customer"""
7676
created_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('createdDate'), 'exclude': lambda f: f is None }})
7777
r"""The date the entity was created."""
@@ -92,22 +92,22 @@ class ListCommerceCustomersLinksSourceModifiedDate:
9292

9393
@dataclass_json(undefined=Undefined.EXCLUDE)
9494
@dataclasses.dataclass
95-
class ListCommerceCustomersLinks:
96-
r"""Codat's Paging Model"""
95+
class ListCommerceCustomers200ApplicationJSON:
96+
r"""OK"""
9797

98-
links: ListCommerceCustomersLinksLinks = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('_links') }})
98+
links: ListCommerceCustomers200ApplicationJSONLinks = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('_links') }})
9999
page_number: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('pageNumber') }})
100100
page_size: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('pageSize') }})
101101
total_results: int = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('totalResults') }})
102-
results: Optional[list[ListCommerceCustomersLinksSourceModifiedDate]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('results'), 'exclude': lambda f: f is None }})
102+
results: Optional[list[ListCommerceCustomers200ApplicationJSONSourceModifiedDate]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('results'), 'exclude': lambda f: f is None }})
103103

104104

105105
@dataclasses.dataclass
106106
class ListCommerceCustomersResponse:
107107

108108
content_type: str = dataclasses.field()
109109
status_code: int = dataclasses.field()
110-
links: Optional[ListCommerceCustomersLinks] = dataclasses.field(default=None)
110+
list_commerce_customers_200_application_json_object: Optional[ListCommerceCustomers200ApplicationJSON] = dataclasses.field(default=None)
111111
r"""OK"""
112112
raw_response: Optional[requests_http.Response] = dataclasses.field(default=None)
113113

0 commit comments

Comments
 (0)