@gr4vy/sdk 2.3.12 → 2.3.15
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/README.md +14 -1
- package/funcs/apiKeyPairsCreate.d.ts +18 -0
- package/funcs/apiKeyPairsCreate.d.ts.map +1 -0
- package/funcs/apiKeyPairsCreate.js +119 -0
- package/funcs/apiKeyPairsCreate.js.map +1 -0
- package/funcs/apiKeyPairsDelete.d.ts +17 -0
- package/funcs/apiKeyPairsDelete.d.ts.map +1 -0
- package/funcs/apiKeyPairsDelete.js +128 -0
- package/funcs/apiKeyPairsDelete.js.map +1 -0
- package/funcs/apiKeyPairsGet.d.ts +18 -0
- package/funcs/apiKeyPairsGet.d.ts.map +1 -0
- package/funcs/apiKeyPairsGet.js +138 -0
- package/funcs/apiKeyPairsGet.js.map +1 -0
- package/funcs/apiKeyPairsList.d.ts +21 -0
- package/funcs/apiKeyPairsList.d.ts.map +1 -0
- package/funcs/apiKeyPairsList.js +160 -0
- package/funcs/apiKeyPairsList.js.map +1 -0
- package/funcs/apiKeyPairsUpdate.d.ts +18 -0
- package/funcs/apiKeyPairsUpdate.d.ts.map +1 -0
- package/funcs/apiKeyPairsUpdate.js +130 -0
- package/funcs/apiKeyPairsUpdate.js.map +1 -0
- package/funcs/merchantAccountsCreate.d.ts +1 -1
- package/funcs/merchantAccountsCreate.d.ts.map +1 -1
- package/funcs/merchantAccountsCreate.js +1 -1
- package/funcs/merchantAccountsCreate.js.map +1 -1
- package/funcs/merchantAccountsGet.d.ts +1 -1
- package/funcs/merchantAccountsGet.d.ts.map +1 -1
- package/funcs/merchantAccountsGet.js +1 -1
- package/funcs/merchantAccountsGet.js.map +1 -1
- package/funcs/merchantAccountsUpdate.d.ts +1 -1
- package/funcs/merchantAccountsUpdate.d.ts.map +1 -1
- package/funcs/merchantAccountsUpdate.js +1 -1
- package/funcs/merchantAccountsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/aiinsightsreportspec.d.ts +24 -0
- package/models/components/aiinsightsreportspec.d.ts.map +1 -0
- package/models/components/aiinsightsreportspec.js +50 -0
- package/models/components/aiinsightsreportspec.js.map +1 -0
- package/models/components/apicommonschemascreator.d.ts +12 -0
- package/models/components/apicommonschemascreator.d.ts.map +1 -0
- package/models/components/{creator.js → apicommonschemascreator.js} +6 -6
- package/models/components/apicommonschemascreator.js.map +1 -0
- package/models/components/apicommonschemasmerchantaccount.d.ts +16 -0
- package/models/components/apicommonschemasmerchantaccount.d.ts.map +1 -0
- package/models/components/apicommonschemasmerchantaccount.js +65 -0
- package/models/components/apicommonschemasmerchantaccount.js.map +1 -0
- package/models/components/apikeypair.d.ts +58 -0
- package/models/components/apikeypair.d.ts.map +1 -0
- package/models/components/apikeypair.js +76 -0
- package/models/components/apikeypair.js.map +1 -0
- package/models/components/apikeypaircreate.d.ts +38 -0
- package/models/components/apikeypaircreate.d.ts.map +1 -0
- package/models/components/apikeypaircreate.js +63 -0
- package/models/components/apikeypaircreate.js.map +1 -0
- package/models/components/apikeypairupdate.d.ts +27 -0
- package/models/components/apikeypairupdate.d.ts.map +1 -0
- package/models/components/apikeypairupdate.js +59 -0
- package/models/components/apikeypairupdate.js.map +1 -0
- package/models/components/apiroutersapikeypairsschemascreator.d.ts +25 -0
- package/models/components/apiroutersapikeypairsschemascreator.d.ts.map +1 -0
- package/models/components/apiroutersapikeypairsschemascreator.js +58 -0
- package/models/components/apiroutersapikeypairsschemascreator.js.map +1 -0
- package/models/components/{merchantaccount.d.ts → apiroutersmerchantaccountsschemasmerchantaccount.d.ts} +4 -4
- package/models/components/apiroutersmerchantaccountsschemasmerchantaccount.d.ts.map +1 -0
- package/models/components/{merchantaccount.js → apiroutersmerchantaccountsschemasmerchantaccount.js} +10 -8
- package/models/components/apiroutersmerchantaccountsschemasmerchantaccount.js.map +1 -0
- package/models/components/certificatealgorithm.d.ts +12 -0
- package/models/components/certificatealgorithm.d.ts.map +1 -0
- package/models/components/certificatealgorithm.js +49 -0
- package/models/components/certificatealgorithm.js.map +1 -0
- package/models/components/collectionapikeypair.d.ts +26 -0
- package/models/components/collectionapikeypair.d.ts.map +1 -0
- package/models/components/collectionapikeypair.js +60 -0
- package/models/components/collectionapikeypair.js.map +1 -0
- package/models/components/index.d.ts +12 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +12 -2
- package/models/components/index.js.map +1 -1
- package/models/components/merchantaccounts.d.ts +2 -2
- package/models/components/merchantaccounts.d.ts.map +1 -1
- package/models/components/merchantaccounts.js +2 -2
- package/models/components/merchantaccounts.js.map +1 -1
- package/models/components/permissionset.d.ts +10 -0
- package/models/components/permissionset.d.ts.map +1 -0
- package/models/components/permissionset.js +50 -0
- package/models/components/permissionset.js.map +1 -0
- package/models/components/refund.d.ts +14 -2
- package/models/components/refund.d.ts.map +1 -1
- package/models/components/refund.js +7 -2
- package/models/components/refund.js.map +1 -1
- package/models/components/reportcreate.d.ts +5 -4
- package/models/components/reportcreate.d.ts.map +1 -1
- package/models/components/reportcreate.js +3 -0
- package/models/components/reportcreate.js.map +1 -1
- package/models/components/reportspecmodel.d.ts +1 -0
- package/models/components/reportspecmodel.d.ts.map +1 -1
- package/models/components/reportspecmodel.js +1 -0
- package/models/components/reportspecmodel.js.map +1 -1
- package/models/components/role.d.ts +15 -0
- package/models/components/role.d.ts.map +1 -0
- package/models/components/role.js +56 -0
- package/models/components/role.js.map +1 -0
- package/models/components/transactionevent.d.ts +1 -0
- package/models/components/transactionevent.d.ts.map +1 -1
- package/models/components/transactionevent.js +1 -0
- package/models/components/transactionevent.js.map +1 -1
- package/models/operations/deleteapikeypair.d.ts +15 -0
- package/models/operations/deleteapikeypair.d.ts.map +1 -0
- package/models/operations/deleteapikeypair.js +54 -0
- package/models/operations/deleteapikeypair.js.map +1 -0
- package/models/operations/getapikeypair.d.ts +15 -0
- package/models/operations/getapikeypair.d.ts.map +1 -0
- package/models/operations/getapikeypair.js +54 -0
- package/models/operations/getapikeypair.js.map +1 -0
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listapikeypairs.d.ts +29 -0
- package/models/operations/listapikeypairs.d.ts.map +1 -0
- package/models/operations/listapikeypairs.js +65 -0
- package/models/operations/listapikeypairs.js.map +1 -0
- package/models/operations/updateapikeypair.d.ts +18 -0
- package/models/operations/updateapikeypair.d.ts.map +1 -0
- package/models/operations/updateapikeypair.js +57 -0
- package/models/operations/updateapikeypair.js.map +1 -0
- package/package.json +1 -1
- package/sdk/apikeypairs.d.ts +44 -0
- package/sdk/apikeypairs.d.ts.map +1 -0
- package/sdk/apikeypairs.js +63 -0
- package/sdk/apikeypairs.js.map +1 -0
- package/sdk/merchantaccounts.d.ts +3 -3
- package/sdk/merchantaccounts.d.ts.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/apiKeyPairsCreate.ts +215 -0
- package/src/funcs/apiKeyPairsDelete.ts +225 -0
- package/src/funcs/apiKeyPairsGet.ts +235 -0
- package/src/funcs/apiKeyPairsList.ts +312 -0
- package/src/funcs/apiKeyPairsUpdate.ts +230 -0
- package/src/funcs/merchantAccountsCreate.ts +7 -4
- package/src/funcs/merchantAccountsGet.ts +7 -4
- package/src/funcs/merchantAccountsUpdate.ts +7 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/aiinsightsreportspec.ts +40 -0
- package/src/models/components/apicommonschemascreator.ts +40 -0
- package/src/models/components/apicommonschemasmerchantaccount.ts +52 -0
- package/src/models/components/apikeypair.ts +110 -0
- package/src/models/components/apikeypaircreate.ts +73 -0
- package/src/models/components/apikeypairupdate.ts +56 -0
- package/src/models/components/apiroutersapikeypairsschemascreator.ts +55 -0
- package/src/models/components/{merchantaccount.ts → apiroutersmerchantaccountsschemasmerchantaccount.ts} +79 -65
- package/src/models/components/certificatealgorithm.ts +26 -0
- package/src/models/components/collectionapikeypair.ts +56 -0
- package/src/models/components/index.ts +12 -2
- package/src/models/components/merchantaccounts.ts +7 -5
- package/src/models/components/permissionset.ts +31 -0
- package/src/models/components/refund.ts +23 -3
- package/src/models/components/reportcreate.ts +11 -0
- package/src/models/components/reportspecmodel.ts +1 -0
- package/src/models/components/role.ts +37 -0
- package/src/models/components/transactionevent.ts +2 -0
- package/src/models/operations/deleteapikeypair.ts +39 -0
- package/src/models/operations/getapikeypair.ts +39 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listapikeypairs.ts +72 -0
- package/src/models/operations/updateapikeypair.ts +44 -0
- package/src/sdk/apikeypairs.ts +107 -0
- package/src/sdk/merchantaccounts.ts +3 -3
- package/src/sdk/sdk.ts +6 -0
- package/models/components/creator.d.ts +0 -12
- package/models/components/creator.d.ts.map +0 -1
- package/models/components/creator.js.map +0 -1
- package/models/components/merchantaccount.d.ts.map +0 -1
- package/models/components/merchantaccount.js.map +0 -1
- package/src/models/components/creator.ts +0 -37
|
@@ -20,10 +20,18 @@ export * from "./adyensepaoptions.js";
|
|
|
20
20
|
export * from "./adyensplitsoptions.js";
|
|
21
21
|
export * from "./affirmitineraryoptions.js";
|
|
22
22
|
export * from "./affirmoptions.js";
|
|
23
|
+
export * from "./aiinsightsreportspec.js";
|
|
23
24
|
export * from "./airline.js";
|
|
24
25
|
export * from "./airlineleg.js";
|
|
25
26
|
export * from "./airlinepassenger.js";
|
|
26
27
|
export * from "./antifrauddecision.js";
|
|
28
|
+
export * from "./apicommonschemascreator.js";
|
|
29
|
+
export * from "./apicommonschemasmerchantaccount.js";
|
|
30
|
+
export * from "./apikeypair.js";
|
|
31
|
+
export * from "./apikeypaircreate.js";
|
|
32
|
+
export * from "./apikeypairupdate.js";
|
|
33
|
+
export * from "./apiroutersapikeypairsschemascreator.js";
|
|
34
|
+
export * from "./apiroutersmerchantaccountsschemasmerchantaccount.js";
|
|
27
35
|
export * from "./apitypesdigitalwalletaddress.js";
|
|
28
36
|
export * from "./applepaypaymentmethodcreate.js";
|
|
29
37
|
export * from "./applepaysessionrequest.js";
|
|
@@ -56,6 +64,7 @@ export * from "./cardschemedefinitions.js";
|
|
|
56
64
|
export * from "./cardtype.js";
|
|
57
65
|
export * from "./cardwithurlpaymentmethodcreate.js";
|
|
58
66
|
export * from "./cartitem.js";
|
|
67
|
+
export * from "./certificatealgorithm.js";
|
|
59
68
|
export * from "./chaseoptions.js";
|
|
60
69
|
export * from "./checkoutpayoutoptions.js";
|
|
61
70
|
export * from "./checkoutsession.js";
|
|
@@ -68,9 +77,9 @@ export * from "./clicktopayfpanpaymentmethodcreate.js";
|
|
|
68
77
|
export * from "./clicktopaypaymentmethodcreate.js";
|
|
69
78
|
export * from "./clicktopaysession.js";
|
|
70
79
|
export * from "./clicktopaysessionrequest.js";
|
|
80
|
+
export * from "./collectionapikeypair.js";
|
|
71
81
|
export * from "./createsession.js";
|
|
72
82
|
export * from "./createsessionstatus.js";
|
|
73
|
-
export * from "./creator.js";
|
|
74
83
|
export * from "./cryptogram.js";
|
|
75
84
|
export * from "./cryptogramcreate.js";
|
|
76
85
|
export * from "./cvvresponsecode.js";
|
|
@@ -141,7 +150,6 @@ export * from "./instrumenttype.js";
|
|
|
141
150
|
export * from "./integrationclient.js";
|
|
142
151
|
export * from "./latitudeoptions.js";
|
|
143
152
|
export * from "./mattildatapioptions.js";
|
|
144
|
-
export * from "./merchantaccount.js";
|
|
145
153
|
export * from "./merchantaccountcreate.js";
|
|
146
154
|
export * from "./merchantaccounts.js";
|
|
147
155
|
export * from "./merchantaccountthreedsconfiguration.js";
|
|
@@ -236,6 +244,7 @@ export * from "./pazetransactionoptions.js";
|
|
|
236
244
|
export * from "./pazetransactionvalue.js";
|
|
237
245
|
export * from "./pazetraveldata.js";
|
|
238
246
|
export * from "./pazewebsession.js";
|
|
247
|
+
export * from "./permissionset.js";
|
|
239
248
|
export * from "./plaidpaymentmethodcreate.js";
|
|
240
249
|
export * from "./powertranzoptions.js";
|
|
241
250
|
export * from "./producttype.js";
|
|
@@ -264,6 +273,7 @@ export * from "./reportupdate.js";
|
|
|
264
273
|
export * from "./requiredcheckoutfields.js";
|
|
265
274
|
export * from "./riskifiedantifraudoptions.js";
|
|
266
275
|
export * from "./riskifiedantifraudoptionslineitem.js";
|
|
276
|
+
export * from "./role.js";
|
|
267
277
|
export * from "./security.js";
|
|
268
278
|
export * from "./sepabankpaymentmethodcreate.js";
|
|
269
279
|
export * from "./settlement.js";
|
|
@@ -8,15 +8,15 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
ApiRoutersMerchantAccountsSchemasMerchantAccount,
|
|
12
|
+
ApiRoutersMerchantAccountsSchemasMerchantAccount$inboundSchema,
|
|
13
|
+
} from "./apiroutersmerchantaccountsschemasmerchantaccount.js";
|
|
14
14
|
|
|
15
15
|
export type MerchantAccounts = {
|
|
16
16
|
/**
|
|
17
17
|
* A list of items returned for this request.
|
|
18
18
|
*/
|
|
19
|
-
items: Array<
|
|
19
|
+
items: Array<ApiRoutersMerchantAccountsSchemasMerchantAccount>;
|
|
20
20
|
/**
|
|
21
21
|
* The number of items for this page.
|
|
22
22
|
*/
|
|
@@ -37,7 +37,9 @@ export const MerchantAccounts$inboundSchema: z.ZodType<
|
|
|
37
37
|
z.ZodTypeDef,
|
|
38
38
|
unknown
|
|
39
39
|
> = z.object({
|
|
40
|
-
items: z.array(
|
|
40
|
+
items: z.array(
|
|
41
|
+
ApiRoutersMerchantAccountsSchemasMerchantAccount$inboundSchema,
|
|
42
|
+
),
|
|
41
43
|
limit: z.number().int().default(20),
|
|
42
44
|
next_cursor: z.nullable(z.string()).optional(),
|
|
43
45
|
previous_cursor: z.nullable(z.string()).optional(),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 PermissionSet = {
|
|
11
|
+
allow: Array<string>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const PermissionSet$inboundSchema: z.ZodType<
|
|
16
|
+
PermissionSet,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
allow: z.array(z.string()),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export function permissionSetFromJSON(
|
|
24
|
+
jsonString: string,
|
|
25
|
+
): SafeParseResult<PermissionSet, SDKValidationError> {
|
|
26
|
+
return safeParse(
|
|
27
|
+
jsonString,
|
|
28
|
+
(x) => PermissionSet$inboundSchema.parse(JSON.parse(x)),
|
|
29
|
+
`Failed to parse 'PermissionSet' from JSON`,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -7,7 +7,10 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
ApiCommonSchemasCreator,
|
|
12
|
+
ApiCommonSchemasCreator$inboundSchema,
|
|
13
|
+
} from "./apicommonschemascreator.js";
|
|
11
14
|
import { RefundStatus, RefundStatus$inboundSchema } from "./refundstatus.js";
|
|
12
15
|
import {
|
|
13
16
|
RefundTargetType,
|
|
@@ -76,7 +79,7 @@ export type Refund = {
|
|
|
76
79
|
/**
|
|
77
80
|
* The user that created this resource
|
|
78
81
|
*/
|
|
79
|
-
creator?:
|
|
82
|
+
creator?: ApiCommonSchemasCreator | null | undefined;
|
|
80
83
|
/**
|
|
81
84
|
* The standardized error code set by Gr4vy.
|
|
82
85
|
*/
|
|
@@ -89,6 +92,18 @@ export type Refund = {
|
|
|
89
92
|
* This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services.
|
|
90
93
|
*/
|
|
91
94
|
rawResponseDescription?: string | null | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* The ISO 4217 currency code of this refund's settlement.
|
|
97
|
+
*/
|
|
98
|
+
settledCurrency?: string | null | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* The net amount settled for this refund, in the smallest currency unit (for example, cents or pence).
|
|
101
|
+
*/
|
|
102
|
+
settledAmount: number;
|
|
103
|
+
/**
|
|
104
|
+
* Indicates whether this refund has been settled.
|
|
105
|
+
*/
|
|
106
|
+
settled: boolean;
|
|
92
107
|
};
|
|
93
108
|
|
|
94
109
|
/** @internal */
|
|
@@ -114,10 +129,13 @@ export const Refund$inboundSchema: z.ZodType<Refund, z.ZodTypeDef, unknown> = z
|
|
|
114
129
|
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
115
130
|
new Date(v)
|
|
116
131
|
),
|
|
117
|
-
creator: z.nullable(
|
|
132
|
+
creator: z.nullable(ApiCommonSchemasCreator$inboundSchema).optional(),
|
|
118
133
|
error_code: z.nullable(z.string()).optional(),
|
|
119
134
|
raw_response_code: z.nullable(z.string()).optional(),
|
|
120
135
|
raw_response_description: z.nullable(z.string()).optional(),
|
|
136
|
+
settled_currency: z.nullable(z.string()).optional(),
|
|
137
|
+
settled_amount: z.number().int().default(0),
|
|
138
|
+
settled: z.boolean(),
|
|
121
139
|
}).transform((v) => {
|
|
122
140
|
return remap$(v, {
|
|
123
141
|
"transaction_id": "transactionId",
|
|
@@ -133,6 +151,8 @@ export const Refund$inboundSchema: z.ZodType<Refund, z.ZodTypeDef, unknown> = z
|
|
|
133
151
|
"error_code": "errorCode",
|
|
134
152
|
"raw_response_code": "rawResponseCode",
|
|
135
153
|
"raw_response_description": "rawResponseDescription",
|
|
154
|
+
"settled_currency": "settledCurrency",
|
|
155
|
+
"settled_amount": "settledAmount",
|
|
136
156
|
});
|
|
137
157
|
});
|
|
138
158
|
|
|
@@ -9,6 +9,11 @@ import {
|
|
|
9
9
|
AccountsReceivablesReportSpec$Outbound,
|
|
10
10
|
AccountsReceivablesReportSpec$outboundSchema,
|
|
11
11
|
} from "./accountsreceivablesreportspec.js";
|
|
12
|
+
import {
|
|
13
|
+
AIInsightsReportSpec,
|
|
14
|
+
AIInsightsReportSpec$Outbound,
|
|
15
|
+
AIInsightsReportSpec$outboundSchema,
|
|
16
|
+
} from "./aiinsightsreportspec.js";
|
|
12
17
|
import {
|
|
13
18
|
DetailedSettlementReportSpec,
|
|
14
19
|
DetailedSettlementReportSpec$Outbound,
|
|
@@ -34,6 +39,7 @@ import {
|
|
|
34
39
|
*/
|
|
35
40
|
export type Spec =
|
|
36
41
|
| AccountsReceivablesReportSpec
|
|
42
|
+
| AIInsightsReportSpec
|
|
37
43
|
| DetailedSettlementReportSpec
|
|
38
44
|
| TransactionRetriesReportSpec
|
|
39
45
|
| TransactionsReportSpec;
|
|
@@ -61,6 +67,7 @@ export type ReportCreate = {
|
|
|
61
67
|
*/
|
|
62
68
|
spec:
|
|
63
69
|
| AccountsReceivablesReportSpec
|
|
70
|
+
| AIInsightsReportSpec
|
|
64
71
|
| DetailedSettlementReportSpec
|
|
65
72
|
| TransactionRetriesReportSpec
|
|
66
73
|
| TransactionsReportSpec;
|
|
@@ -69,6 +76,7 @@ export type ReportCreate = {
|
|
|
69
76
|
/** @internal */
|
|
70
77
|
export type Spec$Outbound =
|
|
71
78
|
| AccountsReceivablesReportSpec$Outbound
|
|
79
|
+
| AIInsightsReportSpec$Outbound
|
|
72
80
|
| DetailedSettlementReportSpec$Outbound
|
|
73
81
|
| TransactionRetriesReportSpec$Outbound
|
|
74
82
|
| TransactionsReportSpec$Outbound;
|
|
@@ -77,6 +85,7 @@ export type Spec$Outbound =
|
|
|
77
85
|
export const Spec$outboundSchema: z.ZodType<Spec$Outbound, z.ZodTypeDef, Spec> =
|
|
78
86
|
z.union([
|
|
79
87
|
AccountsReceivablesReportSpec$outboundSchema,
|
|
88
|
+
AIInsightsReportSpec$outboundSchema,
|
|
80
89
|
DetailedSettlementReportSpec$outboundSchema,
|
|
81
90
|
TransactionRetriesReportSpec$outboundSchema,
|
|
82
91
|
TransactionsReportSpec$outboundSchema,
|
|
@@ -95,6 +104,7 @@ export type ReportCreate$Outbound = {
|
|
|
95
104
|
schedule_timezone: string;
|
|
96
105
|
spec:
|
|
97
106
|
| AccountsReceivablesReportSpec$Outbound
|
|
107
|
+
| AIInsightsReportSpec$Outbound
|
|
98
108
|
| DetailedSettlementReportSpec$Outbound
|
|
99
109
|
| TransactionRetriesReportSpec$Outbound
|
|
100
110
|
| TransactionsReportSpec$Outbound;
|
|
@@ -113,6 +123,7 @@ export const ReportCreate$outboundSchema: z.ZodType<
|
|
|
113
123
|
scheduleTimezone: z.string().default("Etc/UTC"),
|
|
114
124
|
spec: z.union([
|
|
115
125
|
AccountsReceivablesReportSpec$outboundSchema,
|
|
126
|
+
AIInsightsReportSpec$outboundSchema,
|
|
116
127
|
DetailedSettlementReportSpec$outboundSchema,
|
|
117
128
|
TransactionRetriesReportSpec$outboundSchema,
|
|
118
129
|
TransactionsReportSpec$outboundSchema,
|
|
@@ -11,6 +11,7 @@ export const ReportSpecModel = {
|
|
|
11
11
|
TransactionRetries: "transaction_retries",
|
|
12
12
|
DetailedSettlement: "detailed_settlement",
|
|
13
13
|
AccountsReceivables: "accounts_receivables",
|
|
14
|
+
AiInsights: "ai_insights",
|
|
14
15
|
} as const;
|
|
15
16
|
export type ReportSpecModel = OpenEnum<typeof ReportSpecModel>;
|
|
16
17
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { PermissionSet, PermissionSet$inboundSchema } from "./permissionset.js";
|
|
10
|
+
|
|
11
|
+
export type Role = {
|
|
12
|
+
type: "role";
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
permissions: PermissionSet;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Role$inboundSchema: z.ZodType<Role, z.ZodTypeDef, unknown> = z
|
|
21
|
+
.object({
|
|
22
|
+
type: z.literal("role").default("role"),
|
|
23
|
+
id: z.string(),
|
|
24
|
+
name: z.string(),
|
|
25
|
+
description: z.string(),
|
|
26
|
+
permissions: PermissionSet$inboundSchema,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function roleFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<Role, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => Role$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'Role' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -68,6 +68,8 @@ export const Name = {
|
|
|
68
68
|
"payment-connector-external-transaction-request",
|
|
69
69
|
PaymentConnectorReportTransactionSettled:
|
|
70
70
|
"payment-connector-report-transaction-settled",
|
|
71
|
+
PaymentConnectorReportRefundSettled:
|
|
72
|
+
"payment-connector-report-refund-settled",
|
|
71
73
|
PaymentConnectorReportChargebackPosted:
|
|
72
74
|
"payment-connector-report-chargeback-posted",
|
|
73
75
|
PaymentConnectorReportChargebackReversalPosted:
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type DeleteApiKeyPairRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The ID of the API key pair.
|
|
11
|
+
*/
|
|
12
|
+
apiKeyPairId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type DeleteApiKeyPairRequest$Outbound = {
|
|
17
|
+
api_key_pair_id: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const DeleteApiKeyPairRequest$outboundSchema: z.ZodType<
|
|
22
|
+
DeleteApiKeyPairRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
DeleteApiKeyPairRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
apiKeyPairId: z.string(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
apiKeyPairId: "api_key_pair_id",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function deleteApiKeyPairRequestToJSON(
|
|
34
|
+
deleteApiKeyPairRequest: DeleteApiKeyPairRequest,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
DeleteApiKeyPairRequest$outboundSchema.parse(deleteApiKeyPairRequest),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type GetApiKeyPairRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The ID of the API key pair.
|
|
11
|
+
*/
|
|
12
|
+
apiKeyPairId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type GetApiKeyPairRequest$Outbound = {
|
|
17
|
+
api_key_pair_id: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const GetApiKeyPairRequest$outboundSchema: z.ZodType<
|
|
22
|
+
GetApiKeyPairRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
GetApiKeyPairRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
apiKeyPairId: z.string(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
apiKeyPairId: "api_key_pair_id",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function getApiKeyPairRequestToJSON(
|
|
34
|
+
getApiKeyPairRequest: GetApiKeyPairRequest,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
GetApiKeyPairRequest$outboundSchema.parse(getApiKeyPairRequest),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -31,6 +31,7 @@ export * from "./createthreedsconfiguration.js";
|
|
|
31
31
|
export * from "./createthreedsscenario.js";
|
|
32
32
|
export * from "./createtransaction.js";
|
|
33
33
|
export * from "./createtransactionrefund.js";
|
|
34
|
+
export * from "./deleteapikeypair.js";
|
|
34
35
|
export * from "./deletebuyer.js";
|
|
35
36
|
export * from "./deletebuyershippingdetails.js";
|
|
36
37
|
export * from "./deletecheckoutsession.js";
|
|
@@ -44,6 +45,7 @@ export * from "./deletethreedsconfiguration.js";
|
|
|
44
45
|
export * from "./deletethreedsscenario.js";
|
|
45
46
|
export * from "./editthreedsconfiguration.js";
|
|
46
47
|
export * from "./expirepaymentlink.js";
|
|
48
|
+
export * from "./getapikeypair.js";
|
|
47
49
|
export * from "./getbuyer.js";
|
|
48
50
|
export * from "./getbuyershippingdetails.js";
|
|
49
51
|
export * from "./getcheckoutsession.js";
|
|
@@ -64,6 +66,7 @@ export * from "./gettransactioncapture.js";
|
|
|
64
66
|
export * from "./gettransactionrefund.js";
|
|
65
67
|
export * from "./gettransactionsettlement.js";
|
|
66
68
|
export * from "./listallreportexecutions.js";
|
|
69
|
+
export * from "./listapikeypairs.js";
|
|
67
70
|
export * from "./listauditlogs.js";
|
|
68
71
|
export * from "./listbuyergiftcards.js";
|
|
69
72
|
export * from "./listbuyerpaymentmethods.js";
|
|
@@ -97,6 +100,7 @@ export * from "./reviewpazemobilesession.js";
|
|
|
97
100
|
export * from "./suspendpaymentmethodnetworktoken.js";
|
|
98
101
|
export * from "./synctransaction.js";
|
|
99
102
|
export * from "./unregisterdigitalwalletdomain.js";
|
|
103
|
+
export * from "./updateapikeypair.js";
|
|
100
104
|
export * from "./updatebuyer.js";
|
|
101
105
|
export * from "./updatebuyershippingdetails.js";
|
|
102
106
|
export * from "./updatecheckoutsession.js";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListApiKeyPairsRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* A pointer to the page of results to return.
|
|
15
|
+
*/
|
|
16
|
+
cursor?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The maximum number of items that are returned.
|
|
19
|
+
*/
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type ListApiKeyPairsResponse = {
|
|
24
|
+
result: components.CollectionAPIKeyPair;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type ListApiKeyPairsRequest$Outbound = {
|
|
29
|
+
cursor?: string | null | undefined;
|
|
30
|
+
limit: number;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const ListApiKeyPairsRequest$outboundSchema: z.ZodType<
|
|
35
|
+
ListApiKeyPairsRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
ListApiKeyPairsRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
cursor: z.nullable(z.string()).optional(),
|
|
40
|
+
limit: z.number().int().default(20),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function listApiKeyPairsRequestToJSON(
|
|
44
|
+
listApiKeyPairsRequest: ListApiKeyPairsRequest,
|
|
45
|
+
): string {
|
|
46
|
+
return JSON.stringify(
|
|
47
|
+
ListApiKeyPairsRequest$outboundSchema.parse(listApiKeyPairsRequest),
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const ListApiKeyPairsResponse$inboundSchema: z.ZodType<
|
|
53
|
+
ListApiKeyPairsResponse,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
unknown
|
|
56
|
+
> = z.object({
|
|
57
|
+
Result: components.CollectionAPIKeyPair$inboundSchema,
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
"Result": "result",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function listApiKeyPairsResponseFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<ListApiKeyPairsResponse, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => ListApiKeyPairsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'ListApiKeyPairsResponse' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type UpdateApiKeyPairRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the API key pair.
|
|
12
|
+
*/
|
|
13
|
+
apiKeyPairId: string;
|
|
14
|
+
apiKeyPairUpdate: components.APIKeyPairUpdate;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type UpdateApiKeyPairRequest$Outbound = {
|
|
19
|
+
api_key_pair_id: string;
|
|
20
|
+
APIKeyPairUpdate: components.APIKeyPairUpdate$Outbound;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const UpdateApiKeyPairRequest$outboundSchema: z.ZodType<
|
|
25
|
+
UpdateApiKeyPairRequest$Outbound,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
UpdateApiKeyPairRequest
|
|
28
|
+
> = z.object({
|
|
29
|
+
apiKeyPairId: z.string(),
|
|
30
|
+
apiKeyPairUpdate: components.APIKeyPairUpdate$outboundSchema,
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
apiKeyPairId: "api_key_pair_id",
|
|
34
|
+
apiKeyPairUpdate: "APIKeyPairUpdate",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function updateApiKeyPairRequestToJSON(
|
|
39
|
+
updateApiKeyPairRequest: UpdateApiKeyPairRequest,
|
|
40
|
+
): string {
|
|
41
|
+
return JSON.stringify(
|
|
42
|
+
UpdateApiKeyPairRequest$outboundSchema.parse(updateApiKeyPairRequest),
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { apiKeyPairsCreate } from "../funcs/apiKeyPairsCreate.js";
|
|
6
|
+
import { apiKeyPairsDelete } from "../funcs/apiKeyPairsDelete.js";
|
|
7
|
+
import { apiKeyPairsGet } from "../funcs/apiKeyPairsGet.js";
|
|
8
|
+
import { apiKeyPairsList } from "../funcs/apiKeyPairsList.js";
|
|
9
|
+
import { apiKeyPairsUpdate } from "../funcs/apiKeyPairsUpdate.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as components from "../models/components/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
15
|
+
|
|
16
|
+
export class ApiKeyPairs extends ClientSDK {
|
|
17
|
+
/**
|
|
18
|
+
* List all API key pairs
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* List all API key pairs.
|
|
22
|
+
*/
|
|
23
|
+
async list(
|
|
24
|
+
cursor?: string | null | undefined,
|
|
25
|
+
limit?: number | undefined,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): Promise<
|
|
28
|
+
PageIterator<operations.ListApiKeyPairsResponse, { cursor: string }>
|
|
29
|
+
> {
|
|
30
|
+
return unwrapResultIterator(apiKeyPairsList(
|
|
31
|
+
this,
|
|
32
|
+
cursor,
|
|
33
|
+
limit,
|
|
34
|
+
options,
|
|
35
|
+
));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Create an API key pair
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Create a new API key pair.
|
|
43
|
+
*/
|
|
44
|
+
async create(
|
|
45
|
+
request: components.APIKeyPairCreate,
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): Promise<components.APIKeyPair> {
|
|
48
|
+
return unwrapAsync(apiKeyPairsCreate(
|
|
49
|
+
this,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Get an API key pair
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* Fetches an API key pair by its ID.
|
|
60
|
+
*/
|
|
61
|
+
async get(
|
|
62
|
+
apiKeyPairId: string,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<components.APIKeyPair> {
|
|
65
|
+
return unwrapAsync(apiKeyPairsGet(
|
|
66
|
+
this,
|
|
67
|
+
apiKeyPairId,
|
|
68
|
+
options,
|
|
69
|
+
));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Update an API key pair
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* Updates an API key pair.
|
|
77
|
+
*/
|
|
78
|
+
async update(
|
|
79
|
+
apiKeyPairUpdate: components.APIKeyPairUpdate,
|
|
80
|
+
apiKeyPairId: string,
|
|
81
|
+
options?: RequestOptions,
|
|
82
|
+
): Promise<components.APIKeyPair> {
|
|
83
|
+
return unwrapAsync(apiKeyPairsUpdate(
|
|
84
|
+
this,
|
|
85
|
+
apiKeyPairUpdate,
|
|
86
|
+
apiKeyPairId,
|
|
87
|
+
options,
|
|
88
|
+
));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Delete an API key pair
|
|
93
|
+
*
|
|
94
|
+
* @remarks
|
|
95
|
+
* Permanently removes an API key pair.
|
|
96
|
+
*/
|
|
97
|
+
async delete(
|
|
98
|
+
apiKeyPairId: string,
|
|
99
|
+
options?: RequestOptions,
|
|
100
|
+
): Promise<void> {
|
|
101
|
+
return unwrapAsync(apiKeyPairsDelete(
|
|
102
|
+
this,
|
|
103
|
+
apiKeyPairId,
|
|
104
|
+
options,
|
|
105
|
+
));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -53,7 +53,7 @@ export class MerchantAccounts extends ClientSDK {
|
|
|
53
53
|
async create(
|
|
54
54
|
request: components.MerchantAccountCreate,
|
|
55
55
|
options?: RequestOptions,
|
|
56
|
-
): Promise<components.
|
|
56
|
+
): Promise<components.ApiRoutersMerchantAccountsSchemasMerchantAccount> {
|
|
57
57
|
return unwrapAsync(merchantAccountsCreate(
|
|
58
58
|
this,
|
|
59
59
|
request,
|
|
@@ -70,7 +70,7 @@ export class MerchantAccounts extends ClientSDK {
|
|
|
70
70
|
async get(
|
|
71
71
|
merchantAccountId: string,
|
|
72
72
|
options?: RequestOptions,
|
|
73
|
-
): Promise<components.
|
|
73
|
+
): Promise<components.ApiRoutersMerchantAccountsSchemasMerchantAccount> {
|
|
74
74
|
return unwrapAsync(merchantAccountsGet(
|
|
75
75
|
this,
|
|
76
76
|
merchantAccountId,
|
|
@@ -88,7 +88,7 @@ export class MerchantAccounts extends ClientSDK {
|
|
|
88
88
|
merchantAccountUpdate: components.MerchantAccountUpdate,
|
|
89
89
|
merchantAccountId: string,
|
|
90
90
|
options?: RequestOptions,
|
|
91
|
-
): Promise<components.
|
|
91
|
+
): Promise<components.ApiRoutersMerchantAccountsSchemasMerchantAccount> {
|
|
92
92
|
return unwrapAsync(merchantAccountsUpdate(
|
|
93
93
|
this,
|
|
94
94
|
merchantAccountUpdate,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
6
|
import { AccountUpdater } from "./accountupdater.js";
|
|
7
|
+
import { ApiKeyPairs } from "./apikeypairs.js";
|
|
7
8
|
import { AuditLogs } from "./auditlogs.js";
|
|
8
9
|
import { Buyers } from "./buyers.js";
|
|
9
10
|
import { CardSchemeDefinitions } from "./cardschemedefinitions.js";
|
|
@@ -29,6 +30,11 @@ export class Gr4vy extends ClientSDK {
|
|
|
29
30
|
return (this._accountUpdater ??= new AccountUpdater(this._options));
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
private _apiKeyPairs?: ApiKeyPairs;
|
|
34
|
+
get apiKeyPairs(): ApiKeyPairs {
|
|
35
|
+
return (this._apiKeyPairs ??= new ApiKeyPairs(this._options));
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
private _buyers?: Buyers;
|
|
33
39
|
get buyers(): Buyers {
|
|
34
40
|
return (this._buyers ??= new Buyers(this._options));
|