@moovio/sdk 0.21.15 → 0.21.17
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 +44 -46
- package/bin/mcp-server.js +302 -289
- package/bin/mcp-server.js.map +50 -47
- package/examples/package-lock.json +1 -1
- package/funcs/imagesUpdate.d.ts +1 -2
- package/funcs/imagesUpdate.d.ts.map +1 -1
- package/funcs/imagesUpdate.js +12 -13
- package/funcs/imagesUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +3 -1
- package/lib/encodings.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/accountsUpdate.js +1 -1
- package/mcp-server/tools/applePayUpdateMerchantDomains.js +3 -3
- package/mcp-server/tools/brandingUpdate.js +1 -1
- package/mcp-server/tools/cardIssuingUpdate.js +1 -1
- package/mcp-server/tools/cardsUpdate.js +6 -6
- package/mcp-server/tools/imagesUpdate.d.ts.map +1 -1
- package/mcp-server/tools/imagesUpdate.js +1 -2
- package/mcp-server/tools/imagesUpdate.js.map +1 -1
- package/mcp-server/tools/paymentLinksUpdate.js +1 -1
- package/mcp-server/tools/representativesUpdate.js +2 -2
- package/mcp-server/tools/supportUpdateTicket.js +1 -1
- package/mcp-server/tools/sweepsUpdateConfig.js +1 -1
- package/mcp-server/tools/transfersUpdate.js +3 -3
- package/mcp-server/tools/walletsUpdate.js +1 -1
- package/models/components/createevidencefilemultipart.d.ts +1 -1
- package/models/components/createpaymentlink.d.ts +3 -5
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js +3 -3
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/createpaymentlinklineitem.d.ts +50 -0
- package/models/components/createpaymentlinklineitem.d.ts.map +1 -0
- package/models/components/createpaymentlinklineitem.js +70 -0
- package/models/components/createpaymentlinklineitem.js.map +1 -0
- package/models/components/createpaymentlinklineitemoption.d.ts +44 -0
- package/models/components/createpaymentlinklineitemoption.d.ts.map +1 -0
- package/models/components/createpaymentlinklineitemoption.js +67 -0
- package/models/components/createpaymentlinklineitemoption.js.map +1 -0
- package/models/components/createpaymentlinklineitemoptionvalidationerror.d.ts +24 -0
- package/models/components/createpaymentlinklineitemoptionvalidationerror.d.ts.map +1 -0
- package/models/components/{paymentlinklineitemoptionvalidationerror.js → createpaymentlinklineitemoptionvalidationerror.js} +10 -10
- package/models/components/createpaymentlinklineitemoptionvalidationerror.js.map +1 -0
- package/models/components/createpaymentlinklineitems.d.ts +27 -0
- package/models/components/createpaymentlinklineitems.d.ts.map +1 -0
- package/models/components/{paymentlinklineitemsupdate.js → createpaymentlinklineitems.js} +13 -13
- package/models/components/createpaymentlinklineitems.js.map +1 -0
- package/models/components/createpaymentlinklineitemsupdate.d.ts +27 -0
- package/models/components/createpaymentlinklineitemsupdate.d.ts.map +1 -0
- package/models/components/{paymentlinklineitemsvalidationerror.js → createpaymentlinklineitemsupdate.js} +13 -13
- package/models/components/createpaymentlinklineitemsupdate.js.map +1 -0
- package/models/components/createpaymentlinklineitemsvalidationerror.d.ts +22 -0
- package/models/components/createpaymentlinklineitemsvalidationerror.d.ts.map +1 -0
- package/models/components/createpaymentlinklineitemsvalidationerror.js +61 -0
- package/models/components/createpaymentlinklineitemsvalidationerror.js.map +1 -0
- package/models/components/createpaymentlinklineitemvalidationerror.d.ts +31 -0
- package/models/components/createpaymentlinklineitemvalidationerror.d.ts.map +1 -0
- package/models/components/{paymentlinklineitemvalidationerror.js → createpaymentlinklineitemvalidationerror.js} +13 -15
- package/models/components/createpaymentlinklineitemvalidationerror.js.map +1 -0
- package/models/components/fileuploadrequestmultipart.d.ts +1 -4
- package/models/components/fileuploadrequestmultipart.d.ts.map +1 -1
- package/models/components/fileuploadrequestmultipart.js.map +1 -1
- package/models/components/imageuploadrequestmultipart.d.ts +3 -3
- package/models/components/imageuploadrequestmultipart.d.ts.map +1 -1
- package/models/components/index.d.ts +8 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -5
- package/models/components/index.js.map +1 -1
- package/models/components/invoicepayment.d.ts.map +1 -1
- package/models/components/invoicepayment.js +4 -12
- package/models/components/invoicepayment.js.map +1 -1
- package/models/components/patchsweepconfig.d.ts +6 -60
- package/models/components/patchsweepconfig.d.ts.map +1 -1
- package/models/components/patchsweepconfig.js +7 -79
- package/models/components/patchsweepconfig.js.map +1 -1
- package/models/components/paymentlinklineitem.d.ts +6 -0
- package/models/components/paymentlinklineitem.d.ts.map +1 -1
- package/models/components/paymentlinklineitem.js +3 -0
- package/models/components/paymentlinklineitem.js.map +1 -1
- package/models/components/paymentlinklineitemimagemetadata.d.ts +35 -0
- package/models/components/paymentlinklineitemimagemetadata.d.ts.map +1 -0
- package/models/components/paymentlinklineitemimagemetadata.js +64 -0
- package/models/components/paymentlinklineitemimagemetadata.js.map +1 -0
- package/models/components/paymentlinklineitemoption.d.ts +6 -0
- package/models/components/paymentlinklineitemoption.d.ts.map +1 -1
- package/models/components/paymentlinklineitemoption.js +3 -0
- package/models/components/paymentlinklineitemoption.js.map +1 -1
- package/models/components/paymentmethod.d.ts.map +1 -1
- package/models/components/paymentmethod.js +24 -34
- package/models/components/paymentmethod.js.map +1 -1
- package/models/components/updatepaymentlink.d.ts +3 -3
- package/models/components/updatepaymentlink.d.ts.map +1 -1
- package/models/components/updatepaymentlink.js +3 -3
- package/models/components/updatepaymentlink.js.map +1 -1
- package/models/components/updaterepresentative.d.ts +2 -20
- package/models/components/updaterepresentative.d.ts.map +1 -1
- package/models/components/updaterepresentative.js +3 -32
- package/models/components/updaterepresentative.js.map +1 -1
- package/models/errors/createpaymentlinkerror.d.ts +3 -3
- package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
- package/models/errors/createpaymentlinkerror.js +3 -3
- package/models/errors/createpaymentlinkerror.js.map +1 -1
- package/models/errors/updatepaymentlinkerror.d.ts +3 -3
- package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
- package/models/errors/updatepaymentlinkerror.js +3 -3
- package/models/errors/updatepaymentlinkerror.js.map +1 -1
- package/models/operations/createpaymentlink.d.ts +3 -0
- package/models/operations/createpaymentlink.d.ts.map +1 -1
- package/models/operations/createpaymentlink.js.map +1 -1
- package/models/operations/disablepaymentlink.d.ts +3 -0
- package/models/operations/disablepaymentlink.d.ts.map +1 -1
- package/models/operations/disablepaymentlink.js.map +1 -1
- package/models/operations/getpaymentlink.d.ts +3 -0
- package/models/operations/getpaymentlink.d.ts.map +1 -1
- package/models/operations/getpaymentlink.js.map +1 -1
- package/models/operations/getpaymentlinkqrcode.d.ts +3 -0
- package/models/operations/getpaymentlinkqrcode.d.ts.map +1 -1
- package/models/operations/getpaymentlinkqrcode.js.map +1 -1
- package/models/operations/listpaymentlinks.d.ts +3 -0
- package/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/models/operations/listpaymentlinks.js.map +1 -1
- package/models/operations/updateimage.d.ts +2 -2
- package/models/operations/updateimage.js +4 -4
- package/models/operations/updatepaymentlink.d.ts +3 -0
- package/models/operations/updatepaymentlink.d.ts.map +1 -1
- package/models/operations/updatepaymentlink.js.map +1 -1
- package/package.json +1 -1
- package/sdk/images.d.ts +1 -2
- package/sdk/images.d.ts.map +1 -1
- package/sdk/images.js +1 -2
- package/sdk/images.js.map +1 -1
- package/src/funcs/imagesUpdate.ts +12 -13
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +4 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/accountsUpdate.ts +1 -1
- package/src/mcp-server/tools/applePayUpdateMerchantDomains.ts +3 -3
- package/src/mcp-server/tools/brandingUpdate.ts +1 -1
- package/src/mcp-server/tools/cardIssuingUpdate.ts +1 -1
- package/src/mcp-server/tools/cardsUpdate.ts +6 -6
- package/src/mcp-server/tools/imagesUpdate.ts +1 -2
- package/src/mcp-server/tools/paymentLinksUpdate.ts +1 -1
- package/src/mcp-server/tools/representativesUpdate.ts +2 -2
- package/src/mcp-server/tools/supportUpdateTicket.ts +1 -1
- package/src/mcp-server/tools/sweepsUpdateConfig.ts +1 -1
- package/src/mcp-server/tools/transfersUpdate.ts +3 -3
- package/src/mcp-server/tools/walletsUpdate.ts +1 -1
- package/src/models/components/createevidencefilemultipart.ts +1 -1
- package/src/models/components/createpaymentlink.ts +10 -12
- package/src/models/components/createpaymentlinklineitem.ts +104 -0
- package/src/models/components/createpaymentlinklineitemoption.ts +93 -0
- package/src/models/components/createpaymentlinklineitemoptionvalidationerror.ts +80 -0
- package/src/models/components/createpaymentlinklineitems.ts +66 -0
- package/src/models/components/createpaymentlinklineitemsupdate.ts +68 -0
- package/src/models/components/createpaymentlinklineitemsvalidationerror.ts +71 -0
- package/src/models/components/createpaymentlinklineitemvalidationerror.ts +96 -0
- package/src/models/components/fileuploadrequestmultipart.ts +1 -4
- package/src/models/components/imageuploadrequestmultipart.ts +3 -3
- package/src/models/components/index.ts +8 -5
- package/src/models/components/invoicepayment.ts +4 -12
- package/src/models/components/patchsweepconfig.ts +12 -252
- package/src/models/components/paymentlinklineitem.ts +13 -0
- package/src/models/components/paymentlinklineitemimagemetadata.ts +77 -0
- package/src/models/components/paymentlinklineitemoption.ts +13 -0
- package/src/models/components/paymentmethod.ts +24 -70
- package/src/models/components/updatepaymentlink.ts +10 -10
- package/src/models/components/updaterepresentative.ts +4 -59
- package/src/models/errors/createpaymentlinkerror.ts +6 -6
- package/src/models/errors/updatepaymentlinkerror.ts +6 -6
- package/src/models/operations/createpaymentlink.ts +3 -0
- package/src/models/operations/disablepaymentlink.ts +3 -0
- package/src/models/operations/getpaymentlink.ts +3 -0
- package/src/models/operations/getpaymentlinkqrcode.ts +3 -0
- package/src/models/operations/listpaymentlinks.ts +3 -0
- package/src/models/operations/updateimage.ts +8 -8
- package/src/models/operations/updatepaymentlink.ts +3 -0
- package/src/sdk/images.ts +1 -2
- package/src/types/enums.ts +1 -21
- package/src/types/index.ts +2 -1
- package/src/types/unrecognized.ts +27 -0
- package/types/enums.d.ts +1 -8
- package/types/enums.d.ts.map +1 -1
- package/types/enums.js +3 -21
- package/types/enums.js.map +1 -1
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/index.js +15 -0
- package/types/index.js.map +1 -1
- package/types/unrecognized.d.ts +10 -0
- package/types/unrecognized.d.ts.map +1 -0
- package/types/unrecognized.js +26 -0
- package/types/unrecognized.js.map +1 -0
- package/models/components/imageupdaterequestmultipart.d.ts +0 -67
- package/models/components/imageupdaterequestmultipart.d.ts.map +0 -1
- package/models/components/imageupdaterequestmultipart.js +0 -105
- package/models/components/imageupdaterequestmultipart.js.map +0 -1
- package/models/components/paymentlinklineitemoptionvalidationerror.d.ts +0 -24
- package/models/components/paymentlinklineitemoptionvalidationerror.d.ts.map +0 -1
- package/models/components/paymentlinklineitemoptionvalidationerror.js.map +0 -1
- package/models/components/paymentlinklineitemsupdate.d.ts +0 -27
- package/models/components/paymentlinklineitemsupdate.d.ts.map +0 -1
- package/models/components/paymentlinklineitemsupdate.js.map +0 -1
- package/models/components/paymentlinklineitemsvalidationerror.d.ts +0 -22
- package/models/components/paymentlinklineitemsvalidationerror.d.ts.map +0 -1
- package/models/components/paymentlinklineitemsvalidationerror.js.map +0 -1
- package/models/components/paymentlinklineitemvalidationerror.d.ts +0 -31
- package/models/components/paymentlinklineitemvalidationerror.d.ts.map +0 -1
- package/models/components/paymentlinklineitemvalidationerror.js.map +0 -1
- package/src/models/components/imageupdaterequestmultipart.ts +0 -178
- package/src/models/components/paymentlinklineitemoptionvalidationerror.ts +0 -78
- package/src/models/components/paymentlinklineitemsupdate.ts +0 -66
- package/src/models/components/paymentlinklineitemsvalidationerror.ts +0 -62
- package/src/models/components/paymentlinklineitemvalidationerror.ts +0 -88
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
CreatePaymentLinkLineItemValidationError,
|
|
11
|
+
CreatePaymentLinkLineItemValidationError$inboundSchema,
|
|
12
|
+
CreatePaymentLinkLineItemValidationError$Outbound,
|
|
13
|
+
CreatePaymentLinkLineItemValidationError$outboundSchema,
|
|
14
|
+
} from "./createpaymentlinklineitemvalidationerror.js";
|
|
15
|
+
|
|
16
|
+
export type CreatePaymentLinkLineItemsValidationError = {
|
|
17
|
+
items?: { [k: string]: CreatePaymentLinkLineItemValidationError } | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const CreatePaymentLinkLineItemsValidationError$inboundSchema: z.ZodType<
|
|
22
|
+
CreatePaymentLinkLineItemsValidationError,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
items: z.record(CreatePaymentLinkLineItemValidationError$inboundSchema)
|
|
27
|
+
.optional(),
|
|
28
|
+
});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type CreatePaymentLinkLineItemsValidationError$Outbound = {
|
|
31
|
+
items?:
|
|
32
|
+
| { [k: string]: CreatePaymentLinkLineItemValidationError$Outbound }
|
|
33
|
+
| undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const CreatePaymentLinkLineItemsValidationError$outboundSchema:
|
|
38
|
+
z.ZodType<
|
|
39
|
+
CreatePaymentLinkLineItemsValidationError$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
CreatePaymentLinkLineItemsValidationError
|
|
42
|
+
> = z.object({
|
|
43
|
+
items: z.record(CreatePaymentLinkLineItemValidationError$outboundSchema)
|
|
44
|
+
.optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function createPaymentLinkLineItemsValidationErrorToJSON(
|
|
48
|
+
createPaymentLinkLineItemsValidationError:
|
|
49
|
+
CreatePaymentLinkLineItemsValidationError,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
CreatePaymentLinkLineItemsValidationError$outboundSchema.parse(
|
|
53
|
+
createPaymentLinkLineItemsValidationError,
|
|
54
|
+
),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
export function createPaymentLinkLineItemsValidationErrorFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<
|
|
60
|
+
CreatePaymentLinkLineItemsValidationError,
|
|
61
|
+
SDKValidationError
|
|
62
|
+
> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) =>
|
|
66
|
+
CreatePaymentLinkLineItemsValidationError$inboundSchema.parse(
|
|
67
|
+
JSON.parse(x),
|
|
68
|
+
),
|
|
69
|
+
`Failed to parse 'CreatePaymentLinkLineItemsValidationError' from JSON`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
CreatePaymentLinkLineItemOptionValidationError,
|
|
17
|
+
CreatePaymentLinkLineItemOptionValidationError$inboundSchema,
|
|
18
|
+
CreatePaymentLinkLineItemOptionValidationError$Outbound,
|
|
19
|
+
CreatePaymentLinkLineItemOptionValidationError$outboundSchema,
|
|
20
|
+
} from "./createpaymentlinklineitemoptionvalidationerror.js";
|
|
21
|
+
|
|
22
|
+
export type CreatePaymentLinkLineItemValidationError = {
|
|
23
|
+
productID?: string | undefined;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
basePrice?: AmountDecimalValidationError | undefined;
|
|
26
|
+
options?:
|
|
27
|
+
| { [k: string]: CreatePaymentLinkLineItemOptionValidationError }
|
|
28
|
+
| undefined;
|
|
29
|
+
quantity?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const CreatePaymentLinkLineItemValidationError$inboundSchema: z.ZodType<
|
|
34
|
+
CreatePaymentLinkLineItemValidationError,
|
|
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(
|
|
42
|
+
CreatePaymentLinkLineItemOptionValidationError$inboundSchema,
|
|
43
|
+
).optional(),
|
|
44
|
+
quantity: z.string().optional(),
|
|
45
|
+
});
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type CreatePaymentLinkLineItemValidationError$Outbound = {
|
|
48
|
+
productID?: string | undefined;
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
basePrice?: AmountDecimalValidationError$Outbound | undefined;
|
|
51
|
+
options?: {
|
|
52
|
+
[k: string]: CreatePaymentLinkLineItemOptionValidationError$Outbound;
|
|
53
|
+
} | undefined;
|
|
54
|
+
quantity?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const CreatePaymentLinkLineItemValidationError$outboundSchema: z.ZodType<
|
|
59
|
+
CreatePaymentLinkLineItemValidationError$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
CreatePaymentLinkLineItemValidationError
|
|
62
|
+
> = z.object({
|
|
63
|
+
productID: z.string().optional(),
|
|
64
|
+
name: z.string().optional(),
|
|
65
|
+
basePrice: AmountDecimalValidationError$outboundSchema.optional(),
|
|
66
|
+
options: z.record(
|
|
67
|
+
CreatePaymentLinkLineItemOptionValidationError$outboundSchema,
|
|
68
|
+
).optional(),
|
|
69
|
+
quantity: z.string().optional(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function createPaymentLinkLineItemValidationErrorToJSON(
|
|
73
|
+
createPaymentLinkLineItemValidationError:
|
|
74
|
+
CreatePaymentLinkLineItemValidationError,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
CreatePaymentLinkLineItemValidationError$outboundSchema.parse(
|
|
78
|
+
createPaymentLinkLineItemValidationError,
|
|
79
|
+
),
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
export function createPaymentLinkLineItemValidationErrorFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<
|
|
85
|
+
CreatePaymentLinkLineItemValidationError,
|
|
86
|
+
SDKValidationError
|
|
87
|
+
> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) =>
|
|
91
|
+
CreatePaymentLinkLineItemValidationError$inboundSchema.parse(
|
|
92
|
+
JSON.parse(x),
|
|
93
|
+
),
|
|
94
|
+
`Failed to parse 'CreatePaymentLinkLineItemValidationError' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -18,16 +18,13 @@ export type FileUploadRequestMultiPartFile = {
|
|
|
18
18
|
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* Request to upload a file for an account.
|
|
23
|
-
*/
|
|
24
21
|
export type FileUploadRequestMultiPart = {
|
|
25
22
|
/**
|
|
26
23
|
* The file to be added. Valid types are `csv`, `png`, `jpeg`, `pdf`.
|
|
27
24
|
*/
|
|
28
25
|
file: FileUploadRequestMultiPartFile | Blob;
|
|
29
26
|
/**
|
|
30
|
-
* The file
|
|
27
|
+
* The purpose of the file being uploaded.
|
|
31
28
|
*/
|
|
32
29
|
filePurpose: FilePurpose;
|
|
33
30
|
/**
|
|
@@ -19,10 +19,10 @@ export type Image = {
|
|
|
19
19
|
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* Multipart request body for uploading an image with optional metadata.
|
|
24
|
-
*/
|
|
25
22
|
export type ImageUploadRequestMultiPart = {
|
|
23
|
+
/**
|
|
24
|
+
* A PNG, JPEG, or WebP image file to upload.
|
|
25
|
+
*/
|
|
26
26
|
image: Image | Blob;
|
|
27
27
|
/**
|
|
28
28
|
* Optional, json-encoded metadata to associate with the uploaded image.
|
|
@@ -144,6 +144,13 @@ export * from "./createindividualerror.js";
|
|
|
144
144
|
export * from "./createindividualprofile.js";
|
|
145
145
|
export * from "./createinvoice.js";
|
|
146
146
|
export * from "./createpaymentlink.js";
|
|
147
|
+
export * from "./createpaymentlinklineitem.js";
|
|
148
|
+
export * from "./createpaymentlinklineitemoption.js";
|
|
149
|
+
export * from "./createpaymentlinklineitemoptionvalidationerror.js";
|
|
150
|
+
export * from "./createpaymentlinklineitems.js";
|
|
151
|
+
export * from "./createpaymentlinklineitemsupdate.js";
|
|
152
|
+
export * from "./createpaymentlinklineitemsvalidationerror.js";
|
|
153
|
+
export * from "./createpaymentlinklineitemvalidationerror.js";
|
|
147
154
|
export * from "./createproductoption.js";
|
|
148
155
|
export * from "./createproductoptiongroup.js";
|
|
149
156
|
export * from "./createprofile.js";
|
|
@@ -223,7 +230,6 @@ export * from "./guestprofile.js";
|
|
|
223
230
|
export * from "./imagemetadata.js";
|
|
224
231
|
export * from "./imagemetadatarequest.js";
|
|
225
232
|
export * from "./imagemetadatavalidationerror.js";
|
|
226
|
-
export * from "./imageupdaterequestmultipart.js";
|
|
227
233
|
export * from "./imageuploadrequestmultipart.js";
|
|
228
234
|
export * from "./incurredfee.js";
|
|
229
235
|
export * from "./individualname.js";
|
|
@@ -316,12 +322,9 @@ export * from "./paymentlinkcustomeroptions.js";
|
|
|
316
322
|
export * from "./paymentlinkdisplayoptions.js";
|
|
317
323
|
export * from "./paymentlinkdisplayoptionsupdate.js";
|
|
318
324
|
export * from "./paymentlinklineitem.js";
|
|
325
|
+
export * from "./paymentlinklineitemimagemetadata.js";
|
|
319
326
|
export * from "./paymentlinklineitemoption.js";
|
|
320
|
-
export * from "./paymentlinklineitemoptionvalidationerror.js";
|
|
321
327
|
export * from "./paymentlinklineitems.js";
|
|
322
|
-
export * from "./paymentlinklineitemsupdate.js";
|
|
323
|
-
export * from "./paymentlinklineitemsvalidationerror.js";
|
|
324
|
-
export * from "./paymentlinklineitemvalidationerror.js";
|
|
325
328
|
export * from "./paymentlinkpaymentdetails.js";
|
|
326
329
|
export * from "./paymentlinkpaymentdetailsupdate.js";
|
|
327
330
|
export * from "./paymentlinkpayoutdetails.js";
|
|
@@ -30,14 +30,10 @@ export const InvoicePayment$inboundSchema: z.ZodType<
|
|
|
30
30
|
unknown
|
|
31
31
|
> = z.union([
|
|
32
32
|
InvoiceExternalPayment$inboundSchema.and(
|
|
33
|
-
z.object({ paymentType: z.literal("external") })
|
|
34
|
-
paymentType: v.paymentType,
|
|
35
|
-
})),
|
|
33
|
+
z.object({ paymentType: z.literal("external") }),
|
|
36
34
|
),
|
|
37
35
|
InvoiceTransferPayment$inboundSchema.and(
|
|
38
|
-
z.object({ paymentType: z.literal("transfer") })
|
|
39
|
-
paymentType: v.paymentType,
|
|
40
|
-
})),
|
|
36
|
+
z.object({ paymentType: z.literal("transfer") }),
|
|
41
37
|
),
|
|
42
38
|
]);
|
|
43
39
|
/** @internal */
|
|
@@ -52,14 +48,10 @@ export const InvoicePayment$outboundSchema: z.ZodType<
|
|
|
52
48
|
InvoicePayment
|
|
53
49
|
> = z.union([
|
|
54
50
|
InvoiceExternalPayment$outboundSchema.and(
|
|
55
|
-
z.object({ paymentType: z.literal("external") })
|
|
56
|
-
paymentType: v.paymentType,
|
|
57
|
-
})),
|
|
51
|
+
z.object({ paymentType: z.literal("external") }),
|
|
58
52
|
),
|
|
59
53
|
InvoiceTransferPayment$outboundSchema.and(
|
|
60
|
-
z.object({ paymentType: z.literal("transfer") })
|
|
61
|
-
paymentType: v.paymentType,
|
|
62
|
-
})),
|
|
54
|
+
z.object({ paymentType: z.literal("transfer") }),
|
|
63
55
|
),
|
|
64
56
|
]);
|
|
65
57
|
|
|
@@ -14,23 +14,11 @@ export const Status = {
|
|
|
14
14
|
} as const;
|
|
15
15
|
export type Status = ClosedEnum<typeof Status>;
|
|
16
16
|
|
|
17
|
-
export type PushPaymentMethodId2 = {};
|
|
18
|
-
|
|
19
|
-
export type PushPaymentMethodID = string | PushPaymentMethodId2;
|
|
20
|
-
|
|
21
|
-
export type PullPaymentMethodId2 = {};
|
|
22
|
-
|
|
23
|
-
export type PullPaymentMethodID = string | PullPaymentMethodId2;
|
|
24
|
-
|
|
25
|
-
export type StatementDescriptor2 = {};
|
|
26
|
-
|
|
27
|
-
export type StatementDescriptor = string | StatementDescriptor2;
|
|
28
|
-
|
|
29
17
|
export type PatchSweepConfig = {
|
|
30
18
|
status?: Status | null | undefined;
|
|
31
|
-
pushPaymentMethodID?: string |
|
|
32
|
-
pullPaymentMethodID?: string |
|
|
33
|
-
statementDescriptor?: string |
|
|
19
|
+
pushPaymentMethodID?: string | null | undefined;
|
|
20
|
+
pullPaymentMethodID?: string | null | undefined;
|
|
21
|
+
statementDescriptor?: string | null | undefined;
|
|
34
22
|
minimumBalance?: string | null | undefined;
|
|
35
23
|
};
|
|
36
24
|
|
|
@@ -41,210 +29,6 @@ export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
|
41
29
|
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
|
|
42
30
|
Status$inboundSchema;
|
|
43
31
|
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const PushPaymentMethodId2$inboundSchema: z.ZodType<
|
|
46
|
-
PushPaymentMethodId2,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
unknown
|
|
49
|
-
> = z.object({});
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type PushPaymentMethodId2$Outbound = {};
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const PushPaymentMethodId2$outboundSchema: z.ZodType<
|
|
55
|
-
PushPaymentMethodId2$Outbound,
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
PushPaymentMethodId2
|
|
58
|
-
> = z.object({});
|
|
59
|
-
|
|
60
|
-
export function pushPaymentMethodID2ToJSON(
|
|
61
|
-
pushPaymentMethodId2: PushPaymentMethodId2,
|
|
62
|
-
): string {
|
|
63
|
-
return JSON.stringify(
|
|
64
|
-
PushPaymentMethodId2$outboundSchema.parse(pushPaymentMethodId2),
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
export function pushPaymentMethodID2FromJSON(
|
|
68
|
-
jsonString: string,
|
|
69
|
-
): SafeParseResult<PushPaymentMethodId2, SDKValidationError> {
|
|
70
|
-
return safeParse(
|
|
71
|
-
jsonString,
|
|
72
|
-
(x) => PushPaymentMethodId2$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
-
`Failed to parse 'PushPaymentMethodId2' from JSON`,
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** @internal */
|
|
78
|
-
export const PushPaymentMethodID$inboundSchema: z.ZodType<
|
|
79
|
-
PushPaymentMethodID,
|
|
80
|
-
z.ZodTypeDef,
|
|
81
|
-
unknown
|
|
82
|
-
> = z.union([z.string(), z.lazy(() => PushPaymentMethodId2$inboundSchema)]);
|
|
83
|
-
/** @internal */
|
|
84
|
-
export type PushPaymentMethodID$Outbound =
|
|
85
|
-
| string
|
|
86
|
-
| PushPaymentMethodId2$Outbound;
|
|
87
|
-
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const PushPaymentMethodID$outboundSchema: z.ZodType<
|
|
90
|
-
PushPaymentMethodID$Outbound,
|
|
91
|
-
z.ZodTypeDef,
|
|
92
|
-
PushPaymentMethodID
|
|
93
|
-
> = z.union([z.string(), z.lazy(() => PushPaymentMethodId2$outboundSchema)]);
|
|
94
|
-
|
|
95
|
-
export function pushPaymentMethodIDToJSON(
|
|
96
|
-
pushPaymentMethodID: PushPaymentMethodID,
|
|
97
|
-
): string {
|
|
98
|
-
return JSON.stringify(
|
|
99
|
-
PushPaymentMethodID$outboundSchema.parse(pushPaymentMethodID),
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
export function pushPaymentMethodIDFromJSON(
|
|
103
|
-
jsonString: string,
|
|
104
|
-
): SafeParseResult<PushPaymentMethodID, SDKValidationError> {
|
|
105
|
-
return safeParse(
|
|
106
|
-
jsonString,
|
|
107
|
-
(x) => PushPaymentMethodID$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
-
`Failed to parse 'PushPaymentMethodID' from JSON`,
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/** @internal */
|
|
113
|
-
export const PullPaymentMethodId2$inboundSchema: z.ZodType<
|
|
114
|
-
PullPaymentMethodId2,
|
|
115
|
-
z.ZodTypeDef,
|
|
116
|
-
unknown
|
|
117
|
-
> = z.object({});
|
|
118
|
-
/** @internal */
|
|
119
|
-
export type PullPaymentMethodId2$Outbound = {};
|
|
120
|
-
|
|
121
|
-
/** @internal */
|
|
122
|
-
export const PullPaymentMethodId2$outboundSchema: z.ZodType<
|
|
123
|
-
PullPaymentMethodId2$Outbound,
|
|
124
|
-
z.ZodTypeDef,
|
|
125
|
-
PullPaymentMethodId2
|
|
126
|
-
> = z.object({});
|
|
127
|
-
|
|
128
|
-
export function pullPaymentMethodID2ToJSON(
|
|
129
|
-
pullPaymentMethodId2: PullPaymentMethodId2,
|
|
130
|
-
): string {
|
|
131
|
-
return JSON.stringify(
|
|
132
|
-
PullPaymentMethodId2$outboundSchema.parse(pullPaymentMethodId2),
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
export function pullPaymentMethodID2FromJSON(
|
|
136
|
-
jsonString: string,
|
|
137
|
-
): SafeParseResult<PullPaymentMethodId2, SDKValidationError> {
|
|
138
|
-
return safeParse(
|
|
139
|
-
jsonString,
|
|
140
|
-
(x) => PullPaymentMethodId2$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
-
`Failed to parse 'PullPaymentMethodId2' from JSON`,
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/** @internal */
|
|
146
|
-
export const PullPaymentMethodID$inboundSchema: z.ZodType<
|
|
147
|
-
PullPaymentMethodID,
|
|
148
|
-
z.ZodTypeDef,
|
|
149
|
-
unknown
|
|
150
|
-
> = z.union([z.string(), z.lazy(() => PullPaymentMethodId2$inboundSchema)]);
|
|
151
|
-
/** @internal */
|
|
152
|
-
export type PullPaymentMethodID$Outbound =
|
|
153
|
-
| string
|
|
154
|
-
| PullPaymentMethodId2$Outbound;
|
|
155
|
-
|
|
156
|
-
/** @internal */
|
|
157
|
-
export const PullPaymentMethodID$outboundSchema: z.ZodType<
|
|
158
|
-
PullPaymentMethodID$Outbound,
|
|
159
|
-
z.ZodTypeDef,
|
|
160
|
-
PullPaymentMethodID
|
|
161
|
-
> = z.union([z.string(), z.lazy(() => PullPaymentMethodId2$outboundSchema)]);
|
|
162
|
-
|
|
163
|
-
export function pullPaymentMethodIDToJSON(
|
|
164
|
-
pullPaymentMethodID: PullPaymentMethodID,
|
|
165
|
-
): string {
|
|
166
|
-
return JSON.stringify(
|
|
167
|
-
PullPaymentMethodID$outboundSchema.parse(pullPaymentMethodID),
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
export function pullPaymentMethodIDFromJSON(
|
|
171
|
-
jsonString: string,
|
|
172
|
-
): SafeParseResult<PullPaymentMethodID, SDKValidationError> {
|
|
173
|
-
return safeParse(
|
|
174
|
-
jsonString,
|
|
175
|
-
(x) => PullPaymentMethodID$inboundSchema.parse(JSON.parse(x)),
|
|
176
|
-
`Failed to parse 'PullPaymentMethodID' from JSON`,
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/** @internal */
|
|
181
|
-
export const StatementDescriptor2$inboundSchema: z.ZodType<
|
|
182
|
-
StatementDescriptor2,
|
|
183
|
-
z.ZodTypeDef,
|
|
184
|
-
unknown
|
|
185
|
-
> = z.object({});
|
|
186
|
-
/** @internal */
|
|
187
|
-
export type StatementDescriptor2$Outbound = {};
|
|
188
|
-
|
|
189
|
-
/** @internal */
|
|
190
|
-
export const StatementDescriptor2$outboundSchema: z.ZodType<
|
|
191
|
-
StatementDescriptor2$Outbound,
|
|
192
|
-
z.ZodTypeDef,
|
|
193
|
-
StatementDescriptor2
|
|
194
|
-
> = z.object({});
|
|
195
|
-
|
|
196
|
-
export function statementDescriptor2ToJSON(
|
|
197
|
-
statementDescriptor2: StatementDescriptor2,
|
|
198
|
-
): string {
|
|
199
|
-
return JSON.stringify(
|
|
200
|
-
StatementDescriptor2$outboundSchema.parse(statementDescriptor2),
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
export function statementDescriptor2FromJSON(
|
|
204
|
-
jsonString: string,
|
|
205
|
-
): SafeParseResult<StatementDescriptor2, SDKValidationError> {
|
|
206
|
-
return safeParse(
|
|
207
|
-
jsonString,
|
|
208
|
-
(x) => StatementDescriptor2$inboundSchema.parse(JSON.parse(x)),
|
|
209
|
-
`Failed to parse 'StatementDescriptor2' from JSON`,
|
|
210
|
-
);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/** @internal */
|
|
214
|
-
export const StatementDescriptor$inboundSchema: z.ZodType<
|
|
215
|
-
StatementDescriptor,
|
|
216
|
-
z.ZodTypeDef,
|
|
217
|
-
unknown
|
|
218
|
-
> = z.union([z.string(), z.lazy(() => StatementDescriptor2$inboundSchema)]);
|
|
219
|
-
/** @internal */
|
|
220
|
-
export type StatementDescriptor$Outbound =
|
|
221
|
-
| string
|
|
222
|
-
| StatementDescriptor2$Outbound;
|
|
223
|
-
|
|
224
|
-
/** @internal */
|
|
225
|
-
export const StatementDescriptor$outboundSchema: z.ZodType<
|
|
226
|
-
StatementDescriptor$Outbound,
|
|
227
|
-
z.ZodTypeDef,
|
|
228
|
-
StatementDescriptor
|
|
229
|
-
> = z.union([z.string(), z.lazy(() => StatementDescriptor2$outboundSchema)]);
|
|
230
|
-
|
|
231
|
-
export function statementDescriptorToJSON(
|
|
232
|
-
statementDescriptor: StatementDescriptor,
|
|
233
|
-
): string {
|
|
234
|
-
return JSON.stringify(
|
|
235
|
-
StatementDescriptor$outboundSchema.parse(statementDescriptor),
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
export function statementDescriptorFromJSON(
|
|
239
|
-
jsonString: string,
|
|
240
|
-
): SafeParseResult<StatementDescriptor, SDKValidationError> {
|
|
241
|
-
return safeParse(
|
|
242
|
-
jsonString,
|
|
243
|
-
(x) => StatementDescriptor$inboundSchema.parse(JSON.parse(x)),
|
|
244
|
-
`Failed to parse 'StatementDescriptor' from JSON`,
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
32
|
/** @internal */
|
|
249
33
|
export const PatchSweepConfig$inboundSchema: z.ZodType<
|
|
250
34
|
PatchSweepConfig,
|
|
@@ -252,35 +36,17 @@ export const PatchSweepConfig$inboundSchema: z.ZodType<
|
|
|
252
36
|
unknown
|
|
253
37
|
> = z.object({
|
|
254
38
|
status: z.nullable(Status$inboundSchema).optional(),
|
|
255
|
-
pushPaymentMethodID: z.nullable(
|
|
256
|
-
|
|
257
|
-
).optional(),
|
|
258
|
-
pullPaymentMethodID: z.nullable(
|
|
259
|
-
z.union([z.string(), z.lazy(() => PullPaymentMethodId2$inboundSchema)]),
|
|
260
|
-
).optional(),
|
|
261
|
-
statementDescriptor: z.nullable(
|
|
262
|
-
z.union([z.string(), z.lazy(() => StatementDescriptor2$inboundSchema)]),
|
|
263
|
-
).optional(),
|
|
39
|
+
pushPaymentMethodID: z.nullable(z.string()).optional(),
|
|
40
|
+
pullPaymentMethodID: z.nullable(z.string()).optional(),
|
|
41
|
+
statementDescriptor: z.nullable(z.string()).optional(),
|
|
264
42
|
minimumBalance: z.nullable(z.string()).optional(),
|
|
265
43
|
});
|
|
266
44
|
/** @internal */
|
|
267
45
|
export type PatchSweepConfig$Outbound = {
|
|
268
46
|
status?: string | null | undefined;
|
|
269
|
-
pushPaymentMethodID?:
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
| null
|
|
273
|
-
| undefined;
|
|
274
|
-
pullPaymentMethodID?:
|
|
275
|
-
| string
|
|
276
|
-
| PullPaymentMethodId2$Outbound
|
|
277
|
-
| null
|
|
278
|
-
| undefined;
|
|
279
|
-
statementDescriptor?:
|
|
280
|
-
| string
|
|
281
|
-
| StatementDescriptor2$Outbound
|
|
282
|
-
| null
|
|
283
|
-
| undefined;
|
|
47
|
+
pushPaymentMethodID?: string | null | undefined;
|
|
48
|
+
pullPaymentMethodID?: string | null | undefined;
|
|
49
|
+
statementDescriptor?: string | null | undefined;
|
|
284
50
|
minimumBalance?: string | null | undefined;
|
|
285
51
|
};
|
|
286
52
|
|
|
@@ -291,15 +57,9 @@ export const PatchSweepConfig$outboundSchema: z.ZodType<
|
|
|
291
57
|
PatchSweepConfig
|
|
292
58
|
> = z.object({
|
|
293
59
|
status: z.nullable(Status$outboundSchema).optional(),
|
|
294
|
-
pushPaymentMethodID: z.nullable(
|
|
295
|
-
|
|
296
|
-
).optional(),
|
|
297
|
-
pullPaymentMethodID: z.nullable(
|
|
298
|
-
z.union([z.string(), z.lazy(() => PullPaymentMethodId2$outboundSchema)]),
|
|
299
|
-
).optional(),
|
|
300
|
-
statementDescriptor: z.nullable(
|
|
301
|
-
z.union([z.string(), z.lazy(() => StatementDescriptor2$outboundSchema)]),
|
|
302
|
-
).optional(),
|
|
60
|
+
pushPaymentMethodID: z.nullable(z.string()).optional(),
|
|
61
|
+
pullPaymentMethodID: z.nullable(z.string()).optional(),
|
|
62
|
+
statementDescriptor: z.nullable(z.string()).optional(),
|
|
303
63
|
minimumBalance: z.nullable(z.string()).optional(),
|
|
304
64
|
});
|
|
305
65
|
|
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
AmountDecimal$Outbound,
|
|
13
13
|
AmountDecimal$outboundSchema,
|
|
14
14
|
} from "./amountdecimal.js";
|
|
15
|
+
import {
|
|
16
|
+
PaymentLinkLineItemImageMetadata,
|
|
17
|
+
PaymentLinkLineItemImageMetadata$inboundSchema,
|
|
18
|
+
PaymentLinkLineItemImageMetadata$Outbound,
|
|
19
|
+
PaymentLinkLineItemImageMetadata$outboundSchema,
|
|
20
|
+
} from "./paymentlinklineitemimagemetadata.js";
|
|
15
21
|
import {
|
|
16
22
|
PaymentLinkLineItemOption,
|
|
17
23
|
PaymentLinkLineItemOption$inboundSchema,
|
|
@@ -39,6 +45,10 @@ export type PaymentLinkLineItem = {
|
|
|
39
45
|
* Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
|
|
40
46
|
*/
|
|
41
47
|
options?: Array<PaymentLinkLineItemOption> | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Optional list of images associated with this line item.
|
|
50
|
+
*/
|
|
51
|
+
images?: Array<PaymentLinkLineItemImageMetadata> | undefined;
|
|
42
52
|
/**
|
|
43
53
|
* Optional unique identifier associating the line item with a product.
|
|
44
54
|
*/
|
|
@@ -55,6 +65,7 @@ export const PaymentLinkLineItem$inboundSchema: z.ZodType<
|
|
|
55
65
|
basePrice: AmountDecimal$inboundSchema,
|
|
56
66
|
quantity: z.number().int(),
|
|
57
67
|
options: z.array(PaymentLinkLineItemOption$inboundSchema).optional(),
|
|
68
|
+
images: z.array(PaymentLinkLineItemImageMetadata$inboundSchema).optional(),
|
|
58
69
|
productID: z.string().optional(),
|
|
59
70
|
});
|
|
60
71
|
/** @internal */
|
|
@@ -63,6 +74,7 @@ export type PaymentLinkLineItem$Outbound = {
|
|
|
63
74
|
basePrice: AmountDecimal$Outbound;
|
|
64
75
|
quantity: number;
|
|
65
76
|
options?: Array<PaymentLinkLineItemOption$Outbound> | undefined;
|
|
77
|
+
images?: Array<PaymentLinkLineItemImageMetadata$Outbound> | undefined;
|
|
66
78
|
productID?: string | undefined;
|
|
67
79
|
};
|
|
68
80
|
|
|
@@ -76,6 +88,7 @@ export const PaymentLinkLineItem$outboundSchema: z.ZodType<
|
|
|
76
88
|
basePrice: AmountDecimal$outboundSchema,
|
|
77
89
|
quantity: z.number().int(),
|
|
78
90
|
options: z.array(PaymentLinkLineItemOption$outboundSchema).optional(),
|
|
91
|
+
images: z.array(PaymentLinkLineItemImageMetadata$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 PaymentLinkLineItemImageMetadata = {
|
|
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 PaymentLinkLineItemImageMetadata$inboundSchema: z.ZodType<
|
|
31
|
+
PaymentLinkLineItemImageMetadata,
|
|
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 PaymentLinkLineItemImageMetadata$Outbound = {
|
|
42
|
+
imageID: string;
|
|
43
|
+
altText?: string | undefined;
|
|
44
|
+
link: string;
|
|
45
|
+
publicID: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const PaymentLinkLineItemImageMetadata$outboundSchema: z.ZodType<
|
|
50
|
+
PaymentLinkLineItemImageMetadata$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
PaymentLinkLineItemImageMetadata
|
|
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 paymentLinkLineItemImageMetadataToJSON(
|
|
61
|
+
paymentLinkLineItemImageMetadata: PaymentLinkLineItemImageMetadata,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
PaymentLinkLineItemImageMetadata$outboundSchema.parse(
|
|
65
|
+
paymentLinkLineItemImageMetadata,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
export function paymentLinkLineItemImageMetadataFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<PaymentLinkLineItemImageMetadata, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => PaymentLinkLineItemImageMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'PaymentLinkLineItemImageMetadata' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|