Skip to content

Commit cbcf791

Browse files
committed
chore(buyers): Add buyer response models
1 parent bebc2f2 commit cbcf791

File tree

69 files changed

+1240
-164
lines changed

Some content is hidden

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

69 files changed

+1240
-164
lines changed

.speakeasy/gen.lock

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 595a8af4-8da0-44fa-a00d-c1cb52e0c7dc
33
management:
4-
docChecksum: 3b599081e9cf1bca845e38090565d576
4+
docChecksum: 8c961283d2319291baaf8086401a6006
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.390.0
7-
generationVersion: 2.409.0
8-
releaseVersion: 0.7.4
9-
configChecksum: 9c5d12f973142feaa6b6538c80a41b6b
6+
speakeasyVersion: 1.390.8
7+
generationVersion: 2.409.8
8+
releaseVersion: 0.7.5
9+
configChecksum: 9af6fa5603023956f46f3918f925a1b7
1010
repoURL: https://github.com/gr4vy/gr4vy-js.git
1111
installationURL: https://github.com/gr4vy/gr4vy-js
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
1616
constsAndDefaults: 0.1.11
17-
core: 3.16.0
17+
core: 3.16.1
1818
defaultEnabledRetries: 0.1.0
1919
envVarSecurityUsage: 0.1.1
2020
flattening: 2.81.1
@@ -94,15 +94,20 @@ generatedFiles:
9494
- src/models/operations/getbuyershippingdetails.ts
9595
- src/models/operations/updatebuyershippingdetails.ts
9696
- src/models/operations/deletebuyershippingdetails.ts
97-
- src/models/errors/httpvalidationerror.ts
97+
- src/models/components/buyercollection.ts
98+
- src/models/components/buyer.ts
99+
- src/models/components/billingdetails.ts
100+
- src/models/components/taxidkind.ts
98101
- src/models/components/validationerror.ts
99102
- src/models/components/buyercreate.ts
100-
- src/models/components/taxidkind.ts
101103
- src/models/components/buyerupdate.ts
102-
- src/models/components/billingdetails.ts
104+
- src/models/components/billingdetailssummary.ts
105+
- src/models/components/shippingdetailslist.ts
106+
- src/models/components/shippingdetails.ts
103107
- src/models/components/shippingdetailscreate.ts
104108
- src/models/components/shippingdetailsupdate.ts
105109
- src/models/components/security.ts
110+
- src/models/errors/httpvalidationerror.ts
106111
- src/models/errors/index.ts
107112
- src/models/operations/index.ts
108113
- src/models/components/index.ts
@@ -118,23 +123,34 @@ generatedFiles:
118123
- docs/models/operations/getbuyershippingdetailsrequest.md
119124
- docs/models/operations/updatebuyershippingdetailsrequest.md
120125
- docs/models/operations/deletebuyershippingdetailsrequest.md
121-
- docs/models/errors/httpvalidationerror.md
126+
- docs/models/components/buyercollection.md
127+
- docs/models/components/type.md
128+
- docs/models/components/buyer.md
129+
- docs/models/components/address.md
130+
- docs/models/components/taxid.md
131+
- docs/models/components/billingdetails.md
132+
- docs/models/components/taxidkind.md
122133
- docs/models/components/loc.md
123134
- docs/models/components/validationerror.md
124135
- docs/models/components/buyercreateaddress.md
125136
- docs/models/components/buyercreatetaxid.md
126137
- docs/models/components/buyercreatebillingdetails.md
127138
- docs/models/components/buyercreate.md
128-
- docs/models/components/taxidkind.md
129139
- docs/models/components/buyerupdate.md
130-
- docs/models/components/address.md
131-
- docs/models/components/taxid.md
132-
- docs/models/components/billingdetails.md
140+
- docs/models/components/billingdetailssummaryaddress.md
141+
- docs/models/components/billingdetailssummarytaxid.md
142+
- docs/models/components/billingdetailssummarytype.md
143+
- docs/models/components/billingdetailssummary.md
144+
- docs/models/components/shippingdetailslist.md
145+
- docs/models/components/shippingdetailsaddress.md
146+
- docs/models/components/shippingdetailstype.md
147+
- docs/models/components/shippingdetails.md
133148
- docs/models/components/shippingdetailscreateaddress.md
134149
- docs/models/components/shippingdetailscreate.md
135150
- docs/models/components/shippingdetailsupdateaddress.md
136151
- docs/models/components/shippingdetailsupdate.md
137152
- docs/models/components/security.md
153+
- docs/models/errors/httpvalidationerror.md
138154
- docs/sdks/gr4vy/README.md
139155
- docs/lib/utils/retryconfig.md
140156
- docs/sdks/buyers/README.md

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
typescript:
15-
version: 0.7.4
15+
version: 0.7.5
1616
additionalDependencies:
1717
dependencies:
1818
'@trust/keyto': ^1.0.1

