@moovio/sdk 0.0.0-dev.20 → 0.0.0-dev.22
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 +29 -42
- package/bin/mcp-server.js.map +30 -30
- 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/createdtransfer.d.ts +1 -6
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js +0 -2
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +1 -6
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js +0 -2
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/createpaymentlinkamountdetails.d.ts +5 -0
- package/models/components/createpaymentlinkamountdetails.d.ts.map +1 -1
- package/models/components/createpaymentlinkamountdetails.js +2 -0
- package/models/components/createpaymentlinkamountdetails.js.map +1 -1
- package/models/components/createpaymentlinkamountdetailsvalidationerror.d.ts +2 -0
- package/models/components/createpaymentlinkamountdetailsvalidationerror.d.ts.map +1 -1
- package/models/components/createpaymentlinkamountdetailsvalidationerror.js +2 -0
- package/models/components/createpaymentlinkamountdetailsvalidationerror.js.map +1 -1
- package/models/components/createpaymentlinklineitems.d.ts +1 -1
- package/models/components/createpaymentlinklineitemsupdate.d.ts +1 -1
- package/models/components/createtransfer.d.ts +1 -3
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +0 -2
- package/models/components/createtransfer.js.map +1 -1
- package/models/components/createtransferamountdetails.d.ts +5 -0
- package/models/components/createtransferamountdetails.d.ts.map +1 -1
- package/models/components/createtransferamountdetails.js +2 -0
- package/models/components/createtransferamountdetails.js.map +1 -1
- package/models/components/createtransferamountdetailsvalidationerror.d.ts +2 -0
- package/models/components/createtransferamountdetailsvalidationerror.d.ts.map +1 -1
- package/models/components/createtransferamountdetailsvalidationerror.js +2 -0
- package/models/components/createtransferamountdetailsvalidationerror.js.map +1 -1
- package/models/components/createtransferlineitems.d.ts +1 -1
- package/models/components/paymentlink.d.ts +1 -6
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js +0 -2
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkamountdetails.d.ts +5 -0
- package/models/components/paymentlinkamountdetails.d.ts.map +1 -1
- package/models/components/paymentlinkamountdetails.js +2 -0
- package/models/components/paymentlinkamountdetails.js.map +1 -1
- package/models/components/paymentlinklineitems.d.ts +1 -1
- package/models/components/transfer.d.ts +1 -3
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +0 -2
- package/models/components/transfer.js.map +1 -1
- package/models/components/transferamountdetails.d.ts +5 -0
- package/models/components/transferamountdetails.d.ts.map +1 -1
- package/models/components/transferamountdetails.js +2 -0
- package/models/components/transferamountdetails.js.map +1 -1
- package/models/components/transferlineitems.d.ts +1 -1
- package/models/components/updatepaymentlink.d.ts +1 -3
- package/models/components/updatepaymentlink.d.ts.map +1 -1
- package/models/components/updatepaymentlink.js +0 -2
- package/models/components/updatepaymentlink.js.map +1 -1
- package/models/components/updatepaymentlinkamountdetails.d.ts +5 -0
- package/models/components/updatepaymentlinkamountdetails.d.ts.map +1 -1
- package/models/components/updatepaymentlinkamountdetails.js +2 -0
- package/models/components/updatepaymentlinkamountdetails.js.map +1 -1
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.d.ts +2 -0
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.d.ts.map +1 -1
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.js +2 -0
- package/models/components/updatepaymentlinkamountdetailsvalidationerror.js.map +1 -1
- package/models/components/webhookdata.d.ts +2 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +2 -2
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdatabankaccountdeleted.d.ts +3 -0
- package/models/components/webhookdatabankaccountdeleted.d.ts.map +1 -1
- package/models/components/webhookdatabankaccountdeleted.js +3 -0
- package/models/components/webhookdatabankaccountdeleted.js.map +1 -1
- package/models/errors/createpaymentlinkerror.d.ts +0 -3
- package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
- package/models/errors/createpaymentlinkerror.js +0 -4
- package/models/errors/createpaymentlinkerror.js.map +1 -1
- package/models/errors/transfer.d.ts +2 -5
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +0 -4
- package/models/errors/transfer.js.map +1 -1
- package/models/errors/transfervalidationerror.d.ts +0 -3
- package/models/errors/transfervalidationerror.d.ts.map +1 -1
- package/models/errors/transfervalidationerror.js +0 -4
- package/models/errors/transfervalidationerror.js.map +1 -1
- package/models/errors/updatepaymentlinkerror.d.ts +0 -3
- package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
- package/models/errors/updatepaymentlinkerror.js +0 -4
- package/models/errors/updatepaymentlinkerror.js.map +1 -1
- 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/createdtransfer.ts +1 -8
- package/src/models/components/createpaymentlink.ts +1 -8
- package/src/models/components/createpaymentlinkamountdetails.ts +7 -0
- package/src/models/components/createpaymentlinkamountdetailsvalidationerror.ts +4 -0
- package/src/models/components/createpaymentlinklineitems.ts +1 -1
- package/src/models/components/createpaymentlinklineitemsupdate.ts +1 -1
- package/src/models/components/createtransfer.ts +1 -5
- package/src/models/components/createtransferamountdetails.ts +7 -0
- package/src/models/components/createtransferamountdetailsvalidationerror.ts +4 -0
- package/src/models/components/createtransferlineitems.ts +1 -1
- package/src/models/components/paymentlink.ts +1 -8
- package/src/models/components/paymentlinkamountdetails.ts +7 -0
- package/src/models/components/paymentlinklineitems.ts +1 -1
- package/src/models/components/transfer.ts +1 -5
- package/src/models/components/transferamountdetails.ts +7 -0
- package/src/models/components/transferlineitems.ts +1 -1
- package/src/models/components/updatepaymentlink.ts +1 -5
- package/src/models/components/updatepaymentlinkamountdetails.ts +7 -0
- package/src/models/components/updatepaymentlinkamountdetailsvalidationerror.ts +4 -0
- package/src/models/components/webhookdata.ts +4 -4
- package/src/models/components/webhookdatabankaccountdeleted.ts +9 -0
- package/src/models/errors/createpaymentlinkerror.ts +0 -8
- package/src/models/errors/transfer.ts +2 -8
- package/src/models/errors/transfervalidationerror.ts +0 -6
- package/src/models/errors/updatepaymentlinkerror.ts +0 -8
|
@@ -103,10 +103,6 @@ export type PaymentLink = {
|
|
|
103
103
|
* for `open` payment amount types.
|
|
104
104
|
*/
|
|
105
105
|
amount?: Amount | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* Optional sales tax amount.
|
|
108
|
-
*/
|
|
109
|
-
salesTaxAmount?: Amount | undefined;
|
|
110
106
|
/**
|
|
111
107
|
* The number of times this payment link has been used.
|
|
112
108
|
*/
|
|
@@ -141,7 +137,7 @@ export type PaymentLink = {
|
|
|
141
137
|
* An optional collection of line items for a payment link.
|
|
142
138
|
*
|
|
143
139
|
* @remarks
|
|
144
|
-
* When line items are provided, their total plus
|
|
140
|
+
* When line items are provided, their total plus tax must equal the payment link amount.
|
|
145
141
|
*/
|
|
146
142
|
lineItems?: PaymentLinkLineItems | undefined;
|
|
147
143
|
createdOn: Date;
|
|
@@ -166,7 +162,6 @@ export const PaymentLink$inboundSchema: z.ZodType<
|
|
|
166
162
|
merchantPaymentMethodID: types.string(),
|
|
167
163
|
link: types.string(),
|
|
168
164
|
amount: types.optional(Amount$inboundSchema),
|
|
169
|
-
salesTaxAmount: types.optional(Amount$inboundSchema),
|
|
170
165
|
uses: types.number(),
|
|
171
166
|
maxUses: types.optional(types.number()),
|
|
172
167
|
lastUsedOn: types.optional(types.date()),
|
|
@@ -193,7 +188,6 @@ export type PaymentLink$Outbound = {
|
|
|
193
188
|
merchantPaymentMethodID: string;
|
|
194
189
|
link: string;
|
|
195
190
|
amount?: Amount$Outbound | undefined;
|
|
196
|
-
salesTaxAmount?: Amount$Outbound | undefined;
|
|
197
191
|
uses: number;
|
|
198
192
|
maxUses?: number | undefined;
|
|
199
193
|
lastUsedOn?: string | undefined;
|
|
@@ -225,7 +219,6 @@ export const PaymentLink$outboundSchema: z.ZodType<
|
|
|
225
219
|
merchantPaymentMethodID: z.string(),
|
|
226
220
|
link: z.string(),
|
|
227
221
|
amount: Amount$outboundSchema.optional(),
|
|
228
|
-
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
229
222
|
uses: z.number().int(),
|
|
230
223
|
maxUses: z.number().int().optional(),
|
|
231
224
|
lastUsedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
} from "./amountdecimal.js";
|
|
16
16
|
|
|
17
17
|
export type PaymentLinkAmountDetails = {
|
|
18
|
+
/**
|
|
19
|
+
* The amount of tax applied to the payment link.
|
|
20
|
+
*/
|
|
21
|
+
tax?: AmountDecimal | undefined;
|
|
18
22
|
/**
|
|
19
23
|
* The amount of surcharge applied to the payment link.
|
|
20
24
|
*/
|
|
@@ -27,10 +31,12 @@ export const PaymentLinkAmountDetails$inboundSchema: z.ZodType<
|
|
|
27
31
|
z.ZodTypeDef,
|
|
28
32
|
unknown
|
|
29
33
|
> = z.object({
|
|
34
|
+
tax: types.optional(AmountDecimal$inboundSchema),
|
|
30
35
|
surcharge: types.optional(AmountDecimal$inboundSchema),
|
|
31
36
|
});
|
|
32
37
|
/** @internal */
|
|
33
38
|
export type PaymentLinkAmountDetails$Outbound = {
|
|
39
|
+
tax?: AmountDecimal$Outbound | undefined;
|
|
34
40
|
surcharge?: AmountDecimal$Outbound | undefined;
|
|
35
41
|
};
|
|
36
42
|
|
|
@@ -40,6 +46,7 @@ export const PaymentLinkAmountDetails$outboundSchema: z.ZodType<
|
|
|
40
46
|
z.ZodTypeDef,
|
|
41
47
|
PaymentLinkAmountDetails
|
|
42
48
|
> = z.object({
|
|
49
|
+
tax: AmountDecimal$outboundSchema.optional(),
|
|
43
50
|
surcharge: AmountDecimal$outboundSchema.optional(),
|
|
44
51
|
});
|
|
45
52
|
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
* An optional collection of line items for a payment link.
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* When line items are provided, their total plus
|
|
20
|
+
* When line items are provided, their total plus tax must equal the payment link amount.
|
|
21
21
|
*/
|
|
22
22
|
export type PaymentLinkLineItems = {
|
|
23
23
|
/**
|
|
@@ -149,7 +149,6 @@ export type Transfer = {
|
|
|
149
149
|
scheduleID?: string | undefined;
|
|
150
150
|
occurrenceID?: string | undefined;
|
|
151
151
|
paymentLinkCode?: string | undefined;
|
|
152
|
-
salesTaxAmount?: Amount | undefined;
|
|
153
152
|
/**
|
|
154
153
|
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
155
154
|
*/
|
|
@@ -158,7 +157,7 @@ export type Transfer = {
|
|
|
158
157
|
* An optional collection of line items for a transfer.
|
|
159
158
|
*
|
|
160
159
|
* @remarks
|
|
161
|
-
* When line items are provided, their total plus
|
|
160
|
+
* When line items are provided, their total plus tax must equal the transfer amount.
|
|
162
161
|
*/
|
|
163
162
|
lineItems?: TransferLineItems | undefined;
|
|
164
163
|
/**
|
|
@@ -203,7 +202,6 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
203
202
|
scheduleID: types.optional(types.string()),
|
|
204
203
|
occurrenceID: types.optional(types.string()),
|
|
205
204
|
paymentLinkCode: types.optional(types.string()),
|
|
206
|
-
salesTaxAmount: types.optional(Amount$inboundSchema),
|
|
207
205
|
foreignID: types.optional(types.string()),
|
|
208
206
|
lineItems: types.optional(TransferLineItems$inboundSchema),
|
|
209
207
|
invoiceID: types.optional(types.string()),
|
|
@@ -237,7 +235,6 @@ export type Transfer$Outbound = {
|
|
|
237
235
|
scheduleID?: string | undefined;
|
|
238
236
|
occurrenceID?: string | undefined;
|
|
239
237
|
paymentLinkCode?: string | undefined;
|
|
240
|
-
salesTaxAmount?: Amount$Outbound | undefined;
|
|
241
238
|
foreignID?: string | undefined;
|
|
242
239
|
lineItems?: TransferLineItems$Outbound | undefined;
|
|
243
240
|
invoiceID?: string | undefined;
|
|
@@ -276,7 +273,6 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
276
273
|
scheduleID: z.string().optional(),
|
|
277
274
|
occurrenceID: z.string().optional(),
|
|
278
275
|
paymentLinkCode: z.string().optional(),
|
|
279
|
-
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
280
276
|
foreignID: z.string().optional(),
|
|
281
277
|
lineItems: TransferLineItems$outboundSchema.optional(),
|
|
282
278
|
invoiceID: z.string().optional(),
|
|
@@ -19,6 +19,10 @@ export type TransferAmountDetails = {
|
|
|
19
19
|
* The amount of tip applied to the transfer.
|
|
20
20
|
*/
|
|
21
21
|
tip?: AmountDecimal | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The amount of tax applied to the transfer.
|
|
24
|
+
*/
|
|
25
|
+
tax?: AmountDecimal | undefined;
|
|
22
26
|
/**
|
|
23
27
|
* The amount of surcharge applied to the transfer.
|
|
24
28
|
*/
|
|
@@ -32,11 +36,13 @@ export const TransferAmountDetails$inboundSchema: z.ZodType<
|
|
|
32
36
|
unknown
|
|
33
37
|
> = z.object({
|
|
34
38
|
tip: types.optional(AmountDecimal$inboundSchema),
|
|
39
|
+
tax: types.optional(AmountDecimal$inboundSchema),
|
|
35
40
|
surcharge: types.optional(AmountDecimal$inboundSchema),
|
|
36
41
|
});
|
|
37
42
|
/** @internal */
|
|
38
43
|
export type TransferAmountDetails$Outbound = {
|
|
39
44
|
tip?: AmountDecimal$Outbound | undefined;
|
|
45
|
+
tax?: AmountDecimal$Outbound | undefined;
|
|
40
46
|
surcharge?: AmountDecimal$Outbound | undefined;
|
|
41
47
|
};
|
|
42
48
|
|
|
@@ -47,6 +53,7 @@ export const TransferAmountDetails$outboundSchema: z.ZodType<
|
|
|
47
53
|
TransferAmountDetails
|
|
48
54
|
> = z.object({
|
|
49
55
|
tip: AmountDecimal$outboundSchema.optional(),
|
|
56
|
+
tax: AmountDecimal$outboundSchema.optional(),
|
|
50
57
|
surcharge: AmountDecimal$outboundSchema.optional(),
|
|
51
58
|
});
|
|
52
59
|
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
* An optional collection of line items for a transfer.
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* When line items are provided, their total plus
|
|
20
|
+
* When line items are provided, their total plus tax must equal the transfer amount.
|
|
21
21
|
*/
|
|
22
22
|
export type TransferLineItems = {
|
|
23
23
|
/**
|
|
@@ -52,7 +52,6 @@ import {
|
|
|
52
52
|
|
|
53
53
|
export type UpdatePaymentLink = {
|
|
54
54
|
amount?: AmountUpdate | undefined;
|
|
55
|
-
salesTaxAmount?: AmountUpdate | undefined;
|
|
56
55
|
expiresOn?: Date | null | undefined;
|
|
57
56
|
/**
|
|
58
57
|
* Customizable display options for a payment link.
|
|
@@ -68,7 +67,7 @@ export type UpdatePaymentLink = {
|
|
|
68
67
|
* An optional collection of line items for a payment link.
|
|
69
68
|
*
|
|
70
69
|
* @remarks
|
|
71
|
-
* When line items are provided, their total plus
|
|
70
|
+
* When line items are provided, their total plus tax must equal the payment link amount.
|
|
72
71
|
*/
|
|
73
72
|
lineItems?: CreatePaymentLinkLineItemsUpdate | undefined;
|
|
74
73
|
amountDetails?: UpdatePaymentLinkAmountDetails | undefined;
|
|
@@ -81,7 +80,6 @@ export const UpdatePaymentLink$inboundSchema: z.ZodType<
|
|
|
81
80
|
unknown
|
|
82
81
|
> = z.object({
|
|
83
82
|
amount: types.optional(AmountUpdate$inboundSchema),
|
|
84
|
-
salesTaxAmount: types.optional(AmountUpdate$inboundSchema),
|
|
85
83
|
expiresOn: z.nullable(types.date()).optional(),
|
|
86
84
|
display: types.optional(PaymentLinkDisplayOptionsUpdate$inboundSchema),
|
|
87
85
|
customer: types.optional(PaymentLinkCustomerOptions$inboundSchema),
|
|
@@ -93,7 +91,6 @@ export const UpdatePaymentLink$inboundSchema: z.ZodType<
|
|
|
93
91
|
/** @internal */
|
|
94
92
|
export type UpdatePaymentLink$Outbound = {
|
|
95
93
|
amount?: AmountUpdate$Outbound | undefined;
|
|
96
|
-
salesTaxAmount?: AmountUpdate$Outbound | undefined;
|
|
97
94
|
expiresOn?: string | null | undefined;
|
|
98
95
|
display?: PaymentLinkDisplayOptionsUpdate$Outbound | undefined;
|
|
99
96
|
customer?: PaymentLinkCustomerOptions$Outbound | undefined;
|
|
@@ -110,7 +107,6 @@ export const UpdatePaymentLink$outboundSchema: z.ZodType<
|
|
|
110
107
|
UpdatePaymentLink
|
|
111
108
|
> = z.object({
|
|
112
109
|
amount: AmountUpdate$outboundSchema.optional(),
|
|
113
|
-
salesTaxAmount: AmountUpdate$outboundSchema.optional(),
|
|
114
110
|
expiresOn: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
115
111
|
display: PaymentLinkDisplayOptionsUpdate$outboundSchema.optional(),
|
|
116
112
|
customer: PaymentLinkCustomerOptions$outboundSchema.optional(),
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
} from "./amountdecimalupdate.js";
|
|
16
16
|
|
|
17
17
|
export type UpdatePaymentLinkAmountDetails = {
|
|
18
|
+
/**
|
|
19
|
+
* The amount of tax applied to the payment link.
|
|
20
|
+
*/
|
|
21
|
+
tax?: AmountDecimalUpdate | undefined;
|
|
18
22
|
/**
|
|
19
23
|
* The amount of surcharge applied to the payment link.
|
|
20
24
|
*/
|
|
@@ -27,10 +31,12 @@ export const UpdatePaymentLinkAmountDetails$inboundSchema: z.ZodType<
|
|
|
27
31
|
z.ZodTypeDef,
|
|
28
32
|
unknown
|
|
29
33
|
> = z.object({
|
|
34
|
+
tax: types.optional(AmountDecimalUpdate$inboundSchema),
|
|
30
35
|
surcharge: types.optional(AmountDecimalUpdate$inboundSchema),
|
|
31
36
|
});
|
|
32
37
|
/** @internal */
|
|
33
38
|
export type UpdatePaymentLinkAmountDetails$Outbound = {
|
|
39
|
+
tax?: AmountDecimalUpdate$Outbound | undefined;
|
|
34
40
|
surcharge?: AmountDecimalUpdate$Outbound | undefined;
|
|
35
41
|
};
|
|
36
42
|
|
|
@@ -40,6 +46,7 @@ export const UpdatePaymentLinkAmountDetails$outboundSchema: z.ZodType<
|
|
|
40
46
|
z.ZodTypeDef,
|
|
41
47
|
UpdatePaymentLinkAmountDetails
|
|
42
48
|
> = z.object({
|
|
49
|
+
tax: AmountDecimalUpdate$outboundSchema.optional(),
|
|
43
50
|
surcharge: AmountDecimalUpdate$outboundSchema.optional(),
|
|
44
51
|
});
|
|
45
52
|
|
|
@@ -9,6 +9,7 @@ import * as types from "../../types/primitives.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type UpdatePaymentLinkAmountDetailsValidationError = {
|
|
12
|
+
tax?: string | undefined;
|
|
12
13
|
surcharge?: string | undefined;
|
|
13
14
|
};
|
|
14
15
|
|
|
@@ -19,10 +20,12 @@ export const UpdatePaymentLinkAmountDetailsValidationError$inboundSchema:
|
|
|
19
20
|
z.ZodTypeDef,
|
|
20
21
|
unknown
|
|
21
22
|
> = z.object({
|
|
23
|
+
tax: types.optional(types.string()),
|
|
22
24
|
surcharge: types.optional(types.string()),
|
|
23
25
|
});
|
|
24
26
|
/** @internal */
|
|
25
27
|
export type UpdatePaymentLinkAmountDetailsValidationError$Outbound = {
|
|
28
|
+
tax?: string | undefined;
|
|
26
29
|
surcharge?: string | undefined;
|
|
27
30
|
};
|
|
28
31
|
|
|
@@ -33,6 +36,7 @@ export const UpdatePaymentLinkAmountDetailsValidationError$outboundSchema:
|
|
|
33
36
|
z.ZodTypeDef,
|
|
34
37
|
UpdatePaymentLinkAmountDetailsValidationError
|
|
35
38
|
> = z.object({
|
|
39
|
+
tax: z.string().optional(),
|
|
36
40
|
surcharge: z.string().optional(),
|
|
37
41
|
});
|
|
38
42
|
|
|
@@ -241,6 +241,7 @@ export type WebhookData =
|
|
|
241
241
|
| WebhookDataRefundUpdated
|
|
242
242
|
| WebhookDataWalletTransactionUpdated
|
|
243
243
|
| WebhookDataBankAccountCreated
|
|
244
|
+
| WebhookDataBankAccountDeleted
|
|
244
245
|
| WebhookDataCancellationCreated
|
|
245
246
|
| WebhookDataCancellationUpdated
|
|
246
247
|
| WebhookDataCardAutoUpdated
|
|
@@ -254,7 +255,6 @@ export type WebhookData =
|
|
|
254
255
|
| WebhookDataTransferCreated
|
|
255
256
|
| WebhookDataWalletUpdated
|
|
256
257
|
| WebhookDataBalanceUpdated
|
|
257
|
-
| WebhookDataBankAccountDeleted
|
|
258
258
|
| WebhookDataCapabilityRequested
|
|
259
259
|
| WebhookDataInvoiceCreated
|
|
260
260
|
| WebhookDataRepresentativeCreated
|
|
@@ -285,6 +285,7 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
285
285
|
WebhookDataRefundUpdated$inboundSchema,
|
|
286
286
|
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
287
287
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
288
|
+
WebhookDataBankAccountDeleted$inboundSchema,
|
|
288
289
|
WebhookDataCancellationCreated$inboundSchema,
|
|
289
290
|
WebhookDataCancellationUpdated$inboundSchema,
|
|
290
291
|
WebhookDataCardAutoUpdated$inboundSchema,
|
|
@@ -298,7 +299,6 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
298
299
|
WebhookDataTransferCreated$inboundSchema,
|
|
299
300
|
WebhookDataWalletUpdated$inboundSchema,
|
|
300
301
|
WebhookDataBalanceUpdated$inboundSchema,
|
|
301
|
-
WebhookDataBankAccountDeleted$inboundSchema,
|
|
302
302
|
WebhookDataCapabilityRequested$inboundSchema,
|
|
303
303
|
WebhookDataInvoiceCreated$inboundSchema,
|
|
304
304
|
WebhookDataRepresentativeCreated$inboundSchema,
|
|
@@ -325,6 +325,7 @@ export type WebhookData$Outbound =
|
|
|
325
325
|
| WebhookDataRefundUpdated$Outbound
|
|
326
326
|
| WebhookDataWalletTransactionUpdated$Outbound
|
|
327
327
|
| WebhookDataBankAccountCreated$Outbound
|
|
328
|
+
| WebhookDataBankAccountDeleted$Outbound
|
|
328
329
|
| WebhookDataCancellationCreated$Outbound
|
|
329
330
|
| WebhookDataCancellationUpdated$Outbound
|
|
330
331
|
| WebhookDataCardAutoUpdated$Outbound
|
|
@@ -338,7 +339,6 @@ export type WebhookData$Outbound =
|
|
|
338
339
|
| WebhookDataTransferCreated$Outbound
|
|
339
340
|
| WebhookDataWalletUpdated$Outbound
|
|
340
341
|
| WebhookDataBalanceUpdated$Outbound
|
|
341
|
-
| WebhookDataBankAccountDeleted$Outbound
|
|
342
342
|
| WebhookDataCapabilityRequested$Outbound
|
|
343
343
|
| WebhookDataInvoiceCreated$Outbound
|
|
344
344
|
| WebhookDataRepresentativeCreated$Outbound
|
|
@@ -369,6 +369,7 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
369
369
|
WebhookDataRefundUpdated$outboundSchema,
|
|
370
370
|
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
371
371
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
372
|
+
WebhookDataBankAccountDeleted$outboundSchema,
|
|
372
373
|
WebhookDataCancellationCreated$outboundSchema,
|
|
373
374
|
WebhookDataCancellationUpdated$outboundSchema,
|
|
374
375
|
WebhookDataCardAutoUpdated$outboundSchema,
|
|
@@ -382,7 +383,6 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
382
383
|
WebhookDataTransferCreated$outboundSchema,
|
|
383
384
|
WebhookDataWalletUpdated$outboundSchema,
|
|
384
385
|
WebhookDataBalanceUpdated$outboundSchema,
|
|
385
|
-
WebhookDataBankAccountDeleted$outboundSchema,
|
|
386
386
|
WebhookDataCapabilityRequested$outboundSchema,
|
|
387
387
|
WebhookDataInvoiceCreated$outboundSchema,
|
|
388
388
|
WebhookDataRepresentativeCreated$outboundSchema,
|
|
@@ -7,10 +7,16 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import * as types from "../../types/primitives.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
BankAccountStatus,
|
|
12
|
+
BankAccountStatus$inboundSchema,
|
|
13
|
+
BankAccountStatus$outboundSchema,
|
|
14
|
+
} from "./bankaccountstatus.js";
|
|
10
15
|
|
|
11
16
|
export type WebhookDataBankAccountDeleted = {
|
|
12
17
|
bankAccountID: string;
|
|
13
18
|
accountID: string;
|
|
19
|
+
status: BankAccountStatus;
|
|
14
20
|
};
|
|
15
21
|
|
|
16
22
|
/** @internal */
|
|
@@ -21,11 +27,13 @@ export const WebhookDataBankAccountDeleted$inboundSchema: z.ZodType<
|
|
|
21
27
|
> = z.object({
|
|
22
28
|
bankAccountID: types.string(),
|
|
23
29
|
accountID: types.string(),
|
|
30
|
+
status: BankAccountStatus$inboundSchema,
|
|
24
31
|
});
|
|
25
32
|
/** @internal */
|
|
26
33
|
export type WebhookDataBankAccountDeleted$Outbound = {
|
|
27
34
|
bankAccountID: string;
|
|
28
35
|
accountID: string;
|
|
36
|
+
status: string;
|
|
29
37
|
};
|
|
30
38
|
|
|
31
39
|
/** @internal */
|
|
@@ -36,6 +44,7 @@ export const WebhookDataBankAccountDeleted$outboundSchema: z.ZodType<
|
|
|
36
44
|
> = z.object({
|
|
37
45
|
bankAccountID: z.string(),
|
|
38
46
|
accountID: z.string(),
|
|
47
|
+
status: BankAccountStatus$outboundSchema,
|
|
39
48
|
});
|
|
40
49
|
|
|
41
50
|
export function webhookDataBankAccountDeletedToJSON(
|
|
@@ -11,7 +11,6 @@ export type CreatePaymentLinkErrorData = {
|
|
|
11
11
|
partnerAccountID?: string | undefined;
|
|
12
12
|
merchantPaymentMethodID?: string | undefined;
|
|
13
13
|
amount?: components.AmountValidationError | undefined;
|
|
14
|
-
salesTaxAmount?: components.AmountValidationError | undefined;
|
|
15
14
|
maxUses?: string | undefined;
|
|
16
15
|
expiresOn?: string | undefined;
|
|
17
16
|
display?: components.DisplayOptionsError | undefined;
|
|
@@ -27,7 +26,6 @@ export class CreatePaymentLinkError extends MoovError {
|
|
|
27
26
|
partnerAccountID?: string | undefined;
|
|
28
27
|
merchantPaymentMethodID?: string | undefined;
|
|
29
28
|
amount?: components.AmountValidationError | undefined;
|
|
30
|
-
salesTaxAmount?: components.AmountValidationError | undefined;
|
|
31
29
|
maxUses?: string | undefined;
|
|
32
30
|
expiresOn?: string | undefined;
|
|
33
31
|
display?: components.DisplayOptionsError | undefined;
|
|
@@ -57,7 +55,6 @@ export class CreatePaymentLinkError extends MoovError {
|
|
|
57
55
|
this.merchantPaymentMethodID = err.merchantPaymentMethodID;
|
|
58
56
|
}
|
|
59
57
|
if (err.amount != null) this.amount = err.amount;
|
|
60
|
-
if (err.salesTaxAmount != null) this.salesTaxAmount = err.salesTaxAmount;
|
|
61
58
|
if (err.maxUses != null) this.maxUses = err.maxUses;
|
|
62
59
|
if (err.expiresOn != null) this.expiresOn = err.expiresOn;
|
|
63
60
|
if (err.display != null) this.display = err.display;
|
|
@@ -79,9 +76,6 @@ export const CreatePaymentLinkError$inboundSchema: z.ZodType<
|
|
|
79
76
|
partnerAccountID: types.optional(types.string()),
|
|
80
77
|
merchantPaymentMethodID: types.optional(types.string()),
|
|
81
78
|
amount: types.optional(components.AmountValidationError$inboundSchema),
|
|
82
|
-
salesTaxAmount: types.optional(
|
|
83
|
-
components.AmountValidationError$inboundSchema,
|
|
84
|
-
),
|
|
85
79
|
maxUses: types.optional(types.string()),
|
|
86
80
|
expiresOn: types.optional(types.string()),
|
|
87
81
|
display: types.optional(components.DisplayOptionsError$inboundSchema),
|
|
@@ -110,7 +104,6 @@ export type CreatePaymentLinkError$Outbound = {
|
|
|
110
104
|
partnerAccountID?: string | undefined;
|
|
111
105
|
merchantPaymentMethodID?: string | undefined;
|
|
112
106
|
amount?: components.AmountValidationError$Outbound | undefined;
|
|
113
|
-
salesTaxAmount?: components.AmountValidationError$Outbound | undefined;
|
|
114
107
|
maxUses?: string | undefined;
|
|
115
108
|
expiresOn?: string | undefined;
|
|
116
109
|
display?: components.DisplayOptionsError$Outbound | undefined;
|
|
@@ -135,7 +128,6 @@ export const CreatePaymentLinkError$outboundSchema: z.ZodType<
|
|
|
135
128
|
partnerAccountID: z.string().optional(),
|
|
136
129
|
merchantPaymentMethodID: z.string().optional(),
|
|
137
130
|
amount: components.AmountValidationError$outboundSchema.optional(),
|
|
138
|
-
salesTaxAmount: components.AmountValidationError$outboundSchema.optional(),
|
|
139
131
|
maxUses: z.string().optional(),
|
|
140
132
|
expiresOn: z.string().optional(),
|
|
141
133
|
display: components.DisplayOptionsError$outboundSchema.optional(),
|
|
@@ -66,7 +66,6 @@ export type TransferData = {
|
|
|
66
66
|
scheduleID?: string | undefined;
|
|
67
67
|
occurrenceID?: string | undefined;
|
|
68
68
|
paymentLinkCode?: string | undefined;
|
|
69
|
-
salesTaxAmount?: components.Amount | undefined;
|
|
70
69
|
/**
|
|
71
70
|
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
72
71
|
*/
|
|
@@ -75,7 +74,7 @@ export type TransferData = {
|
|
|
75
74
|
* An optional collection of line items for a transfer.
|
|
76
75
|
*
|
|
77
76
|
* @remarks
|
|
78
|
-
* When line items are provided, their total plus
|
|
77
|
+
* When line items are provided, their total plus tax must equal the transfer amount.
|
|
79
78
|
*/
|
|
80
79
|
lineItems?: components.TransferLineItems | undefined;
|
|
81
80
|
/**
|
|
@@ -148,7 +147,6 @@ export class Transfer extends MoovError {
|
|
|
148
147
|
scheduleID?: string | undefined;
|
|
149
148
|
occurrenceID?: string | undefined;
|
|
150
149
|
paymentLinkCode?: string | undefined;
|
|
151
|
-
salesTaxAmount?: components.Amount | undefined;
|
|
152
150
|
/**
|
|
153
151
|
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
154
152
|
*/
|
|
@@ -157,7 +155,7 @@ export class Transfer extends MoovError {
|
|
|
157
155
|
* An optional collection of line items for a transfer.
|
|
158
156
|
*
|
|
159
157
|
* @remarks
|
|
160
|
-
* When line items are provided, their total plus
|
|
158
|
+
* When line items are provided, their total plus tax must equal the transfer amount.
|
|
161
159
|
*/
|
|
162
160
|
lineItems?: components.TransferLineItems | undefined;
|
|
163
161
|
/**
|
|
@@ -207,7 +205,6 @@ export class Transfer extends MoovError {
|
|
|
207
205
|
if (err.scheduleID != null) this.scheduleID = err.scheduleID;
|
|
208
206
|
if (err.occurrenceID != null) this.occurrenceID = err.occurrenceID;
|
|
209
207
|
if (err.paymentLinkCode != null) this.paymentLinkCode = err.paymentLinkCode;
|
|
210
|
-
if (err.salesTaxAmount != null) this.salesTaxAmount = err.salesTaxAmount;
|
|
211
208
|
if (err.foreignID != null) this.foreignID = err.foreignID;
|
|
212
209
|
if (err.lineItems != null) this.lineItems = err.lineItems;
|
|
213
210
|
if (err.invoiceID != null) this.invoiceID = err.invoiceID;
|
|
@@ -253,7 +250,6 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
253
250
|
scheduleID: types.optional(types.string()),
|
|
254
251
|
occurrenceID: types.optional(types.string()),
|
|
255
252
|
paymentLinkCode: types.optional(types.string()),
|
|
256
|
-
salesTaxAmount: types.optional(components.Amount$inboundSchema),
|
|
257
253
|
foreignID: types.optional(types.string()),
|
|
258
254
|
lineItems: types.optional(components.TransferLineItems$inboundSchema),
|
|
259
255
|
invoiceID: types.optional(types.string()),
|
|
@@ -298,7 +294,6 @@ export type Transfer$Outbound = {
|
|
|
298
294
|
scheduleID?: string | undefined;
|
|
299
295
|
occurrenceID?: string | undefined;
|
|
300
296
|
paymentLinkCode?: string | undefined;
|
|
301
|
-
salesTaxAmount?: components.Amount$Outbound | undefined;
|
|
302
297
|
foreignID?: string | undefined;
|
|
303
298
|
lineItems?: components.TransferLineItems$Outbound | undefined;
|
|
304
299
|
invoiceID?: string | undefined;
|
|
@@ -340,7 +335,6 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
340
335
|
scheduleID: z.string().optional(),
|
|
341
336
|
occurrenceID: z.string().optional(),
|
|
342
337
|
paymentLinkCode: z.string().optional(),
|
|
343
|
-
salesTaxAmount: components.Amount$outboundSchema.optional(),
|
|
344
338
|
foreignID: z.string().optional(),
|
|
345
339
|
lineItems: components.TransferLineItems$outboundSchema.optional(),
|
|
346
340
|
invoiceID: z.string().optional(),
|
|
@@ -17,7 +17,6 @@ export type TransferValidationErrorData = {
|
|
|
17
17
|
facilitatorFeeTotalDecimal?: string | undefined;
|
|
18
18
|
facilitatorFeeMarkupDecimal?: string | undefined;
|
|
19
19
|
metadata?: string | undefined;
|
|
20
|
-
salesTaxAmount?: string | undefined;
|
|
21
20
|
foreignID?: string | undefined;
|
|
22
21
|
lineItems?: components.CreateTransferLineItemsValidationError | undefined;
|
|
23
22
|
amountDetails?:
|
|
@@ -34,7 +33,6 @@ export class TransferValidationError extends MoovError {
|
|
|
34
33
|
facilitatorFeeTotalDecimal?: string | undefined;
|
|
35
34
|
facilitatorFeeMarkupDecimal?: string | undefined;
|
|
36
35
|
metadata?: string | undefined;
|
|
37
|
-
salesTaxAmount?: string | undefined;
|
|
38
36
|
foreignID?: string | undefined;
|
|
39
37
|
lineItems?: components.CreateTransferLineItemsValidationError | undefined;
|
|
40
38
|
amountDetails?:
|
|
@@ -69,7 +67,6 @@ export class TransferValidationError extends MoovError {
|
|
|
69
67
|
this.facilitatorFeeMarkupDecimal = err.facilitatorFeeMarkupDecimal;
|
|
70
68
|
}
|
|
71
69
|
if (err.metadata != null) this.metadata = err.metadata;
|
|
72
|
-
if (err.salesTaxAmount != null) this.salesTaxAmount = err.salesTaxAmount;
|
|
73
70
|
if (err.foreignID != null) this.foreignID = err.foreignID;
|
|
74
71
|
if (err.lineItems != null) this.lineItems = err.lineItems;
|
|
75
72
|
if (err.amountDetails != null) this.amountDetails = err.amountDetails;
|
|
@@ -92,7 +89,6 @@ export const TransferValidationError$inboundSchema: z.ZodType<
|
|
|
92
89
|
"FacilitatorFee.TotalDecimal": types.optional(types.string()),
|
|
93
90
|
"FacilitatorFee.MarkupDecimal": types.optional(types.string()),
|
|
94
91
|
metadata: types.optional(types.string()),
|
|
95
|
-
salesTaxAmount: types.optional(types.string()),
|
|
96
92
|
foreignID: types.optional(types.string()),
|
|
97
93
|
lineItems: types.optional(
|
|
98
94
|
components.CreateTransferLineItemsValidationError$inboundSchema,
|
|
@@ -127,7 +123,6 @@ export type TransferValidationError$Outbound = {
|
|
|
127
123
|
"FacilitatorFee.TotalDecimal"?: string | undefined;
|
|
128
124
|
"FacilitatorFee.MarkupDecimal"?: string | undefined;
|
|
129
125
|
metadata?: string | undefined;
|
|
130
|
-
salesTaxAmount?: string | undefined;
|
|
131
126
|
foreignID?: string | undefined;
|
|
132
127
|
lineItems?:
|
|
133
128
|
| components.CreateTransferLineItemsValidationError$Outbound
|
|
@@ -154,7 +149,6 @@ export const TransferValidationError$outboundSchema: z.ZodType<
|
|
|
154
149
|
facilitatorFeeTotalDecimal: z.string().optional(),
|
|
155
150
|
facilitatorFeeMarkupDecimal: z.string().optional(),
|
|
156
151
|
metadata: z.string().optional(),
|
|
157
|
-
salesTaxAmount: z.string().optional(),
|
|
158
152
|
foreignID: z.string().optional(),
|
|
159
153
|
lineItems: components
|
|
160
154
|
.CreateTransferLineItemsValidationError$outboundSchema.optional(),
|
|
@@ -9,7 +9,6 @@ import { MoovError } from "./mooverror.js";
|
|
|
9
9
|
|
|
10
10
|
export type UpdatePaymentLinkErrorData = {
|
|
11
11
|
amount?: components.AmountValidationError | undefined;
|
|
12
|
-
salesTaxAmount?: components.AmountValidationError | undefined;
|
|
13
12
|
expiresOn?: string | undefined;
|
|
14
13
|
display?: components.DisplayOptionsError | undefined;
|
|
15
14
|
payment?: components.PaymentDetailsError | undefined;
|
|
@@ -22,7 +21,6 @@ export type UpdatePaymentLinkErrorData = {
|
|
|
22
21
|
|
|
23
22
|
export class UpdatePaymentLinkError extends MoovError {
|
|
24
23
|
amount?: components.AmountValidationError | undefined;
|
|
25
|
-
salesTaxAmount?: components.AmountValidationError | undefined;
|
|
26
24
|
expiresOn?: string | undefined;
|
|
27
25
|
display?: components.DisplayOptionsError | undefined;
|
|
28
26
|
payment?: components.PaymentDetailsError | undefined;
|
|
@@ -45,7 +43,6 @@ export class UpdatePaymentLinkError extends MoovError {
|
|
|
45
43
|
super(message, httpMeta);
|
|
46
44
|
this.data$ = err;
|
|
47
45
|
if (err.amount != null) this.amount = err.amount;
|
|
48
|
-
if (err.salesTaxAmount != null) this.salesTaxAmount = err.salesTaxAmount;
|
|
49
46
|
if (err.expiresOn != null) this.expiresOn = err.expiresOn;
|
|
50
47
|
if (err.display != null) this.display = err.display;
|
|
51
48
|
if (err.payment != null) this.payment = err.payment;
|
|
@@ -64,9 +61,6 @@ export const UpdatePaymentLinkError$inboundSchema: z.ZodType<
|
|
|
64
61
|
unknown
|
|
65
62
|
> = z.object({
|
|
66
63
|
amount: types.optional(components.AmountValidationError$inboundSchema),
|
|
67
|
-
salesTaxAmount: types.optional(
|
|
68
|
-
components.AmountValidationError$inboundSchema,
|
|
69
|
-
),
|
|
70
64
|
expiresOn: types.optional(types.string()),
|
|
71
65
|
display: types.optional(components.DisplayOptionsError$inboundSchema),
|
|
72
66
|
payment: types.optional(components.PaymentDetailsError$inboundSchema),
|
|
@@ -92,7 +86,6 @@ export const UpdatePaymentLinkError$inboundSchema: z.ZodType<
|
|
|
92
86
|
/** @internal */
|
|
93
87
|
export type UpdatePaymentLinkError$Outbound = {
|
|
94
88
|
amount?: components.AmountValidationError$Outbound | undefined;
|
|
95
|
-
salesTaxAmount?: components.AmountValidationError$Outbound | undefined;
|
|
96
89
|
expiresOn?: string | undefined;
|
|
97
90
|
display?: components.DisplayOptionsError$Outbound | undefined;
|
|
98
91
|
payment?: components.PaymentDetailsError$Outbound | undefined;
|
|
@@ -114,7 +107,6 @@ export const UpdatePaymentLinkError$outboundSchema: z.ZodType<
|
|
|
114
107
|
.transform(v => v.data$)
|
|
115
108
|
.pipe(z.object({
|
|
116
109
|
amount: components.AmountValidationError$outboundSchema.optional(),
|
|
117
|
-
salesTaxAmount: components.AmountValidationError$outboundSchema.optional(),
|
|
118
110
|
expiresOn: z.string().optional(),
|
|
119
111
|
display: components.DisplayOptionsError$outboundSchema.optional(),
|
|
120
112
|
payment: components.PaymentDetailsError$outboundSchema.optional(),
|