@greensecurity/javascript-sdk 0.45.0-beta.7 → 0.45.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +4 -1
  2. package/dist/commonjs/__tests__/invoices.test.js +18 -0
  3. package/dist/commonjs/__tests__/invoices.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  5. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/zones.test.js +30 -2
  7. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  8. package/dist/commonjs/funcs/invoicesConvertQuote.d.ts +33 -0
  9. package/dist/commonjs/funcs/invoicesConvertQuote.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/invoicesConvertQuote.js +138 -0
  11. package/dist/commonjs/funcs/invoicesConvertQuote.js.map +1 -0
  12. package/dist/commonjs/lib/config.d.ts +2 -2
  13. package/dist/commonjs/lib/config.js +2 -2
  14. package/dist/commonjs/models/operations/convertquote.d.ts +46 -0
  15. package/dist/commonjs/models/operations/convertquote.d.ts.map +1 -0
  16. package/dist/commonjs/models/operations/convertquote.js +69 -0
  17. package/dist/commonjs/models/operations/convertquote.js.map +1 -0
  18. package/dist/commonjs/models/operations/createinvoice.d.ts +85 -0
  19. package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
  20. package/dist/commonjs/models/operations/createinvoice.js +56 -1
  21. package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
  22. package/dist/commonjs/models/operations/index.d.ts +1 -0
  23. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  24. package/dist/commonjs/models/operations/index.js +1 -0
  25. package/dist/commonjs/models/operations/index.js.map +1 -1
  26. package/dist/commonjs/react-query/index.d.ts +1 -0
  27. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  28. package/dist/commonjs/react-query/index.js +1 -0
  29. package/dist/commonjs/react-query/index.js.map +1 -1
  30. package/dist/commonjs/react-query/invoicesConvertQuote.d.ts +42 -0
  31. package/dist/commonjs/react-query/invoicesConvertQuote.d.ts.map +1 -0
  32. package/dist/commonjs/react-query/invoicesConvertQuote.js +60 -0
  33. package/dist/commonjs/react-query/invoicesConvertQuote.js.map +1 -0
  34. package/dist/commonjs/sdk/invoices.d.ts +20 -0
  35. package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
  36. package/dist/commonjs/sdk/invoices.js +23 -0
  37. package/dist/commonjs/sdk/invoices.js.map +1 -1
  38. package/dist/esm/__tests__/invoices.test.js +18 -0
  39. package/dist/esm/__tests__/invoices.test.js.map +1 -1
  40. package/dist/esm/__tests__/vendors.test.js +1 -1
  41. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  42. package/dist/esm/__tests__/zones.test.js +30 -2
  43. package/dist/esm/__tests__/zones.test.js.map +1 -1
  44. package/dist/esm/funcs/invoicesConvertQuote.d.ts +33 -0
  45. package/dist/esm/funcs/invoicesConvertQuote.d.ts.map +1 -0
  46. package/dist/esm/funcs/invoicesConvertQuote.js +102 -0
  47. package/dist/esm/funcs/invoicesConvertQuote.js.map +1 -0
  48. package/dist/esm/lib/config.d.ts +2 -2
  49. package/dist/esm/lib/config.js +2 -2
  50. package/dist/esm/models/operations/convertquote.d.ts +46 -0
  51. package/dist/esm/models/operations/convertquote.d.ts.map +1 -0
  52. package/dist/esm/models/operations/convertquote.js +31 -0
  53. package/dist/esm/models/operations/convertquote.js.map +1 -0
  54. package/dist/esm/models/operations/createinvoice.d.ts +85 -0
  55. package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
  56. package/dist/esm/models/operations/createinvoice.js +55 -0
  57. package/dist/esm/models/operations/createinvoice.js.map +1 -1
  58. package/dist/esm/models/operations/index.d.ts +1 -0
  59. package/dist/esm/models/operations/index.d.ts.map +1 -1
  60. package/dist/esm/models/operations/index.js +1 -0
  61. package/dist/esm/models/operations/index.js.map +1 -1
  62. package/dist/esm/react-query/index.d.ts +1 -0
  63. package/dist/esm/react-query/index.d.ts.map +1 -1
  64. package/dist/esm/react-query/index.js +1 -0
  65. package/dist/esm/react-query/index.js.map +1 -1
  66. package/dist/esm/react-query/invoicesConvertQuote.d.ts +42 -0
  67. package/dist/esm/react-query/invoicesConvertQuote.d.ts.map +1 -0
  68. package/dist/esm/react-query/invoicesConvertQuote.js +55 -0
  69. package/dist/esm/react-query/invoicesConvertQuote.js.map +1 -0
  70. package/dist/esm/sdk/invoices.d.ts +20 -0
  71. package/dist/esm/sdk/invoices.d.ts.map +1 -1
  72. package/dist/esm/sdk/invoices.js +23 -0
  73. package/dist/esm/sdk/invoices.js.map +1 -1
  74. package/jsr.json +1 -1
  75. package/package.json +1 -1
  76. package/src/__tests__/invoices.test.ts +21 -0
  77. package/src/__tests__/vendors.test.ts +1 -1
  78. package/src/__tests__/zones.test.ts +30 -2
  79. package/src/funcs/invoicesConvertQuote.ts +190 -0
  80. package/src/lib/config.ts +2 -2
  81. package/src/models/operations/convertquote.ts +94 -0
  82. package/src/models/operations/createinvoice.ts +124 -0
  83. package/src/models/operations/index.ts +1 -0
  84. package/src/react-query/index.ts +1 -0
  85. package/src/react-query/invoicesConvertQuote.ts +124 -0
  86. package/src/sdk/invoices.ts +31 -0
