@moovio/sdk 0.23.4 → 0.23.6
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,75 @@
|
|
|
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 AchCreditStandardTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "ach-credit-standard";
|
|
22
|
+
/**
|
|
23
|
+
* A bank account as contained within a payment method.
|
|
24
|
+
*/
|
|
25
|
+
bankAccount: TransferPaymentMethodsBankAccount;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const AchCreditStandardTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
AchCreditStandardTransferPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("ach-credit-standard"),
|
|
36
|
+
bankAccount: TransferPaymentMethodsBankAccount$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type AchCreditStandardTransferPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "ach-credit-standard";
|
|
42
|
+
bankAccount: TransferPaymentMethodsBankAccount$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const AchCreditStandardTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
AchCreditStandardTransferPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
AchCreditStandardTransferPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("ach-credit-standard"),
|
|
53
|
+
bankAccount: TransferPaymentMethodsBankAccount$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function achCreditStandardTransferPaymentMethodToJSON(
|
|
57
|
+
achCreditStandardTransferPaymentMethod:
|
|
58
|
+
AchCreditStandardTransferPaymentMethod,
|
|
59
|
+
): string {
|
|
60
|
+
return JSON.stringify(
|
|
61
|
+
AchCreditStandardTransferPaymentMethod$outboundSchema.parse(
|
|
62
|
+
achCreditStandardTransferPaymentMethod,
|
|
63
|
+
),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
export function achCreditStandardTransferPaymentMethodFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<AchCreditStandardTransferPaymentMethod, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) =>
|
|
72
|
+
AchCreditStandardTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'AchCreditStandardTransferPaymentMethod' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 AchDebitCollectTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "ach-debit-collect";
|
|
22
|
+
/**
|
|
23
|
+
* A bank account as contained within a payment method.
|
|
24
|
+
*/
|
|
25
|
+
bankAccount: TransferPaymentMethodsBankAccount;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const AchDebitCollectTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
AchDebitCollectTransferPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("ach-debit-collect"),
|
|
36
|
+
bankAccount: TransferPaymentMethodsBankAccount$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type AchDebitCollectTransferPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "ach-debit-collect";
|
|
42
|
+
bankAccount: TransferPaymentMethodsBankAccount$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const AchDebitCollectTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
AchDebitCollectTransferPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
AchDebitCollectTransferPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("ach-debit-collect"),
|
|
53
|
+
bankAccount: TransferPaymentMethodsBankAccount$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function achDebitCollectTransferPaymentMethodToJSON(
|
|
57
|
+
achDebitCollectTransferPaymentMethod: AchDebitCollectTransferPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
AchDebitCollectTransferPaymentMethod$outboundSchema.parse(
|
|
61
|
+
achDebitCollectTransferPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function achDebitCollectTransferPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<AchDebitCollectTransferPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) =>
|
|
71
|
+
AchDebitCollectTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'AchDebitCollectTransferPaymentMethod' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -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 AchDebitFundTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "ach-debit-fund";
|
|
22
|
+
/**
|
|
23
|
+
* A bank account as contained within a payment method.
|
|
24
|
+
*/
|
|
25
|
+
bankAccount: TransferPaymentMethodsBankAccount;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const AchDebitFundTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
AchDebitFundTransferPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("ach-debit-fund"),
|
|
36
|
+
bankAccount: TransferPaymentMethodsBankAccount$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type AchDebitFundTransferPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "ach-debit-fund";
|
|
42
|
+
bankAccount: TransferPaymentMethodsBankAccount$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const AchDebitFundTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
AchDebitFundTransferPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
AchDebitFundTransferPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("ach-debit-fund"),
|
|
53
|
+
bankAccount: TransferPaymentMethodsBankAccount$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function achDebitFundTransferPaymentMethodToJSON(
|
|
57
|
+
achDebitFundTransferPaymentMethod: AchDebitFundTransferPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
AchDebitFundTransferPaymentMethod$outboundSchema.parse(
|
|
61
|
+
achDebitFundTransferPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function achDebitFundTransferPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<AchDebitFundTransferPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => AchDebitFundTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'AchDebitFundTransferPaymentMethod' 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
|
+
ApplePayResponse,
|
|
11
|
+
ApplePayResponse$inboundSchema,
|
|
12
|
+
ApplePayResponse$Outbound,
|
|
13
|
+
ApplePayResponse$outboundSchema,
|
|
14
|
+
} from "./applepayresponse.js";
|
|
15
|
+
|
|
16
|
+
export type ApplePayTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "apple-pay";
|
|
22
|
+
/**
|
|
23
|
+
* Describes an Apple Pay token on a Moov account.
|
|
24
|
+
*/
|
|
25
|
+
applePay: ApplePayResponse;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const ApplePayTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
ApplePayTransferPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("apple-pay"),
|
|
36
|
+
applePay: ApplePayResponse$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type ApplePayTransferPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "apple-pay";
|
|
42
|
+
applePay: ApplePayResponse$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const ApplePayTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
ApplePayTransferPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
ApplePayTransferPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("apple-pay"),
|
|
53
|
+
applePay: ApplePayResponse$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function applePayTransferPaymentMethodToJSON(
|
|
57
|
+
applePayTransferPaymentMethod: ApplePayTransferPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
ApplePayTransferPaymentMethod$outboundSchema.parse(
|
|
61
|
+
applePayTransferPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function applePayTransferPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<ApplePayTransferPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => ApplePayTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'ApplePayTransferPaymentMethod' 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 CardPaymentTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "card-payment";
|
|
22
|
+
/**
|
|
23
|
+
* A card as contained within a payment method.
|
|
24
|
+
*/
|
|
25
|
+
card: TransferPaymentMethodsCard;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const CardPaymentTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
CardPaymentTransferPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("card-payment"),
|
|
36
|
+
card: TransferPaymentMethodsCard$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type CardPaymentTransferPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "card-payment";
|
|
42
|
+
card: TransferPaymentMethodsCard$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const CardPaymentTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
CardPaymentTransferPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
CardPaymentTransferPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("card-payment"),
|
|
53
|
+
card: TransferPaymentMethodsCard$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function cardPaymentTransferPaymentMethodToJSON(
|
|
57
|
+
cardPaymentTransferPaymentMethod: CardPaymentTransferPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
CardPaymentTransferPaymentMethod$outboundSchema.parse(
|
|
61
|
+
cardPaymentTransferPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function cardPaymentTransferPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<CardPaymentTransferPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => CardPaymentTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'CardPaymentTransferPaymentMethod' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
TransferTerminalCard,
|
|
11
|
+
TransferTerminalCard$inboundSchema,
|
|
12
|
+
TransferTerminalCard$Outbound,
|
|
13
|
+
TransferTerminalCard$outboundSchema,
|
|
14
|
+
} from "./transferterminalcard.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A card used at point of sale terminal for a card present transaction as contained within a payment method.
|
|
18
|
+
*/
|
|
19
|
+
export type CardPresentPaymentTransferPaymentMethod = {
|
|
20
|
+
/**
|
|
21
|
+
* ID of the payment method.
|
|
22
|
+
*/
|
|
23
|
+
paymentMethodID: string;
|
|
24
|
+
paymentMethodType: "card-present-payment";
|
|
25
|
+
/**
|
|
26
|
+
* Describes payment card details captured with tap or in-person payment.
|
|
27
|
+
*/
|
|
28
|
+
terminalCard?: TransferTerminalCard | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const CardPresentPaymentTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
33
|
+
CardPresentPaymentTransferPaymentMethod,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
paymentMethodID: z.string(),
|
|
38
|
+
paymentMethodType: z.literal("card-present-payment"),
|
|
39
|
+
terminalCard: TransferTerminalCard$inboundSchema.optional(),
|
|
40
|
+
});
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type CardPresentPaymentTransferPaymentMethod$Outbound = {
|
|
43
|
+
paymentMethodID: string;
|
|
44
|
+
paymentMethodType: "card-present-payment";
|
|
45
|
+
terminalCard?: TransferTerminalCard$Outbound | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const CardPresentPaymentTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
50
|
+
CardPresentPaymentTransferPaymentMethod$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
CardPresentPaymentTransferPaymentMethod
|
|
53
|
+
> = z.object({
|
|
54
|
+
paymentMethodID: z.string(),
|
|
55
|
+
paymentMethodType: z.literal("card-present-payment"),
|
|
56
|
+
terminalCard: TransferTerminalCard$outboundSchema.optional(),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function cardPresentPaymentTransferPaymentMethodToJSON(
|
|
60
|
+
cardPresentPaymentTransferPaymentMethod:
|
|
61
|
+
CardPresentPaymentTransferPaymentMethod,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
CardPresentPaymentTransferPaymentMethod$outboundSchema.parse(
|
|
65
|
+
cardPresentPaymentTransferPaymentMethod,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
export function cardPresentPaymentTransferPaymentMethodFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<
|
|
72
|
+
CardPresentPaymentTransferPaymentMethod,
|
|
73
|
+
SDKValidationError
|
|
74
|
+
> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) =>
|
|
78
|
+
CardPresentPaymentTransferPaymentMethod$inboundSchema.parse(
|
|
79
|
+
JSON.parse(x),
|
|
80
|
+
),
|
|
81
|
+
`Failed to parse 'CardPresentPaymentTransferPaymentMethod' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -16,6 +16,7 @@ export type GeneratedBy = {
|
|
|
16
16
|
disputeID?: string | undefined;
|
|
17
17
|
accountID?: string | undefined;
|
|
18
18
|
bankAccountID?: string | undefined;
|
|
19
|
+
invoiceID?: string | undefined;
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
/** @internal */
|
|
@@ -29,6 +30,7 @@ export const GeneratedBy$inboundSchema: z.ZodType<
|
|
|
29
30
|
disputeID: z.string().optional(),
|
|
30
31
|
accountID: z.string().optional(),
|
|
31
32
|
bankAccountID: z.string().optional(),
|
|
33
|
+
invoiceID: z.string().optional(),
|
|
32
34
|
});
|
|
33
35
|
/** @internal */
|
|
34
36
|
export type GeneratedBy$Outbound = {
|
|
@@ -37,6 +39,7 @@ export type GeneratedBy$Outbound = {
|
|
|
37
39
|
disputeID?: string | undefined;
|
|
38
40
|
accountID?: string | undefined;
|
|
39
41
|
bankAccountID?: string | undefined;
|
|
42
|
+
invoiceID?: string | undefined;
|
|
40
43
|
};
|
|
41
44
|
|
|
42
45
|
/** @internal */
|
|
@@ -50,6 +53,7 @@ export const GeneratedBy$outboundSchema: z.ZodType<
|
|
|
50
53
|
disputeID: z.string().optional(),
|
|
51
54
|
accountID: z.string().optional(),
|
|
52
55
|
bankAccountID: z.string().optional(),
|
|
56
|
+
invoiceID: z.string().optional(),
|
|
53
57
|
});
|
|
54
58
|
|
|
55
59
|
export function generatedByToJSON(generatedBy: GeneratedBy): string {
|
|
@@ -11,9 +11,13 @@ export * from "./accountterminalapplication.js";
|
|
|
11
11
|
export * from "./accounttype.js";
|
|
12
12
|
export * from "./accountverificationstatus.js";
|
|
13
13
|
export * from "./achcreditsamedaypaymentmethod.js";
|
|
14
|
+
export * from "./achcreditsamedaytransferpaymentmethod.js";
|
|
14
15
|
export * from "./achcreditstandardpaymentmethod.js";
|
|
16
|
+
export * from "./achcreditstandardtransferpaymentmethod.js";
|
|
15
17
|
export * from "./achdebitcollectpaymentmethod.js";
|
|
18
|
+
export * from "./achdebitcollecttransferpaymentmethod.js";
|
|
16
19
|
export * from "./achdebitfundpaymentmethod.js";
|
|
20
|
+
export * from "./achdebitfundtransferpaymentmethod.js";
|
|
17
21
|
export * from "./achexception.js";
|
|
18
22
|
export * from "./achfees.js";
|
|
19
23
|
export * from "./achinstitution.js";
|
|
@@ -42,6 +46,7 @@ export * from "./applepayheader.js";
|
|
|
42
46
|
export * from "./applepaymerchantdomains.js";
|
|
43
47
|
export * from "./applepaypaymentmethod.js";
|
|
44
48
|
export * from "./applepayresponse.js";
|
|
49
|
+
export * from "./applepaytransferpaymentmethod.js";
|
|
45
50
|
export * from "./applicationscope.js";
|
|
46
51
|
export * from "./assignproductimage.js";
|
|
47
52
|
export * from "./assignproductimagevalidationerror.js";
|
|
@@ -106,7 +111,9 @@ export * from "./cardpaymentdetails.js";
|
|
|
106
111
|
export * from "./cardpaymentdetailserror.js";
|
|
107
112
|
export * from "./cardpaymentpaymentmethod.js";
|
|
108
113
|
export * from "./cardpaymentsettings.js";
|
|
114
|
+
export * from "./cardpaymenttransferpaymentmethod.js";
|
|
109
115
|
export * from "./cardpresentpaymentpaymentmethod.js";
|
|
116
|
+
export * from "./cardpresentpaymenttransferpaymentmethod.js";
|
|
110
117
|
export * from "./cardtransactiondetails.js";
|
|
111
118
|
export * from "./cardtransactionfailurecode.js";
|
|
112
119
|
export * from "./cardtransactionstatus.js";
|
|
@@ -263,6 +270,7 @@ export * from "./individualprofile.js";
|
|
|
263
270
|
export * from "./industrycodes.js";
|
|
264
271
|
export * from "./industrytaxonomy.js";
|
|
265
272
|
export * from "./instantbankcreditpaymentmethod.js";
|
|
273
|
+
export * from "./instantbankcredittransferpaymentmethod.js";
|
|
266
274
|
export * from "./instantpaymentfees.js";
|
|
267
275
|
export * from "./institutionssearchresponse.js";
|
|
268
276
|
export * from "./invoice.js";
|
|
@@ -322,6 +330,7 @@ export * from "./monthlyvolumerange.js";
|
|
|
322
330
|
export * from "./moovfee.js";
|
|
323
331
|
export * from "./moovfeedetails.js";
|
|
324
332
|
export * from "./moovwalletpaymentmethod.js";
|
|
333
|
+
export * from "./moovwallettransferpaymentmethod.js";
|
|
325
334
|
export * from "./mxauthorizationcode.js";
|
|
326
335
|
export * from "./mxpayload.js";
|
|
327
336
|
export * from "./occurrence.js";
|
|
@@ -383,7 +392,9 @@ export * from "./productoptionvalidationerror.js";
|
|
|
383
392
|
export * from "./productrequest.js";
|
|
384
393
|
export * from "./profile.js";
|
|
385
394
|
export * from "./pullfromcardpaymentmethod.js";
|
|
395
|
+
export * from "./pullfromcardtransferpaymentmethod.js";
|
|
386
396
|
export * from "./pushtocardpaymentmethod.js";
|
|
397
|
+
export * from "./pushtocardtransferpaymentmethod.js";
|
|
387
398
|
export * from "./qrcode.js";
|
|
388
399
|
export * from "./receiptkind.js";
|
|
389
400
|
export * from "./receiptrequest.js";
|
|
@@ -409,6 +420,7 @@ export * from "./reversedwithcancellation.js";
|
|
|
409
420
|
export * from "./reversedwithrefund.js";
|
|
410
421
|
export * from "./revoketokenrequest.js";
|
|
411
422
|
export * from "./rtpcreditpaymentmethod.js";
|
|
423
|
+
export * from "./rtpcredittransferpaymentmethod.js";
|
|
412
424
|
export * from "./rtpfailurecode.js";
|
|
413
425
|
export * from "./rtpinstitution.js";
|
|
414
426
|
export * from "./rtprejectioncode.js";
|
|
@@ -470,6 +482,7 @@ export * from "./transfer.js";
|
|
|
470
482
|
export * from "./transferaccount.js";
|
|
471
483
|
export * from "./transferachaddendarecord.js";
|
|
472
484
|
export * from "./transferdestination.js";
|
|
485
|
+
export * from "./transferentrymode.js";
|
|
473
486
|
export * from "./transferfailurereason.js";
|
|
474
487
|
export * from "./transferlineitem.js";
|
|
475
488
|
export * from "./transferlineitemimagemetadata.js";
|
|
@@ -477,8 +490,14 @@ export * from "./transferlineitemoption.js";
|
|
|
477
490
|
export * from "./transferlineitems.js";
|
|
478
491
|
export * from "./transferoptions.js";
|
|
479
492
|
export * from "./transferparty.js";
|
|
493
|
+
export * from "./transferpaymentmethod.js";
|
|
494
|
+
export * from "./transferpaymentmethodsbankaccount.js";
|
|
495
|
+
export * from "./transferpaymentmethodscard.js";
|
|
496
|
+
export * from "./transferpaymentmethodswallet.js";
|
|
497
|
+
export * from "./transferpaymentmethodtype.js";
|
|
480
498
|
export * from "./transfersource.js";
|
|
481
499
|
export * from "./transferstatus.js";
|
|
500
|
+
export * from "./transferterminalcard.js";
|
|
482
501
|
export * from "./transferwaitfor.js";
|
|
483
502
|
export * from "./underwriting.js";
|
|
484
503
|
export * from "./underwritingstatus.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Instantly send funds to a bank account.
|
|
18
|
+
*/
|
|
19
|
+
export type InstantBankCreditTransferPaymentMethod = {
|
|
20
|
+
/**
|
|
21
|
+
* ID of the payment method.
|
|
22
|
+
*/
|
|
23
|
+
paymentMethodID: string;
|
|
24
|
+
paymentMethodType: "instant-bank-credit";
|
|
25
|
+
/**
|
|
26
|
+
* A bank account as contained within a payment method.
|
|
27
|
+
*/
|
|
28
|
+
bankAccount: TransferPaymentMethodsBankAccount;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const InstantBankCreditTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
33
|
+
InstantBankCreditTransferPaymentMethod,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
paymentMethodID: z.string(),
|
|
38
|
+
paymentMethodType: z.literal("instant-bank-credit"),
|
|
39
|
+
bankAccount: TransferPaymentMethodsBankAccount$inboundSchema,
|
|
40
|
+
});
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type InstantBankCreditTransferPaymentMethod$Outbound = {
|
|
43
|
+
paymentMethodID: string;
|
|
44
|
+
paymentMethodType: "instant-bank-credit";
|
|
45
|
+
bankAccount: TransferPaymentMethodsBankAccount$Outbound;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const InstantBankCreditTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
50
|
+
InstantBankCreditTransferPaymentMethod$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
InstantBankCreditTransferPaymentMethod
|
|
53
|
+
> = z.object({
|
|
54
|
+
paymentMethodID: z.string(),
|
|
55
|
+
paymentMethodType: z.literal("instant-bank-credit"),
|
|
56
|
+
bankAccount: TransferPaymentMethodsBankAccount$outboundSchema,
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function instantBankCreditTransferPaymentMethodToJSON(
|
|
60
|
+
instantBankCreditTransferPaymentMethod:
|
|
61
|
+
InstantBankCreditTransferPaymentMethod,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
InstantBankCreditTransferPaymentMethod$outboundSchema.parse(
|
|
65
|
+
instantBankCreditTransferPaymentMethod,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
export function instantBankCreditTransferPaymentMethodFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<InstantBankCreditTransferPaymentMethod, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) =>
|
|
75
|
+
InstantBankCreditTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'InstantBankCreditTransferPaymentMethod' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|