Skip to content

Commit 75dceb2

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

File tree

94 files changed

+2633
-1495
lines changed

Some content is hidden

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

94 files changed

+2633
-1495
lines changed

commerce/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ s = codat.Codat(
2121
)
2222

2323

24-
req = operations.GetCommerceInfoRequest(
24+
req = operations.GetCompanyInfoRequest(
2525
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
2626
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
2727
)
2828

29-
res = s.company_info.get_commerce_info(req)
29+
res = s.company_info.get_company_info(req)
3030

31-
if res.source_modified_date is not None:
31+
if res.company_info is not None:
3232
# handle response
3333
```
3434
<!-- End SDK Example Usage -->
@@ -39,41 +39,41 @@ if res.source_modified_date is not None:
3939

4040
### company_info
4141

42-
* `get_commerce_info` - Get company info
42+
* `get_company_info` - Get company info
4343

4444
### customers
4545

46-
* `list_commerce_customers` - List customers
46+
* `list_customers` - List customers
4747

4848
### disputes
4949

50-
* `list_commerce_disputes` - List disputes
50+
* `list_disputes` - List disputes
5151

5252
### locations
5353

54-
* `list_commerce_locations` - List locations
54+
* `list_locations` - List locations
5555

5656
### orders
5757

58-
* `list_commerce_orders` - List orders
58+
* `list_orders` - List orders
5959

6060
### payments
6161

62-
* `list_commerce_payment_methods` - List payment methods
63-
* `list_commerce_payments` - List payments
62+
* `list_payment_methods` - List payment methods
63+
* `list_payments` - List payments
6464

6565
### products
6666

67-
* `list_commerce_product_categories` - List product categories
68-
* `list_commerce_products` - List products
67+
* `list_product_categories` - List product categories
68+
* `list_products` - List products
6969

7070
### tax_components
7171

72-
* `get_companies_company_id_connections_connection_id_data_commerce_tax_components` - List tax components
72+
* `get_tax_components` - List tax components
7373

7474
### transactions
7575

76-
* `list_commerce_transactions` - List transactions
76+
* `list_transactions` - List transactions
7777
<!-- End SDK Available Operations -->
7878

7979
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

commerce/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,12 @@ Based on:
166166
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
167167
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy
168168
### Releases
169-
- [PyPI v0.9.2] https://pypi.org/project/codat-commerce/0.9.2 - commerce
169+
- [PyPI v0.9.2] https://pypi.org/project/codat-commerce/0.9.2 - commerce
170+
171+
## 2023-03-30 00:20:10
172+
### Changes
173+
Based on:
174+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
175+
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy
176+
### Releases
177+
- [PyPI v0.9.3] https://pypi.org/project/codat-commerce/0.9.3 - commerce

commerce/USAGE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ s = codat.Codat(
1010
)
1111

1212

13-
req = operations.GetCommerceInfoRequest(
13+
req = operations.GetCompanyInfoRequest(
1414
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
1515
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
1616
)
1717

18-
res = s.company_info.get_commerce_info(req)
18+
res = s.company_info.get_company_info(req)
1919

20-
if res.source_modified_date is not None:
20+
if res.company_info is not None:
2121
# handle response
2222
```
2323
<!-- End SDK Example Usage -->

commerce/files.gen

Lines changed: 65 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,72 @@ src/codat/models/__init__.py
1515
src/codat/utils/__init__.py
1616
src/codat/utils/retries.py
1717
src/codat/utils/utils.py
18-
src/codat/models/operations/get_commerce_info.py
19-
src/codat/models/operations/list_commerce_customers.py
20-
src/codat/models/operations/list_commerce_disputes.py
21-
src/codat/models/operations/list_commerce_locations.py
22-
src/codat/models/operations/list_commerce_orders.py
23-
src/codat/models/operations/list_commerce_paymentmethods.py
24-
src/codat/models/operations/list_commerce_payments.py
25-
src/codat/models/operations/list_commerce_productcategories.py
26-
src/codat/models/operations/list_commerce_products.py
27-
src/codat/models/operations/get_companies_companyid_connections_connectionid_data_commerce_taxcomponents.py
28-
src/codat/models/operations/list_commerce_transactions.py
18+
src/codat/models/operations/get_company_info.py
19+
src/codat/models/operations/list_customers.py
20+
src/codat/models/operations/list_disputes.py
21+
src/codat/models/operations/list_locations.py
22+
src/codat/models/operations/list_orders.py
23+
src/codat/models/operations/list_payment_methods.py
24+
src/codat/models/operations/list_payments.py
25+
src/codat/models/operations/list_product_categories.py
26+
src/codat/models/operations/list_products.py
27+
src/codat/models/operations/get_tax_components.py
28+
src/codat/models/operations/list_transactions.py
2929
src/codat/models/operations/__init__.py
30+
src/codat/models/shared/companyinfo.py
31+
src/codat/models/shared/weblink.py
32+
src/codat/models/shared/phonenumber.py
33+
src/codat/models/shared/phonenumbertype_enum.py
34+
src/codat/models/shared/address.py
35+
src/codat/models/shared/addresstype_enum.py
36+
src/codat/models/shared/accountbalance.py
37+
src/codat/models/shared/customers.py
38+
src/codat/models/shared/customer.py
39+
src/codat/models/shared/links.py
40+
src/codat/models/shared/href.py
41+
src/codat/models/shared/disputes.py
42+
src/codat/models/shared/dispute.py
43+
src/codat/models/shared/disputestatus_enum.py
44+
src/codat/models/shared/transactionsourceref.py
45+
src/codat/models/shared/transactionsourcetype_enum.py
46+
src/codat/models/shared/locationsresponse.py
47+
src/codat/models/shared/locations.py
48+
src/codat/models/shared/orders.py
49+
src/codat/models/shared/order.py
50+
src/codat/models/shared/servicecharge.py
51+
src/codat/models/shared/servicechargetype_enum.py
52+
src/codat/models/shared/taxcomponentallocation.py
53+
src/codat/models/shared/taxcomponentref.py
54+
src/codat/models/shared/paymentref.py
55+
src/codat/models/shared/paymenttype_enum.py
56+
src/codat/models/shared/paymentstatus_enum.py
57+
src/codat/models/shared/orderlineitem.py
58+
src/codat/models/shared/productvariantref.py
59+
src/codat/models/shared/productref.py
60+
src/codat/models/shared/orderdiscountallocation.py
61+
src/codat/models/shared/locationref.py
62+
src/codat/models/shared/customerref.py
63+
src/codat/models/shared/paymentmethods.py
64+
src/codat/models/shared/paymentmethod.py
65+
src/codat/models/shared/paymentmethodstatus_enum.py
66+
src/codat/models/shared/payments.py
67+
src/codat/models/shared/payment.py
68+
src/codat/models/shared/paymentmethodref.py
69+
src/codat/models/shared/productcategories.py
70+
src/codat/models/shared/productcategory.py
71+
src/codat/models/shared/recordref.py
72+
src/codat/models/shared/products.py
73+
src/codat/models/shared/product.py
74+
src/codat/models/shared/productvariant.py
75+
src/codat/models/shared/productvariantstatus_enum.py
76+
src/codat/models/shared/productprice.py
77+
src/codat/models/shared/productinventory.py
78+
src/codat/models/shared/productinventorylocation.py
79+
src/codat/models/shared/taxcomponents.py
80+
src/codat/models/shared/taxcomponent.py
81+
src/codat/models/shared/transactions.py
82+
src/codat/models/shared/transaction.py
83+
src/codat/models/shared/transactiontype_enum.py
3084
src/codat/models/shared/security.py
3185
src/codat/models/shared/__init__.py
3286
USAGE.md

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: e82cca9032619d65c284dfc97572f754
3+
docChecksum: 4c494948b277aeb61d3b826672a381bb
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.2
13+
version: 0.9.3
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.2",
13+
version="0.9.3",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

commerce/src/codat/company_info.py

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

33
import requests as requests_http
44
from . import utils
5-
from codat.models import operations
5+
from codat.models import operations, shared
66
from typing import Optional
77

88
class CompanyInfo:
@@ -22,28 +22,28 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2222
self._sdk_version = sdk_version
2323
self._gen_version = gen_version
2424

25-
def get_commerce_info(self, request: operations.GetCommerceInfoRequest) -> operations.GetCommerceInfoResponse:
25+
def get_company_info(self, request: operations.GetCompanyInfoRequest) -> operations.GetCompanyInfoResponse:
2626
r"""Get company info
2727
Retrieve information about the company, as seen in the commerce platform.
2828
2929
This may include information like addresses, tax registration details and social media or website information.
3030
"""
3131
base_url = self._server_url
3232

33-
url = utils.generate_url(operations.GetCommerceInfoRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-info', request)
33+
url = utils.generate_url(operations.GetCompanyInfoRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-info', request)
3434

3535

3636
client = self._security_client
3737

3838
http_res = client.request('GET', url)
3939
content_type = http_res.headers.get('Content-Type')
4040

41-
res = operations.GetCommerceInfoResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
41+
res = operations.GetCompanyInfoResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
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.GetCommerceInfoSourceModifiedDate])
46-
res.source_modified_date = out
45+
out = utils.unmarshal_json(http_res.text, Optional[shared.CompanyInfo])
46+
res.company_info = out
4747

4848
return res
4949

commerce/src/codat/customers.py

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

33
import requests as requests_http
44
from . import utils
5-
from codat.models import operations
5+
from codat.models import operations, shared
66
from typing import Optional
77

88
class Customers:
@@ -22,27 +22,27 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2222
self._sdk_version = sdk_version
2323
self._gen_version = gen_version
2424

25-
def list_commerce_customers(self, request: operations.ListCommerceCustomersRequest) -> operations.ListCommerceCustomersResponse:
25+
def list_customers(self, request: operations.ListCustomersRequest) -> operations.ListCustomersResponse:
2626
r"""List customers
2727
List all commerce customers for the given company and data connection
2828
"""
2929
base_url = self._server_url
3030

31-
url = utils.generate_url(operations.ListCommerceCustomersRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-customers', request)
31+
url = utils.generate_url(operations.ListCustomersRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-customers', request)
3232

33-
query_params = utils.get_query_params(operations.ListCommerceCustomersRequest, request)
33+
query_params = utils.get_query_params(operations.ListCustomersRequest, request)
3434

3535
client = self._security_client
3636

3737
http_res = client.request('GET', url, params=query_params)
3838
content_type = http_res.headers.get('Content-Type')
3939

40-
res = operations.ListCommerceCustomersResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
40+
res = operations.ListCustomersResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
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.ListCommerceCustomers200ApplicationJSON])
45-
res.list_commerce_customers_200_application_json_object = out
44+
out = utils.unmarshal_json(http_res.text, Optional[shared.Customers])
45+
res.customers = out
4646

4747
return res
4848

commerce/src/codat/disputes.py

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

33
import requests as requests_http
44
from . import utils
5-
from codat.models import operations
5+
from codat.models import operations, shared
66
from typing import Optional
77

88
class Disputes:
@@ -22,27 +22,27 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2222
self._sdk_version = sdk_version
2323
self._gen_version = gen_version
2424

25-
def list_commerce_disputes(self, request: operations.ListCommerceDisputesRequest) -> operations.ListCommerceDisputesResponse:
25+
def list_disputes(self, request: operations.ListDisputesRequest) -> operations.ListDisputesResponse:
2626
r"""List disputes
2727
List commerce disputes
2828
"""
2929
base_url = self._server_url
3030

31-
url = utils.generate_url(operations.ListCommerceDisputesRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-disputes', request)
31+
url = utils.generate_url(operations.ListDisputesRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-disputes', request)
3232

33-
query_params = utils.get_query_params(operations.ListCommerceDisputesRequest, request)
33+
query_params = utils.get_query_params(operations.ListDisputesRequest, request)
3434

3535
client = self._security_client
3636

3737
http_res = client.request('GET', url, params=query_params)
3838
content_type = http_res.headers.get('Content-Type')
3939

40-
res = operations.ListCommerceDisputesResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
40+
res = operations.ListDisputesResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
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.ListCommerceDisputes200ApplicationJSON])
45-
res.list_commerce_disputes_200_application_json_object = out
44+
out = utils.unmarshal_json(http_res.text, Optional[shared.Disputes])
45+
res.disputes = out
4646

4747
return res
4848

commerce/src/codat/locations.py

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

33
import requests as requests_http
44
from . import utils
5-
from codat.models import operations
5+
from codat.models import operations, shared
66
from typing import Optional
77

88
class Locations:
@@ -22,28 +22,28 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2222
self._sdk_version = sdk_version
2323
self._gen_version = gen_version
2424

25-
def list_commerce_locations(self, request: operations.ListCommerceLocationsRequest) -> operations.ListCommerceLocationsResponse:
25+
def list_locations(self, request: operations.ListLocationsRequest) -> operations.ListLocationsResponse:
2626
r"""List locations
2727
Retrieve a list of locations as seen in the commerce platform.
2828
2929
A `location` is a geographic place at which stocks of products may be held, or from where orders were placed.
3030
"""
3131
base_url = self._server_url
3232

33-
url = utils.generate_url(operations.ListCommerceLocationsRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-locations', request)
33+
url = utils.generate_url(operations.ListLocationsRequest, base_url, '/companies/{companyId}/connections/{connectionId}/data/commerce-locations', request)
3434

3535

3636
client = self._security_client
3737

3838
http_res = client.request('GET', url)
3939
content_type = http_res.headers.get('Content-Type')
4040

41-
res = operations.ListCommerceLocationsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
41+
res = operations.ListLocationsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
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.ListCommerceLocations200ApplicationJSON])
46-
res.list_commerce_locations_200_application_json_object = out
45+
out = utils.unmarshal_json(http_res.text, Optional[shared.LocationsResponse])
46+
res.locations_response = out
4747

4848
return res
4949

0 commit comments

Comments
 (0)