@gr4vy/sdk 2.0.3 → 2.0.5
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/achbankpaymentmethodcreate.d.ts +79 -0
- package/models/components/achbankpaymentmethodcreate.d.ts.map +1 -0
- package/models/components/achbankpaymentmethodcreate.js +81 -0
- package/models/components/achbankpaymentmethodcreate.js.map +1 -0
- package/models/components/bacsbankpaymentmethodcreate.d.ts +55 -0
- package/models/components/bacsbankpaymentmethodcreate.d.ts.map +1 -0
- package/models/components/bacsbankpaymentmethodcreate.js +67 -0
- package/models/components/bacsbankpaymentmethodcreate.js.map +1 -0
- package/models/components/bankaccountholder.d.ts +25 -0
- package/models/components/bankaccountholder.d.ts.map +1 -0
- package/models/components/bankaccountholder.js +58 -0
- package/models/components/bankaccountholder.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/sepabankpaymentmethodcreate.d.ts +55 -0
- package/models/components/sepabankpaymentmethodcreate.d.ts.map +1 -0
- package/models/components/sepabankpaymentmethodcreate.js +67 -0
- package/models/components/sepabankpaymentmethodcreate.js.map +1 -0
- package/models/components/threedsecurescenariooutcome.d.ts +2 -2
- package/models/components/threedsecurescenariooutcome.d.ts.map +1 -1
- package/models/components/threedsecurescenariooutcome.js +2 -2
- package/models/components/threedsecurescenariooutcome.js.map +1 -1
- package/models/operations/createpaymentmethod.d.ts +4 -4
- package/models/operations/createpaymentmethod.d.ts.map +1 -1
- package/models/operations/createpaymentmethod.js +6 -0
- package/models/operations/createpaymentmethod.js.map +1 -1
- package/models/operations/listbuyerpaymentmethods.d.ts +18 -3
- package/models/operations/listbuyerpaymentmethods.d.ts.map +1 -1
- package/models/operations/listbuyerpaymentmethods.js +14 -2
- package/models/operations/listbuyerpaymentmethods.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/achbankpaymentmethodcreate.ts +130 -0
- package/src/models/components/bacsbankpaymentmethodcreate.ts +97 -0
- package/src/models/components/bankaccountholder.ts +53 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/sepabankpaymentmethodcreate.ts +97 -0
- package/src/models/components/threedsecurescenariooutcome.ts +4 -4
- package/src/models/operations/createpaymentmethod.ts +18 -0
- package/src/models/operations/listbuyerpaymentmethods.ts +22 -4
|
@@ -0,0 +1,67 @@
|
|
|
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.SEPABankPaymentMethodCreate$outboundSchema = void 0;
|
|
40
|
+
exports.sepaBankPaymentMethodCreateToJSON = sepaBankPaymentMethodCreateToJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const bankaccountholder_js_1 = require("./bankaccountholder.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.SEPABankPaymentMethodCreate$outboundSchema = z.object({
|
|
46
|
+
method: z.literal("bank").default("bank"),
|
|
47
|
+
accountHolder: bankaccountholder_js_1.BankAccountHolder$outboundSchema,
|
|
48
|
+
buyerId: z.nullable(z.string()).optional(),
|
|
49
|
+
buyerExternalIdentifier: z.nullable(z.string()).optional(),
|
|
50
|
+
externalIdentifier: z.nullable(z.string()).optional(),
|
|
51
|
+
scheme: z.literal("sepa").default("sepa"),
|
|
52
|
+
accountNumber: z.string(),
|
|
53
|
+
routingNumber: z.nullable(z.string()).optional(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return (0, primitives_js_1.remap)(v, {
|
|
56
|
+
accountHolder: "account_holder",
|
|
57
|
+
buyerId: "buyer_id",
|
|
58
|
+
buyerExternalIdentifier: "buyer_external_identifier",
|
|
59
|
+
externalIdentifier: "external_identifier",
|
|
60
|
+
accountNumber: "account_number",
|
|
61
|
+
routingNumber: "routing_number",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
function sepaBankPaymentMethodCreateToJSON(sepaBankPaymentMethodCreate) {
|
|
65
|
+
return JSON.stringify(exports.SEPABankPaymentMethodCreate$outboundSchema.parse(sepaBankPaymentMethodCreate));
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=sepabankpaymentmethodcreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sepabankpaymentmethodcreate.js","sourceRoot":"","sources":["../../src/models/components/sepabankpaymentmethodcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFH,8EAQC;AA5FD,0CAA4B;AAC5B,2DAA0D;AAC1D,iEAIgC;AAqDhC,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAe,CAAC;IAClD,aAAa,EAAE,uDAAgC;IAC/C,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,uBAAuB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1D,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAe,CAAC;IAClD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;QAC/B,OAAO,EAAE,UAAU;QACnB,uBAAuB,EAAE,2BAA2B;QACpD,kBAAkB,EAAE,qBAAqB;QACzC,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -7,7 +7,7 @@ export type ThreeDSecureScenarioOutcome = {
|
|
|
7
7
|
/**
|
|
8
8
|
* The version of 3DS which will be simulated.
|
|
9
9
|
*/
|
|
10
|
-
version
|
|
10
|
+
version?: string | null | undefined;
|
|
11
11
|
authentication: ThreeDSecureScenarioOutcomeAuthentication;
|
|
12
12
|
/**
|
|
13
13
|
* 3DS result value. Required if authentication status is "C".
|
|
@@ -18,7 +18,7 @@ export type ThreeDSecureScenarioOutcome = {
|
|
|
18
18
|
export declare const ThreeDSecureScenarioOutcome$inboundSchema: z.ZodType<ThreeDSecureScenarioOutcome, z.ZodTypeDef, unknown>;
|
|
19
19
|
/** @internal */
|
|
20
20
|
export type ThreeDSecureScenarioOutcome$Outbound = {
|
|
21
|
-
version
|
|
21
|
+
version?: string | null | undefined;
|
|
22
22
|
authentication: ThreeDSecureScenarioOutcomeAuthentication$Outbound;
|
|
23
23
|
result?: ThreeDSecureScenarioOutcomeResult$Outbound | null | undefined;
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threedsecurescenariooutcome.d.ts","sourceRoot":"","sources":["../../src/models/components/threedsecurescenariooutcome.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,yCAAyC,EAEzC,kDAAkD,EAEnD,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,iCAAiC,EAEjC,0CAA0C,EAE3C,MAAM,wCAAwC,CAAC;AAEhD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"threedsecurescenariooutcome.d.ts","sourceRoot":"","sources":["../../src/models/components/threedsecurescenariooutcome.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,yCAAyC,EAEzC,kDAAkD,EAEnD,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,iCAAiC,EAEjC,0CAA0C,EAE3C,MAAM,wCAAwC,CAAC;AAEhD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,cAAc,EAAE,yCAAyC,CAAC;IAC1D;;OAEG;IACH,MAAM,CAAC,EAAE,iCAAiC,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,cAAc,EAAE,kDAAkD,CAAC;IACnE,MAAM,CAAC,EAAE,0CAA0C,GAAG,IAAI,GAAG,SAAS,CAAC;CACxE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAM3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AACD,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -45,14 +45,14 @@ const threedsecurescenariooutcomeauthentication_js_1 = require("./threedsecuresc
|
|
|
45
45
|
const threedsecurescenariooutcomeresult_js_1 = require("./threedsecurescenariooutcomeresult.js");
|
|
46
46
|
/** @internal */
|
|
47
47
|
exports.ThreeDSecureScenarioOutcome$inboundSchema = z.object({
|
|
48
|
-
version: z.string(),
|
|
48
|
+
version: z.nullable(z.string()).optional(),
|
|
49
49
|
authentication: threedsecurescenariooutcomeauthentication_js_1.ThreeDSecureScenarioOutcomeAuthentication$inboundSchema,
|
|
50
50
|
result: z.nullable(threedsecurescenariooutcomeresult_js_1.ThreeDSecureScenarioOutcomeResult$inboundSchema)
|
|
51
51
|
.optional(),
|
|
52
52
|
});
|
|
53
53
|
/** @internal */
|
|
54
54
|
exports.ThreeDSecureScenarioOutcome$outboundSchema = z.object({
|
|
55
|
-
version: z.string(),
|
|
55
|
+
version: z.nullable(z.string()).optional(),
|
|
56
56
|
authentication: threedsecurescenariooutcomeauthentication_js_1.ThreeDSecureScenarioOutcomeAuthentication$outboundSchema,
|
|
57
57
|
result: z.nullable(threedsecurescenariooutcomeresult_js_1.ThreeDSecureScenarioOutcomeResult$outboundSchema)
|
|
58
58
|
.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threedsecurescenariooutcome.js","sourceRoot":"","sources":["../../src/models/components/threedsecurescenariooutcome.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DH,8EAQC;AACD,kFAQC;AA5ED,0CAA4B;AAC5B,qDAAiD;AAGjD,iHAKwD;AACxD,iGAKgD;AAchD,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"threedsecurescenariooutcome.js","sourceRoot":"","sources":["../../src/models/components/threedsecurescenariooutcome.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DH,8EAQC;AACD,kFAQC;AA5ED,0CAA4B;AAC5B,qDAAiD;AAGjD,iHAKwD;AACxD,iGAKgD;AAchD,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,cAAc,EAAE,sGAAuD;IACvE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,sFAA+C,CAAC;SAChE,QAAQ,EAAE;CACd,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,cAAc,EAAE,uGAAwD;IACxE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,uFAAgD,CAAC;SACjE,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -3,23 +3,23 @@ import * as components from "../components/index.js";
|
|
|
3
3
|
export type CreatePaymentMethodGlobals = {
|
|
4
4
|
merchantAccountId?: string | undefined;
|
|
5
5
|
};
|
|
6
|
-
export type CreatePaymentMethodBody = components.RedirectPaymentMethodCreate | components.CardPaymentMethodCreate | components.CheckoutSessionPaymentMethodCreate | components.PlaidPaymentMethodCreate;
|
|
6
|
+
export type CreatePaymentMethodBody = components.RedirectPaymentMethodCreate | components.ACHBankPaymentMethodCreate | components.BACSBankPaymentMethodCreate | components.CardPaymentMethodCreate | components.SEPABankPaymentMethodCreate | components.CheckoutSessionPaymentMethodCreate | components.PlaidPaymentMethodCreate;
|
|
7
7
|
export type CreatePaymentMethodRequest = {
|
|
8
8
|
/**
|
|
9
9
|
* The ID of the merchant account to use for this request.
|
|
10
10
|
*/
|
|
11
11
|
merchantAccountId?: string | null | undefined;
|
|
12
|
-
requestBody: components.RedirectPaymentMethodCreate | components.CardPaymentMethodCreate | components.CheckoutSessionPaymentMethodCreate | components.PlaidPaymentMethodCreate;
|
|
12
|
+
requestBody: components.RedirectPaymentMethodCreate | components.ACHBankPaymentMethodCreate | components.BACSBankPaymentMethodCreate | components.CardPaymentMethodCreate | components.SEPABankPaymentMethodCreate | components.CheckoutSessionPaymentMethodCreate | components.PlaidPaymentMethodCreate;
|
|
13
13
|
};
|
|
14
14
|
/** @internal */
|
|
15
|
-
export type CreatePaymentMethodBody$Outbound = components.RedirectPaymentMethodCreate$Outbound | components.CardPaymentMethodCreate$Outbound | components.CheckoutSessionPaymentMethodCreate$Outbound | components.PlaidPaymentMethodCreate$Outbound;
|
|
15
|
+
export type CreatePaymentMethodBody$Outbound = components.RedirectPaymentMethodCreate$Outbound | components.ACHBankPaymentMethodCreate$Outbound | components.BACSBankPaymentMethodCreate$Outbound | components.CardPaymentMethodCreate$Outbound | components.SEPABankPaymentMethodCreate$Outbound | components.CheckoutSessionPaymentMethodCreate$Outbound | components.PlaidPaymentMethodCreate$Outbound;
|
|
16
16
|
/** @internal */
|
|
17
17
|
export declare const CreatePaymentMethodBody$outboundSchema: z.ZodType<CreatePaymentMethodBody$Outbound, z.ZodTypeDef, CreatePaymentMethodBody>;
|
|
18
18
|
export declare function createPaymentMethodBodyToJSON(createPaymentMethodBody: CreatePaymentMethodBody): string;
|
|
19
19
|
/** @internal */
|
|
20
20
|
export type CreatePaymentMethodRequest$Outbound = {
|
|
21
21
|
merchantAccountId?: string | null | undefined;
|
|
22
|
-
RequestBody: components.RedirectPaymentMethodCreate$Outbound | components.CardPaymentMethodCreate$Outbound | components.CheckoutSessionPaymentMethodCreate$Outbound | components.PlaidPaymentMethodCreate$Outbound;
|
|
22
|
+
RequestBody: components.RedirectPaymentMethodCreate$Outbound | components.ACHBankPaymentMethodCreate$Outbound | components.BACSBankPaymentMethodCreate$Outbound | components.CardPaymentMethodCreate$Outbound | components.SEPABankPaymentMethodCreate$Outbound | components.CheckoutSessionPaymentMethodCreate$Outbound | components.PlaidPaymentMethodCreate$Outbound;
|
|
23
23
|
};
|
|
24
24
|
/** @internal */
|
|
25
25
|
export declare const CreatePaymentMethodRequest$outboundSchema: z.ZodType<CreatePaymentMethodRequest$Outbound, z.ZodTypeDef, CreatePaymentMethodRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createpaymentmethod.d.ts","sourceRoot":"","sources":["../../src/models/operations/createpaymentmethod.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,0BAA0B,GAAG;IACvC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAC/B,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,uBAAuB,GAClC,UAAU,CAAC,kCAAkC,GAC7C,UAAU,CAAC,wBAAwB,CAAC;AAExC,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,WAAW,EACP,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,uBAAuB,GAClC,UAAU,CAAC,kCAAkC,GAC7C,UAAU,CAAC,wBAAwB,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GACxC,UAAU,CAAC,oCAAoC,GAC/C,UAAU,CAAC,gCAAgC,GAC3C,UAAU,CAAC,2CAA2C,GACtD,UAAU,CAAC,iCAAiC,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,
|
|
1
|
+
{"version":3,"file":"createpaymentmethod.d.ts","sourceRoot":"","sources":["../../src/models/operations/createpaymentmethod.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,0BAA0B,GAAG;IACvC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAC/B,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,0BAA0B,GACrC,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,uBAAuB,GAClC,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,kCAAkC,GAC7C,UAAU,CAAC,wBAAwB,CAAC;AAExC,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,WAAW,EACP,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,0BAA0B,GACrC,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,uBAAuB,GAClC,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,kCAAkC,GAC7C,UAAU,CAAC,wBAAwB,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GACxC,UAAU,CAAC,oCAAoC,GAC/C,UAAU,CAAC,mCAAmC,GAC9C,UAAU,CAAC,oCAAoC,GAC/C,UAAU,CAAC,gCAAgC,GAC3C,UAAU,CAAC,oCAAoC,GAC/C,UAAU,CAAC,2CAA2C,GACtD,UAAU,CAAC,iCAAiC,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CASvB,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,WAAW,EACP,UAAU,CAAC,oCAAoC,GAC/C,UAAU,CAAC,mCAAmC,GAC9C,UAAU,CAAC,oCAAoC,GAC/C,UAAU,CAAC,gCAAgC,GAC3C,UAAU,CAAC,oCAAoC,GAC/C,UAAU,CAAC,2CAA2C,GACtD,UAAU,CAAC,iCAAiC,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAgB1B,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR"}
|
|
@@ -45,7 +45,10 @@ const components = __importStar(require("../components/index.js"));
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
exports.CreatePaymentMethodBody$outboundSchema = z.union([
|
|
47
47
|
components.RedirectPaymentMethodCreate$outboundSchema,
|
|
48
|
+
components.ACHBankPaymentMethodCreate$outboundSchema,
|
|
49
|
+
components.BACSBankPaymentMethodCreate$outboundSchema,
|
|
48
50
|
components.CardPaymentMethodCreate$outboundSchema,
|
|
51
|
+
components.SEPABankPaymentMethodCreate$outboundSchema,
|
|
49
52
|
components.CheckoutSessionPaymentMethodCreate$outboundSchema,
|
|
50
53
|
components.PlaidPaymentMethodCreate$outboundSchema,
|
|
51
54
|
]);
|
|
@@ -57,7 +60,10 @@ exports.CreatePaymentMethodRequest$outboundSchema = z.object({
|
|
|
57
60
|
merchantAccountId: z.nullable(z.string()).optional(),
|
|
58
61
|
requestBody: z.union([
|
|
59
62
|
components.RedirectPaymentMethodCreate$outboundSchema,
|
|
63
|
+
components.ACHBankPaymentMethodCreate$outboundSchema,
|
|
64
|
+
components.BACSBankPaymentMethodCreate$outboundSchema,
|
|
60
65
|
components.CardPaymentMethodCreate$outboundSchema,
|
|
66
|
+
components.SEPABankPaymentMethodCreate$outboundSchema,
|
|
61
67
|
components.CheckoutSessionPaymentMethodCreate$outboundSchema,
|
|
62
68
|
components.PlaidPaymentMethodCreate$outboundSchema,
|
|
63
69
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createpaymentmethod.js","sourceRoot":"","sources":["../../src/models/operations/createpaymentmethod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createpaymentmethod.js","sourceRoot":"","sources":["../../src/models/operations/createpaymentmethod.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,sEAMC;AAqCD,4EAMC;AA1GD,0CAA4B;AAC5B,2DAA0D;AAC1D,mEAAqD;AAwCrD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,0CAA0C;IACrD,UAAU,CAAC,yCAAyC;IACpD,UAAU,CAAC,0CAA0C;IACrD,UAAU,CAAC,sCAAsC;IACjD,UAAU,CAAC,0CAA0C;IACrD,UAAU,CAAC,iDAAiD;IAC5D,UAAU,CAAC,uCAAuC;CACnD,CAAC,CAAC;AAEH,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAeD,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;QACnB,UAAU,CAAC,0CAA0C;QACrD,UAAU,CAAC,yCAAyC;QACpD,UAAU,CAAC,0CAA0C;QACrD,UAAU,CAAC,sCAAsC;QACjD,UAAU,CAAC,0CAA0C;QACrD,UAAU,CAAC,iDAAiD;QAC5D,UAAU,CAAC,uCAAuC;KACnD,CAAC;CACH,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import { OpenEnum } from "../../types/enums.js";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
3
3
|
export type ListBuyerPaymentMethodsGlobals = {
|
|
4
4
|
merchantAccountId?: string | undefined;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* The field to sort the payment methods by.
|
|
8
|
+
*/
|
|
9
|
+
export declare const SortBy: {
|
|
10
|
+
readonly LastUsedAt: "last_used_at";
|
|
11
|
+
readonly UsageCount: "usage_count";
|
|
12
|
+
readonly CitLastUsedAt: "cit_last_used_at";
|
|
13
|
+
readonly CitUsageCount: "cit_usage_count";
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The field to sort the payment methods by.
|
|
17
|
+
*/
|
|
18
|
+
export type SortBy = ClosedEnum<typeof SortBy>;
|
|
6
19
|
/**
|
|
7
20
|
* The direction to sort the payment methods in.
|
|
8
21
|
*/
|
|
@@ -26,7 +39,7 @@ export type ListBuyerPaymentMethodsRequest = {
|
|
|
26
39
|
/**
|
|
27
40
|
* The field to sort the payment methods by.
|
|
28
41
|
*/
|
|
29
|
-
sortBy?:
|
|
42
|
+
sortBy?: SortBy | null | undefined;
|
|
30
43
|
/**
|
|
31
44
|
* The direction to sort the payment methods in.
|
|
32
45
|
*/
|
|
@@ -45,12 +58,14 @@ export type ListBuyerPaymentMethodsRequest = {
|
|
|
45
58
|
merchantAccountId?: string | null | undefined;
|
|
46
59
|
};
|
|
47
60
|
/** @internal */
|
|
61
|
+
export declare const SortBy$outboundSchema: z.ZodNativeEnum<typeof SortBy>;
|
|
62
|
+
/** @internal */
|
|
48
63
|
export declare const OrderBy$outboundSchema: z.ZodType<string, z.ZodTypeDef, OrderBy>;
|
|
49
64
|
/** @internal */
|
|
50
65
|
export type ListBuyerPaymentMethodsRequest$Outbound = {
|
|
51
66
|
buyer_id?: string | null | undefined;
|
|
52
67
|
buyer_external_identifier?: string | null | undefined;
|
|
53
|
-
sort_by?:
|
|
68
|
+
sort_by?: string | null | undefined;
|
|
54
69
|
order_by: string;
|
|
55
70
|
country?: string | null | undefined;
|
|
56
71
|
currency?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listbuyerpaymentmethods.d.ts","sourceRoot":"","sources":["../../src/models/operations/listbuyerpaymentmethods.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"listbuyerpaymentmethods.d.ts","sourceRoot":"","sources":["../../src/models/operations/listbuyerpaymentmethods.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;CAKT,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,OAAO;;;CAGV,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAE/C,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,MAAM,CAC5C,CAAC;AAEtB,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CACzC,CAAC;AAEpC,gBAAgB;AAChB,MAAM,MAAM,uCAAuC,GAAG;IACpD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,8BAA8B,CAgB9B,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR"}
|
|
@@ -36,11 +36,20 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ListBuyerPaymentMethodsRequest$outboundSchema = exports.OrderBy$outboundSchema = exports.OrderBy = void 0;
|
|
39
|
+
exports.ListBuyerPaymentMethodsRequest$outboundSchema = exports.OrderBy$outboundSchema = exports.SortBy$outboundSchema = exports.OrderBy = exports.SortBy = void 0;
|
|
40
40
|
exports.listBuyerPaymentMethodsRequestToJSON = listBuyerPaymentMethodsRequestToJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
43
|
const openEnums = __importStar(require("../../types/enums.js"));
|
|
44
|
+
/**
|
|
45
|
+
* The field to sort the payment methods by.
|
|
46
|
+
*/
|
|
47
|
+
exports.SortBy = {
|
|
48
|
+
LastUsedAt: "last_used_at",
|
|
49
|
+
UsageCount: "usage_count",
|
|
50
|
+
CitLastUsedAt: "cit_last_used_at",
|
|
51
|
+
CitUsageCount: "cit_usage_count",
|
|
52
|
+
};
|
|
44
53
|
/**
|
|
45
54
|
* The direction to sort the payment methods in.
|
|
46
55
|
*/
|
|
@@ -49,12 +58,15 @@ exports.OrderBy = {
|
|
|
49
58
|
Desc: "desc",
|
|
50
59
|
};
|
|
51
60
|
/** @internal */
|
|
61
|
+
exports.SortBy$outboundSchema = z
|
|
62
|
+
.nativeEnum(exports.SortBy);
|
|
63
|
+
/** @internal */
|
|
52
64
|
exports.OrderBy$outboundSchema = openEnums.outboundSchema(exports.OrderBy);
|
|
53
65
|
/** @internal */
|
|
54
66
|
exports.ListBuyerPaymentMethodsRequest$outboundSchema = z.object({
|
|
55
67
|
buyerId: z.nullable(z.string()).optional(),
|
|
56
68
|
buyerExternalIdentifier: z.nullable(z.string()).optional(),
|
|
57
|
-
sortBy: z.nullable(
|
|
69
|
+
sortBy: z.nullable(exports.SortBy$outboundSchema).optional(),
|
|
58
70
|
orderBy: exports.OrderBy$outboundSchema.default("desc"),
|
|
59
71
|
country: z.nullable(z.string()).optional(),
|
|
60
72
|
currency: z.nullable(z.string()).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listbuyerpaymentmethods.js","sourceRoot":"","sources":["../../src/models/operations/listbuyerpaymentmethods.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"listbuyerpaymentmethods.js","sourceRoot":"","sources":["../../src/models/operations/listbuyerpaymentmethods.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GH,oFAQC;AAnHD,0CAA4B;AAC5B,2DAA0D;AAC1D,gEAAkD;AAOlD;;GAEG;AACU,QAAA,MAAM,GAAG;IACpB,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,aAAa;IACzB,aAAa,EAAE,kBAAkB;IACjC,aAAa,EAAE,iBAAiB;CACxB,CAAC;AAMX;;GAEG;AACU,QAAA,OAAO,GAAG;IACrB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AAqCX,gBAAgB;AACH,QAAA,qBAAqB,GAAmC,CAAC;KACnE,UAAU,CAAC,cAAM,CAAC,CAAC;AAEtB,gBAAgB;AACH,QAAA,sBAAsB,GACjC,SAAS,CAAC,cAAc,CAAC,eAAO,CAAC,CAAC;AAapC,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,uBAAuB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1D,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,6BAAqB,CAAC,CAAC,QAAQ,EAAE;IACpD,OAAO,EAAE,8BAAsB,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,UAAU;QACnB,uBAAuB,EAAE,2BAA2B;QACpD,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,oCAAoC,CAClD,8BAA8D;IAE9D,OAAO,IAAI,CAAC,SAAS,CACnB,qDAA6C,CAAC,KAAK,CACjD,8BAA8B,CAC/B,CACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
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: "2.0.
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 2.0.
|
|
80
|
+
sdkVersion: "2.0.5",
|
|
81
|
+
genVersion: "2.865.2",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 2.0.5 2.865.2 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
|
@@ -0,0 +1,130 @@
|
|
|
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 openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import {
|
|
10
|
+
BankAccountHolder,
|
|
11
|
+
BankAccountHolder$Outbound,
|
|
12
|
+
BankAccountHolder$outboundSchema,
|
|
13
|
+
} from "./bankaccountholder.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specify whether this is a `checking` or `savings` account
|
|
17
|
+
*/
|
|
18
|
+
export const AccountType = {
|
|
19
|
+
Checking: "checking",
|
|
20
|
+
Savings: "savings",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* Specify whether this is a `checking` or `savings` account
|
|
24
|
+
*/
|
|
25
|
+
export type AccountType = OpenEnum<typeof AccountType>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* ACH Bank Payment Method
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
*
|
|
32
|
+
* Bank Payment Method for ACH bank accounts.
|
|
33
|
+
*/
|
|
34
|
+
export type ACHBankPaymentMethodCreate = {
|
|
35
|
+
/**
|
|
36
|
+
* Always `bank`.
|
|
37
|
+
*/
|
|
38
|
+
method?: "bank" | undefined;
|
|
39
|
+
accountHolder: BankAccountHolder;
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the buyer to attach the method to.
|
|
42
|
+
*/
|
|
43
|
+
buyerId?: string | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The merchant reference for this payment method.
|
|
46
|
+
*/
|
|
47
|
+
buyerExternalIdentifier?: string | null | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* The merchant identifier for this payment method.
|
|
50
|
+
*/
|
|
51
|
+
externalIdentifier?: string | null | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Always `ach`.
|
|
54
|
+
*/
|
|
55
|
+
scheme?: "ach" | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* The account number for this ACH bank account
|
|
58
|
+
*/
|
|
59
|
+
accountNumber: string;
|
|
60
|
+
/**
|
|
61
|
+
* The routing number for this ACH bank account
|
|
62
|
+
*/
|
|
63
|
+
routingNumber: string;
|
|
64
|
+
/**
|
|
65
|
+
* Whether the account number is tokenized
|
|
66
|
+
*/
|
|
67
|
+
isTokenized?: boolean | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Specify whether this is a `checking` or `savings` account
|
|
70
|
+
*/
|
|
71
|
+
accountType: AccountType;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const AccountType$outboundSchema: z.ZodType<
|
|
76
|
+
string,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
AccountType
|
|
79
|
+
> = openEnums.outboundSchema(AccountType);
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export type ACHBankPaymentMethodCreate$Outbound = {
|
|
83
|
+
method: "bank";
|
|
84
|
+
account_holder: BankAccountHolder$Outbound;
|
|
85
|
+
buyer_id?: string | null | undefined;
|
|
86
|
+
buyer_external_identifier?: string | null | undefined;
|
|
87
|
+
external_identifier?: string | null | undefined;
|
|
88
|
+
scheme: "ach";
|
|
89
|
+
account_number: string;
|
|
90
|
+
routing_number: string;
|
|
91
|
+
is_tokenized: boolean;
|
|
92
|
+
account_type: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const ACHBankPaymentMethodCreate$outboundSchema: z.ZodType<
|
|
97
|
+
ACHBankPaymentMethodCreate$Outbound,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
ACHBankPaymentMethodCreate
|
|
100
|
+
> = z.object({
|
|
101
|
+
method: z.literal("bank").default("bank" as const),
|
|
102
|
+
accountHolder: BankAccountHolder$outboundSchema,
|
|
103
|
+
buyerId: z.nullable(z.string()).optional(),
|
|
104
|
+
buyerExternalIdentifier: z.nullable(z.string()).optional(),
|
|
105
|
+
externalIdentifier: z.nullable(z.string()).optional(),
|
|
106
|
+
scheme: z.literal("ach").default("ach" as const),
|
|
107
|
+
accountNumber: z.string(),
|
|
108
|
+
routingNumber: z.string(),
|
|
109
|
+
isTokenized: z.boolean().default(false),
|
|
110
|
+
accountType: AccountType$outboundSchema,
|
|
111
|
+
}).transform((v) => {
|
|
112
|
+
return remap$(v, {
|
|
113
|
+
accountHolder: "account_holder",
|
|
114
|
+
buyerId: "buyer_id",
|
|
115
|
+
buyerExternalIdentifier: "buyer_external_identifier",
|
|
116
|
+
externalIdentifier: "external_identifier",
|
|
117
|
+
accountNumber: "account_number",
|
|
118
|
+
routingNumber: "routing_number",
|
|
119
|
+
isTokenized: "is_tokenized",
|
|
120
|
+
accountType: "account_type",
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
export function achBankPaymentMethodCreateToJSON(
|
|
125
|
+
achBankPaymentMethodCreate: ACHBankPaymentMethodCreate,
|
|
126
|
+
): string {
|
|
127
|
+
return JSON.stringify(
|
|
128
|
+
ACHBankPaymentMethodCreate$outboundSchema.parse(achBankPaymentMethodCreate),
|
|
129
|
+
);
|
|
130
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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 {
|
|
8
|
+
BankAccountHolder,
|
|
9
|
+
BankAccountHolder$Outbound,
|
|
10
|
+
BankAccountHolder$outboundSchema,
|
|
11
|
+
} from "./bankaccountholder.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* BACS Bank Payment Method
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*
|
|
18
|
+
* Bank Payment Method for BACS bank accounts.
|
|
19
|
+
*/
|
|
20
|
+
export type BACSBankPaymentMethodCreate = {
|
|
21
|
+
/**
|
|
22
|
+
* Always `bank`.
|
|
23
|
+
*/
|
|
24
|
+
method?: "bank" | undefined;
|
|
25
|
+
accountHolder: BankAccountHolder;
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the buyer to attach the method to.
|
|
28
|
+
*/
|
|
29
|
+
buyerId?: string | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The merchant reference for this payment method.
|
|
32
|
+
*/
|
|
33
|
+
buyerExternalIdentifier?: string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The merchant identifier for this payment method.
|
|
36
|
+
*/
|
|
37
|
+
externalIdentifier?: string | null | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Always `bacs`.
|
|
40
|
+
*/
|
|
41
|
+
scheme?: "bacs" | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The account number for this BACS bank account
|
|
44
|
+
*/
|
|
45
|
+
accountNumber: string;
|
|
46
|
+
/**
|
|
47
|
+
* The sort code for this BACS bank account
|
|
48
|
+
*/
|
|
49
|
+
routingNumber: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type BACSBankPaymentMethodCreate$Outbound = {
|
|
54
|
+
method: "bank";
|
|
55
|
+
account_holder: BankAccountHolder$Outbound;
|
|
56
|
+
buyer_id?: string | null | undefined;
|
|
57
|
+
buyer_external_identifier?: string | null | undefined;
|
|
58
|
+
external_identifier?: string | null | undefined;
|
|
59
|
+
scheme: "bacs";
|
|
60
|
+
account_number: string;
|
|
61
|
+
routing_number: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const BACSBankPaymentMethodCreate$outboundSchema: z.ZodType<
|
|
66
|
+
BACSBankPaymentMethodCreate$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
BACSBankPaymentMethodCreate
|
|
69
|
+
> = z.object({
|
|
70
|
+
method: z.literal("bank").default("bank" as const),
|
|
71
|
+
accountHolder: BankAccountHolder$outboundSchema,
|
|
72
|
+
buyerId: z.nullable(z.string()).optional(),
|
|
73
|
+
buyerExternalIdentifier: z.nullable(z.string()).optional(),
|
|
74
|
+
externalIdentifier: z.nullable(z.string()).optional(),
|
|
75
|
+
scheme: z.literal("bacs").default("bacs" as const),
|
|
76
|
+
accountNumber: z.string(),
|
|
77
|
+
routingNumber: z.string(),
|
|
78
|
+
}).transform((v) => {
|
|
79
|
+
return remap$(v, {
|
|
80
|
+
accountHolder: "account_holder",
|
|
81
|
+
buyerId: "buyer_id",
|
|
82
|
+
buyerExternalIdentifier: "buyer_external_identifier",
|
|
83
|
+
externalIdentifier: "external_identifier",
|
|
84
|
+
accountNumber: "account_number",
|
|
85
|
+
routingNumber: "routing_number",
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export function bacsBankPaymentMethodCreateToJSON(
|
|
90
|
+
bacsBankPaymentMethodCreate: BACSBankPaymentMethodCreate,
|
|
91
|
+
): string {
|
|
92
|
+
return JSON.stringify(
|
|
93
|
+
BACSBankPaymentMethodCreate$outboundSchema.parse(
|
|
94
|
+
bacsBankPaymentMethodCreate,
|
|
95
|
+
),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 BankAccountHolder = {
|
|
9
|
+
/**
|
|
10
|
+
* The account holder's first name
|
|
11
|
+
*/
|
|
12
|
+
firstName?: string | null | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The account holder's last name
|
|
15
|
+
*/
|
|
16
|
+
lastName?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The account holder's company name
|
|
19
|
+
*/
|
|
20
|
+
companyName?: string | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type BankAccountHolder$Outbound = {
|
|
25
|
+
first_name?: string | null | undefined;
|
|
26
|
+
last_name?: string | null | undefined;
|
|
27
|
+
company_name?: string | null | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const BankAccountHolder$outboundSchema: z.ZodType<
|
|
32
|
+
BankAccountHolder$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
BankAccountHolder
|
|
35
|
+
> = z.object({
|
|
36
|
+
firstName: z.nullable(z.string()).optional(),
|
|
37
|
+
lastName: z.nullable(z.string()).optional(),
|
|
38
|
+
companyName: z.nullable(z.string()).optional(),
|
|
39
|
+
}).transform((v) => {
|
|
40
|
+
return remap$(v, {
|
|
41
|
+
firstName: "first_name",
|
|
42
|
+
lastName: "last_name",
|
|
43
|
+
companyName: "company_name",
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function bankAccountHolderToJSON(
|
|
48
|
+
bankAccountHolder: BankAccountHolder,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
BankAccountHolder$outboundSchema.parse(bankAccountHolder),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -7,6 +7,7 @@ export * from "./accountupdaterinquirysummary.js";
|
|
|
7
7
|
export * from "./accountupdaterjob.js";
|
|
8
8
|
export * from "./accountupdaterjobcreate.js";
|
|
9
9
|
export * from "./accountupdateroptions.js";
|
|
10
|
+
export * from "./achbankpaymentmethodcreate.js";
|
|
10
11
|
export * from "./address.js";
|
|
11
12
|
export * from "./adyenautorescuesepascenariosenum.js";
|
|
12
13
|
export * from "./adyencardautorescuescenariosenum.js";
|
|
@@ -29,6 +30,8 @@ export * from "./auditlogentry.js";
|
|
|
29
30
|
export * from "./auditlogentryresource.js";
|
|
30
31
|
export * from "./auditlogentryuser.js";
|
|
31
32
|
export * from "./avsresponsecode.js";
|
|
33
|
+
export * from "./bacsbankpaymentmethodcreate.js";
|
|
34
|
+
export * from "./bankaccountholder.js";
|
|
32
35
|
export * from "./billingdetails.js";
|
|
33
36
|
export * from "./braintreedynamicdatafieldsoptions.js";
|
|
34
37
|
export * from "./braintreeoptions.js";
|
|
@@ -225,6 +228,7 @@ export * from "./requiredcheckoutfields.js";
|
|
|
225
228
|
export * from "./riskifiedantifraudoptions.js";
|
|
226
229
|
export * from "./riskifiedantifraudoptionslineitem.js";
|
|
227
230
|
export * from "./security.js";
|
|
231
|
+
export * from "./sepabankpaymentmethodcreate.js";
|
|
228
232
|
export * from "./settlement.js";
|
|
229
233
|
export * from "./settlements.js";
|
|
230
234
|
export * from "./shippingdetails.js";
|