@greensecurity/javascript-sdk 0.35.33 → 0.35.45
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 +9 -0
- package/bin/mcp-server.js +1870 -1146
- package/bin/mcp-server.js.map +29 -20
- package/dist/commonjs/__tests__/invoices.test.js +15 -0
- package/dist/commonjs/__tests__/invoices.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +15 -0
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +21 -19
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/adminGetInvoice.d.ts +13 -0
- package/dist/commonjs/admin-funcs/adminGetInvoice.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/adminGetInvoice.js +17 -0
- package/dist/commonjs/admin-funcs/adminGetInvoice.js.map +1 -0
- package/dist/commonjs/admin-funcs/doAdmin.d.ts +2 -2
- package/dist/commonjs/admin-funcs/doAdmin.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/doAdmin.js +18 -19
- package/dist/commonjs/admin-funcs/doAdmin.js.map +1 -1
- package/dist/commonjs/admin-funcs/facilitiesGetInvoice.d.ts +2 -3
- package/dist/commonjs/admin-funcs/facilitiesGetInvoice.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/facilitiesGetInvoice.js +4 -2
- package/dist/commonjs/admin-funcs/facilitiesGetInvoice.js.map +1 -1
- package/dist/commonjs/admin-funcs/initializeCore.d.ts +5 -0
- package/dist/commonjs/admin-funcs/initializeCore.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/initializeCore.js +23 -0
- package/dist/commonjs/admin-funcs/initializeCore.js.map +1 -0
- package/dist/commonjs/funcs/invoicesCreateInvoice.d.ts +26 -0
- package/dist/commonjs/funcs/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/commonjs/funcs/invoicesCreateInvoice.js +126 -0
- package/dist/commonjs/funcs/invoicesCreateInvoice.js.map +1 -0
- package/dist/commonjs/funcs/vendorsAcceptVendorCredential.d.ts +17 -0
- package/dist/commonjs/funcs/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsAcceptVendorCredential.js +120 -0
- package/dist/commonjs/funcs/vendorsAcceptVendorCredential.js.map +1 -0
- package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts +18 -0
- package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts.map +1 -0
- package/dist/commonjs/funcs/zonesGetSecurityZone.js +123 -0
- package/dist/commonjs/funcs/zonesGetSecurityZone.js.map +1 -0
- package/dist/commonjs/index.extras.d.ts +4 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +6 -1
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +7 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/invoicesCreateInvoice.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/invoicesCreateInvoice.js +73 -0
- package/dist/commonjs/mcp-server/tools/invoicesCreateInvoice.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsAcceptVendorCredential.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsAcceptVendorCredential.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsAcceptVendorCredential.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/zonesGetSecurityZone.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/zonesGetSecurityZone.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/zonesGetSecurityZone.js +64 -0
- package/dist/commonjs/mcp-server/tools/zonesGetSecurityZone.js.map +1 -0
- package/dist/commonjs/models/operations/acceptvendorcredential.d.ts +32 -0
- package/dist/commonjs/models/operations/acceptvendorcredential.d.ts.map +1 -0
- package/dist/commonjs/models/operations/acceptvendorcredential.js +78 -0
- package/dist/commonjs/models/operations/acceptvendorcredential.js.map +1 -0
- package/dist/commonjs/models/operations/createinvoice.d.ts +441 -0
- package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createinvoice.js +604 -0
- package/dist/commonjs/models/operations/createinvoice.js.map +1 -0
- package/dist/commonjs/models/operations/getsecurityzone.d.ts +32 -0
- package/dist/commonjs/models/operations/getsecurityzone.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getsecurityzone.js +69 -0
- package/dist/commonjs/models/operations/getsecurityzone.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updateinvoice.d.ts +148 -148
- package/dist/commonjs/models/operations/updateinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateinvoice.js +196 -195
- package/dist/commonjs/models/operations/updateinvoice.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +3 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/invoicesCreateInvoice.d.ts +32 -0
- package/dist/commonjs/react-query/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/commonjs/react-query/invoicesCreateInvoice.js +56 -0
- package/dist/commonjs/react-query/invoicesCreateInvoice.js.map +1 -0
- package/dist/commonjs/react-query/vendorsAcceptVendorCredential.d.ts +23 -0
- package/dist/commonjs/react-query/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsAcceptVendorCredential.js +47 -0
- package/dist/commonjs/react-query/vendorsAcceptVendorCredential.js.map +1 -0
- package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts +31 -0
- package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts.map +1 -0
- package/dist/commonjs/react-query/zonesGetSecurityZone.js +87 -0
- package/dist/commonjs/react-query/zonesGetSecurityZone.js.map +1 -0
- package/dist/commonjs/sdk/invoices.d.ts +16 -0
- package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/invoices.js +19 -0
- package/dist/commonjs/sdk/invoices.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +7 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +10 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/commonjs/sdk/zones.d.ts +8 -0
- package/dist/commonjs/sdk/zones.d.ts.map +1 -1
- package/dist/commonjs/sdk/zones.js +10 -0
- package/dist/commonjs/sdk/zones.js.map +1 -1
- package/dist/esm/__tests__/invoices.test.js +15 -0
- package/dist/esm/__tests__/invoices.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +15 -0
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +21 -19
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/adminGetInvoice.d.ts +13 -0
- package/dist/esm/admin-funcs/adminGetInvoice.d.ts.map +1 -0
- package/dist/esm/admin-funcs/adminGetInvoice.js +14 -0
- package/dist/esm/admin-funcs/adminGetInvoice.js.map +1 -0
- package/dist/esm/admin-funcs/doAdmin.d.ts +2 -2
- package/dist/esm/admin-funcs/doAdmin.d.ts.map +1 -1
- package/dist/esm/admin-funcs/doAdmin.js +17 -19
- package/dist/esm/admin-funcs/doAdmin.js.map +1 -1
- package/dist/esm/admin-funcs/facilitiesGetInvoice.d.ts +2 -3
- package/dist/esm/admin-funcs/facilitiesGetInvoice.d.ts.map +1 -1
- package/dist/esm/admin-funcs/facilitiesGetInvoice.js +4 -2
- package/dist/esm/admin-funcs/facilitiesGetInvoice.js.map +1 -1
- package/dist/esm/admin-funcs/initializeCore.d.ts +5 -0
- package/dist/esm/admin-funcs/initializeCore.d.ts.map +1 -0
- package/dist/esm/admin-funcs/initializeCore.js +17 -0
- package/dist/esm/admin-funcs/initializeCore.js.map +1 -0
- package/dist/esm/funcs/invoicesCreateInvoice.d.ts +26 -0
- package/dist/esm/funcs/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/esm/funcs/invoicesCreateInvoice.js +90 -0
- package/dist/esm/funcs/invoicesCreateInvoice.js.map +1 -0
- package/dist/esm/funcs/vendorsAcceptVendorCredential.d.ts +17 -0
- package/dist/esm/funcs/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsAcceptVendorCredential.js +84 -0
- package/dist/esm/funcs/vendorsAcceptVendorCredential.js.map +1 -0
- package/dist/esm/funcs/zonesGetSecurityZone.d.ts +18 -0
- package/dist/esm/funcs/zonesGetSecurityZone.d.ts.map +1 -0
- package/dist/esm/funcs/zonesGetSecurityZone.js +87 -0
- package/dist/esm/funcs/zonesGetSecurityZone.js.map +1 -0
- package/dist/esm/index.extras.d.ts +4 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +6 -1
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +7 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/invoicesCreateInvoice.d.ts +8 -0
- package/dist/esm/mcp-server/tools/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/invoicesCreateInvoice.js +37 -0
- package/dist/esm/mcp-server/tools/invoicesCreateInvoice.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsAcceptVendorCredential.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsAcceptVendorCredential.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsAcceptVendorCredential.js.map +1 -0
- package/dist/esm/mcp-server/tools/zonesGetSecurityZone.d.ts +8 -0
- package/dist/esm/mcp-server/tools/zonesGetSecurityZone.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/zonesGetSecurityZone.js +28 -0
- package/dist/esm/mcp-server/tools/zonesGetSecurityZone.js.map +1 -0
- package/dist/esm/models/operations/acceptvendorcredential.d.ts +32 -0
- package/dist/esm/models/operations/acceptvendorcredential.d.ts.map +1 -0
- package/dist/esm/models/operations/acceptvendorcredential.js +40 -0
- package/dist/esm/models/operations/acceptvendorcredential.js.map +1 -0
- package/dist/esm/models/operations/createinvoice.d.ts +441 -0
- package/dist/esm/models/operations/createinvoice.d.ts.map +1 -0
- package/dist/esm/models/operations/createinvoice.js +548 -0
- package/dist/esm/models/operations/createinvoice.js.map +1 -0
- package/dist/esm/models/operations/getsecurityzone.d.ts +32 -0
- package/dist/esm/models/operations/getsecurityzone.d.ts.map +1 -0
- package/dist/esm/models/operations/getsecurityzone.js +31 -0
- package/dist/esm/models/operations/getsecurityzone.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updateinvoice.d.ts +148 -148
- package/dist/esm/models/operations/updateinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/updateinvoice.js +183 -182
- package/dist/esm/models/operations/updateinvoice.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +3 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/invoicesCreateInvoice.d.ts +32 -0
- package/dist/esm/react-query/invoicesCreateInvoice.d.ts.map +1 -0
- package/dist/esm/react-query/invoicesCreateInvoice.js +51 -0
- package/dist/esm/react-query/invoicesCreateInvoice.js.map +1 -0
- package/dist/esm/react-query/vendorsAcceptVendorCredential.d.ts +23 -0
- package/dist/esm/react-query/vendorsAcceptVendorCredential.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsAcceptVendorCredential.js +42 -0
- package/dist/esm/react-query/vendorsAcceptVendorCredential.js.map +1 -0
- package/dist/esm/react-query/zonesGetSecurityZone.d.ts +31 -0
- package/dist/esm/react-query/zonesGetSecurityZone.d.ts.map +1 -0
- package/dist/esm/react-query/zonesGetSecurityZone.js +77 -0
- package/dist/esm/react-query/zonesGetSecurityZone.js.map +1 -0
- package/dist/esm/sdk/invoices.d.ts +16 -0
- package/dist/esm/sdk/invoices.d.ts.map +1 -1
- package/dist/esm/sdk/invoices.js +19 -0
- package/dist/esm/sdk/invoices.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +7 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +10 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/dist/esm/sdk/zones.d.ts +8 -0
- package/dist/esm/sdk/zones.d.ts.map +1 -1
- package/dist/esm/sdk/zones.js +10 -0
- package/dist/esm/sdk/zones.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/invoices.test.ts +18 -0
- package/src/__tests__/vendors.test.ts +18 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +24 -19
- package/src/admin-funcs/adminGetInvoice.ts +22 -0
- package/src/admin-funcs/doAdmin.ts +18 -24
- package/src/admin-funcs/facilitiesGetInvoice.ts +7 -11
- package/src/admin-funcs/initializeCore.ts +20 -0
- package/src/funcs/invoicesCreateInvoice.ts +174 -0
- package/src/funcs/vendorsAcceptVendorCredential.ts +176 -0
- package/src/funcs/zonesGetSecurityZone.ts +172 -0
- package/src/index.extras.ts +7 -2
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/invoicesCreateInvoice.ts +46 -0
- package/src/mcp-server/tools/vendorsAcceptVendorCredential.ts +37 -0
- package/src/mcp-server/tools/zonesGetSecurityZone.ts +37 -0
- package/src/models/operations/acceptvendorcredential.ts +80 -0
- package/src/models/operations/createinvoice.ts +980 -0
- package/src/models/operations/getsecurityzone.ts +69 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/updateinvoice.ts +491 -403
- package/src/react-query/index.ts +3 -0
- package/src/react-query/invoicesCreateInvoice.ts +98 -0
- package/src/react-query/vendorsAcceptVendorCredential.ts +88 -0
- package/src/react-query/zonesGetSecurityZone.ts +154 -0
- package/src/sdk/invoices.ts +27 -0
- package/src/sdk/vendors.ts +18 -0
- package/src/sdk/zones.ts +19 -0
|
@@ -5,51 +5,50 @@ import * as z from "zod";
|
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { RFCDate } from "../../types/rfcdate.js";
|
|
8
|
-
export const
|
|
8
|
+
export const UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler = {
|
|
9
9
|
VendorCredential: "vendor credential",
|
|
10
10
|
CredentialingSubscription: "credentialing subscription",
|
|
11
11
|
ExpeditedCredential: "expedited credential",
|
|
12
12
|
};
|
|
13
|
-
export const
|
|
13
|
+
export const UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler = {
|
|
14
14
|
VendorCredential: "vendor credential",
|
|
15
15
|
CredentialingSubscription: "credentialing subscription",
|
|
16
16
|
ExpeditedCredential: "expedited credential",
|
|
17
17
|
};
|
|
18
|
-
export const
|
|
18
|
+
export const UpdateInvoiceRequestBodyInvoicesPaymentHandler = {
|
|
19
19
|
VendorCredential: "vendor credential",
|
|
20
20
|
CredentialingSubscription: "credentialing subscription",
|
|
21
21
|
ExpeditedCredential: "expedited credential",
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const UpdateInvoiceRequestBodyPaymentHandler = {
|
|
24
24
|
VendorCredential: "vendor credential",
|
|
25
25
|
CredentialingSubscription: "credentialing subscription",
|
|
26
26
|
ExpeditedCredential: "expedited credential",
|
|
27
27
|
};
|
|
28
28
|
/** @internal */
|
|
29
|
-
export const
|
|
30
|
-
.nativeEnum(UpdateInvoiceRequestBodyInvoicesPaymentHandler);
|
|
29
|
+
export const UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$inboundSchema = z.nativeEnum(UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler);
|
|
31
30
|
/** @internal */
|
|
32
|
-
export const
|
|
31
|
+
export const UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$outboundSchema = UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$inboundSchema;
|
|
33
32
|
/**
|
|
34
33
|
* @internal
|
|
35
34
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
35
|
*/
|
|
37
|
-
export var
|
|
38
|
-
(function (
|
|
39
|
-
/** @deprecated use `
|
|
40
|
-
|
|
41
|
-
/** @deprecated use `
|
|
42
|
-
|
|
43
|
-
})(
|
|
36
|
+
export var UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$;
|
|
37
|
+
(function (UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$) {
|
|
38
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$inboundSchema` instead. */
|
|
39
|
+
UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$.inboundSchema = UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$inboundSchema;
|
|
40
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$outboundSchema` instead. */
|
|
41
|
+
UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$.outboundSchema = UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$outboundSchema;
|
|
42
|
+
})(UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$ || (UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$ = {}));
|
|
44
43
|
/** @internal */
|
|
45
|
-
export const
|
|
44
|
+
export const UpdateInvoiceRequestBodyInvoicesRequest4Lines$inboundSchema = z.object({
|
|
46
45
|
variant_id: z.number().int(),
|
|
47
46
|
unit_price: z.number().optional(),
|
|
48
47
|
quantity: z.number().int().optional(),
|
|
49
48
|
subscription_id: z.number().int().optional(),
|
|
50
49
|
date_starts: z.string().transform(v => new RFCDate(v)).optional(),
|
|
51
50
|
date_ends: z.string().transform(v => new RFCDate(v)).optional(),
|
|
52
|
-
payment_handler:
|
|
51
|
+
payment_handler: UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$inboundSchema
|
|
53
52
|
.optional(),
|
|
54
53
|
payment_handler_data: z.string().optional(),
|
|
55
54
|
}).transform((v) => {
|
|
@@ -64,14 +63,14 @@ export const UpdateInvoiceRequestBodyInvoicesLines$inboundSchema = z.object({
|
|
|
64
63
|
});
|
|
65
64
|
});
|
|
66
65
|
/** @internal */
|
|
67
|
-
export const
|
|
66
|
+
export const UpdateInvoiceRequestBodyInvoicesRequest4Lines$outboundSchema = z.object({
|
|
68
67
|
variantId: z.number().int(),
|
|
69
68
|
unitPrice: z.number().optional(),
|
|
70
69
|
quantity: z.number().int().optional(),
|
|
71
70
|
subscriptionId: z.number().int().optional(),
|
|
72
71
|
dateStarts: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
73
72
|
dateEnds: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
74
|
-
paymentHandler:
|
|
73
|
+
paymentHandler: UpdateInvoiceRequestBodyInvoicesRequest4PaymentHandler$outboundSchema
|
|
75
74
|
.optional(),
|
|
76
75
|
paymentHandlerData: z.string().optional(),
|
|
77
76
|
}).transform((v) => {
|
|
@@ -89,24 +88,23 @@ export const UpdateInvoiceRequestBodyInvoicesLines$outboundSchema = z.object({
|
|
|
89
88
|
* @internal
|
|
90
89
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
90
|
*/
|
|
92
|
-
export var
|
|
93
|
-
(function (
|
|
94
|
-
/** @deprecated use `
|
|
95
|
-
|
|
96
|
-
/** @deprecated use `
|
|
97
|
-
|
|
98
|
-
})(
|
|
99
|
-
export function
|
|
100
|
-
return JSON.stringify(
|
|
91
|
+
export var UpdateInvoiceRequestBodyInvoicesRequest4Lines$;
|
|
92
|
+
(function (UpdateInvoiceRequestBodyInvoicesRequest4Lines$) {
|
|
93
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesRequest4Lines$inboundSchema` instead. */
|
|
94
|
+
UpdateInvoiceRequestBodyInvoicesRequest4Lines$.inboundSchema = UpdateInvoiceRequestBodyInvoicesRequest4Lines$inboundSchema;
|
|
95
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesRequest4Lines$outboundSchema` instead. */
|
|
96
|
+
UpdateInvoiceRequestBodyInvoicesRequest4Lines$.outboundSchema = UpdateInvoiceRequestBodyInvoicesRequest4Lines$outboundSchema;
|
|
97
|
+
})(UpdateInvoiceRequestBodyInvoicesRequest4Lines$ || (UpdateInvoiceRequestBodyInvoicesRequest4Lines$ = {}));
|
|
98
|
+
export function updateInvoiceRequestBodyInvoicesRequest4LinesToJSON(updateInvoiceRequestBodyInvoicesRequest4Lines) {
|
|
99
|
+
return JSON.stringify(UpdateInvoiceRequestBodyInvoicesRequest4Lines$outboundSchema.parse(updateInvoiceRequestBodyInvoicesRequest4Lines));
|
|
101
100
|
}
|
|
102
|
-
export function
|
|
103
|
-
return safeParse(jsonString, (x) =>
|
|
101
|
+
export function updateInvoiceRequestBodyInvoicesRequest4LinesFromJSON(jsonString) {
|
|
102
|
+
return safeParse(jsonString, (x) => UpdateInvoiceRequestBodyInvoicesRequest4Lines$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateInvoiceRequestBodyInvoicesRequest4Lines' from JSON`);
|
|
104
103
|
}
|
|
105
104
|
/** @internal */
|
|
106
|
-
export const
|
|
107
|
-
.object({
|
|
105
|
+
export const RequestBody4$inboundSchema = z.object({
|
|
108
106
|
system_id: z.number().int(),
|
|
109
|
-
lines: z.array(z.lazy(() =>
|
|
107
|
+
lines: z.array(z.lazy(() => UpdateInvoiceRequestBodyInvoicesRequest4Lines$inboundSchema)).optional(),
|
|
110
108
|
vendor_credential_id: z.number().int().optional(),
|
|
111
109
|
}).transform((v) => {
|
|
112
110
|
return remap$(v, {
|
|
@@ -115,9 +113,9 @@ export const Four$inboundSchema = z
|
|
|
115
113
|
});
|
|
116
114
|
});
|
|
117
115
|
/** @internal */
|
|
118
|
-
export const
|
|
116
|
+
export const RequestBody4$outboundSchema = z.object({
|
|
119
117
|
systemId: z.number().int(),
|
|
120
|
-
lines: z.array(z.lazy(() =>
|
|
118
|
+
lines: z.array(z.lazy(() => UpdateInvoiceRequestBodyInvoicesRequest4Lines$outboundSchema)).optional(),
|
|
121
119
|
vendorCredentialId: z.number().int().optional(),
|
|
122
120
|
}).transform((v) => {
|
|
123
121
|
return remap$(v, {
|
|
@@ -129,43 +127,43 @@ export const Four$outboundSchema = z.object({
|
|
|
129
127
|
* @internal
|
|
130
128
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
131
129
|
*/
|
|
132
|
-
export var
|
|
133
|
-
(function (
|
|
134
|
-
/** @deprecated use `
|
|
135
|
-
|
|
136
|
-
/** @deprecated use `
|
|
137
|
-
|
|
138
|
-
})(
|
|
139
|
-
export function
|
|
140
|
-
return JSON.stringify(
|
|
130
|
+
export var RequestBody4$;
|
|
131
|
+
(function (RequestBody4$) {
|
|
132
|
+
/** @deprecated use `RequestBody4$inboundSchema` instead. */
|
|
133
|
+
RequestBody4$.inboundSchema = RequestBody4$inboundSchema;
|
|
134
|
+
/** @deprecated use `RequestBody4$outboundSchema` instead. */
|
|
135
|
+
RequestBody4$.outboundSchema = RequestBody4$outboundSchema;
|
|
136
|
+
})(RequestBody4$ || (RequestBody4$ = {}));
|
|
137
|
+
export function requestBody4ToJSON(requestBody4) {
|
|
138
|
+
return JSON.stringify(RequestBody4$outboundSchema.parse(requestBody4));
|
|
141
139
|
}
|
|
142
|
-
export function
|
|
143
|
-
return safeParse(jsonString, (x) =>
|
|
140
|
+
export function requestBody4FromJSON(jsonString) {
|
|
141
|
+
return safeParse(jsonString, (x) => RequestBody4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBody4' from JSON`);
|
|
144
142
|
}
|
|
145
143
|
/** @internal */
|
|
146
|
-
export const
|
|
144
|
+
export const UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$inboundSchema = z.nativeEnum(UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler);
|
|
147
145
|
/** @internal */
|
|
148
|
-
export const
|
|
146
|
+
export const UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$outboundSchema = UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$inboundSchema;
|
|
149
147
|
/**
|
|
150
148
|
* @internal
|
|
151
149
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
152
150
|
*/
|
|
153
|
-
export var
|
|
154
|
-
(function (
|
|
155
|
-
/** @deprecated use `
|
|
156
|
-
|
|
157
|
-
/** @deprecated use `
|
|
158
|
-
|
|
159
|
-
})(
|
|
151
|
+
export var UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$;
|
|
152
|
+
(function (UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$) {
|
|
153
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$inboundSchema` instead. */
|
|
154
|
+
UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$.inboundSchema = UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$inboundSchema;
|
|
155
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$outboundSchema` instead. */
|
|
156
|
+
UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$.outboundSchema = UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$outboundSchema;
|
|
157
|
+
})(UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$ || (UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$ = {}));
|
|
160
158
|
/** @internal */
|
|
161
|
-
export const
|
|
159
|
+
export const UpdateInvoiceRequestBodyInvoicesRequestLines$inboundSchema = z.object({
|
|
162
160
|
variant_id: z.number().int(),
|
|
163
161
|
unit_price: z.number().optional(),
|
|
164
162
|
quantity: z.number().int().optional(),
|
|
165
163
|
subscription_id: z.number().int().optional(),
|
|
166
164
|
date_starts: z.string().transform(v => new RFCDate(v)).optional(),
|
|
167
165
|
date_ends: z.string().transform(v => new RFCDate(v)).optional(),
|
|
168
|
-
payment_handler:
|
|
166
|
+
payment_handler: UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$inboundSchema
|
|
169
167
|
.optional(),
|
|
170
168
|
payment_handler_data: z.string().optional(),
|
|
171
169
|
}).transform((v) => {
|
|
@@ -180,14 +178,14 @@ export const UpdateInvoiceRequestBodyLines$inboundSchema = z.object({
|
|
|
180
178
|
});
|
|
181
179
|
});
|
|
182
180
|
/** @internal */
|
|
183
|
-
export const
|
|
181
|
+
export const UpdateInvoiceRequestBodyInvoicesRequestLines$outboundSchema = z.object({
|
|
184
182
|
variantId: z.number().int(),
|
|
185
183
|
unitPrice: z.number().optional(),
|
|
186
184
|
quantity: z.number().int().optional(),
|
|
187
185
|
subscriptionId: z.number().int().optional(),
|
|
188
186
|
dateStarts: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
189
187
|
dateEnds: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
190
|
-
paymentHandler:
|
|
188
|
+
paymentHandler: UpdateInvoiceRequestBodyInvoicesRequestPaymentHandler$outboundSchema
|
|
191
189
|
.optional(),
|
|
192
190
|
paymentHandlerData: z.string().optional(),
|
|
193
191
|
}).transform((v) => {
|
|
@@ -205,25 +203,23 @@ export const UpdateInvoiceRequestBodyLines$outboundSchema = z.object({
|
|
|
205
203
|
* @internal
|
|
206
204
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
207
205
|
*/
|
|
208
|
-
export var
|
|
209
|
-
(function (
|
|
210
|
-
/** @deprecated use `
|
|
211
|
-
|
|
212
|
-
/** @deprecated use `
|
|
213
|
-
|
|
214
|
-
})(
|
|
215
|
-
export function
|
|
216
|
-
return JSON.stringify(
|
|
206
|
+
export var UpdateInvoiceRequestBodyInvoicesRequestLines$;
|
|
207
|
+
(function (UpdateInvoiceRequestBodyInvoicesRequestLines$) {
|
|
208
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesRequestLines$inboundSchema` instead. */
|
|
209
|
+
UpdateInvoiceRequestBodyInvoicesRequestLines$.inboundSchema = UpdateInvoiceRequestBodyInvoicesRequestLines$inboundSchema;
|
|
210
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesRequestLines$outboundSchema` instead. */
|
|
211
|
+
UpdateInvoiceRequestBodyInvoicesRequestLines$.outboundSchema = UpdateInvoiceRequestBodyInvoicesRequestLines$outboundSchema;
|
|
212
|
+
})(UpdateInvoiceRequestBodyInvoicesRequestLines$ || (UpdateInvoiceRequestBodyInvoicesRequestLines$ = {}));
|
|
213
|
+
export function updateInvoiceRequestBodyInvoicesRequestLinesToJSON(updateInvoiceRequestBodyInvoicesRequestLines) {
|
|
214
|
+
return JSON.stringify(UpdateInvoiceRequestBodyInvoicesRequestLines$outboundSchema.parse(updateInvoiceRequestBodyInvoicesRequestLines));
|
|
217
215
|
}
|
|
218
|
-
export function
|
|
219
|
-
return safeParse(jsonString, (x) =>
|
|
216
|
+
export function updateInvoiceRequestBodyInvoicesRequestLinesFromJSON(jsonString) {
|
|
217
|
+
return safeParse(jsonString, (x) => UpdateInvoiceRequestBodyInvoicesRequestLines$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateInvoiceRequestBodyInvoicesRequestLines' from JSON`);
|
|
220
218
|
}
|
|
221
219
|
/** @internal */
|
|
222
|
-
export const
|
|
223
|
-
.object({
|
|
220
|
+
export const RequestBody3$inboundSchema = z.object({
|
|
224
221
|
facility_id: z.number().int(),
|
|
225
|
-
lines: z.array(z.lazy(() =>
|
|
226
|
-
.optional(),
|
|
222
|
+
lines: z.array(z.lazy(() => UpdateInvoiceRequestBodyInvoicesRequestLines$inboundSchema)).optional(),
|
|
227
223
|
vendor_credential_id: z.number().int().optional(),
|
|
228
224
|
}).transform((v) => {
|
|
229
225
|
return remap$(v, {
|
|
@@ -232,10 +228,9 @@ export const Three$inboundSchema = z
|
|
|
232
228
|
});
|
|
233
229
|
});
|
|
234
230
|
/** @internal */
|
|
235
|
-
export const
|
|
231
|
+
export const RequestBody3$outboundSchema = z.object({
|
|
236
232
|
facilityId: z.number().int(),
|
|
237
|
-
lines: z.array(z.lazy(() =>
|
|
238
|
-
.optional(),
|
|
233
|
+
lines: z.array(z.lazy(() => UpdateInvoiceRequestBodyInvoicesRequestLines$outboundSchema)).optional(),
|
|
239
234
|
vendorCredentialId: z.number().int().optional(),
|
|
240
235
|
}).transform((v) => {
|
|
241
236
|
return remap$(v, {
|
|
@@ -247,43 +242,45 @@ export const Three$outboundSchema = z.object({
|
|
|
247
242
|
* @internal
|
|
248
243
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
249
244
|
*/
|
|
250
|
-
export var
|
|
251
|
-
(function (
|
|
252
|
-
/** @deprecated use `
|
|
253
|
-
|
|
254
|
-
/** @deprecated use `
|
|
255
|
-
|
|
256
|
-
})(
|
|
257
|
-
export function
|
|
258
|
-
return JSON.stringify(
|
|
245
|
+
export var RequestBody3$;
|
|
246
|
+
(function (RequestBody3$) {
|
|
247
|
+
/** @deprecated use `RequestBody3$inboundSchema` instead. */
|
|
248
|
+
RequestBody3$.inboundSchema = RequestBody3$inboundSchema;
|
|
249
|
+
/** @deprecated use `RequestBody3$outboundSchema` instead. */
|
|
250
|
+
RequestBody3$.outboundSchema = RequestBody3$outboundSchema;
|
|
251
|
+
})(RequestBody3$ || (RequestBody3$ = {}));
|
|
252
|
+
export function requestBody3ToJSON(requestBody3) {
|
|
253
|
+
return JSON.stringify(RequestBody3$outboundSchema.parse(requestBody3));
|
|
259
254
|
}
|
|
260
|
-
export function
|
|
261
|
-
return safeParse(jsonString, (x) =>
|
|
255
|
+
export function requestBody3FromJSON(jsonString) {
|
|
256
|
+
return safeParse(jsonString, (x) => RequestBody3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBody3' from JSON`);
|
|
262
257
|
}
|
|
263
258
|
/** @internal */
|
|
264
|
-
export const
|
|
259
|
+
export const UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema = z
|
|
260
|
+
.nativeEnum(UpdateInvoiceRequestBodyInvoicesPaymentHandler);
|
|
265
261
|
/** @internal */
|
|
266
|
-
export const
|
|
262
|
+
export const UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema = UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema;
|
|
267
263
|
/**
|
|
268
264
|
* @internal
|
|
269
265
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
270
266
|
*/
|
|
271
|
-
export var
|
|
272
|
-
(function (
|
|
273
|
-
/** @deprecated use `
|
|
274
|
-
|
|
275
|
-
/** @deprecated use `
|
|
276
|
-
|
|
277
|
-
})(
|
|
267
|
+
export var UpdateInvoiceRequestBodyInvoicesPaymentHandler$;
|
|
268
|
+
(function (UpdateInvoiceRequestBodyInvoicesPaymentHandler$) {
|
|
269
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema` instead. */
|
|
270
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler$.inboundSchema = UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema;
|
|
271
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema` instead. */
|
|
272
|
+
UpdateInvoiceRequestBodyInvoicesPaymentHandler$.outboundSchema = UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema;
|
|
273
|
+
})(UpdateInvoiceRequestBodyInvoicesPaymentHandler$ || (UpdateInvoiceRequestBodyInvoicesPaymentHandler$ = {}));
|
|
278
274
|
/** @internal */
|
|
279
|
-
export const
|
|
275
|
+
export const UpdateInvoiceRequestBodyInvoicesLines$inboundSchema = z.object({
|
|
280
276
|
variant_id: z.number().int(),
|
|
281
277
|
unit_price: z.number().optional(),
|
|
282
278
|
quantity: z.number().int().optional(),
|
|
283
279
|
subscription_id: z.number().int().optional(),
|
|
284
280
|
date_starts: z.string().transform(v => new RFCDate(v)).optional(),
|
|
285
281
|
date_ends: z.string().transform(v => new RFCDate(v)).optional(),
|
|
286
|
-
payment_handler:
|
|
282
|
+
payment_handler: UpdateInvoiceRequestBodyInvoicesPaymentHandler$inboundSchema
|
|
283
|
+
.optional(),
|
|
287
284
|
payment_handler_data: z.string().optional(),
|
|
288
285
|
}).transform((v) => {
|
|
289
286
|
return remap$(v, {
|
|
@@ -297,14 +294,15 @@ export const RequestBodyLines$inboundSchema = z.object({
|
|
|
297
294
|
});
|
|
298
295
|
});
|
|
299
296
|
/** @internal */
|
|
300
|
-
export const
|
|
297
|
+
export const UpdateInvoiceRequestBodyInvoicesLines$outboundSchema = z.object({
|
|
301
298
|
variantId: z.number().int(),
|
|
302
299
|
unitPrice: z.number().optional(),
|
|
303
300
|
quantity: z.number().int().optional(),
|
|
304
301
|
subscriptionId: z.number().int().optional(),
|
|
305
302
|
dateStarts: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
306
303
|
dateEnds: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
307
|
-
paymentHandler:
|
|
304
|
+
paymentHandler: UpdateInvoiceRequestBodyInvoicesPaymentHandler$outboundSchema
|
|
305
|
+
.optional(),
|
|
308
306
|
paymentHandlerData: z.string().optional(),
|
|
309
307
|
}).transform((v) => {
|
|
310
308
|
return remap$(v, {
|
|
@@ -321,23 +319,23 @@ export const RequestBodyLines$outboundSchema = z.object({
|
|
|
321
319
|
* @internal
|
|
322
320
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
323
321
|
*/
|
|
324
|
-
export var
|
|
325
|
-
(function (
|
|
326
|
-
/** @deprecated use `
|
|
327
|
-
|
|
328
|
-
/** @deprecated use `
|
|
329
|
-
|
|
330
|
-
})(
|
|
331
|
-
export function
|
|
332
|
-
return JSON.stringify(
|
|
322
|
+
export var UpdateInvoiceRequestBodyInvoicesLines$;
|
|
323
|
+
(function (UpdateInvoiceRequestBodyInvoicesLines$) {
|
|
324
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesLines$inboundSchema` instead. */
|
|
325
|
+
UpdateInvoiceRequestBodyInvoicesLines$.inboundSchema = UpdateInvoiceRequestBodyInvoicesLines$inboundSchema;
|
|
326
|
+
/** @deprecated use `UpdateInvoiceRequestBodyInvoicesLines$outboundSchema` instead. */
|
|
327
|
+
UpdateInvoiceRequestBodyInvoicesLines$.outboundSchema = UpdateInvoiceRequestBodyInvoicesLines$outboundSchema;
|
|
328
|
+
})(UpdateInvoiceRequestBodyInvoicesLines$ || (UpdateInvoiceRequestBodyInvoicesLines$ = {}));
|
|
329
|
+
export function updateInvoiceRequestBodyInvoicesLinesToJSON(updateInvoiceRequestBodyInvoicesLines) {
|
|
330
|
+
return JSON.stringify(UpdateInvoiceRequestBodyInvoicesLines$outboundSchema.parse(updateInvoiceRequestBodyInvoicesLines));
|
|
333
331
|
}
|
|
334
|
-
export function
|
|
335
|
-
return safeParse(jsonString, (x) =>
|
|
332
|
+
export function updateInvoiceRequestBodyInvoicesLinesFromJSON(jsonString) {
|
|
333
|
+
return safeParse(jsonString, (x) => UpdateInvoiceRequestBodyInvoicesLines$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateInvoiceRequestBodyInvoicesLines' from JSON`);
|
|
336
334
|
}
|
|
337
335
|
/** @internal */
|
|
338
|
-
export const
|
|
336
|
+
export const UpdateInvoiceRequestBody2$inboundSchema = z.object({
|
|
339
337
|
company_id: z.number().int(),
|
|
340
|
-
lines: z.array(z.lazy(() =>
|
|
338
|
+
lines: z.array(z.lazy(() => UpdateInvoiceRequestBodyInvoicesLines$inboundSchema)).optional(),
|
|
341
339
|
vendor_credential_id: z.number().int().optional(),
|
|
342
340
|
}).transform((v) => {
|
|
343
341
|
return remap$(v, {
|
|
@@ -346,9 +344,9 @@ export const RequestBody2$inboundSchema = z.object({
|
|
|
346
344
|
});
|
|
347
345
|
});
|
|
348
346
|
/** @internal */
|
|
349
|
-
export const
|
|
347
|
+
export const UpdateInvoiceRequestBody2$outboundSchema = z.object({
|
|
350
348
|
companyId: z.number().int(),
|
|
351
|
-
lines: z.array(z.lazy(() =>
|
|
349
|
+
lines: z.array(z.lazy(() => UpdateInvoiceRequestBodyInvoicesLines$outboundSchema)).optional(),
|
|
352
350
|
vendorCredentialId: z.number().int().optional(),
|
|
353
351
|
}).transform((v) => {
|
|
354
352
|
return remap$(v, {
|
|
@@ -360,44 +358,44 @@ export const RequestBody2$outboundSchema = z.object({
|
|
|
360
358
|
* @internal
|
|
361
359
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
362
360
|
*/
|
|
363
|
-
export var
|
|
364
|
-
(function (
|
|
365
|
-
/** @deprecated use `
|
|
366
|
-
|
|
367
|
-
/** @deprecated use `
|
|
368
|
-
|
|
369
|
-
})(
|
|
370
|
-
export function
|
|
371
|
-
return JSON.stringify(
|
|
361
|
+
export var UpdateInvoiceRequestBody2$;
|
|
362
|
+
(function (UpdateInvoiceRequestBody2$) {
|
|
363
|
+
/** @deprecated use `UpdateInvoiceRequestBody2$inboundSchema` instead. */
|
|
364
|
+
UpdateInvoiceRequestBody2$.inboundSchema = UpdateInvoiceRequestBody2$inboundSchema;
|
|
365
|
+
/** @deprecated use `UpdateInvoiceRequestBody2$outboundSchema` instead. */
|
|
366
|
+
UpdateInvoiceRequestBody2$.outboundSchema = UpdateInvoiceRequestBody2$outboundSchema;
|
|
367
|
+
})(UpdateInvoiceRequestBody2$ || (UpdateInvoiceRequestBody2$ = {}));
|
|
368
|
+
export function updateInvoiceRequestBody2ToJSON(updateInvoiceRequestBody2) {
|
|
369
|
+
return JSON.stringify(UpdateInvoiceRequestBody2$outboundSchema.parse(updateInvoiceRequestBody2));
|
|
372
370
|
}
|
|
373
|
-
export function
|
|
374
|
-
return safeParse(jsonString, (x) =>
|
|
371
|
+
export function updateInvoiceRequestBody2FromJSON(jsonString) {
|
|
372
|
+
return safeParse(jsonString, (x) => UpdateInvoiceRequestBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateInvoiceRequestBody2' from JSON`);
|
|
375
373
|
}
|
|
376
374
|
/** @internal */
|
|
377
|
-
export const
|
|
375
|
+
export const UpdateInvoiceRequestBodyPaymentHandler$inboundSchema = z.nativeEnum(UpdateInvoiceRequestBodyPaymentHandler);
|
|
378
376
|
/** @internal */
|
|
379
|
-
export const
|
|
377
|
+
export const UpdateInvoiceRequestBodyPaymentHandler$outboundSchema = UpdateInvoiceRequestBodyPaymentHandler$inboundSchema;
|
|
380
378
|
/**
|
|
381
379
|
* @internal
|
|
382
380
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
383
381
|
*/
|
|
384
|
-
export var
|
|
385
|
-
(function (
|
|
386
|
-
/** @deprecated use `
|
|
387
|
-
|
|
388
|
-
/** @deprecated use `
|
|
389
|
-
|
|
390
|
-
})(
|
|
382
|
+
export var UpdateInvoiceRequestBodyPaymentHandler$;
|
|
383
|
+
(function (UpdateInvoiceRequestBodyPaymentHandler$) {
|
|
384
|
+
/** @deprecated use `UpdateInvoiceRequestBodyPaymentHandler$inboundSchema` instead. */
|
|
385
|
+
UpdateInvoiceRequestBodyPaymentHandler$.inboundSchema = UpdateInvoiceRequestBodyPaymentHandler$inboundSchema;
|
|
386
|
+
/** @deprecated use `UpdateInvoiceRequestBodyPaymentHandler$outboundSchema` instead. */
|
|
387
|
+
UpdateInvoiceRequestBodyPaymentHandler$.outboundSchema = UpdateInvoiceRequestBodyPaymentHandler$outboundSchema;
|
|
388
|
+
})(UpdateInvoiceRequestBodyPaymentHandler$ || (UpdateInvoiceRequestBodyPaymentHandler$ = {}));
|
|
391
389
|
/** @internal */
|
|
392
|
-
export const
|
|
393
|
-
.object({
|
|
390
|
+
export const UpdateInvoiceRequestBodyLines$inboundSchema = z.object({
|
|
394
391
|
variant_id: z.number().int(),
|
|
395
392
|
unit_price: z.number().optional(),
|
|
396
393
|
quantity: z.number().int().optional(),
|
|
397
394
|
subscription_id: z.number().int().optional(),
|
|
398
395
|
date_starts: z.string().transform(v => new RFCDate(v)).optional(),
|
|
399
396
|
date_ends: z.string().transform(v => new RFCDate(v)).optional(),
|
|
400
|
-
payment_handler:
|
|
397
|
+
payment_handler: UpdateInvoiceRequestBodyPaymentHandler$inboundSchema
|
|
398
|
+
.optional(),
|
|
401
399
|
payment_handler_data: z.string().optional(),
|
|
402
400
|
}).transform((v) => {
|
|
403
401
|
return remap$(v, {
|
|
@@ -411,14 +409,15 @@ export const Lines$inboundSchema = z
|
|
|
411
409
|
});
|
|
412
410
|
});
|
|
413
411
|
/** @internal */
|
|
414
|
-
export const
|
|
412
|
+
export const UpdateInvoiceRequestBodyLines$outboundSchema = z.object({
|
|
415
413
|
variantId: z.number().int(),
|
|
416
414
|
unitPrice: z.number().optional(),
|
|
417
415
|
quantity: z.number().int().optional(),
|
|
418
416
|
subscriptionId: z.number().int().optional(),
|
|
419
417
|
dateStarts: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
420
418
|
dateEnds: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
421
|
-
paymentHandler:
|
|
419
|
+
paymentHandler: UpdateInvoiceRequestBodyPaymentHandler$outboundSchema
|
|
420
|
+
.optional(),
|
|
422
421
|
paymentHandlerData: z.string().optional(),
|
|
423
422
|
}).transform((v) => {
|
|
424
423
|
return remap$(v, {
|
|
@@ -435,23 +434,24 @@ export const Lines$outboundSchema = z.object({
|
|
|
435
434
|
* @internal
|
|
436
435
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
437
436
|
*/
|
|
438
|
-
export var
|
|
439
|
-
(function (
|
|
440
|
-
/** @deprecated use `
|
|
441
|
-
|
|
442
|
-
/** @deprecated use `
|
|
443
|
-
|
|
444
|
-
})(
|
|
445
|
-
export function
|
|
446
|
-
return JSON.stringify(
|
|
437
|
+
export var UpdateInvoiceRequestBodyLines$;
|
|
438
|
+
(function (UpdateInvoiceRequestBodyLines$) {
|
|
439
|
+
/** @deprecated use `UpdateInvoiceRequestBodyLines$inboundSchema` instead. */
|
|
440
|
+
UpdateInvoiceRequestBodyLines$.inboundSchema = UpdateInvoiceRequestBodyLines$inboundSchema;
|
|
441
|
+
/** @deprecated use `UpdateInvoiceRequestBodyLines$outboundSchema` instead. */
|
|
442
|
+
UpdateInvoiceRequestBodyLines$.outboundSchema = UpdateInvoiceRequestBodyLines$outboundSchema;
|
|
443
|
+
})(UpdateInvoiceRequestBodyLines$ || (UpdateInvoiceRequestBodyLines$ = {}));
|
|
444
|
+
export function updateInvoiceRequestBodyLinesToJSON(updateInvoiceRequestBodyLines) {
|
|
445
|
+
return JSON.stringify(UpdateInvoiceRequestBodyLines$outboundSchema.parse(updateInvoiceRequestBodyLines));
|
|
447
446
|
}
|
|
448
|
-
export function
|
|
449
|
-
return safeParse(jsonString, (x) =>
|
|
447
|
+
export function updateInvoiceRequestBodyLinesFromJSON(jsonString) {
|
|
448
|
+
return safeParse(jsonString, (x) => UpdateInvoiceRequestBodyLines$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateInvoiceRequestBodyLines' from JSON`);
|
|
450
449
|
}
|
|
451
450
|
/** @internal */
|
|
452
|
-
export const
|
|
451
|
+
export const UpdateInvoiceRequestBody1$inboundSchema = z.object({
|
|
453
452
|
vendor_id: z.number().int(),
|
|
454
|
-
lines: z.array(z.lazy(() =>
|
|
453
|
+
lines: z.array(z.lazy(() => UpdateInvoiceRequestBodyLines$inboundSchema))
|
|
454
|
+
.optional(),
|
|
455
455
|
vendor_credential_id: z.number().int().optional(),
|
|
456
456
|
}).transform((v) => {
|
|
457
457
|
return remap$(v, {
|
|
@@ -460,9 +460,10 @@ export const RequestBody1$inboundSchema = z.object({
|
|
|
460
460
|
});
|
|
461
461
|
});
|
|
462
462
|
/** @internal */
|
|
463
|
-
export const
|
|
463
|
+
export const UpdateInvoiceRequestBody1$outboundSchema = z.object({
|
|
464
464
|
vendorId: z.number().int(),
|
|
465
|
-
lines: z.array(z.lazy(() =>
|
|
465
|
+
lines: z.array(z.lazy(() => UpdateInvoiceRequestBodyLines$outboundSchema))
|
|
466
|
+
.optional(),
|
|
466
467
|
vendorCredentialId: z.number().int().optional(),
|
|
467
468
|
}).transform((v) => {
|
|
468
469
|
return remap$(v, {
|
|
@@ -474,32 +475,32 @@ export const RequestBody1$outboundSchema = z.object({
|
|
|
474
475
|
* @internal
|
|
475
476
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
476
477
|
*/
|
|
477
|
-
export var
|
|
478
|
-
(function (
|
|
479
|
-
/** @deprecated use `
|
|
480
|
-
|
|
481
|
-
/** @deprecated use `
|
|
482
|
-
|
|
483
|
-
})(
|
|
484
|
-
export function
|
|
485
|
-
return JSON.stringify(
|
|
478
|
+
export var UpdateInvoiceRequestBody1$;
|
|
479
|
+
(function (UpdateInvoiceRequestBody1$) {
|
|
480
|
+
/** @deprecated use `UpdateInvoiceRequestBody1$inboundSchema` instead. */
|
|
481
|
+
UpdateInvoiceRequestBody1$.inboundSchema = UpdateInvoiceRequestBody1$inboundSchema;
|
|
482
|
+
/** @deprecated use `UpdateInvoiceRequestBody1$outboundSchema` instead. */
|
|
483
|
+
UpdateInvoiceRequestBody1$.outboundSchema = UpdateInvoiceRequestBody1$outboundSchema;
|
|
484
|
+
})(UpdateInvoiceRequestBody1$ || (UpdateInvoiceRequestBody1$ = {}));
|
|
485
|
+
export function updateInvoiceRequestBody1ToJSON(updateInvoiceRequestBody1) {
|
|
486
|
+
return JSON.stringify(UpdateInvoiceRequestBody1$outboundSchema.parse(updateInvoiceRequestBody1));
|
|
486
487
|
}
|
|
487
|
-
export function
|
|
488
|
-
return safeParse(jsonString, (x) =>
|
|
488
|
+
export function updateInvoiceRequestBody1FromJSON(jsonString) {
|
|
489
|
+
return safeParse(jsonString, (x) => UpdateInvoiceRequestBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateInvoiceRequestBody1' from JSON`);
|
|
489
490
|
}
|
|
490
491
|
/** @internal */
|
|
491
492
|
export const UpdateInvoiceRequestBody$inboundSchema = z.union([
|
|
492
|
-
z.lazy(() =>
|
|
493
|
-
z.lazy(() =>
|
|
494
|
-
z.lazy(() =>
|
|
495
|
-
z.lazy(() =>
|
|
493
|
+
z.lazy(() => UpdateInvoiceRequestBody1$inboundSchema),
|
|
494
|
+
z.lazy(() => UpdateInvoiceRequestBody2$inboundSchema),
|
|
495
|
+
z.lazy(() => RequestBody3$inboundSchema),
|
|
496
|
+
z.lazy(() => RequestBody4$inboundSchema),
|
|
496
497
|
]);
|
|
497
498
|
/** @internal */
|
|
498
499
|
export const UpdateInvoiceRequestBody$outboundSchema = z.union([
|
|
499
|
-
z.lazy(() =>
|
|
500
|
-
z.lazy(() =>
|
|
501
|
-
z.lazy(() =>
|
|
502
|
-
z.lazy(() =>
|
|
500
|
+
z.lazy(() => UpdateInvoiceRequestBody1$outboundSchema),
|
|
501
|
+
z.lazy(() => UpdateInvoiceRequestBody2$outboundSchema),
|
|
502
|
+
z.lazy(() => RequestBody3$outboundSchema),
|
|
503
|
+
z.lazy(() => RequestBody4$outboundSchema),
|
|
503
504
|
]);
|
|
504
505
|
/**
|
|
505
506
|
* @internal
|
|
@@ -522,10 +523,10 @@ export function updateInvoiceRequestBodyFromJSON(jsonString) {
|
|
|
522
523
|
export const UpdateInvoiceRequest$inboundSchema = z.object({
|
|
523
524
|
id: z.number().int(),
|
|
524
525
|
RequestBody: z.union([
|
|
525
|
-
z.lazy(() =>
|
|
526
|
-
z.lazy(() =>
|
|
527
|
-
z.lazy(() =>
|
|
528
|
-
z.lazy(() =>
|
|
526
|
+
z.lazy(() => UpdateInvoiceRequestBody1$inboundSchema),
|
|
527
|
+
z.lazy(() => UpdateInvoiceRequestBody2$inboundSchema),
|
|
528
|
+
z.lazy(() => RequestBody3$inboundSchema),
|
|
529
|
+
z.lazy(() => RequestBody4$inboundSchema),
|
|
529
530
|
]),
|
|
530
531
|
}).transform((v) => {
|
|
531
532
|
return remap$(v, {
|
|
@@ -536,10 +537,10 @@ export const UpdateInvoiceRequest$inboundSchema = z.object({
|
|
|
536
537
|
export const UpdateInvoiceRequest$outboundSchema = z.object({
|
|
537
538
|
id: z.number().int(),
|
|
538
539
|
requestBody: z.union([
|
|
539
|
-
z.lazy(() =>
|
|
540
|
-
z.lazy(() =>
|
|
541
|
-
z.lazy(() =>
|
|
542
|
-
z.lazy(() =>
|
|
540
|
+
z.lazy(() => UpdateInvoiceRequestBody1$outboundSchema),
|
|
541
|
+
z.lazy(() => UpdateInvoiceRequestBody2$outboundSchema),
|
|
542
|
+
z.lazy(() => RequestBody3$outboundSchema),
|
|
543
|
+
z.lazy(() => RequestBody4$outboundSchema),
|
|
543
544
|
]),
|
|
544
545
|
}).transform((v) => {
|
|
545
546
|
return remap$(v, {
|