@moovio/sdk 25.4.3 → 25.4.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 +491 -69
- package/bin/mcp-server.js.map +31 -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 +18 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -0
- package/models/components/index.js.map +1 -1
- 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 +27 -0
- package/models/components/transferpaymentmethod.d.ts.map +1 -0
- package/models/components/transferpaymentmethod.js +89 -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 +27 -0
- package/models/components/transferpaymentmethodtype.d.ts.map +1 -0
- package/models/components/transferpaymentmethodtype.js +61 -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 +18 -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 +158 -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 +38 -0
- package/src/models/components/transfersource.ts +48 -48
- package/src/models/components/transferterminalcard.ts +156 -0
|
@@ -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";
|
|
@@ -41,6 +45,7 @@ export * from "./applepayheader.js";
|
|
|
41
45
|
export * from "./applepaymerchantdomains.js";
|
|
42
46
|
export * from "./applepaypaymentmethod.js";
|
|
43
47
|
export * from "./applepayresponse.js";
|
|
48
|
+
export * from "./applepaytransferpaymentmethod.js";
|
|
44
49
|
export * from "./applicationscope.js";
|
|
45
50
|
export * from "./assignproductimage.js";
|
|
46
51
|
export * from "./assignproductimagevalidationerror.js";
|
|
@@ -102,7 +107,9 @@ export * from "./cardpaymentdetails.js";
|
|
|
102
107
|
export * from "./cardpaymentdetailserror.js";
|
|
103
108
|
export * from "./cardpaymentpaymentmethod.js";
|
|
104
109
|
export * from "./cardpaymentsettings.js";
|
|
110
|
+
export * from "./cardpaymenttransferpaymentmethod.js";
|
|
105
111
|
export * from "./cardpresentpaymentpaymentmethod.js";
|
|
112
|
+
export * from "./cardpresentpaymenttransferpaymentmethod.js";
|
|
106
113
|
export * from "./cardtransactiondetails.js";
|
|
107
114
|
export * from "./cardtransactionfailurecode.js";
|
|
108
115
|
export * from "./cardtransactionstatus.js";
|
|
@@ -268,6 +275,7 @@ export * from "./monthlyplatformfee.js";
|
|
|
268
275
|
export * from "./moovfee.js";
|
|
269
276
|
export * from "./moovfeedetails.js";
|
|
270
277
|
export * from "./moovwalletpaymentmethod.js";
|
|
278
|
+
export * from "./moovwallettransferpaymentmethod.js";
|
|
271
279
|
export * from "./mxauthorizationcode.js";
|
|
272
280
|
export * from "./mxpayload.js";
|
|
273
281
|
export * from "./occurrence.js";
|
|
@@ -328,7 +336,9 @@ export * from "./productoptionvalidationerror.js";
|
|
|
328
336
|
export * from "./productrequest.js";
|
|
329
337
|
export * from "./profile.js";
|
|
330
338
|
export * from "./pullfromcardpaymentmethod.js";
|
|
339
|
+
export * from "./pullfromcardtransferpaymentmethod.js";
|
|
331
340
|
export * from "./pushtocardpaymentmethod.js";
|
|
341
|
+
export * from "./pushtocardtransferpaymentmethod.js";
|
|
332
342
|
export * from "./qrcode.js";
|
|
333
343
|
export * from "./receiptkind.js";
|
|
334
344
|
export * from "./receiptrequest.js";
|
|
@@ -353,6 +363,7 @@ export * from "./reversedwithcancellation.js";
|
|
|
353
363
|
export * from "./reversedwithrefund.js";
|
|
354
364
|
export * from "./revoketokenrequest.js";
|
|
355
365
|
export * from "./rtpcreditpaymentmethod.js";
|
|
366
|
+
export * from "./rtpcredittransferpaymentmethod.js";
|
|
356
367
|
export * from "./rtpfailurecode.js";
|
|
357
368
|
export * from "./rtpinstitution.js";
|
|
358
369
|
export * from "./rtprejectioncode.js";
|
|
@@ -400,6 +411,7 @@ export * from "./transfer.js";
|
|
|
400
411
|
export * from "./transferaccount.js";
|
|
401
412
|
export * from "./transferachaddendarecord.js";
|
|
402
413
|
export * from "./transferdestination.js";
|
|
414
|
+
export * from "./transferentrymode.js";
|
|
403
415
|
export * from "./transferfailurereason.js";
|
|
404
416
|
export * from "./transferlineitem.js";
|
|
405
417
|
export * from "./transferlineitemimagemetadata.js";
|
|
@@ -407,8 +419,14 @@ export * from "./transferlineitemoption.js";
|
|
|
407
419
|
export * from "./transferlineitems.js";
|
|
408
420
|
export * from "./transferoptions.js";
|
|
409
421
|
export * from "./transferparty.js";
|
|
422
|
+
export * from "./transferpaymentmethod.js";
|
|
423
|
+
export * from "./transferpaymentmethodsbankaccount.js";
|
|
424
|
+
export * from "./transferpaymentmethodscard.js";
|
|
425
|
+
export * from "./transferpaymentmethodswallet.js";
|
|
426
|
+
export * from "./transferpaymentmethodtype.js";
|
|
410
427
|
export * from "./transfersource.js";
|
|
411
428
|
export * from "./transferstatus.js";
|
|
429
|
+
export * from "./transferterminalcard.js";
|
|
412
430
|
export * from "./transferwaitfor.js";
|
|
413
431
|
export * from "./underwriting.js";
|
|
414
432
|
export * from "./underwritingstatus.js";
|
|
@@ -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
|
+
}
|