.speakeasy/overlays/servers.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ actions:
2222
default: example
2323
description: The subdomain for your Gr4vy instance.
2424
example: example
25-
required: true

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
speakeasyVersion: 1.390.0
1+
speakeasyVersion: 1.390.8
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:c89ccd6ede387d398341cb75f0c5ad2b342c8723f6a6ddd921a3afe6c1da6ac0
6-
sourceBlobDigest: sha256:4bc4cfbfc174c94dcecd9c2636d77267bc0fbd2cea777a602afb97e78ba0e097
5+
sourceRevisionDigest: sha256:b345c5de7018c47d67f08afba307ae772ce9ca4db27ca36343caed97b9d5c1f8
6+
sourceBlobDigest: sha256:18c33c5e7d8d2b9711dd4679f2e5008cf481f505d046e6fc93a304542e8691a4
77
tags:
88
- latest
99
targets:
1010
first-target:
1111
source: openapi
1212
sourceNamespace: openapi
13-
sourceRevisionDigest: sha256:c89ccd6ede387d398341cb75f0c5ad2b342c8723f6a6ddd921a3afe6c1da6ac0
14-
sourceBlobDigest: sha256:4bc4cfbfc174c94dcecd9c2636d77267bc0fbd2cea777a602afb97e78ba0e097
13+
sourceRevisionDigest: sha256:b345c5de7018c47d67f08afba307ae772ce9ca4db27ca36343caed97b9d5c1f8
14+
sourceBlobDigest: sha256:18c33c5e7d8d2b9711dd4679f2e5008cf481f505d046e6fc93a304542e8691a4
1515
outLocation: /Users/cbetta/code/gr4vy-js
1616
workflow:
1717
workflowVersion: 1.0.0
1818
speakeasyVersion: latest
1919
sources:
2020
openapi:
2121
inputs:
22-
- location: https://gr4vy.github.io/gr4vy-openapi/core/openapi.json
22+
- location: /Users/cbetta/code/core-api/openapi/openapi.json
2323
overlays:
2424
- location: ./.speakeasy/overlays/servers.yaml
2525
- location: ./.speakeasy/overlays/security.yaml

