Skip to content

Commit 75d3ec5

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.19.2
1 parent 75dceb2 commit 75d3ec5

File tree

10 files changed

+35
-38
lines changed

10 files changed

+35
-38
lines changed

commerce/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,12 @@ Based on:
174174
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
175175
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy
176176
### Releases
177-
- [PyPI v0.9.3] https://pypi.org/project/codat-commerce/0.9.3 - commerce
177+
- [PyPI v0.9.3] https://pypi.org/project/codat-commerce/0.9.3 - commerce
178+
179+
## 2023-03-31 00:19:34
180+
### Changes
181+
Based on:
182+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
183+
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy
184+
### Releases
185+
- [PyPI v0.9.4] https://pypi.org/project/codat-commerce/0.9.4 - commerce

commerce/files.gen

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ src/codat/models/operations/get_tax_components.py
2828
src/codat/models/operations/list_transactions.py
2929
src/codat/models/operations/__init__.py
3030
src/codat/models/shared/companyinfo.py
31-
src/codat/models/shared/weblink.py
3231
src/codat/models/shared/phonenumber.py
3332
src/codat/models/shared/phonenumbertype_enum.py
3433
src/codat/models/shared/address.py

commerce/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 4c494948b277aeb61d3b826672a381bb
3+
docChecksum: 8969037f6f6767ed28a128d27a9d0dcb
44
docVersion: 2.1.0
55
speakeasyVersion: 1.19.2
66
generationVersion: 2.16.5
@@ -10,7 +10,7 @@ generation:
1010
sdkFlattening: true
1111
singleTagPerOp: false
1212
python:
13-
version: 0.9.3
13+
version: 0.9.4
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.3",
13+
version="0.9.4",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,5 @@
5454
from .transactionsourceref import *
5555
from .transactionsourcetype_enum import *
5656
from .transactiontype_enum import *
57-
from .weblink import *
5857

59-
__all__ = ["AccountBalance","Address","AddressTypeEnum","CompanyInfo","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","WebLink","WebLinkTypeEnum"]
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"]

commerce/src/codat/models/shared/companyinfo.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,28 @@
55
from ..shared import accountbalance as shared_accountbalance
66
from ..shared import address as shared_address
77
from ..shared import phonenumber as shared_phonenumber
8-
from ..shared import weblink as shared_weblink
98
from codat import utils
109
from dataclasses_json import Undefined, dataclass_json
10+
from enum import Enum
1111
from typing import Optional
1212

13+
class CompanyInfoWeblinkTypeEnum(str, Enum):
14+
r"""The type of the weblink."""
15+
WEBSITE = "Website"
16+
SOCIAL = "Social"
17+
UNKNOWN = "Unknown"
18+
19+
20+
@dataclass_json(undefined=Undefined.EXCLUDE)
21+
@dataclasses.dataclass
22+
class CompanyInfoWeblink:
23+
r"""Weblink associated with the company."""
24+
25+
type: Optional[CompanyInfoWeblinkTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }})
26+
r"""The type of the weblink."""
27+
url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('url'), 'exclude': lambda f: f is None }})
28+
r"""The full URL for the weblink."""
29+
1330

1431
@dataclass_json(undefined=Undefined.EXCLUDE)
1532
@dataclasses.dataclass
@@ -109,6 +126,6 @@ class CompanyInfo:
109126
"""
110127
source_urls: Optional[dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceUrls'), 'exclude': lambda f: f is None }})
111128
r"""URL addresses for the originating system. For example, potential use cases include 'deeplinking' to the originating system"""
112-
web_links: Optional[list[shared_weblink.WebLink]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('webLinks'), 'exclude': lambda f: f is None }})
129+
web_links: Optional[list[CompanyInfoWeblink]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('webLinks'), 'exclude': lambda f: f is None }})
113130
r"""Weblinks associated with the company"""
114131

commerce/src/codat/models/shared/customer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Customer:
7070
note: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('note'), 'exclude': lambda f: f is None }})
7171
r"""Any additional information about the customer"""
7272
phone: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone'), 'exclude': lambda f: f is None }})
73-
r"""A phone number"""
73+
r"""A phone number."""
7474
source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }})
7575
r"""In Codat's data model, dates and times are represented using the <a class=\"external\" href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
7676

commerce/src/codat/models/shared/phonenumber.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class PhoneNumber:
1313

1414
number: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('number') }})
15-
r"""A phone number"""
15+
r"""A phone number."""
1616
type: shared_phonenumbertype_enum.PhoneNumberTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }})
1717
r"""The type of phone number"""
1818

commerce/src/codat/models/shared/weblink.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

commerce/src/codat/sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Codat:
5252
_security_client: requests_http.Session
5353
_server_url: str = SERVERS[0]
5454
_language: str = "python"
55-
_sdk_version: str = "0.9.3"
55+
_sdk_version: str = "0.9.4"
5656
_gen_version: str = "2.16.5"
5757

5858
def __init__(self,

0 commit comments

Comments
 (0)