@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
|
@@ -1,178 +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 { blobLikeSchema } from "../../types/blobs.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type ImageUpdateRequestMultiPartImage = {
|
|
12
|
-
fileName: string;
|
|
13
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* JSON-encoded metadata to update for the image.
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
*
|
|
21
|
-
* Omit this field if not updating metadata, or send `null` to clear existing metadata.
|
|
22
|
-
*/
|
|
23
|
-
export type Metadata = {
|
|
24
|
-
/**
|
|
25
|
-
* Alternative text for the image.
|
|
26
|
-
*/
|
|
27
|
-
altText?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Multipart request body for updating an image and/or its metadata.
|
|
32
|
-
*/
|
|
33
|
-
export type ImageUpdateRequestMultiPart = {
|
|
34
|
-
image: ImageUpdateRequestMultiPartImage | Blob;
|
|
35
|
-
/**
|
|
36
|
-
* JSON-encoded metadata to update for the image.
|
|
37
|
-
*
|
|
38
|
-
* @remarks
|
|
39
|
-
*
|
|
40
|
-
* Omit this field if not updating metadata, or send `null` to clear existing metadata.
|
|
41
|
-
*/
|
|
42
|
-
metadata?: Metadata | null | undefined;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const ImageUpdateRequestMultiPartImage$inboundSchema: z.ZodType<
|
|
47
|
-
ImageUpdateRequestMultiPartImage,
|
|
48
|
-
z.ZodTypeDef,
|
|
49
|
-
unknown
|
|
50
|
-
> = z.object({
|
|
51
|
-
fileName: z.string(),
|
|
52
|
-
content: z.union([
|
|
53
|
-
z.instanceof(ReadableStream<Uint8Array>),
|
|
54
|
-
z.instanceof(Blob),
|
|
55
|
-
z.instanceof(ArrayBuffer),
|
|
56
|
-
z.instanceof(Uint8Array),
|
|
57
|
-
]),
|
|
58
|
-
});
|
|
59
|
-
/** @internal */
|
|
60
|
-
export type ImageUpdateRequestMultiPartImage$Outbound = {
|
|
61
|
-
fileName: string;
|
|
62
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const ImageUpdateRequestMultiPartImage$outboundSchema: z.ZodType<
|
|
67
|
-
ImageUpdateRequestMultiPartImage$Outbound,
|
|
68
|
-
z.ZodTypeDef,
|
|
69
|
-
ImageUpdateRequestMultiPartImage
|
|
70
|
-
> = z.object({
|
|
71
|
-
fileName: z.string(),
|
|
72
|
-
content: z.union([
|
|
73
|
-
z.instanceof(ReadableStream<Uint8Array>),
|
|
74
|
-
z.instanceof(Blob),
|
|
75
|
-
z.instanceof(ArrayBuffer),
|
|
76
|
-
z.instanceof(Uint8Array),
|
|
77
|
-
]),
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
export function imageUpdateRequestMultiPartImageToJSON(
|
|
81
|
-
imageUpdateRequestMultiPartImage: ImageUpdateRequestMultiPartImage,
|
|
82
|
-
): string {
|
|
83
|
-
return JSON.stringify(
|
|
84
|
-
ImageUpdateRequestMultiPartImage$outboundSchema.parse(
|
|
85
|
-
imageUpdateRequestMultiPartImage,
|
|
86
|
-
),
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
export function imageUpdateRequestMultiPartImageFromJSON(
|
|
90
|
-
jsonString: string,
|
|
91
|
-
): SafeParseResult<ImageUpdateRequestMultiPartImage, SDKValidationError> {
|
|
92
|
-
return safeParse(
|
|
93
|
-
jsonString,
|
|
94
|
-
(x) => ImageUpdateRequestMultiPartImage$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
-
`Failed to parse 'ImageUpdateRequestMultiPartImage' from JSON`,
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/** @internal */
|
|
100
|
-
export const Metadata$inboundSchema: z.ZodType<
|
|
101
|
-
Metadata,
|
|
102
|
-
z.ZodTypeDef,
|
|
103
|
-
unknown
|
|
104
|
-
> = z.object({
|
|
105
|
-
altText: z.string().optional(),
|
|
106
|
-
});
|
|
107
|
-
/** @internal */
|
|
108
|
-
export type Metadata$Outbound = {
|
|
109
|
-
altText?: string | undefined;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
/** @internal */
|
|
113
|
-
export const Metadata$outboundSchema: z.ZodType<
|
|
114
|
-
Metadata$Outbound,
|
|
115
|
-
z.ZodTypeDef,
|
|
116
|
-
Metadata
|
|
117
|
-
> = z.object({
|
|
118
|
-
altText: z.string().optional(),
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
export function metadataToJSON(metadata: Metadata): string {
|
|
122
|
-
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
123
|
-
}
|
|
124
|
-
export function metadataFromJSON(
|
|
125
|
-
jsonString: string,
|
|
126
|
-
): SafeParseResult<Metadata, SDKValidationError> {
|
|
127
|
-
return safeParse(
|
|
128
|
-
jsonString,
|
|
129
|
-
(x) => Metadata$inboundSchema.parse(JSON.parse(x)),
|
|
130
|
-
`Failed to parse 'Metadata' from JSON`,
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/** @internal */
|
|
135
|
-
export const ImageUpdateRequestMultiPart$inboundSchema: z.ZodType<
|
|
136
|
-
ImageUpdateRequestMultiPart,
|
|
137
|
-
z.ZodTypeDef,
|
|
138
|
-
unknown
|
|
139
|
-
> = z.object({
|
|
140
|
-
image: z.lazy(() => ImageUpdateRequestMultiPartImage$inboundSchema),
|
|
141
|
-
metadata: z.nullable(z.lazy(() => Metadata$inboundSchema)).optional(),
|
|
142
|
-
});
|
|
143
|
-
/** @internal */
|
|
144
|
-
export type ImageUpdateRequestMultiPart$Outbound = {
|
|
145
|
-
image: ImageUpdateRequestMultiPartImage$Outbound | Blob;
|
|
146
|
-
metadata?: Metadata$Outbound | null | undefined;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
/** @internal */
|
|
150
|
-
export const ImageUpdateRequestMultiPart$outboundSchema: z.ZodType<
|
|
151
|
-
ImageUpdateRequestMultiPart$Outbound,
|
|
152
|
-
z.ZodTypeDef,
|
|
153
|
-
ImageUpdateRequestMultiPart
|
|
154
|
-
> = z.object({
|
|
155
|
-
image: z.lazy(() => ImageUpdateRequestMultiPartImage$outboundSchema).or(
|
|
156
|
-
blobLikeSchema,
|
|
157
|
-
),
|
|
158
|
-
metadata: z.nullable(z.lazy(() => Metadata$outboundSchema)).optional(),
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
export function imageUpdateRequestMultiPartToJSON(
|
|
162
|
-
imageUpdateRequestMultiPart: ImageUpdateRequestMultiPart,
|
|
163
|
-
): string {
|
|
164
|
-
return JSON.stringify(
|
|
165
|
-
ImageUpdateRequestMultiPart$outboundSchema.parse(
|
|
166
|
-
imageUpdateRequestMultiPart,
|
|
167
|
-
),
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
export function imageUpdateRequestMultiPartFromJSON(
|
|
171
|
-
jsonString: string,
|
|
172
|
-
): SafeParseResult<ImageUpdateRequestMultiPart, SDKValidationError> {
|
|
173
|
-
return safeParse(
|
|
174
|
-
jsonString,
|
|
175
|
-
(x) => ImageUpdateRequestMultiPart$inboundSchema.parse(JSON.parse(x)),
|
|
176
|
-
`Failed to parse 'ImageUpdateRequestMultiPart' from JSON`,
|
|
177
|
-
);
|
|
178
|
-
}
|
|
@@ -1,78 +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 PaymentLinkLineItemOptionValidationError = {
|
|
17
|
-
name?: string | undefined;
|
|
18
|
-
group?: string | undefined;
|
|
19
|
-
priceModifier?: AmountDecimalValidationError | undefined;
|
|
20
|
-
quantity?: string | undefined;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const PaymentLinkLineItemOptionValidationError$inboundSchema: z.ZodType<
|
|
25
|
-
PaymentLinkLineItemOptionValidationError,
|
|
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 PaymentLinkLineItemOptionValidationError$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 PaymentLinkLineItemOptionValidationError$outboundSchema: z.ZodType<
|
|
44
|
-
PaymentLinkLineItemOptionValidationError$Outbound,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
PaymentLinkLineItemOptionValidationError
|
|
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 paymentLinkLineItemOptionValidationErrorToJSON(
|
|
55
|
-
paymentLinkLineItemOptionValidationError:
|
|
56
|
-
PaymentLinkLineItemOptionValidationError,
|
|
57
|
-
): string {
|
|
58
|
-
return JSON.stringify(
|
|
59
|
-
PaymentLinkLineItemOptionValidationError$outboundSchema.parse(
|
|
60
|
-
paymentLinkLineItemOptionValidationError,
|
|
61
|
-
),
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
export function paymentLinkLineItemOptionValidationErrorFromJSON(
|
|
65
|
-
jsonString: string,
|
|
66
|
-
): SafeParseResult<
|
|
67
|
-
PaymentLinkLineItemOptionValidationError,
|
|
68
|
-
SDKValidationError
|
|
69
|
-
> {
|
|
70
|
-
return safeParse(
|
|
71
|
-
jsonString,
|
|
72
|
-
(x) =>
|
|
73
|
-
PaymentLinkLineItemOptionValidationError$inboundSchema.parse(
|
|
74
|
-
JSON.parse(x),
|
|
75
|
-
),
|
|
76
|
-
`Failed to parse 'PaymentLinkLineItemOptionValidationError' from JSON`,
|
|
77
|
-
);
|
|
78
|
-
}
|
|
@@ -1,66 +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
|
-
PaymentLinkLineItem,
|
|
11
|
-
PaymentLinkLineItem$inboundSchema,
|
|
12
|
-
PaymentLinkLineItem$Outbound,
|
|
13
|
-
PaymentLinkLineItem$outboundSchema,
|
|
14
|
-
} from "./paymentlinklineitem.js";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* An optional collection of line items for a payment link.
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* When line items are provided, their total plus sales tax must equal the payment link amount.
|
|
21
|
-
*/
|
|
22
|
-
export type PaymentLinkLineItemsUpdate = {
|
|
23
|
-
/**
|
|
24
|
-
* The list of line items.
|
|
25
|
-
*/
|
|
26
|
-
items?: Array<PaymentLinkLineItem> | undefined;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const PaymentLinkLineItemsUpdate$inboundSchema: z.ZodType<
|
|
31
|
-
PaymentLinkLineItemsUpdate,
|
|
32
|
-
z.ZodTypeDef,
|
|
33
|
-
unknown
|
|
34
|
-
> = z.object({
|
|
35
|
-
items: z.array(PaymentLinkLineItem$inboundSchema).optional(),
|
|
36
|
-
});
|
|
37
|
-
/** @internal */
|
|
38
|
-
export type PaymentLinkLineItemsUpdate$Outbound = {
|
|
39
|
-
items?: Array<PaymentLinkLineItem$Outbound> | undefined;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const PaymentLinkLineItemsUpdate$outboundSchema: z.ZodType<
|
|
44
|
-
PaymentLinkLineItemsUpdate$Outbound,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
PaymentLinkLineItemsUpdate
|
|
47
|
-
> = z.object({
|
|
48
|
-
items: z.array(PaymentLinkLineItem$outboundSchema).optional(),
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export function paymentLinkLineItemsUpdateToJSON(
|
|
52
|
-
paymentLinkLineItemsUpdate: PaymentLinkLineItemsUpdate,
|
|
53
|
-
): string {
|
|
54
|
-
return JSON.stringify(
|
|
55
|
-
PaymentLinkLineItemsUpdate$outboundSchema.parse(paymentLinkLineItemsUpdate),
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
export function paymentLinkLineItemsUpdateFromJSON(
|
|
59
|
-
jsonString: string,
|
|
60
|
-
): SafeParseResult<PaymentLinkLineItemsUpdate, SDKValidationError> {
|
|
61
|
-
return safeParse(
|
|
62
|
-
jsonString,
|
|
63
|
-
(x) => PaymentLinkLineItemsUpdate$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
-
`Failed to parse 'PaymentLinkLineItemsUpdate' from JSON`,
|
|
65
|
-
);
|
|
66
|
-
}
|
|
@@ -1,62 +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
|
-
PaymentLinkLineItemValidationError,
|
|
11
|
-
PaymentLinkLineItemValidationError$inboundSchema,
|
|
12
|
-
PaymentLinkLineItemValidationError$Outbound,
|
|
13
|
-
PaymentLinkLineItemValidationError$outboundSchema,
|
|
14
|
-
} from "./paymentlinklineitemvalidationerror.js";
|
|
15
|
-
|
|
16
|
-
export type PaymentLinkLineItemsValidationError = {
|
|
17
|
-
items?: { [k: string]: PaymentLinkLineItemValidationError } | undefined;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const PaymentLinkLineItemsValidationError$inboundSchema: z.ZodType<
|
|
22
|
-
PaymentLinkLineItemsValidationError,
|
|
23
|
-
z.ZodTypeDef,
|
|
24
|
-
unknown
|
|
25
|
-
> = z.object({
|
|
26
|
-
items: z.record(PaymentLinkLineItemValidationError$inboundSchema).optional(),
|
|
27
|
-
});
|
|
28
|
-
/** @internal */
|
|
29
|
-
export type PaymentLinkLineItemsValidationError$Outbound = {
|
|
30
|
-
items?:
|
|
31
|
-
| { [k: string]: PaymentLinkLineItemValidationError$Outbound }
|
|
32
|
-
| undefined;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const PaymentLinkLineItemsValidationError$outboundSchema: z.ZodType<
|
|
37
|
-
PaymentLinkLineItemsValidationError$Outbound,
|
|
38
|
-
z.ZodTypeDef,
|
|
39
|
-
PaymentLinkLineItemsValidationError
|
|
40
|
-
> = z.object({
|
|
41
|
-
items: z.record(PaymentLinkLineItemValidationError$outboundSchema).optional(),
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export function paymentLinkLineItemsValidationErrorToJSON(
|
|
45
|
-
paymentLinkLineItemsValidationError: PaymentLinkLineItemsValidationError,
|
|
46
|
-
): string {
|
|
47
|
-
return JSON.stringify(
|
|
48
|
-
PaymentLinkLineItemsValidationError$outboundSchema.parse(
|
|
49
|
-
paymentLinkLineItemsValidationError,
|
|
50
|
-
),
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
export function paymentLinkLineItemsValidationErrorFromJSON(
|
|
54
|
-
jsonString: string,
|
|
55
|
-
): SafeParseResult<PaymentLinkLineItemsValidationError, SDKValidationError> {
|
|
56
|
-
return safeParse(
|
|
57
|
-
jsonString,
|
|
58
|
-
(x) =>
|
|
59
|
-
PaymentLinkLineItemsValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
60
|
-
`Failed to parse 'PaymentLinkLineItemsValidationError' from JSON`,
|
|
61
|
-
);
|
|
62
|
-
}
|
|
@@ -1,88 +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
|
-
PaymentLinkLineItemOptionValidationError,
|
|
17
|
-
PaymentLinkLineItemOptionValidationError$inboundSchema,
|
|
18
|
-
PaymentLinkLineItemOptionValidationError$Outbound,
|
|
19
|
-
PaymentLinkLineItemOptionValidationError$outboundSchema,
|
|
20
|
-
} from "./paymentlinklineitemoptionvalidationerror.js";
|
|
21
|
-
|
|
22
|
-
export type PaymentLinkLineItemValidationError = {
|
|
23
|
-
productID?: string | undefined;
|
|
24
|
-
name?: string | undefined;
|
|
25
|
-
basePrice?: AmountDecimalValidationError | undefined;
|
|
26
|
-
options?:
|
|
27
|
-
| { [k: string]: PaymentLinkLineItemOptionValidationError }
|
|
28
|
-
| undefined;
|
|
29
|
-
quantity?: string | undefined;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const PaymentLinkLineItemValidationError$inboundSchema: z.ZodType<
|
|
34
|
-
PaymentLinkLineItemValidationError,
|
|
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(PaymentLinkLineItemOptionValidationError$inboundSchema)
|
|
42
|
-
.optional(),
|
|
43
|
-
quantity: z.string().optional(),
|
|
44
|
-
});
|
|
45
|
-
/** @internal */
|
|
46
|
-
export type PaymentLinkLineItemValidationError$Outbound = {
|
|
47
|
-
productID?: string | undefined;
|
|
48
|
-
name?: string | undefined;
|
|
49
|
-
basePrice?: AmountDecimalValidationError$Outbound | undefined;
|
|
50
|
-
options?:
|
|
51
|
-
| { [k: string]: PaymentLinkLineItemOptionValidationError$Outbound }
|
|
52
|
-
| undefined;
|
|
53
|
-
quantity?: string | undefined;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const PaymentLinkLineItemValidationError$outboundSchema: z.ZodType<
|
|
58
|
-
PaymentLinkLineItemValidationError$Outbound,
|
|
59
|
-
z.ZodTypeDef,
|
|
60
|
-
PaymentLinkLineItemValidationError
|
|
61
|
-
> = z.object({
|
|
62
|
-
productID: z.string().optional(),
|
|
63
|
-
name: z.string().optional(),
|
|
64
|
-
basePrice: AmountDecimalValidationError$outboundSchema.optional(),
|
|
65
|
-
options: z.record(PaymentLinkLineItemOptionValidationError$outboundSchema)
|
|
66
|
-
.optional(),
|
|
67
|
-
quantity: z.string().optional(),
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export function paymentLinkLineItemValidationErrorToJSON(
|
|
71
|
-
paymentLinkLineItemValidationError: PaymentLinkLineItemValidationError,
|
|
72
|
-
): string {
|
|
73
|
-
return JSON.stringify(
|
|
74
|
-
PaymentLinkLineItemValidationError$outboundSchema.parse(
|
|
75
|
-
paymentLinkLineItemValidationError,
|
|
76
|
-
),
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
export function paymentLinkLineItemValidationErrorFromJSON(
|
|
80
|
-
jsonString: string,
|
|
81
|
-
): SafeParseResult<PaymentLinkLineItemValidationError, SDKValidationError> {
|
|
82
|
-
return safeParse(
|
|
83
|
-
jsonString,
|
|
84
|
-
(x) =>
|
|
85
|
-
PaymentLinkLineItemValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
-
`Failed to parse 'PaymentLinkLineItemValidationError' from JSON`,
|
|
87
|
-
);
|
|
88
|
-
}
|