Skip to content

Commit 88adcdc

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.35.0
1 parent 7f2305e commit 88adcdc

36 files changed

+81
-62
lines changed

commerce/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,4 +390,12 @@ Based on:
390390
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
391391
- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy
392392
### Releases
393-
- [PyPI v0.20.0] https://pypi.org/project/codat-commerce/0.20.0 - commerce
393+
- [PyPI v0.20.0] https://pypi.org/project/codat-commerce/0.20.0 - commerce
394+
395+
## 2023-05-19 00:18:49
396+
### Changes
397+
Based on:
398+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
399+
- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy
400+
### Releases
401+
- [PyPI v0.21.0] https://pypi.org/project/codat-commerce/0.21.0 - commerce

commerce/files.gen

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,30 @@ src/codatcommerce/models/operations/list_transactions.py
2929
src/codatcommerce/models/operations/__init__.py
3030
src/codatcommerce/models/shared/companyinfo.py
3131
src/codatcommerce/models/shared/phonenumber.py
32-
src/codatcommerce/models/shared/phonenumbertype_enum.py
32+
src/codatcommerce/models/shared/phonenumbertype.py
3333
src/codatcommerce/models/shared/address.py
34-
src/codatcommerce/models/shared/addresstype_enum.py
34+
src/codatcommerce/models/shared/addresstype.py
3535
src/codatcommerce/models/shared/accountbalance.py
3636
src/codatcommerce/models/shared/customers.py
3737
src/codatcommerce/models/shared/customer.py
3838
src/codatcommerce/models/shared/links.py
3939
src/codatcommerce/models/shared/href.py
4040
src/codatcommerce/models/shared/disputes.py
4141
src/codatcommerce/models/shared/dispute.py
42-
src/codatcommerce/models/shared/disputestatus_enum.py
42+
src/codatcommerce/models/shared/disputestatus.py
4343
src/codatcommerce/models/shared/transactionsourceref.py
44-
src/codatcommerce/models/shared/transactionsourcetype_enum.py
44+
src/codatcommerce/models/shared/transactionsourcetype.py
4545
src/codatcommerce/models/shared/locationsresponse.py
4646
src/codatcommerce/models/shared/locations.py
4747
src/codatcommerce/models/shared/orders.py
4848
src/codatcommerce/models/shared/order.py
4949
src/codatcommerce/models/shared/servicecharge.py
50-
src/codatcommerce/models/shared/servicechargetype_enum.py
50+
src/codatcommerce/models/shared/servicechargetype.py
5151
src/codatcommerce/models/shared/taxcomponentallocation.py
5252
src/codatcommerce/models/shared/taxcomponentref.py
5353
src/codatcommerce/models/shared/paymentref.py
54-
src/codatcommerce/models/shared/paymenttype_enum.py
55-
src/codatcommerce/models/shared/paymentstatus_enum.py
54+
src/codatcommerce/models/shared/paymenttype.py
55+
src/codatcommerce/models/shared/paymentstatus.py
5656
src/codatcommerce/models/shared/orderlineitem.py
5757
src/codatcommerce/models/shared/productvariantref.py
5858
src/codatcommerce/models/shared/productref.py
@@ -64,11 +64,11 @@ src/codatcommerce/models/shared/payment.py
6464
src/codatcommerce/models/shared/paymentmethodref.py
6565
src/codatcommerce/models/shared/paymentmethods.py
6666
src/codatcommerce/models/shared/paymentmethod.py
67-
src/codatcommerce/models/shared/paymentmethodstatus_enum.py
67+
src/codatcommerce/models/shared/paymentmethodstatus.py
6868
src/codatcommerce/models/shared/products.py
6969
src/codatcommerce/models/shared/product.py
7070
src/codatcommerce/models/shared/productvariant.py
71-
src/codatcommerce/models/shared/productvariantstatus_enum.py
71+
src/codatcommerce/models/shared/productvariantstatus.py
7272
src/codatcommerce/models/shared/productprice.py
7373
src/codatcommerce/models/shared/productinventory.py
7474
src/codatcommerce/models/shared/productinventorylocation.py
@@ -79,7 +79,7 @@ src/codatcommerce/models/shared/taxcomponents.py
7979
src/codatcommerce/models/shared/taxcomponent.py
8080
src/codatcommerce/models/shared/transactions.py
8181
src/codatcommerce/models/shared/transaction.py
82-
src/codatcommerce/models/shared/transactiontype_enum.py
82+
src/codatcommerce/models/shared/transactiontype.py
8383
src/codatcommerce/models/shared/security.py
8484
src/codatcommerce/models/shared/__init__.py
8585
docs/codatcommerce/README.md

