@moovio/sdk 0.21.17 → 0.22.0
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 +269 -193
- package/bin/mcp-server.js.map +38 -31
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +1 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +9 -0
- package/lib/encodings.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/components/achcreditsamedaypaymentmethod.d.ts +2 -11
- package/models/components/achcreditsamedaypaymentmethod.d.ts.map +1 -1
- package/models/components/achcreditsamedaypaymentmethod.js +3 -11
- package/models/components/achcreditsamedaypaymentmethod.js.map +1 -1
- package/models/components/achcreditstandardpaymentmethod.d.ts +2 -11
- package/models/components/achcreditstandardpaymentmethod.d.ts.map +1 -1
- package/models/components/achcreditstandardpaymentmethod.js +3 -11
- package/models/components/achcreditstandardpaymentmethod.js.map +1 -1
- package/models/components/achdebitcollectpaymentmethod.d.ts +2 -11
- package/models/components/achdebitcollectpaymentmethod.d.ts.map +1 -1
- package/models/components/achdebitcollectpaymentmethod.js +3 -11
- package/models/components/achdebitcollectpaymentmethod.js.map +1 -1
- package/models/components/achdebitfundpaymentmethod.d.ts +2 -11
- package/models/components/achdebitfundpaymentmethod.d.ts.map +1 -1
- package/models/components/achdebitfundpaymentmethod.js +3 -11
- package/models/components/achdebitfundpaymentmethod.js.map +1 -1
- package/models/components/applepaypaymentmethod.d.ts +2 -11
- package/models/components/applepaypaymentmethod.d.ts.map +1 -1
- package/models/components/applepaypaymentmethod.js +3 -10
- package/models/components/applepaypaymentmethod.js.map +1 -1
- package/models/components/cardpaymentpaymentmethod.d.ts +2 -11
- package/models/components/cardpaymentpaymentmethod.d.ts.map +1 -1
- package/models/components/cardpaymentpaymentmethod.js +3 -11
- package/models/components/cardpaymentpaymentmethod.js.map +1 -1
- package/models/components/cardpresentpaymentpaymentmethod.d.ts +2 -11
- package/models/components/cardpresentpaymentpaymentmethod.d.ts.map +1 -1
- package/models/components/cardpresentpaymentpaymentmethod.js +3 -11
- package/models/components/cardpresentpaymentpaymentmethod.js.map +1 -1
- package/models/components/createinvoice.d.ts +3 -3
- package/models/components/createinvoice.d.ts.map +1 -1
- package/models/components/createinvoice.js +3 -3
- package/models/components/createinvoice.js.map +1 -1
- package/models/components/createinvoicelineitem.d.ts +50 -0
- package/models/components/createinvoicelineitem.d.ts.map +1 -0
- package/models/components/createinvoicelineitem.js +70 -0
- package/models/components/createinvoicelineitem.js.map +1 -0
- package/models/components/createinvoicelineitemoption.d.ts +44 -0
- package/models/components/createinvoicelineitemoption.d.ts.map +1 -0
- package/models/components/createinvoicelineitemoption.js +67 -0
- package/models/components/createinvoicelineitemoption.js.map +1 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.d.ts +24 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.js +65 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.js.map +1 -0
- package/models/components/createinvoicelineitems.d.ts +24 -0
- package/models/components/createinvoicelineitems.d.ts.map +1 -0
- package/models/components/{invoicelineitemsupdate.js → createinvoicelineitems.js} +13 -13
- package/models/components/createinvoicelineitems.js.map +1 -0
- package/models/components/createinvoicelineitemsupdate.d.ts +24 -0
- package/models/components/createinvoicelineitemsupdate.d.ts.map +1 -0
- package/models/components/createinvoicelineitemsupdate.js +59 -0
- package/models/components/createinvoicelineitemsupdate.js.map +1 -0
- package/models/components/createinvoicelineitemsvalidationerror.d.ts +22 -0
- package/models/components/createinvoicelineitemsvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemsvalidationerror.js +61 -0
- package/models/components/createinvoicelineitemsvalidationerror.js.map +1 -0
- package/models/components/createinvoicelineitemvalidationerror.d.ts +31 -0
- package/models/components/createinvoicelineitemvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemvalidationerror.js +70 -0
- package/models/components/createinvoicelineitemvalidationerror.js.map +1 -0
- package/models/components/index.d.ts +8 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -1
- package/models/components/index.js.map +1 -1
- package/models/components/instantbankcreditpaymentmethod.d.ts +2 -11
- package/models/components/instantbankcreditpaymentmethod.d.ts.map +1 -1
- package/models/components/instantbankcreditpaymentmethod.js +3 -11
- package/models/components/instantbankcreditpaymentmethod.js.map +1 -1
- package/models/components/invoiceexternalpayment.d.ts +2 -11
- package/models/components/invoiceexternalpayment.d.ts.map +1 -1
- package/models/components/invoiceexternalpayment.js +3 -10
- package/models/components/invoiceexternalpayment.js.map +1 -1
- package/models/components/invoicelineitem.d.ts +9 -3
- package/models/components/invoicelineitem.d.ts.map +1 -1
- package/models/components/invoicelineitem.js +5 -2
- package/models/components/invoicelineitem.js.map +1 -1
- package/models/components/invoicelineitemimagemetadata.d.ts +35 -0
- package/models/components/invoicelineitemimagemetadata.d.ts.map +1 -0
- package/models/components/invoicelineitemimagemetadata.js +64 -0
- package/models/components/invoicelineitemimagemetadata.js.map +1 -0
- package/models/components/invoicepayment.d.ts +2 -10
- package/models/components/invoicepayment.d.ts.map +1 -1
- package/models/components/invoicepayment.js +4 -4
- package/models/components/invoicepayment.js.map +1 -1
- package/models/components/invoicetransferpayment.d.ts +2 -11
- package/models/components/invoicetransferpayment.d.ts.map +1 -1
- package/models/components/invoicetransferpayment.js +3 -11
- package/models/components/invoicetransferpayment.js.map +1 -1
- package/models/components/moovwalletpaymentmethod.d.ts +2 -11
- package/models/components/moovwalletpaymentmethod.d.ts.map +1 -1
- package/models/components/moovwalletpaymentmethod.js +3 -11
- package/models/components/moovwalletpaymentmethod.js.map +1 -1
- package/models/components/paymentmethod.d.ts +2 -50
- package/models/components/paymentmethod.d.ts.map +1 -1
- package/models/components/paymentmethod.js +24 -24
- package/models/components/paymentmethod.js.map +1 -1
- package/models/components/pullfromcardpaymentmethod.d.ts +2 -11
- package/models/components/pullfromcardpaymentmethod.d.ts.map +1 -1
- package/models/components/pullfromcardpaymentmethod.js +3 -11
- package/models/components/pullfromcardpaymentmethod.js.map +1 -1
- package/models/components/pushtocardpaymentmethod.d.ts +2 -11
- package/models/components/pushtocardpaymentmethod.d.ts.map +1 -1
- package/models/components/pushtocardpaymentmethod.js +3 -11
- package/models/components/pushtocardpaymentmethod.js.map +1 -1
- package/models/components/rtpcreditpaymentmethod.d.ts +2 -11
- package/models/components/rtpcreditpaymentmethod.d.ts.map +1 -1
- package/models/components/rtpcreditpaymentmethod.js +3 -11
- package/models/components/rtpcreditpaymentmethod.js.map +1 -1
- package/models/components/updateinvoice.d.ts +3 -3
- package/models/components/updateinvoice.d.ts.map +1 -1
- package/models/components/updateinvoice.js +3 -3
- package/models/components/updateinvoice.js.map +1 -1
- package/models/errors/createinvoiceerror.d.ts +3 -3
- package/models/errors/createinvoiceerror.d.ts.map +1 -1
- package/models/errors/createinvoiceerror.js +2 -2
- package/models/errors/createinvoiceerror.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +13 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/achcreditsamedaypaymentmethod.ts +4 -23
- package/src/models/components/achcreditstandardpaymentmethod.ts +4 -23
- package/src/models/components/achdebitcollectpaymentmethod.ts +4 -23
- package/src/models/components/achdebitfundpaymentmethod.ts +4 -21
- package/src/models/components/applepaypaymentmethod.ts +4 -22
- package/src/models/components/cardpaymentpaymentmethod.ts +4 -21
- package/src/models/components/cardpresentpaymentpaymentmethod.ts +4 -23
- package/src/models/components/createinvoice.ts +9 -9
- package/src/models/components/createinvoicelineitem.ts +104 -0
- package/src/models/components/createinvoicelineitemoption.ts +93 -0
- package/src/models/components/createinvoicelineitemoptionvalidationerror.ts +77 -0
- package/src/models/components/createinvoicelineitems.ts +63 -0
- package/src/models/components/createinvoicelineitemsupdate.ts +65 -0
- package/src/models/components/createinvoicelineitemsvalidationerror.ts +64 -0
- package/src/models/components/createinvoicelineitemvalidationerror.ts +88 -0
- package/src/models/components/index.ts +8 -1
- package/src/models/components/instantbankcreditpaymentmethod.ts +4 -23
- package/src/models/components/invoiceexternalpayment.ts +4 -21
- package/src/models/components/invoicelineitem.ts +18 -5
- package/src/models/components/invoicelineitemimagemetadata.ts +77 -0
- package/src/models/components/invoicepayment.ts +7 -17
- package/src/models/components/invoicetransferpayment.ts +4 -17
- package/src/models/components/moovwalletpaymentmethod.ts +4 -21
- package/src/models/components/paymentmethod.ts +48 -118
- package/src/models/components/pullfromcardpaymentmethod.ts +4 -21
- package/src/models/components/pushtocardpaymentmethod.ts +4 -21
- package/src/models/components/rtpcreditpaymentmethod.ts +4 -21
- package/src/models/components/updateinvoice.ts +9 -9
- package/src/models/errors/createinvoiceerror.ts +7 -5
- package/src/types/unrecognized.ts +9 -1
- package/tsconfig.json +1 -2
- package/types/unrecognized.d.ts +7 -1
- package/types/unrecognized.d.ts.map +1 -1
- package/types/unrecognized.js +9 -1
- package/types/unrecognized.js.map +1 -1
- package/models/components/invoicelineitemsupdate.d.ts +0 -24
- package/models/components/invoicelineitemsupdate.d.ts.map +0 -1
- package/models/components/invoicelineitemsupdate.js.map +0 -1
- package/src/models/components/invoicelineitemsupdate.ts +0 -63
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
CreateInvoiceLineItemOption,
|
|
17
|
+
CreateInvoiceLineItemOption$inboundSchema,
|
|
18
|
+
CreateInvoiceLineItemOption$Outbound,
|
|
19
|
+
CreateInvoiceLineItemOption$outboundSchema,
|
|
20
|
+
} from "./createinvoicelineitemoption.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Represents a single item in an invoice, including optional modifiers and quantity.
|
|
24
|
+
*/
|
|
25
|
+
export type CreateInvoiceLineItem = {
|
|
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 unique identifier associating the line item with a product.
|
|
40
|
+
*/
|
|
41
|
+
productID?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
|
|
44
|
+
*/
|
|
45
|
+
options?: Array<CreateInvoiceLineItemOption> | 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 CreateInvoiceLineItem$inboundSchema: z.ZodType<
|
|
54
|
+
CreateInvoiceLineItem,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
unknown
|
|
57
|
+
> = z.object({
|
|
58
|
+
name: z.string(),
|
|
59
|
+
basePrice: AmountDecimal$inboundSchema,
|
|
60
|
+
quantity: z.number().int(),
|
|
61
|
+
productID: z.string().optional(),
|
|
62
|
+
options: z.array(CreateInvoiceLineItemOption$inboundSchema).optional(),
|
|
63
|
+
imageIDs: z.array(z.string()).optional(),
|
|
64
|
+
});
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type CreateInvoiceLineItem$Outbound = {
|
|
67
|
+
name: string;
|
|
68
|
+
basePrice: AmountDecimal$Outbound;
|
|
69
|
+
quantity: number;
|
|
70
|
+
productID?: string | undefined;
|
|
71
|
+
options?: Array<CreateInvoiceLineItemOption$Outbound> | undefined;
|
|
72
|
+
imageIDs?: Array<string> | undefined;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const CreateInvoiceLineItem$outboundSchema: z.ZodType<
|
|
77
|
+
CreateInvoiceLineItem$Outbound,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
CreateInvoiceLineItem
|
|
80
|
+
> = z.object({
|
|
81
|
+
name: z.string(),
|
|
82
|
+
basePrice: AmountDecimal$outboundSchema,
|
|
83
|
+
quantity: z.number().int(),
|
|
84
|
+
productID: z.string().optional(),
|
|
85
|
+
options: z.array(CreateInvoiceLineItemOption$outboundSchema).optional(),
|
|
86
|
+
imageIDs: z.array(z.string()).optional(),
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export function createInvoiceLineItemToJSON(
|
|
90
|
+
createInvoiceLineItem: CreateInvoiceLineItem,
|
|
91
|
+
): string {
|
|
92
|
+
return JSON.stringify(
|
|
93
|
+
CreateInvoiceLineItem$outboundSchema.parse(createInvoiceLineItem),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
export function createInvoiceLineItemFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<CreateInvoiceLineItem, SDKValidationError> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) => CreateInvoiceLineItem$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'CreateInvoiceLineItem' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 line item.
|
|
18
|
+
*/
|
|
19
|
+
export type CreateInvoiceLineItemOption = {
|
|
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 CreateInvoiceLineItemOption$inboundSchema: z.ZodType<
|
|
44
|
+
CreateInvoiceLineItemOption,
|
|
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 CreateInvoiceLineItemOption$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 CreateInvoiceLineItemOption$outboundSchema: z.ZodType<
|
|
65
|
+
CreateInvoiceLineItemOption$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
CreateInvoiceLineItemOption
|
|
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 createInvoiceLineItemOptionToJSON(
|
|
77
|
+
createInvoiceLineItemOption: CreateInvoiceLineItemOption,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
CreateInvoiceLineItemOption$outboundSchema.parse(
|
|
81
|
+
createInvoiceLineItemOption,
|
|
82
|
+
),
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
export function createInvoiceLineItemOptionFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<CreateInvoiceLineItemOption, SDKValidationError> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) => CreateInvoiceLineItemOption$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'CreateInvoiceLineItemOption' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
AmountDecimalValidationError,
|
|
11
|
+
AmountDecimalValidationError$inboundSchema,
|
|
12
|
+
AmountDecimalValidationError$Outbound,
|
|
13
|
+
AmountDecimalValidationError$outboundSchema,
|
|
14
|
+
} from "./amountdecimalvalidationerror.js";
|
|
15
|
+
|
|
16
|
+
export type CreateInvoiceLineItemOptionValidationError = {
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
group?: string | undefined;
|
|
19
|
+
priceModifier?: AmountDecimalValidationError | undefined;
|
|
20
|
+
quantity?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const CreateInvoiceLineItemOptionValidationError$inboundSchema:
|
|
25
|
+
z.ZodType<CreateInvoiceLineItemOptionValidationError, z.ZodTypeDef, unknown> =
|
|
26
|
+
z.object({
|
|
27
|
+
name: z.string().optional(),
|
|
28
|
+
group: z.string().optional(),
|
|
29
|
+
priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
|
|
30
|
+
quantity: z.string().optional(),
|
|
31
|
+
});
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type CreateInvoiceLineItemOptionValidationError$Outbound = {
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
group?: string | undefined;
|
|
36
|
+
priceModifier?: AmountDecimalValidationError$Outbound | undefined;
|
|
37
|
+
quantity?: string | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const CreateInvoiceLineItemOptionValidationError$outboundSchema:
|
|
42
|
+
z.ZodType<
|
|
43
|
+
CreateInvoiceLineItemOptionValidationError$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
CreateInvoiceLineItemOptionValidationError
|
|
46
|
+
> = z.object({
|
|
47
|
+
name: z.string().optional(),
|
|
48
|
+
group: z.string().optional(),
|
|
49
|
+
priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
|
|
50
|
+
quantity: z.string().optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function createInvoiceLineItemOptionValidationErrorToJSON(
|
|
54
|
+
createInvoiceLineItemOptionValidationError:
|
|
55
|
+
CreateInvoiceLineItemOptionValidationError,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
CreateInvoiceLineItemOptionValidationError$outboundSchema.parse(
|
|
59
|
+
createInvoiceLineItemOptionValidationError,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
export function createInvoiceLineItemOptionValidationErrorFromJSON(
|
|
64
|
+
jsonString: string,
|
|
65
|
+
): SafeParseResult<
|
|
66
|
+
CreateInvoiceLineItemOptionValidationError,
|
|
67
|
+
SDKValidationError
|
|
68
|
+
> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) =>
|
|
72
|
+
CreateInvoiceLineItemOptionValidationError$inboundSchema.parse(
|
|
73
|
+
JSON.parse(x),
|
|
74
|
+
),
|
|
75
|
+
`Failed to parse 'CreateInvoiceLineItemOptionValidationError' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
CreateInvoiceLineItem,
|
|
11
|
+
CreateInvoiceLineItem$inboundSchema,
|
|
12
|
+
CreateInvoiceLineItem$Outbound,
|
|
13
|
+
CreateInvoiceLineItem$outboundSchema,
|
|
14
|
+
} from "./createinvoicelineitem.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A collection of line items for an invoice.
|
|
18
|
+
*/
|
|
19
|
+
export type CreateInvoiceLineItems = {
|
|
20
|
+
/**
|
|
21
|
+
* The list of line items.
|
|
22
|
+
*/
|
|
23
|
+
items: Array<CreateInvoiceLineItem>;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const CreateInvoiceLineItems$inboundSchema: z.ZodType<
|
|
28
|
+
CreateInvoiceLineItems,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
items: z.array(CreateInvoiceLineItem$inboundSchema),
|
|
33
|
+
});
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type CreateInvoiceLineItems$Outbound = {
|
|
36
|
+
items: Array<CreateInvoiceLineItem$Outbound>;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const CreateInvoiceLineItems$outboundSchema: z.ZodType<
|
|
41
|
+
CreateInvoiceLineItems$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
CreateInvoiceLineItems
|
|
44
|
+
> = z.object({
|
|
45
|
+
items: z.array(CreateInvoiceLineItem$outboundSchema),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function createInvoiceLineItemsToJSON(
|
|
49
|
+
createInvoiceLineItems: CreateInvoiceLineItems,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
CreateInvoiceLineItems$outboundSchema.parse(createInvoiceLineItems),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
export function createInvoiceLineItemsFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<CreateInvoiceLineItems, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => CreateInvoiceLineItems$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'CreateInvoiceLineItems' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
CreateInvoiceLineItem,
|
|
11
|
+
CreateInvoiceLineItem$inboundSchema,
|
|
12
|
+
CreateInvoiceLineItem$Outbound,
|
|
13
|
+
CreateInvoiceLineItem$outboundSchema,
|
|
14
|
+
} from "./createinvoicelineitem.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A collection of line items for an invoice.
|
|
18
|
+
*/
|
|
19
|
+
export type CreateInvoiceLineItemsUpdate = {
|
|
20
|
+
/**
|
|
21
|
+
* The list of line items.
|
|
22
|
+
*/
|
|
23
|
+
items?: Array<CreateInvoiceLineItem> | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const CreateInvoiceLineItemsUpdate$inboundSchema: z.ZodType<
|
|
28
|
+
CreateInvoiceLineItemsUpdate,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
items: z.array(CreateInvoiceLineItem$inboundSchema).optional(),
|
|
33
|
+
});
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type CreateInvoiceLineItemsUpdate$Outbound = {
|
|
36
|
+
items?: Array<CreateInvoiceLineItem$Outbound> | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const CreateInvoiceLineItemsUpdate$outboundSchema: z.ZodType<
|
|
41
|
+
CreateInvoiceLineItemsUpdate$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
CreateInvoiceLineItemsUpdate
|
|
44
|
+
> = z.object({
|
|
45
|
+
items: z.array(CreateInvoiceLineItem$outboundSchema).optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function createInvoiceLineItemsUpdateToJSON(
|
|
49
|
+
createInvoiceLineItemsUpdate: CreateInvoiceLineItemsUpdate,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
CreateInvoiceLineItemsUpdate$outboundSchema.parse(
|
|
53
|
+
createInvoiceLineItemsUpdate,
|
|
54
|
+
),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
export function createInvoiceLineItemsUpdateFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<CreateInvoiceLineItemsUpdate, SDKValidationError> {
|
|
60
|
+
return safeParse(
|
|
61
|
+
jsonString,
|
|
62
|
+
(x) => CreateInvoiceLineItemsUpdate$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
+
`Failed to parse 'CreateInvoiceLineItemsUpdate' from JSON`,
|
|
64
|
+
);
|
|
65
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
CreateInvoiceLineItemValidationError,
|
|
11
|
+
CreateInvoiceLineItemValidationError$inboundSchema,
|
|
12
|
+
CreateInvoiceLineItemValidationError$Outbound,
|
|
13
|
+
CreateInvoiceLineItemValidationError$outboundSchema,
|
|
14
|
+
} from "./createinvoicelineitemvalidationerror.js";
|
|
15
|
+
|
|
16
|
+
export type CreateInvoiceLineItemsValidationError = {
|
|
17
|
+
items?: { [k: string]: CreateInvoiceLineItemValidationError } | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const CreateInvoiceLineItemsValidationError$inboundSchema: z.ZodType<
|
|
22
|
+
CreateInvoiceLineItemsValidationError,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
items: z.record(CreateInvoiceLineItemValidationError$inboundSchema)
|
|
27
|
+
.optional(),
|
|
28
|
+
});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type CreateInvoiceLineItemsValidationError$Outbound = {
|
|
31
|
+
items?:
|
|
32
|
+
| { [k: string]: CreateInvoiceLineItemValidationError$Outbound }
|
|
33
|
+
| undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const CreateInvoiceLineItemsValidationError$outboundSchema: z.ZodType<
|
|
38
|
+
CreateInvoiceLineItemsValidationError$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
CreateInvoiceLineItemsValidationError
|
|
41
|
+
> = z.object({
|
|
42
|
+
items: z.record(CreateInvoiceLineItemValidationError$outboundSchema)
|
|
43
|
+
.optional(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function createInvoiceLineItemsValidationErrorToJSON(
|
|
47
|
+
createInvoiceLineItemsValidationError: CreateInvoiceLineItemsValidationError,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
CreateInvoiceLineItemsValidationError$outboundSchema.parse(
|
|
51
|
+
createInvoiceLineItemsValidationError,
|
|
52
|
+
),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
export function createInvoiceLineItemsValidationErrorFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<CreateInvoiceLineItemsValidationError, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) =>
|
|
61
|
+
CreateInvoiceLineItemsValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'CreateInvoiceLineItemsValidationError' from JSON`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
AmountDecimalValidationError,
|
|
11
|
+
AmountDecimalValidationError$inboundSchema,
|
|
12
|
+
AmountDecimalValidationError$Outbound,
|
|
13
|
+
AmountDecimalValidationError$outboundSchema,
|
|
14
|
+
} from "./amountdecimalvalidationerror.js";
|
|
15
|
+
import {
|
|
16
|
+
CreateInvoiceLineItemOptionValidationError,
|
|
17
|
+
CreateInvoiceLineItemOptionValidationError$inboundSchema,
|
|
18
|
+
CreateInvoiceLineItemOptionValidationError$Outbound,
|
|
19
|
+
CreateInvoiceLineItemOptionValidationError$outboundSchema,
|
|
20
|
+
} from "./createinvoicelineitemoptionvalidationerror.js";
|
|
21
|
+
|
|
22
|
+
export type CreateInvoiceLineItemValidationError = {
|
|
23
|
+
productID?: string | undefined;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
basePrice?: AmountDecimalValidationError | undefined;
|
|
26
|
+
options?:
|
|
27
|
+
| { [k: string]: CreateInvoiceLineItemOptionValidationError }
|
|
28
|
+
| undefined;
|
|
29
|
+
quantity?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const CreateInvoiceLineItemValidationError$inboundSchema: z.ZodType<
|
|
34
|
+
CreateInvoiceLineItemValidationError,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
productID: z.string().optional(),
|
|
39
|
+
name: z.string().optional(),
|
|
40
|
+
basePrice: AmountDecimalValidationError$inboundSchema.optional(),
|
|
41
|
+
options: z.record(CreateInvoiceLineItemOptionValidationError$inboundSchema)
|
|
42
|
+
.optional(),
|
|
43
|
+
quantity: z.string().optional(),
|
|
44
|
+
});
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type CreateInvoiceLineItemValidationError$Outbound = {
|
|
47
|
+
productID?: string | undefined;
|
|
48
|
+
name?: string | undefined;
|
|
49
|
+
basePrice?: AmountDecimalValidationError$Outbound | undefined;
|
|
50
|
+
options?:
|
|
51
|
+
| { [k: string]: CreateInvoiceLineItemOptionValidationError$Outbound }
|
|
52
|
+
| undefined;
|
|
53
|
+
quantity?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const CreateInvoiceLineItemValidationError$outboundSchema: z.ZodType<
|
|
58
|
+
CreateInvoiceLineItemValidationError$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
CreateInvoiceLineItemValidationError
|
|
61
|
+
> = z.object({
|
|
62
|
+
productID: z.string().optional(),
|
|
63
|
+
name: z.string().optional(),
|
|
64
|
+
basePrice: AmountDecimalValidationError$outboundSchema.optional(),
|
|
65
|
+
options: z.record(CreateInvoiceLineItemOptionValidationError$outboundSchema)
|
|
66
|
+
.optional(),
|
|
67
|
+
quantity: z.string().optional(),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export function createInvoiceLineItemValidationErrorToJSON(
|
|
71
|
+
createInvoiceLineItemValidationError: CreateInvoiceLineItemValidationError,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
CreateInvoiceLineItemValidationError$outboundSchema.parse(
|
|
75
|
+
createInvoiceLineItemValidationError,
|
|
76
|
+
),
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
export function createInvoiceLineItemValidationErrorFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<CreateInvoiceLineItemValidationError, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) =>
|
|
85
|
+
CreateInvoiceLineItemValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'CreateInvoiceLineItemValidationError' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -143,6 +143,13 @@ export * from "./createfeeplanagreement.js";
|
|
|
143
143
|
export * from "./createindividualerror.js";
|
|
144
144
|
export * from "./createindividualprofile.js";
|
|
145
145
|
export * from "./createinvoice.js";
|
|
146
|
+
export * from "./createinvoicelineitem.js";
|
|
147
|
+
export * from "./createinvoicelineitemoption.js";
|
|
148
|
+
export * from "./createinvoicelineitemoptionvalidationerror.js";
|
|
149
|
+
export * from "./createinvoicelineitems.js";
|
|
150
|
+
export * from "./createinvoicelineitemsupdate.js";
|
|
151
|
+
export * from "./createinvoicelineitemsvalidationerror.js";
|
|
152
|
+
export * from "./createinvoicelineitemvalidationerror.js";
|
|
146
153
|
export * from "./createpaymentlink.js";
|
|
147
154
|
export * from "./createpaymentlinklineitem.js";
|
|
148
155
|
export * from "./createpaymentlinklineitemoption.js";
|
|
@@ -244,10 +251,10 @@ export * from "./institutionssearchresponse.js";
|
|
|
244
251
|
export * from "./invoice.js";
|
|
245
252
|
export * from "./invoiceexternalpayment.js";
|
|
246
253
|
export * from "./invoicelineitem.js";
|
|
254
|
+
export * from "./invoicelineitemimagemetadata.js";
|
|
247
255
|
export * from "./invoicelineitemoption.js";
|
|
248
256
|
export * from "./invoicelineitemoptionvalidationerror.js";
|
|
249
257
|
export * from "./invoicelineitems.js";
|
|
250
|
-
export * from "./invoicelineitemsupdate.js";
|
|
251
258
|
export * from "./invoicelineitemsvalidationerror.js";
|
|
252
259
|
export * from "./invoicelineitemvalidationerror.js";
|
|
253
260
|
export * from "./invoicepayment.js";
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
import {
|
|
@@ -14,13 +13,6 @@ import {
|
|
|
14
13
|
PaymentMethodsBankAccount$outboundSchema,
|
|
15
14
|
} from "./paymentmethodsbankaccount.js";
|
|
16
15
|
|
|
17
|
-
export const InstantBankCreditPaymentMethodPaymentMethodType = {
|
|
18
|
-
InstantBankCredit: "instant-bank-credit",
|
|
19
|
-
} as const;
|
|
20
|
-
export type InstantBankCreditPaymentMethodPaymentMethodType = ClosedEnum<
|
|
21
|
-
typeof InstantBankCreditPaymentMethodPaymentMethodType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
* Instantly send funds to a bank account.
|
|
26
18
|
*/
|
|
@@ -29,22 +21,13 @@ export type InstantBankCreditPaymentMethod = {
|
|
|
29
21
|
* ID of the payment method.
|
|
30
22
|
*/
|
|
31
23
|
paymentMethodID: string;
|
|
32
|
-
paymentMethodType:
|
|
24
|
+
paymentMethodType: "instant-bank-credit";
|
|
33
25
|
/**
|
|
34
26
|
* A bank account as contained within a payment method.
|
|
35
27
|
*/
|
|
36
28
|
bankAccount: PaymentMethodsBankAccount;
|
|
37
29
|
};
|
|
38
30
|
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const InstantBankCreditPaymentMethodPaymentMethodType$inboundSchema:
|
|
41
|
-
z.ZodNativeEnum<typeof InstantBankCreditPaymentMethodPaymentMethodType> = z
|
|
42
|
-
.nativeEnum(InstantBankCreditPaymentMethodPaymentMethodType);
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const InstantBankCreditPaymentMethodPaymentMethodType$outboundSchema:
|
|
45
|
-
z.ZodNativeEnum<typeof InstantBankCreditPaymentMethodPaymentMethodType> =
|
|
46
|
-
InstantBankCreditPaymentMethodPaymentMethodType$inboundSchema;
|
|
47
|
-
|
|
48
31
|
/** @internal */
|
|
49
32
|
export const InstantBankCreditPaymentMethod$inboundSchema: z.ZodType<
|
|
50
33
|
InstantBankCreditPaymentMethod,
|
|
@@ -52,14 +35,13 @@ export const InstantBankCreditPaymentMethod$inboundSchema: z.ZodType<
|
|
|
52
35
|
unknown
|
|
53
36
|
> = z.object({
|
|
54
37
|
paymentMethodID: z.string(),
|
|
55
|
-
paymentMethodType:
|
|
56
|
-
InstantBankCreditPaymentMethodPaymentMethodType$inboundSchema,
|
|
38
|
+
paymentMethodType: z.literal("instant-bank-credit"),
|
|
57
39
|
bankAccount: PaymentMethodsBankAccount$inboundSchema,
|
|
58
40
|
});
|
|
59
41
|
/** @internal */
|
|
60
42
|
export type InstantBankCreditPaymentMethod$Outbound = {
|
|
61
43
|
paymentMethodID: string;
|
|
62
|
-
paymentMethodType:
|
|
44
|
+
paymentMethodType: "instant-bank-credit";
|
|
63
45
|
bankAccount: PaymentMethodsBankAccount$Outbound;
|
|
64
46
|
};
|
|
65
47
|
|
|
@@ -70,8 +52,7 @@ export const InstantBankCreditPaymentMethod$outboundSchema: z.ZodType<
|
|
|
70
52
|
InstantBankCreditPaymentMethod
|
|
71
53
|
> = z.object({
|
|
72
54
|
paymentMethodID: z.string(),
|
|
73
|
-
paymentMethodType:
|
|
74
|
-
InstantBankCreditPaymentMethodPaymentMethodType$outboundSchema,
|
|
55
|
+
paymentMethodType: z.literal("instant-bank-credit"),
|
|
75
56
|
bankAccount: PaymentMethodsBankAccount$outboundSchema,
|
|
76
57
|
});
|
|
77
58
|
|