@moovio/sdk 25.7.2 → 25.7.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/README.md +11 -7
- package/bin/mcp-server.js +491 -69
- package/bin/mcp-server.js.map +33 -15
- 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/imagemetadata.d.ts +3 -0
- package/models/components/imagemetadata.d.ts.map +1 -1
- package/models/components/imagemetadata.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 +15 -15
- 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/models/operations/getscheduledoccurrence.d.ts +2 -2
- 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/imagemetadata.ts +3 -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 +49 -49
- package/src/models/components/transferterminalcard.ts +156 -0
- package/src/models/operations/getscheduledoccurrence.ts +2 -2
|
@@ -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,6 +11,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
* Metadata about an uploaded image.
|
|
12
12
|
*/
|
|
13
13
|
export type ImageMetadata = {
|
|
14
|
+
/**
|
|
15
|
+
* Unique identifier for a image resource.
|
|
16
|
+
*/
|
|
14
17
|
imageID: string;
|
|
15
18
|
/**
|
|
16
19
|
* The ID used to get an image with the public endpoint.
|
|
@@ -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";
|
|
@@ -105,7 +110,9 @@ export * from "./cardpaymentdetails.js";
|
|
|
105
110
|
export * from "./cardpaymentdetailserror.js";
|
|
106
111
|
export * from "./cardpaymentpaymentmethod.js";
|
|
107
112
|
export * from "./cardpaymentsettings.js";
|
|
113
|
+
export * from "./cardpaymenttransferpaymentmethod.js";
|
|
108
114
|
export * from "./cardpresentpaymentpaymentmethod.js";
|
|
115
|
+
export * from "./cardpresentpaymenttransferpaymentmethod.js";
|
|
109
116
|
export * from "./cardtransactiondetails.js";
|
|
110
117
|
export * from "./cardtransactionfailurecode.js";
|
|
111
118
|
export * from "./cardtransactionstatus.js";
|
|
@@ -296,6 +303,7 @@ export * from "./monthlyvolumerange.js";
|
|
|
296
303
|
export * from "./moovfee.js";
|
|
297
304
|
export * from "./moovfeedetails.js";
|
|
298
305
|
export * from "./moovwalletpaymentmethod.js";
|
|
306
|
+
export * from "./moovwallettransferpaymentmethod.js";
|
|
299
307
|
export * from "./mxauthorizationcode.js";
|
|
300
308
|
export * from "./mxpayload.js";
|
|
301
309
|
export * from "./occurrence.js";
|
|
@@ -357,7 +365,9 @@ export * from "./productoptionvalidationerror.js";
|
|
|
357
365
|
export * from "./productrequest.js";
|
|
358
366
|
export * from "./profile.js";
|
|
359
367
|
export * from "./pullfromcardpaymentmethod.js";
|
|
368
|
+
export * from "./pullfromcardtransferpaymentmethod.js";
|
|
360
369
|
export * from "./pushtocardpaymentmethod.js";
|
|
370
|
+
export * from "./pushtocardtransferpaymentmethod.js";
|
|
361
371
|
export * from "./qrcode.js";
|
|
362
372
|
export * from "./receiptkind.js";
|
|
363
373
|
export * from "./receiptrequest.js";
|
|
@@ -383,6 +393,7 @@ export * from "./reversedwithcancellation.js";
|
|
|
383
393
|
export * from "./reversedwithrefund.js";
|
|
384
394
|
export * from "./revoketokenrequest.js";
|
|
385
395
|
export * from "./rtpcreditpaymentmethod.js";
|
|
396
|
+
export * from "./rtpcredittransferpaymentmethod.js";
|
|
386
397
|
export * from "./rtpfailurecode.js";
|
|
387
398
|
export * from "./rtpinstitution.js";
|
|
388
399
|
export * from "./rtprejectioncode.js";
|
|
@@ -444,6 +455,7 @@ export * from "./transfer.js";
|
|
|
444
455
|
export * from "./transferaccount.js";
|
|
445
456
|
export * from "./transferachaddendarecord.js";
|
|
446
457
|
export * from "./transferdestination.js";
|
|
458
|
+
export * from "./transferentrymode.js";
|
|
447
459
|
export * from "./transferfailurereason.js";
|
|
448
460
|
export * from "./transferlineitem.js";
|
|
449
461
|
export * from "./transferlineitemimagemetadata.js";
|
|
@@ -451,8 +463,14 @@ export * from "./transferlineitemoption.js";
|
|
|
451
463
|
export * from "./transferlineitems.js";
|
|
452
464
|
export * from "./transferoptions.js";
|
|
453
465
|
export * from "./transferparty.js";
|
|
466
|
+
export * from "./transferpaymentmethod.js";
|
|
467
|
+
export * from "./transferpaymentmethodsbankaccount.js";
|
|
468
|
+
export * from "./transferpaymentmethodscard.js";
|
|
469
|
+
export * from "./transferpaymentmethodswallet.js";
|
|
470
|
+
export * from "./transferpaymentmethodtype.js";
|
|
454
471
|
export * from "./transfersource.js";
|
|
455
472
|
export * from "./transferstatus.js";
|
|
473
|
+
export * from "./transferterminalcard.js";
|
|
456
474
|
export * from "./transferwaitfor.js";
|
|
457
475
|
export * from "./underwriting.js";
|
|
458
476
|
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
|
+
}
|