@gr4vy/sdk 1.1.26 → 1.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +3 -8
- package/README.md +24 -59
- package/docs/sdks/gr4vy/README.md +83 -0
- package/examples/{accountUpdaterJobsCreate.example.ts → browsePaymentMethodDefinitionsGet.example.ts} +2 -7
- package/funcs/browsePaymentMethodDefinitionsGet.d.ts +14 -0
- package/funcs/browsePaymentMethodDefinitionsGet.d.ts.map +1 -0
- package/funcs/browsePaymentMethodDefinitionsGet.js +130 -0
- package/funcs/browsePaymentMethodDefinitionsGet.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/operations/browsepaymentmethoddefinitionsget.d.ts +57 -0
- package/models/operations/browsepaymentmethoddefinitionsget.d.ts.map +1 -0
- package/models/operations/browsepaymentmethoddefinitionsget.js +96 -0
- package/models/operations/browsepaymentmethoddefinitionsget.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +2 -2
- package/sdk/sdk.d.ts +5 -1
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/browsePaymentMethodDefinitionsGet.ts +188 -0
- package/src/lib/config.ts +3 -3
- package/src/models/operations/browsepaymentmethoddefinitionsget.ts +149 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/sdk.ts +17 -1
package/FUNCTIONS.md
CHANGED
|
@@ -21,7 +21,7 @@ specific category of applications.
|
|
|
21
21
|
```typescript
|
|
22
22
|
import { Gr4vyCore } from "@gr4vy/sdk/core.js";
|
|
23
23
|
import { withToken } from "@gr4vy/sdk/lib/auth.js";
|
|
24
|
-
import {
|
|
24
|
+
import { browsePaymentMethodDefinitionsGet } from "@gr4vy/sdk/funcs/browsePaymentMethodDefinitionsGet.js";
|
|
25
25
|
|
|
26
26
|
// Use `Gr4vyCore` for best tree-shaking performance.
|
|
27
27
|
// You can create one instance of it to use across an application.
|
|
@@ -35,17 +35,12 @@ const gr4vy = new Gr4vyCore({
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
async function run() {
|
|
38
|
-
const res = await
|
|
39
|
-
paymentMethodIds: [
|
|
40
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
41
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
42
|
-
],
|
|
43
|
-
});
|
|
38
|
+
const res = await browsePaymentMethodDefinitionsGet(gr4vy);
|
|
44
39
|
if (res.ok) {
|
|
45
40
|
const { value: result } = res;
|
|
46
41
|
console.log(result);
|
|
47
42
|
} else {
|
|
48
|
-
console.log("
|
|
43
|
+
console.log("browsePaymentMethodDefinitionsGet failed:", res.error);
|
|
49
44
|
}
|
|
50
45
|
}
|
|
51
46
|
|
package/README.md
CHANGED
|
@@ -315,6 +315,9 @@ try {
|
|
|
315
315
|
|
|
316
316
|
* [list](docs/sdks/balances/README.md#list) - List gift card balances
|
|
317
317
|
|
|
318
|
+
### [Gr4vy SDK](docs/sdks/gr4vy/README.md)
|
|
319
|
+
|
|
320
|
+
* [browsePaymentMethodDefinitionsGet](docs/sdks/gr4vy/README.md#browsepaymentmethoddefinitionsget) - Browse
|
|
318
321
|
|
|
319
322
|
### [merchantAccounts](docs/sdks/merchantaccounts/README.md)
|
|
320
323
|
|
|
@@ -464,12 +467,7 @@ const gr4vy = new Gr4vy({
|
|
|
464
467
|
|
|
465
468
|
async function run() {
|
|
466
469
|
try {
|
|
467
|
-
const result = await gr4vy.
|
|
468
|
-
paymentMethodIds: [
|
|
469
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
470
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
471
|
-
],
|
|
472
|
-
});
|
|
470
|
+
const result = await gr4vy.browsePaymentMethodDefinitionsGet();
|
|
473
471
|
|
|
474
472
|
console.log(result);
|
|
475
473
|
} catch (error) {
|
|
@@ -481,12 +479,8 @@ async function run() {
|
|
|
481
479
|
console.log(error.headers);
|
|
482
480
|
|
|
483
481
|
// Depending on the method different errors may be thrown
|
|
484
|
-
if (error instanceof errors.
|
|
485
|
-
console.log(error.data$.
|
|
486
|
-
console.log(error.data$.code); // string
|
|
487
|
-
console.log(error.data$.status); // number
|
|
488
|
-
console.log(error.data$.message); // string
|
|
489
|
-
console.log(error.data$.details); // ErrorDetail[]
|
|
482
|
+
if (error instanceof errors.HTTPValidationError) {
|
|
483
|
+
console.log(error.data$.detail); // ValidationError[]
|
|
490
484
|
}
|
|
491
485
|
}
|
|
492
486
|
}
|
|
@@ -499,18 +493,18 @@ run();
|
|
|
499
493
|
### Error Classes
|
|
500
494
|
**Primary errors:**
|
|
501
495
|
* [`Gr4vyError`](./src/models/errors/gr4vyerror.ts): The base class for HTTP error responses.
|
|
502
|
-
* [`Error400`](./src/models/errors/error400.ts): The request was invalid. Status code `400`.
|
|
503
|
-
* [`Error401`](./src/models/errors/error401.ts): The request was unauthorized. Status code `401`.
|
|
504
|
-
* [`Error403`](./src/models/errors/error403.ts): The credentials were invalid or the caller did not have permission to act on the resource. Status code `403`.
|
|
505
|
-
* [`Error404`](./src/models/errors/error404.ts): The resource was not found. Status code `404`.
|
|
506
|
-
* [`Error405`](./src/models/errors/error405.ts): The request method was not allowed. Status code `405`.
|
|
507
|
-
* [`Error409`](./src/models/errors/error409.ts): A duplicate record was found. Status code `409`.
|
|
508
|
-
* [`Error425`](./src/models/errors/error425.ts): The request was too early. Status code `425`.
|
|
509
|
-
* [`Error429`](./src/models/errors/error429.ts): Too many requests were made. Status code `429`.
|
|
510
|
-
* [`Error500`](./src/models/errors/error500.ts): The server encountered an error. Status code `500`.
|
|
511
|
-
* [`Error502`](./src/models/errors/error502.ts): The server encountered an error. Status code `502`.
|
|
512
|
-
* [`Error504`](./src/models/errors/error504.ts): The server encountered an error. Status code `504`.
|
|
496
|
+
* [`Error400`](./src/models/errors/error400.ts): The request was invalid. Status code `400`. *
|
|
497
|
+
* [`Error401`](./src/models/errors/error401.ts): The request was unauthorized. Status code `401`. *
|
|
498
|
+
* [`Error403`](./src/models/errors/error403.ts): The credentials were invalid or the caller did not have permission to act on the resource. Status code `403`. *
|
|
499
|
+
* [`Error404`](./src/models/errors/error404.ts): The resource was not found. Status code `404`. *
|
|
500
|
+
* [`Error405`](./src/models/errors/error405.ts): The request method was not allowed. Status code `405`. *
|
|
501
|
+
* [`Error409`](./src/models/errors/error409.ts): A duplicate record was found. Status code `409`. *
|
|
513
502
|
* [`HTTPValidationError`](./src/models/errors/httpvalidationerror.ts): Validation Error. Status code `422`. *
|
|
503
|
+
* [`Error425`](./src/models/errors/error425.ts): The request was too early. Status code `425`. *
|
|
504
|
+
* [`Error429`](./src/models/errors/error429.ts): Too many requests were made. Status code `429`. *
|
|
505
|
+
* [`Error500`](./src/models/errors/error500.ts): The server encountered an error. Status code `500`. *
|
|
506
|
+
* [`Error502`](./src/models/errors/error502.ts): The server encountered an error. Status code `502`. *
|
|
507
|
+
* [`Error504`](./src/models/errors/error504.ts): The server encountered an error. Status code `504`. *
|
|
514
508
|
|
|
515
509
|
<details><summary>Less common errors (6)</summary>
|
|
516
510
|
|
|
@@ -567,12 +561,7 @@ const gr4vy = new Gr4vy({
|
|
|
567
561
|
});
|
|
568
562
|
|
|
569
563
|
async function run() {
|
|
570
|
-
const result = await gr4vy.
|
|
571
|
-
paymentMethodIds: [
|
|
572
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
573
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
574
|
-
],
|
|
575
|
-
});
|
|
564
|
+
const result = await gr4vy.browsePaymentMethodDefinitionsGet();
|
|
576
565
|
|
|
577
566
|
console.log(result);
|
|
578
567
|
}
|
|
@@ -598,12 +587,7 @@ const gr4vy = new Gr4vy({
|
|
|
598
587
|
});
|
|
599
588
|
|
|
600
589
|
async function run() {
|
|
601
|
-
const result = await gr4vy.
|
|
602
|
-
paymentMethodIds: [
|
|
603
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
604
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
605
|
-
],
|
|
606
|
-
});
|
|
590
|
+
const result = await gr4vy.browsePaymentMethodDefinitionsGet();
|
|
607
591
|
|
|
608
592
|
console.log(result);
|
|
609
593
|
}
|
|
@@ -687,12 +671,7 @@ const gr4vy = new Gr4vy({
|
|
|
687
671
|
});
|
|
688
672
|
|
|
689
673
|
async function run() {
|
|
690
|
-
const result = await gr4vy.
|
|
691
|
-
paymentMethodIds: [
|
|
692
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
693
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
694
|
-
],
|
|
695
|
-
});
|
|
674
|
+
const result = await gr4vy.browsePaymentMethodDefinitionsGet();
|
|
696
675
|
|
|
697
676
|
console.log(result);
|
|
698
677
|
}
|
|
@@ -753,12 +732,7 @@ const gr4vy = new Gr4vy({
|
|
|
753
732
|
});
|
|
754
733
|
|
|
755
734
|
async function run() {
|
|
756
|
-
const result = await gr4vy.
|
|
757
|
-
paymentMethodIds: [
|
|
758
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
759
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
760
|
-
],
|
|
761
|
-
});
|
|
735
|
+
const result = await gr4vy.browsePaymentMethodDefinitionsGet();
|
|
762
736
|
|
|
763
737
|
console.log(result);
|
|
764
738
|
}
|
|
@@ -824,12 +798,7 @@ const gr4vy = new Gr4vy({
|
|
|
824
798
|
});
|
|
825
799
|
|
|
826
800
|
async function run() {
|
|
827
|
-
const result = await gr4vy.
|
|
828
|
-
paymentMethodIds: [
|
|
829
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
830
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
831
|
-
],
|
|
832
|
-
}, {
|
|
801
|
+
const result = await gr4vy.browsePaymentMethodDefinitionsGet({
|
|
833
802
|
retries: {
|
|
834
803
|
strategy: "backoff",
|
|
835
804
|
backoff: {
|
|
@@ -873,12 +842,7 @@ const gr4vy = new Gr4vy({
|
|
|
873
842
|
});
|
|
874
843
|
|
|
875
844
|
async function run() {
|
|
876
|
-
const result = await gr4vy.
|
|
877
|
-
paymentMethodIds: [
|
|
878
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
879
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
880
|
-
],
|
|
881
|
-
});
|
|
845
|
+
const result = await gr4vy.browsePaymentMethodDefinitionsGet();
|
|
882
846
|
|
|
883
847
|
console.log(result);
|
|
884
848
|
}
|
|
@@ -939,6 +903,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
939
903
|
|
|
940
904
|
- [`accountUpdaterJobsCreate`](docs/sdks/jobs/README.md#create) - Create account updater job
|
|
941
905
|
- [`auditLogsList`](docs/sdks/auditlogs/README.md#list) - List audit log entries
|
|
906
|
+
- [`browsePaymentMethodDefinitionsGet`](docs/sdks/gr4vy/README.md#browsepaymentmethoddefinitionsget) - Browse
|
|
942
907
|
- [`buyersCreate`](docs/sdks/buyers/README.md#create) - Add a buyer
|
|
943
908
|
- [`buyersDelete`](docs/sdks/buyers/README.md#delete) - Delete a buyer
|
|
944
909
|
- [`buyersGet`](docs/sdks/buyers/README.md#get) - Get a buyer
|
|
@@ -5,3 +5,86 @@
|
|
|
5
5
|
Gr4vy: The Gr4vy API.
|
|
6
6
|
|
|
7
7
|
### Available Operations
|
|
8
|
+
|
|
9
|
+
* [browsePaymentMethodDefinitionsGet](#browsepaymentmethoddefinitionsget) - Browse
|
|
10
|
+
|
|
11
|
+
## browsePaymentMethodDefinitionsGet
|
|
12
|
+
|
|
13
|
+
Browse
|
|
14
|
+
|
|
15
|
+
### Example Usage
|
|
16
|
+
|
|
17
|
+
<!-- UsageSnippet language="typescript" operationID="browse_payment_method_definitions_get" method="get" path="/payment-method-definitions" -->
|
|
18
|
+
```typescript
|
|
19
|
+
import { Gr4vy } from "@gr4vy/sdk";
|
|
20
|
+
|
|
21
|
+
const gr4vy = new Gr4vy({
|
|
22
|
+
merchantAccountId: "<id>",
|
|
23
|
+
server: "sandbox",
|
|
24
|
+
id: "example",
|
|
25
|
+
bearerAuth: withToken({
|
|
26
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
async function run() {
|
|
31
|
+
const result = await gr4vy.browsePaymentMethodDefinitionsGet();
|
|
32
|
+
|
|
33
|
+
console.log(result);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
run();
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Standalone function
|
|
40
|
+
|
|
41
|
+
The standalone function version of this method:
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import { Gr4vyCore } from "@gr4vy/sdk/core.js";
|
|
45
|
+
import { withToken } from "@gr4vy/sdk/lib/auth.js";
|
|
46
|
+
import { browsePaymentMethodDefinitionsGet } from "@gr4vy/sdk/funcs/browsePaymentMethodDefinitionsGet.js";
|
|
47
|
+
|
|
48
|
+
// Use `Gr4vyCore` for best tree-shaking performance.
|
|
49
|
+
// You can create one instance of it to use across an application.
|
|
50
|
+
const gr4vy = new Gr4vyCore({
|
|
51
|
+
merchantAccountId: "<id>",
|
|
52
|
+
server: "sandbox",
|
|
53
|
+
id: "example",
|
|
54
|
+
bearerAuth: withToken({
|
|
55
|
+
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
56
|
+
}),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
async function run() {
|
|
60
|
+
const res = await browsePaymentMethodDefinitionsGet(gr4vy);
|
|
61
|
+
if (res.ok) {
|
|
62
|
+
const { value: result } = res;
|
|
63
|
+
console.log(result);
|
|
64
|
+
} else {
|
|
65
|
+
console.log("browsePaymentMethodDefinitionsGet failed:", res.error);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
run();
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Parameters
|
|
73
|
+
|
|
74
|
+
| Parameter | Type | Required | Description |
|
|
75
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
76
|
+
| `merchantAccountId` | *string* | :heavy_minus_sign: | The ID of the merchant account to use for this request. |
|
|
77
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
78
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
79
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
80
|
+
|
|
81
|
+
### Response
|
|
82
|
+
|
|
83
|
+
**Promise\<[any](../../models/.md)\>**
|
|
84
|
+
|
|
85
|
+
### Errors
|
|
86
|
+
|
|
87
|
+
| Error Type | Status Code | Content Type |
|
|
88
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
89
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
90
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -8,7 +8,7 @@ dotenv.config();
|
|
|
8
8
|
* Example usage of the @gr4vy/sdk SDK
|
|
9
9
|
*
|
|
10
10
|
* To run this example from the examples directory:
|
|
11
|
-
* npm run build && npx tsx
|
|
11
|
+
* npm run build && npx tsx browsePaymentMethodDefinitionsGet.ts
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { Gr4vy } from "@gr4vy/sdk";
|
|
@@ -19,12 +19,7 @@ const gr4vy = new Gr4vy({
|
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
async function main() {
|
|
22
|
-
const result = await gr4vy.
|
|
23
|
-
paymentMethodIds: [
|
|
24
|
-
"ef9496d8-53a5-4aad-8ca2-00eb68334389",
|
|
25
|
-
"f29e886e-93cc-4714-b4a3-12b7a718e595",
|
|
26
|
-
],
|
|
27
|
-
});
|
|
22
|
+
const result = await gr4vy.browsePaymentMethodDefinitionsGet();
|
|
28
23
|
|
|
29
24
|
console.log(result);
|
|
30
25
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Gr4vyCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { Gr4vyError } from "../models/errors/gr4vyerror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import { APIPromise } from "../types/async.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Browse
|
|
12
|
+
*/
|
|
13
|
+
export declare function browsePaymentMethodDefinitionsGet(client: Gr4vyCore, merchantAccountId?: string | null | undefined, options?: RequestOptions): APIPromise<Result<any, errors.HTTPValidationError | Gr4vyError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
|
+
//# sourceMappingURL=browsePaymentMethodDefinitionsGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browsePaymentMethodDefinitionsGet.d.ts","sourceRoot":"","sources":["../src/funcs/browsePaymentMethodDefinitionsGet.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAKvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,SAAS,EACjB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,GAAG,EACD,MAAM,CAAC,mBAAmB,GAC1B,UAAU,GACV,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.browsePaymentMethodDefinitionsGet = browsePaymentMethodDefinitionsGet;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* Browse
|
|
52
|
+
*/
|
|
53
|
+
function browsePaymentMethodDefinitionsGet(client, merchantAccountId, options) {
|
|
54
|
+
return new async_js_1.APIPromise($do(client, merchantAccountId, options));
|
|
55
|
+
}
|
|
56
|
+
async function $do(client, merchantAccountId, options) {
|
|
57
|
+
const input = {
|
|
58
|
+
merchantAccountId: merchantAccountId,
|
|
59
|
+
};
|
|
60
|
+
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.BrowsePaymentMethodDefinitionsGetRequest$outboundSchema
|
|
61
|
+
.optional().parse(value), "Input validation failed");
|
|
62
|
+
if (!parsed.ok) {
|
|
63
|
+
return [parsed, { status: "invalid" }];
|
|
64
|
+
}
|
|
65
|
+
const payload = parsed.value;
|
|
66
|
+
const body = null;
|
|
67
|
+
const path = (0, url_js_1.pathToFunc)("/payment-method-definitions")();
|
|
68
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
69
|
+
Accept: "application/json",
|
|
70
|
+
"x-gr4vy-merchant-account-id": (0, encodings_js_1.encodeSimple)("x-gr4vy-merchant-account-id", payload?.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" }),
|
|
71
|
+
}));
|
|
72
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.bearerAuth);
|
|
73
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
74
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
75
|
+
const context = {
|
|
76
|
+
options: client._options,
|
|
77
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
78
|
+
operationID: "browse_payment_method_definitions_get",
|
|
79
|
+
oAuth2Scopes: [],
|
|
80
|
+
resolvedSecurity: requestSecurity,
|
|
81
|
+
securitySource: client._options.bearerAuth,
|
|
82
|
+
retryConfig: options?.retries
|
|
83
|
+
|| client._options.retryConfig
|
|
84
|
+
|| {
|
|
85
|
+
strategy: "backoff",
|
|
86
|
+
backoff: {
|
|
87
|
+
initialInterval: 200,
|
|
88
|
+
maxInterval: 200,
|
|
89
|
+
exponent: 1,
|
|
90
|
+
maxElapsedTime: 1000,
|
|
91
|
+
},
|
|
92
|
+
retryConnectionErrors: true,
|
|
93
|
+
}
|
|
94
|
+
|| { strategy: "none" },
|
|
95
|
+
retryCodes: options?.retryCodes || ["5XX"],
|
|
96
|
+
};
|
|
97
|
+
const requestRes = client._createRequest(context, {
|
|
98
|
+
security: requestSecurity,
|
|
99
|
+
method: "GET",
|
|
100
|
+
baseURL: options?.serverURL,
|
|
101
|
+
path: path,
|
|
102
|
+
headers: headers,
|
|
103
|
+
body: body,
|
|
104
|
+
userAgent: client._options.userAgent,
|
|
105
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
106
|
+
}, options);
|
|
107
|
+
if (!requestRes.ok) {
|
|
108
|
+
return [requestRes, { status: "invalid" }];
|
|
109
|
+
}
|
|
110
|
+
const req = requestRes.value;
|
|
111
|
+
const doResult = await client._do(req, {
|
|
112
|
+
context,
|
|
113
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
114
|
+
retryConfig: context.retryConfig,
|
|
115
|
+
retryCodes: context.retryCodes,
|
|
116
|
+
});
|
|
117
|
+
if (!doResult.ok) {
|
|
118
|
+
return [doResult, { status: "request-error", request: req }];
|
|
119
|
+
}
|
|
120
|
+
const response = doResult.value;
|
|
121
|
+
const responseFields = {
|
|
122
|
+
HttpMeta: { Response: response, Request: req },
|
|
123
|
+
};
|
|
124
|
+
const [result] = await M.match(M.json(200, z.any()), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
125
|
+
if (!result.ok) {
|
|
126
|
+
return [result, { status: "complete", request: req, response }];
|
|
127
|
+
}
|
|
128
|
+
return [result, { status: "complete", request: req, response }];
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=browsePaymentMethodDefinitionsGet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browsePaymentMethodDefinitionsGet.js","sourceRoot":"","sources":["../src/funcs/browsePaymentMethodDefinitionsGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,8EAuBC;AAlDD,uCAAyB;AAEzB,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,SAAgB,iCAAiC,CAC/C,MAAiB,EACjB,iBAA6C,EAC7C,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAiB,EACjB,iBAA6C,EAC7C,OAAwB;IAkBxB,MAAM,KAAK,GACT;QACE,iBAAiB,EAAE,iBAAiB;KACrC,CAAC;IAEJ,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,uDAAuD;SAC/D,QAAQ,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAC5B,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,IAAI,GAA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I,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,EACpB,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
44
44
|
export declare const SDK_METADATA: {
|
|
45
45
|
readonly language: "typescript";
|
|
46
46
|
readonly openapiDocVersion: "1.0.0";
|
|
47
|
-
readonly sdkVersion: "1.1.
|
|
48
|
-
readonly genVersion: "2.674.
|
|
49
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.1.
|
|
47
|
+
readonly sdkVersion: "1.1.28";
|
|
48
|
+
readonly genVersion: "2.674.3";
|
|
49
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.1.28 2.674.3 1.0.0 @gr4vy/sdk";
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -37,8 +37,8 @@ function serverURLFromOptions(options) {
|
|
|
37
37
|
exports.SDK_METADATA = {
|
|
38
38
|
language: "typescript",
|
|
39
39
|
openapiDocVersion: "1.0.0",
|
|
40
|
-
sdkVersion: "1.1.
|
|
41
|
-
genVersion: "2.674.
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
40
|
+
sdkVersion: "1.1.28",
|
|
41
|
+
genVersion: "2.674.3",
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 1.1.28 2.674.3 1.0.0 @gr4vy/sdk",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type BrowsePaymentMethodDefinitionsGetGlobals = {
|
|
5
|
+
merchantAccountId?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
export type BrowsePaymentMethodDefinitionsGetRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The ID of the merchant account to use for this request.
|
|
10
|
+
*/
|
|
11
|
+
merchantAccountId?: string | null | undefined;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema: z.ZodType<BrowsePaymentMethodDefinitionsGetGlobals, z.ZodTypeDef, unknown>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type BrowsePaymentMethodDefinitionsGetGlobals$Outbound = {
|
|
17
|
+
merchantAccountId?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema: z.ZodType<BrowsePaymentMethodDefinitionsGetGlobals$Outbound, z.ZodTypeDef, BrowsePaymentMethodDefinitionsGetGlobals>;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
+
*/
|
|
25
|
+
export declare namespace BrowsePaymentMethodDefinitionsGetGlobals$ {
|
|
26
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema` instead. */
|
|
27
|
+
const inboundSchema: z.ZodType<BrowsePaymentMethodDefinitionsGetGlobals, z.ZodTypeDef, unknown>;
|
|
28
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema` instead. */
|
|
29
|
+
const outboundSchema: z.ZodType<BrowsePaymentMethodDefinitionsGetGlobals$Outbound, z.ZodTypeDef, BrowsePaymentMethodDefinitionsGetGlobals>;
|
|
30
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetGlobals$Outbound` instead. */
|
|
31
|
+
type Outbound = BrowsePaymentMethodDefinitionsGetGlobals$Outbound;
|
|
32
|
+
}
|
|
33
|
+
export declare function browsePaymentMethodDefinitionsGetGlobalsToJSON(browsePaymentMethodDefinitionsGetGlobals: BrowsePaymentMethodDefinitionsGetGlobals): string;
|
|
34
|
+
export declare function browsePaymentMethodDefinitionsGetGlobalsFromJSON(jsonString: string): SafeParseResult<BrowsePaymentMethodDefinitionsGetGlobals, SDKValidationError>;
|
|
35
|
+
/** @internal */
|
|
36
|
+
export declare const BrowsePaymentMethodDefinitionsGetRequest$inboundSchema: z.ZodType<BrowsePaymentMethodDefinitionsGetRequest, z.ZodTypeDef, unknown>;
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type BrowsePaymentMethodDefinitionsGetRequest$Outbound = {
|
|
39
|
+
merchantAccountId?: string | null | undefined;
|
|
40
|
+
};
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const BrowsePaymentMethodDefinitionsGetRequest$outboundSchema: z.ZodType<BrowsePaymentMethodDefinitionsGetRequest$Outbound, z.ZodTypeDef, BrowsePaymentMethodDefinitionsGetRequest>;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export declare namespace BrowsePaymentMethodDefinitionsGetRequest$ {
|
|
48
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetRequest$inboundSchema` instead. */
|
|
49
|
+
const inboundSchema: z.ZodType<BrowsePaymentMethodDefinitionsGetRequest, z.ZodTypeDef, unknown>;
|
|
50
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetRequest$outboundSchema` instead. */
|
|
51
|
+
const outboundSchema: z.ZodType<BrowsePaymentMethodDefinitionsGetRequest$Outbound, z.ZodTypeDef, BrowsePaymentMethodDefinitionsGetRequest>;
|
|
52
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetRequest$Outbound` instead. */
|
|
53
|
+
type Outbound = BrowsePaymentMethodDefinitionsGetRequest$Outbound;
|
|
54
|
+
}
|
|
55
|
+
export declare function browsePaymentMethodDefinitionsGetRequestToJSON(browsePaymentMethodDefinitionsGetRequest: BrowsePaymentMethodDefinitionsGetRequest): string;
|
|
56
|
+
export declare function browsePaymentMethodDefinitionsGetRequestFromJSON(jsonString: string): SafeParseResult<BrowsePaymentMethodDefinitionsGetRequest, SDKValidationError>;
|
|
57
|
+
//# sourceMappingURL=browsepaymentmethoddefinitionsget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browsepaymentmethoddefinitionsget.d.ts","sourceRoot":"","sources":["../../src/models/operations/browsepaymentmethoddefinitionsget.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,wCAAwC,GAAG;IACrD,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,wCAAwC,GAAG;IACrD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM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D,mFAAmF;IACnF,KAAY,QAAQ,GAAG,iDAAiD,CAAC;CAC1E;AAED,wBAAgB,8CAA8C,CAC5D,wCAAwC,EACtC,wCAAwC,GACzC,MAAM,CAMR;AAED,wBAAgB,gDAAgD,CAC9D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,wCAAwC,EACxC,kBAAkB,CACnB,CASA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.BrowsePaymentMethodDefinitionsGetRequest$ = exports.BrowsePaymentMethodDefinitionsGetRequest$outboundSchema = exports.BrowsePaymentMethodDefinitionsGetRequest$inboundSchema = exports.BrowsePaymentMethodDefinitionsGetGlobals$ = exports.BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema = exports.BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema = void 0;
|
|
40
|
+
exports.browsePaymentMethodDefinitionsGetGlobalsToJSON = browsePaymentMethodDefinitionsGetGlobalsToJSON;
|
|
41
|
+
exports.browsePaymentMethodDefinitionsGetGlobalsFromJSON = browsePaymentMethodDefinitionsGetGlobalsFromJSON;
|
|
42
|
+
exports.browsePaymentMethodDefinitionsGetRequestToJSON = browsePaymentMethodDefinitionsGetRequestToJSON;
|
|
43
|
+
exports.browsePaymentMethodDefinitionsGetRequestFromJSON = browsePaymentMethodDefinitionsGetRequestFromJSON;
|
|
44
|
+
const z = __importStar(require("zod"));
|
|
45
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema = z.object({
|
|
48
|
+
merchantAccountId: z.string().optional(),
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema = z.object({
|
|
52
|
+
merchantAccountId: z.string().optional(),
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
var BrowsePaymentMethodDefinitionsGetGlobals$;
|
|
59
|
+
(function (BrowsePaymentMethodDefinitionsGetGlobals$) {
|
|
60
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema` instead. */
|
|
61
|
+
BrowsePaymentMethodDefinitionsGetGlobals$.inboundSchema = exports.BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema;
|
|
62
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema` instead. */
|
|
63
|
+
BrowsePaymentMethodDefinitionsGetGlobals$.outboundSchema = exports.BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema;
|
|
64
|
+
})(BrowsePaymentMethodDefinitionsGetGlobals$ || (exports.BrowsePaymentMethodDefinitionsGetGlobals$ = BrowsePaymentMethodDefinitionsGetGlobals$ = {}));
|
|
65
|
+
function browsePaymentMethodDefinitionsGetGlobalsToJSON(browsePaymentMethodDefinitionsGetGlobals) {
|
|
66
|
+
return JSON.stringify(exports.BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema.parse(browsePaymentMethodDefinitionsGetGlobals));
|
|
67
|
+
}
|
|
68
|
+
function browsePaymentMethodDefinitionsGetGlobalsFromJSON(jsonString) {
|
|
69
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BrowsePaymentMethodDefinitionsGetGlobals' from JSON`);
|
|
70
|
+
}
|
|
71
|
+
/** @internal */
|
|
72
|
+
exports.BrowsePaymentMethodDefinitionsGetRequest$inboundSchema = z.object({
|
|
73
|
+
merchantAccountId: z.nullable(z.string()).optional(),
|
|
74
|
+
});
|
|
75
|
+
/** @internal */
|
|
76
|
+
exports.BrowsePaymentMethodDefinitionsGetRequest$outboundSchema = z.object({
|
|
77
|
+
merchantAccountId: z.nullable(z.string()).optional(),
|
|
78
|
+
});
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
var BrowsePaymentMethodDefinitionsGetRequest$;
|
|
84
|
+
(function (BrowsePaymentMethodDefinitionsGetRequest$) {
|
|
85
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetRequest$inboundSchema` instead. */
|
|
86
|
+
BrowsePaymentMethodDefinitionsGetRequest$.inboundSchema = exports.BrowsePaymentMethodDefinitionsGetRequest$inboundSchema;
|
|
87
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetRequest$outboundSchema` instead. */
|
|
88
|
+
BrowsePaymentMethodDefinitionsGetRequest$.outboundSchema = exports.BrowsePaymentMethodDefinitionsGetRequest$outboundSchema;
|
|
89
|
+
})(BrowsePaymentMethodDefinitionsGetRequest$ || (exports.BrowsePaymentMethodDefinitionsGetRequest$ = BrowsePaymentMethodDefinitionsGetRequest$ = {}));
|
|
90
|
+
function browsePaymentMethodDefinitionsGetRequestToJSON(browsePaymentMethodDefinitionsGetRequest) {
|
|
91
|
+
return JSON.stringify(exports.BrowsePaymentMethodDefinitionsGetRequest$outboundSchema.parse(browsePaymentMethodDefinitionsGetRequest));
|
|
92
|
+
}
|
|
93
|
+
function browsePaymentMethodDefinitionsGetRequestFromJSON(jsonString) {
|
|
94
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BrowsePaymentMethodDefinitionsGetRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BrowsePaymentMethodDefinitionsGetRequest' from JSON`);
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=browsepaymentmethoddefinitionsget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browsepaymentmethoddefinitionsget.js","sourceRoot":"","sources":["../../src/models/operations/browsepaymentmethoddefinitionsget.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDH,wGAS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CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yCAAyC,CASzD;AATD,WAAiB,yCAAyC;IACxD,wFAAwF;IAC3E,uDAAa,GACxB,8DAAsD,CAAC;IACzD,yFAAyF;IAC5E,wDAAc,GACzB,+DAAuD,CAAC;AAG5D,CAAC,EATgB,yCAAyC,yDAAzC,yCAAyC,QASzD;AAED,SAAgB,8CAA8C,CAC5D,wCAC0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,+DAAuD,CAAC,KAAK,CAC3D,wCAAwC,CACzC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,gDAAgD,CAC9D,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,8DAAsD,CAAC,KAAK,CAC1D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,sEAAsE,CACvE,CAAC;AACJ,CAAC"}
|
|
@@ -2,6 +2,7 @@ export * from "./addbuyer.js";
|
|
|
2
2
|
export * from "./addbuyershippingdetails.js";
|
|
3
3
|
export * from "./addpaymentlink.js";
|
|
4
4
|
export * from "./addreport.js";
|
|
5
|
+
export * from "./browsepaymentmethoddefinitionsget.js";
|
|
5
6
|
export * from "./capturetransaction.js";
|
|
6
7
|
export * from "./configuredigitalwallet.js";
|
|
7
8
|
export * from "./createaccountupdaterjob.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3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AyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sBAAsB,CAAC;AACrC,cAAc,oCAAoC,CAAC;AACnD,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sCAAsC,CAAC;AACrD,cAAc,sBAAsB,CAAC"}
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./addbuyer.js"), exports);
|
|
|
21
21
|
__exportStar(require("./addbuyershippingdetails.js"), exports);
|
|
22
22
|
__exportStar(require("./addpaymentlink.js"), exports);
|
|
23
23
|
__exportStar(require("./addreport.js"), exports);
|
|
24
|
+
__exportStar(require("./browsepaymentmethoddefinitionsget.js"), exports);
|
|
24
25
|
__exportStar(require("./capturetransaction.js"), exports);
|
|
25
26
|
__exportStar(require("./configuredigitalwallet.js"), exports);
|
|
26
27
|
__exportStar(require("./createaccountupdaterjob.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,+DAA6C;AAC7C,sDAAoC;AACpC,iDAA+B;AAC/B,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,0EAAwD;AACxD,6DAA2C;AAC3C,mEAAiD;AACjD,sDAAoC;AACpC,2EAAyD;AACzD,2DAAyC;AACzC,uEAAqD;AACrD,iFAA+D;AAC/D,8EAA4D;AAC5D,4DAA0C;AAC1C,6EAA2D;AAC3D,mEAAiD;AACjD,oDAAkC;AAClC,gEAA8C;AAC9C,yDAAuC;AACvC,+DAA6C;AAC7C,mDAAiC;AACjC,kEAAgD;AAChD,6DAA2C;AAC3C,2DAAyC;AACzC,sDAAoC;AACpC,2DAAyC;AACzC,uEAAqD;AACrD,8EAA4D;AAC5D,4DAA0C;AAC1C,yDAAuC;AACvC,gDAA8B;AAC9B,+DAA6C;AAC7C,0DAAwC;AACxC,wDAAsC;AACtC,mDAAiC;AACjC,0DAAwC;AACxC,sDAAoC;AACpC,wDAAsC;AACtC,yDAAuC;AACvC,mEAAiD;AACjD,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,0DAAwC;AACxC,sDAAoC;AACpC,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,qDAAmC;AACnC,0DAAwC;AACxC,+DAA6C;AAC7C,kDAAgC;AAChC,gEAA8C;AAC9C,iEAA+C;AAC/C,0DAAwC;AACxC,4DAA0C;AAC1C,qDAAmC;AACnC,4DAA0C;AAC1C,wDAAsC;AACtC,sEAAoD;AACpD,6EAA2D;AAC3D,0DAAwC;AACxC,0DAAwC;AACxC,qEAAmD;AACnD,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,mDAAiC;AACjC,6DAA2C;AAC3C,8DAA4C;AAC5C,wDAAsC;AACtC,kEAAgD;AAChD,mEAAiD;AACjD,uEAAqD;AACrD,wEAAsD;AACtD,uDAAqC;AACrC,qEAAmD;AACnD,mDAAiC;AACjC,kEAAgD;AAChD,6DAA2C;AAC3C,2DAAyC;AACzC,6DAA2C;AAC3C,4DAA0C;AAC1C,oDAAkC;AAClC,yDAAuC;AACvC,uEAAqD;AACrD,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,+DAA6C;AAC7C,sDAAoC;AACpC,iDAA+B;AAC/B,yEAAuD;AACvD,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,0EAAwD;AACxD,6DAA2C;AAC3C,mEAAiD;AACjD,sDAAoC;AACpC,2EAAyD;AACzD,2DAAyC;AACzC,uEAAqD;AACrD,iFAA+D;AAC/D,8EAA4D;AAC5D,4DAA0C;AAC1C,6EAA2D;AAC3D,mEAAiD;AACjD,oDAAkC;AAClC,gEAA8C;AAC9C,yDAAuC;AACvC,+DAA6C;AAC7C,mDAAiC;AACjC,kEAAgD;AAChD,6DAA2C;AAC3C,2DAAyC;AACzC,sDAAoC;AACpC,2DAAyC;AACzC,uEAAqD;AACrD,8EAA4D;AAC5D,4DAA0C;AAC1C,yDAAuC;AACvC,gDAA8B;AAC9B,+DAA6C;AAC7C,0DAAwC;AACxC,wDAAsC;AACtC,mDAAiC;AACjC,0DAAwC;AACxC,sDAAoC;AACpC,wDAAsC;AACtC,yDAAuC;AACvC,mEAAiD;AACjD,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,0DAAwC;AACxC,sDAAoC;AACpC,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,qDAAmC;AACnC,0DAAwC;AACxC,+DAA6C;AAC7C,kDAAgC;AAChC,gEAA8C;AAC9C,iEAA+C;AAC/C,0DAAwC;AACxC,4DAA0C;AAC1C,qDAAmC;AACnC,4DAA0C;AAC1C,wDAAsC;AACtC,sEAAoD;AACpD,6EAA2D;AAC3D,0DAAwC;AACxC,0DAAwC;AACxC,qEAAmD;AACnD,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,mDAAiC;AACjC,6DAA2C;AAC3C,8DAA4C;AAC5C,wDAAsC;AACtC,kEAAgD;AAChD,mEAAiD;AACjD,uEAAqD;AACrD,wEAAsD;AACtD,uDAAqC;AACrC,qEAAmD;AACnD,mDAAiC;AACjC,kEAAgD;AAChD,6DAA2C;AAC3C,2DAAyC;AACzC,6DAA2C;AAC3C,4DAA0C;AAC1C,oDAAkC;AAClC,yDAAuC;AACvC,uEAAqD;AACrD,uDAAqC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gr4vy/sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.28",
|
|
4
4
|
"author": "Gr4vy",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"globals": "^15.14.0",
|
|
26
26
|
"timekeeper": "^2.3.1",
|
|
27
27
|
"typescript": "~5.8.3",
|
|
28
|
-
"typescript-eslint": "^8.
|
|
28
|
+
"typescript-eslint": "^8.26.0",
|
|
29
29
|
"vitest": "^3.1.2"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
package/sdk/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClientSDK } from "../lib/sdks.js";
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import { AccountUpdater } from "./accountupdater.js";
|
|
3
3
|
import { AuditLogs } from "./auditlogs.js";
|
|
4
4
|
import { Buyers } from "./buyers.js";
|
|
@@ -54,5 +54,9 @@ export declare class Gr4vy extends ClientSDK {
|
|
|
54
54
|
get payouts(): Payouts;
|
|
55
55
|
private _paymentLinks?;
|
|
56
56
|
get paymentLinks(): PaymentLinks;
|
|
57
|
+
/**
|
|
58
|
+
* Browse
|
|
59
|
+
*/
|
|
60
|
+
browsePaymentMethodDefinitionsGet(merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<any>;
|
|
57
61
|
}
|
|
58
62
|
//# sourceMappingURL=sdk.d.ts.map
|
package/sdk/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAA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AY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,IAAI,gBAAgB,IAAI,gBAAgB,CAEvC;IAED,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,IAAI,gBAAgB,IAAI,gBAAgB,CAEvC;IAED,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,IAAI,gBAAgB,IAAI,gBAAgB,CAEvC;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,IAAI,YAAY,IAAI,YAAY,CAE/B;IAED;;OAEG;IACG,iCAAiC,CACrC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC;CAOhB"}
|
package/sdk/sdk.js
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Gr4vy = void 0;
|
|
7
|
+
const browsePaymentMethodDefinitionsGet_js_1 = require("../funcs/browsePaymentMethodDefinitionsGet.js");
|
|
7
8
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
+
const fp_js_1 = require("../types/fp.js");
|
|
8
10
|
const accountupdater_js_1 = require("./accountupdater.js");
|
|
9
11
|
const auditlogs_js_1 = require("./auditlogs.js");
|
|
10
12
|
const buyers_js_1 = require("./buyers.js");
|
|
@@ -78,6 +80,12 @@ class Gr4vy extends sdks_js_1.ClientSDK {
|
|
|
78
80
|
get paymentLinks() {
|
|
79
81
|
return (this._paymentLinks ?? (this._paymentLinks = new paymentlinks_js_1.PaymentLinks(this._options)));
|
|
80
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Browse
|
|
85
|
+
*/
|
|
86
|
+
async browsePaymentMethodDefinitionsGet(merchantAccountId, options) {
|
|
87
|
+
return (0, fp_js_1.unwrapAsync)((0, browsePaymentMethodDefinitionsGet_js_1.browsePaymentMethodDefinitionsGet)(this, merchantAccountId, options));
|
|
88
|
+
}
|
|
81
89
|
}
|
|
82
90
|
exports.Gr4vy = Gr4vy;
|
|
83
91
|
//# sourceMappingURL=sdk.js.map
|
package/sdk/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wGAAkG;AAClG,4CAA2D;AAC3D,0CAA6C;AAC7C,2DAAqD;AACrD,iDAA2C;AAC3C,2CAAqC;AACrC,yEAAmE;AACnE,+DAAyD;AACzD,2DAAqD;AACrD,iDAA2C;AAC3C,+DAAyD;AACzD,uDAAiD;AACjD,2DAAqD;AACrD,2DAAqD;AACrD,iFAA2E;AAC3E,6DAAuD;AACvD,6CAAuC;AACvC,6CAAuC;AACvC,+DAAyD;AACzD,6CAAuC;AACvC,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,mBAAS;IAElC,IAAI,cAAc;QAChB,OAAO,CAAC,IAAI,CAAC,eAAe,KAApB,IAAI,CAAC,eAAe,GAAK,IAAI,kCAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtE,CAAC;IAGD,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,kBAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,cAAc;QAChB,OAAO,CAAC,IAAI,CAAC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EG;IACH,KAAK,CAAC,iCAAiC,CACrC,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wEAAiC,EAClD,IAAI,EACJ,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA5GD,sBA4GC"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { Gr4vyCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { Gr4vyError } from "../models/errors/gr4vyerror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Browse
|
|
31
|
+
*/
|
|
32
|
+
export function browsePaymentMethodDefinitionsGet(
|
|
33
|
+
client: Gr4vyCore,
|
|
34
|
+
merchantAccountId?: string | null | undefined,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<
|
|
37
|
+
Result<
|
|
38
|
+
any,
|
|
39
|
+
| errors.HTTPValidationError
|
|
40
|
+
| Gr4vyError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
merchantAccountId,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: Gr4vyCore,
|
|
59
|
+
merchantAccountId?: string | null | undefined,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
any,
|
|
65
|
+
| errors.HTTPValidationError
|
|
66
|
+
| Gr4vyError
|
|
67
|
+
| ResponseValidationError
|
|
68
|
+
| ConnectionError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| InvalidRequestError
|
|
72
|
+
| UnexpectedClientError
|
|
73
|
+
| SDKValidationError
|
|
74
|
+
>,
|
|
75
|
+
APICall,
|
|
76
|
+
]
|
|
77
|
+
> {
|
|
78
|
+
const input: operations.BrowsePaymentMethodDefinitionsGetRequest | undefined =
|
|
79
|
+
{
|
|
80
|
+
merchantAccountId: merchantAccountId,
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
const parsed = safeParse(
|
|
84
|
+
input,
|
|
85
|
+
(value) =>
|
|
86
|
+
operations.BrowsePaymentMethodDefinitionsGetRequest$outboundSchema
|
|
87
|
+
.optional().parse(value),
|
|
88
|
+
"Input validation failed",
|
|
89
|
+
);
|
|
90
|
+
if (!parsed.ok) {
|
|
91
|
+
return [parsed, { status: "invalid" }];
|
|
92
|
+
}
|
|
93
|
+
const payload = parsed.value;
|
|
94
|
+
const body = null;
|
|
95
|
+
|
|
96
|
+
const path = pathToFunc("/payment-method-definitions")();
|
|
97
|
+
|
|
98
|
+
const headers = new Headers(compactMap({
|
|
99
|
+
Accept: "application/json",
|
|
100
|
+
"x-gr4vy-merchant-account-id": encodeSimple(
|
|
101
|
+
"x-gr4vy-merchant-account-id",
|
|
102
|
+
payload?.merchantAccountId ?? client._options.merchantAccountId,
|
|
103
|
+
{ explode: false, charEncoding: "none" },
|
|
104
|
+
),
|
|
105
|
+
}));
|
|
106
|
+
|
|
107
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
108
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
109
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
110
|
+
|
|
111
|
+
const context = {
|
|
112
|
+
options: client._options,
|
|
113
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
114
|
+
operationID: "browse_payment_method_definitions_get",
|
|
115
|
+
oAuth2Scopes: [],
|
|
116
|
+
|
|
117
|
+
resolvedSecurity: requestSecurity,
|
|
118
|
+
|
|
119
|
+
securitySource: client._options.bearerAuth,
|
|
120
|
+
retryConfig: options?.retries
|
|
121
|
+
|| client._options.retryConfig
|
|
122
|
+
|| {
|
|
123
|
+
strategy: "backoff",
|
|
124
|
+
backoff: {
|
|
125
|
+
initialInterval: 200,
|
|
126
|
+
maxInterval: 200,
|
|
127
|
+
exponent: 1,
|
|
128
|
+
maxElapsedTime: 1000,
|
|
129
|
+
},
|
|
130
|
+
retryConnectionErrors: true,
|
|
131
|
+
}
|
|
132
|
+
|| { strategy: "none" },
|
|
133
|
+
retryCodes: options?.retryCodes || ["5XX"],
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const requestRes = client._createRequest(context, {
|
|
137
|
+
security: requestSecurity,
|
|
138
|
+
method: "GET",
|
|
139
|
+
baseURL: options?.serverURL,
|
|
140
|
+
path: path,
|
|
141
|
+
headers: headers,
|
|
142
|
+
body: body,
|
|
143
|
+
userAgent: client._options.userAgent,
|
|
144
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
145
|
+
}, options);
|
|
146
|
+
if (!requestRes.ok) {
|
|
147
|
+
return [requestRes, { status: "invalid" }];
|
|
148
|
+
}
|
|
149
|
+
const req = requestRes.value;
|
|
150
|
+
|
|
151
|
+
const doResult = await client._do(req, {
|
|
152
|
+
context,
|
|
153
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
154
|
+
retryConfig: context.retryConfig,
|
|
155
|
+
retryCodes: context.retryCodes,
|
|
156
|
+
});
|
|
157
|
+
if (!doResult.ok) {
|
|
158
|
+
return [doResult, { status: "request-error", request: req }];
|
|
159
|
+
}
|
|
160
|
+
const response = doResult.value;
|
|
161
|
+
|
|
162
|
+
const responseFields = {
|
|
163
|
+
HttpMeta: { Response: response, Request: req },
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const [result] = await M.match<
|
|
167
|
+
any,
|
|
168
|
+
| errors.HTTPValidationError
|
|
169
|
+
| Gr4vyError
|
|
170
|
+
| ResponseValidationError
|
|
171
|
+
| ConnectionError
|
|
172
|
+
| RequestAbortedError
|
|
173
|
+
| RequestTimeoutError
|
|
174
|
+
| InvalidRequestError
|
|
175
|
+
| UnexpectedClientError
|
|
176
|
+
| SDKValidationError
|
|
177
|
+
>(
|
|
178
|
+
M.json(200, z.any()),
|
|
179
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
180
|
+
M.fail("4XX"),
|
|
181
|
+
M.fail("5XX"),
|
|
182
|
+
)(response, req, { extraFields: responseFields });
|
|
183
|
+
if (!result.ok) {
|
|
184
|
+
return [result, { status: "complete", request: req, response }];
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
return [result, { status: "complete", request: req, response }];
|
|
188
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -77,7 +77,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
77
77
|
export const SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "1.0.0",
|
|
80
|
-
sdkVersion: "1.1.
|
|
81
|
-
genVersion: "2.674.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
80
|
+
sdkVersion: "1.1.28",
|
|
81
|
+
genVersion: "2.674.3",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 1.1.28 2.674.3 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type BrowsePaymentMethodDefinitionsGetGlobals = {
|
|
11
|
+
merchantAccountId?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type BrowsePaymentMethodDefinitionsGetRequest = {
|
|
15
|
+
/**
|
|
16
|
+
* The ID of the merchant account to use for this request.
|
|
17
|
+
*/
|
|
18
|
+
merchantAccountId?: string | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema: z.ZodType<
|
|
23
|
+
BrowsePaymentMethodDefinitionsGetGlobals,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
merchantAccountId: z.string().optional(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type BrowsePaymentMethodDefinitionsGetGlobals$Outbound = {
|
|
32
|
+
merchantAccountId?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema: z.ZodType<
|
|
37
|
+
BrowsePaymentMethodDefinitionsGetGlobals$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
BrowsePaymentMethodDefinitionsGetGlobals
|
|
40
|
+
> = z.object({
|
|
41
|
+
merchantAccountId: z.string().optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
export namespace BrowsePaymentMethodDefinitionsGetGlobals$ {
|
|
49
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema =
|
|
51
|
+
BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema;
|
|
52
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema =
|
|
54
|
+
BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema;
|
|
55
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetGlobals$Outbound` instead. */
|
|
56
|
+
export type Outbound = BrowsePaymentMethodDefinitionsGetGlobals$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function browsePaymentMethodDefinitionsGetGlobalsToJSON(
|
|
60
|
+
browsePaymentMethodDefinitionsGetGlobals:
|
|
61
|
+
BrowsePaymentMethodDefinitionsGetGlobals,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
BrowsePaymentMethodDefinitionsGetGlobals$outboundSchema.parse(
|
|
65
|
+
browsePaymentMethodDefinitionsGetGlobals,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function browsePaymentMethodDefinitionsGetGlobalsFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<
|
|
73
|
+
BrowsePaymentMethodDefinitionsGetGlobals,
|
|
74
|
+
SDKValidationError
|
|
75
|
+
> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) =>
|
|
79
|
+
BrowsePaymentMethodDefinitionsGetGlobals$inboundSchema.parse(
|
|
80
|
+
JSON.parse(x),
|
|
81
|
+
),
|
|
82
|
+
`Failed to parse 'BrowsePaymentMethodDefinitionsGetGlobals' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const BrowsePaymentMethodDefinitionsGetRequest$inboundSchema: z.ZodType<
|
|
88
|
+
BrowsePaymentMethodDefinitionsGetRequest,
|
|
89
|
+
z.ZodTypeDef,
|
|
90
|
+
unknown
|
|
91
|
+
> = z.object({
|
|
92
|
+
merchantAccountId: z.nullable(z.string()).optional(),
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export type BrowsePaymentMethodDefinitionsGetRequest$Outbound = {
|
|
97
|
+
merchantAccountId?: string | null | undefined;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const BrowsePaymentMethodDefinitionsGetRequest$outboundSchema: z.ZodType<
|
|
102
|
+
BrowsePaymentMethodDefinitionsGetRequest$Outbound,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
BrowsePaymentMethodDefinitionsGetRequest
|
|
105
|
+
> = z.object({
|
|
106
|
+
merchantAccountId: z.nullable(z.string()).optional(),
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
112
|
+
*/
|
|
113
|
+
export namespace BrowsePaymentMethodDefinitionsGetRequest$ {
|
|
114
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetRequest$inboundSchema` instead. */
|
|
115
|
+
export const inboundSchema =
|
|
116
|
+
BrowsePaymentMethodDefinitionsGetRequest$inboundSchema;
|
|
117
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetRequest$outboundSchema` instead. */
|
|
118
|
+
export const outboundSchema =
|
|
119
|
+
BrowsePaymentMethodDefinitionsGetRequest$outboundSchema;
|
|
120
|
+
/** @deprecated use `BrowsePaymentMethodDefinitionsGetRequest$Outbound` instead. */
|
|
121
|
+
export type Outbound = BrowsePaymentMethodDefinitionsGetRequest$Outbound;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function browsePaymentMethodDefinitionsGetRequestToJSON(
|
|
125
|
+
browsePaymentMethodDefinitionsGetRequest:
|
|
126
|
+
BrowsePaymentMethodDefinitionsGetRequest,
|
|
127
|
+
): string {
|
|
128
|
+
return JSON.stringify(
|
|
129
|
+
BrowsePaymentMethodDefinitionsGetRequest$outboundSchema.parse(
|
|
130
|
+
browsePaymentMethodDefinitionsGetRequest,
|
|
131
|
+
),
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function browsePaymentMethodDefinitionsGetRequestFromJSON(
|
|
136
|
+
jsonString: string,
|
|
137
|
+
): SafeParseResult<
|
|
138
|
+
BrowsePaymentMethodDefinitionsGetRequest,
|
|
139
|
+
SDKValidationError
|
|
140
|
+
> {
|
|
141
|
+
return safeParse(
|
|
142
|
+
jsonString,
|
|
143
|
+
(x) =>
|
|
144
|
+
BrowsePaymentMethodDefinitionsGetRequest$inboundSchema.parse(
|
|
145
|
+
JSON.parse(x),
|
|
146
|
+
),
|
|
147
|
+
`Failed to parse 'BrowsePaymentMethodDefinitionsGetRequest' from JSON`,
|
|
148
|
+
);
|
|
149
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from "./addbuyer.js";
|
|
|
6
6
|
export * from "./addbuyershippingdetails.js";
|
|
7
7
|
export * from "./addpaymentlink.js";
|
|
8
8
|
export * from "./addreport.js";
|
|
9
|
+
export * from "./browsepaymentmethoddefinitionsget.js";
|
|
9
10
|
export * from "./capturetransaction.js";
|
|
10
11
|
export * from "./configuredigitalwallet.js";
|
|
11
12
|
export * from "./createaccountupdaterjob.js";
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { browsePaymentMethodDefinitionsGet } from "../funcs/browsePaymentMethodDefinitionsGet.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
6
8
|
import { AccountUpdater } from "./accountupdater.js";
|
|
7
9
|
import { AuditLogs } from "./auditlogs.js";
|
|
8
10
|
import { Buyers } from "./buyers.js";
|
|
@@ -116,4 +118,18 @@ export class Gr4vy extends ClientSDK {
|
|
|
116
118
|
get paymentLinks(): PaymentLinks {
|
|
117
119
|
return (this._paymentLinks ??= new PaymentLinks(this._options));
|
|
118
120
|
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Browse
|
|
124
|
+
*/
|
|
125
|
+
async browsePaymentMethodDefinitionsGet(
|
|
126
|
+
merchantAccountId?: string | null | undefined,
|
|
127
|
+
options?: RequestOptions,
|
|
128
|
+
): Promise<any> {
|
|
129
|
+
return unwrapAsync(browsePaymentMethodDefinitionsGet(
|
|
130
|
+
this,
|
|
131
|
+
merchantAccountId,
|
|
132
|
+
options,
|
|
133
|
+
));
|
|
134
|
+
}
|
|
119
135
|
}
|