@@ -0,0 +1,102 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { encodeSimple } from "../lib/encodings.js";
5
+ import { matchStatusCode } from "../lib/http.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import * as errors from "../models/errors/index.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { APIPromise } from "../types/async.js";
14
+ /**
15
+ * Convert a quote into an invoice
16
+ *
17
+ * @remarks
18
+ * Converts a quote into the real invoice its caller will be charged for, and
19
+ * returns the new invoice with its calculated totals. Any `VendorCredential`
20
+ * linked to the quote is re-pointed at the new invoice.
21
+ *
22
+ * The operation is idempotent: converting a quote that has already been
23
+ * processed returns the invoice previously created from it rather than
24
+ * creating a second one, so a retried request is safe.
25
+ *
26
+ * The referenced invoice must actually be a quote — a non-quote invoice id
27
+ * responds `400`. Requires a caller whose access scope permits creating
28
+ * invoices; a caller allowed to create the invoice but not to update the
29
+ * linked `VendorCredential` responds `401`.
30
+ *
31
+ * Takes no request body.
32
+ *
33
+ * If set, this operation will use {@link Security.bearerJwt} from the global security.
34
+ */
35
+ export function invoicesConvertQuote(client, request, options) {
36
+ return new APIPromise($do(client, request, options));
37
+ }
38
+ async function $do(client, request, options) {
39
+ const parsed = safeParse(request, (value) => operations.ConvertQuoteRequest$outboundSchema.parse(value), "Input validation failed");
40
+ if (!parsed.ok) {
41
+ return [parsed, { status: "invalid" }];
42
+ }
43
+ const payload = parsed.value;
44
+ const body = null;
45
+ const pathParams = {
46
+ id: encodeSimple("id", payload.id, {
47
+ explode: false,
48
+ charEncoding: "percent",
49
+ }),
50
+ };
51
+ const path = pathToFunc("/invoices/{id}/convert")(pathParams);
52
+ const headers = new Headers(compactMap({
53
+ Accept: "application/json",
54
+ }));
55
+ const securityInput = await extractSecurity(client._options.security);
56
+ const requestSecurity = resolveGlobalSecurity(securityInput, [1]);
57
+ const context = {
58
+ options: client._options,
59
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
60
+ operationID: "convertQuote",
61
+ oAuth2Scopes: null,
62
+ resolvedSecurity: requestSecurity,
63
+ securitySource: client._options.security,
64
+ retryConfig: options?.retries
65
+ || client._options.retryConfig
66
+ || { strategy: "none" },
67
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
68
+ };
69
+ const requestRes = client._createRequest(context, {
70
+ security: requestSecurity,
71
+ method: "POST",
72
+ baseURL: options?.serverURL,
73
+ path: path,
74
+ headers: headers,
75
+ body: body,
76
+ userAgent: client._options.userAgent,
77
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
78
+ }, options);
79
+ if (!requestRes.ok) {
80
+ return [requestRes, { status: "invalid" }];
81
+ }
82
+ const req = requestRes.value;
83
+ const doResult = await client._do(req, {
84
+ context,
85
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
86
+ retryConfig: context.retryConfig,
87
+ retryCodes: context.retryCodes,
88
+ });
89
+ if (!doResult.ok) {
90
+ return [doResult, { status: "request-error", request: req }];
91
+ }
92
+ const response = doResult.value;
93
+ const responseFields = {
94
+ HttpMeta: { Response: response, Request: req },
95
+ };
96
+ const [result] = await M.match(M.json(200, operations.ConvertQuoteConvertQuoteOk$inboundSchema), M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema), M.fail("4XX"), M.fail([500, "5XX"]))(response, req, { extraFields: responseFields });
97
+ if (!result.ok) {
98
+ return [result, { status: "complete", request: req, response }];
99
+ }
100
+ return [result, { status: "complete", request: req, response }];
101
+ }
102
+ //# sourceMappingURL=invoicesConvertQuote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoicesConvertQuote.js","sourceRoot":"","sources":["../../../src/funcs/invoicesConvertQuote.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,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
  readonly language: "typescript";
