@moovio/sdk 0.21.17 → 0.22.1
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 +70 -70
- package/bin/mcp-server.js +272 -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/invoicelineitemoption.d.ts +6 -0
- package/models/components/invoicelineitemoption.d.ts.map +1 -1
- package/models/components/invoicelineitemoption.js +3 -0
- package/models/components/invoicelineitemoption.js.map +1 -1
- 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/invoicelineitemoption.ts +13 -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
|
@@ -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,37 +13,21 @@ import {
|
|
|
14
13
|
AmountDecimal$outboundSchema,
|
|
15
14
|
} from "./amountdecimal.js";
|
|
16
15
|
|
|
17
|
-
export const InvoiceExternalPaymentPaymentType = {
|
|
18
|
-
External: "external",
|
|
19
|
-
} as const;
|
|
20
|
-
export type InvoiceExternalPaymentPaymentType = ClosedEnum<
|
|
21
|
-
typeof InvoiceExternalPaymentPaymentType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
16
|
export type InvoiceExternalPayment = {
|
|
25
|
-
paymentType:
|
|
17
|
+
paymentType: "external";
|
|
26
18
|
description: string;
|
|
27
19
|
foreignID?: string | undefined;
|
|
28
20
|
paymentDate?: Date | undefined;
|
|
29
21
|
amount: AmountDecimal;
|
|
30
22
|
};
|
|
31
23
|
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const InvoiceExternalPaymentPaymentType$inboundSchema: z.ZodNativeEnum<
|
|
34
|
-
typeof InvoiceExternalPaymentPaymentType
|
|
35
|
-
> = z.nativeEnum(InvoiceExternalPaymentPaymentType);
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const InvoiceExternalPaymentPaymentType$outboundSchema: z.ZodNativeEnum<
|
|
38
|
-
typeof InvoiceExternalPaymentPaymentType
|
|
39
|
-
> = InvoiceExternalPaymentPaymentType$inboundSchema;
|
|
40
|
-
|
|
41
24
|
/** @internal */
|
|
42
25
|
export const InvoiceExternalPayment$inboundSchema: z.ZodType<
|
|
43
26
|
InvoiceExternalPayment,
|
|
44
27
|
z.ZodTypeDef,
|
|
45
28
|
unknown
|
|
46
29
|
> = z.object({
|
|
47
|
-
paymentType:
|
|
30
|
+
paymentType: z.literal("external"),
|
|
48
31
|
description: z.string(),
|
|
49
32
|
foreignID: z.string().optional(),
|
|
50
33
|
paymentDate: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -53,7 +36,7 @@ export const InvoiceExternalPayment$inboundSchema: z.ZodType<
|
|
|
53
36
|
});
|
|
54
37
|
/** @internal */
|
|
55
38
|
export type InvoiceExternalPayment$Outbound = {
|
|
56
|
-
paymentType:
|
|
39
|
+
paymentType: "external";
|
|
57
40
|
description: string;
|
|
58
41
|
foreignID?: string | undefined;
|
|
59
42
|
paymentDate?: string | undefined;
|
|
@@ -66,7 +49,7 @@ export const InvoiceExternalPayment$outboundSchema: z.ZodType<
|
|
|
66
49
|
z.ZodTypeDef,
|
|
67
50
|
InvoiceExternalPayment
|
|
68
51
|
> = z.object({
|
|
69
|
-
paymentType:
|
|
52
|
+
paymentType: z.literal("external"),
|
|
70
53
|
description: z.string(),
|
|
71
54
|
foreignID: z.string().optional(),
|
|
72
55
|
paymentDate: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
AmountDecimal$Outbound,
|
|
13
13
|
AmountDecimal$outboundSchema,
|
|
14
14
|
} from "./amountdecimal.js";
|
|
15
|
+
import {
|
|
16
|
+
InvoiceLineItemImageMetadata,
|
|
17
|
+
InvoiceLineItemImageMetadata$inboundSchema,
|
|
18
|
+
InvoiceLineItemImageMetadata$Outbound,
|
|
19
|
+
InvoiceLineItemImageMetadata$outboundSchema,
|
|
20
|
+
} from "./invoicelineitemimagemetadata.js";
|
|
15
21
|
import {
|
|
16
22
|
InvoiceLineItemOption,
|
|
17
23
|
InvoiceLineItemOption$inboundSchema,
|
|
@@ -35,14 +41,18 @@ export type InvoiceLineItem = {
|
|
|
35
41
|
* The quantity of this item.
|
|
36
42
|
*/
|
|
37
43
|
quantity: number;
|
|
44
|
+
/**
|
|
45
|
+
* Optional unique identifier associating the line item with a product.
|
|
46
|
+
*/
|
|
47
|
+
productID?: string | undefined;
|
|
38
48
|
/**
|
|
39
49
|
* Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
|
|
40
50
|
*/
|
|
41
51
|
options?: Array<InvoiceLineItemOption> | undefined;
|
|
42
52
|
/**
|
|
43
|
-
* Optional
|
|
53
|
+
* Optional list of images associated with this line item.
|
|
44
54
|
*/
|
|
45
|
-
|
|
55
|
+
images?: Array<InvoiceLineItemImageMetadata> | undefined;
|
|
46
56
|
};
|
|
47
57
|
|
|
48
58
|
/** @internal */
|
|
@@ -54,16 +64,18 @@ export const InvoiceLineItem$inboundSchema: z.ZodType<
|
|
|
54
64
|
name: z.string(),
|
|
55
65
|
basePrice: AmountDecimal$inboundSchema,
|
|
56
66
|
quantity: z.number().int(),
|
|
57
|
-
options: z.array(InvoiceLineItemOption$inboundSchema).optional(),
|
|
58
67
|
productID: z.string().optional(),
|
|
68
|
+
options: z.array(InvoiceLineItemOption$inboundSchema).optional(),
|
|
69
|
+
images: z.array(InvoiceLineItemImageMetadata$inboundSchema).optional(),
|
|
59
70
|
});
|
|
60
71
|
/** @internal */
|
|
61
72
|
export type InvoiceLineItem$Outbound = {
|
|
62
73
|
name: string;
|
|
63
74
|
basePrice: AmountDecimal$Outbound;
|
|
64
75
|
quantity: number;
|
|
65
|
-
options?: Array<InvoiceLineItemOption$Outbound> | undefined;
|
|
66
76
|
productID?: string | undefined;
|
|
77
|
+
options?: Array<InvoiceLineItemOption$Outbound> | undefined;
|
|
78
|
+
images?: Array<InvoiceLineItemImageMetadata$Outbound> | undefined;
|
|
67
79
|
};
|
|
68
80
|
|
|
69
81
|
/** @internal */
|
|
@@ -75,8 +87,9 @@ export const InvoiceLineItem$outboundSchema: z.ZodType<
|
|
|
75
87
|
name: z.string(),
|
|
76
88
|
basePrice: AmountDecimal$outboundSchema,
|
|
77
89
|
quantity: z.number().int(),
|
|
78
|
-
options: z.array(InvoiceLineItemOption$outboundSchema).optional(),
|
|
79
90
|
productID: z.string().optional(),
|
|
91
|
+
options: z.array(InvoiceLineItemOption$outboundSchema).optional(),
|
|
92
|
+
images: z.array(InvoiceLineItemImageMetadata$outboundSchema).optional(),
|
|
80
93
|
});
|
|
81
94
|
|
|
82
95
|
export function invoiceLineItemToJSON(
|
|
@@ -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
|
+
|
|
10
|
+
export type InvoiceLineItemImageMetadata = {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for a image resource.
|
|
13
|
+
*/
|
|
14
|
+
imageID: string;
|
|
15
|
+
/**
|
|
16
|
+
* Alternative text for the image.
|
|
17
|
+
*/
|
|
18
|
+
altText?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The image's public URL.
|
|
21
|
+
*/
|
|
22
|
+
link: string;
|
|
23
|
+
/**
|
|
24
|
+
* A unique identifier for an image, used in public image links.
|
|
25
|
+
*/
|
|
26
|
+
publicID: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const InvoiceLineItemImageMetadata$inboundSchema: z.ZodType<
|
|
31
|
+
InvoiceLineItemImageMetadata,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
imageID: z.string(),
|
|
36
|
+
altText: z.string().optional(),
|
|
37
|
+
link: z.string(),
|
|
38
|
+
publicID: z.string(),
|
|
39
|
+
});
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type InvoiceLineItemImageMetadata$Outbound = {
|
|
42
|
+
imageID: string;
|
|
43
|
+
altText?: string | undefined;
|
|
44
|
+
link: string;
|
|
45
|
+
publicID: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const InvoiceLineItemImageMetadata$outboundSchema: z.ZodType<
|
|
50
|
+
InvoiceLineItemImageMetadata$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
InvoiceLineItemImageMetadata
|
|
53
|
+
> = z.object({
|
|
54
|
+
imageID: z.string(),
|
|
55
|
+
altText: z.string().optional(),
|
|
56
|
+
link: z.string(),
|
|
57
|
+
publicID: z.string(),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function invoiceLineItemImageMetadataToJSON(
|
|
61
|
+
invoiceLineItemImageMetadata: InvoiceLineItemImageMetadata,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
InvoiceLineItemImageMetadata$outboundSchema.parse(
|
|
65
|
+
invoiceLineItemImageMetadata,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
export function invoiceLineItemImageMetadataFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<InvoiceLineItemImageMetadata, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => InvoiceLineItemImageMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'InvoiceLineItemImageMetadata' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
AmountDecimal$Outbound,
|
|
13
13
|
AmountDecimal$outboundSchema,
|
|
14
14
|
} from "./amountdecimal.js";
|
|
15
|
+
import {
|
|
16
|
+
InvoiceLineItemImageMetadata,
|
|
17
|
+
InvoiceLineItemImageMetadata$inboundSchema,
|
|
18
|
+
InvoiceLineItemImageMetadata$Outbound,
|
|
19
|
+
InvoiceLineItemImageMetadata$outboundSchema,
|
|
20
|
+
} from "./invoicelineitemimagemetadata.js";
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* Represents a modifier or option applied to a line item.
|
|
@@ -33,6 +39,10 @@ export type InvoiceLineItemOption = {
|
|
|
33
39
|
* Optional group identifier to categorize related options (e.g., 'toppings').
|
|
34
40
|
*/
|
|
35
41
|
group?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Optional list of images associated with this line item option.
|
|
44
|
+
*/
|
|
45
|
+
images?: Array<InvoiceLineItemImageMetadata> | undefined;
|
|
36
46
|
};
|
|
37
47
|
|
|
38
48
|
/** @internal */
|
|
@@ -45,6 +55,7 @@ export const InvoiceLineItemOption$inboundSchema: z.ZodType<
|
|
|
45
55
|
quantity: z.number().int(),
|
|
46
56
|
priceModifier: AmountDecimal$inboundSchema.optional(),
|
|
47
57
|
group: z.string().optional(),
|
|
58
|
+
images: z.array(InvoiceLineItemImageMetadata$inboundSchema).optional(),
|
|
48
59
|
});
|
|
49
60
|
/** @internal */
|
|
50
61
|
export type InvoiceLineItemOption$Outbound = {
|
|
@@ -52,6 +63,7 @@ export type InvoiceLineItemOption$Outbound = {
|
|
|
52
63
|
quantity: number;
|
|
53
64
|
priceModifier?: AmountDecimal$Outbound | undefined;
|
|
54
65
|
group?: string | undefined;
|
|
66
|
+
images?: Array<InvoiceLineItemImageMetadata$Outbound> | undefined;
|
|
55
67
|
};
|
|
56
68
|
|
|
57
69
|
/** @internal */
|
|
@@ -64,6 +76,7 @@ export const InvoiceLineItemOption$outboundSchema: z.ZodType<
|
|
|
64
76
|
quantity: z.number().int(),
|
|
65
77
|
priceModifier: AmountDecimal$outboundSchema.optional(),
|
|
66
78
|
group: z.string().optional(),
|
|
79
|
+
images: z.array(InvoiceLineItemImageMetadata$outboundSchema).optional(),
|
|
67
80
|
});
|
|
68
81
|
|
|
69
82
|
export function invoiceLineItemOptionToJSON(
|
|
@@ -19,9 +19,7 @@ import {
|
|
|
19
19
|
InvoiceTransferPayment$outboundSchema,
|
|
20
20
|
} from "./invoicetransferpayment.js";
|
|
21
21
|
|
|
22
|
-
export type InvoicePayment =
|
|
23
|
-
| (InvoiceExternalPayment & { paymentType: "external" })
|
|
24
|
-
| (InvoiceTransferPayment & { paymentType: "transfer" });
|
|
22
|
+
export type InvoicePayment = InvoiceTransferPayment | InvoiceExternalPayment;
|
|
25
23
|
|
|
26
24
|
/** @internal */
|
|
27
25
|
export const InvoicePayment$inboundSchema: z.ZodType<
|
|
@@ -29,17 +27,13 @@ export const InvoicePayment$inboundSchema: z.ZodType<
|
|
|
29
27
|
z.ZodTypeDef,
|
|
30
28
|
unknown
|
|
31
29
|
> = z.union([
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
),
|
|
35
|
-
InvoiceTransferPayment$inboundSchema.and(
|
|
36
|
-
z.object({ paymentType: z.literal("transfer") }),
|
|
37
|
-
),
|
|
30
|
+
InvoiceTransferPayment$inboundSchema,
|
|
31
|
+
InvoiceExternalPayment$inboundSchema,
|
|
38
32
|
]);
|
|
39
33
|
/** @internal */
|
|
40
34
|
export type InvoicePayment$Outbound =
|
|
41
|
-
|
|
|
42
|
-
|
|
|
35
|
+
| InvoiceTransferPayment$Outbound
|
|
36
|
+
| InvoiceExternalPayment$Outbound;
|
|
43
37
|
|
|
44
38
|
/** @internal */
|
|
45
39
|
export const InvoicePayment$outboundSchema: z.ZodType<
|
|
@@ -47,12 +41,8 @@ export const InvoicePayment$outboundSchema: z.ZodType<
|
|
|
47
41
|
z.ZodTypeDef,
|
|
48
42
|
InvoicePayment
|
|
49
43
|
> = z.union([
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
),
|
|
53
|
-
InvoiceTransferPayment$outboundSchema.and(
|
|
54
|
-
z.object({ paymentType: z.literal("transfer") }),
|
|
55
|
-
),
|
|
44
|
+
InvoiceTransferPayment$outboundSchema,
|
|
45
|
+
InvoiceExternalPayment$outboundSchema,
|
|
56
46
|
]);
|
|
57
47
|
|
|
58
48
|
export function invoicePaymentToJSON(invoicePayment: InvoicePayment): string {
|
|
@@ -4,39 +4,26 @@
|
|
|
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
|
|
|
11
|
-
export const PaymentType = {
|
|
12
|
-
Transfer: "transfer",
|
|
13
|
-
} as const;
|
|
14
|
-
export type PaymentType = ClosedEnum<typeof PaymentType>;
|
|
15
|
-
|
|
16
10
|
export type InvoiceTransferPayment = {
|
|
17
|
-
paymentType:
|
|
11
|
+
paymentType: "transfer";
|
|
18
12
|
transferID: string;
|
|
19
13
|
};
|
|
20
14
|
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const PaymentType$inboundSchema: z.ZodNativeEnum<typeof PaymentType> = z
|
|
23
|
-
.nativeEnum(PaymentType);
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const PaymentType$outboundSchema: z.ZodNativeEnum<typeof PaymentType> =
|
|
26
|
-
PaymentType$inboundSchema;
|
|
27
|
-
|
|
28
15
|
/** @internal */
|
|
29
16
|
export const InvoiceTransferPayment$inboundSchema: z.ZodType<
|
|
30
17
|
InvoiceTransferPayment,
|
|
31
18
|
z.ZodTypeDef,
|
|
32
19
|
unknown
|
|
33
20
|
> = z.object({
|
|
34
|
-
paymentType:
|
|
21
|
+
paymentType: z.literal("transfer"),
|
|
35
22
|
transferID: z.string(),
|
|
36
23
|
});
|
|
37
24
|
/** @internal */
|
|
38
25
|
export type InvoiceTransferPayment$Outbound = {
|
|
39
|
-
paymentType:
|
|
26
|
+
paymentType: "transfer";
|
|
40
27
|
transferID: string;
|
|
41
28
|
};
|
|
42
29
|
|
|
@@ -46,7 +33,7 @@ export const InvoiceTransferPayment$outboundSchema: z.ZodType<
|
|
|
46
33
|
z.ZodTypeDef,
|
|
47
34
|
InvoiceTransferPayment
|
|
48
35
|
> = z.object({
|
|
49
|
-
paymentType:
|
|
36
|
+
paymentType: z.literal("transfer"),
|
|
50
37
|
transferID: z.string(),
|
|
51
38
|
});
|
|
52
39
|
|
|
@@ -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,31 +13,15 @@ import {
|
|
|
14
13
|
PaymentMethodsWallet$outboundSchema,
|
|
15
14
|
} from "./paymentmethodswallet.js";
|
|
16
15
|
|
|
17
|
-
export const MoovWalletPaymentMethodPaymentMethodType = {
|
|
18
|
-
MoovWallet: "moov-wallet",
|
|
19
|
-
} as const;
|
|
20
|
-
export type MoovWalletPaymentMethodPaymentMethodType = ClosedEnum<
|
|
21
|
-
typeof MoovWalletPaymentMethodPaymentMethodType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
16
|
export type MoovWalletPaymentMethod = {
|
|
25
17
|
/**
|
|
26
18
|
* ID of the payment method.
|
|
27
19
|
*/
|
|
28
20
|
paymentMethodID: string;
|
|
29
|
-
paymentMethodType:
|
|
21
|
+
paymentMethodType: "moov-wallet";
|
|
30
22
|
wallet: PaymentMethodsWallet;
|
|
31
23
|
};
|
|
32
24
|
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const MoovWalletPaymentMethodPaymentMethodType$inboundSchema:
|
|
35
|
-
z.ZodNativeEnum<typeof MoovWalletPaymentMethodPaymentMethodType> = z
|
|
36
|
-
.nativeEnum(MoovWalletPaymentMethodPaymentMethodType);
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const MoovWalletPaymentMethodPaymentMethodType$outboundSchema:
|
|
39
|
-
z.ZodNativeEnum<typeof MoovWalletPaymentMethodPaymentMethodType> =
|
|
40
|
-
MoovWalletPaymentMethodPaymentMethodType$inboundSchema;
|
|
41
|
-
|
|
42
25
|
/** @internal */
|
|
43
26
|
export const MoovWalletPaymentMethod$inboundSchema: z.ZodType<
|
|
44
27
|
MoovWalletPaymentMethod,
|
|
@@ -46,13 +29,13 @@ export const MoovWalletPaymentMethod$inboundSchema: z.ZodType<
|
|
|
46
29
|
unknown
|
|
47
30
|
> = z.object({
|
|
48
31
|
paymentMethodID: z.string(),
|
|
49
|
-
paymentMethodType:
|
|
32
|
+
paymentMethodType: z.literal("moov-wallet"),
|
|
50
33
|
wallet: PaymentMethodsWallet$inboundSchema,
|
|
51
34
|
});
|
|
52
35
|
/** @internal */
|
|
53
36
|
export type MoovWalletPaymentMethod$Outbound = {
|
|
54
37
|
paymentMethodID: string;
|
|
55
|
-
paymentMethodType:
|
|
38
|
+
paymentMethodType: "moov-wallet";
|
|
56
39
|
wallet: PaymentMethodsWallet$Outbound;
|
|
57
40
|
};
|
|
58
41
|
|
|
@@ -63,7 +46,7 @@ export const MoovWalletPaymentMethod$outboundSchema: z.ZodType<
|
|
|
63
46
|
MoovWalletPaymentMethod
|
|
64
47
|
> = z.object({
|
|
65
48
|
paymentMethodID: z.string(),
|
|
66
|
-
paymentMethodType:
|
|
49
|
+
paymentMethodType: z.literal("moov-wallet"),
|
|
67
50
|
wallet: PaymentMethodsWallet$outboundSchema,
|
|
68
51
|
});
|
|
69
52
|
|
|
@@ -83,26 +83,18 @@ import {
|
|
|
83
83
|
* A method of moving money
|
|
84
84
|
*/
|
|
85
85
|
export type PaymentMethod =
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
| (PullFromCardPaymentMethod & { paymentMethodType: "pull-from-card" })
|
|
99
|
-
| (ApplePayPaymentMethod & { paymentMethodType: "apple-pay" })
|
|
100
|
-
| (InstantBankCreditPaymentMethod & {
|
|
101
|
-
paymentMethodType: "instant-bank-credit";
|
|
102
|
-
})
|
|
103
|
-
| (CardPresentPaymentPaymentMethod & {
|
|
104
|
-
paymentMethodType: "card-present-payment";
|
|
105
|
-
});
|
|
86
|
+
| MoovWalletPaymentMethod
|
|
87
|
+
| AchDebitFundPaymentMethod
|
|
88
|
+
| AchDebitCollectPaymentMethod
|
|
89
|
+
| AchCreditStandardPaymentMethod
|
|
90
|
+
| AchCreditSameDayPaymentMethod
|
|
91
|
+
| RtpCreditPaymentMethod
|
|
92
|
+
| CardPaymentPaymentMethod
|
|
93
|
+
| PushToCardPaymentMethod
|
|
94
|
+
| PullFromCardPaymentMethod
|
|
95
|
+
| ApplePayPaymentMethod
|
|
96
|
+
| CardPresentPaymentPaymentMethod
|
|
97
|
+
| InstantBankCreditPaymentMethod;
|
|
106
98
|
|
|
107
99
|
/** @internal */
|
|
108
100
|
export const PaymentMethod$inboundSchema: z.ZodType<
|
|
@@ -110,71 +102,33 @@ export const PaymentMethod$inboundSchema: z.ZodType<
|
|
|
110
102
|
z.ZodTypeDef,
|
|
111
103
|
unknown
|
|
112
104
|
> = z.union([
|
|
113
|
-
MoovWalletPaymentMethod$inboundSchema
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
AchCreditSameDayPaymentMethod$inboundSchema.and(
|
|
126
|
-
z.object({ paymentMethodType: z.literal("ach-credit-same-day") }),
|
|
127
|
-
),
|
|
128
|
-
RtpCreditPaymentMethod$inboundSchema.and(
|
|
129
|
-
z.object({ paymentMethodType: z.literal("rtp-credit") }),
|
|
130
|
-
),
|
|
131
|
-
CardPaymentPaymentMethod$inboundSchema.and(
|
|
132
|
-
z.object({ paymentMethodType: z.literal("card-payment") }),
|
|
133
|
-
),
|
|
134
|
-
PushToCardPaymentMethod$inboundSchema.and(
|
|
135
|
-
z.object({ paymentMethodType: z.literal("push-to-card") }),
|
|
136
|
-
),
|
|
137
|
-
PullFromCardPaymentMethod$inboundSchema.and(
|
|
138
|
-
z.object({ paymentMethodType: z.literal("pull-from-card") }),
|
|
139
|
-
),
|
|
140
|
-
ApplePayPaymentMethod$inboundSchema.and(
|
|
141
|
-
z.object({ paymentMethodType: z.literal("apple-pay") }),
|
|
142
|
-
),
|
|
143
|
-
InstantBankCreditPaymentMethod$inboundSchema.and(
|
|
144
|
-
z.object({ paymentMethodType: z.literal("instant-bank-credit") }),
|
|
145
|
-
),
|
|
146
|
-
CardPresentPaymentPaymentMethod$inboundSchema.and(
|
|
147
|
-
z.object({ paymentMethodType: z.literal("card-present-payment") }),
|
|
148
|
-
),
|
|
105
|
+
MoovWalletPaymentMethod$inboundSchema,
|
|
106
|
+
AchDebitFundPaymentMethod$inboundSchema,
|
|
107
|
+
AchDebitCollectPaymentMethod$inboundSchema,
|
|
108
|
+
AchCreditStandardPaymentMethod$inboundSchema,
|
|
109
|
+
AchCreditSameDayPaymentMethod$inboundSchema,
|
|
110
|
+
RtpCreditPaymentMethod$inboundSchema,
|
|
111
|
+
CardPaymentPaymentMethod$inboundSchema,
|
|
112
|
+
PushToCardPaymentMethod$inboundSchema,
|
|
113
|
+
PullFromCardPaymentMethod$inboundSchema,
|
|
114
|
+
ApplePayPaymentMethod$inboundSchema,
|
|
115
|
+
CardPresentPaymentPaymentMethod$inboundSchema,
|
|
116
|
+
InstantBankCreditPaymentMethod$inboundSchema,
|
|
149
117
|
]);
|
|
150
118
|
/** @internal */
|
|
151
119
|
export type PaymentMethod$Outbound =
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
|
163
|
-
|
|
164
|
-
})
|
|
165
|
-
| (RtpCreditPaymentMethod$Outbound & { paymentMethodType: "rtp-credit" })
|
|
166
|
-
| (CardPaymentPaymentMethod$Outbound & { paymentMethodType: "card-payment" })
|
|
167
|
-
| (PushToCardPaymentMethod$Outbound & { paymentMethodType: "push-to-card" })
|
|
168
|
-
| (PullFromCardPaymentMethod$Outbound & {
|
|
169
|
-
paymentMethodType: "pull-from-card";
|
|
170
|
-
})
|
|
171
|
-
| (ApplePayPaymentMethod$Outbound & { paymentMethodType: "apple-pay" })
|
|
172
|
-
| (InstantBankCreditPaymentMethod$Outbound & {
|
|
173
|
-
paymentMethodType: "instant-bank-credit";
|
|
174
|
-
})
|
|
175
|
-
| (CardPresentPaymentPaymentMethod$Outbound & {
|
|
176
|
-
paymentMethodType: "card-present-payment";
|
|
177
|
-
});
|
|
120
|
+
| MoovWalletPaymentMethod$Outbound
|
|
121
|
+
| AchDebitFundPaymentMethod$Outbound
|
|
122
|
+
| AchDebitCollectPaymentMethod$Outbound
|
|
123
|
+
| AchCreditStandardPaymentMethod$Outbound
|
|
124
|
+
| AchCreditSameDayPaymentMethod$Outbound
|
|
125
|
+
| RtpCreditPaymentMethod$Outbound
|
|
126
|
+
| CardPaymentPaymentMethod$Outbound
|
|
127
|
+
| PushToCardPaymentMethod$Outbound
|
|
128
|
+
| PullFromCardPaymentMethod$Outbound
|
|
129
|
+
| ApplePayPaymentMethod$Outbound
|
|
130
|
+
| CardPresentPaymentPaymentMethod$Outbound
|
|
131
|
+
| InstantBankCreditPaymentMethod$Outbound;
|
|
178
132
|
|
|
179
133
|
/** @internal */
|
|
180
134
|
export const PaymentMethod$outboundSchema: z.ZodType<
|
|
@@ -182,42 +136,18 @@ export const PaymentMethod$outboundSchema: z.ZodType<
|
|
|
182
136
|
z.ZodTypeDef,
|
|
183
137
|
PaymentMethod
|
|
184
138
|
> = z.union([
|
|
185
|
-
MoovWalletPaymentMethod$outboundSchema
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
AchCreditSameDayPaymentMethod$outboundSchema.and(
|
|
198
|
-
z.object({ paymentMethodType: z.literal("ach-credit-same-day") }),
|
|
199
|
-
),
|
|
200
|
-
RtpCreditPaymentMethod$outboundSchema.and(
|
|
201
|
-
z.object({ paymentMethodType: z.literal("rtp-credit") }),
|
|
202
|
-
),
|
|
203
|
-
CardPaymentPaymentMethod$outboundSchema.and(
|
|
204
|
-
z.object({ paymentMethodType: z.literal("card-payment") }),
|
|
205
|
-
),
|
|
206
|
-
PushToCardPaymentMethod$outboundSchema.and(
|
|
207
|
-
z.object({ paymentMethodType: z.literal("push-to-card") }),
|
|
208
|
-
),
|
|
209
|
-
PullFromCardPaymentMethod$outboundSchema.and(
|
|
210
|
-
z.object({ paymentMethodType: z.literal("pull-from-card") }),
|
|
211
|
-
),
|
|
212
|
-
ApplePayPaymentMethod$outboundSchema.and(
|
|
213
|
-
z.object({ paymentMethodType: z.literal("apple-pay") }),
|
|
214
|
-
),
|
|
215
|
-
InstantBankCreditPaymentMethod$outboundSchema.and(
|
|
216
|
-
z.object({ paymentMethodType: z.literal("instant-bank-credit") }),
|
|
217
|
-
),
|
|
218
|
-
CardPresentPaymentPaymentMethod$outboundSchema.and(
|
|
219
|
-
z.object({ paymentMethodType: z.literal("card-present-payment") }),
|
|
220
|
-
),
|
|
139
|
+
MoovWalletPaymentMethod$outboundSchema,
|
|
140
|
+
AchDebitFundPaymentMethod$outboundSchema,
|
|
141
|
+
AchDebitCollectPaymentMethod$outboundSchema,
|
|
142
|
+
AchCreditStandardPaymentMethod$outboundSchema,
|
|
143
|
+
AchCreditSameDayPaymentMethod$outboundSchema,
|
|
144
|
+
RtpCreditPaymentMethod$outboundSchema,
|
|
145
|
+
CardPaymentPaymentMethod$outboundSchema,
|
|
146
|
+
PushToCardPaymentMethod$outboundSchema,
|
|
147
|
+
PullFromCardPaymentMethod$outboundSchema,
|
|
148
|
+
ApplePayPaymentMethod$outboundSchema,
|
|
149
|
+
CardPresentPaymentPaymentMethod$outboundSchema,
|
|
150
|
+
InstantBankCreditPaymentMethod$outboundSchema,
|
|
221
151
|
]);
|
|
222
152
|
|
|
223
153
|
export function paymentMethodToJSON(paymentMethod: PaymentMethod): string {
|
|
@@ -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,34 +13,18 @@ import {
|
|
|
14
13
|
PaymentMethodsCard$outboundSchema,
|
|
15
14
|
} from "./paymentmethodscard.js";
|
|
16
15
|
|
|
17
|
-
export const PullFromCardPaymentMethodPaymentMethodType = {
|
|
18
|
-
PullFromCard: "pull-from-card",
|
|
19
|
-
} as const;
|
|
20
|
-
export type PullFromCardPaymentMethodPaymentMethodType = ClosedEnum<
|
|
21
|
-
typeof PullFromCardPaymentMethodPaymentMethodType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
16
|
export type PullFromCardPaymentMethod = {
|
|
25
17
|
/**
|
|
26
18
|
* ID of the payment method.
|
|
27
19
|
*/
|
|
28
20
|
paymentMethodID: string;
|
|
29
|
-
paymentMethodType:
|
|
21
|
+
paymentMethodType: "pull-from-card";
|
|
30
22
|
/**
|
|
31
23
|
* A card as contained within a payment method.
|
|
32
24
|
*/
|
|
33
25
|
card: PaymentMethodsCard;
|
|
34
26
|
};
|
|
35
27
|
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const PullFromCardPaymentMethodPaymentMethodType$inboundSchema:
|
|
38
|
-
z.ZodNativeEnum<typeof PullFromCardPaymentMethodPaymentMethodType> = z
|
|
39
|
-
.nativeEnum(PullFromCardPaymentMethodPaymentMethodType);
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const PullFromCardPaymentMethodPaymentMethodType$outboundSchema:
|
|
42
|
-
z.ZodNativeEnum<typeof PullFromCardPaymentMethodPaymentMethodType> =
|
|
43
|
-
PullFromCardPaymentMethodPaymentMethodType$inboundSchema;
|
|
44
|
-
|
|
45
28
|
/** @internal */
|
|
46
29
|
export const PullFromCardPaymentMethod$inboundSchema: z.ZodType<
|
|
47
30
|
PullFromCardPaymentMethod,
|
|
@@ -49,13 +32,13 @@ export const PullFromCardPaymentMethod$inboundSchema: z.ZodType<
|
|
|
49
32
|
unknown
|
|
50
33
|
> = z.object({
|
|
51
34
|
paymentMethodID: z.string(),
|
|
52
|
-
paymentMethodType:
|
|
35
|
+
paymentMethodType: z.literal("pull-from-card"),
|
|
53
36
|
card: PaymentMethodsCard$inboundSchema,
|
|
54
37
|
});
|
|
55
38
|
/** @internal */
|
|
56
39
|
export type PullFromCardPaymentMethod$Outbound = {
|
|
57
40
|
paymentMethodID: string;
|
|
58
|
-
paymentMethodType:
|
|
41
|
+
paymentMethodType: "pull-from-card";
|
|
59
42
|
card: PaymentMethodsCard$Outbound;
|
|
60
43
|
};
|
|
61
44
|
|
|
@@ -66,7 +49,7 @@ export const PullFromCardPaymentMethod$outboundSchema: z.ZodType<
|
|
|
66
49
|
PullFromCardPaymentMethod
|
|
67
50
|
> = z.object({
|
|
68
51
|
paymentMethodID: z.string(),
|
|
69
|
-
paymentMethodType:
|
|
52
|
+
paymentMethodType: z.literal("pull-from-card"),
|
|
70
53
|
card: PaymentMethodsCard$outboundSchema,
|
|
71
54
|
});
|
|
72
55
|
|