@moovio/sdk 0.22.8 → 0.22.10
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 +59 -64
- package/bin/mcp-server.js +691 -849
- package/bin/mcp-server.js.map +23 -24
- package/examples/package-lock.json +1 -1
- package/funcs/imagesDelete.d.ts +4 -1
- package/funcs/imagesDelete.d.ts.map +1 -1
- package/funcs/imagesDelete.js +4 -1
- package/funcs/imagesDelete.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +1 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/imagesDelete.d.ts.map +1 -1
- package/mcp-server/tools/imagesDelete.js +4 -1
- package/mcp-server/tools/imagesDelete.js.map +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/{errors/markinvoicepaiderror.js → components/createtransferlineitemoption.js} +25 -41
- 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/{markinvoicepaid.js → createtransferlineitems.js} +13 -17
- 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/imagemetadata.d.ts +2 -0
- package/models/components/imagemetadata.d.ts.map +1 -1
- package/models/components/imagemetadata.js +3 -0
- package/models/components/imagemetadata.js.map +1 -1
- package/models/components/index.d.ts +7 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -4
- 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/{transferlineitemsvalidationerror.js → transferlineitemimagemetadata.js} +18 -13
- 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/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.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/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/images.d.ts +4 -1
- package/sdk/images.d.ts.map +1 -1
- package/sdk/images.js +4 -1
- package/sdk/images.js.map +1 -1
- package/sdk/invoices.d.ts +0 -8
- package/sdk/invoices.d.ts.map +1 -1
- package/sdk/invoices.js +0 -11
- package/sdk/invoices.js.map +1 -1
- package/src/funcs/imagesDelete.ts +4 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -3
- package/src/mcp-server/tools/imagesDelete.ts +4 -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/imagemetadata.ts +5 -0
- package/src/models/components/index.ts +7 -4
- 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/index.ts +0 -1
- package/src/models/errors/transfervalidationerror.ts +8 -6
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/images.ts +4 -1
- package/src/sdk/invoices.ts +0 -19
- package/funcs/invoicesMarkPaidInvoice.d.ts +0 -19
- package/funcs/invoicesMarkPaidInvoice.d.ts.map +0 -1
- package/funcs/invoicesMarkPaidInvoice.js +0 -144
- package/funcs/invoicesMarkPaidInvoice.js.map +0 -1
- package/mcp-server/tools/invoicesMarkPaidInvoice.d.ts +0 -8
- package/mcp-server/tools/invoicesMarkPaidInvoice.d.ts.map +0 -1
- package/mcp-server/tools/invoicesMarkPaidInvoice.js +0 -66
- package/mcp-server/tools/invoicesMarkPaidInvoice.js.map +0 -1
- package/models/components/markinvoicepaid.d.ts +0 -21
- package/models/components/markinvoicepaid.d.ts.map +0 -1
- package/models/components/markinvoicepaid.js.map +0 -1
- 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/models/errors/markinvoicepaiderror.d.ts +0 -30
- package/models/errors/markinvoicepaiderror.d.ts.map +0 -1
- package/models/errors/markinvoicepaiderror.js.map +0 -1
- package/models/operations/markpaidinvoice.d.ts +0 -68
- package/models/operations/markpaidinvoice.d.ts.map +0 -1
- package/models/operations/markpaidinvoice.js +0 -124
- package/models/operations/markpaidinvoice.js.map +0 -1
- package/src/funcs/invoicesMarkPaidInvoice.ts +0 -208
- package/src/mcp-server/tools/invoicesMarkPaidInvoice.ts +0 -39
- package/src/models/components/markinvoicepaid.ts +0 -58
- package/src/models/components/transferlineitemoptionvalidationerror.ts +0 -72
- package/src/models/components/transferlineitemsvalidationerror.ts +0 -59
- package/src/models/components/transferlineitemvalidationerror.ts +0 -85
- package/src/models/errors/markinvoicepaiderror.ts +0 -78
- package/src/models/operations/markpaidinvoice.ts +0 -191
|
@@ -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
|
-
}
|
|
@@ -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 { MoovError } from "./mooverror.js";
|
|
7
|
-
|
|
8
|
-
export type MarkInvoicePaidErrorData = {
|
|
9
|
-
foreignID?: string | undefined;
|
|
10
|
-
description?: string | undefined;
|
|
11
|
-
paymentDate?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export class MarkInvoicePaidError extends MoovError {
|
|
15
|
-
foreignID?: string | undefined;
|
|
16
|
-
description?: string | undefined;
|
|
17
|
-
paymentDate?: string | undefined;
|
|
18
|
-
|
|
19
|
-
/** The original data that was passed to this error instance. */
|
|
20
|
-
data$: MarkInvoicePaidErrorData;
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
err: MarkInvoicePaidErrorData,
|
|
24
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
25
|
-
) {
|
|
26
|
-
const message = "message" in err && typeof err.message === "string"
|
|
27
|
-
? err.message
|
|
28
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
29
|
-
super(message, httpMeta);
|
|
30
|
-
this.data$ = err;
|
|
31
|
-
if (err.foreignID != null) this.foreignID = err.foreignID;
|
|
32
|
-
if (err.description != null) this.description = err.description;
|
|
33
|
-
if (err.paymentDate != null) this.paymentDate = err.paymentDate;
|
|
34
|
-
|
|
35
|
-
this.name = "MarkInvoicePaidError";
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const MarkInvoicePaidError$inboundSchema: z.ZodType<
|
|
41
|
-
MarkInvoicePaidError,
|
|
42
|
-
z.ZodTypeDef,
|
|
43
|
-
unknown
|
|
44
|
-
> = z.object({
|
|
45
|
-
foreignID: z.string().optional(),
|
|
46
|
-
description: z.string().optional(),
|
|
47
|
-
paymentDate: z.string().optional(),
|
|
48
|
-
request$: z.instanceof(Request),
|
|
49
|
-
response$: z.instanceof(Response),
|
|
50
|
-
body$: z.string(),
|
|
51
|
-
})
|
|
52
|
-
.transform((v) => {
|
|
53
|
-
return new MarkInvoicePaidError(v, {
|
|
54
|
-
request: v.request$,
|
|
55
|
-
response: v.response$,
|
|
56
|
-
body: v.body$,
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
/** @internal */
|
|
61
|
-
export type MarkInvoicePaidError$Outbound = {
|
|
62
|
-
foreignID?: string | undefined;
|
|
63
|
-
description?: string | undefined;
|
|
64
|
-
paymentDate?: string | undefined;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/** @internal */
|
|
68
|
-
export const MarkInvoicePaidError$outboundSchema: z.ZodType<
|
|
69
|
-
MarkInvoicePaidError$Outbound,
|
|
70
|
-
z.ZodTypeDef,
|
|
71
|
-
MarkInvoicePaidError
|
|
72
|
-
> = z.instanceof(MarkInvoicePaidError)
|
|
73
|
-
.transform(v => v.data$)
|
|
74
|
-
.pipe(z.object({
|
|
75
|
-
foreignID: z.string().optional(),
|
|
76
|
-
description: z.string().optional(),
|
|
77
|
-
paymentDate: z.string().optional(),
|
|
78
|
-
}));
|
|
@@ -1,191 +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 { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type MarkPaidInvoiceGlobals = {
|
|
13
|
-
/**
|
|
14
|
-
* Specify an API version.
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
*
|
|
18
|
-
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
19
|
-
* - `YYYY` is the year
|
|
20
|
-
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
21
|
-
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
22
|
-
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
23
|
-
*
|
|
24
|
-
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
25
|
-
* When no version is specified, the API defaults to `v2024.01.00`.
|
|
26
|
-
*/
|
|
27
|
-
xMoovVersion?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export type MarkPaidInvoiceRequest = {
|
|
31
|
-
accountID: string;
|
|
32
|
-
invoiceID: string;
|
|
33
|
-
markInvoicePaid: components.MarkInvoicePaid;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export type MarkPaidInvoiceResponse = {
|
|
37
|
-
headers: { [k: string]: Array<string> };
|
|
38
|
-
result: components.Invoice;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const MarkPaidInvoiceGlobals$inboundSchema: z.ZodType<
|
|
43
|
-
MarkPaidInvoiceGlobals,
|
|
44
|
-
z.ZodTypeDef,
|
|
45
|
-
unknown
|
|
46
|
-
> = z.object({
|
|
47
|
-
"X-Moov-Version": z.string().optional(),
|
|
48
|
-
}).transform((v) => {
|
|
49
|
-
return remap$(v, {
|
|
50
|
-
"X-Moov-Version": "xMoovVersion",
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
/** @internal */
|
|
54
|
-
export type MarkPaidInvoiceGlobals$Outbound = {
|
|
55
|
-
"X-Moov-Version"?: string | undefined;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/** @internal */
|
|
59
|
-
export const MarkPaidInvoiceGlobals$outboundSchema: z.ZodType<
|
|
60
|
-
MarkPaidInvoiceGlobals$Outbound,
|
|
61
|
-
z.ZodTypeDef,
|
|
62
|
-
MarkPaidInvoiceGlobals
|
|
63
|
-
> = z.object({
|
|
64
|
-
xMoovVersion: z.string().optional(),
|
|
65
|
-
}).transform((v) => {
|
|
66
|
-
return remap$(v, {
|
|
67
|
-
xMoovVersion: "X-Moov-Version",
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export function markPaidInvoiceGlobalsToJSON(
|
|
72
|
-
markPaidInvoiceGlobals: MarkPaidInvoiceGlobals,
|
|
73
|
-
): string {
|
|
74
|
-
return JSON.stringify(
|
|
75
|
-
MarkPaidInvoiceGlobals$outboundSchema.parse(markPaidInvoiceGlobals),
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
export function markPaidInvoiceGlobalsFromJSON(
|
|
79
|
-
jsonString: string,
|
|
80
|
-
): SafeParseResult<MarkPaidInvoiceGlobals, SDKValidationError> {
|
|
81
|
-
return safeParse(
|
|
82
|
-
jsonString,
|
|
83
|
-
(x) => MarkPaidInvoiceGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
-
`Failed to parse 'MarkPaidInvoiceGlobals' from JSON`,
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const MarkPaidInvoiceRequest$inboundSchema: z.ZodType<
|
|
90
|
-
MarkPaidInvoiceRequest,
|
|
91
|
-
z.ZodTypeDef,
|
|
92
|
-
unknown
|
|
93
|
-
> = z.object({
|
|
94
|
-
accountID: z.string(),
|
|
95
|
-
invoiceID: z.string(),
|
|
96
|
-
MarkInvoicePaid: components.MarkInvoicePaid$inboundSchema,
|
|
97
|
-
}).transform((v) => {
|
|
98
|
-
return remap$(v, {
|
|
99
|
-
"MarkInvoicePaid": "markInvoicePaid",
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
/** @internal */
|
|
103
|
-
export type MarkPaidInvoiceRequest$Outbound = {
|
|
104
|
-
accountID: string;
|
|
105
|
-
invoiceID: string;
|
|
106
|
-
MarkInvoicePaid: components.MarkInvoicePaid$Outbound;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
/** @internal */
|
|
110
|
-
export const MarkPaidInvoiceRequest$outboundSchema: z.ZodType<
|
|
111
|
-
MarkPaidInvoiceRequest$Outbound,
|
|
112
|
-
z.ZodTypeDef,
|
|
113
|
-
MarkPaidInvoiceRequest
|
|
114
|
-
> = z.object({
|
|
115
|
-
accountID: z.string(),
|
|
116
|
-
invoiceID: z.string(),
|
|
117
|
-
markInvoicePaid: components.MarkInvoicePaid$outboundSchema,
|
|
118
|
-
}).transform((v) => {
|
|
119
|
-
return remap$(v, {
|
|
120
|
-
markInvoicePaid: "MarkInvoicePaid",
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
export function markPaidInvoiceRequestToJSON(
|
|
125
|
-
markPaidInvoiceRequest: MarkPaidInvoiceRequest,
|
|
126
|
-
): string {
|
|
127
|
-
return JSON.stringify(
|
|
128
|
-
MarkPaidInvoiceRequest$outboundSchema.parse(markPaidInvoiceRequest),
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
export function markPaidInvoiceRequestFromJSON(
|
|
132
|
-
jsonString: string,
|
|
133
|
-
): SafeParseResult<MarkPaidInvoiceRequest, SDKValidationError> {
|
|
134
|
-
return safeParse(
|
|
135
|
-
jsonString,
|
|
136
|
-
(x) => MarkPaidInvoiceRequest$inboundSchema.parse(JSON.parse(x)),
|
|
137
|
-
`Failed to parse 'MarkPaidInvoiceRequest' from JSON`,
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** @internal */
|
|
142
|
-
export const MarkPaidInvoiceResponse$inboundSchema: z.ZodType<
|
|
143
|
-
MarkPaidInvoiceResponse,
|
|
144
|
-
z.ZodTypeDef,
|
|
145
|
-
unknown
|
|
146
|
-
> = z.object({
|
|
147
|
-
Headers: z.record(z.array(z.string())).default({}),
|
|
148
|
-
Result: components.Invoice$inboundSchema,
|
|
149
|
-
}).transform((v) => {
|
|
150
|
-
return remap$(v, {
|
|
151
|
-
"Headers": "headers",
|
|
152
|
-
"Result": "result",
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
/** @internal */
|
|
156
|
-
export type MarkPaidInvoiceResponse$Outbound = {
|
|
157
|
-
Headers: { [k: string]: Array<string> };
|
|
158
|
-
Result: components.Invoice$Outbound;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
/** @internal */
|
|
162
|
-
export const MarkPaidInvoiceResponse$outboundSchema: z.ZodType<
|
|
163
|
-
MarkPaidInvoiceResponse$Outbound,
|
|
164
|
-
z.ZodTypeDef,
|
|
165
|
-
MarkPaidInvoiceResponse
|
|
166
|
-
> = z.object({
|
|
167
|
-
headers: z.record(z.array(z.string())),
|
|
168
|
-
result: components.Invoice$outboundSchema,
|
|
169
|
-
}).transform((v) => {
|
|
170
|
-
return remap$(v, {
|
|
171
|
-
headers: "Headers",
|
|
172
|
-
result: "Result",
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
export function markPaidInvoiceResponseToJSON(
|
|
177
|
-
markPaidInvoiceResponse: MarkPaidInvoiceResponse,
|
|
178
|
-
): string {
|
|
179
|
-
return JSON.stringify(
|
|
180
|
-
MarkPaidInvoiceResponse$outboundSchema.parse(markPaidInvoiceResponse),
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
|
-
export function markPaidInvoiceResponseFromJSON(
|
|
184
|
-
jsonString: string,
|
|
185
|
-
): SafeParseResult<MarkPaidInvoiceResponse, SDKValidationError> {
|
|
186
|
-
return safeParse(
|
|
187
|
-
jsonString,
|
|
188
|
-
(x) => MarkPaidInvoiceResponse$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
-
`Failed to parse 'MarkPaidInvoiceResponse' from JSON`,
|
|
190
|
-
);
|
|
191
|
-
}
|