@moovio/sdk 0.22.8 → 0.22.9
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 +158 -68
- package/bin/mcp-server.js.map +19 -15
- package/examples/package-lock.json +1 -1
- package/funcs/invoicesMarkPaidInvoice.js +1 -1
- package/funcs/invoicesMarkPaidInvoice.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/createtransfer.d.ts +3 -3
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +3 -3
- package/models/components/createtransfer.js.map +1 -1
- package/models/components/createtransferlineitem.d.ts +50 -0
- package/models/components/createtransferlineitem.d.ts.map +1 -0
- package/models/components/createtransferlineitem.js +70 -0
- package/models/components/createtransferlineitem.js.map +1 -0
- package/models/components/createtransferlineitemoption.d.ts +44 -0
- package/models/components/createtransferlineitemoption.d.ts.map +1 -0
- package/models/components/createtransferlineitemoption.js +67 -0
- package/models/components/createtransferlineitemoption.js.map +1 -0
- package/models/components/createtransferlineitemoptionvalidationerror.d.ts +26 -0
- package/models/components/createtransferlineitemoptionvalidationerror.d.ts.map +1 -0
- package/models/components/{transferlineitemoptionvalidationerror.js → createtransferlineitemoptionvalidationerror.js} +12 -10
- package/models/components/createtransferlineitemoptionvalidationerror.js.map +1 -0
- package/models/components/createtransferlineitems.d.ts +27 -0
- package/models/components/createtransferlineitems.d.ts.map +1 -0
- package/models/components/{transferlineitemsvalidationerror.js → createtransferlineitems.js} +13 -13
- package/models/components/createtransferlineitems.js.map +1 -0
- package/models/components/createtransferlineitemsvalidationerror.d.ts +22 -0
- package/models/components/createtransferlineitemsvalidationerror.d.ts.map +1 -0
- package/models/components/createtransferlineitemsvalidationerror.js +61 -0
- package/models/components/createtransferlineitemsvalidationerror.js.map +1 -0
- package/models/components/createtransferlineitemvalidationerror.d.ts +33 -0
- package/models/components/createtransferlineitemvalidationerror.d.ts.map +1 -0
- package/models/components/{transferlineitemvalidationerror.js → createtransferlineitemvalidationerror.js} +15 -13
- package/models/components/createtransferlineitemvalidationerror.js.map +1 -0
- package/models/components/index.d.ts +7 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -3
- package/models/components/index.js.map +1 -1
- package/models/components/transferlineitem.d.ts +6 -0
- package/models/components/transferlineitem.d.ts.map +1 -1
- package/models/components/transferlineitem.js +3 -0
- package/models/components/transferlineitem.js.map +1 -1
- package/models/components/transferlineitemimagemetadata.d.ts +35 -0
- package/models/components/transferlineitemimagemetadata.d.ts.map +1 -0
- package/models/components/transferlineitemimagemetadata.js +64 -0
- package/models/components/transferlineitemimagemetadata.js.map +1 -0
- package/models/components/transferlineitemoption.d.ts +6 -0
- package/models/components/transferlineitemoption.d.ts.map +1 -1
- package/models/components/transferlineitemoption.js +3 -0
- package/models/components/transferlineitemoption.js.map +1 -1
- package/models/errors/transfervalidationerror.d.ts +3 -3
- package/models/errors/transfervalidationerror.d.ts.map +1 -1
- package/models/errors/transfervalidationerror.js +3 -3
- package/models/errors/transfervalidationerror.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/invoicesMarkPaidInvoice.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/createtransfer.ts +10 -10
- package/src/models/components/createtransferlineitem.ts +104 -0
- package/src/models/components/createtransferlineitemoption.ts +93 -0
- package/src/models/components/createtransferlineitemoptionvalidationerror.ts +84 -0
- package/src/models/components/createtransferlineitems.ts +66 -0
- package/src/models/components/createtransferlineitemsvalidationerror.ts +65 -0
- package/src/models/components/createtransferlineitemvalidationerror.ts +92 -0
- package/src/models/components/index.ts +7 -3
- package/src/models/components/transferlineitem.ts +13 -0
- package/src/models/components/transferlineitemimagemetadata.ts +77 -0
- package/src/models/components/transferlineitemoption.ts +13 -0
- package/src/models/errors/transfervalidationerror.ts +8 -6
- package/models/components/transferlineitemoptionvalidationerror.d.ts +0 -24
- package/models/components/transferlineitemoptionvalidationerror.d.ts.map +0 -1
- package/models/components/transferlineitemoptionvalidationerror.js.map +0 -1
- package/models/components/transferlineitemsvalidationerror.d.ts +0 -22
- package/models/components/transferlineitemsvalidationerror.d.ts.map +0 -1
- package/models/components/transferlineitemsvalidationerror.js.map +0 -1
- package/models/components/transferlineitemvalidationerror.d.ts +0 -31
- package/models/components/transferlineitemvalidationerror.d.ts.map +0 -1
- package/models/components/transferlineitemvalidationerror.js.map +0 -1
- package/src/models/components/transferlineitemoptionvalidationerror.ts +0 -72
- package/src/models/components/transferlineitemsvalidationerror.ts +0 -59
- package/src/models/components/transferlineitemvalidationerror.ts +0 -85
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
AmountDecimal$Outbound,
|
|
13
13
|
AmountDecimal$outboundSchema,
|
|
14
14
|
} from "./amountdecimal.js";
|
|
15
|
+
import {
|
|
16
|
+
TransferLineItemImageMetadata,
|
|
17
|
+
TransferLineItemImageMetadata$inboundSchema,
|
|
18
|
+
TransferLineItemImageMetadata$Outbound,
|
|
19
|
+
TransferLineItemImageMetadata$outboundSchema,
|
|
20
|
+
} from "./transferlineitemimagemetadata.js";
|
|
15
21
|
import {
|
|
16
22
|
TransferLineItemOption,
|
|
17
23
|
TransferLineItemOption$inboundSchema,
|
|
@@ -39,6 +45,10 @@ export type TransferLineItem = {
|
|
|
39
45
|
* Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
|
|
40
46
|
*/
|
|
41
47
|
options?: Array<TransferLineItemOption> | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Optional list of images associated with this line item.
|
|
50
|
+
*/
|
|
51
|
+
images?: Array<TransferLineItemImageMetadata> | undefined;
|
|
42
52
|
/**
|
|
43
53
|
* Optional unique identifier associating the line item with a product.
|
|
44
54
|
*/
|
|
@@ -55,6 +65,7 @@ export const TransferLineItem$inboundSchema: z.ZodType<
|
|
|
55
65
|
basePrice: AmountDecimal$inboundSchema,
|
|
56
66
|
quantity: z.number().int(),
|
|
57
67
|
options: z.array(TransferLineItemOption$inboundSchema).optional(),
|
|
68
|
+
images: z.array(TransferLineItemImageMetadata$inboundSchema).optional(),
|
|
58
69
|
productID: z.string().optional(),
|
|
59
70
|
});
|
|
60
71
|
/** @internal */
|
|
@@ -63,6 +74,7 @@ export type TransferLineItem$Outbound = {
|
|
|
63
74
|
basePrice: AmountDecimal$Outbound;
|
|
64
75
|
quantity: number;
|
|
65
76
|
options?: Array<TransferLineItemOption$Outbound> | undefined;
|
|
77
|
+
images?: Array<TransferLineItemImageMetadata$Outbound> | undefined;
|
|
66
78
|
productID?: string | undefined;
|
|
67
79
|
};
|
|
68
80
|
|
|
@@ -76,6 +88,7 @@ export const TransferLineItem$outboundSchema: z.ZodType<
|
|
|
76
88
|
basePrice: AmountDecimal$outboundSchema,
|
|
77
89
|
quantity: z.number().int(),
|
|
78
90
|
options: z.array(TransferLineItemOption$outboundSchema).optional(),
|
|
91
|
+
images: z.array(TransferLineItemImageMetadata$outboundSchema).optional(),
|
|
79
92
|
productID: z.string().optional(),
|
|
80
93
|
});
|
|
81
94
|
|
|
@@ -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 TransferLineItemImageMetadata = {
|
|
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 TransferLineItemImageMetadata$inboundSchema: z.ZodType<
|
|
31
|
+
TransferLineItemImageMetadata,
|
|
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 TransferLineItemImageMetadata$Outbound = {
|
|
42
|
+
imageID: string;
|
|
43
|
+
altText?: string | undefined;
|
|
44
|
+
link: string;
|
|
45
|
+
publicID: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const TransferLineItemImageMetadata$outboundSchema: z.ZodType<
|
|
50
|
+
TransferLineItemImageMetadata$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
TransferLineItemImageMetadata
|
|
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 transferLineItemImageMetadataToJSON(
|
|
61
|
+
transferLineItemImageMetadata: TransferLineItemImageMetadata,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
TransferLineItemImageMetadata$outboundSchema.parse(
|
|
65
|
+
transferLineItemImageMetadata,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
export function transferLineItemImageMetadataFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<TransferLineItemImageMetadata, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => TransferLineItemImageMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'TransferLineItemImageMetadata' 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
|
+
TransferLineItemImageMetadata,
|
|
17
|
+
TransferLineItemImageMetadata$inboundSchema,
|
|
18
|
+
TransferLineItemImageMetadata$Outbound,
|
|
19
|
+
TransferLineItemImageMetadata$outboundSchema,
|
|
20
|
+
} from "./transferlineitemimagemetadata.js";
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
23
|
* Represents a modifier or option applied to a line item.
|
|
@@ -29,6 +35,10 @@ export type TransferLineItemOption = {
|
|
|
29
35
|
* Optional price modification applied by this option. Can be positive, negative, or zero.
|
|
30
36
|
*/
|
|
31
37
|
priceModifier?: AmountDecimal | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Optional list of images associated with this line item option.
|
|
40
|
+
*/
|
|
41
|
+
images?: Array<TransferLineItemImageMetadata> | undefined;
|
|
32
42
|
/**
|
|
33
43
|
* Optional group identifier to categorize related options (e.g., 'toppings').
|
|
34
44
|
*/
|
|
@@ -44,6 +54,7 @@ export const TransferLineItemOption$inboundSchema: z.ZodType<
|
|
|
44
54
|
name: z.string(),
|
|
45
55
|
quantity: z.number().int(),
|
|
46
56
|
priceModifier: AmountDecimal$inboundSchema.optional(),
|
|
57
|
+
images: z.array(TransferLineItemImageMetadata$inboundSchema).optional(),
|
|
47
58
|
group: z.string().optional(),
|
|
48
59
|
});
|
|
49
60
|
/** @internal */
|
|
@@ -51,6 +62,7 @@ export type TransferLineItemOption$Outbound = {
|
|
|
51
62
|
name: string;
|
|
52
63
|
quantity: number;
|
|
53
64
|
priceModifier?: AmountDecimal$Outbound | undefined;
|
|
65
|
+
images?: Array<TransferLineItemImageMetadata$Outbound> | undefined;
|
|
54
66
|
group?: string | undefined;
|
|
55
67
|
};
|
|
56
68
|
|
|
@@ -63,6 +75,7 @@ export const TransferLineItemOption$outboundSchema: z.ZodType<
|
|
|
63
75
|
name: z.string(),
|
|
64
76
|
quantity: z.number().int(),
|
|
65
77
|
priceModifier: AmountDecimal$outboundSchema.optional(),
|
|
78
|
+
images: z.array(TransferLineItemImageMetadata$outboundSchema).optional(),
|
|
66
79
|
group: z.string().optional(),
|
|
67
80
|
});
|
|
68
81
|
|
|
@@ -18,7 +18,7 @@ export type TransferValidationErrorData = {
|
|
|
18
18
|
metadata?: string | undefined;
|
|
19
19
|
salesTaxAmount?: string | undefined;
|
|
20
20
|
foreignID?: string | undefined;
|
|
21
|
-
lineItems?: components.
|
|
21
|
+
lineItems?: components.CreateTransferLineItemsValidationError | undefined;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export class TransferValidationError extends MoovError {
|
|
@@ -32,7 +32,7 @@ export class TransferValidationError extends MoovError {
|
|
|
32
32
|
metadata?: string | undefined;
|
|
33
33
|
salesTaxAmount?: string | undefined;
|
|
34
34
|
foreignID?: string | undefined;
|
|
35
|
-
lineItems?: components.
|
|
35
|
+
lineItems?: components.CreateTransferLineItemsValidationError | undefined;
|
|
36
36
|
|
|
37
37
|
/** The original data that was passed to this error instance. */
|
|
38
38
|
data$: TransferValidationErrorData;
|
|
@@ -86,7 +86,7 @@ export const TransferValidationError$inboundSchema: z.ZodType<
|
|
|
86
86
|
metadata: z.string().optional(),
|
|
87
87
|
salesTaxAmount: z.string().optional(),
|
|
88
88
|
foreignID: z.string().optional(),
|
|
89
|
-
lineItems: components.
|
|
89
|
+
lineItems: components.CreateTransferLineItemsValidationError$inboundSchema
|
|
90
90
|
.optional(),
|
|
91
91
|
request$: z.instanceof(Request),
|
|
92
92
|
response$: z.instanceof(Response),
|
|
@@ -117,7 +117,9 @@ export type TransferValidationError$Outbound = {
|
|
|
117
117
|
metadata?: string | undefined;
|
|
118
118
|
salesTaxAmount?: string | undefined;
|
|
119
119
|
foreignID?: string | undefined;
|
|
120
|
-
lineItems?:
|
|
120
|
+
lineItems?:
|
|
121
|
+
| components.CreateTransferLineItemsValidationError$Outbound
|
|
122
|
+
| undefined;
|
|
121
123
|
};
|
|
122
124
|
|
|
123
125
|
/** @internal */
|
|
@@ -139,8 +141,8 @@ export const TransferValidationError$outboundSchema: z.ZodType<
|
|
|
139
141
|
metadata: z.string().optional(),
|
|
140
142
|
salesTaxAmount: z.string().optional(),
|
|
141
143
|
foreignID: z.string().optional(),
|
|
142
|
-
lineItems: components
|
|
143
|
-
.optional(),
|
|
144
|
+
lineItems: components
|
|
145
|
+
.CreateTransferLineItemsValidationError$outboundSchema.optional(),
|
|
144
146
|
}).transform((v) => {
|
|
145
147
|
return remap$(v, {
|
|
146
148
|
facilitatorFeeTotalDecimal: "FacilitatorFee.TotalDecimal",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { AmountDecimalValidationError, AmountDecimalValidationError$Outbound } from "./amountdecimalvalidationerror.js";
|
|
5
|
-
export type TransferLineItemOptionValidationError = {
|
|
6
|
-
name?: string | undefined;
|
|
7
|
-
group?: string | undefined;
|
|
8
|
-
priceModifier?: AmountDecimalValidationError | undefined;
|
|
9
|
-
quantity?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const TransferLineItemOptionValidationError$inboundSchema: z.ZodType<TransferLineItemOptionValidationError, z.ZodTypeDef, unknown>;
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type TransferLineItemOptionValidationError$Outbound = {
|
|
15
|
-
name?: string | undefined;
|
|
16
|
-
group?: string | undefined;
|
|
17
|
-
priceModifier?: AmountDecimalValidationError$Outbound | undefined;
|
|
18
|
-
quantity?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const TransferLineItemOptionValidationError$outboundSchema: z.ZodType<TransferLineItemOptionValidationError$Outbound, z.ZodTypeDef, TransferLineItemOptionValidationError>;
|
|
22
|
-
export declare function transferLineItemOptionValidationErrorToJSON(transferLineItemOptionValidationError: TransferLineItemOptionValidationError): string;
|
|
23
|
-
export declare function transferLineItemOptionValidationErrorFromJSON(jsonString: string): SafeParseResult<TransferLineItemOptionValidationError, SDKValidationError>;
|
|
24
|
-
//# sourceMappingURL=transferlineitemoptionvalidationerror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemoptionvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/transferlineitemoptionvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACzD,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,qCAAqC,GAAG,SAAS,CAAC;IAClE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,8CAA8C,EAC9C,CAAC,CAAC,UAAU,EACZ,qCAAqC,CAMrC,CAAC;AAEH,wBAAgB,2CAA2C,CACzD,qCAAqC,EAAE,qCAAqC,GAC3E,MAAM,CAMR;AACD,wBAAgB,6CAA6C,CAC3D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAO5E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemoptionvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/transferlineitemoptionvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDH,kGAQC;AACD,sGASC;AAnED,0CAA4B;AAC5B,qDAAiD;AAGjD,uFAK2C;AAS3C,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,4EAA0C,CAAC,QAAQ,EAAE;IACpE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,oDAAoD,GAI7D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,6EAA2C,CAAC,QAAQ,EAAE;IACrE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,SAAgB,2CAA2C,CACzD,qCAA4E;IAE5E,OAAO,IAAI,CAAC,SAAS,CACnB,4DAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,6CAA6C,CAC3D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,2DAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AACJ,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { TransferLineItemValidationError, TransferLineItemValidationError$Outbound } from "./transferlineitemvalidationerror.js";
|
|
5
|
-
export type TransferLineItemsValidationError = {
|
|
6
|
-
items?: {
|
|
7
|
-
[k: string]: TransferLineItemValidationError;
|
|
8
|
-
} | undefined;
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const TransferLineItemsValidationError$inboundSchema: z.ZodType<TransferLineItemsValidationError, z.ZodTypeDef, unknown>;
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type TransferLineItemsValidationError$Outbound = {
|
|
14
|
-
items?: {
|
|
15
|
-
[k: string]: TransferLineItemValidationError$Outbound;
|
|
16
|
-
} | undefined;
|
|
17
|
-
};
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare const TransferLineItemsValidationError$outboundSchema: z.ZodType<TransferLineItemsValidationError$Outbound, z.ZodTypeDef, TransferLineItemsValidationError>;
|
|
20
|
-
export declare function transferLineItemsValidationErrorToJSON(transferLineItemsValidationError: TransferLineItemsValidationError): string;
|
|
21
|
-
export declare function transferLineItemsValidationErrorFromJSON(jsonString: string): SafeParseResult<TransferLineItemsValidationError, SDKValidationError>;
|
|
22
|
-
//# sourceMappingURL=transferlineitemsvalidationerror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemsvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/transferlineitemsvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,gCAAgC,GAAG;IAC7C,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,+BAA+B,CAAA;KAAE,GAAG,SAAS,CAAC;CACtE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,yCAAyC,GAAG;IACtD,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,wCAAwC,CAAA;KAAE,GAAG,SAAS,CAAC;CAC/E,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAGhC,CAAC;AAEH,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR;AACD,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemsvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/transferlineitemsvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCH,wFAQC;AACD,4FAQC;AAtDD,0CAA4B;AAC5B,qDAAiD;AAGjD,6FAK8C;AAM9C,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,kFAA6C,CAAC,CAAC,QAAQ,EAAE;CAC1E,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,mFAA8C,CAAC,CAAC,QAAQ,EAAE;CAC3E,CAAC,CAAC;AAEH,SAAgB,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,uDAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,wCAAwC,CACtD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sDAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { AmountDecimalValidationError, AmountDecimalValidationError$Outbound } from "./amountdecimalvalidationerror.js";
|
|
5
|
-
import { TransferLineItemOptionValidationError, TransferLineItemOptionValidationError$Outbound } from "./transferlineitemoptionvalidationerror.js";
|
|
6
|
-
export type TransferLineItemValidationError = {
|
|
7
|
-
productID?: string | undefined;
|
|
8
|
-
name?: string | undefined;
|
|
9
|
-
basePrice?: AmountDecimalValidationError | undefined;
|
|
10
|
-
options?: {
|
|
11
|
-
[k: string]: TransferLineItemOptionValidationError;
|
|
12
|
-
} | undefined;
|
|
13
|
-
quantity?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const TransferLineItemValidationError$inboundSchema: z.ZodType<TransferLineItemValidationError, z.ZodTypeDef, unknown>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export type TransferLineItemValidationError$Outbound = {
|
|
19
|
-
productID?: string | undefined;
|
|
20
|
-
name?: string | undefined;
|
|
21
|
-
basePrice?: AmountDecimalValidationError$Outbound | undefined;
|
|
22
|
-
options?: {
|
|
23
|
-
[k: string]: TransferLineItemOptionValidationError$Outbound;
|
|
24
|
-
} | undefined;
|
|
25
|
-
quantity?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare const TransferLineItemValidationError$outboundSchema: z.ZodType<TransferLineItemValidationError$Outbound, z.ZodTypeDef, TransferLineItemValidationError>;
|
|
29
|
-
export declare function transferLineItemValidationErrorToJSON(transferLineItemValidationError: TransferLineItemValidationError): string;
|
|
30
|
-
export declare function transferLineItemValidationErrorFromJSON(jsonString: string): SafeParseResult<TransferLineItemValidationError, SDKValidationError>;
|
|
31
|
-
//# sourceMappingURL=transferlineitemvalidationerror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/transferlineitemvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,qCAAqC,EAErC,8CAA8C,EAE/C,MAAM,4CAA4C,CAAC;AAEpD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACrD,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,qCAAqC,CAAA;KAAE,GAAG,SAAS,CAAC;IAC7E,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,qCAAqC,GAAG,SAAS,CAAC;IAC9D,OAAO,CAAC,EACJ;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,8CAA8C,CAAA;KAAE,GAC/D,SAAS,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAQ/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AACD,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/transferlineitemvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEH,sFAQC;AACD,0FAQC;AAhFD,0CAA4B;AAC5B,qDAAiD;AAGjD,uFAK2C;AAC3C,yGAKoD;AAUpD,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,4EAA0C,CAAC,QAAQ,EAAE;IAChE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,8FAAmD,CAAC;SACnE,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,6EAA2C,CAAC,QAAQ,EAAE;IACjE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,+FAAoD,CAAC;SACpE,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,SAAgB,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,sDAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,uCAAuC,CACrD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qDAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
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 TransferLineItemOptionValidationError = {
|
|
17
|
-
name?: string | undefined;
|
|
18
|
-
group?: string | undefined;
|
|
19
|
-
priceModifier?: AmountDecimalValidationError | undefined;
|
|
20
|
-
quantity?: string | undefined;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const TransferLineItemOptionValidationError$inboundSchema: z.ZodType<
|
|
25
|
-
TransferLineItemOptionValidationError,
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
28
|
-
> = z.object({
|
|
29
|
-
name: z.string().optional(),
|
|
30
|
-
group: z.string().optional(),
|
|
31
|
-
priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
|
|
32
|
-
quantity: z.string().optional(),
|
|
33
|
-
});
|
|
34
|
-
/** @internal */
|
|
35
|
-
export type TransferLineItemOptionValidationError$Outbound = {
|
|
36
|
-
name?: string | undefined;
|
|
37
|
-
group?: string | undefined;
|
|
38
|
-
priceModifier?: AmountDecimalValidationError$Outbound | undefined;
|
|
39
|
-
quantity?: string | undefined;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const TransferLineItemOptionValidationError$outboundSchema: z.ZodType<
|
|
44
|
-
TransferLineItemOptionValidationError$Outbound,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
TransferLineItemOptionValidationError
|
|
47
|
-
> = z.object({
|
|
48
|
-
name: z.string().optional(),
|
|
49
|
-
group: z.string().optional(),
|
|
50
|
-
priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
|
|
51
|
-
quantity: z.string().optional(),
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
export function transferLineItemOptionValidationErrorToJSON(
|
|
55
|
-
transferLineItemOptionValidationError: TransferLineItemOptionValidationError,
|
|
56
|
-
): string {
|
|
57
|
-
return JSON.stringify(
|
|
58
|
-
TransferLineItemOptionValidationError$outboundSchema.parse(
|
|
59
|
-
transferLineItemOptionValidationError,
|
|
60
|
-
),
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
export function transferLineItemOptionValidationErrorFromJSON(
|
|
64
|
-
jsonString: string,
|
|
65
|
-
): SafeParseResult<TransferLineItemOptionValidationError, SDKValidationError> {
|
|
66
|
-
return safeParse(
|
|
67
|
-
jsonString,
|
|
68
|
-
(x) =>
|
|
69
|
-
TransferLineItemOptionValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
-
`Failed to parse 'TransferLineItemOptionValidationError' from JSON`,
|
|
71
|
-
);
|
|
72
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
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
|
-
TransferLineItemValidationError,
|
|
11
|
-
TransferLineItemValidationError$inboundSchema,
|
|
12
|
-
TransferLineItemValidationError$Outbound,
|
|
13
|
-
TransferLineItemValidationError$outboundSchema,
|
|
14
|
-
} from "./transferlineitemvalidationerror.js";
|
|
15
|
-
|
|
16
|
-
export type TransferLineItemsValidationError = {
|
|
17
|
-
items?: { [k: string]: TransferLineItemValidationError } | undefined;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const TransferLineItemsValidationError$inboundSchema: z.ZodType<
|
|
22
|
-
TransferLineItemsValidationError,
|
|
23
|
-
z.ZodTypeDef,
|
|
24
|
-
unknown
|
|
25
|
-
> = z.object({
|
|
26
|
-
items: z.record(TransferLineItemValidationError$inboundSchema).optional(),
|
|
27
|
-
});
|
|
28
|
-
/** @internal */
|
|
29
|
-
export type TransferLineItemsValidationError$Outbound = {
|
|
30
|
-
items?: { [k: string]: TransferLineItemValidationError$Outbound } | undefined;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const TransferLineItemsValidationError$outboundSchema: z.ZodType<
|
|
35
|
-
TransferLineItemsValidationError$Outbound,
|
|
36
|
-
z.ZodTypeDef,
|
|
37
|
-
TransferLineItemsValidationError
|
|
38
|
-
> = z.object({
|
|
39
|
-
items: z.record(TransferLineItemValidationError$outboundSchema).optional(),
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export function transferLineItemsValidationErrorToJSON(
|
|
43
|
-
transferLineItemsValidationError: TransferLineItemsValidationError,
|
|
44
|
-
): string {
|
|
45
|
-
return JSON.stringify(
|
|
46
|
-
TransferLineItemsValidationError$outboundSchema.parse(
|
|
47
|
-
transferLineItemsValidationError,
|
|
48
|
-
),
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
export function transferLineItemsValidationErrorFromJSON(
|
|
52
|
-
jsonString: string,
|
|
53
|
-
): SafeParseResult<TransferLineItemsValidationError, SDKValidationError> {
|
|
54
|
-
return safeParse(
|
|
55
|
-
jsonString,
|
|
56
|
-
(x) => TransferLineItemsValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
57
|
-
`Failed to parse 'TransferLineItemsValidationError' from JSON`,
|
|
58
|
-
);
|
|
59
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
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
|
-
TransferLineItemOptionValidationError,
|
|
17
|
-
TransferLineItemOptionValidationError$inboundSchema,
|
|
18
|
-
TransferLineItemOptionValidationError$Outbound,
|
|
19
|
-
TransferLineItemOptionValidationError$outboundSchema,
|
|
20
|
-
} from "./transferlineitemoptionvalidationerror.js";
|
|
21
|
-
|
|
22
|
-
export type TransferLineItemValidationError = {
|
|
23
|
-
productID?: string | undefined;
|
|
24
|
-
name?: string | undefined;
|
|
25
|
-
basePrice?: AmountDecimalValidationError | undefined;
|
|
26
|
-
options?: { [k: string]: TransferLineItemOptionValidationError } | undefined;
|
|
27
|
-
quantity?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const TransferLineItemValidationError$inboundSchema: z.ZodType<
|
|
32
|
-
TransferLineItemValidationError,
|
|
33
|
-
z.ZodTypeDef,
|
|
34
|
-
unknown
|
|
35
|
-
> = z.object({
|
|
36
|
-
productID: z.string().optional(),
|
|
37
|
-
name: z.string().optional(),
|
|
38
|
-
basePrice: AmountDecimalValidationError$inboundSchema.optional(),
|
|
39
|
-
options: z.record(TransferLineItemOptionValidationError$inboundSchema)
|
|
40
|
-
.optional(),
|
|
41
|
-
quantity: z.string().optional(),
|
|
42
|
-
});
|
|
43
|
-
/** @internal */
|
|
44
|
-
export type TransferLineItemValidationError$Outbound = {
|
|
45
|
-
productID?: string | undefined;
|
|
46
|
-
name?: string | undefined;
|
|
47
|
-
basePrice?: AmountDecimalValidationError$Outbound | undefined;
|
|
48
|
-
options?:
|
|
49
|
-
| { [k: string]: TransferLineItemOptionValidationError$Outbound }
|
|
50
|
-
| undefined;
|
|
51
|
-
quantity?: string | undefined;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const TransferLineItemValidationError$outboundSchema: z.ZodType<
|
|
56
|
-
TransferLineItemValidationError$Outbound,
|
|
57
|
-
z.ZodTypeDef,
|
|
58
|
-
TransferLineItemValidationError
|
|
59
|
-
> = z.object({
|
|
60
|
-
productID: z.string().optional(),
|
|
61
|
-
name: z.string().optional(),
|
|
62
|
-
basePrice: AmountDecimalValidationError$outboundSchema.optional(),
|
|
63
|
-
options: z.record(TransferLineItemOptionValidationError$outboundSchema)
|
|
64
|
-
.optional(),
|
|
65
|
-
quantity: z.string().optional(),
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
export function transferLineItemValidationErrorToJSON(
|
|
69
|
-
transferLineItemValidationError: TransferLineItemValidationError,
|
|
70
|
-
): string {
|
|
71
|
-
return JSON.stringify(
|
|
72
|
-
TransferLineItemValidationError$outboundSchema.parse(
|
|
73
|
-
transferLineItemValidationError,
|
|
74
|
-
),
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
export function transferLineItemValidationErrorFromJSON(
|
|
78
|
-
jsonString: string,
|
|
79
|
-
): SafeParseResult<TransferLineItemValidationError, SDKValidationError> {
|
|
80
|
-
return safeParse(
|
|
81
|
-
jsonString,
|
|
82
|
-
(x) => TransferLineItemValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
-
`Failed to parse 'TransferLineItemValidationError' from JSON`,
|
|
84
|
-
);
|
|
85
|
-
}
|