@moovio/sdk 0.22.3 → 0.22.4
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 +6 -6
- package/bin/mcp-server.js +219 -41
- package/bin/mcp-server.js.map +26 -21
- package/examples/package-lock.json +1 -1
- package/funcs/bankAccountsGetVerification.d.ts +1 -1
- package/funcs/bankAccountsGetVerification.js +1 -1
- package/funcs/bankAccountsInitiateVerification.d.ts +2 -2
- package/funcs/bankAccountsInitiateVerification.js +2 -2
- 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/mcp-server/tools/bankAccountsGetVerification.js +1 -1
- package/mcp-server/tools/bankAccountsInitiateVerification.js +2 -2
- package/models/components/accountfees.d.ts +49 -0
- package/models/components/accountfees.d.ts.map +1 -0
- package/models/components/accountfees.js +69 -0
- package/models/components/accountfees.js.map +1 -0
- package/models/components/bankaccountexception.d.ts +26 -0
- package/models/components/bankaccountexception.d.ts.map +1 -1
- package/models/components/bankaccountexception.js +2 -0
- package/models/components/bankaccountexception.js.map +1 -1
- package/models/components/bankaccountstatusreason.d.ts +1 -0
- package/models/components/bankaccountstatusreason.d.ts.map +1 -1
- package/models/components/bankaccountstatusreason.js +1 -0
- package/models/components/bankaccountstatusreason.js.map +1 -1
- package/models/components/billingcountandamount.d.ts +0 -3
- package/models/components/billingcountandamount.d.ts.map +1 -1
- package/models/components/billingcountandamount.js.map +1 -1
- package/models/components/billingsummary.d.ts +198 -17
- package/models/components/billingsummary.d.ts.map +1 -1
- package/models/components/billingsummary.js +106 -9
- package/models/components/billingsummary.js.map +1 -1
- package/models/components/billingsummarydetails.d.ts +51 -5
- package/models/components/billingsummarydetails.d.ts.map +1 -1
- package/models/components/billingsummarydetails.js +27 -3
- package/models/components/billingsummarydetails.js.map +1 -1
- package/models/components/cardbrandfees.d.ts +0 -3
- package/models/components/cardbrandfees.d.ts.map +1 -1
- package/models/components/cardbrandfees.js.map +1 -1
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/partnerfees.d.ts +34 -0
- package/models/components/partnerfees.d.ts.map +1 -0
- package/models/components/partnerfees.js +63 -0
- package/models/components/partnerfees.js.map +1 -0
- package/models/components/platformfees.d.ts +3 -1
- package/models/components/platformfees.d.ts.map +1 -1
- package/models/components/platformfees.js.map +1 -1
- package/models/components/runtransfer.d.ts +9 -0
- package/models/components/runtransfer.d.ts.map +1 -1
- package/models/components/runtransfer.js +3 -0
- package/models/components/runtransfer.js.map +1 -1
- package/models/components/scheduledtransferlineitem.d.ts +45 -0
- package/models/components/scheduledtransferlineitem.d.ts.map +1 -0
- package/models/components/scheduledtransferlineitem.js +68 -0
- package/models/components/scheduledtransferlineitem.js.map +1 -0
- package/models/components/scheduledtransferlineitemoption.d.ts +39 -0
- package/models/components/scheduledtransferlineitemoption.d.ts.map +1 -0
- package/models/components/scheduledtransferlineitemoption.js +65 -0
- package/models/components/scheduledtransferlineitemoption.js.map +1 -0
- package/models/components/scheduledtransferlineitems.d.ts +27 -0
- package/models/components/scheduledtransferlineitems.d.ts.map +1 -0
- package/models/components/scheduledtransferlineitems.js +59 -0
- package/models/components/scheduledtransferlineitems.js.map +1 -0
- package/models/components/statement.d.ts +17 -3
- package/models/components/statement.d.ts.map +1 -1
- package/models/components/statement.js +6 -0
- package/models/components/statement.js.map +1 -1
- package/package.json +1 -1
- package/sdk/bankaccounts.d.ts +3 -3
- package/sdk/bankaccounts.js +3 -3
- package/src/funcs/bankAccountsGetVerification.ts +1 -1
- package/src/funcs/bankAccountsInitiateVerification.ts +2 -2
- 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/mcp-server/tools/bankAccountsGetVerification.ts +1 -1
- package/src/mcp-server/tools/bankAccountsInitiateVerification.ts +2 -2
- package/src/models/components/accountfees.ts +94 -0
- package/src/models/components/bankaccountexception.ts +28 -0
- package/src/models/components/bankaccountstatusreason.ts +1 -0
- package/src/models/components/billingcountandamount.ts +0 -3
- package/src/models/components/billingsummary.ts +355 -25
- package/src/models/components/billingsummarydetails.ts +87 -7
- package/src/models/components/cardbrandfees.ts +0 -3
- package/src/models/components/index.ts +5 -0
- package/src/models/components/partnerfees.ts +73 -0
- package/src/models/components/platformfees.ts +3 -1
- package/src/models/components/runtransfer.ts +16 -0
- package/src/models/components/scheduledtransferlineitem.ts +97 -0
- package/src/models/components/scheduledtransferlineitemoption.ts +86 -0
- package/src/models/components/scheduledtransferlineitems.ts +66 -0
- package/src/models/components/statement.ts +31 -3
- package/src/sdk/bankaccounts.ts +3 -3
|
@@ -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
|
+
BillingCountAndAmount,
|
|
11
|
+
BillingCountAndAmount$inboundSchema,
|
|
12
|
+
BillingCountAndAmount$Outbound,
|
|
13
|
+
BillingCountAndAmount$outboundSchema,
|
|
14
|
+
} from "./billingcountandamount.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Monthly partner costs that are charged separately and not included in residual subtotal (e.g. platform fees, minimums).
|
|
18
|
+
*/
|
|
19
|
+
export type PartnerFees = {
|
|
20
|
+
/**
|
|
21
|
+
* The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference.
|
|
22
|
+
*/
|
|
23
|
+
minimumCommitment?: BillingCountAndAmount | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Fixed recurring fee for the billing period regardless of usage.
|
|
26
|
+
*/
|
|
27
|
+
monthlyPlatform?: BillingCountAndAmount | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Total partner fees.
|
|
30
|
+
*/
|
|
31
|
+
total: BillingCountAndAmount;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const PartnerFees$inboundSchema: z.ZodType<
|
|
36
|
+
PartnerFees,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
minimumCommitment: BillingCountAndAmount$inboundSchema.optional(),
|
|
41
|
+
monthlyPlatform: BillingCountAndAmount$inboundSchema.optional(),
|
|
42
|
+
total: BillingCountAndAmount$inboundSchema,
|
|
43
|
+
});
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type PartnerFees$Outbound = {
|
|
46
|
+
minimumCommitment?: BillingCountAndAmount$Outbound | undefined;
|
|
47
|
+
monthlyPlatform?: BillingCountAndAmount$Outbound | undefined;
|
|
48
|
+
total: BillingCountAndAmount$Outbound;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const PartnerFees$outboundSchema: z.ZodType<
|
|
53
|
+
PartnerFees$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
PartnerFees
|
|
56
|
+
> = z.object({
|
|
57
|
+
minimumCommitment: BillingCountAndAmount$outboundSchema.optional(),
|
|
58
|
+
monthlyPlatform: BillingCountAndAmount$outboundSchema.optional(),
|
|
59
|
+
total: BillingCountAndAmount$outboundSchema,
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export function partnerFeesToJSON(partnerFees: PartnerFees): string {
|
|
63
|
+
return JSON.stringify(PartnerFees$outboundSchema.parse(partnerFees));
|
|
64
|
+
}
|
|
65
|
+
export function partnerFeesFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<PartnerFees, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => PartnerFees$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'PartnerFees' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -14,7 +14,9 @@ import {
|
|
|
14
14
|
} from "./amountdecimal.js";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* A detailed breakdown of platform fees.
|
|
17
|
+
* A detailed breakdown of platform fees. This field is deprecated and will be removed in a future release. Use accountFees.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
18
20
|
*/
|
|
19
21
|
export type PlatformFees = {
|
|
20
22
|
/**
|
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
Amount$Outbound,
|
|
13
13
|
Amount$outboundSchema,
|
|
14
14
|
} from "./amount.js";
|
|
15
|
+
import {
|
|
16
|
+
ScheduledTransferLineItems,
|
|
17
|
+
ScheduledTransferLineItems$inboundSchema,
|
|
18
|
+
ScheduledTransferLineItems$Outbound,
|
|
19
|
+
ScheduledTransferLineItems$outboundSchema,
|
|
20
|
+
} from "./scheduledtransferlineitems.js";
|
|
15
21
|
import {
|
|
16
22
|
SchedulePaymentMethod,
|
|
17
23
|
SchedulePaymentMethod$inboundSchema,
|
|
@@ -35,6 +41,13 @@ export type RunTransfer = {
|
|
|
35
41
|
* Simple description to place on the transfer.
|
|
36
42
|
*/
|
|
37
43
|
description: string;
|
|
44
|
+
/**
|
|
45
|
+
* An optional collection of line items for a scheduled transfer.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* When line items are provided their total must equal `amount` minus `salesTaxAmount`.
|
|
49
|
+
*/
|
|
50
|
+
lineItems?: ScheduledTransferLineItems | undefined;
|
|
38
51
|
};
|
|
39
52
|
|
|
40
53
|
/** @internal */
|
|
@@ -49,6 +62,7 @@ export const RunTransfer$inboundSchema: z.ZodType<
|
|
|
49
62
|
partnerAccountID: z.string(),
|
|
50
63
|
source: SchedulePaymentMethod$inboundSchema,
|
|
51
64
|
description: z.string(),
|
|
65
|
+
lineItems: ScheduledTransferLineItems$inboundSchema.optional(),
|
|
52
66
|
});
|
|
53
67
|
/** @internal */
|
|
54
68
|
export type RunTransfer$Outbound = {
|
|
@@ -58,6 +72,7 @@ export type RunTransfer$Outbound = {
|
|
|
58
72
|
partnerAccountID: string;
|
|
59
73
|
source: SchedulePaymentMethod$Outbound;
|
|
60
74
|
description: string;
|
|
75
|
+
lineItems?: ScheduledTransferLineItems$Outbound | undefined;
|
|
61
76
|
};
|
|
62
77
|
|
|
63
78
|
/** @internal */
|
|
@@ -72,6 +87,7 @@ export const RunTransfer$outboundSchema: z.ZodType<
|
|
|
72
87
|
partnerAccountID: z.string(),
|
|
73
88
|
source: SchedulePaymentMethod$outboundSchema,
|
|
74
89
|
description: z.string(),
|
|
90
|
+
lineItems: ScheduledTransferLineItems$outboundSchema.optional(),
|
|
75
91
|
});
|
|
76
92
|
|
|
77
93
|
export function runTransferToJSON(runTransfer: RunTransfer): string {
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
AmountDecimal,
|
|
11
|
+
AmountDecimal$inboundSchema,
|
|
12
|
+
AmountDecimal$Outbound,
|
|
13
|
+
AmountDecimal$outboundSchema,
|
|
14
|
+
} from "./amountdecimal.js";
|
|
15
|
+
import {
|
|
16
|
+
ScheduledTransferLineItemOption,
|
|
17
|
+
ScheduledTransferLineItemOption$inboundSchema,
|
|
18
|
+
ScheduledTransferLineItemOption$Outbound,
|
|
19
|
+
ScheduledTransferLineItemOption$outboundSchema,
|
|
20
|
+
} from "./scheduledtransferlineitemoption.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Represents a single item in a scheduled transfer, including optional modifiers and quantity.
|
|
24
|
+
*/
|
|
25
|
+
export type ScheduledTransferLineItem = {
|
|
26
|
+
/**
|
|
27
|
+
* The name of the item.
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* The base price of the item before applying option modifiers.
|
|
32
|
+
*/
|
|
33
|
+
basePrice: AmountDecimal;
|
|
34
|
+
/**
|
|
35
|
+
* The quantity of this item.
|
|
36
|
+
*/
|
|
37
|
+
quantity: number;
|
|
38
|
+
/**
|
|
39
|
+
* Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
|
|
40
|
+
*/
|
|
41
|
+
options?: Array<ScheduledTransferLineItemOption> | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Optional unique identifier associating the line item with a product.
|
|
44
|
+
*/
|
|
45
|
+
productID?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const ScheduledTransferLineItem$inboundSchema: z.ZodType<
|
|
50
|
+
ScheduledTransferLineItem,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
unknown
|
|
53
|
+
> = z.object({
|
|
54
|
+
name: z.string(),
|
|
55
|
+
basePrice: AmountDecimal$inboundSchema,
|
|
56
|
+
quantity: z.number().int(),
|
|
57
|
+
options: z.array(ScheduledTransferLineItemOption$inboundSchema).optional(),
|
|
58
|
+
productID: z.string().optional(),
|
|
59
|
+
});
|
|
60
|
+
/** @internal */
|
|
61
|
+
export type ScheduledTransferLineItem$Outbound = {
|
|
62
|
+
name: string;
|
|
63
|
+
basePrice: AmountDecimal$Outbound;
|
|
64
|
+
quantity: number;
|
|
65
|
+
options?: Array<ScheduledTransferLineItemOption$Outbound> | undefined;
|
|
66
|
+
productID?: string | undefined;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const ScheduledTransferLineItem$outboundSchema: z.ZodType<
|
|
71
|
+
ScheduledTransferLineItem$Outbound,
|
|
72
|
+
z.ZodTypeDef,
|
|
73
|
+
ScheduledTransferLineItem
|
|
74
|
+
> = z.object({
|
|
75
|
+
name: z.string(),
|
|
76
|
+
basePrice: AmountDecimal$outboundSchema,
|
|
77
|
+
quantity: z.number().int(),
|
|
78
|
+
options: z.array(ScheduledTransferLineItemOption$outboundSchema).optional(),
|
|
79
|
+
productID: z.string().optional(),
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export function scheduledTransferLineItemToJSON(
|
|
83
|
+
scheduledTransferLineItem: ScheduledTransferLineItem,
|
|
84
|
+
): string {
|
|
85
|
+
return JSON.stringify(
|
|
86
|
+
ScheduledTransferLineItem$outboundSchema.parse(scheduledTransferLineItem),
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
export function scheduledTransferLineItemFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<ScheduledTransferLineItem, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => ScheduledTransferLineItem$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'ScheduledTransferLineItem' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
AmountDecimal,
|
|
11
|
+
AmountDecimal$inboundSchema,
|
|
12
|
+
AmountDecimal$Outbound,
|
|
13
|
+
AmountDecimal$outboundSchema,
|
|
14
|
+
} from "./amountdecimal.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Represents a modifier or option applied to a scheduled transfer line item.
|
|
18
|
+
*/
|
|
19
|
+
export type ScheduledTransferLineItemOption = {
|
|
20
|
+
/**
|
|
21
|
+
* The name of the option or modifier.
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* The quantity of this option.
|
|
26
|
+
*/
|
|
27
|
+
quantity: number;
|
|
28
|
+
/**
|
|
29
|
+
* Optional price modification applied by this option. Can be positive, negative, or zero.
|
|
30
|
+
*/
|
|
31
|
+
priceModifier?: AmountDecimal | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Optional group identifier to categorize related options (e.g., 'toppings').
|
|
34
|
+
*/
|
|
35
|
+
group?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ScheduledTransferLineItemOption$inboundSchema: z.ZodType<
|
|
40
|
+
ScheduledTransferLineItemOption,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
name: z.string(),
|
|
45
|
+
quantity: z.number().int(),
|
|
46
|
+
priceModifier: AmountDecimal$inboundSchema.optional(),
|
|
47
|
+
group: z.string().optional(),
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type ScheduledTransferLineItemOption$Outbound = {
|
|
51
|
+
name: string;
|
|
52
|
+
quantity: number;
|
|
53
|
+
priceModifier?: AmountDecimal$Outbound | undefined;
|
|
54
|
+
group?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const ScheduledTransferLineItemOption$outboundSchema: z.ZodType<
|
|
59
|
+
ScheduledTransferLineItemOption$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
ScheduledTransferLineItemOption
|
|
62
|
+
> = z.object({
|
|
63
|
+
name: z.string(),
|
|
64
|
+
quantity: z.number().int(),
|
|
65
|
+
priceModifier: AmountDecimal$outboundSchema.optional(),
|
|
66
|
+
group: z.string().optional(),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function scheduledTransferLineItemOptionToJSON(
|
|
70
|
+
scheduledTransferLineItemOption: ScheduledTransferLineItemOption,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
ScheduledTransferLineItemOption$outboundSchema.parse(
|
|
74
|
+
scheduledTransferLineItemOption,
|
|
75
|
+
),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
export function scheduledTransferLineItemOptionFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<ScheduledTransferLineItemOption, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => ScheduledTransferLineItemOption$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'ScheduledTransferLineItemOption' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
ScheduledTransferLineItem,
|
|
11
|
+
ScheduledTransferLineItem$inboundSchema,
|
|
12
|
+
ScheduledTransferLineItem$Outbound,
|
|
13
|
+
ScheduledTransferLineItem$outboundSchema,
|
|
14
|
+
} from "./scheduledtransferlineitem.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* An optional collection of line items for a scheduled transfer.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* When line items are provided their total must equal `amount` minus `salesTaxAmount`.
|
|
21
|
+
*/
|
|
22
|
+
export type ScheduledTransferLineItems = {
|
|
23
|
+
/**
|
|
24
|
+
* The list of line items.
|
|
25
|
+
*/
|
|
26
|
+
items: Array<ScheduledTransferLineItem>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ScheduledTransferLineItems$inboundSchema: z.ZodType<
|
|
31
|
+
ScheduledTransferLineItems,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
items: z.array(ScheduledTransferLineItem$inboundSchema),
|
|
36
|
+
});
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type ScheduledTransferLineItems$Outbound = {
|
|
39
|
+
items: Array<ScheduledTransferLineItem$Outbound>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ScheduledTransferLineItems$outboundSchema: z.ZodType<
|
|
44
|
+
ScheduledTransferLineItems$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
ScheduledTransferLineItems
|
|
47
|
+
> = z.object({
|
|
48
|
+
items: z.array(ScheduledTransferLineItem$outboundSchema),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function scheduledTransferLineItemsToJSON(
|
|
52
|
+
scheduledTransferLineItems: ScheduledTransferLineItems,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
ScheduledTransferLineItems$outboundSchema.parse(scheduledTransferLineItems),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
export function scheduledTransferLineItemsFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<ScheduledTransferLineItems, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => ScheduledTransferLineItems$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'ScheduledTransferLineItems' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -6,6 +6,12 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AccountFees,
|
|
11
|
+
AccountFees$inboundSchema,
|
|
12
|
+
AccountFees$Outbound,
|
|
13
|
+
AccountFees$outboundSchema,
|
|
14
|
+
} from "./accountfees.js";
|
|
9
15
|
import {
|
|
10
16
|
ACHFees,
|
|
11
17
|
ACHFees$inboundSchema,
|
|
@@ -36,6 +42,12 @@ import {
|
|
|
36
42
|
OtherCardFees$Outbound,
|
|
37
43
|
OtherCardFees$outboundSchema,
|
|
38
44
|
} from "./othercardfees.js";
|
|
45
|
+
import {
|
|
46
|
+
PartnerFees,
|
|
47
|
+
PartnerFees$inboundSchema,
|
|
48
|
+
PartnerFees$Outbound,
|
|
49
|
+
PartnerFees$outboundSchema,
|
|
50
|
+
} from "./partnerfees.js";
|
|
39
51
|
import {
|
|
40
52
|
PlatformFees,
|
|
41
53
|
PlatformFees$inboundSchema,
|
|
@@ -76,11 +88,11 @@ export type Statement = {
|
|
|
76
88
|
*/
|
|
77
89
|
subscriptionIDs: Array<string>;
|
|
78
90
|
/**
|
|
79
|
-
* A summary of all fees included in
|
|
91
|
+
* A summary of all fees included in a statement.
|
|
80
92
|
*/
|
|
81
93
|
summary: BillingSummary;
|
|
82
94
|
/**
|
|
83
|
-
* A detailed breakdown of card acquiring fees.
|
|
95
|
+
* A detailed breakdown of card acquiring fees by card brand.
|
|
84
96
|
*/
|
|
85
97
|
cardAcquiringFees?: CardAcquiringFees | undefined;
|
|
86
98
|
/**
|
|
@@ -92,13 +104,23 @@ export type Statement = {
|
|
|
92
104
|
*/
|
|
93
105
|
instantPaymentFees?: InstantPaymentFees | undefined;
|
|
94
106
|
/**
|
|
95
|
-
* A detailed breakdown of platform fees.
|
|
107
|
+
* A detailed breakdown of platform fees. This field is deprecated and will be removed in a future release. Use accountFees.
|
|
108
|
+
*
|
|
109
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
96
110
|
*/
|
|
97
111
|
platformFees?: PlatformFees | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* A detailed breakdown of account fees.
|
|
114
|
+
*/
|
|
115
|
+
accountFees?: AccountFees | undefined;
|
|
98
116
|
/**
|
|
99
117
|
* A detailed breakdown of other card-related fees.
|
|
100
118
|
*/
|
|
101
119
|
otherCardFees?: OtherCardFees | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Monthly partner costs that are charged separately and not included in residual subtotal (e.g. platform fees, minimums).
|
|
122
|
+
*/
|
|
123
|
+
partnerFees?: PartnerFees | undefined;
|
|
102
124
|
/**
|
|
103
125
|
* The date and time the statement was created.
|
|
104
126
|
*/
|
|
@@ -131,7 +153,9 @@ export const Statement$inboundSchema: z.ZodType<
|
|
|
131
153
|
achFees: ACHFees$inboundSchema.optional(),
|
|
132
154
|
instantPaymentFees: InstantPaymentFees$inboundSchema.optional(),
|
|
133
155
|
platformFees: PlatformFees$inboundSchema.optional(),
|
|
156
|
+
accountFees: AccountFees$inboundSchema.optional(),
|
|
134
157
|
otherCardFees: OtherCardFees$inboundSchema.optional(),
|
|
158
|
+
partnerFees: PartnerFees$inboundSchema.optional(),
|
|
135
159
|
createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
136
160
|
updatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
137
161
|
});
|
|
@@ -149,7 +173,9 @@ export type Statement$Outbound = {
|
|
|
149
173
|
achFees?: ACHFees$Outbound | undefined;
|
|
150
174
|
instantPaymentFees?: InstantPaymentFees$Outbound | undefined;
|
|
151
175
|
platformFees?: PlatformFees$Outbound | undefined;
|
|
176
|
+
accountFees?: AccountFees$Outbound | undefined;
|
|
152
177
|
otherCardFees?: OtherCardFees$Outbound | undefined;
|
|
178
|
+
partnerFees?: PartnerFees$Outbound | undefined;
|
|
153
179
|
createdOn: string;
|
|
154
180
|
updatedOn: string;
|
|
155
181
|
};
|
|
@@ -172,7 +198,9 @@ export const Statement$outboundSchema: z.ZodType<
|
|
|
172
198
|
achFees: ACHFees$outboundSchema.optional(),
|
|
173
199
|
instantPaymentFees: InstantPaymentFees$outboundSchema.optional(),
|
|
174
200
|
platformFees: PlatformFees$outboundSchema.optional(),
|
|
201
|
+
accountFees: AccountFees$outboundSchema.optional(),
|
|
175
202
|
otherCardFees: OtherCardFees$outboundSchema.optional(),
|
|
203
|
+
partnerFees: PartnerFees$outboundSchema.optional(),
|
|
176
204
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
177
205
|
updatedOn: z.date().transform(v => v.toISOString()),
|
|
178
206
|
});
|
package/src/sdk/bankaccounts.ts
CHANGED
|
@@ -139,7 +139,7 @@ export class BankAccounts extends ClientSDK {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
* Retrieve the current status and details of an instant verification, including whether the verification method was instant or same-day
|
|
142
|
+
* Retrieve the current status and details of an instant verification, including whether the verification method was instant (RTP or FedNow) or same-day
|
|
143
143
|
* ACH. This helps track the verification process in real-time and provides details in case of exceptions.
|
|
144
144
|
*
|
|
145
145
|
* The status will indicate the following:
|
|
@@ -167,14 +167,14 @@ export class BankAccounts extends ClientSDK {
|
|
|
167
167
|
/**
|
|
168
168
|
* Instant micro-deposit verification offers a quick and efficient way to verify bank account ownership.
|
|
169
169
|
*
|
|
170
|
-
* Send a $0.01 credit with a unique verification code via RTP or same-day ACH, depending on the receiving bank's capabilities. This
|
|
170
|
+
* Send a $0.01 credit with a unique verification code via RTP, FedNow, or same-day ACH, depending on the receiving bank's capabilities. This
|
|
171
171
|
* feature provides a faster alternative to traditional methods, allowing verification in a single session.
|
|
172
172
|
*
|
|
173
173
|
* It is recommended to use the `X-Wait-For: rail-response` header to synchronously receive the outcome of the instant credit in the
|
|
174
174
|
* response payload.
|
|
175
175
|
*
|
|
176
176
|
* Possible verification methods:
|
|
177
|
-
* - `instant`: Real-time verification credit sent via RTP
|
|
177
|
+
* - `instant`: Real-time verification credit sent via RTP or FedNow
|
|
178
178
|
* - `ach`: Verification credit sent via same-day ACH
|
|
179
179
|
*
|
|
180
180
|
* Possible statuses:
|