Skip to content

Commit bebc2f2

Browse files
committed
feat(buyers): Rename buyer methods
1 parent e6758b1 commit bebc2f2

40 files changed

+242
-230
lines changed

.speakeasy/gen.lock

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 595a8af4-8da0-44fa-a00d-c1cb52e0c7dc
33
management:
4-
docChecksum: 159f3e4ba550b39132d5dd1d6f97faee
4+
docChecksum: 3b599081e9cf1bca845e38090565d576
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.389.1
6+
speakeasyVersion: 1.390.0
77
generationVersion: 2.409.0
8-
releaseVersion: 0.7.3
9-
configChecksum: 2a33cda693b1c5ff896016ba880df46e
8+
releaseVersion: 0.7.4
9+
configChecksum: 9c5d12f973142feaa6b6538c80a41b6b
1010
repoURL: https://github.com/gr4vy/gr4vy-js.git
1111
installationURL: https://github.com/gr4vy/gr4vy-js
1212
published: true
@@ -31,16 +31,16 @@ features:
3131
serverIDs: 2.81.2
3232
unions: 2.85.7
3333
generatedFiles:
34-
- src/funcs/listBuyerShippingDetails.ts
3534
- src/funcs/buyersList.ts
3635
- src/funcs/buyersCreate.ts
3736
- src/funcs/buyersGet.ts
3837
- src/funcs/buyersUpdate.ts
3938
- src/funcs/buyersDelete.ts
4039
- src/funcs/buyersBillingDetailsGet.ts
4140
- src/funcs/buyersBillingDetailsUpdate.ts
42-
- src/funcs/buyersShippingDetailsCreate.ts
4341
- src/funcs/buyersShippingDetailsList.ts
42+
- src/funcs/buyersShippingDetailsCreate.ts
43+
- src/funcs/buyersShippingDetailsGet.ts
4444
- src/funcs/buyersShippingDetailsUpdate.ts
4545
- src/funcs/buyersShippingDetailsDelete.ts
4646
- src/sdk/billingdetails.ts
@@ -83,29 +83,41 @@ generatedFiles:
8383
- src/types/rfcdate.ts
8484
- src/types/streams.ts
8585
- tsconfig.json
86-
- src/models/errors/httpvalidationerror.ts
87-
- src/models/components/validationerror.ts
88-
- src/models/components/buyercreate.ts
89-
- src/models/components/taxidkind.ts
90-
- src/models/components/buyerupdate.ts
91-
- src/models/components/billingdetails.ts
92-
- src/models/components/shippingdetailscreate.ts
93-
- src/models/components/shippingdetailsupdate.ts
94-
- src/models/components/security.ts
95-
- src/models/operations/listbuyershippingdetails.ts
9686
- src/models/operations/listbuyers.ts
9787
- src/models/operations/getbuyer.ts
9888
- src/models/operations/updatebuyer.ts
9989
- src/models/operations/deletebuyer.ts
10090
- src/models/operations/listbillingdetails.ts
10191
- src/models/operations/updatebuyerbillingdetails.ts
92+
- src/models/operations/listbuyershippingdetails.ts
10293
- src/models/operations/addbuyershippingdetails.ts
10394
- src/models/operations/getbuyershippingdetails.ts
10495
- src/models/operations/updatebuyershippingdetails.ts
10596
- src/models/operations/deletebuyershippingdetails.ts
97+
- src/models/errors/httpvalidationerror.ts
98+
- src/models/components/validationerror.ts
99+
- src/models/components/buyercreate.ts
100+
- src/models/components/taxidkind.ts
101+
- src/models/components/buyerupdate.ts
102+
- src/models/components/billingdetails.ts
103+
- src/models/components/shippingdetailscreate.ts
104+
- src/models/components/shippingdetailsupdate.ts
105+
- src/models/components/security.ts
106106
- src/models/errors/index.ts
107-
- src/models/components/index.ts
108107
- src/models/operations/index.ts
108+
- src/models/components/index.ts
109+
- docs/models/operations/listbuyersrequest.md
110+
- docs/models/operations/listbuyersresponse.md
111+
- docs/models/operations/getbuyerrequest.md
112+
- docs/models/operations/updatebuyerrequest.md
113+
- docs/models/operations/deletebuyerrequest.md
114+
- docs/models/operations/listbillingdetailsrequest.md
115+
- docs/models/operations/updatebuyerbillingdetailsrequest.md
116+
- docs/models/operations/listbuyershippingdetailsrequest.md
117+
- docs/models/operations/addbuyershippingdetailsrequest.md
118+
- docs/models/operations/getbuyershippingdetailsrequest.md
119+
- docs/models/operations/updatebuyershippingdetailsrequest.md
120+
- docs/models/operations/deletebuyershippingdetailsrequest.md
109121
- docs/models/errors/httpvalidationerror.md
110122
- docs/models/components/loc.md
111123
- docs/models/components/validationerror.md
@@ -123,20 +135,8 @@ generatedFiles:
123135
- docs/models/components/shippingdetailsupdateaddress.md
124136
- docs/models/components/shippingdetailsupdate.md
125137
- docs/models/components/security.md
126-
- docs/models/operations/listbuyershippingdetailsrequest.md
127-
- docs/models/operations/listbuyersrequest.md
128-
- docs/models/operations/listbuyersresponse.md
129-
- docs/models/operations/getbuyerrequest.md
130-
- docs/models/operations/updatebuyerrequest.md
131-
- docs/models/operations/deletebuyerrequest.md
132-
- docs/models/operations/listbillingdetailsrequest.md
133-
- docs/models/operations/updatebuyerbillingdetailsrequest.md
134-
- docs/models/operations/addbuyershippingdetailsrequest.md
135-
- docs/models/operations/getbuyershippingdetailsrequest.md
136-
- docs/models/operations/updatebuyershippingdetailsrequest.md
137-
- docs/models/operations/deletebuyershippingdetailsrequest.md
138-
- docs/lib/utils/retryconfig.md
139138
- docs/sdks/gr4vy/README.md
139+
- docs/lib/utils/retryconfig.md
140140
- docs/sdks/buyers/README.md
141141
- docs/sdks/billingdetails/README.md
142142
- docs/sdks/shippingdetails/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.3
15+
version: 0.7.4
1616
additionalDependencies:
1717
dependencies:
1818
'@trust/keyto': ^1.0.1

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
speakeasyVersion: 1.389.1
1+
speakeasyVersion: 1.390.0
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:2d42a2de0611cdddea3bfc2ccb31c82962efa7dc1314a4f322a10ebf7c2b291a
6-
sourceBlobDigest: sha256:ac42cb29ad69a97d4afd07a976ec51061c864ed6abff9ae7d9c1a6ab059f3e2e
5+
sourceRevisionDigest: sha256:c89ccd6ede387d398341cb75f0c5ad2b342c8723f6a6ddd921a3afe6c1da6ac0
6+
sourceBlobDigest: sha256:4bc4cfbfc174c94dcecd9c2636d77267bc0fbd2cea777a602afb97e78ba0e097
77
tags:
88
- latest
99
targets:
1010
first-target:
1111
source: openapi
1212
sourceNamespace: openapi
13-
sourceRevisionDigest: sha256:2d42a2de0611cdddea3bfc2ccb31c82962efa7dc1314a4f322a10ebf7c2b291a
14-
sourceBlobDigest: sha256:ac42cb29ad69a97d4afd07a976ec51061c864ed6abff9ae7d9c1a6ab059f3e2e
13+
sourceRevisionDigest: sha256:c89ccd6ede387d398341cb75f0c5ad2b342c8723f6a6ddd921a3afe6c1da6ac0
14+
sourceBlobDigest: sha256:4bc4cfbfc174c94dcecd9c2636d77267bc0fbd2cea777a602afb97e78ba0e097
1515
outLocation: /Users/cbetta/code/gr4vy-js
1616
workflow:
1717
workflowVersion: 1.0.0

