Skip to content

Commit aecb2b5

Browse files
chore: speakeasy sdk regeneration - Generate Commerce SDK (#6)
* ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.7.1 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.2 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.4 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.5 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.6 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.7 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.9.1 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.9.2 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.11.0 --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent c53e2c2 commit aecb2b5

Some content is hidden

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

44 files changed

+5709
-2
lines changed

commerce/README.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# @codat/commerce
2+
3+
<!-- Start SDK Installation -->
4+
## SDK Installation
5+
6+
### NPM
7+
8+
```bash
9+
npm add @codat/commerce
10+
```
11+
12+
### Yarn
13+
14+
```bash
15+
yarn add @codat/commerce
16+
```
17+
<!-- End SDK Installation -->
18+
19+
## SDK Example Usage
20+
<!-- Start SDK Example Usage -->
21+
```typescript
22+
import {
23+
GetCommerceInfoRequest,
24+
GetCommerceInfoResponse
25+
} from "@codat/commerce/dist/sdk/models/operations";
26+
27+
import { AxiosError } from "axios";
28+
import { Codat } from "@codat/commerce";
29+
const sdk = new Codat({
30+
security: {
31+
authHeader: "YOUR_API_KEY_HERE",
32+
},
33+
});
34+
35+
const req: GetCommerceInfoRequest = {
36+
pathParams: {
37+
companyId: "unde",
38+
connectionId: "deserunt",
39+
},
40+
};
41+
42+
sdk.companyInfo.getCommerceInfo(req).then((res: GetCommerceInfoResponse | AxiosError) => {
43+
// handle response
44+
});
45+
```
46+
<!-- End SDK Example Usage -->
47+
48+
<!-- Start SDK Available Operations -->
49+
## SDK Available Operations
50+
51+
52+
### companyInfo
53+
54+
* `getCommerceInfo` - Get company info
55+
56+
### customers
57+
58+
* `listCommerceCustomers` - List customers
59+
60+
### disputes
61+
62+
* `listCommerceDisputes` - List disputes
63+
64+
### locations
65+
66+
* `listCommerceLocations` - List locations
67+
68+
### orders
69+
70+
* `listCommerceOrders` - List orders
71+
72+
### payments
73+
74+
* `listCommercePaymentMethods` - List payment methods
75+
* `listCommercePayments` - List payments
76+
77+
### products
78+
79+
* `listCommerceProductCategories` - List product categories
80+
* `listCommerceProducts` - List products
81+
82+
### taxComponents
83+
84+
* `getCompaniesCompanyIdConnectionsConnectionIdDataCommerceTaxComponents` - List tax components
85+
86+
### transactions
87+
88+
* `listCommerceTransactions` - List transactions
89+
<!-- End SDK Available Operations -->
90+
91+
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

commerce/RELEASES.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
2+
3+
## 2023-03-02 00:11:13
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
7+
- Speakeasy CLI 1.7.1 https://github.com/speakeasy-api/speakeasy
8+
### Releases
9+
- [NPM v0.1.0] https://www.npmjs.com/package/@codat/commerce/v/0.1.0 - commerce
10+
11+
## 2023-03-04 00:09:32
12+
### Changes
13+
Based on:
14+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
15+
- Speakeasy CLI 1.8.2 https://github.com/speakeasy-api/speakeasy
16+
### Releases
17+
- [NPM v0.2.0] https://www.npmjs.com/package/@codat/commerce/v/0.2.0 - commerce
18+
19+
## 2023-03-06 00:10:27
20+
### Changes
21+
Based on:
22+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
23+
- Speakeasy CLI 1.8.4 https://github.com/speakeasy-api/speakeasy
24+
### Releases
25+
- [NPM v0.2.1] https://www.npmjs.com/package/@codat/commerce/v/0.2.1 - commerce
26+
27+
## 2023-03-07 00:11:10
28+
### Changes
29+
Based on:
30+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
31+
- Speakeasy CLI 1.8.5 https://github.com/speakeasy-api/speakeasy
32+
### Releases
33+
- [NPM v0.2.2] https://www.npmjs.com/package/@codat/commerce/v/0.2.2 - commerce
34+
35+
## 2023-03-08 00:10:06
36+
### Changes
37+
Based on:
38+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
39+
- Speakeasy CLI 1.8.6 https://github.com/speakeasy-api/speakeasy
40+
### Releases
41+
- [NPM v0.2.3] https://www.npmjs.com/package/@codat/commerce/v/0.2.3 - commerce
42+
43+
## 2023-03-09 00:10:24
44+
### Changes
45+
Based on:
46+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
47+
- Speakeasy CLI 1.8.7 https://github.com/speakeasy-api/speakeasy
48+
### Releases
49+
- [NPM v0.2.4] https://www.npmjs.com/package/@codat/commerce/v/0.2.4 - commerce
50+
51+
## 2023-03-10 00:10:16
52+
### Changes
53+
Based on:
54+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
55+
- Speakeasy CLI 1.9.1 https://github.com/speakeasy-api/speakeasy
56+
### Releases
57+
- [NPM v0.3.0] https://www.npmjs.com/package/@codat/commerce/v/0.3.0 - commerce
58+
59+
## 2023-03-11 00:09:18
60+
### Changes
61+
Based on:
62+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
63+
- Speakeasy CLI 1.9.2 https://github.com/speakeasy-api/speakeasy
64+
### Releases
65+
- [NPM v0.3.1] https://www.npmjs.com/package/@codat/commerce/v/0.3.1 - commerce
66+
67+
## 2023-03-15 00:09:41
68+
### Changes
69+
Based on:
70+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml
71+
- Speakeasy CLI 1.11.0 https://github.com/speakeasy-api/speakeasy
72+
### Releases
73+
- [NPM v0.4.0] https://www.npmjs.com/package/@codat/commerce/v/0.4.0 - commerce

commerce/USAGE.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!-- Start SDK Example Usage -->
2+
```typescript
3+
import {
4+
GetCommerceInfoRequest,
5+
GetCommerceInfoResponse
6+
} from "@codat/commerce/dist/sdk/models/operations";
7+
8+
import { AxiosError } from "axios";
9+
import { Codat } from "@codat/commerce";
10+
const sdk = new Codat({
11+
security: {
12+
authHeader: "YOUR_API_KEY_HERE",
13+
},
14+
});
15+
16+
const req: GetCommerceInfoRequest = {
17+
pathParams: {
18+
companyId: "unde",
19+
connectionId: "deserunt",
20+
},
21+
};
22+
23+
sdk.companyInfo.getCommerceInfo(req).then((res: GetCommerceInfoResponse | AxiosError) => {
24+
// handle response
25+
});
26+
```
27+
<!-- End SDK Example Usage -->

commerce/files.gen

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
src/sdk/companyinfo.ts
2+
src/sdk/customers.ts
3+
src/sdk/disputes.ts
4+
src/sdk/locations.ts
5+
src/sdk/orders.ts
6+
src/sdk/payments.ts
7+
src/sdk/products.ts
8+
src/sdk/taxcomponents.ts
9+
src/sdk/transactions.ts
10+
src/sdk/sdk.ts
11+
jest.config.js
12+
package-lock.json
13+
package.json
14+
src/index.ts
15+
src/internal/utils/contenttype.ts
16+
src/internal/utils/headers.ts
17+
src/internal/utils/index.ts
18+
src/internal/utils/pathparams.ts
19+
src/internal/utils/queryparams.ts
20+
src/internal/utils/requestbody.ts
21+
src/internal/utils/retries.ts
22+
src/internal/utils/security.ts
23+
src/internal/utils/utils.ts
24+
src/sdk/index.ts
25+
tsconfig.json
26+
src/sdk/models/operations/getcommerceinfo.ts
27+
src/sdk/models/operations/listcommercecustomers.ts
28+
src/sdk/models/operations/listcommercedisputes.ts
29+
src/sdk/models/operations/listcommercelocations.ts
30+
src/sdk/models/operations/listcommerceorders.ts
31+
src/sdk/models/operations/listcommercepaymentmethods.ts
32+
src/sdk/models/operations/listcommercepayments.ts
33+
src/sdk/models/operations/listcommerceproductcategories.ts
34+
src/sdk/models/operations/listcommerceproducts.ts
35+
src/sdk/models/operations/getcompaniescompanyidconnectionsconnectioniddatacommercetaxcomponents.ts
36+
src/sdk/models/operations/listcommercetransactions.ts
37+
src/sdk/models/operations/index.ts
38+
src/sdk/models/shared/security.ts
39+
src/sdk/models/shared/index.ts
40+
USAGE.md

commerce/gen.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
configVersion: 1.0.0
2+
management:
3+
docChecksum: 5aaec830e294b860612be1a7afc096e3
4+
docVersion: 2.1.0
5+
speakeasyVersion: 1.11.0
26
generation:
7+
telemetryEnabled: false
38
sdkClassName: codat
49
sdkFlattening: true
510
typescript:
6-
version: 0.0.1
7-
packageName: "@codat/commerce"
11+
version: 0.4.0
12+
author: Speakeasy
13+
packageName: '@codat/commerce'

commerce/jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
verbose: false,
5+
testPathIgnorePatterns: [
6+
"<rootDir>/__tests__/helpers.ts"
7+
]
8+
};

0 commit comments

Comments
 (0)