Skip to content

Commit b04f5de

Browse files
authored
Merge pull request #211 from codatio/speakeasy-sdk-regen-1687220388
chore: speakeasy sdk regeneration - Generate Commerce SDK
2 parents 7dc3304 + f23c07e commit b04f5de

File tree

28 files changed

+400
-59
lines changed

28 files changed

+400
-59
lines changed

commerce/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.python-version
2+
.DS_Store
13
venv/
24
src/*.egg-info/
35
__pycache__/

commerce/RELEASES.md

Lines changed: 89 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,4 +518,92 @@ Based on:
518518
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
519519
- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy
520520
### Releases
521-
- [PyPI v0.27.0] https://pypi.org/project/codat-commerce/0.27.0 - commerce
521+
- [PyPI v0.27.0] https://pypi.org/project/codat-commerce/0.27.0 - commerce
522+
523+
## 2023-06-20 00:19:45
524+
### Changes
525+
Based on:
526+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
527+
- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy
528+
### Releases
529+
- [PyPI v0.27.1] https://pypi.org/project/codat-commerce/0.27.1 - commerce
530+
531+
## 2023-06-21 00:21:22
532+
### Changes
533+
Based on:
534+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
535+
- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy
536+
### Releases
537+
- [PyPI v0.27.2] https://pypi.org/project/codat-commerce/0.27.2 - commerce
538+
539+
## 2023-06-23 00:24:47
540+
### Changes
541+
Based on:
542+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
543+
- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy
544+
### Releases
545+
- [PyPI v0.28.0] https://pypi.org/project/codat-commerce/0.28.0 - commerce
546+
547+
## 2023-06-24 00:24:23
548+
### Changes
549+
Based on:
550+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
551+
- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy
552+
### Releases
553+
- [PyPI v0.28.1] https://pypi.org/project/codat-commerce/0.28.1 - commerce
554+
555+
## 2023-06-27 00:23:43
556+
### Changes
557+
Based on:
558+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
559+
- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy
560+
### Releases
561+
- [PyPI v0.29.0] https://pypi.org/project/codat-commerce/0.29.0 - commerce
562+
563+
## 2023-06-29 00:23:43
564+
### Changes
565+
Based on:
566+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
567+
- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy
568+
### Releases
569+
- [PyPI v0.30.0] https://pypi.org/project/codat-commerce/0.30.0 - commerce
570+
571+
## 2023-07-01 00:25:50
572+
### Changes
573+
Based on:
574+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
575+
- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy
576+
### Releases
577+
- [PyPI v0.31.0] https://pypi.org/project/codat-commerce/0.31.0 - commerce
578+
579+
## 2023-07-05 00:24:26
580+
### Changes
581+
Based on:
582+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
583+
- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy
584+
### Releases
585+
- [PyPI v0.31.1] https://pypi.org/project/codat-commerce/0.31.1 - commerce
586+
587+
## 2023-07-06 00:24:17
588+
### Changes
589+
Based on:
590+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
591+
- Speakeasy CLI 1.52.2 (2.57.2) https://github.com/speakeasy-api/speakeasy
592+
### Releases
593+
- [PyPI v0.32.0] https://pypi.org/project/codat-commerce/0.32.0 - commerce
594+
595+
## 2023-07-07 00:23:57
596+
### Changes
597+
Based on:
598+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
599+
- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy
600+
### Releases
601+
- [PyPI v0.33.0] https://pypi.org/project/codat-commerce/0.33.0 - commerce
602+
603+
## 2023-07-07 09:23:11
604+
### Changes
605+
Based on:
606+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
607+
- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy
608+
### Releases
609+
- [PyPI v0.33.1] https://pypi.org/project/codat-commerce/0.33.1 - commerce

commerce/docs/models/shared/location.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# Location
22

3-
Reference to a configured dynamic key value pair that is unique to the accounting platform. This feature is in private beta, contact us if you would like to learn more.
3+
The Location datatype holds information on the geographic location at which stocks of products may be held, as referenced in the Products data type.
4+
5+
A Location also holds information on geographic locations where orders were placed, as referenced in the Orders data type.
6+
7+
Explore our [data coverage](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-locations) for this data type.
48

59

610
## Fields
711

812
| Field | Type | Required | Description | Example |
913
| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- |
1014
| `address` | [Optional[Address]](../../models/shared/address.md) | :heavy_minus_sign: | N/A | |
11-
| `content` | dict[str, dict[str, *Any*]] | :heavy_minus_sign: | N/A | |
1215
| `id` | *str* | :heavy_check_mark: | A unique, persistent identifier for this record | 13d946f0-c5d5-42bc-b092-97ece17923ab |
1316
| `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z |
1417
| `name` | *Optional[str]* | :heavy_minus_sign: | Name of this location | |

commerce/docs/models/shared/order.md

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# OrderSupplementalData
2+
3+
Supplemental data is additional data you can include in our standard data types.
4+
5+
It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/additional-data) about supplemental data.
6+
7+
8+
## Fields
9+
10+
| Field | Type | Required | Description |
11+
| --------------------------- | --------------------------- | --------------------------- | --------------------------- |
12+
| `content` | dict[str, dict[str, *Any*]] | :heavy_minus_sign: | N/A |

commerce/docs/sdks/customers/README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ Retrieve standardized data from linked commerce platforms.
1111

1212
## get
1313

14-
Get a specific commerce customer for the given company and data connection.
14+
The *Get customer* endpoint returns a single customer for a given customerId.
15+
16+
[Customers](https://docs.codat.io/commerce-api#/schemas/Customer) are people or organizations that place orders, make payments and receive goods and/or services from the SMB.
17+
18+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-customers) for integrations that support getting a specific customer.
19+
20+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
21+
1522

1623
### Example Usage
1724

@@ -52,7 +59,12 @@ if res.customer is not None:
5259

5360
## list
5461

55-
List all commerce customers for the given company and data connection
62+
The *List customers* endpoint returns a list of [customers](https://docs.codat.io/commerce-api#/schemas/Customer) for a given company's connection.
63+
64+
[Customers](https://docs.codat.io/commerce-api#/schemas/Customer) are people or organizations that place orders, make payments and recieve goods and/or services from the SMB.
65+
66+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
67+
5668

5769
### Example Usage
5870

commerce/docs/sdks/disputes/README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ Retrieve standardized data from linked commerce platforms.
1111

1212
## get
1313

14-
Get a specific commerce dispute.
14+
The *Get dispute* endpoint returns a single dispute for a given disputeId.
15+
16+
[Disputes](https://docs.codat.io/commerce-api#/schemas/Dispute) are created when a customer is unsatisfied with their purchase or believe they have been charged incorrectly.
17+
18+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-disputes) for integrations that support getting a specific dispute.
19+
20+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
21+
1522

1623
### Example Usage
1724

@@ -52,7 +59,12 @@ if res.dispute is not None:
5259

5360
## list
5461

55-
List commerce disputes
62+
The *List disputes* endpoint returns a list of [disputes](https://docs.codat.io/commerce-api#/schemas/Dispute) for a given company's connection.
63+
64+
[Disputes](https://docs.codat.io/commerce-api#/schemas/Dispute) are created when a customer is unsatisfied with their purchase or believe they have been charged incorrectly.
65+
66+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
67+
5668

5769
### Example Usage
5870

commerce/docs/sdks/locations/README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ Retrieve standardized data from linked commerce platforms.
1111

1212
## get
1313

14-
Retrieve a location as seen in the commerce platform.
14+
The *Get location* endpoint returns a single location for a given locationId.
15+
16+
[Locations](https://docs.codat.io/commerce-api#/schemas/Location) hold information on the geographic location at which stocks of [products](https://docs.codat.io/commerce-api#/schemas/Product) may be held or where [orders](https://docs.codat.io/commerce-api#/schemas/Order) were placed.
17+
18+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-locations) for integrations that support getting a specific location.
19+
20+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
1521

16-
A `location` is a geographic place at which stocks of products may be held, or from where orders were placed.
1722

1823
### Example Usage
1924

@@ -54,9 +59,12 @@ if res.location is not None:
5459

5560
## list
5661

57-
Retrieve a list of locations as seen in the commerce platform.
62+
The *List locations* endpoint returns a list of [locations](https://docs.codat.io/commerce-api#/schemas/Location) for a given company's connection.
63+
64+
[Locations](https://docs.codat.io/commerce-api#/schemas/Location) hold information on the geographic location at which stocks of [products](https://docs.codat.io/commerce-api#/schemas/Product) may be held or where [orders](https://docs.codat.io/commerce-api#/schemas/Order) were placed.
5865

59-
A `location` is a geographic place at which stocks of products may be held, or from where orders were placed.
66+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
67+
6068

6169
### Example Usage
6270

commerce/docs/sdks/orders/README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ Retrieve standardized data from linked commerce platforms.
1111

1212
## get
1313

14-
Get a specific order placed or held on the linked commerce platform.
14+
The *Get order* endpoint returns a single order for a given orderId.
15+
16+
[Orders](https://docs.codat.io/commerce-api#/schemas/Order) contain the transaction details for all products sold by the company.
17+
18+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-orders) for integrations that support getting a specific order.
19+
20+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
21+
1522

1623
### Example Usage
1724

@@ -52,7 +59,12 @@ if res.order is not None:
5259

5360
## list
5461

55-
Get a list of orders placed or held on the linked commerce platform
62+
The *List orders* endpoint returns a list of [orders](https://docs.codat.io/commerce-api#/schemas/Order) for a given company's connection.
63+
64+
[Orders](https://docs.codat.io/commerce-api#/schemas/Order) contain the transaction details for all products sold by the company.
65+
66+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
67+
5668

5769
### Example Usage
5870

commerce/docs/sdks/payments/README.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ Retrieve standardized data from linked commerce platforms.
1313

1414
## get
1515

16-
Get a specific commerce payment for the given company & data connection.
16+
The *Get payment* endpoint returns a single payment for a given paymentId.
17+
18+
[Payments](https://docs.codat.io/commerce-api#/schemas/Payment) contain details of all payments made by customers to the company.
19+
20+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-payments) for integrations that support getting a specific payment.
21+
22+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
23+
1724

1825
### Example Usage
1926

@@ -54,7 +61,14 @@ if res.payment is not None:
5461

5562
## get_method
5663

57-
Retrieve a specific payment method, such as card, cash or other online payment methods, as held in the linked commerce platform.
64+
The *Get payment method* endpoint returns a single payment method for a given paymentMethodId.
65+
66+
[Payment methods](https://docs.codat.io/commerce-api#/schemas/PaymentMethod) represent the payment method(s) used to make payments.
67+
68+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-paymentMethods) for integrations that support getting a specific payment method.
69+
70+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
71+
5872

5973
### Example Usage
6074

@@ -95,7 +109,12 @@ if res.payment_method is not None:
95109

96110
## list
97111

98-
List commerce payments for the given company & data connection.
112+
The *List payments* endpoint returns a list of [payments](https://docs.codat.io/commerce-api#/schemas/Payment) for a given company's connection.
113+
114+
[Payments](https://docs.codat.io/commerce-api#/schemas/Payment) contain details of all payments made by customers to the company.
115+
116+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
117+
99118

100119
### Example Usage
101120

@@ -139,7 +158,12 @@ if res.payments is not None:
139158

140159
## list_methods
141160

142-
Retrieve a list of payment methods, such as card, cash or other online payment methods, as held in the linked commerce platform.
161+
The *List payment methods* endpoint returns a list of [payment methods](https://docs.codat.io/commerce-api#/schemas/PaymentMethod) for a given company's connection.
162+
163+
[Payment methods](https://docs.codat.io/commerce-api#/schemas/PaymentMethod) represent the payment method(s) used to make payments.
164+
165+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).
166+
143167

144168
### Example Usage
145169

0 commit comments

Comments
 (0)