37
37
  readonly openapiDocVersion: "0.44.0";
38
- readonly sdkVersion: "0.45.0-beta.7";
38
+ readonly sdkVersion: "0.45.0-beta.9";
39
39
  readonly genVersion: "2.933.0";
40
- readonly userAgent: "speakeasy-sdk/typescript 0.45.0-beta.7 2.933.0 0.44.0 @greensecurity/javascript-sdk";
40
+ readonly userAgent: "speakeasy-sdk/typescript 0.45.0-beta.9 2.933.0 0.44.0 @greensecurity/javascript-sdk";
41
41
  };
42
42
  //# sourceMappingURL=config.d.ts.map
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
39
39
  export const SDK_METADATA = {
40
40
  language: "typescript",
41
41
  openapiDocVersion: "0.44.0",
42
- sdkVersion: "0.45.0-beta.7",
42
+ sdkVersion: "0.45.0-beta.9",
43
43
  genVersion: "2.933.0",
44
- userAgent: "speakeasy-sdk/typescript 0.45.0-beta.7 2.933.0 0.44.0 @greensecurity/javascript-sdk",
44
+ userAgent: "speakeasy-sdk/typescript 0.45.0-beta.9 2.933.0 0.44.0 @greensecurity/javascript-sdk",
45
45
  };
46
46
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,46 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type ConvertQuoteRequest = {
5
+ /**
6
+ * The identifier of the object
7
+ */
8
+ id: number;
9
+ };
10
+ /**
11
+ * The quote was converted, and the server has returned the resulting invoice.
12
+ */
13
+ export type ConvertQuoteConvertQuoteOk = {
14
+ /**
15
+ * Identifier of the invoice the quote was converted into.
16
+ */
17
+ id: number;
18
+ success: boolean;
19
+ /**
20
+ * Tax calculated on the new invoice.
21
+ */
22
+ tax?: number | null | undefined;
23
+ /**
24
+ * Shipping calculated on the new invoice.
25
+ */
26
+ shipping?: number | null | undefined;
27
+ /**
28
+ * Convenience fee calculated on the new invoice.
29
+ */
30
+ convenienceFee?: number | null | undefined;
31
+ /**
32
+ * Total amount due on the new invoice, including tax, shipping and the convenience fee.
33
+ */
34
+ total?: number | null | undefined;
35
+ };
36
+ /** @internal */
37
+ export type ConvertQuoteRequest$Outbound = {
38
+ id: number;
39
+ };
40
+ /** @internal */
41
+ export declare const ConvertQuoteRequest$outboundSchema: z.ZodType<ConvertQuoteRequest$Outbound, z.ZodTypeDef, ConvertQuoteRequest>;
42
+ export declare function convertQuoteRequestToJSON(convertQuoteRequest: ConvertQuoteRequest): string;
43
+ /** @internal */
44
+ export declare const ConvertQuoteConvertQuoteOk$inboundSchema: z.ZodType<ConvertQuoteConvertQuoteOk, z.ZodTypeDef, unknown>;
45
+ export declare function convertQuoteConvertQuoteOkFromJSON(jsonString: string): SafeParseResult<ConvertQuoteConvertQuoteOk, SDKValidationError>;
46
+ //# sourceMappingURL=convertquote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertquote.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/convertquote.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAGnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v3";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as types from "../../types/primitives.js";
8
+ /** @internal */
9
+ export const ConvertQuoteRequest$outboundSchema = z.object({
10
+ id: z.number().int(),
11
+ });
12
+ export function convertQuoteRequestToJSON(convertQuoteRequest) {
13
+ return JSON.stringify(ConvertQuoteRequest$outboundSchema.parse(convertQuoteRequest));
14
+ }
15
+ /** @internal */
16
+ export const ConvertQuoteConvertQuoteOk$inboundSchema = z.object({
17
+ id: types.number(),
18
+ success: types.boolean(),
19
+ tax: z.nullable(types.number()).optional(),
20
+ shipping: z.nullable(types.number()).optional(),
21
+ convenience_fee: z.nullable(types.number()).optional(),
22
+ total: z.nullable(types.number()).optional(),
23
+ }).transform((v) => {
24
+ return remap$(v, {
25
+ "convenience_fee": "convenienceFee",
26
+ });
27
+ });
28
+ export function convertQuoteConvertQuoteOkFromJSON(jsonString) {
29
+ return safeParse(jsonString, (x) => ConvertQuoteConvertQuoteOk$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConvertQuoteConvertQuoteOk' from JSON`);
30
+ }
31
+ //# sourceMappingURL=convertquote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertquote.js","sourceRoot":"","sources":["../../../../src/models/operations/convertquote.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AA0CnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAEH,MAAM,UAAU,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -18,10 +18,24 @@ export type CreateInvoiceRequestBodyInvoicesRequestLines = {
18
18
  paymentHandler?: CreateInvoiceRequestBodyInvoicesRequestPaymentHandler | undefined;
19
19
  paymentHandlerData?: string | undefined;
20
20
  };
