@moovio/sdk 26.4.0-dev.3 → 26.4.0-dev.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/bin/mcp-server.js +513 -69
- package/bin/mcp-server.js.map +32 -13
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/achcreditsamedaytransferpaymentmethod.d.ts +28 -0
- package/models/components/achcreditsamedaytransferpaymentmethod.d.ts.map +1 -0
- package/models/components/achcreditsamedaytransferpaymentmethod.js +63 -0
- package/models/components/achcreditsamedaytransferpaymentmethod.js.map +1 -0
- package/models/components/achcreditstandardtransferpaymentmethod.d.ts +28 -0
- package/models/components/achcreditstandardtransferpaymentmethod.d.ts.map +1 -0
- package/models/components/achcreditstandardtransferpaymentmethod.js +63 -0
- package/models/components/achcreditstandardtransferpaymentmethod.js.map +1 -0
- package/models/components/achdebitcollecttransferpaymentmethod.d.ts +28 -0
- package/models/components/achdebitcollecttransferpaymentmethod.d.ts.map +1 -0
- package/models/components/achdebitcollecttransferpaymentmethod.js +63 -0
- package/models/components/achdebitcollecttransferpaymentmethod.js.map +1 -0
- package/models/components/achdebitfundtransferpaymentmethod.d.ts +28 -0
- package/models/components/achdebitfundtransferpaymentmethod.d.ts.map +1 -0
- package/models/components/achdebitfundtransferpaymentmethod.js +63 -0
- package/models/components/achdebitfundtransferpaymentmethod.js.map +1 -0
- package/models/components/applepaytransferpaymentmethod.d.ts +28 -0
- package/models/components/applepaytransferpaymentmethod.d.ts.map +1 -0
- package/models/components/applepaytransferpaymentmethod.js +63 -0
- package/models/components/applepaytransferpaymentmethod.js.map +1 -0
- package/models/components/cardpaymenttransferpaymentmethod.d.ts +28 -0
- package/models/components/cardpaymenttransferpaymentmethod.d.ts.map +1 -0
- package/models/components/cardpaymenttransferpaymentmethod.js +63 -0
- package/models/components/cardpaymenttransferpaymentmethod.js.map +1 -0
- package/models/components/cardpresentpaymenttransferpaymentmethod.d.ts +31 -0
- package/models/components/cardpresentpaymenttransferpaymentmethod.d.ts.map +1 -0
- package/models/components/cardpresentpaymenttransferpaymentmethod.js +63 -0
- package/models/components/cardpresentpaymenttransferpaymentmethod.js.map +1 -0
- package/models/components/generatedby.d.ts +2 -0
- package/models/components/generatedby.d.ts.map +1 -1
- package/models/components/generatedby.js +2 -0
- package/models/components/generatedby.js.map +1 -1
- package/models/components/index.d.ts +19 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +19 -0
- package/models/components/index.js.map +1 -1
- package/models/components/instantbankcredittransferpaymentmethod.d.ts +31 -0
- package/models/components/instantbankcredittransferpaymentmethod.d.ts.map +1 -0
- package/models/components/instantbankcredittransferpaymentmethod.js +63 -0
- package/models/components/instantbankcredittransferpaymentmethod.js.map +1 -0
- package/models/components/moovwallettransferpaymentmethod.d.ts +25 -0
- package/models/components/moovwallettransferpaymentmethod.d.ts.map +1 -0
- package/models/components/moovwallettransferpaymentmethod.js +63 -0
- package/models/components/moovwallettransferpaymentmethod.js.map +1 -0
- package/models/components/pullfromcardtransferpaymentmethod.d.ts +28 -0
- package/models/components/pullfromcardtransferpaymentmethod.d.ts.map +1 -0
- package/models/components/pullfromcardtransferpaymentmethod.js +63 -0
- package/models/components/pullfromcardtransferpaymentmethod.js.map +1 -0
- package/models/components/pushtocardtransferpaymentmethod.d.ts +28 -0
- package/models/components/pushtocardtransferpaymentmethod.d.ts.map +1 -0
- package/models/components/pushtocardtransferpaymentmethod.js +63 -0
- package/models/components/pushtocardtransferpaymentmethod.js.map +1 -0
- package/models/components/rtpcredittransferpaymentmethod.d.ts +28 -0
- package/models/components/rtpcredittransferpaymentmethod.d.ts.map +1 -0
- package/models/components/rtpcredittransferpaymentmethod.js +63 -0
- package/models/components/rtpcredittransferpaymentmethod.js.map +1 -0
- package/models/components/transferdestination.d.ts +11 -11
- package/models/components/transferdestination.d.ts.map +1 -1
- package/models/components/transferdestination.js +12 -12
- package/models/components/transferdestination.js.map +1 -1
- package/models/components/transferentrymode.d.ts +17 -0
- package/models/components/transferentrymode.d.ts.map +1 -0
- package/models/components/transferentrymode.js +51 -0
- package/models/components/transferentrymode.js.map +1 -0
- package/models/components/transferoptions.d.ts +5 -5
- package/models/components/transferoptions.d.ts.map +1 -1
- package/models/components/transferoptions.js +5 -5
- package/models/components/transferoptions.js.map +1 -1
- package/models/components/transferpaymentmethod.d.ts +28 -0
- package/models/components/transferpaymentmethod.d.ts.map +1 -0
- package/models/components/transferpaymentmethod.js +92 -0
- package/models/components/transferpaymentmethod.js.map +1 -0
- package/models/components/transferpaymentmethodsbankaccount.d.ts +54 -0
- package/models/components/transferpaymentmethodsbankaccount.d.ts.map +1 -0
- package/models/components/transferpaymentmethodsbankaccount.js +79 -0
- package/models/components/transferpaymentmethodsbankaccount.js.map +1 -0
- package/models/components/transferpaymentmethodscard.d.ts +109 -0
- package/models/components/transferpaymentmethodscard.d.ts.map +1 -0
- package/models/components/transferpaymentmethodscard.js +98 -0
- package/models/components/transferpaymentmethodscard.js.map +1 -0
- package/models/components/transferpaymentmethodswallet.d.ts +29 -0
- package/models/components/transferpaymentmethodswallet.d.ts.map +1 -0
- package/models/components/transferpaymentmethodswallet.js +63 -0
- package/models/components/transferpaymentmethodswallet.js.map +1 -0
- package/models/components/transferpaymentmethodtype.d.ts +28 -0
- package/models/components/transferpaymentmethodtype.d.ts.map +1 -0
- package/models/components/transferpaymentmethodtype.js +62 -0
- package/models/components/transferpaymentmethodtype.js.map +1 -0
- package/models/components/transfersource.d.ts +14 -14
- package/models/components/transfersource.d.ts.map +1 -1
- package/models/components/transfersource.js +15 -15
- package/models/components/transfersource.js.map +1 -1
- package/models/components/transferterminalcard.d.ts +83 -0
- package/models/components/transferterminalcard.d.ts.map +1 -0
- package/models/components/transferterminalcard.js +84 -0
- package/models/components/transferterminalcard.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/achcreditsamedaytransferpaymentmethod.ts +74 -0
- package/src/models/components/achcreditstandardtransferpaymentmethod.ts +75 -0
- package/src/models/components/achdebitcollecttransferpaymentmethod.ts +74 -0
- package/src/models/components/achdebitfundtransferpaymentmethod.ts +73 -0
- package/src/models/components/applepaytransferpaymentmethod.ts +73 -0
- package/src/models/components/cardpaymenttransferpaymentmethod.ts +73 -0
- package/src/models/components/cardpresentpaymenttransferpaymentmethod.ts +83 -0
- package/src/models/components/generatedby.ts +4 -0
- package/src/models/components/index.ts +19 -0
- package/src/models/components/instantbankcredittransferpaymentmethod.ts +78 -0
- package/src/models/components/moovwallettransferpaymentmethod.ts +70 -0
- package/src/models/components/pullfromcardtransferpaymentmethod.ts +73 -0
- package/src/models/components/pushtocardtransferpaymentmethod.ts +73 -0
- package/src/models/components/rtpcredittransferpaymentmethod.ts +73 -0
- package/src/models/components/transferdestination.ts +38 -38
- package/src/models/components/transferentrymode.ts +26 -0
- package/src/models/components/transferoptions.ts +13 -13
- package/src/models/components/transferpaymentmethod.ts +168 -0
- package/src/models/components/transferpaymentmethodsbankaccount.ts +120 -0
- package/src/models/components/transferpaymentmethodscard.ts +211 -0
- package/src/models/components/transferpaymentmethodswallet.ts +73 -0
- package/src/models/components/transferpaymentmethodtype.ts +39 -0
- package/src/models/components/transfersource.ts +48 -48
- package/src/models/components/transferterminalcard.ts +156 -0
|
@@ -0,0 +1,120 @@
|
|
|
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 {
|
|
10
|
+
BankAccountHolderType,
|
|
11
|
+
BankAccountHolderType$inboundSchema,
|
|
12
|
+
BankAccountHolderType$outboundSchema,
|
|
13
|
+
} from "./bankaccountholdertype.js";
|
|
14
|
+
import {
|
|
15
|
+
BankAccountStatus,
|
|
16
|
+
BankAccountStatus$inboundSchema,
|
|
17
|
+
BankAccountStatus$outboundSchema,
|
|
18
|
+
} from "./bankaccountstatus.js";
|
|
19
|
+
import {
|
|
20
|
+
BankAccountType,
|
|
21
|
+
BankAccountType$inboundSchema,
|
|
22
|
+
BankAccountType$outboundSchema,
|
|
23
|
+
} from "./bankaccounttype.js";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A bank account as contained within a payment method.
|
|
27
|
+
*/
|
|
28
|
+
export type TransferPaymentMethodsBankAccount = {
|
|
29
|
+
bankAccountID: string;
|
|
30
|
+
/**
|
|
31
|
+
* Once the bank account is linked, we don't reveal the full bank account number.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
*
|
|
35
|
+
* The fingerprint acts as a way to identify whether two linked bank accounts are the same.
|
|
36
|
+
*/
|
|
37
|
+
fingerprint: string;
|
|
38
|
+
status: BankAccountStatus;
|
|
39
|
+
holderName: string;
|
|
40
|
+
/**
|
|
41
|
+
* The type of holder on a funding source.
|
|
42
|
+
*/
|
|
43
|
+
holderType: BankAccountHolderType;
|
|
44
|
+
bankName: string;
|
|
45
|
+
/**
|
|
46
|
+
* The bank account type.
|
|
47
|
+
*/
|
|
48
|
+
bankAccountType: BankAccountType;
|
|
49
|
+
routingNumber: string;
|
|
50
|
+
lastFourAccountNumber: string;
|
|
51
|
+
updatedOn: Date;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const TransferPaymentMethodsBankAccount$inboundSchema: z.ZodType<
|
|
56
|
+
TransferPaymentMethodsBankAccount,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
bankAccountID: z.string(),
|
|
61
|
+
fingerprint: z.string(),
|
|
62
|
+
status: BankAccountStatus$inboundSchema,
|
|
63
|
+
holderName: z.string(),
|
|
64
|
+
holderType: BankAccountHolderType$inboundSchema,
|
|
65
|
+
bankName: z.string(),
|
|
66
|
+
bankAccountType: BankAccountType$inboundSchema,
|
|
67
|
+
routingNumber: z.string(),
|
|
68
|
+
lastFourAccountNumber: z.string(),
|
|
69
|
+
updatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
70
|
+
});
|
|
71
|
+
/** @internal */
|
|
72
|
+
export type TransferPaymentMethodsBankAccount$Outbound = {
|
|
73
|
+
bankAccountID: string;
|
|
74
|
+
fingerprint: string;
|
|
75
|
+
status: string;
|
|
76
|
+
holderName: string;
|
|
77
|
+
holderType: string;
|
|
78
|
+
bankName: string;
|
|
79
|
+
bankAccountType: string;
|
|
80
|
+
routingNumber: string;
|
|
81
|
+
lastFourAccountNumber: string;
|
|
82
|
+
updatedOn: string;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const TransferPaymentMethodsBankAccount$outboundSchema: z.ZodType<
|
|
87
|
+
TransferPaymentMethodsBankAccount$Outbound,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
TransferPaymentMethodsBankAccount
|
|
90
|
+
> = z.object({
|
|
91
|
+
bankAccountID: z.string(),
|
|
92
|
+
fingerprint: z.string(),
|
|
93
|
+
status: BankAccountStatus$outboundSchema,
|
|
94
|
+
holderName: z.string(),
|
|
95
|
+
holderType: BankAccountHolderType$outboundSchema,
|
|
96
|
+
bankName: z.string(),
|
|
97
|
+
bankAccountType: BankAccountType$outboundSchema,
|
|
98
|
+
routingNumber: z.string(),
|
|
99
|
+
lastFourAccountNumber: z.string(),
|
|
100
|
+
updatedOn: z.date().transform(v => v.toISOString()),
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
export function transferPaymentMethodsBankAccountToJSON(
|
|
104
|
+
transferPaymentMethodsBankAccount: TransferPaymentMethodsBankAccount,
|
|
105
|
+
): string {
|
|
106
|
+
return JSON.stringify(
|
|
107
|
+
TransferPaymentMethodsBankAccount$outboundSchema.parse(
|
|
108
|
+
transferPaymentMethodsBankAccount,
|
|
109
|
+
),
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
export function transferPaymentMethodsBankAccountFromJSON(
|
|
113
|
+
jsonString: string,
|
|
114
|
+
): SafeParseResult<TransferPaymentMethodsBankAccount, SDKValidationError> {
|
|
115
|
+
return safeParse(
|
|
116
|
+
jsonString,
|
|
117
|
+
(x) => TransferPaymentMethodsBankAccount$inboundSchema.parse(JSON.parse(x)),
|
|
118
|
+
`Failed to parse 'TransferPaymentMethodsBankAccount' from JSON`,
|
|
119
|
+
);
|
|
120
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
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 {
|
|
10
|
+
CardAccountUpdater,
|
|
11
|
+
CardAccountUpdater$inboundSchema,
|
|
12
|
+
CardAccountUpdater$Outbound,
|
|
13
|
+
CardAccountUpdater$outboundSchema,
|
|
14
|
+
} from "./cardaccountupdater.js";
|
|
15
|
+
import {
|
|
16
|
+
CardAddress,
|
|
17
|
+
CardAddress$inboundSchema,
|
|
18
|
+
CardAddress$Outbound,
|
|
19
|
+
CardAddress$outboundSchema,
|
|
20
|
+
} from "./cardaddress.js";
|
|
21
|
+
import {
|
|
22
|
+
CardBrand,
|
|
23
|
+
CardBrand$inboundSchema,
|
|
24
|
+
CardBrand$outboundSchema,
|
|
25
|
+
} from "./cardbrand.js";
|
|
26
|
+
import {
|
|
27
|
+
CardExpiration,
|
|
28
|
+
CardExpiration$inboundSchema,
|
|
29
|
+
CardExpiration$Outbound,
|
|
30
|
+
CardExpiration$outboundSchema,
|
|
31
|
+
} from "./cardexpiration.js";
|
|
32
|
+
import {
|
|
33
|
+
CardType,
|
|
34
|
+
CardType$inboundSchema,
|
|
35
|
+
CardType$outboundSchema,
|
|
36
|
+
} from "./cardtype.js";
|
|
37
|
+
import {
|
|
38
|
+
CardVerification,
|
|
39
|
+
CardVerification$inboundSchema,
|
|
40
|
+
CardVerification$Outbound,
|
|
41
|
+
CardVerification$outboundSchema,
|
|
42
|
+
} from "./cardverification.js";
|
|
43
|
+
import {
|
|
44
|
+
DomesticPullFromCard,
|
|
45
|
+
DomesticPullFromCard$inboundSchema,
|
|
46
|
+
DomesticPullFromCard$outboundSchema,
|
|
47
|
+
} from "./domesticpullfromcard.js";
|
|
48
|
+
import {
|
|
49
|
+
DomesticPushToCard,
|
|
50
|
+
DomesticPushToCard$inboundSchema,
|
|
51
|
+
DomesticPushToCard$outboundSchema,
|
|
52
|
+
} from "./domesticpushtocard.js";
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* A card as contained within a payment method.
|
|
56
|
+
*/
|
|
57
|
+
export type TransferPaymentMethodsCard = {
|
|
58
|
+
/**
|
|
59
|
+
* ID of the card.
|
|
60
|
+
*/
|
|
61
|
+
cardID: string;
|
|
62
|
+
/**
|
|
63
|
+
* Uniquely identifies a linked payment card or token.
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
* For Apple Pay, the fingerprint is based on the tokenized card number and may vary based on the user's device.
|
|
67
|
+
* This field can be used to identify specific payment methods across multiple accounts on your platform.
|
|
68
|
+
*/
|
|
69
|
+
fingerprint: string;
|
|
70
|
+
/**
|
|
71
|
+
* The card brand.
|
|
72
|
+
*/
|
|
73
|
+
brand: CardBrand;
|
|
74
|
+
/**
|
|
75
|
+
* The type of the card.
|
|
76
|
+
*/
|
|
77
|
+
cardType: CardType;
|
|
78
|
+
/**
|
|
79
|
+
* Last four digits of the card number
|
|
80
|
+
*/
|
|
81
|
+
lastFourCardNumber: string;
|
|
82
|
+
/**
|
|
83
|
+
* The first six to eight digits of the card number, which identifies the financial institution that issued the card.
|
|
84
|
+
*/
|
|
85
|
+
bin: string;
|
|
86
|
+
/**
|
|
87
|
+
* The expiration date of the card or token.
|
|
88
|
+
*/
|
|
89
|
+
expiration: CardExpiration;
|
|
90
|
+
/**
|
|
91
|
+
* The name of the cardholder as it appears on the card.
|
|
92
|
+
*/
|
|
93
|
+
holderName?: string | undefined;
|
|
94
|
+
billingAddress: CardAddress;
|
|
95
|
+
/**
|
|
96
|
+
* The results of submitting cardholder data to a card network for verification.
|
|
97
|
+
*/
|
|
98
|
+
cardVerification: CardVerification;
|
|
99
|
+
/**
|
|
100
|
+
* Financial institution that issued the card.
|
|
101
|
+
*/
|
|
102
|
+
issuer?: string | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Country where the card was issued.
|
|
105
|
+
*/
|
|
106
|
+
issuerCountry?: string | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Indicates cardholder has authorized card to be stored for future payments.
|
|
109
|
+
*/
|
|
110
|
+
cardOnFile?: boolean | undefined;
|
|
111
|
+
merchantAccountID?: string | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* The results of the most recent card update request.
|
|
114
|
+
*/
|
|
115
|
+
cardAccountUpdater?: CardAccountUpdater | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Indicates which level of domestic push-to-card transfer is supported by the card, if any.
|
|
118
|
+
*/
|
|
119
|
+
domesticPushToCard?: DomesticPushToCard | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Indicates if the card supports domestic pull-from-card transfer.
|
|
122
|
+
*/
|
|
123
|
+
domesticPullFromCard?: DomesticPullFromCard | undefined;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const TransferPaymentMethodsCard$inboundSchema: z.ZodType<
|
|
128
|
+
TransferPaymentMethodsCard,
|
|
129
|
+
z.ZodTypeDef,
|
|
130
|
+
unknown
|
|
131
|
+
> = z.object({
|
|
132
|
+
cardID: z.string(),
|
|
133
|
+
fingerprint: z.string(),
|
|
134
|
+
brand: CardBrand$inboundSchema,
|
|
135
|
+
cardType: CardType$inboundSchema,
|
|
136
|
+
lastFourCardNumber: z.string(),
|
|
137
|
+
bin: z.string(),
|
|
138
|
+
expiration: CardExpiration$inboundSchema,
|
|
139
|
+
holderName: z.string().optional(),
|
|
140
|
+
billingAddress: CardAddress$inboundSchema,
|
|
141
|
+
cardVerification: CardVerification$inboundSchema,
|
|
142
|
+
issuer: z.string().optional(),
|
|
143
|
+
issuerCountry: z.string().optional(),
|
|
144
|
+
cardOnFile: z.boolean().optional(),
|
|
145
|
+
merchantAccountID: z.string().optional(),
|
|
146
|
+
cardAccountUpdater: CardAccountUpdater$inboundSchema.optional(),
|
|
147
|
+
domesticPushToCard: DomesticPushToCard$inboundSchema.optional(),
|
|
148
|
+
domesticPullFromCard: DomesticPullFromCard$inboundSchema.optional(),
|
|
149
|
+
});
|
|
150
|
+
/** @internal */
|
|
151
|
+
export type TransferPaymentMethodsCard$Outbound = {
|
|
152
|
+
cardID: string;
|
|
153
|
+
fingerprint: string;
|
|
154
|
+
brand: string;
|
|
155
|
+
cardType: string;
|
|
156
|
+
lastFourCardNumber: string;
|
|
157
|
+
bin: string;
|
|
158
|
+
expiration: CardExpiration$Outbound;
|
|
159
|
+
holderName?: string | undefined;
|
|
160
|
+
billingAddress: CardAddress$Outbound;
|
|
161
|
+
cardVerification: CardVerification$Outbound;
|
|
162
|
+
issuer?: string | undefined;
|
|
163
|
+
issuerCountry?: string | undefined;
|
|
164
|
+
cardOnFile?: boolean | undefined;
|
|
165
|
+
merchantAccountID?: string | undefined;
|
|
166
|
+
cardAccountUpdater?: CardAccountUpdater$Outbound | undefined;
|
|
167
|
+
domesticPushToCard?: string | undefined;
|
|
168
|
+
domesticPullFromCard?: string | undefined;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/** @internal */
|
|
172
|
+
export const TransferPaymentMethodsCard$outboundSchema: z.ZodType<
|
|
173
|
+
TransferPaymentMethodsCard$Outbound,
|
|
174
|
+
z.ZodTypeDef,
|
|
175
|
+
TransferPaymentMethodsCard
|
|
176
|
+
> = z.object({
|
|
177
|
+
cardID: z.string(),
|
|
178
|
+
fingerprint: z.string(),
|
|
179
|
+
brand: CardBrand$outboundSchema,
|
|
180
|
+
cardType: CardType$outboundSchema,
|
|
181
|
+
lastFourCardNumber: z.string(),
|
|
182
|
+
bin: z.string(),
|
|
183
|
+
expiration: CardExpiration$outboundSchema,
|
|
184
|
+
holderName: z.string().optional(),
|
|
185
|
+
billingAddress: CardAddress$outboundSchema,
|
|
186
|
+
cardVerification: CardVerification$outboundSchema,
|
|
187
|
+
issuer: z.string().optional(),
|
|
188
|
+
issuerCountry: z.string().optional(),
|
|
189
|
+
cardOnFile: z.boolean().optional(),
|
|
190
|
+
merchantAccountID: z.string().optional(),
|
|
191
|
+
cardAccountUpdater: CardAccountUpdater$outboundSchema.optional(),
|
|
192
|
+
domesticPushToCard: DomesticPushToCard$outboundSchema.optional(),
|
|
193
|
+
domesticPullFromCard: DomesticPullFromCard$outboundSchema.optional(),
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
export function transferPaymentMethodsCardToJSON(
|
|
197
|
+
transferPaymentMethodsCard: TransferPaymentMethodsCard,
|
|
198
|
+
): string {
|
|
199
|
+
return JSON.stringify(
|
|
200
|
+
TransferPaymentMethodsCard$outboundSchema.parse(transferPaymentMethodsCard),
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
export function transferPaymentMethodsCardFromJSON(
|
|
204
|
+
jsonString: string,
|
|
205
|
+
): SafeParseResult<TransferPaymentMethodsCard, SDKValidationError> {
|
|
206
|
+
return safeParse(
|
|
207
|
+
jsonString,
|
|
208
|
+
(x) => TransferPaymentMethodsCard$inboundSchema.parse(JSON.parse(x)),
|
|
209
|
+
`Failed to parse 'TransferPaymentMethodsCard' from JSON`,
|
|
210
|
+
);
|
|
211
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 {
|
|
10
|
+
WalletType,
|
|
11
|
+
WalletType$inboundSchema,
|
|
12
|
+
WalletType$outboundSchema,
|
|
13
|
+
} from "./wallettype.js";
|
|
14
|
+
|
|
15
|
+
export type TransferPaymentMethodsWallet = {
|
|
16
|
+
walletID: string;
|
|
17
|
+
partnerAccountID: string;
|
|
18
|
+
/**
|
|
19
|
+
* Type of a wallet.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* - `default`: The system-generated wallet automatically created when an account is granted the wallet capability.
|
|
23
|
+
* - `general`: An additional, user-defined wallet created via API or Dashboard.
|
|
24
|
+
*/
|
|
25
|
+
walletType: WalletType;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const TransferPaymentMethodsWallet$inboundSchema: z.ZodType<
|
|
30
|
+
TransferPaymentMethodsWallet,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
walletID: z.string(),
|
|
35
|
+
partnerAccountID: z.string(),
|
|
36
|
+
walletType: WalletType$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type TransferPaymentMethodsWallet$Outbound = {
|
|
40
|
+
walletID: string;
|
|
41
|
+
partnerAccountID: string;
|
|
42
|
+
walletType: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const TransferPaymentMethodsWallet$outboundSchema: z.ZodType<
|
|
47
|
+
TransferPaymentMethodsWallet$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
TransferPaymentMethodsWallet
|
|
50
|
+
> = z.object({
|
|
51
|
+
walletID: z.string(),
|
|
52
|
+
partnerAccountID: z.string(),
|
|
53
|
+
walletType: WalletType$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function transferPaymentMethodsWalletToJSON(
|
|
57
|
+
transferPaymentMethodsWallet: TransferPaymentMethodsWallet,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
TransferPaymentMethodsWallet$outboundSchema.parse(
|
|
61
|
+
transferPaymentMethodsWallet,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function transferPaymentMethodsWalletFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<TransferPaymentMethodsWallet, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => TransferPaymentMethodsWallet$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'TransferPaymentMethodsWallet' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -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 { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The payment method type that represents a payment rail and directionality
|
|
10
|
+
*/
|
|
11
|
+
export const TransferPaymentMethodType = {
|
|
12
|
+
MoovWallet: "moov-wallet",
|
|
13
|
+
AchDebitFund: "ach-debit-fund",
|
|
14
|
+
AchDebitCollect: "ach-debit-collect",
|
|
15
|
+
AchCreditStandard: "ach-credit-standard",
|
|
16
|
+
AchCreditSameDay: "ach-credit-same-day",
|
|
17
|
+
RtpCredit: "rtp-credit",
|
|
18
|
+
CardPayment: "card-payment",
|
|
19
|
+
PushToCard: "push-to-card",
|
|
20
|
+
PullFromCard: "pull-from-card",
|
|
21
|
+
ApplePay: "apple-pay",
|
|
22
|
+
CardPresentPayment: "card-present-payment",
|
|
23
|
+
InstantBankCredit: "instant-bank-credit",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* The payment method type that represents a payment rail and directionality
|
|
27
|
+
*/
|
|
28
|
+
export type TransferPaymentMethodType = ClosedEnum<
|
|
29
|
+
typeof TransferPaymentMethodType
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const TransferPaymentMethodType$inboundSchema: z.ZodNativeEnum<
|
|
34
|
+
typeof TransferPaymentMethodType
|
|
35
|
+
> = z.nativeEnum(TransferPaymentMethodType);
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const TransferPaymentMethodType$outboundSchema: z.ZodNativeEnum<
|
|
38
|
+
typeof TransferPaymentMethodType
|
|
39
|
+
> = TransferPaymentMethodType$inboundSchema;
|
|
@@ -24,41 +24,41 @@ import {
|
|
|
24
24
|
CardTransactionDetails$Outbound,
|
|
25
25
|
CardTransactionDetails$outboundSchema,
|
|
26
26
|
} from "./cardtransactiondetails.js";
|
|
27
|
-
import {
|
|
28
|
-
PaymentMethodsBankAccount,
|
|
29
|
-
PaymentMethodsBankAccount$inboundSchema,
|
|
30
|
-
PaymentMethodsBankAccount$Outbound,
|
|
31
|
-
PaymentMethodsBankAccount$outboundSchema,
|
|
32
|
-
} from "./paymentmethodsbankaccount.js";
|
|
33
|
-
import {
|
|
34
|
-
PaymentMethodsCard,
|
|
35
|
-
PaymentMethodsCard$inboundSchema,
|
|
36
|
-
PaymentMethodsCard$Outbound,
|
|
37
|
-
PaymentMethodsCard$outboundSchema,
|
|
38
|
-
} from "./paymentmethodscard.js";
|
|
39
|
-
import {
|
|
40
|
-
PaymentMethodsWallet,
|
|
41
|
-
PaymentMethodsWallet$inboundSchema,
|
|
42
|
-
PaymentMethodsWallet$Outbound,
|
|
43
|
-
PaymentMethodsWallet$outboundSchema,
|
|
44
|
-
} from "./paymentmethodswallet.js";
|
|
45
|
-
import {
|
|
46
|
-
PaymentMethodType,
|
|
47
|
-
PaymentMethodType$inboundSchema,
|
|
48
|
-
PaymentMethodType$outboundSchema,
|
|
49
|
-
} from "./paymentmethodtype.js";
|
|
50
|
-
import {
|
|
51
|
-
TerminalCard,
|
|
52
|
-
TerminalCard$inboundSchema,
|
|
53
|
-
TerminalCard$Outbound,
|
|
54
|
-
TerminalCard$outboundSchema,
|
|
55
|
-
} from "./terminalcard.js";
|
|
56
27
|
import {
|
|
57
28
|
TransferAccount,
|
|
58
29
|
TransferAccount$inboundSchema,
|
|
59
30
|
TransferAccount$Outbound,
|
|
60
31
|
TransferAccount$outboundSchema,
|
|
61
32
|
} from "./transferaccount.js";
|
|
33
|
+
import {
|
|
34
|
+
TransferPaymentMethodsBankAccount,
|
|
35
|
+
TransferPaymentMethodsBankAccount$inboundSchema,
|
|
36
|
+
TransferPaymentMethodsBankAccount$Outbound,
|
|
37
|
+
TransferPaymentMethodsBankAccount$outboundSchema,
|
|
38
|
+
} from "./transferpaymentmethodsbankaccount.js";
|
|
39
|
+
import {
|
|
40
|
+
TransferPaymentMethodsCard,
|
|
41
|
+
TransferPaymentMethodsCard$inboundSchema,
|
|
42
|
+
TransferPaymentMethodsCard$Outbound,
|
|
43
|
+
TransferPaymentMethodsCard$outboundSchema,
|
|
44
|
+
} from "./transferpaymentmethodscard.js";
|
|
45
|
+
import {
|
|
46
|
+
TransferPaymentMethodsWallet,
|
|
47
|
+
TransferPaymentMethodsWallet$inboundSchema,
|
|
48
|
+
TransferPaymentMethodsWallet$Outbound,
|
|
49
|
+
TransferPaymentMethodsWallet$outboundSchema,
|
|
50
|
+
} from "./transferpaymentmethodswallet.js";
|
|
51
|
+
import {
|
|
52
|
+
TransferPaymentMethodType,
|
|
53
|
+
TransferPaymentMethodType$inboundSchema,
|
|
54
|
+
TransferPaymentMethodType$outboundSchema,
|
|
55
|
+
} from "./transferpaymentmethodtype.js";
|
|
56
|
+
import {
|
|
57
|
+
TransferTerminalCard,
|
|
58
|
+
TransferTerminalCard$inboundSchema,
|
|
59
|
+
TransferTerminalCard$Outbound,
|
|
60
|
+
TransferTerminalCard$outboundSchema,
|
|
61
|
+
} from "./transferterminalcard.js";
|
|
62
62
|
|
|
63
63
|
export type TransferSource = {
|
|
64
64
|
/**
|
|
@@ -69,17 +69,17 @@ export type TransferSource = {
|
|
|
69
69
|
/**
|
|
70
70
|
* The payment method type that represents a payment rail and directionality
|
|
71
71
|
*/
|
|
72
|
-
paymentMethodType:
|
|
72
|
+
paymentMethodType: TransferPaymentMethodType;
|
|
73
73
|
account: TransferAccount;
|
|
74
74
|
/**
|
|
75
75
|
* A bank account as contained within a payment method.
|
|
76
76
|
*/
|
|
77
|
-
bankAccount?:
|
|
78
|
-
wallet?:
|
|
77
|
+
bankAccount?: TransferPaymentMethodsBankAccount | undefined;
|
|
78
|
+
wallet?: TransferPaymentMethodsWallet | undefined;
|
|
79
79
|
/**
|
|
80
80
|
* A card as contained within a payment method.
|
|
81
81
|
*/
|
|
82
|
-
card?:
|
|
82
|
+
card?: TransferPaymentMethodsCard | undefined;
|
|
83
83
|
/**
|
|
84
84
|
* Describes an Apple Pay token on a Moov account.
|
|
85
85
|
*/
|
|
@@ -87,7 +87,7 @@ export type TransferSource = {
|
|
|
87
87
|
/**
|
|
88
88
|
* Describes payment card details captured with tap or in-person payment.
|
|
89
89
|
*/
|
|
90
|
-
terminalCard?:
|
|
90
|
+
terminalCard?: TransferTerminalCard | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* Card-specific details about the transaction.
|
|
93
93
|
*/
|
|
@@ -106,13 +106,13 @@ export const TransferSource$inboundSchema: z.ZodType<
|
|
|
106
106
|
> = z.object({
|
|
107
107
|
transferID: z.string().optional(),
|
|
108
108
|
paymentMethodID: z.string(),
|
|
109
|
-
paymentMethodType:
|
|
109
|
+
paymentMethodType: TransferPaymentMethodType$inboundSchema,
|
|
110
110
|
account: TransferAccount$inboundSchema,
|
|
111
|
-
bankAccount:
|
|
112
|
-
wallet:
|
|
113
|
-
card:
|
|
111
|
+
bankAccount: TransferPaymentMethodsBankAccount$inboundSchema.optional(),
|
|
112
|
+
wallet: TransferPaymentMethodsWallet$inboundSchema.optional(),
|
|
113
|
+
card: TransferPaymentMethodsCard$inboundSchema.optional(),
|
|
114
114
|
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
115
|
-
terminalCard:
|
|
115
|
+
terminalCard: TransferTerminalCard$inboundSchema.optional(),
|
|
116
116
|
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
117
117
|
achDetails: ACHTransactionDetails$inboundSchema.optional(),
|
|
118
118
|
});
|
|
@@ -122,11 +122,11 @@ export type TransferSource$Outbound = {
|
|
|
122
122
|
paymentMethodID: string;
|
|
123
123
|
paymentMethodType: string;
|
|
124
124
|
account: TransferAccount$Outbound;
|
|
125
|
-
bankAccount?:
|
|
126
|
-
wallet?:
|
|
127
|
-
card?:
|
|
125
|
+
bankAccount?: TransferPaymentMethodsBankAccount$Outbound | undefined;
|
|
126
|
+
wallet?: TransferPaymentMethodsWallet$Outbound | undefined;
|
|
127
|
+
card?: TransferPaymentMethodsCard$Outbound | undefined;
|
|
128
128
|
applePay?: ApplePayResponse$Outbound | undefined;
|
|
129
|
-
terminalCard?:
|
|
129
|
+
terminalCard?: TransferTerminalCard$Outbound | undefined;
|
|
130
130
|
cardDetails?: CardTransactionDetails$Outbound | undefined;
|
|
131
131
|
achDetails?: ACHTransactionDetails$Outbound | undefined;
|
|
132
132
|
};
|
|
@@ -139,13 +139,13 @@ export const TransferSource$outboundSchema: z.ZodType<
|
|
|
139
139
|
> = z.object({
|
|
140
140
|
transferID: z.string().optional(),
|
|
141
141
|
paymentMethodID: z.string(),
|
|
142
|
-
paymentMethodType:
|
|
142
|
+
paymentMethodType: TransferPaymentMethodType$outboundSchema,
|
|
143
143
|
account: TransferAccount$outboundSchema,
|
|
144
|
-
bankAccount:
|
|
145
|
-
wallet:
|
|
146
|
-
card:
|
|
144
|
+
bankAccount: TransferPaymentMethodsBankAccount$outboundSchema.optional(),
|
|
145
|
+
wallet: TransferPaymentMethodsWallet$outboundSchema.optional(),
|
|
146
|
+
card: TransferPaymentMethodsCard$outboundSchema.optional(),
|
|
147
147
|
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
148
|
-
terminalCard:
|
|
148
|
+
terminalCard: TransferTerminalCard$outboundSchema.optional(),
|
|
149
149
|
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
150
150
|
achDetails: ACHTransactionDetails$outboundSchema.optional(),
|
|
151
151
|
});
|