commerce/gen.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ configVersion: 1.0.0
22
management:
33
docChecksum: d35d01e1b6dbc979c1242e51cb0c7771
44
docVersion: 2.1.0
5-
speakeasyVersion: 1.34.0
6-
generationVersion: 2.30.0
5+
speakeasyVersion: 1.35.0
6+
generationVersion: 2.31.0
77
generation:
88
sdkClassName: CodatCommerce
99
singleTagPerOp: false
1010
telemetryEnabled: true
1111
python:
12-
version: 0.20.0
12+
version: 0.21.0
1313
author: Speakeasy
1414
description: Python Client SDK Generated by Speakeasy
1515
maxMethodParams: 0

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.20.0",
13+
version="0.21.0",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

commerce/src/codatcommerce/company_info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def get(self, request: operations.GetCompanyInfoRequest, retries: Optional[utils
3333

3434
url = utils.generate_url(operations.GetCompanyInfoRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-info', request)
3535
headers = {}
36+
headers['Accept'] = 'application/json'
3637
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
3738

3839
client = self._security_client

commerce/src/codatcommerce/customers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def list(self, request: operations.ListCustomersRequest, retries: Optional[utils
3232
url = utils.generate_url(operations.ListCustomersRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-customers', request)
3333
headers = {}
3434
query_params = utils.get_query_params(operations.ListCustomersRequest, request)
35+
headers['Accept'] = 'application/json'
3536
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
3637

3738
client = self._security_client

commerce/src/codatcommerce/disputes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def list(self, request: operations.ListDisputesRequest, retries: Optional[utils.
3232
url = utils.generate_url(operations.ListDisputesRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-disputes', request)
3333
headers = {}
3434
query_params = utils.get_query_params(operations.ListDisputesRequest, request)
35+
headers['Accept'] = 'application/json'
3536
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
3637

3738
client = self._security_client

commerce/src/codatcommerce/locations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def list(self, request: operations.ListLocationsRequest, retries: Optional[utils
3333

3434
url = utils.generate_url(operations.ListLocationsRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-locations', request)
3535
headers = {}
36+
headers['Accept'] = 'application/json'
3637
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
3738

3839
client = self._security_client

commerce/src/codatcommerce/models/shared/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
from .accountbalance import *
44
from .address import *
5-
from .addresstype_enum import *
5+
from .addresstype import *
66
from .companyinfo import *
77
from .customer import *
88
from .customerref import *
99
from .customers import *
1010
from .dispute import *
1111
from .disputes import *
12-
from .disputestatus_enum import *
12+
from .disputestatus import *
1313
from .href import *
1414
from .links import *
1515
from .locationref import *
@@ -23,13 +23,13 @@
2323
from .paymentmethod import *
2424
from .paymentmethodref import *
2525
from .paymentmethods import *
26-
from .paymentmethodstatus_enum import *
26+
from .paymentmethodstatus import *
2727
from .paymentref import *
2828
from .payments import *
29-
from .paymentstatus_enum import *
30-
from .paymenttype_enum import *
29+
from .paymentstatus import *
30+
from .paymenttype import *
3131
from .phonenumber import *
32-
from .phonenumbertype_enum import *
32+
from .phonenumbertype import *
3333
from .product import *
3434
from .productcategories import *
3535
from .productcategory import *
@@ -40,19 +40,19 @@
4040
from .products import *
4141
from .productvariant import *
4242
from .productvariantref import *
43-
from .productvariantstatus_enum import *
43+
from .productvariantstatus import *
4444
from .recordref import *
4545
from .security import *
4646
from .servicecharge import *
47-
from .servicechargetype_enum import *
47+
from .servicechargetype import *
4848
from .taxcomponent import *
4949
from .taxcomponentallocation import *
5050
from .taxcomponentref import *
5151
from .taxcomponents import *
5252
from .transaction import *
5353
from .transactions import *
5454
from .transactionsourceref import *
55-
from .transactionsourcetype_enum import *
56-
from .transactiontype_enum import *
55+
from .transactionsourcetype import *
56+
from .transactiontype import *
5757

58-
__all__ = ["AccountBalance","Address","AddressTypeEnum","CompanyInfo","CompanyInfoWeblink","CompanyInfoWeblinkTypeEnum","Customer","CustomerRef","Customers","Dispute","DisputeStatusEnum","Disputes","HRef","Links","LocationRef","Locations","LocationsResponse","Order","OrderDiscountAllocation","OrderLineItem","Orders","Payment","PaymentMethod","PaymentMethodRef","PaymentMethodStatusEnum","PaymentMethods","PaymentRef","PaymentStatusEnum","PaymentTypeEnum","Payments","PhoneNumber","PhoneNumberTypeEnum","Product","ProductCategories","ProductCategory","ProductInventory","ProductInventoryLocation","ProductPrice","ProductRef","ProductVariant","ProductVariantRef","ProductVariantStatusEnum","Products","RecordRef","Security","ServiceCharge","ServiceChargeTypeEnum","TaxComponent","TaxComponentAllocation","TaxComponentRef","TaxComponents","Transaction","TransactionSourceRef","TransactionSourceTypeEnum","TransactionTypeEnum","Transactions"]
58+
__all__ = ["AccountBalance","Address","AddressType","CompanyInfo","CompanyInfoWeblink","CompanyInfoWeblinkType","Customer","CustomerRef","Customers","Dispute","DisputeStatus","Disputes","HRef","Links","LocationRef","Locations","LocationsResponse","Order","OrderDiscountAllocation","OrderLineItem","Orders","Payment","PaymentMethod","PaymentMethodRef","PaymentMethodStatus","PaymentMethods","PaymentRef","PaymentStatus","PaymentType","Payments","PhoneNumber","PhoneNumberType","Product","ProductCategories","ProductCategory","ProductInventory","ProductInventoryLocation","ProductPrice","ProductRef","ProductVariant","ProductVariantRef","ProductVariantStatus","Products","RecordRef","Security","ServiceCharge","ServiceChargeType","TaxComponent","TaxComponentAllocation","TaxComponentRef","TaxComponents","Transaction","TransactionSourceRef","TransactionSourceType","TransactionType","Transactions"]

commerce/src/codatcommerce/models/shared/address.py

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

33
from __future__ import annotations
44
import dataclasses
5-
from ..shared import addresstype_enum as shared_addresstype_enum
5+
from ..shared import addresstype as shared_addresstype
66
from codatcommerce import utils
77
from dataclasses_json import Undefined, dataclass_json
88
from typing import Optional
@@ -24,6 +24,6 @@ class Address:
2424
r"""The postal (or zip) code for the address"""
2525
region: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region'), 'exclude': lambda f: f is None }})
2626
r"""The fourth line of the address, or region"""
27-
type: Optional[shared_addresstype_enum.AddressTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }})
27+
type: Optional[shared_addresstype.AddressType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }})
2828
r"""The type of the address"""
2929

0 commit comments

Comments
 (0)