@moovio/sdk 0.22.13 → 0.22.14
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 +255 -98
- package/bin/mcp-server.js.map +35 -29
- package/examples/package-lock.json +1 -1
- package/funcs/feePlansListFeeRevenue.js +3 -0
- package/funcs/feePlansListFeeRevenue.js.map +1 -1
- package/funcs/feePlansRetrieveFees.js +1 -0
- package/funcs/feePlansRetrieveFees.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.js +2 -2
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/createinvoice.d.ts +2 -2
- package/models/components/createinvoice.d.ts.map +1 -1
- package/models/components/createinvoice.js +2 -2
- package/models/components/createinvoice.js.map +1 -1
- package/models/components/createinvoicepayment.d.ts +3 -0
- package/models/components/createinvoicepayment.d.ts.map +1 -1
- package/models/components/createinvoicepayment.js +3 -0
- package/models/components/createinvoicepayment.js.map +1 -1
- package/models/components/createruntransfer.d.ts +47 -0
- package/models/components/createruntransfer.d.ts.map +1 -0
- package/models/components/createruntransfer.js +73 -0
- package/models/components/createruntransfer.js.map +1 -0
- package/models/components/createscheduledtransferlineitem.d.ts +50 -0
- package/models/components/createscheduledtransferlineitem.d.ts.map +1 -0
- package/models/components/createscheduledtransferlineitem.js +72 -0
- package/models/components/createscheduledtransferlineitem.js.map +1 -0
- package/models/components/createscheduledtransferlineitemoption.d.ts +44 -0
- package/models/components/createscheduledtransferlineitemoption.d.ts.map +1 -0
- package/models/components/createscheduledtransferlineitemoption.js +67 -0
- package/models/components/createscheduledtransferlineitemoption.js.map +1 -0
- package/models/components/createscheduledtransferlineitems.d.ts +27 -0
- package/models/components/createscheduledtransferlineitems.d.ts.map +1 -0
- package/models/components/createscheduledtransferlineitems.js +59 -0
- package/models/components/createscheduledtransferlineitems.js.map +1 -0
- package/models/components/incurredfee.d.ts +2 -0
- package/models/components/incurredfee.d.ts.map +1 -1
- package/models/components/incurredfee.js +2 -0
- package/models/components/incurredfee.js.map +1 -1
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +4 -4
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +4 -4
- package/models/components/invoice.js.map +1 -1
- package/models/components/invoiceexternalpayment.d.ts +2 -5
- package/models/components/invoiceexternalpayment.d.ts.map +1 -1
- package/models/components/invoiceexternalpayment.js +2 -5
- package/models/components/invoiceexternalpayment.js.map +1 -1
- package/models/components/invoicepayment.d.ts +3 -0
- package/models/components/invoicepayment.d.ts.map +1 -1
- package/models/components/invoicepayment.js +3 -0
- package/models/components/invoicepayment.js.map +1 -1
- package/models/components/occurrence.d.ts +3 -3
- package/models/components/occurrence.d.ts.map +1 -1
- package/models/components/occurrence.js +3 -3
- package/models/components/occurrence.js.map +1 -1
- package/models/components/occurrencesresponse.d.ts +0 -3
- package/models/components/occurrencesresponse.d.ts.map +1 -1
- package/models/components/occurrencesresponse.js.map +1 -1
- package/models/components/recur.d.ts +3 -3
- package/models/components/recur.d.ts.map +1 -1
- package/models/components/recur.js +3 -3
- package/models/components/recur.js.map +1 -1
- package/models/components/recurresponse.d.ts +33 -0
- package/models/components/recurresponse.d.ts.map +1 -0
- package/models/components/recurresponse.js +66 -0
- package/models/components/recurresponse.js.map +1 -0
- package/models/components/runtransfer.d.ts +1 -7
- package/models/components/runtransfer.d.ts.map +1 -1
- package/models/components/runtransfer.js.map +1 -1
- package/models/components/scheduledtransferimagemetadata.d.ts +35 -0
- package/models/components/scheduledtransferimagemetadata.d.ts.map +1 -0
- package/models/components/scheduledtransferimagemetadata.js +64 -0
- package/models/components/scheduledtransferimagemetadata.js.map +1 -0
- package/models/components/scheduledtransferlineitem.d.ts +6 -0
- package/models/components/scheduledtransferlineitem.d.ts.map +1 -1
- package/models/components/scheduledtransferlineitem.js +3 -0
- package/models/components/scheduledtransferlineitem.js.map +1 -1
- package/models/components/scheduledtransferlineitemoption.d.ts +6 -0
- package/models/components/scheduledtransferlineitemoption.d.ts.map +1 -1
- package/models/components/scheduledtransferlineitemoption.js +3 -0
- package/models/components/scheduledtransferlineitemoption.js.map +1 -1
- package/models/components/scheduledtransferlineitems.d.ts +1 -4
- package/models/components/scheduledtransferlineitems.d.ts.map +1 -1
- package/models/components/scheduledtransferlineitems.js.map +1 -1
- package/models/components/schedulelistresponse.d.ts +3 -6
- package/models/components/schedulelistresponse.d.ts.map +1 -1
- package/models/components/schedulelistresponse.js +3 -3
- package/models/components/schedulelistresponse.js.map +1 -1
- package/models/components/scheduleresponse.d.ts +3 -6
- package/models/components/scheduleresponse.d.ts.map +1 -1
- package/models/components/scheduleresponse.js +3 -3
- package/models/components/scheduleresponse.js.map +1 -1
- package/models/errors/createinvoicepaymenterror.d.ts +4 -0
- package/models/errors/createinvoicepaymenterror.d.ts.map +1 -1
- package/models/errors/createinvoicepaymenterror.js +5 -0
- package/models/errors/createinvoicepaymenterror.js.map +1 -1
- package/models/operations/listfeerevenue.d.ts +15 -0
- package/models/operations/listfeerevenue.d.ts.map +1 -1
- package/models/operations/listfeerevenue.js +6 -0
- package/models/operations/listfeerevenue.js.map +1 -1
- package/models/operations/retrievefees.d.ts +5 -0
- package/models/operations/retrievefees.d.ts.map +1 -1
- package/models/operations/retrievefees.js +2 -0
- package/models/operations/retrievefees.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/feePlansListFeeRevenue.ts +3 -0
- package/src/funcs/feePlansRetrieveFees.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/createinvoice.ts +4 -4
- package/src/models/components/createinvoicepayment.ts +10 -0
- package/src/models/components/createruntransfer.ts +108 -0
- package/src/models/components/createscheduledtransferlineitem.ts +108 -0
- package/src/models/components/createscheduledtransferlineitemoption.ts +94 -0
- package/src/models/components/createscheduledtransferlineitems.ts +68 -0
- package/src/models/components/incurredfee.ts +4 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/invoice.ts +8 -8
- package/src/models/components/invoiceexternalpayment.ts +4 -14
- package/src/models/components/invoicepayment.ts +10 -0
- package/src/models/components/occurrence.ts +9 -9
- package/src/models/components/occurrencesresponse.ts +0 -3
- package/src/models/components/recur.ts +9 -9
- package/src/models/components/recurresponse.ts +75 -0
- package/src/models/components/runtransfer.ts +1 -7
- package/src/models/components/scheduledtransferimagemetadata.ts +77 -0
- package/src/models/components/scheduledtransferlineitem.ts +13 -0
- package/src/models/components/scheduledtransferlineitemoption.ts +13 -0
- package/src/models/components/scheduledtransferlineitems.ts +1 -4
- package/src/models/components/schedulelistresponse.ts +9 -12
- package/src/models/components/scheduleresponse.ts +9 -12
- package/src/models/errors/createinvoicepaymenterror.ts +7 -0
- package/src/models/operations/listfeerevenue.ts +21 -0
- package/src/models/operations/retrievefees.ts +7 -0
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
Amount,
|
|
11
|
+
Amount$inboundSchema,
|
|
12
|
+
Amount$Outbound,
|
|
13
|
+
Amount$outboundSchema,
|
|
14
|
+
} from "./amount.js";
|
|
15
|
+
import {
|
|
16
|
+
CreateScheduledTransferLineItems,
|
|
17
|
+
CreateScheduledTransferLineItems$inboundSchema,
|
|
18
|
+
CreateScheduledTransferLineItems$Outbound,
|
|
19
|
+
CreateScheduledTransferLineItems$outboundSchema,
|
|
20
|
+
} from "./createscheduledtransferlineitems.js";
|
|
21
|
+
import {
|
|
22
|
+
SchedulePaymentMethod,
|
|
23
|
+
SchedulePaymentMethod$inboundSchema,
|
|
24
|
+
SchedulePaymentMethod$Outbound,
|
|
25
|
+
SchedulePaymentMethod$outboundSchema,
|
|
26
|
+
} from "./schedulepaymentmethod.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Defines the attributes of a transfer.
|
|
30
|
+
*/
|
|
31
|
+
export type CreateRunTransfer = {
|
|
32
|
+
amount: Amount;
|
|
33
|
+
/**
|
|
34
|
+
* Optional sales tax amount. This amount is included in the total transfer amount.
|
|
35
|
+
*/
|
|
36
|
+
salesTaxAmount?: Amount | undefined;
|
|
37
|
+
destination: SchedulePaymentMethod;
|
|
38
|
+
partnerAccountID: string;
|
|
39
|
+
source: SchedulePaymentMethod;
|
|
40
|
+
/**
|
|
41
|
+
* Simple description to place on the transfer.
|
|
42
|
+
*/
|
|
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?: CreateScheduledTransferLineItems | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const CreateRunTransfer$inboundSchema: z.ZodType<
|
|
55
|
+
CreateRunTransfer,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
unknown
|
|
58
|
+
> = z.object({
|
|
59
|
+
amount: Amount$inboundSchema,
|
|
60
|
+
salesTaxAmount: Amount$inboundSchema.optional(),
|
|
61
|
+
destination: SchedulePaymentMethod$inboundSchema,
|
|
62
|
+
partnerAccountID: z.string(),
|
|
63
|
+
source: SchedulePaymentMethod$inboundSchema,
|
|
64
|
+
description: z.string(),
|
|
65
|
+
lineItems: CreateScheduledTransferLineItems$inboundSchema.optional(),
|
|
66
|
+
});
|
|
67
|
+
/** @internal */
|
|
68
|
+
export type CreateRunTransfer$Outbound = {
|
|
69
|
+
amount: Amount$Outbound;
|
|
70
|
+
salesTaxAmount?: Amount$Outbound | undefined;
|
|
71
|
+
destination: SchedulePaymentMethod$Outbound;
|
|
72
|
+
partnerAccountID: string;
|
|
73
|
+
source: SchedulePaymentMethod$Outbound;
|
|
74
|
+
description: string;
|
|
75
|
+
lineItems?: CreateScheduledTransferLineItems$Outbound | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const CreateRunTransfer$outboundSchema: z.ZodType<
|
|
80
|
+
CreateRunTransfer$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
CreateRunTransfer
|
|
83
|
+
> = z.object({
|
|
84
|
+
amount: Amount$outboundSchema,
|
|
85
|
+
salesTaxAmount: Amount$outboundSchema.optional(),
|
|
86
|
+
destination: SchedulePaymentMethod$outboundSchema,
|
|
87
|
+
partnerAccountID: z.string(),
|
|
88
|
+
source: SchedulePaymentMethod$outboundSchema,
|
|
89
|
+
description: z.string(),
|
|
90
|
+
lineItems: CreateScheduledTransferLineItems$outboundSchema.optional(),
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export function createRunTransferToJSON(
|
|
94
|
+
createRunTransfer: CreateRunTransfer,
|
|
95
|
+
): string {
|
|
96
|
+
return JSON.stringify(
|
|
97
|
+
CreateRunTransfer$outboundSchema.parse(createRunTransfer),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
export function createRunTransferFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<CreateRunTransfer, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => CreateRunTransfer$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'CreateRunTransfer' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
CreateScheduledTransferLineItemOption,
|
|
17
|
+
CreateScheduledTransferLineItemOption$inboundSchema,
|
|
18
|
+
CreateScheduledTransferLineItemOption$Outbound,
|
|
19
|
+
CreateScheduledTransferLineItemOption$outboundSchema,
|
|
20
|
+
} from "./createscheduledtransferlineitemoption.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Represents a single item in a scheduled transfer, including optional modifiers and quantity.
|
|
24
|
+
*/
|
|
25
|
+
export type CreateScheduledTransferLineItem = {
|
|
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<CreateScheduledTransferLineItemOption> | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Optional unique identifier associating the line item with a product.
|
|
44
|
+
*/
|
|
45
|
+
productID?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Optional list of images associated with this line item.
|
|
48
|
+
*/
|
|
49
|
+
imageIDs?: Array<string> | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const CreateScheduledTransferLineItem$inboundSchema: z.ZodType<
|
|
54
|
+
CreateScheduledTransferLineItem,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
unknown
|
|
57
|
+
> = z.object({
|
|
58
|
+
name: z.string(),
|
|
59
|
+
basePrice: AmountDecimal$inboundSchema,
|
|
60
|
+
quantity: z.number().int(),
|
|
61
|
+
options: z.array(CreateScheduledTransferLineItemOption$inboundSchema)
|
|
62
|
+
.optional(),
|
|
63
|
+
productID: z.string().optional(),
|
|
64
|
+
imageIDs: z.array(z.string()).optional(),
|
|
65
|
+
});
|
|
66
|
+
/** @internal */
|
|
67
|
+
export type CreateScheduledTransferLineItem$Outbound = {
|
|
68
|
+
name: string;
|
|
69
|
+
basePrice: AmountDecimal$Outbound;
|
|
70
|
+
quantity: number;
|
|
71
|
+
options?: Array<CreateScheduledTransferLineItemOption$Outbound> | undefined;
|
|
72
|
+
productID?: string | undefined;
|
|
73
|
+
imageIDs?: Array<string> | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const CreateScheduledTransferLineItem$outboundSchema: z.ZodType<
|
|
78
|
+
CreateScheduledTransferLineItem$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
CreateScheduledTransferLineItem
|
|
81
|
+
> = z.object({
|
|
82
|
+
name: z.string(),
|
|
83
|
+
basePrice: AmountDecimal$outboundSchema,
|
|
84
|
+
quantity: z.number().int(),
|
|
85
|
+
options: z.array(CreateScheduledTransferLineItemOption$outboundSchema)
|
|
86
|
+
.optional(),
|
|
87
|
+
productID: z.string().optional(),
|
|
88
|
+
imageIDs: z.array(z.string()).optional(),
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export function createScheduledTransferLineItemToJSON(
|
|
92
|
+
createScheduledTransferLineItem: CreateScheduledTransferLineItem,
|
|
93
|
+
): string {
|
|
94
|
+
return JSON.stringify(
|
|
95
|
+
CreateScheduledTransferLineItem$outboundSchema.parse(
|
|
96
|
+
createScheduledTransferLineItem,
|
|
97
|
+
),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
export function createScheduledTransferLineItemFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<CreateScheduledTransferLineItem, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => CreateScheduledTransferLineItem$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'CreateScheduledTransferLineItem' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 CreateScheduledTransferLineItemOption = {
|
|
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
|
+
* Optional list of images associated with this line item.
|
|
38
|
+
*/
|
|
39
|
+
imageIDs?: Array<string> | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const CreateScheduledTransferLineItemOption$inboundSchema: z.ZodType<
|
|
44
|
+
CreateScheduledTransferLineItemOption,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
unknown
|
|
47
|
+
> = z.object({
|
|
48
|
+
name: z.string(),
|
|
49
|
+
quantity: z.number().int(),
|
|
50
|
+
priceModifier: AmountDecimal$inboundSchema.optional(),
|
|
51
|
+
group: z.string().optional(),
|
|
52
|
+
imageIDs: z.array(z.string()).optional(),
|
|
53
|
+
});
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type CreateScheduledTransferLineItemOption$Outbound = {
|
|
56
|
+
name: string;
|
|
57
|
+
quantity: number;
|
|
58
|
+
priceModifier?: AmountDecimal$Outbound | undefined;
|
|
59
|
+
group?: string | undefined;
|
|
60
|
+
imageIDs?: Array<string> | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const CreateScheduledTransferLineItemOption$outboundSchema: z.ZodType<
|
|
65
|
+
CreateScheduledTransferLineItemOption$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
CreateScheduledTransferLineItemOption
|
|
68
|
+
> = z.object({
|
|
69
|
+
name: z.string(),
|
|
70
|
+
quantity: z.number().int(),
|
|
71
|
+
priceModifier: AmountDecimal$outboundSchema.optional(),
|
|
72
|
+
group: z.string().optional(),
|
|
73
|
+
imageIDs: z.array(z.string()).optional(),
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export function createScheduledTransferLineItemOptionToJSON(
|
|
77
|
+
createScheduledTransferLineItemOption: CreateScheduledTransferLineItemOption,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
CreateScheduledTransferLineItemOption$outboundSchema.parse(
|
|
81
|
+
createScheduledTransferLineItemOption,
|
|
82
|
+
),
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
export function createScheduledTransferLineItemOptionFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<CreateScheduledTransferLineItemOption, SDKValidationError> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) =>
|
|
91
|
+
CreateScheduledTransferLineItemOption$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'CreateScheduledTransferLineItemOption' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
CreateScheduledTransferLineItem,
|
|
11
|
+
CreateScheduledTransferLineItem$inboundSchema,
|
|
12
|
+
CreateScheduledTransferLineItem$Outbound,
|
|
13
|
+
CreateScheduledTransferLineItem$outboundSchema,
|
|
14
|
+
} from "./createscheduledtransferlineitem.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 CreateScheduledTransferLineItems = {
|
|
23
|
+
/**
|
|
24
|
+
* The list of line items.
|
|
25
|
+
*/
|
|
26
|
+
items: Array<CreateScheduledTransferLineItem>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const CreateScheduledTransferLineItems$inboundSchema: z.ZodType<
|
|
31
|
+
CreateScheduledTransferLineItems,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
items: z.array(CreateScheduledTransferLineItem$inboundSchema),
|
|
36
|
+
});
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type CreateScheduledTransferLineItems$Outbound = {
|
|
39
|
+
items: Array<CreateScheduledTransferLineItem$Outbound>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const CreateScheduledTransferLineItems$outboundSchema: z.ZodType<
|
|
44
|
+
CreateScheduledTransferLineItems$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
CreateScheduledTransferLineItems
|
|
47
|
+
> = z.object({
|
|
48
|
+
items: z.array(CreateScheduledTransferLineItem$outboundSchema),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function createScheduledTransferLineItemsToJSON(
|
|
52
|
+
createScheduledTransferLineItems: CreateScheduledTransferLineItems,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
CreateScheduledTransferLineItems$outboundSchema.parse(
|
|
56
|
+
createScheduledTransferLineItems,
|
|
57
|
+
),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
export function createScheduledTransferLineItemsFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<CreateScheduledTransferLineItems, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => CreateScheduledTransferLineItems$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'CreateScheduledTransferLineItems' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -34,6 +34,7 @@ export type IncurredFee = {
|
|
|
34
34
|
*/
|
|
35
35
|
generatedBy?: GeneratedBy | undefined;
|
|
36
36
|
feeGroup?: string | undefined;
|
|
37
|
+
residualID?: string | undefined;
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
/** @internal */
|
|
@@ -51,6 +52,7 @@ export const IncurredFee$inboundSchema: z.ZodType<
|
|
|
51
52
|
amount: AmountDecimal$inboundSchema.optional(),
|
|
52
53
|
generatedBy: GeneratedBy$inboundSchema.optional(),
|
|
53
54
|
feeGroup: z.string().optional(),
|
|
55
|
+
residualID: z.string().optional(),
|
|
54
56
|
});
|
|
55
57
|
/** @internal */
|
|
56
58
|
export type IncurredFee$Outbound = {
|
|
@@ -62,6 +64,7 @@ export type IncurredFee$Outbound = {
|
|
|
62
64
|
amount?: AmountDecimal$Outbound | undefined;
|
|
63
65
|
generatedBy?: GeneratedBy$Outbound | undefined;
|
|
64
66
|
feeGroup?: string | undefined;
|
|
67
|
+
residualID?: string | undefined;
|
|
65
68
|
};
|
|
66
69
|
|
|
67
70
|
/** @internal */
|
|
@@ -78,6 +81,7 @@ export const IncurredFee$outboundSchema: z.ZodType<
|
|
|
78
81
|
amount: AmountDecimal$outboundSchema.optional(),
|
|
79
82
|
generatedBy: GeneratedBy$outboundSchema.optional(),
|
|
80
83
|
feeGroup: z.string().optional(),
|
|
84
|
+
residualID: z.string().optional(),
|
|
81
85
|
});
|
|
82
86
|
|
|
83
87
|
export function incurredFeeToJSON(incurredFee: IncurredFee): string {
|
|
@@ -168,6 +168,10 @@ export * from "./createrefund.js";
|
|
|
168
168
|
export * from "./createrefundresponse.js";
|
|
169
169
|
export * from "./createrepresentative.js";
|
|
170
170
|
export * from "./createreversal.js";
|
|
171
|
+
export * from "./createruntransfer.js";
|
|
172
|
+
export * from "./createscheduledtransferlineitem.js";
|
|
173
|
+
export * from "./createscheduledtransferlineitemoption.js";
|
|
174
|
+
export * from "./createscheduledtransferlineitems.js";
|
|
171
175
|
export * from "./createsweepconfig.js";
|
|
172
176
|
export * from "./createterminalapplication.js";
|
|
173
177
|
export * from "./createticket.js";
|
|
@@ -383,6 +387,7 @@ export * from "./receiptkind.js";
|
|
|
383
387
|
export * from "./receiptrequest.js";
|
|
384
388
|
export * from "./receiptresponse.js";
|
|
385
389
|
export * from "./recur.js";
|
|
390
|
+
export * from "./recurresponse.js";
|
|
386
391
|
export * from "./refundcarddetails.js";
|
|
387
392
|
export * from "./refundcardstatus.js";
|
|
388
393
|
export * from "./refundpolicy.js";
|
|
@@ -409,6 +414,7 @@ export * from "./rtpservices.js";
|
|
|
409
414
|
export * from "./rtptransactiondetails.js";
|
|
410
415
|
export * from "./rtptransactionstatus.js";
|
|
411
416
|
export * from "./runtransfer.js";
|
|
417
|
+
export * from "./scheduledtransferimagemetadata.js";
|
|
412
418
|
export * from "./scheduledtransferlineitem.js";
|
|
413
419
|
export * from "./scheduledtransferlineitemoption.js";
|
|
414
420
|
export * from "./scheduledtransferlineitems.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
export type Invoice = {
|
|
34
34
|
invoiceID: string;
|
|
35
35
|
invoiceNumber: string;
|
|
36
|
-
description
|
|
36
|
+
description?: string | undefined;
|
|
37
37
|
customerAccountID: string;
|
|
38
38
|
partnerAccountID: string;
|
|
39
39
|
status: InvoiceStatus;
|
|
@@ -64,7 +64,7 @@ export type Invoice = {
|
|
|
64
64
|
*/
|
|
65
65
|
disputedAmount: AmountDecimal;
|
|
66
66
|
paymentLinkCode?: string | undefined;
|
|
67
|
-
|
|
67
|
+
invoicePayments?: Array<InvoicePayment> | undefined;
|
|
68
68
|
createdOn: Date;
|
|
69
69
|
invoiceDate?: Date | undefined;
|
|
70
70
|
dueDate?: Date | undefined;
|
|
@@ -78,7 +78,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
78
78
|
z.object({
|
|
79
79
|
invoiceID: z.string(),
|
|
80
80
|
invoiceNumber: z.string(),
|
|
81
|
-
description: z.string(),
|
|
81
|
+
description: z.string().optional(),
|
|
82
82
|
customerAccountID: z.string(),
|
|
83
83
|
partnerAccountID: z.string(),
|
|
84
84
|
status: InvoiceStatus$inboundSchema,
|
|
@@ -91,7 +91,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
91
91
|
refundedAmount: AmountDecimal$inboundSchema,
|
|
92
92
|
disputedAmount: AmountDecimal$inboundSchema,
|
|
93
93
|
paymentLinkCode: z.string().optional(),
|
|
94
|
-
|
|
94
|
+
invoicePayments: z.array(InvoicePayment$inboundSchema).optional(),
|
|
95
95
|
createdOn: z.string().datetime({ offset: true }).transform(v =>
|
|
96
96
|
new Date(v)
|
|
97
97
|
),
|
|
@@ -112,7 +112,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
112
112
|
export type Invoice$Outbound = {
|
|
113
113
|
invoiceID: string;
|
|
114
114
|
invoiceNumber: string;
|
|
115
|
-
description
|
|
115
|
+
description?: string | undefined;
|
|
116
116
|
customerAccountID: string;
|
|
117
117
|
partnerAccountID: string;
|
|
118
118
|
status: string;
|
|
@@ -125,7 +125,7 @@ export type Invoice$Outbound = {
|
|
|
125
125
|
refundedAmount: AmountDecimal$Outbound;
|
|
126
126
|
disputedAmount: AmountDecimal$Outbound;
|
|
127
127
|
paymentLinkCode?: string | undefined;
|
|
128
|
-
|
|
128
|
+
invoicePayments?: Array<InvoicePayment$Outbound> | undefined;
|
|
129
129
|
createdOn: string;
|
|
130
130
|
invoiceDate?: string | undefined;
|
|
131
131
|
dueDate?: string | undefined;
|
|
@@ -142,7 +142,7 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
142
142
|
> = z.object({
|
|
143
143
|
invoiceID: z.string(),
|
|
144
144
|
invoiceNumber: z.string(),
|
|
145
|
-
description: z.string(),
|
|
145
|
+
description: z.string().optional(),
|
|
146
146
|
customerAccountID: z.string(),
|
|
147
147
|
partnerAccountID: z.string(),
|
|
148
148
|
status: InvoiceStatus$outboundSchema,
|
|
@@ -155,7 +155,7 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
155
155
|
refundedAmount: AmountDecimal$outboundSchema,
|
|
156
156
|
disputedAmount: AmountDecimal$outboundSchema,
|
|
157
157
|
paymentLinkCode: z.string().optional(),
|
|
158
|
-
|
|
158
|
+
invoicePayments: z.array(InvoicePayment$outboundSchema).optional(),
|
|
159
159
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
160
160
|
invoiceDate: z.date().transform(v => v.toISOString()).optional(),
|
|
161
161
|
dueDate: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -6,18 +6,11 @@ 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
|
-
AmountDecimal,
|
|
11
|
-
AmountDecimal$inboundSchema,
|
|
12
|
-
AmountDecimal$Outbound,
|
|
13
|
-
AmountDecimal$outboundSchema,
|
|
14
|
-
} from "./amountdecimal.js";
|
|
15
9
|
|
|
16
10
|
export type InvoiceExternalPayment = {
|
|
17
|
-
description
|
|
11
|
+
description?: string | undefined;
|
|
18
12
|
foreignID?: string | undefined;
|
|
19
13
|
paymentDate?: Date | undefined;
|
|
20
|
-
amount: AmountDecimal;
|
|
21
14
|
};
|
|
22
15
|
|
|
23
16
|
/** @internal */
|
|
@@ -26,18 +19,16 @@ export const InvoiceExternalPayment$inboundSchema: z.ZodType<
|
|
|
26
19
|
z.ZodTypeDef,
|
|
27
20
|
unknown
|
|
28
21
|
> = z.object({
|
|
29
|
-
description: z.string(),
|
|
22
|
+
description: z.string().optional(),
|
|
30
23
|
foreignID: z.string().optional(),
|
|
31
24
|
paymentDate: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
32
25
|
.optional(),
|
|
33
|
-
amount: AmountDecimal$inboundSchema,
|
|
34
26
|
});
|
|
35
27
|
/** @internal */
|
|
36
28
|
export type InvoiceExternalPayment$Outbound = {
|
|
37
|
-
description
|
|
29
|
+
description?: string | undefined;
|
|
38
30
|
foreignID?: string | undefined;
|
|
39
31
|
paymentDate?: string | undefined;
|
|
40
|
-
amount: AmountDecimal$Outbound;
|
|
41
32
|
};
|
|
42
33
|
|
|
43
34
|
/** @internal */
|
|
@@ -46,10 +37,9 @@ export const InvoiceExternalPayment$outboundSchema: z.ZodType<
|
|
|
46
37
|
z.ZodTypeDef,
|
|
47
38
|
InvoiceExternalPayment
|
|
48
39
|
> = z.object({
|
|
49
|
-
description: z.string(),
|
|
40
|
+
description: z.string().optional(),
|
|
50
41
|
foreignID: z.string().optional(),
|
|
51
42
|
paymentDate: z.date().transform(v => v.toISOString()).optional(),
|
|
52
|
-
amount: AmountDecimal$outboundSchema,
|
|
53
43
|
});
|
|
54
44
|
|
|
55
45
|
export function invoiceExternalPaymentToJSON(
|
|
@@ -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
|
+
AmountDecimal,
|
|
11
|
+
AmountDecimal$inboundSchema,
|
|
12
|
+
AmountDecimal$Outbound,
|
|
13
|
+
AmountDecimal$outboundSchema,
|
|
14
|
+
} from "./amountdecimal.js";
|
|
9
15
|
import {
|
|
10
16
|
InvoiceExternalPayment,
|
|
11
17
|
InvoiceExternalPayment$inboundSchema,
|
|
@@ -30,6 +36,7 @@ import {
|
|
|
30
36
|
export type InvoicePayment = {
|
|
31
37
|
invoicePaymentID: string;
|
|
32
38
|
invoicePaymentType: InvoicePaymentType;
|
|
39
|
+
amount: AmountDecimal;
|
|
33
40
|
transfer?: InvoiceTransferPayment | undefined;
|
|
34
41
|
external?: InvoiceExternalPayment | undefined;
|
|
35
42
|
};
|
|
@@ -42,6 +49,7 @@ export const InvoicePayment$inboundSchema: z.ZodType<
|
|
|
42
49
|
> = z.object({
|
|
43
50
|
invoicePaymentID: z.string(),
|
|
44
51
|
invoicePaymentType: InvoicePaymentType$inboundSchema,
|
|
52
|
+
amount: AmountDecimal$inboundSchema,
|
|
45
53
|
transfer: InvoiceTransferPayment$inboundSchema.optional(),
|
|
46
54
|
external: InvoiceExternalPayment$inboundSchema.optional(),
|
|
47
55
|
});
|
|
@@ -49,6 +57,7 @@ export const InvoicePayment$inboundSchema: z.ZodType<
|
|
|
49
57
|
export type InvoicePayment$Outbound = {
|
|
50
58
|
invoicePaymentID: string;
|
|
51
59
|
invoicePaymentType: string;
|
|
60
|
+
amount: AmountDecimal$Outbound;
|
|
52
61
|
transfer?: InvoiceTransferPayment$Outbound | undefined;
|
|
53
62
|
external?: InvoiceExternalPayment$Outbound | undefined;
|
|
54
63
|
};
|
|
@@ -61,6 +70,7 @@ export const InvoicePayment$outboundSchema: z.ZodType<
|
|
|
61
70
|
> = z.object({
|
|
62
71
|
invoicePaymentID: z.string(),
|
|
63
72
|
invoicePaymentType: InvoicePaymentType$outboundSchema,
|
|
73
|
+
amount: AmountDecimal$outboundSchema,
|
|
64
74
|
transfer: InvoiceTransferPayment$outboundSchema.optional(),
|
|
65
75
|
external: InvoiceExternalPayment$outboundSchema.optional(),
|
|
66
76
|
});
|
|
@@ -7,11 +7,11 @@ 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
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
CreateRunTransfer,
|
|
11
|
+
CreateRunTransfer$inboundSchema,
|
|
12
|
+
CreateRunTransfer$Outbound,
|
|
13
|
+
CreateRunTransfer$outboundSchema,
|
|
14
|
+
} from "./createruntransfer.js";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Occurrences to either create or modify.
|
|
@@ -35,7 +35,7 @@ export type Occurrence = {
|
|
|
35
35
|
/**
|
|
36
36
|
* Defines the attributes of a transfer.
|
|
37
37
|
*/
|
|
38
|
-
runTransfer?:
|
|
38
|
+
runTransfer?: CreateRunTransfer | undefined;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
@@ -48,14 +48,14 @@ export const Occurrence$inboundSchema: z.ZodType<
|
|
|
48
48
|
occurrenceID: z.string().optional(),
|
|
49
49
|
runOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
50
50
|
.optional(),
|
|
51
|
-
runTransfer:
|
|
51
|
+
runTransfer: CreateRunTransfer$inboundSchema.optional(),
|
|
52
52
|
});
|
|
53
53
|
/** @internal */
|
|
54
54
|
export type Occurrence$Outbound = {
|
|
55
55
|
canceled?: boolean | undefined;
|
|
56
56
|
occurrenceID?: string | undefined;
|
|
57
57
|
runOn?: string | undefined;
|
|
58
|
-
runTransfer?:
|
|
58
|
+
runTransfer?: CreateRunTransfer$Outbound | undefined;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/** @internal */
|
|
@@ -67,7 +67,7 @@ export const Occurrence$outboundSchema: z.ZodType<
|
|
|
67
67
|
canceled: z.boolean().optional(),
|
|
68
68
|
occurrenceID: z.string().optional(),
|
|
69
69
|
runOn: z.date().transform(v => v.toISOString()).optional(),
|
|
70
|
-
runTransfer:
|
|
70
|
+
runTransfer: CreateRunTransfer$outboundSchema.optional(),
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
export function occurrenceToJSON(occurrence: Occurrence): string {
|
|
@@ -43,9 +43,6 @@ export type OccurrencesResponse = {
|
|
|
43
43
|
indefinite?: boolean | undefined;
|
|
44
44
|
canceledOn?: Date | undefined;
|
|
45
45
|
runOn: Date;
|
|
46
|
-
/**
|
|
47
|
-
* Defines the attributes of a transfer.
|
|
48
|
-
*/
|
|
49
46
|
runTransfer: RunTransfer;
|
|
50
47
|
ranOn?: Date | undefined;
|
|
51
48
|
ranTransferID?: string | undefined;
|