@moovio/sdk 0.22.3 → 0.22.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 +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
|
@@ -24,79 +24,264 @@ import {
|
|
|
24
24
|
BillingSummaryInterchange$Outbound,
|
|
25
25
|
BillingSummaryInterchange$outboundSchema,
|
|
26
26
|
} from "./billingsummaryinterchange.js";
|
|
27
|
+
import {
|
|
28
|
+
PartnerFees,
|
|
29
|
+
PartnerFees$inboundSchema,
|
|
30
|
+
PartnerFees$Outbound,
|
|
31
|
+
PartnerFees$outboundSchema,
|
|
32
|
+
} from "./partnerfees.js";
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The total transaction volume amount. This field is deprecated and will be removed in a future release.
|
|
36
|
+
*
|
|
37
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
38
|
+
*/
|
|
39
|
+
export type BillingSummaryVolumeAmount = {
|
|
40
|
+
/**
|
|
41
|
+
* A 3-letter ISO 4217 currency code.
|
|
42
|
+
*/
|
|
43
|
+
currency: string;
|
|
44
|
+
/**
|
|
45
|
+
* A decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
*
|
|
49
|
+
* For example, $12.987654321 is '12.987654321'.
|
|
50
|
+
*/
|
|
51
|
+
valueDecimal: string;
|
|
52
|
+
};
|
|
27
53
|
|
|
28
54
|
/**
|
|
29
|
-
* A summary of card acquiring
|
|
55
|
+
* A summary of card acquiring fees.
|
|
30
56
|
*/
|
|
31
57
|
export type CardAcquiring = {
|
|
32
58
|
/**
|
|
33
|
-
* The total transaction volume amount.
|
|
59
|
+
* The total transaction volume amount. This field is deprecated and will be removed in a future release.
|
|
60
|
+
*
|
|
61
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
34
62
|
*/
|
|
35
|
-
volumeAmount?:
|
|
63
|
+
volumeAmount?: BillingSummaryVolumeAmount | undefined;
|
|
36
64
|
/**
|
|
37
|
-
* The total number of transactions.
|
|
65
|
+
* The total number of transactions. This field is deprecated and will be removed in a future release.
|
|
66
|
+
*
|
|
67
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
38
68
|
*/
|
|
39
69
|
volumeCount?: number | undefined;
|
|
40
70
|
/**
|
|
41
71
|
* The total fee amount.
|
|
42
72
|
*/
|
|
43
73
|
feeAmount?: AmountDecimal | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Total fee revenue collected from merchants.
|
|
76
|
+
*/
|
|
77
|
+
merchantFeesCollected?: AmountDecimal | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Total fee costs incurred by the partner.
|
|
80
|
+
*/
|
|
81
|
+
partnerFeesAssessed?: AmountDecimal | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Net revenue after deducting partner fee costs.
|
|
84
|
+
*/
|
|
85
|
+
netIncome?: AmountDecimal | undefined;
|
|
44
86
|
/**
|
|
45
87
|
* A summary of interchange fees by card brand.
|
|
46
88
|
*/
|
|
47
89
|
interchangeFees?: BillingSummaryInterchange | undefined;
|
|
48
90
|
};
|
|
49
91
|
|
|
92
|
+
/**
|
|
93
|
+
* The total amount of platform fees. This field is deprecated and will be removed in a future release. Use summary.accountFees.
|
|
94
|
+
*
|
|
95
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
96
|
+
*/
|
|
97
|
+
export type BillingSummaryPlatformFees = {
|
|
98
|
+
/**
|
|
99
|
+
* A 3-letter ISO 4217 currency code.
|
|
100
|
+
*/
|
|
101
|
+
currency: string;
|
|
102
|
+
/**
|
|
103
|
+
* A decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
104
|
+
*
|
|
105
|
+
* @remarks
|
|
106
|
+
*
|
|
107
|
+
* For example, $12.987654321 is '12.987654321'.
|
|
108
|
+
*/
|
|
109
|
+
valueDecimal: string;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The total amount of adjustment fees. This field is deprecated and will be removed in a future release.
|
|
114
|
+
*
|
|
115
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
116
|
+
*/
|
|
117
|
+
export type AdjustmentFees = {
|
|
118
|
+
/**
|
|
119
|
+
* A 3-letter ISO 4217 currency code.
|
|
120
|
+
*/
|
|
121
|
+
currency: string;
|
|
122
|
+
/**
|
|
123
|
+
* A decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
124
|
+
*
|
|
125
|
+
* @remarks
|
|
126
|
+
*
|
|
127
|
+
* For example, $12.987654321 is '12.987654321'.
|
|
128
|
+
*/
|
|
129
|
+
valueDecimal: string;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The total amount of other card fees. This field is deprecated and will be removed in a future release. Use summary.otherCardFees.
|
|
134
|
+
*
|
|
135
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
136
|
+
*/
|
|
137
|
+
export type OtherFees = {
|
|
138
|
+
/**
|
|
139
|
+
* A 3-letter ISO 4217 currency code.
|
|
140
|
+
*/
|
|
141
|
+
currency: string;
|
|
142
|
+
/**
|
|
143
|
+
* A decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
144
|
+
*
|
|
145
|
+
* @remarks
|
|
146
|
+
*
|
|
147
|
+
* For example, $12.987654321 is '12.987654321'.
|
|
148
|
+
*/
|
|
149
|
+
valueDecimal: string;
|
|
150
|
+
};
|
|
151
|
+
|
|
50
152
|
/**
|
|
51
153
|
* A summary of all fees included in a statement.
|
|
52
154
|
*/
|
|
53
155
|
export type BillingSummary = {
|
|
54
156
|
/**
|
|
55
|
-
* A summary of card acquiring
|
|
157
|
+
* A summary of card acquiring fees.
|
|
56
158
|
*/
|
|
57
159
|
cardAcquiring?: CardAcquiring | undefined;
|
|
58
160
|
/**
|
|
59
|
-
* A summary of ACH
|
|
161
|
+
* A summary of ACH fees.
|
|
60
162
|
*/
|
|
61
163
|
ach?: BillingSummaryDetails | undefined;
|
|
62
164
|
/**
|
|
63
|
-
* A summary of instant payment
|
|
165
|
+
* A summary of instant payment fees.
|
|
64
166
|
*/
|
|
65
167
|
instantPayments?: BillingSummaryDetails | undefined;
|
|
66
168
|
/**
|
|
67
|
-
* The total amount of platform fees.
|
|
169
|
+
* The total amount of platform fees. This field is deprecated and will be removed in a future release. Use summary.accountFees.
|
|
170
|
+
*
|
|
171
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
172
|
+
*/
|
|
173
|
+
platformFees?: BillingSummaryPlatformFees | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* A summary of account fees.
|
|
176
|
+
*/
|
|
177
|
+
accountFees?: BillingSummaryDetails | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* The total amount of adjustment fees. This field is deprecated and will be removed in a future release.
|
|
180
|
+
*
|
|
181
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
68
182
|
*/
|
|
69
|
-
|
|
183
|
+
adjustmentFees?: AdjustmentFees | undefined;
|
|
70
184
|
/**
|
|
71
|
-
* The total amount of
|
|
185
|
+
* The total amount of other card fees. This field is deprecated and will be removed in a future release. Use summary.otherCardFees.
|
|
186
|
+
*
|
|
187
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
72
188
|
*/
|
|
73
|
-
|
|
189
|
+
otherFees?: OtherFees | undefined;
|
|
74
190
|
/**
|
|
75
|
-
*
|
|
191
|
+
* A summary of other card fees.
|
|
76
192
|
*/
|
|
77
|
-
|
|
193
|
+
otherCardFees?: BillingSummaryDetails | undefined;
|
|
78
194
|
/**
|
|
79
195
|
* The total amount of all fees.
|
|
80
196
|
*/
|
|
81
197
|
total?: AmountDecimal | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* Total net revenue after deducting total partner fees.
|
|
200
|
+
*/
|
|
201
|
+
netIncomeSubtotal?: BillingSummaryDetails | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* Partner’s share of the net income, expressed as a percentage.
|
|
204
|
+
*/
|
|
205
|
+
revenueShare?: string | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* The portion of net income allocated to the partner before monthly partner costs.
|
|
208
|
+
*/
|
|
209
|
+
residualSubtotal?: AmountDecimal | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* Monthly partner costs that are charged separately and not included in residual subtotal (e.g. platform fees, minimums).
|
|
212
|
+
*/
|
|
213
|
+
monthlyPartnerCosts?: PartnerFees | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* Final partner payment after deducting monthlyPartnerCosts.
|
|
216
|
+
*/
|
|
217
|
+
netPartnerPayment?: AmountDecimal | undefined;
|
|
82
218
|
};
|
|
83
219
|
|
|
220
|
+
/** @internal */
|
|
221
|
+
export const BillingSummaryVolumeAmount$inboundSchema: z.ZodType<
|
|
222
|
+
BillingSummaryVolumeAmount,
|
|
223
|
+
z.ZodTypeDef,
|
|
224
|
+
unknown
|
|
225
|
+
> = z.object({
|
|
226
|
+
currency: z.string(),
|
|
227
|
+
valueDecimal: z.string(),
|
|
228
|
+
});
|
|
229
|
+
/** @internal */
|
|
230
|
+
export type BillingSummaryVolumeAmount$Outbound = {
|
|
231
|
+
currency: string;
|
|
232
|
+
valueDecimal: string;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
/** @internal */
|
|
236
|
+
export const BillingSummaryVolumeAmount$outboundSchema: z.ZodType<
|
|
237
|
+
BillingSummaryVolumeAmount$Outbound,
|
|
238
|
+
z.ZodTypeDef,
|
|
239
|
+
BillingSummaryVolumeAmount
|
|
240
|
+
> = z.object({
|
|
241
|
+
currency: z.string(),
|
|
242
|
+
valueDecimal: z.string(),
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
export function billingSummaryVolumeAmountToJSON(
|
|
246
|
+
billingSummaryVolumeAmount: BillingSummaryVolumeAmount,
|
|
247
|
+
): string {
|
|
248
|
+
return JSON.stringify(
|
|
249
|
+
BillingSummaryVolumeAmount$outboundSchema.parse(billingSummaryVolumeAmount),
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
export function billingSummaryVolumeAmountFromJSON(
|
|
253
|
+
jsonString: string,
|
|
254
|
+
): SafeParseResult<BillingSummaryVolumeAmount, SDKValidationError> {
|
|
255
|
+
return safeParse(
|
|
256
|
+
jsonString,
|
|
257
|
+
(x) => BillingSummaryVolumeAmount$inboundSchema.parse(JSON.parse(x)),
|
|
258
|
+
`Failed to parse 'BillingSummaryVolumeAmount' from JSON`,
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
|
|
84
262
|
/** @internal */
|
|
85
263
|
export const CardAcquiring$inboundSchema: z.ZodType<
|
|
86
264
|
CardAcquiring,
|
|
87
265
|
z.ZodTypeDef,
|
|
88
266
|
unknown
|
|
89
267
|
> = z.object({
|
|
90
|
-
volumeAmount:
|
|
268
|
+
volumeAmount: z.lazy(() => BillingSummaryVolumeAmount$inboundSchema)
|
|
269
|
+
.optional(),
|
|
91
270
|
volumeCount: z.number().int().optional(),
|
|
92
271
|
feeAmount: AmountDecimal$inboundSchema.optional(),
|
|
272
|
+
merchantFeesCollected: AmountDecimal$inboundSchema.optional(),
|
|
273
|
+
partnerFeesAssessed: AmountDecimal$inboundSchema.optional(),
|
|
274
|
+
netIncome: AmountDecimal$inboundSchema.optional(),
|
|
93
275
|
interchangeFees: BillingSummaryInterchange$inboundSchema.optional(),
|
|
94
276
|
});
|
|
95
277
|
/** @internal */
|
|
96
278
|
export type CardAcquiring$Outbound = {
|
|
97
|
-
volumeAmount?:
|
|
279
|
+
volumeAmount?: BillingSummaryVolumeAmount$Outbound | undefined;
|
|
98
280
|
volumeCount?: number | undefined;
|
|
99
281
|
feeAmount?: AmountDecimal$Outbound | undefined;
|
|
282
|
+
merchantFeesCollected?: AmountDecimal$Outbound | undefined;
|
|
283
|
+
partnerFeesAssessed?: AmountDecimal$Outbound | undefined;
|
|
284
|
+
netIncome?: AmountDecimal$Outbound | undefined;
|
|
100
285
|
interchangeFees?: BillingSummaryInterchange$Outbound | undefined;
|
|
101
286
|
};
|
|
102
287
|
|
|
@@ -106,9 +291,13 @@ export const CardAcquiring$outboundSchema: z.ZodType<
|
|
|
106
291
|
z.ZodTypeDef,
|
|
107
292
|
CardAcquiring
|
|
108
293
|
> = z.object({
|
|
109
|
-
volumeAmount:
|
|
294
|
+
volumeAmount: z.lazy(() => BillingSummaryVolumeAmount$outboundSchema)
|
|
295
|
+
.optional(),
|
|
110
296
|
volumeCount: z.number().int().optional(),
|
|
111
297
|
feeAmount: AmountDecimal$outboundSchema.optional(),
|
|
298
|
+
merchantFeesCollected: AmountDecimal$outboundSchema.optional(),
|
|
299
|
+
partnerFeesAssessed: AmountDecimal$outboundSchema.optional(),
|
|
300
|
+
netIncome: AmountDecimal$outboundSchema.optional(),
|
|
112
301
|
interchangeFees: BillingSummaryInterchange$outboundSchema.optional(),
|
|
113
302
|
});
|
|
114
303
|
|
|
@@ -125,6 +314,124 @@ export function cardAcquiringFromJSON(
|
|
|
125
314
|
);
|
|
126
315
|
}
|
|
127
316
|
|
|
317
|
+
/** @internal */
|
|
318
|
+
export const BillingSummaryPlatformFees$inboundSchema: z.ZodType<
|
|
319
|
+
BillingSummaryPlatformFees,
|
|
320
|
+
z.ZodTypeDef,
|
|
321
|
+
unknown
|
|
322
|
+
> = z.object({
|
|
323
|
+
currency: z.string(),
|
|
324
|
+
valueDecimal: z.string(),
|
|
325
|
+
});
|
|
326
|
+
/** @internal */
|
|
327
|
+
export type BillingSummaryPlatformFees$Outbound = {
|
|
328
|
+
currency: string;
|
|
329
|
+
valueDecimal: string;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
/** @internal */
|
|
333
|
+
export const BillingSummaryPlatformFees$outboundSchema: z.ZodType<
|
|
334
|
+
BillingSummaryPlatformFees$Outbound,
|
|
335
|
+
z.ZodTypeDef,
|
|
336
|
+
BillingSummaryPlatformFees
|
|
337
|
+
> = z.object({
|
|
338
|
+
currency: z.string(),
|
|
339
|
+
valueDecimal: z.string(),
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
export function billingSummaryPlatformFeesToJSON(
|
|
343
|
+
billingSummaryPlatformFees: BillingSummaryPlatformFees,
|
|
344
|
+
): string {
|
|
345
|
+
return JSON.stringify(
|
|
346
|
+
BillingSummaryPlatformFees$outboundSchema.parse(billingSummaryPlatformFees),
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
export function billingSummaryPlatformFeesFromJSON(
|
|
350
|
+
jsonString: string,
|
|
351
|
+
): SafeParseResult<BillingSummaryPlatformFees, SDKValidationError> {
|
|
352
|
+
return safeParse(
|
|
353
|
+
jsonString,
|
|
354
|
+
(x) => BillingSummaryPlatformFees$inboundSchema.parse(JSON.parse(x)),
|
|
355
|
+
`Failed to parse 'BillingSummaryPlatformFees' from JSON`,
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/** @internal */
|
|
360
|
+
export const AdjustmentFees$inboundSchema: z.ZodType<
|
|
361
|
+
AdjustmentFees,
|
|
362
|
+
z.ZodTypeDef,
|
|
363
|
+
unknown
|
|
364
|
+
> = z.object({
|
|
365
|
+
currency: z.string(),
|
|
366
|
+
valueDecimal: z.string(),
|
|
367
|
+
});
|
|
368
|
+
/** @internal */
|
|
369
|
+
export type AdjustmentFees$Outbound = {
|
|
370
|
+
currency: string;
|
|
371
|
+
valueDecimal: string;
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
/** @internal */
|
|
375
|
+
export const AdjustmentFees$outboundSchema: z.ZodType<
|
|
376
|
+
AdjustmentFees$Outbound,
|
|
377
|
+
z.ZodTypeDef,
|
|
378
|
+
AdjustmentFees
|
|
379
|
+
> = z.object({
|
|
380
|
+
currency: z.string(),
|
|
381
|
+
valueDecimal: z.string(),
|
|
382
|
+
});
|
|
383
|
+
|
|
384
|
+
export function adjustmentFeesToJSON(adjustmentFees: AdjustmentFees): string {
|
|
385
|
+
return JSON.stringify(AdjustmentFees$outboundSchema.parse(adjustmentFees));
|
|
386
|
+
}
|
|
387
|
+
export function adjustmentFeesFromJSON(
|
|
388
|
+
jsonString: string,
|
|
389
|
+
): SafeParseResult<AdjustmentFees, SDKValidationError> {
|
|
390
|
+
return safeParse(
|
|
391
|
+
jsonString,
|
|
392
|
+
(x) => AdjustmentFees$inboundSchema.parse(JSON.parse(x)),
|
|
393
|
+
`Failed to parse 'AdjustmentFees' from JSON`,
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/** @internal */
|
|
398
|
+
export const OtherFees$inboundSchema: z.ZodType<
|
|
399
|
+
OtherFees,
|
|
400
|
+
z.ZodTypeDef,
|
|
401
|
+
unknown
|
|
402
|
+
> = z.object({
|
|
403
|
+
currency: z.string(),
|
|
404
|
+
valueDecimal: z.string(),
|
|
405
|
+
});
|
|
406
|
+
/** @internal */
|
|
407
|
+
export type OtherFees$Outbound = {
|
|
408
|
+
currency: string;
|
|
409
|
+
valueDecimal: string;
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
/** @internal */
|
|
413
|
+
export const OtherFees$outboundSchema: z.ZodType<
|
|
414
|
+
OtherFees$Outbound,
|
|
415
|
+
z.ZodTypeDef,
|
|
416
|
+
OtherFees
|
|
417
|
+
> = z.object({
|
|
418
|
+
currency: z.string(),
|
|
419
|
+
valueDecimal: z.string(),
|
|
420
|
+
});
|
|
421
|
+
|
|
422
|
+
export function otherFeesToJSON(otherFees: OtherFees): string {
|
|
423
|
+
return JSON.stringify(OtherFees$outboundSchema.parse(otherFees));
|
|
424
|
+
}
|
|
425
|
+
export function otherFeesFromJSON(
|
|
426
|
+
jsonString: string,
|
|
427
|
+
): SafeParseResult<OtherFees, SDKValidationError> {
|
|
428
|
+
return safeParse(
|
|
429
|
+
jsonString,
|
|
430
|
+
(x) => OtherFees$inboundSchema.parse(JSON.parse(x)),
|
|
431
|
+
`Failed to parse 'OtherFees' from JSON`,
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
|
|
128
435
|
/** @internal */
|
|
129
436
|
export const BillingSummary$inboundSchema: z.ZodType<
|
|
130
437
|
BillingSummary,
|
|
@@ -134,20 +441,35 @@ export const BillingSummary$inboundSchema: z.ZodType<
|
|
|
134
441
|
cardAcquiring: z.lazy(() => CardAcquiring$inboundSchema).optional(),
|
|
135
442
|
ach: BillingSummaryDetails$inboundSchema.optional(),
|
|
136
443
|
instantPayments: BillingSummaryDetails$inboundSchema.optional(),
|
|
137
|
-
platformFees:
|
|
138
|
-
|
|
139
|
-
|
|
444
|
+
platformFees: z.lazy(() => BillingSummaryPlatformFees$inboundSchema)
|
|
445
|
+
.optional(),
|
|
446
|
+
accountFees: BillingSummaryDetails$inboundSchema.optional(),
|
|
447
|
+
adjustmentFees: z.lazy(() => AdjustmentFees$inboundSchema).optional(),
|
|
448
|
+
otherFees: z.lazy(() => OtherFees$inboundSchema).optional(),
|
|
449
|
+
otherCardFees: BillingSummaryDetails$inboundSchema.optional(),
|
|
140
450
|
total: AmountDecimal$inboundSchema.optional(),
|
|
451
|
+
netIncomeSubtotal: BillingSummaryDetails$inboundSchema.optional(),
|
|
452
|
+
revenueShare: z.string().optional(),
|
|
453
|
+
residualSubtotal: AmountDecimal$inboundSchema.optional(),
|
|
454
|
+
monthlyPartnerCosts: PartnerFees$inboundSchema.optional(),
|
|
455
|
+
netPartnerPayment: AmountDecimal$inboundSchema.optional(),
|
|
141
456
|
});
|
|
142
457
|
/** @internal */
|
|
143
458
|
export type BillingSummary$Outbound = {
|
|
144
459
|
cardAcquiring?: CardAcquiring$Outbound | undefined;
|
|
145
460
|
ach?: BillingSummaryDetails$Outbound | undefined;
|
|
146
461
|
instantPayments?: BillingSummaryDetails$Outbound | undefined;
|
|
147
|
-
platformFees?:
|
|
148
|
-
|
|
149
|
-
|
|
462
|
+
platformFees?: BillingSummaryPlatformFees$Outbound | undefined;
|
|
463
|
+
accountFees?: BillingSummaryDetails$Outbound | undefined;
|
|
464
|
+
adjustmentFees?: AdjustmentFees$Outbound | undefined;
|
|
465
|
+
otherFees?: OtherFees$Outbound | undefined;
|
|
466
|
+
otherCardFees?: BillingSummaryDetails$Outbound | undefined;
|
|
150
467
|
total?: AmountDecimal$Outbound | undefined;
|
|
468
|
+
netIncomeSubtotal?: BillingSummaryDetails$Outbound | undefined;
|
|
469
|
+
revenueShare?: string | undefined;
|
|
470
|
+
residualSubtotal?: AmountDecimal$Outbound | undefined;
|
|
471
|
+
monthlyPartnerCosts?: PartnerFees$Outbound | undefined;
|
|
472
|
+
netPartnerPayment?: AmountDecimal$Outbound | undefined;
|
|
151
473
|
};
|
|
152
474
|
|
|
153
475
|
/** @internal */
|
|
@@ -159,10 +481,18 @@ export const BillingSummary$outboundSchema: z.ZodType<
|
|
|
159
481
|
cardAcquiring: z.lazy(() => CardAcquiring$outboundSchema).optional(),
|
|
160
482
|
ach: BillingSummaryDetails$outboundSchema.optional(),
|
|
161
483
|
instantPayments: BillingSummaryDetails$outboundSchema.optional(),
|
|
162
|
-
platformFees:
|
|
163
|
-
|
|
164
|
-
|
|
484
|
+
platformFees: z.lazy(() => BillingSummaryPlatformFees$outboundSchema)
|
|
485
|
+
.optional(),
|
|
486
|
+
accountFees: BillingSummaryDetails$outboundSchema.optional(),
|
|
487
|
+
adjustmentFees: z.lazy(() => AdjustmentFees$outboundSchema).optional(),
|
|
488
|
+
otherFees: z.lazy(() => OtherFees$outboundSchema).optional(),
|
|
489
|
+
otherCardFees: BillingSummaryDetails$outboundSchema.optional(),
|
|
165
490
|
total: AmountDecimal$outboundSchema.optional(),
|
|
491
|
+
netIncomeSubtotal: BillingSummaryDetails$outboundSchema.optional(),
|
|
492
|
+
revenueShare: z.string().optional(),
|
|
493
|
+
residualSubtotal: AmountDecimal$outboundSchema.optional(),
|
|
494
|
+
monthlyPartnerCosts: PartnerFees$outboundSchema.optional(),
|
|
495
|
+
netPartnerPayment: AmountDecimal$outboundSchema.optional(),
|
|
166
496
|
});
|
|
167
497
|
|
|
168
498
|
export function billingSummaryToJSON(billingSummary: BillingSummary): string {
|
|
@@ -14,38 +14,115 @@ import {
|
|
|
14
14
|
} from "./amountdecimal.js";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* The total transaction volume amount. This field is deprecated and will be removed in a future release.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
18
20
|
*/
|
|
21
|
+
export type VolumeAmount = {
|
|
22
|
+
/**
|
|
23
|
+
* A 3-letter ISO 4217 currency code.
|
|
24
|
+
*/
|
|
25
|
+
currency: string;
|
|
26
|
+
/**
|
|
27
|
+
* A decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
*
|
|
31
|
+
* For example, $12.987654321 is '12.987654321'.
|
|
32
|
+
*/
|
|
33
|
+
valueDecimal: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
19
36
|
export type BillingSummaryDetails = {
|
|
20
37
|
/**
|
|
21
|
-
* The total transaction volume amount.
|
|
38
|
+
* The total transaction volume amount. This field is deprecated and will be removed in a future release.
|
|
39
|
+
*
|
|
40
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
22
41
|
*/
|
|
23
|
-
volumeAmount?:
|
|
42
|
+
volumeAmount?: VolumeAmount | undefined;
|
|
24
43
|
/**
|
|
25
|
-
* The total number of transactions.
|
|
44
|
+
* The total number of transactions. This field is deprecated and will be removed in a future release.
|
|
45
|
+
*
|
|
46
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
26
47
|
*/
|
|
27
48
|
volumeCount?: number | undefined;
|
|
28
49
|
/**
|
|
29
50
|
* The total fee amount.
|
|
30
51
|
*/
|
|
31
52
|
feeAmount?: AmountDecimal | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Total fee revenue collected from merchants.
|
|
55
|
+
*/
|
|
56
|
+
merchantFeesCollected?: AmountDecimal | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Total fee costs incurred by the partner.
|
|
59
|
+
*/
|
|
60
|
+
partnerFeesAssessed?: AmountDecimal | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Net revenue after deducting partner fee costs.
|
|
63
|
+
*/
|
|
64
|
+
netIncome?: AmountDecimal | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const VolumeAmount$inboundSchema: z.ZodType<
|
|
69
|
+
VolumeAmount,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
unknown
|
|
72
|
+
> = z.object({
|
|
73
|
+
currency: z.string(),
|
|
74
|
+
valueDecimal: z.string(),
|
|
75
|
+
});
|
|
76
|
+
/** @internal */
|
|
77
|
+
export type VolumeAmount$Outbound = {
|
|
78
|
+
currency: string;
|
|
79
|
+
valueDecimal: string;
|
|
32
80
|
};
|
|
33
81
|
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const VolumeAmount$outboundSchema: z.ZodType<
|
|
84
|
+
VolumeAmount$Outbound,
|
|
85
|
+
z.ZodTypeDef,
|
|
86
|
+
VolumeAmount
|
|
87
|
+
> = z.object({
|
|
88
|
+
currency: z.string(),
|
|
89
|
+
valueDecimal: z.string(),
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export function volumeAmountToJSON(volumeAmount: VolumeAmount): string {
|
|
93
|
+
return JSON.stringify(VolumeAmount$outboundSchema.parse(volumeAmount));
|
|
94
|
+
}
|
|
95
|
+
export function volumeAmountFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<VolumeAmount, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => VolumeAmount$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'VolumeAmount' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
34
105
|
/** @internal */
|
|
35
106
|
export const BillingSummaryDetails$inboundSchema: z.ZodType<
|
|
36
107
|
BillingSummaryDetails,
|
|
37
108
|
z.ZodTypeDef,
|
|
38
109
|
unknown
|
|
39
110
|
> = z.object({
|
|
40
|
-
volumeAmount:
|
|
111
|
+
volumeAmount: z.lazy(() => VolumeAmount$inboundSchema).optional(),
|
|
41
112
|
volumeCount: z.number().int().optional(),
|
|
42
113
|
feeAmount: AmountDecimal$inboundSchema.optional(),
|
|
114
|
+
merchantFeesCollected: AmountDecimal$inboundSchema.optional(),
|
|
115
|
+
partnerFeesAssessed: AmountDecimal$inboundSchema.optional(),
|
|
116
|
+
netIncome: AmountDecimal$inboundSchema.optional(),
|
|
43
117
|
});
|
|
44
118
|
/** @internal */
|
|
45
119
|
export type BillingSummaryDetails$Outbound = {
|
|
46
|
-
volumeAmount?:
|
|
120
|
+
volumeAmount?: VolumeAmount$Outbound | undefined;
|
|
47
121
|
volumeCount?: number | undefined;
|
|
48
122
|
feeAmount?: AmountDecimal$Outbound | undefined;
|
|
123
|
+
merchantFeesCollected?: AmountDecimal$Outbound | undefined;
|
|
124
|
+
partnerFeesAssessed?: AmountDecimal$Outbound | undefined;
|
|
125
|
+
netIncome?: AmountDecimal$Outbound | undefined;
|
|
49
126
|
};
|
|
50
127
|
|
|
51
128
|
/** @internal */
|
|
@@ -54,9 +131,12 @@ export const BillingSummaryDetails$outboundSchema: z.ZodType<
|
|
|
54
131
|
z.ZodTypeDef,
|
|
55
132
|
BillingSummaryDetails
|
|
56
133
|
> = z.object({
|
|
57
|
-
volumeAmount:
|
|
134
|
+
volumeAmount: z.lazy(() => VolumeAmount$outboundSchema).optional(),
|
|
58
135
|
volumeCount: z.number().int().optional(),
|
|
59
136
|
feeAmount: AmountDecimal$outboundSchema.optional(),
|
|
137
|
+
merchantFeesCollected: AmountDecimal$outboundSchema.optional(),
|
|
138
|
+
partnerFeesAssessed: AmountDecimal$outboundSchema.optional(),
|
|
139
|
+
netIncome: AmountDecimal$outboundSchema.optional(),
|
|
60
140
|
});
|
|
61
141
|
|
|
62
142
|
export function billingSummaryDetailsToJSON(
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export * from "./account.js";
|
|
6
6
|
export * from "./accountcapability.js";
|
|
7
7
|
export * from "./accountcountries.js";
|
|
8
|
+
export * from "./accountfees.js";
|
|
8
9
|
export * from "./accountnameverification.js";
|
|
9
10
|
export * from "./accountterminalapplication.js";
|
|
10
11
|
export * from "./accounttype.js";
|
|
@@ -314,6 +315,7 @@ export * from "./onboardinginviterequest.js";
|
|
|
314
315
|
export * from "./onboardingpartneraccount.js";
|
|
315
316
|
export * from "./othercardfees.js";
|
|
316
317
|
export * from "./partialscheduleaccount.js";
|
|
318
|
+
export * from "./partnerfees.js";
|
|
317
319
|
export * from "./partnerpricing.js";
|
|
318
320
|
export * from "./partnerpricingagreement.js";
|
|
319
321
|
export * from "./patchaccount.js";
|
|
@@ -396,6 +398,9 @@ export * from "./rtpservices.js";
|
|
|
396
398
|
export * from "./rtptransactiondetails.js";
|
|
397
399
|
export * from "./rtptransactionstatus.js";
|
|
398
400
|
export * from "./runtransfer.js";
|
|
401
|
+
export * from "./scheduledtransferlineitem.js";
|
|
402
|
+
export * from "./scheduledtransferlineitemoption.js";
|
|
403
|
+
export * from "./scheduledtransferlineitems.js";
|
|
399
404
|
export * from "./schedulelistresponse.js";
|
|
400
405
|
export * from "./schedulepaymentmethod.js";
|
|
401
406
|
export * from "./scheduleresponse.js";
|