21
+ /**
22
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
23
+ */
24
+ export declare const CreateInvoiceRequestBodyInvoicesRequestInvoiceType: {
25
+ readonly Quote: "quote";
26
+ };
27
+ /**
28
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
29
+ */
30
+ export type CreateInvoiceRequestBodyInvoicesRequestInvoiceType = ClosedEnum<typeof CreateInvoiceRequestBodyInvoicesRequestInvoiceType>;
21
31
  export type Five = {
22
32
  vendorCredentialId: number;
23
33
  lines?: Array<CreateInvoiceRequestBodyInvoicesRequestLines> | undefined;
24
34
  credentialPricingIds?: Array<number> | null | undefined;
35
+ /**
36
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
37
+ */
38
+ invoiceType?: CreateInvoiceRequestBodyInvoicesRequestInvoiceType | undefined;
25
39
  };
26
40
  export declare const CreateInvoiceRequestBodyInvoicesPaymentHandler: {
27
41
  readonly VendorCredential: "vendor credential";
@@ -39,10 +53,24 @@ export type CreateInvoiceRequestBodyInvoicesLines = {
39
53
  paymentHandler?: CreateInvoiceRequestBodyInvoicesPaymentHandler | undefined;
40
54
  paymentHandlerData?: string | undefined;
41
55
  };
56
+ /**
57
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
58
+ */
59
+ export declare const CreateInvoiceRequestBodyInvoicesInvoiceType: {
60
+ readonly Quote: "quote";
61
+ };
62
+ /**
63
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
64
+ */
65
+ export type CreateInvoiceRequestBodyInvoicesInvoiceType = ClosedEnum<typeof CreateInvoiceRequestBodyInvoicesInvoiceType>;
42
66
  export type Four = {
43
67
  systemId: number;
44
68
  lines?: Array<CreateInvoiceRequestBodyInvoicesLines> | undefined;
45
69
  credentialPricingIds?: Array<number> | null | undefined;
70
+ /**
71
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
72
+ */
73
+ invoiceType?: CreateInvoiceRequestBodyInvoicesInvoiceType | undefined;
46
74
  };
47
75
  export declare const CreateInvoiceRequestBodyPaymentHandler: {
48
76
  readonly VendorCredential: "vendor credential";
@@ -60,10 +88,24 @@ export type CreateInvoiceRequestBodyLines = {
60
88
  paymentHandler?: CreateInvoiceRequestBodyPaymentHandler | undefined;
61
89
  paymentHandlerData?: string | undefined;
62
90
  };
91
+ /**
92
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
93
+ */
94
+ export declare const CreateInvoiceRequestBodyInvoiceType: {
95
+ readonly Quote: "quote";
96
+ };
97
+ /**
98
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
99
+ */
100
+ export type CreateInvoiceRequestBodyInvoiceType = ClosedEnum<typeof CreateInvoiceRequestBodyInvoiceType>;
63
101
  export type Three = {
64
102
  facilityId: number;
65
103
  lines?: Array<CreateInvoiceRequestBodyLines> | undefined;
66
104
  credentialPricingIds?: Array<number> | null | undefined;
105
+ /**
106
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
107
+ */
108
+ invoiceType?: CreateInvoiceRequestBodyInvoiceType | undefined;
67
109
  };
68
110
  export declare const RequestBodyPaymentHandler: {
69
111
  readonly VendorCredential: "vendor credential";
@@ -81,10 +123,24 @@ export type RequestBodyLines = {
81
123
  paymentHandler?: RequestBodyPaymentHandler | undefined;
82
124
  paymentHandlerData?: string | undefined;
83
125
  };
126
+ /**
127
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
128
+ */
129
+ export declare const RequestBodyInvoiceType: {
130
+ readonly Quote: "quote";
131
+ };
132
+ /**
133
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
134
+ */
135
+ export type RequestBodyInvoiceType = ClosedEnum<typeof RequestBodyInvoiceType>;
84
136
  export type CreateInvoiceRequestBody2 = {
85
137
  companyId: number;
86
138
  lines?: Array<RequestBodyLines> | undefined;
87
139
  credentialPricingIds?: Array<number> | null | undefined;
140
+ /**
141
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
142
+ */
143
+ invoiceType?: RequestBodyInvoiceType | undefined;
88
144
  };
89
145
  export declare const PaymentHandler: {
90
146
  readonly VendorCredential: "vendor credential";
@@ -102,10 +158,24 @@ export type Lines = {
102
158
  paymentHandler?: PaymentHandler | undefined;
103
159
  paymentHandlerData?: string | undefined;
104
160
  };
161
+ /**
162
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
163
+ */
164
+ export declare const InvoiceType: {
165
+ readonly Quote: "quote";
166
+ };
167
+ /**
168
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
169
+ */
170
+ export type InvoiceType = ClosedEnum<typeof InvoiceType>;
105
171
  export type RequestBody1 = {
106
172
  vendorId: number;
107
173
  lines?: Array<Lines> | undefined;
108
174
  credentialPricingIds?: Array<number> | null | undefined;
175
+ /**
176
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
177
+ */
178
+ invoiceType?: InvoiceType | undefined;
109
179
  };
110
180
  export type CreateInvoiceRequestBody = RequestBody1 | CreateInvoiceRequestBody2 | Three | Four | Five;
111
181
  /**
@@ -132,10 +202,13 @@ export type CreateInvoiceRequestBodyInvoicesRequestLines$Outbound = {
132
202
  export declare const CreateInvoiceRequestBodyInvoicesRequestLines$outboundSchema: z.ZodType<CreateInvoiceRequestBodyInvoicesRequestLines$Outbound, z.ZodTypeDef, CreateInvoiceRequestBodyInvoicesRequestLines>;
133
203
  export declare function createInvoiceRequestBodyInvoicesRequestLinesToJSON(createInvoiceRequestBodyInvoicesRequestLines: CreateInvoiceRequestBodyInvoicesRequestLines): string;
134
204
  /** @internal */
205
+ export declare const CreateInvoiceRequestBodyInvoicesRequestInvoiceType$outboundSchema: z.ZodNativeEnum<typeof CreateInvoiceRequestBodyInvoicesRequestInvoiceType>;
206
+ /** @internal */
135
207
  export type Five$Outbound = {
136
208
  vendor_credential_id: number;
137
209
  lines?: Array<CreateInvoiceRequestBodyInvoicesRequestLines$Outbound> | undefined;
138
210
  credential_pricing_ids?: Array<number> | null | undefined;
211
+ invoice_type?: string | undefined;
139
212
  };
140
213
  /** @internal */
141
214
  export declare const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five>;
@@ -157,10 +230,13 @@ export type CreateInvoiceRequestBodyInvoicesLines$Outbound = {
157
230
  export declare const CreateInvoiceRequestBodyInvoicesLines$outboundSchema: z.ZodType<CreateInvoiceRequestBodyInvoicesLines$Outbound, z.ZodTypeDef, CreateInvoiceRequestBodyInvoicesLines>;
158
231
  export declare function createInvoiceRequestBodyInvoicesLinesToJSON(createInvoiceRequestBodyInvoicesLines: CreateInvoiceRequestBodyInvoicesLines): string;
159
232
  /** @internal */
233
+ export declare const CreateInvoiceRequestBodyInvoicesInvoiceType$outboundSchema: z.ZodNativeEnum<typeof CreateInvoiceRequestBodyInvoicesInvoiceType>;
234
+ /** @internal */
160
235
  export type Four$Outbound = {
161
236
  system_id: number;
162
237
  lines?: Array<CreateInvoiceRequestBodyInvoicesLines$Outbound> | undefined;
163
238
  credential_pricing_ids?: Array<number> | null | undefined;
239
+ invoice_type?: string | undefined;
164
240
  };
165
241
  /** @internal */
166
242
  export declare const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;
@@ -182,10 +258,13 @@ export type CreateInvoiceRequestBodyLines$Outbound = {
182
258
  export declare const CreateInvoiceRequestBodyLines$outboundSchema: z.ZodType<CreateInvoiceRequestBodyLines$Outbound, z.ZodTypeDef, CreateInvoiceRequestBodyLines>;
183
259
  export declare function createInvoiceRequestBodyLinesToJSON(createInvoiceRequestBodyLines: CreateInvoiceRequestBodyLines): string;
184
260
  /** @internal */
261
+ export declare const CreateInvoiceRequestBodyInvoiceType$outboundSchema: z.ZodNativeEnum<typeof CreateInvoiceRequestBodyInvoiceType>;
262
+ /** @internal */
185
263
  export type Three$Outbound = {
186
264
  facility_id: number;
187
265
  lines?: Array<CreateInvoiceRequestBodyLines$Outbound> | undefined;
188
266
  credential_pricing_ids?: Array<number> | null | undefined;
267
+ invoice_type?: string | undefined;
189
268
  };
190
269
  /** @internal */
191
270
  export declare const Three$outboundSchema: z.ZodType<Three$Outbound, z.ZodTypeDef, Three>;
@@ -207,10 +286,13 @@ export type RequestBodyLines$Outbound = {
207
286
  export declare const RequestBodyLines$outboundSchema: z.ZodType<RequestBodyLines$Outbound, z.ZodTypeDef, RequestBodyLines>;
208
287
  export declare function requestBodyLinesToJSON(requestBodyLines: RequestBodyLines): string;
209
288
  /** @internal */
289
+ export declare const RequestBodyInvoiceType$outboundSchema: z.ZodNativeEnum<typeof RequestBodyInvoiceType>;
290
+ /** @internal */
210
291
  export type CreateInvoiceRequestBody2$Outbound = {
211
292
  company_id: number;
212
293
  lines?: Array<RequestBodyLines$Outbound> | undefined;
213
294
  credential_pricing_ids?: Array<number> | null | undefined;
295
+ invoice_type?: string | undefined;
214
296
  };
215
297
  /** @internal */
216
298
  export declare const CreateInvoiceRequestBody2$outboundSchema: z.ZodType<CreateInvoiceRequestBody2$Outbound, z.ZodTypeDef, CreateInvoiceRequestBody2>;
@@ -232,10 +314,13 @@ export type Lines$Outbound = {
232
314
  export declare const Lines$outboundSchema: z.ZodType<Lines$Outbound, z.ZodTypeDef, Lines>;
233
315
  export declare function linesToJSON(lines: Lines): string;
234
316
  /** @internal */
317
+ export declare const InvoiceType$outboundSchema: z.ZodNativeEnum<typeof InvoiceType>;
318
+ /** @internal */
235
319
  export type RequestBody1$Outbound = {
236
320
  vendor_id: number;
237
321
  lines?: Array<Lines$Outbound> | undefined;
238
322
  credential_pricing_ids?: Array<number> | null | undefined;
323
+ invoice_type?: string | undefined;
239
324
  };
240
325
  /** @internal */
241
326
  export declare const RequestBody1$outboundSchema: z.ZodType<RequestBody1$Outbound, z.ZodTypeDef, RequestBody1>;
@@ -1 +1 @@
1
- {"version":3,"file":"createinvoice.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/createinvoice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,qDAAqD;;;;CAIxD,CAAC;AACX,MAAM,MAAM,qDAAqD,GAAG,UAAU,CAC5E,OAAO,qDAAqD,CAC7D,CAAC;AAEF,MAAM,MAAM,4CAA4C,GAAG;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,cAAc,CAAC,EACX,qDAAqD,GACrD,SAAS,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,4CAA4C,CAAC,GAAG,SAAS,CAAC;IACxE,oBAAoB,CAAC,EAAE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scription: "credentialing subscription",
12
12
  ExpeditedCredential: "expedited credential",
13
13
  };
14
+ /**
15
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
16
+ */
17
+ export const CreateInvoiceRequestBodyInvoicesRequestInvoiceType = {
18
+ Quote: "quote",
19
+ };
14
20
  export const CreateInvoiceRequestBodyInvoicesPaymentHandler = {
15
21
  VendorCredential: "vendor credential",
16
22
  CredentialingSubscription: "credentialing subscription",
17
23
  ExpeditedCredential: "expedited credential",
18
24
  };
25
+ /**
26
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
27
+ */
28
+ export const CreateInvoiceRequestBodyInvoicesInvoiceType = {
29
+ Quote: "quote",
30
+ };
19
31
  export const CreateInvoiceRequestBodyPaymentHandler = {
20
32
  VendorCredential: "vendor credential",
21
33
  CredentialingSubscription: "credentialing subscription",
22
34
  ExpeditedCredential: "expedited credential",
23
35
  };
36
+ /**
37
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
38
+ */
39
+ export const CreateInvoiceRequestBodyInvoiceType = {
40
+ Quote: "quote",
41
+ };
24
42
  export const RequestBodyPaymentHandler = {
25
43
  VendorCredential: "vendor credential",
26
44
  CredentialingSubscription: "credentialing subscription",
27
45
  ExpeditedCredential: "expedited credential",
28
46
  };
47
+ /**
48
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
49
+ */
50
+ export const RequestBodyInvoiceType = {
51
+ Quote: "quote",
52
+ };
29
53
  export const PaymentHandler = {
30
54
  VendorCredential: "vendor credential",
31
55
  CredentialingSubscription: "credentialing subscription",
32
56
  ExpeditedCredential: "expedited credential",
33
57
  };
58
+ /**
59
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
60
+ */
61
+ export const InvoiceType = {
62
+ Quote: "quote",
63
+ };
34
64
  /** @internal */
35
65
  export const CreateInvoiceRequestBodyInvoicesRequestPaymentHandler$outboundSchema = z.nativeEnum(CreateInvoiceRequestBodyInvoicesRequestPaymentHandler);
36
66
  /** @internal */
@@ -59,14 +89,20 @@ export function createInvoiceRequestBodyInvoicesRequestLinesToJSON(createInvoice
59
89
  return JSON.stringify(CreateInvoiceRequestBodyInvoicesRequestLines$outboundSchema.parse(createInvoiceRequestBodyInvoicesRequestLines));
60
90
  }
61
91
  /** @internal */
92
+ export const CreateInvoiceRequestBodyInvoicesRequestInvoiceType$outboundSchema = z
93
+ .nativeEnum(CreateInvoiceRequestBodyInvoicesRequestInvoiceType);
94
+ /** @internal */
62
95
  export const Five$outboundSchema = z.object({
63
96
  vendorCredentialId: z.number().int(),
64
97
  lines: z.array(z.lazy(() => CreateInvoiceRequestBodyInvoicesRequestLines$outboundSchema)).optional(),
65
98
  credentialPricingIds: z.nullable(z.array(z.number().int())).optional(),
99
+ invoiceType: CreateInvoiceRequestBodyInvoicesRequestInvoiceType$outboundSchema
100
+ .optional(),
66
101
  }).transform((v) => {
67
102
  return remap$(v, {
68
103
  vendorCredentialId: "vendor_credential_id",
69
104
  credentialPricingIds: "credential_pricing_ids",
105
+ invoiceType: "invoice_type",
70
106
  });
71
107
  });
72
108
  export function fiveToJSON(five) {
@@ -101,14 +137,20 @@ export function createInvoiceRequestBodyInvoicesLinesToJSON(createInvoiceRequest
101
137
  return JSON.stringify(CreateInvoiceRequestBodyInvoicesLines$outboundSchema.parse(createInvoiceRequestBodyInvoicesLines));
102
138
  }
103
139
  /** @internal */
140
+ export const CreateInvoiceRequestBodyInvoicesInvoiceType$outboundSchema = z
141
+ .nativeEnum(CreateInvoiceRequestBodyInvoicesInvoiceType);
142
+ /** @internal */
104
143
  export const Four$outboundSchema = z.object({
105
144
  systemId: z.number().int(),
106
145
  lines: z.array(z.lazy(() => CreateInvoiceRequestBodyInvoicesLines$outboundSchema)).optional(),
107
146
  credentialPricingIds: z.nullable(z.array(z.number().int())).optional(),
147
+ invoiceType: CreateInvoiceRequestBodyInvoicesInvoiceType$outboundSchema
148
+ .optional(),
108
149
  }).transform((v) => {
109
150
  return remap$(v, {
110
151
  systemId: "system_id",
111
152
  credentialPricingIds: "credential_pricing_ids",
153
+ invoiceType: "invoice_type",
112
154
  });
113
155
  });
114
156
  export function fourToJSON(four) {
@@ -142,15 +184,19 @@ export function createInvoiceRequestBodyLinesToJSON(createInvoiceRequestBodyLine
142
184
  return JSON.stringify(CreateInvoiceRequestBodyLines$outboundSchema.parse(createInvoiceRequestBodyLines));
143
185
  }
144
186
  /** @internal */
187
+ export const CreateInvoiceRequestBodyInvoiceType$outboundSchema = z.nativeEnum(CreateInvoiceRequestBodyInvoiceType);
188
+ /** @internal */
145
189
  export const Three$outboundSchema = z.object({
146
190
  facilityId: z.number().int(),
147
191
  lines: z.array(z.lazy(() => CreateInvoiceRequestBodyLines$outboundSchema))
148
192
  .optional(),
149
193
  credentialPricingIds: z.nullable(z.array(z.number().int())).optional(),
194
+ invoiceType: CreateInvoiceRequestBodyInvoiceType$outboundSchema.optional(),
150
195
  }).transform((v) => {
151
196
  return remap$(v, {
152
197
  facilityId: "facility_id",
153
198
  credentialPricingIds: "credential_pricing_ids",
199
+ invoiceType: "invoice_type",
154
200
  });
155
201
  });
156
202
  export function threeToJSON(three) {
@@ -183,14 +229,18 @@ export function requestBodyLinesToJSON(requestBodyLines) {
183
229
  return JSON.stringify(RequestBodyLines$outboundSchema.parse(requestBodyLines));
184
230
  }
185
231
  /** @internal */
232
+ export const RequestBodyInvoiceType$outboundSchema = z.nativeEnum(RequestBodyInvoiceType);
233
+ /** @internal */
186
234
  export const CreateInvoiceRequestBody2$outboundSchema = z.object({
187
235
  companyId: z.number().int(),
188
236
  lines: z.array(z.lazy(() => RequestBodyLines$outboundSchema)).optional(),
189
237
  credentialPricingIds: z.nullable(z.array(z.number().int())).optional(),
238
+ invoiceType: RequestBodyInvoiceType$outboundSchema.optional(),
190
239
  }).transform((v) => {
191
240
  return remap$(v, {
192
241
  companyId: "company_id",
193
242
  credentialPricingIds: "credential_pricing_ids",
243
+ invoiceType: "invoice_type",
194
244
  });
195
245
  });
196
246
  export function createInvoiceRequestBody2ToJSON(createInvoiceRequestBody2) {
@@ -223,14 +273,19 @@ export function linesToJSON(lines) {
223
273
  return JSON.stringify(Lines$outboundSchema.parse(lines));
224
274
  }
225
275
  /** @internal */
276
+ export const InvoiceType$outboundSchema = z
277
+ .nativeEnum(InvoiceType);
278
+ /** @internal */
226
279
  export const RequestBody1$outboundSchema = z.object({
227
280
  vendorId: z.number().int(),
228
281
  lines: z.array(z.lazy(() => Lines$outboundSchema)).optional(),
229
282
  credentialPricingIds: z.nullable(z.array(z.number().int())).optional(),
283
+ invoiceType: InvoiceType$outboundSchema.optional(),
230
284
  }).transform((v) => {
231
285
  return remap$(v, {
232
286
  vendorId: "vendor_id",
233
287
  credentialPricingIds: "credential_pricing_ids",
288
+ invoiceType: "invoice_type",
234
289
  });
235
290
  });
236
291
  export function requestBody1ToJSON(requestBody1) {