@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,70 @@
|
|
|
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
|
+
TransferPaymentMethodsWallet,
|
|
11
|
+
TransferPaymentMethodsWallet$inboundSchema,
|
|
12
|
+
TransferPaymentMethodsWallet$Outbound,
|
|
13
|
+
TransferPaymentMethodsWallet$outboundSchema,
|
|
14
|
+
} from "./transferpaymentmethodswallet.js";
|
|
15
|
+
|
|
16
|
+
export type MoovWalletTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "moov-wallet";
|
|
22
|
+
wallet: TransferPaymentMethodsWallet;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const MoovWalletTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
27
|
+
MoovWalletTransferPaymentMethod,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
paymentMethodID: z.string(),
|
|
32
|
+
paymentMethodType: z.literal("moov-wallet"),
|
|
33
|
+
wallet: TransferPaymentMethodsWallet$inboundSchema,
|
|
34
|
+
});
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type MoovWalletTransferPaymentMethod$Outbound = {
|
|
37
|
+
paymentMethodID: string;
|
|
38
|
+
paymentMethodType: "moov-wallet";
|
|
39
|
+
wallet: TransferPaymentMethodsWallet$Outbound;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const MoovWalletTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
44
|
+
MoovWalletTransferPaymentMethod$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
MoovWalletTransferPaymentMethod
|
|
47
|
+
> = z.object({
|
|
48
|
+
paymentMethodID: z.string(),
|
|
49
|
+
paymentMethodType: z.literal("moov-wallet"),
|
|
50
|
+
wallet: TransferPaymentMethodsWallet$outboundSchema,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function moovWalletTransferPaymentMethodToJSON(
|
|
54
|
+
moovWalletTransferPaymentMethod: MoovWalletTransferPaymentMethod,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
MoovWalletTransferPaymentMethod$outboundSchema.parse(
|
|
58
|
+
moovWalletTransferPaymentMethod,
|
|
59
|
+
),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
export function moovWalletTransferPaymentMethodFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<MoovWalletTransferPaymentMethod, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => MoovWalletTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'MoovWalletTransferPaymentMethod' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -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
|
+
TransferPaymentMethodsCard,
|
|
11
|
+
TransferPaymentMethodsCard$inboundSchema,
|
|
12
|
+
TransferPaymentMethodsCard$Outbound,
|
|
13
|
+
TransferPaymentMethodsCard$outboundSchema,
|
|
14
|
+
} from "./transferpaymentmethodscard.js";
|
|
15
|
+
|
|
16
|
+
export type PullFromCardTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "pull-from-card";
|
|
22
|
+
/**
|
|
23
|
+
* A card as contained within a payment method.
|
|
24
|
+
*/
|
|
25
|
+
card: TransferPaymentMethodsCard;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const PullFromCardTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
PullFromCardTransferPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("pull-from-card"),
|
|
36
|
+
card: TransferPaymentMethodsCard$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type PullFromCardTransferPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "pull-from-card";
|
|
42
|
+
card: TransferPaymentMethodsCard$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PullFromCardTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
PullFromCardTransferPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
PullFromCardTransferPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("pull-from-card"),
|
|
53
|
+
card: TransferPaymentMethodsCard$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function pullFromCardTransferPaymentMethodToJSON(
|
|
57
|
+
pullFromCardTransferPaymentMethod: PullFromCardTransferPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
PullFromCardTransferPaymentMethod$outboundSchema.parse(
|
|
61
|
+
pullFromCardTransferPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function pullFromCardTransferPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<PullFromCardTransferPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => PullFromCardTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'PullFromCardTransferPaymentMethod' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -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
|
+
TransferPaymentMethodsCard,
|
|
11
|
+
TransferPaymentMethodsCard$inboundSchema,
|
|
12
|
+
TransferPaymentMethodsCard$Outbound,
|
|
13
|
+
TransferPaymentMethodsCard$outboundSchema,
|
|
14
|
+
} from "./transferpaymentmethodscard.js";
|
|
15
|
+
|
|
16
|
+
export type PushToCardTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "push-to-card";
|
|
22
|
+
/**
|
|
23
|
+
* A card as contained within a payment method.
|
|
24
|
+
*/
|
|
25
|
+
card: TransferPaymentMethodsCard;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const PushToCardTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
PushToCardTransferPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("push-to-card"),
|
|
36
|
+
card: TransferPaymentMethodsCard$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type PushToCardTransferPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "push-to-card";
|
|
42
|
+
card: TransferPaymentMethodsCard$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PushToCardTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
PushToCardTransferPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
PushToCardTransferPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("push-to-card"),
|
|
53
|
+
card: TransferPaymentMethodsCard$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function pushToCardTransferPaymentMethodToJSON(
|
|
57
|
+
pushToCardTransferPaymentMethod: PushToCardTransferPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
PushToCardTransferPaymentMethod$outboundSchema.parse(
|
|
61
|
+
pushToCardTransferPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function pushToCardTransferPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<PushToCardTransferPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => PushToCardTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'PushToCardTransferPaymentMethod' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -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
|
+
TransferPaymentMethodsBankAccount,
|
|
11
|
+
TransferPaymentMethodsBankAccount$inboundSchema,
|
|
12
|
+
TransferPaymentMethodsBankAccount$Outbound,
|
|
13
|
+
TransferPaymentMethodsBankAccount$outboundSchema,
|
|
14
|
+
} from "./transferpaymentmethodsbankaccount.js";
|
|
15
|
+
|
|
16
|
+
export type RtpCreditTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "rtp-credit";
|
|
22
|
+
/**
|
|
23
|
+
* A bank account as contained within a payment method.
|
|
24
|
+
*/
|
|
25
|
+
bankAccount: TransferPaymentMethodsBankAccount;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const RtpCreditTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
RtpCreditTransferPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("rtp-credit"),
|
|
36
|
+
bankAccount: TransferPaymentMethodsBankAccount$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type RtpCreditTransferPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "rtp-credit";
|
|
42
|
+
bankAccount: TransferPaymentMethodsBankAccount$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const RtpCreditTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
RtpCreditTransferPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
RtpCreditTransferPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("rtp-credit"),
|
|
53
|
+
bankAccount: TransferPaymentMethodsBankAccount$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function rtpCreditTransferPaymentMethodToJSON(
|
|
57
|
+
rtpCreditTransferPaymentMethod: RtpCreditTransferPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
RtpCreditTransferPaymentMethod$outboundSchema.parse(
|
|
61
|
+
rtpCreditTransferPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function rtpCreditTransferPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<RtpCreditTransferPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => RtpCreditTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'RtpCreditTransferPaymentMethod' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -24,29 +24,6 @@ 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
27
|
import {
|
|
51
28
|
RTPTransactionDetails,
|
|
52
29
|
RTPTransactionDetails$inboundSchema,
|
|
@@ -59,23 +36,46 @@ import {
|
|
|
59
36
|
TransferAccount$Outbound,
|
|
60
37
|
TransferAccount$outboundSchema,
|
|
61
38
|
} from "./transferaccount.js";
|
|
39
|
+
import {
|
|
40
|
+
TransferPaymentMethodsBankAccount,
|
|
41
|
+
TransferPaymentMethodsBankAccount$inboundSchema,
|
|
42
|
+
TransferPaymentMethodsBankAccount$Outbound,
|
|
43
|
+
TransferPaymentMethodsBankAccount$outboundSchema,
|
|
44
|
+
} from "./transferpaymentmethodsbankaccount.js";
|
|
45
|
+
import {
|
|
46
|
+
TransferPaymentMethodsCard,
|
|
47
|
+
TransferPaymentMethodsCard$inboundSchema,
|
|
48
|
+
TransferPaymentMethodsCard$Outbound,
|
|
49
|
+
TransferPaymentMethodsCard$outboundSchema,
|
|
50
|
+
} from "./transferpaymentmethodscard.js";
|
|
51
|
+
import {
|
|
52
|
+
TransferPaymentMethodsWallet,
|
|
53
|
+
TransferPaymentMethodsWallet$inboundSchema,
|
|
54
|
+
TransferPaymentMethodsWallet$Outbound,
|
|
55
|
+
TransferPaymentMethodsWallet$outboundSchema,
|
|
56
|
+
} from "./transferpaymentmethodswallet.js";
|
|
57
|
+
import {
|
|
58
|
+
TransferPaymentMethodType,
|
|
59
|
+
TransferPaymentMethodType$inboundSchema,
|
|
60
|
+
TransferPaymentMethodType$outboundSchema,
|
|
61
|
+
} from "./transferpaymentmethodtype.js";
|
|
62
62
|
|
|
63
63
|
export type TransferDestination = {
|
|
64
64
|
paymentMethodID: string;
|
|
65
65
|
/**
|
|
66
66
|
* The payment method type that represents a payment rail and directionality
|
|
67
67
|
*/
|
|
68
|
-
paymentMethodType:
|
|
68
|
+
paymentMethodType: TransferPaymentMethodType;
|
|
69
69
|
account: TransferAccount;
|
|
70
70
|
/**
|
|
71
71
|
* A bank account as contained within a payment method.
|
|
72
72
|
*/
|
|
73
|
-
bankAccount?:
|
|
74
|
-
wallet?:
|
|
73
|
+
bankAccount?: TransferPaymentMethodsBankAccount | undefined;
|
|
74
|
+
wallet?: TransferPaymentMethodsWallet | undefined;
|
|
75
75
|
/**
|
|
76
76
|
* A card as contained within a payment method.
|
|
77
77
|
*/
|
|
78
|
-
card?:
|
|
78
|
+
card?: TransferPaymentMethodsCard | undefined;
|
|
79
79
|
/**
|
|
80
80
|
* ACH specific details about the transaction.
|
|
81
81
|
*/
|
|
@@ -101,11 +101,11 @@ export const TransferDestination$inboundSchema: z.ZodType<
|
|
|
101
101
|
unknown
|
|
102
102
|
> = z.object({
|
|
103
103
|
paymentMethodID: z.string(),
|
|
104
|
-
paymentMethodType:
|
|
104
|
+
paymentMethodType: TransferPaymentMethodType$inboundSchema,
|
|
105
105
|
account: TransferAccount$inboundSchema,
|
|
106
|
-
bankAccount:
|
|
107
|
-
wallet:
|
|
108
|
-
card:
|
|
106
|
+
bankAccount: TransferPaymentMethodsBankAccount$inboundSchema.optional(),
|
|
107
|
+
wallet: TransferPaymentMethodsWallet$inboundSchema.optional(),
|
|
108
|
+
card: TransferPaymentMethodsCard$inboundSchema.optional(),
|
|
109
109
|
achDetails: ACHTransactionDetails$inboundSchema.optional(),
|
|
110
110
|
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
111
111
|
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
@@ -116,9 +116,9 @@ export type TransferDestination$Outbound = {
|
|
|
116
116
|
paymentMethodID: string;
|
|
117
117
|
paymentMethodType: string;
|
|
118
118
|
account: TransferAccount$Outbound;
|
|
119
|
-
bankAccount?:
|
|
120
|
-
wallet?:
|
|
121
|
-
card?:
|
|
119
|
+
bankAccount?: TransferPaymentMethodsBankAccount$Outbound | undefined;
|
|
120
|
+
wallet?: TransferPaymentMethodsWallet$Outbound | undefined;
|
|
121
|
+
card?: TransferPaymentMethodsCard$Outbound | undefined;
|
|
122
122
|
achDetails?: ACHTransactionDetails$Outbound | undefined;
|
|
123
123
|
applePay?: ApplePayResponse$Outbound | undefined;
|
|
124
124
|
cardDetails?: CardTransactionDetails$Outbound | undefined;
|
|
@@ -132,11 +132,11 @@ export const TransferDestination$outboundSchema: z.ZodType<
|
|
|
132
132
|
TransferDestination
|
|
133
133
|
> = z.object({
|
|
134
134
|
paymentMethodID: z.string(),
|
|
135
|
-
paymentMethodType:
|
|
135
|
+
paymentMethodType: TransferPaymentMethodType$outboundSchema,
|
|
136
136
|
account: TransferAccount$outboundSchema,
|
|
137
|
-
bankAccount:
|
|
138
|
-
wallet:
|
|
139
|
-
card:
|
|
137
|
+
bankAccount: TransferPaymentMethodsBankAccount$outboundSchema.optional(),
|
|
138
|
+
wallet: TransferPaymentMethodsWallet$outboundSchema.optional(),
|
|
139
|
+
card: TransferPaymentMethodsCard$outboundSchema.optional(),
|
|
140
140
|
achDetails: ACHTransactionDetails$outboundSchema.optional(),
|
|
141
141
|
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
142
142
|
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* How the card information was entered into the point of sale terminal.
|
|
10
|
+
*/
|
|
11
|
+
export const TransferEntryMode = {
|
|
12
|
+
Contactless: "contactless",
|
|
13
|
+
} as const;
|
|
14
|
+
/**
|
|
15
|
+
* How the card information was entered into the point of sale terminal.
|
|
16
|
+
*/
|
|
17
|
+
export type TransferEntryMode = ClosedEnum<typeof TransferEntryMode>;
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const TransferEntryMode$inboundSchema: z.ZodNativeEnum<
|
|
21
|
+
typeof TransferEntryMode
|
|
22
|
+
> = z.nativeEnum(TransferEntryMode);
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const TransferEntryMode$outboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof TransferEntryMode
|
|
26
|
+
> = TransferEntryMode$inboundSchema;
|
|
@@ -7,15 +7,15 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
TransferPaymentMethod,
|
|
11
|
+
TransferPaymentMethod$inboundSchema,
|
|
12
|
+
TransferPaymentMethod$Outbound,
|
|
13
|
+
TransferPaymentMethod$outboundSchema,
|
|
14
|
+
} from "./transferpaymentmethod.js";
|
|
15
15
|
|
|
16
16
|
export type TransferOptions = {
|
|
17
|
-
sourceOptions?: Array<
|
|
18
|
-
destinationOptions?: Array<
|
|
17
|
+
sourceOptions?: Array<TransferPaymentMethod> | undefined;
|
|
18
|
+
destinationOptions?: Array<TransferPaymentMethod> | undefined;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/** @internal */
|
|
@@ -24,13 +24,13 @@ export const TransferOptions$inboundSchema: z.ZodType<
|
|
|
24
24
|
z.ZodTypeDef,
|
|
25
25
|
unknown
|
|
26
26
|
> = z.object({
|
|
27
|
-
sourceOptions: z.array(
|
|
28
|
-
destinationOptions: z.array(
|
|
27
|
+
sourceOptions: z.array(TransferPaymentMethod$inboundSchema).optional(),
|
|
28
|
+
destinationOptions: z.array(TransferPaymentMethod$inboundSchema).optional(),
|
|
29
29
|
});
|
|
30
30
|
/** @internal */
|
|
31
31
|
export type TransferOptions$Outbound = {
|
|
32
|
-
sourceOptions?: Array<
|
|
33
|
-
destinationOptions?: Array<
|
|
32
|
+
sourceOptions?: Array<TransferPaymentMethod$Outbound> | undefined;
|
|
33
|
+
destinationOptions?: Array<TransferPaymentMethod$Outbound> | undefined;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
/** @internal */
|
|
@@ -39,8 +39,8 @@ export const TransferOptions$outboundSchema: z.ZodType<
|
|
|
39
39
|
z.ZodTypeDef,
|
|
40
40
|
TransferOptions
|
|
41
41
|
> = z.object({
|
|
42
|
-
sourceOptions: z.array(
|
|
43
|
-
destinationOptions: z.array(
|
|
42
|
+
sourceOptions: z.array(TransferPaymentMethod$outboundSchema).optional(),
|
|
43
|
+
destinationOptions: z.array(TransferPaymentMethod$outboundSchema).optional(),
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
export function transferOptionsToJSON(
|
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
AchCreditSameDayTransferPaymentMethod,
|
|
11
|
+
AchCreditSameDayTransferPaymentMethod$inboundSchema,
|
|
12
|
+
AchCreditSameDayTransferPaymentMethod$Outbound,
|
|
13
|
+
AchCreditSameDayTransferPaymentMethod$outboundSchema,
|
|
14
|
+
} from "./achcreditsamedaytransferpaymentmethod.js";
|
|
15
|
+
import {
|
|
16
|
+
AchCreditStandardTransferPaymentMethod,
|
|
17
|
+
AchCreditStandardTransferPaymentMethod$inboundSchema,
|
|
18
|
+
AchCreditStandardTransferPaymentMethod$Outbound,
|
|
19
|
+
AchCreditStandardTransferPaymentMethod$outboundSchema,
|
|
20
|
+
} from "./achcreditstandardtransferpaymentmethod.js";
|
|
21
|
+
import {
|
|
22
|
+
AchDebitCollectTransferPaymentMethod,
|
|
23
|
+
AchDebitCollectTransferPaymentMethod$inboundSchema,
|
|
24
|
+
AchDebitCollectTransferPaymentMethod$Outbound,
|
|
25
|
+
AchDebitCollectTransferPaymentMethod$outboundSchema,
|
|
26
|
+
} from "./achdebitcollecttransferpaymentmethod.js";
|
|
27
|
+
import {
|
|
28
|
+
AchDebitFundTransferPaymentMethod,
|
|
29
|
+
AchDebitFundTransferPaymentMethod$inboundSchema,
|
|
30
|
+
AchDebitFundTransferPaymentMethod$Outbound,
|
|
31
|
+
AchDebitFundTransferPaymentMethod$outboundSchema,
|
|
32
|
+
} from "./achdebitfundtransferpaymentmethod.js";
|
|
33
|
+
import {
|
|
34
|
+
ApplePayTransferPaymentMethod,
|
|
35
|
+
ApplePayTransferPaymentMethod$inboundSchema,
|
|
36
|
+
ApplePayTransferPaymentMethod$Outbound,
|
|
37
|
+
ApplePayTransferPaymentMethod$outboundSchema,
|
|
38
|
+
} from "./applepaytransferpaymentmethod.js";
|
|
39
|
+
import {
|
|
40
|
+
CardPaymentTransferPaymentMethod,
|
|
41
|
+
CardPaymentTransferPaymentMethod$inboundSchema,
|
|
42
|
+
CardPaymentTransferPaymentMethod$Outbound,
|
|
43
|
+
CardPaymentTransferPaymentMethod$outboundSchema,
|
|
44
|
+
} from "./cardpaymenttransferpaymentmethod.js";
|
|
45
|
+
import {
|
|
46
|
+
CardPresentPaymentTransferPaymentMethod,
|
|
47
|
+
CardPresentPaymentTransferPaymentMethod$inboundSchema,
|
|
48
|
+
CardPresentPaymentTransferPaymentMethod$Outbound,
|
|
49
|
+
CardPresentPaymentTransferPaymentMethod$outboundSchema,
|
|
50
|
+
} from "./cardpresentpaymenttransferpaymentmethod.js";
|
|
51
|
+
import {
|
|
52
|
+
InstantBankCreditTransferPaymentMethod,
|
|
53
|
+
InstantBankCreditTransferPaymentMethod$inboundSchema,
|
|
54
|
+
InstantBankCreditTransferPaymentMethod$Outbound,
|
|
55
|
+
InstantBankCreditTransferPaymentMethod$outboundSchema,
|
|
56
|
+
} from "./instantbankcredittransferpaymentmethod.js";
|
|
57
|
+
import {
|
|
58
|
+
MoovWalletTransferPaymentMethod,
|
|
59
|
+
MoovWalletTransferPaymentMethod$inboundSchema,
|
|
60
|
+
MoovWalletTransferPaymentMethod$Outbound,
|
|
61
|
+
MoovWalletTransferPaymentMethod$outboundSchema,
|
|
62
|
+
} from "./moovwallettransferpaymentmethod.js";
|
|
63
|
+
import {
|
|
64
|
+
PullFromCardTransferPaymentMethod,
|
|
65
|
+
PullFromCardTransferPaymentMethod$inboundSchema,
|
|
66
|
+
PullFromCardTransferPaymentMethod$Outbound,
|
|
67
|
+
PullFromCardTransferPaymentMethod$outboundSchema,
|
|
68
|
+
} from "./pullfromcardtransferpaymentmethod.js";
|
|
69
|
+
import {
|
|
70
|
+
PushToCardTransferPaymentMethod,
|
|
71
|
+
PushToCardTransferPaymentMethod$inboundSchema,
|
|
72
|
+
PushToCardTransferPaymentMethod$Outbound,
|
|
73
|
+
PushToCardTransferPaymentMethod$outboundSchema,
|
|
74
|
+
} from "./pushtocardtransferpaymentmethod.js";
|
|
75
|
+
import {
|
|
76
|
+
RtpCreditTransferPaymentMethod,
|
|
77
|
+
RtpCreditTransferPaymentMethod$inboundSchema,
|
|
78
|
+
RtpCreditTransferPaymentMethod$Outbound,
|
|
79
|
+
RtpCreditTransferPaymentMethod$outboundSchema,
|
|
80
|
+
} from "./rtpcredittransferpaymentmethod.js";
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* A method of moving money
|
|
84
|
+
*/
|
|
85
|
+
export type TransferPaymentMethod =
|
|
86
|
+
| MoovWalletTransferPaymentMethod
|
|
87
|
+
| AchDebitFundTransferPaymentMethod
|
|
88
|
+
| AchDebitCollectTransferPaymentMethod
|
|
89
|
+
| AchCreditStandardTransferPaymentMethod
|
|
90
|
+
| AchCreditSameDayTransferPaymentMethod
|
|
91
|
+
| RtpCreditTransferPaymentMethod
|
|
92
|
+
| CardPaymentTransferPaymentMethod
|
|
93
|
+
| PushToCardTransferPaymentMethod
|
|
94
|
+
| PullFromCardTransferPaymentMethod
|
|
95
|
+
| ApplePayTransferPaymentMethod
|
|
96
|
+
| CardPresentPaymentTransferPaymentMethod
|
|
97
|
+
| InstantBankCreditTransferPaymentMethod;
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const TransferPaymentMethod$inboundSchema: z.ZodType<
|
|
101
|
+
TransferPaymentMethod,
|
|
102
|
+
z.ZodTypeDef,
|
|
103
|
+
unknown
|
|
104
|
+
> = z.union([
|
|
105
|
+
MoovWalletTransferPaymentMethod$inboundSchema,
|
|
106
|
+
AchDebitFundTransferPaymentMethod$inboundSchema,
|
|
107
|
+
AchDebitCollectTransferPaymentMethod$inboundSchema,
|
|
108
|
+
AchCreditStandardTransferPaymentMethod$inboundSchema,
|
|
109
|
+
AchCreditSameDayTransferPaymentMethod$inboundSchema,
|
|
110
|
+
RtpCreditTransferPaymentMethod$inboundSchema,
|
|
111
|
+
CardPaymentTransferPaymentMethod$inboundSchema,
|
|
112
|
+
PushToCardTransferPaymentMethod$inboundSchema,
|
|
113
|
+
PullFromCardTransferPaymentMethod$inboundSchema,
|
|
114
|
+
ApplePayTransferPaymentMethod$inboundSchema,
|
|
115
|
+
CardPresentPaymentTransferPaymentMethod$inboundSchema,
|
|
116
|
+
InstantBankCreditTransferPaymentMethod$inboundSchema,
|
|
117
|
+
]);
|
|
118
|
+
/** @internal */
|
|
119
|
+
export type TransferPaymentMethod$Outbound =
|
|
120
|
+
| MoovWalletTransferPaymentMethod$Outbound
|
|
121
|
+
| AchDebitFundTransferPaymentMethod$Outbound
|
|
122
|
+
| AchDebitCollectTransferPaymentMethod$Outbound
|
|
123
|
+
| AchCreditStandardTransferPaymentMethod$Outbound
|
|
124
|
+
| AchCreditSameDayTransferPaymentMethod$Outbound
|
|
125
|
+
| RtpCreditTransferPaymentMethod$Outbound
|
|
126
|
+
| CardPaymentTransferPaymentMethod$Outbound
|
|
127
|
+
| PushToCardTransferPaymentMethod$Outbound
|
|
128
|
+
| PullFromCardTransferPaymentMethod$Outbound
|
|
129
|
+
| ApplePayTransferPaymentMethod$Outbound
|
|
130
|
+
| CardPresentPaymentTransferPaymentMethod$Outbound
|
|
131
|
+
| InstantBankCreditTransferPaymentMethod$Outbound;
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const TransferPaymentMethod$outboundSchema: z.ZodType<
|
|
135
|
+
TransferPaymentMethod$Outbound,
|
|
136
|
+
z.ZodTypeDef,
|
|
137
|
+
TransferPaymentMethod
|
|
138
|
+
> = z.union([
|
|
139
|
+
MoovWalletTransferPaymentMethod$outboundSchema,
|
|
140
|
+
AchDebitFundTransferPaymentMethod$outboundSchema,
|
|
141
|
+
AchDebitCollectTransferPaymentMethod$outboundSchema,
|
|
142
|
+
AchCreditStandardTransferPaymentMethod$outboundSchema,
|
|
143
|
+
AchCreditSameDayTransferPaymentMethod$outboundSchema,
|
|
144
|
+
RtpCreditTransferPaymentMethod$outboundSchema,
|
|
145
|
+
CardPaymentTransferPaymentMethod$outboundSchema,
|
|
146
|
+
PushToCardTransferPaymentMethod$outboundSchema,
|
|
147
|
+
PullFromCardTransferPaymentMethod$outboundSchema,
|
|
148
|
+
ApplePayTransferPaymentMethod$outboundSchema,
|
|
149
|
+
CardPresentPaymentTransferPaymentMethod$outboundSchema,
|
|
150
|
+
InstantBankCreditTransferPaymentMethod$outboundSchema,
|
|
151
|
+
]);
|
|
152
|
+
|
|
153
|
+
export function transferPaymentMethodToJSON(
|
|
154
|
+
transferPaymentMethod: TransferPaymentMethod,
|
|
155
|
+
): string {
|
|
156
|
+
return JSON.stringify(
|
|
157
|
+
TransferPaymentMethod$outboundSchema.parse(transferPaymentMethod),
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
export function transferPaymentMethodFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<TransferPaymentMethod, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => TransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'TransferPaymentMethod' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|