.speakeasy/workflow.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ speakeasyVersion: latest
33
sources:
44
openapi:
55
inputs:
6-
- location: https://gr4vy.github.io/gr4vy-openapi/core/openapi.json
6+
# - location: https://gr4vy.github.io/gr4vy-openapi/core/openapi.json
7+
- location: /Users/cbetta/code/core-api/openapi/openapi.json
78
overlays:
89
- location: ./.speakeasy/overlays/servers.yaml
910
# - location: ./.speakeasy/overlays/globals.yaml

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ async function run() {
122122
let result;
123123
try {
124124
result = await gr4vy.buyers.list();
125+
126+
for await (const page of result) {
127+
// Handle the page
128+
console.log(page);
129+
}
125130
} catch (err) {
126131
switch (true) {
127132
case err instanceof SDKValidationError: {
@@ -141,11 +146,6 @@ async function run() {
141146
}
142147
}
143148
}
144-
145-
for await (const page of result) {
146-
// Handle the page
147-
console.log(page);
148-
}
149149
}
150150

151151
run();

docs/models/components/address.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ The address for these buyer details.
88
import { Address } from "@gr4vy/sdk/models/components";
99

1010
let value: Address = {
11-
country: "GB",
12-
stateCode: "US-CA",
11+
country: "US",
12+
stateCode: "GB-LND",
1313
};
1414
```
1515

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# BillingDetailsSummary
2+
3+
Base model with JSON encoders.
4+
5+
## Example Usage
6+
7+
```typescript
8+
import { BillingDetailsSummary } from "@gr4vy/sdk/models/components";
9+
10+
let value: BillingDetailsSummary = {
11+
phoneNumber: "+14155552671",
12+
address: {
13+
country: "DE",
14+
stateCode: "GB-LND",
15+
},
16+
};
17+
```
18+
19+
## Fields
20+
21+
| Field | Type | Required | Description | Example |
22+
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
23+
| `firstName` | *string* | :heavy_minus_sign: | The first or given name for these buyer details. | |
24+
| `lastName` | *string* | :heavy_minus_sign: | The last or family name for these buyer details. | |
25+
| `emailAddress` | *string* | :heavy_minus_sign: | The email address for these buyer details. | |
26+
| `phoneNumber` | *string* | :heavy_minus_sign: | The phone number for these buyer details. | +14155552671 |
27+
| `address` | [components.BillingDetailsSummaryAddress](../../models/components/billingdetailssummaryaddress.md) | :heavy_minus_sign: | The address for these buyer details. | |
28+
| `taxId` | [components.BillingDetailsSummaryTaxId](../../models/components/billingdetailssummarytaxid.md) | :heavy_minus_sign: | The tax ID for these buyer details. | |
29+
| `type` | [components.BillingDetailsSummaryType](../../models/components/billingdetailssummarytype.md) | :heavy_minus_sign: | N/A | |
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# BillingDetailsSummaryAddress
2+
3+
The address for these buyer details.
4+
5+
## Example Usage
6+
7+
```typescript
8+
import { BillingDetailsSummaryAddress } from "@gr4vy/sdk/models/components";
9+
10+
let value: BillingDetailsSummaryAddress = {
11+
country: "US",
12+
stateCode: "GB-LND",
13+
};
14+
```
15+
16+
## Fields
17+
18+
| Field | Type | Required | Description | Example |
19+
| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
20+
| `city` | *string* | :heavy_minus_sign: | N/A | |
21+
| `country` | *string* | :heavy_minus_sign: | N/A | DE |
22+
| `postalCode` | *string* | :heavy_minus_sign: | N/A | |
23+
| `state` | *string* | :heavy_minus_sign: | N/A | |
24+
| `stateCode` | *string* | :heavy_minus_sign: | N/A | GB-LND |
25+
| `houseNumberOrName` | *string* | :heavy_minus_sign: | N/A | |
26+
| `line1` | *string* | :heavy_minus_sign: | N/A | |
27+
| `line2` | *string* | :heavy_minus_sign: | N/A | |
28+
| `organization` | *string* | :heavy_minus_sign: | N/A | |
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# BillingDetailsSummaryTaxId
2+
3+
The tax ID for these buyer details.
4+
5+
## Example Usage
6+
7+
```typescript
8+
import { BillingDetailsSummaryTaxId } from "@gr4vy/sdk/models/components";
9+
10+
let value: BillingDetailsSummaryTaxId = {
11+
value: "<value>",
12+
kind: "my.sst",
13+
};
14+
```
15+
16+
## Fields
17+
18+
| Field | Type | Required | Description |
19+
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
20+
| `value` | *string* | :heavy_check_mark: | N/A |
21+
| `kind` | [components.TaxIdKind](../../models/components/taxidkind.md) | :heavy_check_mark: | An enumeration. |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# BillingDetailsSummaryType
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { BillingDetailsSummaryType } from "@gr4vy/sdk/models/components";
7+
8+
let value: BillingDetailsSummaryType = "billing-details";
9+
```
10+
11+
## Values
12+
13+
```typescript
14+
"billing-details"
15+
```

docs/models/components/buyer.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Buyer
2+
3+
Base model with JSON encoders.
4+
5+
## Example Usage
6+
7+
```typescript
8+
import { Buyer } from "@gr4vy/sdk/models/components";
9+
10+
let value: Buyer = {
11+
merchantAccountId: "<value>",
12+
billingDetails: {
13+
phoneNumber: "+14155552671",
14+
address: {
15+
country: "GB",
16+
stateCode: "US-CA",
17+
},
18+
},
19+
createdAt: new Date("2022-09-18T17:31:57.372Z"),
20+
updatedAt: new Date("2024-12-23T15:59:41.249Z"),
21+
};
22+
```
23+
24+
## Fields
25+
26+
| Field | Type | Required | Description |
27+
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
28+
| `type` | [components.Type](../../models/components/type.md) | :heavy_minus_sign: | N/A |
29+
| `id` | *string* | :heavy_minus_sign: | N/A |
30+
| `merchantAccountId` | *string* | :heavy_check_mark: | N/A |
31+
| `displayName` | *string* | :heavy_minus_sign: | N/A |
32+
| `externalIdentifier` | *string* | :heavy_minus_sign: | N/A |
33+
| `billingDetails` | [components.BillingDetails](../../models/components/billingdetails.md) | :heavy_minus_sign: | Base model with JSON encoders. |
34+
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A |
35+
| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)