FUNCTIONS.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ specific category of applications.
2020

2121
```typescript
2222
import { Gr4vyCore } from "@gr4vy/sdk/core.js";
23-
import { listBuyerShippingDetails } from "@gr4vy/sdk/funcs/listBuyerShippingDetails.js";
23+
import { buyersList } from "@gr4vy/sdk/funcs/buyersList.js";
2424
import { SDKValidationError } from "@gr4vy/sdk/models/errors/sdkvalidationerror.js";
2525

2626
// Use `Gr4vyCore` for best tree-shaking performance.
@@ -30,7 +30,7 @@ const gr4vy = new Gr4vyCore({
3030
});
3131

3232
async function run() {
33-
const res = await listBuyerShippingDetails(gr4vy, "89bd9d8d-69a6-474e-8f46-7cc8796ed151");
33+
const res = await buyersList(gr4vy);
3434

3535
switch (true) {
3636
case res.ok:
@@ -51,8 +51,10 @@ async function run() {
5151

5252
const { value: result } = res;
5353

54-
// Handle the result
55-
console.log(result)
54+
for await (const page of result) {
55+
// Handle the page
56+
console.log(page);
57+
}
5658
}
5759

5860
run();

README.md

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ async function run() {
7575
<!-- Start Available Resources and Operations [operations] -->
7676
## Available Resources and Operations
7777

78-
### [Gr4vy SDK](docs/sdks/gr4vy/README.md)
79-
80-
* [listBuyerShippingDetails](docs/sdks/gr4vy/README.md#listbuyershippingdetails) - List buyer shipping details
81-
8278
### [buyers](docs/sdks/buyers/README.md)
8379

8480
* [list](docs/sdks/buyers/README.md#list) - List all buyers
@@ -94,8 +90,9 @@ async function run() {
9490

9591
### [buyers.shippingDetails](docs/sdks/shippingdetails/README.md)
9692

93+
* [list](docs/sdks/shippingdetails/README.md#list) - List buyer shipping details
9794
* [create](docs/sdks/shippingdetails/README.md#create) - Add buyer shipping details
98-
* [list](docs/sdks/shippingdetails/README.md#list) - Get buyer shipping details
95+
* [get](docs/sdks/shippingdetails/README.md#get) - Get buyer shipping details
9996
* [update](docs/sdks/shippingdetails/README.md#update) - Update buyer shipping details
10097
* [delete](docs/sdks/shippingdetails/README.md#delete) - Delete buyer shipping details
10198
<!-- End Available Resources and Operations [operations] -->
@@ -124,7 +121,7 @@ const gr4vy = new Gr4vy({
124121
async function run() {
125122
let result;
126123
try {
127-
result = await gr4vy.listBuyerShippingDetails("002969f0-dfe4-49ea-b5d8-b20d7e84726f");
124+
result = await gr4vy.buyers.list();
128125
} catch (err) {
129126
switch (true) {
130127
case err instanceof SDKValidationError: {
@@ -145,8 +142,10 @@ async function run() {
145142
}
146143
}
147144

148-
// Handle the result
149-
console.log(result);
145+
for await (const page of result) {
146+
// Handle the page
147+
console.log(page);
148+
}
150149
}
151150

152151
run();
@@ -175,10 +174,12 @@ const gr4vy = new Gr4vy({
175174
});
176175

177176
async function run() {
178-
const result = await gr4vy.listBuyerShippingDetails("002969f0-dfe4-49ea-b5d8-b20d7e84726f");
177+
const result = await gr4vy.buyers.list();
179178

180-
// Handle the result
181-
console.log(result);
179+
for await (const page of result) {
180+
// Handle the page
181+
console.log(page);
182+
}
182183
}
183184

184185
run();
@@ -203,10 +204,12 @@ const gr4vy = new Gr4vy({
203204
});
204205

205206
async function run() {
206-
const result = await gr4vy.listBuyerShippingDetails("002969f0-dfe4-49ea-b5d8-b20d7e84726f");
207+
const result = await gr4vy.buyers.list();
207208

208-
// Handle the result
209-
console.log(result);
209+
for await (const page of result) {
210+
// Handle the page
211+
console.log(page);
212+
}
210213
}
211214

212215
run();
@@ -283,10 +286,12 @@ const gr4vy = new Gr4vy({
283286
});
284287

285288
async function run() {
286-
const result = await gr4vy.listBuyerShippingDetails("002969f0-dfe4-49ea-b5d8-b20d7e84726f");
289+
const result = await gr4vy.buyers.list();
287290

288-
// Handle the result
289-
console.log(result);
291+
for await (const page of result) {
292+
// Handle the page
293+
console.log(page);
294+
}
290295
}
291296

292297
run();
@@ -340,10 +345,12 @@ const gr4vy = new Gr4vy({
340345
});
341346

342347
async function run() {
343-
const result = await gr4vy.listBuyerShippingDetails("002969f0-dfe4-49ea-b5d8-b20d7e84726f");
348+
const result = await gr4vy.buyers.list();
344349

345-
// Handle the result
346-
console.log(result);
350+
for await (const page of result) {
351+
// Handle the page
352+
console.log(page);
353+
}
347354
}
348355

349356
run();
@@ -398,7 +405,7 @@ const gr4vy = new Gr4vy({
398405
});
399406

400407
async function run() {
401-
const result = await gr4vy.listBuyerShippingDetails("002969f0-dfe4-49ea-b5d8-b20d7e84726f", {
408+
const result = await gr4vy.buyers.list({
402409
retries: {
403410
strategy: "backoff",
404411
backoff: {
@@ -411,8 +418,10 @@ async function run() {
411418
},
412419
});
413420

414-
// Handle the result
415-
console.log(result);
421+
for await (const page of result) {
422+
// Handle the page
423+
console.log(page);
424+
}
416425
}
417426

418427
run();
@@ -438,10 +447,12 @@ const gr4vy = new Gr4vy({
438447
});
439448

440449
async function run() {
441-
const result = await gr4vy.listBuyerShippingDetails("002969f0-dfe4-49ea-b5d8-b20d7e84726f");
450+
const result = await gr4vy.buyers.list();
442451

443-
// Handle the result
444-
console.log(result);
452+
for await (const page of result) {
453+
// Handle the page
454+
console.log(page);
455+
}
445456
}
446457

447458
run();
@@ -495,10 +506,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
495506
- [buyersList](docs/sdks/buyers/README.md#list)
496507
- [buyersShippingDetailsCreate](docs/sdks/shippingdetails/README.md#create)
497508
- [buyersShippingDetailsDelete](docs/sdks/shippingdetails/README.md#delete)
509+
- [buyersShippingDetailsGet](docs/sdks/shippingdetails/README.md#get)
498510
- [buyersShippingDetailsList](docs/sdks/shippingdetails/README.md#list)
499511
- [buyersShippingDetailsUpdate](docs/sdks/shippingdetails/README.md#update)
500512
- [buyersUpdate](docs/sdks/buyers/README.md#update)
501-
- [listBuyerShippingDetails](docs/sdks/gr4vy/README.md#listbuyershippingdetails)
502513

503514

504515
</details>

USAGE.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ const gr4vy = new Gr4vy({
77
});
88

99
async function run() {
10-
const result = await gr4vy.listBuyerShippingDetails("002969f0-dfe4-49ea-b5d8-b20d7e84726f");
10+
const result = await gr4vy.buyers.list();
1111

12-
// Handle the result
13-
console.log(result);
12+
for await (const page of result) {
13+
// Handle the page
14+
console.log(page);
15+
}
1416
}
1517

1618
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: "US",
12-
stateCode: "GB-LND",
11+
country: "GB",
12+
stateCode: "US-CA",
1313
};
1414
```
1515

docs/models/components/billingdetails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let value: BillingDetails = {
1111
phoneNumber: "+442071838750",
1212
address: {
1313
country: "GB",
14-
stateCode: "GB-LND",
14+
stateCode: "US-CA",
1515
},
1616
};
1717
```

docs/models/components/buyercreate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { BuyerCreate } from "@gr4vy/sdk/models/components";
99

1010
let value: BuyerCreate = {
1111
billingDetails: {
12-
phoneNumber: "+442071838750",
12+
phoneNumber: "+14155552671",
1313
address: {
1414
country: "GB",
1515
stateCode: "US-CA",

docs/models/components/buyercreateaddress.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 { BuyerCreateAddress } from "@gr4vy/sdk/models/components";
99

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

docs/models/components/buyercreatebillingdetails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { BuyerCreateBillingDetails } from "@gr4vy/sdk/models/components";
1010
let value: BuyerCreateBillingDetails = {
1111
phoneNumber: "+14155552671",
1212
address: {
13-
country: "US",
13+
country: "GB",
1414
stateCode: "US-CA",
1515
},
1616
};

0 commit comments

Comments
 (0)