@paygentic/sdk 0.8.2 → 0.8.4

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 (120) hide show
  1. package/README.md +3 -5
  2. package/dist/commonjs/funcs/invoicesV2GetLineItems.d.ts +1 -1
  3. package/dist/commonjs/funcs/invoicesV2GetLineItems.js +1 -1
  4. package/dist/commonjs/lib/config.d.ts +2 -2
  5. package/dist/commonjs/lib/config.js +2 -2
  6. package/dist/commonjs/models/index.d.ts +0 -1
  7. package/dist/commonjs/models/index.d.ts.map +1 -1
  8. package/dist/commonjs/models/index.js +0 -1
  9. package/dist/commonjs/models/index.js.map +1 -1
  10. package/dist/commonjs/models/operations/createprice.d.ts +3 -4
  11. package/dist/commonjs/models/operations/createprice.d.ts.map +1 -1
  12. package/dist/commonjs/models/operations/createprice.js +1 -2
  13. package/dist/commonjs/models/operations/createprice.js.map +1 -1
  14. package/dist/commonjs/models/operations/index.d.ts +0 -1
  15. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  16. package/dist/commonjs/models/operations/index.js +0 -1
  17. package/dist/commonjs/models/operations/index.js.map +1 -1
  18. package/dist/commonjs/models/operations/updateprice.d.ts +3 -4
  19. package/dist/commonjs/models/operations/updateprice.d.ts.map +1 -1
  20. package/dist/commonjs/models/operations/updateprice.js +1 -2
  21. package/dist/commonjs/models/operations/updateprice.js.map +1 -1
  22. package/dist/commonjs/models/plan.d.ts +1 -1
  23. package/dist/commonjs/models/plan.d.ts.map +1 -1
  24. package/dist/commonjs/models/plan.js +2 -1
  25. package/dist/commonjs/models/plan.js.map +1 -1
  26. package/dist/commonjs/models/price.d.ts +4 -5
  27. package/dist/commonjs/models/price.d.ts.map +1 -1
  28. package/dist/commonjs/models/price.js +4 -6
  29. package/dist/commonjs/models/price.js.map +1 -1
  30. package/dist/commonjs/models/reconciledfeatureadded.d.ts +1 -1
  31. package/dist/commonjs/models/schemasprice.d.ts +0 -1
  32. package/dist/commonjs/models/schemasprice.d.ts.map +1 -1
  33. package/dist/commonjs/models/schemasprice.js +0 -1
  34. package/dist/commonjs/models/schemasprice.js.map +1 -1
  35. package/dist/commonjs/sdk/fees.d.ts +0 -7
  36. package/dist/commonjs/sdk/fees.d.ts.map +1 -1
  37. package/dist/commonjs/sdk/fees.js +0 -10
  38. package/dist/commonjs/sdk/fees.js.map +1 -1
  39. package/dist/commonjs/sdk/invoicesv2.d.ts +1 -1
  40. package/dist/commonjs/sdk/invoicesv2.js +1 -1
  41. package/dist/esm/funcs/invoicesV2GetLineItems.d.ts +1 -1
  42. package/dist/esm/funcs/invoicesV2GetLineItems.js +1 -1
  43. package/dist/esm/lib/config.d.ts +2 -2
  44. package/dist/esm/lib/config.js +2 -2
  45. package/dist/esm/models/index.d.ts +0 -1
  46. package/dist/esm/models/index.d.ts.map +1 -1
  47. package/dist/esm/models/index.js +0 -1
  48. package/dist/esm/models/index.js.map +1 -1
  49. package/dist/esm/models/operations/createprice.d.ts +3 -4
  50. package/dist/esm/models/operations/createprice.d.ts.map +1 -1
  51. package/dist/esm/models/operations/createprice.js +1 -2
  52. package/dist/esm/models/operations/createprice.js.map +1 -1
  53. package/dist/esm/models/operations/index.d.ts +0 -1
  54. package/dist/esm/models/operations/index.d.ts.map +1 -1
  55. package/dist/esm/models/operations/index.js +0 -1
  56. package/dist/esm/models/operations/index.js.map +1 -1
  57. package/dist/esm/models/operations/updateprice.d.ts +3 -4
  58. package/dist/esm/models/operations/updateprice.d.ts.map +1 -1
  59. package/dist/esm/models/operations/updateprice.js +1 -2
  60. package/dist/esm/models/operations/updateprice.js.map +1 -1
  61. package/dist/esm/models/plan.d.ts +1 -1
  62. package/dist/esm/models/plan.d.ts.map +1 -1
  63. package/dist/esm/models/plan.js +2 -1
  64. package/dist/esm/models/plan.js.map +1 -1
  65. package/dist/esm/models/price.d.ts +4 -5
  66. package/dist/esm/models/price.d.ts.map +1 -1
  67. package/dist/esm/models/price.js +3 -5
  68. package/dist/esm/models/price.js.map +1 -1
  69. package/dist/esm/models/reconciledfeatureadded.d.ts +1 -1
  70. package/dist/esm/models/schemasprice.d.ts +0 -1
  71. package/dist/esm/models/schemasprice.d.ts.map +1 -1
  72. package/dist/esm/models/schemasprice.js +0 -1
  73. package/dist/esm/models/schemasprice.js.map +1 -1
  74. package/dist/esm/sdk/fees.d.ts +0 -7
  75. package/dist/esm/sdk/fees.d.ts.map +1 -1
  76. package/dist/esm/sdk/fees.js +0 -10
  77. package/dist/esm/sdk/fees.js.map +1 -1
  78. package/dist/esm/sdk/invoicesv2.d.ts +1 -1
  79. package/dist/esm/sdk/invoicesv2.js +1 -1
  80. package/jsr.json +1 -1
  81. package/package.json +1 -1
  82. package/src/funcs/invoicesV2GetLineItems.ts +1 -1
  83. package/src/lib/config.ts +2 -2
  84. package/src/models/index.ts +0 -1
  85. package/src/models/operations/createprice.ts +3 -4
  86. package/src/models/operations/index.ts +0 -1
  87. package/src/models/operations/updateprice.ts +3 -4
  88. package/src/models/plan.ts +3 -2
  89. package/src/models/price.ts +7 -7
  90. package/src/models/reconciledfeatureadded.ts +1 -1
  91. package/src/models/schemasprice.ts +0 -1
  92. package/src/sdk/fees.ts +0 -18
  93. package/src/sdk/invoicesv2.ts +1 -1
  94. package/dist/commonjs/funcs/feesGetPrice.d.ts +0 -19
  95. package/dist/commonjs/funcs/feesGetPrice.d.ts.map +0 -1
  96. package/dist/commonjs/funcs/feesGetPrice.js +0 -128
  97. package/dist/commonjs/funcs/feesGetPrice.js.map +0 -1
  98. package/dist/commonjs/models/feeprice.d.ts +0 -76
  99. package/dist/commonjs/models/feeprice.d.ts.map +0 -1
  100. package/dist/commonjs/models/feeprice.js +0 -82
  101. package/dist/commonjs/models/feeprice.js.map +0 -1
  102. package/dist/commonjs/models/operations/getfeeprice.d.ts +0 -20
  103. package/dist/commonjs/models/operations/getfeeprice.d.ts.map +0 -1
  104. package/dist/commonjs/models/operations/getfeeprice.js +0 -50
  105. package/dist/commonjs/models/operations/getfeeprice.js.map +0 -1
  106. package/dist/esm/funcs/feesGetPrice.d.ts +0 -19
  107. package/dist/esm/funcs/feesGetPrice.d.ts.map +0 -1
  108. package/dist/esm/funcs/feesGetPrice.js +0 -92
  109. package/dist/esm/funcs/feesGetPrice.js.map +0 -1
  110. package/dist/esm/models/feeprice.d.ts +0 -76
  111. package/dist/esm/models/feeprice.d.ts.map +0 -1
  112. package/dist/esm/models/feeprice.js +0 -44
  113. package/dist/esm/models/feeprice.js.map +0 -1
  114. package/dist/esm/models/operations/getfeeprice.d.ts +0 -20
  115. package/dist/esm/models/operations/getfeeprice.d.ts.map +0 -1
  116. package/dist/esm/models/operations/getfeeprice.js +0 -13
  117. package/dist/esm/models/operations/getfeeprice.js.map +0 -1
  118. package/src/funcs/feesGetPrice.ts +0 -180
  119. package/src/models/feeprice.ts +0 -129
  120. package/src/models/operations/getfeeprice.ts +0 -40
@@ -1,19 +0,0 @@
1
- import { PaygenticCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
- import * as errors from "../models/errors/index.js";
5
- import { PaygenticError } from "../models/errors/paygenticerror.js";
6
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
- import * as models from "../models/index.js";
9
- import * as operations from "../models/operations/index.js";
10
- import { APIPromise } from "../types/async.js";
11
- import { Result } from "../types/fp.js";
12
- /**
13
- * Get Fee Price
14
- *
15
- * @remarks
16
- * Get the price for a fee in the context of a subscription. This returns the price configured for the fee in the subscription's plan, including the tax rate.
17
- */
18
- export declare function feesGetPrice(client: PaygenticCore, request: operations.GetFeePriceRequest, options?: RequestOptions): APIPromise<Result<models.FeePrice, errors.ErrorT | PaygenticError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
- //# sourceMappingURL=feesGetPrice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feesGetPrice.d.ts","sourceRoot":"","sources":["../../../src/funcs/feesGetPrice.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,QAAQ,EACb,MAAM,CAAC,MAAM,GACb,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -1,92 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import { encodeSimple } from "../lib/encodings.js";
5
- import * as M from "../lib/matchers.js";
6
- import { compactMap } from "../lib/primitives.js";
7
- import { safeParse } from "../lib/schemas.js";
8
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
9
- import { pathToFunc } from "../lib/url.js";
10
- import * as errors from "../models/errors/index.js";
11
- import * as models from "../models/index.js";
12
- import * as operations from "../models/operations/index.js";
13
- import { APIPromise } from "../types/async.js";
14
- /**
15
- * Get Fee Price
16
- *
17
- * @remarks
18
- * Get the price for a fee in the context of a subscription. This returns the price configured for the fee in the subscription's plan, including the tax rate.
19
- */
20
- export function feesGetPrice(client, request, options) {
21
- return new APIPromise($do(client, request, options));
22
- }
23
- async function $do(client, request, options) {
24
- const parsed = safeParse(request, (value) => operations.GetFeePriceRequest$outboundSchema.parse(value), "Input validation failed");
25
- if (!parsed.ok) {
26
- return [parsed, { status: "invalid" }];
27
- }
28
- const payload = parsed.value;
29
- const body = null;
30
- const pathParams = {
31
- id: encodeSimple("id", payload.id, {
32
- explode: false,
33
- charEncoding: "percent",
34
- }),
35
- subscriptionId: encodeSimple("subscriptionId", payload.subscriptionId, {
36
- explode: false,
37
- charEncoding: "percent",
38
- }),
39
- };
40
- const path = pathToFunc("/v0/fees/{id}/price/{subscriptionId}")(pathParams);
41
- const headers = new Headers(compactMap({
42
- Accept: "application/json",
43
- }));
44
- const secConfig = await extractSecurity(client._options.bearerAuth);
45
- const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
46
- const requestSecurity = resolveGlobalSecurity(securityInput);
47
- const context = {
48
- options: client._options,
49
- baseURL: options?.serverURL ?? client._baseURL ?? "",
50
- operationID: "getFeePrice",
51
- oAuth2Scopes: null,
52
- resolvedSecurity: requestSecurity,
53
- securitySource: client._options.bearerAuth,
54
- retryConfig: options?.retries
55
- || client._options.retryConfig
56
- || { strategy: "none" },
57
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
58
- };
59
- const requestRes = client._createRequest(context, {
60
- security: requestSecurity,
61
- method: "GET",
62
- baseURL: options?.serverURL,
63
- path: path,
64
- headers: headers,
65
- body: body,
66
- userAgent: client._options.userAgent,
67
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
68
- }, options);
69
- if (!requestRes.ok) {
70
- return [requestRes, { status: "invalid" }];
71
- }
72
- const req = requestRes.value;
73
- const doResult = await client._do(req, {
74
- context,
75
- errorCodes: ["401", "404", "4XX", "500", "5XX"],
76
- retryConfig: context.retryConfig,
77
- retryCodes: context.retryCodes,
78
- });
79
- if (!doResult.ok) {
80
- return [doResult, { status: "request-error", request: req }];
81
- }
82
- const response = doResult.value;
83
- const responseFields = {
84
- HttpMeta: { Response: response, Request: req },
85
- };
86
- const [result] = await M.match(M.json(200, models.FeePrice$inboundSchema), M.jsonErr([401, 404], errors.ErrorT$inboundSchema), M.jsonErr(500, errors.ErrorT$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
87
- if (!result.ok) {
88
- return [result, { status: "complete", request: req, response }];
89
- }
90
- return [result, { status: "complete", request: req, response }];
91
- }
92
- //# sourceMappingURL=feesGetPrice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feesGetPrice.js","sourceRoot":"","sources":["../../../src/funcs/feesGetPrice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,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;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;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C,CAAC;AAClE,CAAC"}
@@ -1,76 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { ClosedEnum } from "../types/enums.js";
3
- import { Result as SafeParseResult } from "../types/fp.js";
4
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
- /**
6
- * The pricing model. Fees only support standard pricing.
7
- */
8
- export declare const FeePriceModel: {
9
- readonly Standard: "standard";
10
- };
11
- /**
12
- * The pricing model. Fees only support standard pricing.
13
- */
14
- export type FeePriceModel = ClosedEnum<typeof FeePriceModel>;
15
- /**
16
- * When the fee is charged relative to the billing period.
17
- */
18
- export declare const FeePricePaymentTerm: {
19
- readonly InAdvance: "in_advance";
20
- readonly InArrears: "in_arrears";
21
- };
22
- /**
23
- * When the fee is charged relative to the billing period.
24
- */
25
- export type FeePricePaymentTerm = ClosedEnum<typeof FeePricePaymentTerm>;
26
- export type Properties = {
27
- /**
28
- * The unit price in dollars (e.g., '10.00'). Per unit. Total per period = quantity × unitPrice; see the `quantity` field.
29
- */
30
- unitPrice: string;
31
- };
32
- /**
33
- * The price configuration for a fee within a subscription context.
34
- */
35
- export type FeePrice = {
36
- /**
37
- * The unique identifier of the price.
38
- */
39
- id: string;
40
- /**
41
- * The unique identifier of the fee.
42
- */
43
- feeId: string;
44
- /**
45
- * The pricing model. Fees only support standard pricing.
46
- */
47
- model: FeePriceModel;
48
- /**
49
- * When the fee is charged relative to the billing period.
50
- */
51
- paymentTerm: FeePricePaymentTerm;
52
- /**
53
- * The name to display on invoices for this fee.
54
- */
55
- invoiceDisplayName: string;
56
- properties: Properties;
57
- /**
58
- * Quantity for invoice line items. Total per period = quantity × unitPrice. Only supported for fee prices; metered prices derive quantity from usage. Defaults to 1.
59
- */
60
- quantity: number;
61
- /**
62
- * The tax rate as a percentage (e.g., 10 for 10%).
63
- */
64
- taxRate?: number | undefined;
65
- };
66
- /** @internal */
67
- export declare const FeePriceModel$inboundSchema: z.ZodNativeEnum<typeof FeePriceModel>;
68
- /** @internal */
69
- export declare const FeePricePaymentTerm$inboundSchema: z.ZodNativeEnum<typeof FeePricePaymentTerm>;
70
- /** @internal */
71
- export declare const Properties$inboundSchema: z.ZodType<Properties, z.ZodTypeDef, unknown>;
72
- export declare function propertiesFromJSON(jsonString: string): SafeParseResult<Properties, SDKValidationError>;
73
- /** @internal */
74
- export declare const FeePrice$inboundSchema: z.ZodType<FeePrice, z.ZodTypeDef, unknown>;
75
- export declare function feePriceFromJSON(jsonString: string): SafeParseResult<FeePrice, SDKValidationError>;
76
- //# sourceMappingURL=feeprice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feeprice.d.ts","sourceRoot":"","sources":["../../../src/models/feeprice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,aAAa;;CAEhB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,aAAa,CAAC;IACrB;;OAEG;IACH,WAAW,EAAE,mBAAmB,CAAC;IACjC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CACvD,OAAO,aAAa,CACS,CAAC;AAEhC,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,aAAa,CAC7D,OAAO,mBAAmB,CACS,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,UAAU,EACV,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD;AAED,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
@@ -1,44 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { safeParse } from "../lib/schemas.js";
6
- /**
7
- * The pricing model. Fees only support standard pricing.
8
- */
9
- export const FeePriceModel = {
10
- Standard: "standard",
11
- };
12
- /**
13
- * When the fee is charged relative to the billing period.
14
- */
15
- export const FeePricePaymentTerm = {
16
- InAdvance: "in_advance",
17
- InArrears: "in_arrears",
18
- };
19
- /** @internal */
20
- export const FeePriceModel$inboundSchema = z.nativeEnum(FeePriceModel);
21
- /** @internal */
22
- export const FeePricePaymentTerm$inboundSchema = z.nativeEnum(FeePricePaymentTerm);
23
- /** @internal */
24
- export const Properties$inboundSchema = z.object({
25
- unitPrice: z.string(),
26
- });
27
- export function propertiesFromJSON(jsonString) {
28
- return safeParse(jsonString, (x) => Properties$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Properties' from JSON`);
29
- }
30
- /** @internal */
31
- export const FeePrice$inboundSchema = z.object({
32
- id: z.string(),
33
- feeId: z.string(),
34
- model: FeePriceModel$inboundSchema,
35
- paymentTerm: FeePricePaymentTerm$inboundSchema,
36
- invoiceDisplayName: z.string(),
37
- properties: z.lazy(() => Properties$inboundSchema),
38
- quantity: z.number().int(),
39
- taxRate: z.number().optional(),
40
- });
41
- export function feePriceFromJSON(jsonString) {
42
- return safeParse(jsonString, (x) => FeePrice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeePrice' from JSON`);
43
- }
44
- //# sourceMappingURL=feeprice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feeprice.js","sourceRoot":"","sources":["../../../src/models/feeprice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAK9C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,QAAQ,EAAE,UAAU;CACZ,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;CACf,CAAC;AAgDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAEpC,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAEhC,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAEtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,UAAU,kBAAkB,CAChC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,2BAA2B;IAClC,WAAW,EAAE,iCAAiC;IAC9C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
@@ -1,20 +0,0 @@
1
- import * as z from "zod/v3";
2
- export type GetFeePriceRequest = {
3
- /**
4
- * The unique identifier of the fee.
5
- */
6
- id: string;
7
- /**
8
- * The unique identifier of the subscription.
9
- */
10
- subscriptionId: string;
11
- };
12
- /** @internal */
13
- export type GetFeePriceRequest$Outbound = {
14
- id: string;
15
- subscriptionId: string;
16
- };
17
- /** @internal */
18
- export declare const GetFeePriceRequest$outboundSchema: z.ZodType<GetFeePriceRequest$Outbound, z.ZodTypeDef, GetFeePriceRequest>;
19
- export declare function getFeePriceRequestToJSON(getFeePriceRequest: GetFeePriceRequest): string;
20
- //# sourceMappingURL=getfeeprice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getfeeprice.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getfeeprice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAIlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
@@ -1,13 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- /** @internal */
6
- export const GetFeePriceRequest$outboundSchema = z.object({
7
- id: z.string(),
8
- subscriptionId: z.string(),
9
- });
10
- export function getFeePriceRequestToJSON(getFeePriceRequest) {
11
- return JSON.stringify(GetFeePriceRequest$outboundSchema.parse(getFeePriceRequest));
12
- }
13
- //# sourceMappingURL=getfeeprice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getfeeprice.js","sourceRoot":"","sources":["../../../../src/models/operations/getfeeprice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAmB5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
@@ -1,180 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { PaygenticCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
7
- import * as M from "../lib/matchers.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { RequestOptions } from "../lib/sdks.js";
11
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
- import { pathToFunc } from "../lib/url.js";
13
- import {
14
- ConnectionError,
15
- InvalidRequestError,
16
- RequestAbortedError,
17
- RequestTimeoutError,
18
- UnexpectedClientError,
19
- } from "../models/errors/httpclienterrors.js";
20
- import * as errors from "../models/errors/index.js";
21
- import { PaygenticError } from "../models/errors/paygenticerror.js";
22
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
- import * as models from "../models/index.js";
25
- import * as operations from "../models/operations/index.js";
26
- import { APICall, APIPromise } from "../types/async.js";
27
- import { Result } from "../types/fp.js";
28
-
29
- /**
30
- * Get Fee Price
31
- *
32
- * @remarks
33
- * Get the price for a fee in the context of a subscription. This returns the price configured for the fee in the subscription's plan, including the tax rate.
34
- */
35
- export function feesGetPrice(
36
- client: PaygenticCore,
37
- request: operations.GetFeePriceRequest,
38
- options?: RequestOptions,
39
- ): APIPromise<
40
- Result<
41
- models.FeePrice,
42
- | errors.ErrorT
43
- | PaygenticError
44
- | ResponseValidationError
45
- | ConnectionError
46
- | RequestAbortedError
47
- | RequestTimeoutError
48
- | InvalidRequestError
49
- | UnexpectedClientError
50
- | SDKValidationError
51
- >
52
- > {
53
- return new APIPromise($do(
54
- client,
55
- request,
56
- options,
57
- ));
58
- }
59
-
60
- async function $do(
61
- client: PaygenticCore,
62
- request: operations.GetFeePriceRequest,
63
- options?: RequestOptions,
64
- ): Promise<
65
- [
66
- Result<
67
- models.FeePrice,
68
- | errors.ErrorT
69
- | PaygenticError
70
- | ResponseValidationError
71
- | ConnectionError
72
- | RequestAbortedError
73
- | RequestTimeoutError
74
- | InvalidRequestError
75
- | UnexpectedClientError
76
- | SDKValidationError
77
- >,
78
- APICall,
79
- ]
80
- > {
81
- const parsed = safeParse(
82
- request,
83
- (value) => operations.GetFeePriceRequest$outboundSchema.parse(value),
84
- "Input validation failed",
85
- );
86
- if (!parsed.ok) {
87
- return [parsed, { status: "invalid" }];
88
- }
89
- const payload = parsed.value;
90
- const body = null;
91
-
92
- const pathParams = {
93
- id: encodeSimple("id", payload.id, {
94
- explode: false,
95
- charEncoding: "percent",
96
- }),
97
- subscriptionId: encodeSimple("subscriptionId", payload.subscriptionId, {
98
- explode: false,
99
- charEncoding: "percent",
100
- }),
101
- };
102
- const path = pathToFunc("/v0/fees/{id}/price/{subscriptionId}")(pathParams);
103
-
104
- const headers = new Headers(compactMap({
105
- Accept: "application/json",
106
- }));
107
-
108
- const secConfig = await extractSecurity(client._options.bearerAuth);
109
- const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
110
- const requestSecurity = resolveGlobalSecurity(securityInput);
111
-
112
- const context = {
113
- options: client._options,
114
- baseURL: options?.serverURL ?? client._baseURL ?? "",
115
- operationID: "getFeePrice",
116
- oAuth2Scopes: null,
117
-
118
- resolvedSecurity: requestSecurity,
119
-
120
- securitySource: client._options.bearerAuth,
121
- retryConfig: options?.retries
122
- || client._options.retryConfig
123
- || { strategy: "none" },
124
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
125
- };
126
-
127
- const requestRes = client._createRequest(context, {
128
- security: requestSecurity,
129
- method: "GET",
130
- baseURL: options?.serverURL,
131
- path: path,
132
- headers: headers,
133
- body: body,
134
- userAgent: client._options.userAgent,
135
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
136
- }, options);
137
- if (!requestRes.ok) {
138
- return [requestRes, { status: "invalid" }];
139
- }
140
- const req = requestRes.value;
141
-
142
- const doResult = await client._do(req, {
143
- context,
144
- errorCodes: ["401", "404", "4XX", "500", "5XX"],
145
- retryConfig: context.retryConfig,
146
- retryCodes: context.retryCodes,
147
- });
148
- if (!doResult.ok) {
149
- return [doResult, { status: "request-error", request: req }];
150
- }
151
- const response = doResult.value;
152
-
153
- const responseFields = {
154
- HttpMeta: { Response: response, Request: req },
155
- };
156
-
157
- const [result] = await M.match<
158
- models.FeePrice,
159
- | errors.ErrorT
160
- | PaygenticError
161
- | ResponseValidationError
162
- | ConnectionError
163
- | RequestAbortedError
164
- | RequestTimeoutError
165
- | InvalidRequestError
166
- | UnexpectedClientError
167
- | SDKValidationError
168
- >(
169
- M.json(200, models.FeePrice$inboundSchema),
170
- M.jsonErr([401, 404], errors.ErrorT$inboundSchema),
171
- M.jsonErr(500, errors.ErrorT$inboundSchema),
172
- M.fail("4XX"),
173
- M.fail("5XX"),
174
- )(response, req, { extraFields: responseFields });
175
- if (!result.ok) {
176
- return [result, { status: "complete", request: req, response }];
177
- }
178
-
179
- return [result, { status: "complete", request: req, response }];
180
- }
@@ -1,129 +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 { ClosedEnum } from "../types/enums.js";
8
- import { Result as SafeParseResult } from "../types/fp.js";
9
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
10
-
11
- /**
12
- * The pricing model. Fees only support standard pricing.
13
- */
14
- export const FeePriceModel = {
15
- Standard: "standard",
16
- } as const;
17
- /**
18
- * The pricing model. Fees only support standard pricing.
19
- */
20
- export type FeePriceModel = ClosedEnum<typeof FeePriceModel>;
21
-
22
- /**
23
- * When the fee is charged relative to the billing period.
24
- */
25
- export const FeePricePaymentTerm = {
26
- InAdvance: "in_advance",
27
- InArrears: "in_arrears",
28
- } as const;
29
- /**
30
- * When the fee is charged relative to the billing period.
31
- */
32
- export type FeePricePaymentTerm = ClosedEnum<typeof FeePricePaymentTerm>;
33
-
34
- export type Properties = {
35
- /**
36
- * The unit price in dollars (e.g., '10.00'). Per unit. Total per period = quantity × unitPrice; see the `quantity` field.
37
- */
38
- unitPrice: string;
39
- };
40
-
41
- /**
42
- * The price configuration for a fee within a subscription context.
43
- */
44
- export type FeePrice = {
45
- /**
46
- * The unique identifier of the price.
47
- */
48
- id: string;
49
- /**
50
- * The unique identifier of the fee.
51
- */
52
- feeId: string;
53
- /**
54
- * The pricing model. Fees only support standard pricing.
55
- */
56
- model: FeePriceModel;
57
- /**
58
- * When the fee is charged relative to the billing period.
59
- */
60
- paymentTerm: FeePricePaymentTerm;
61
- /**
62
- * The name to display on invoices for this fee.
63
- */
64
- invoiceDisplayName: string;
65
- properties: Properties;
66
- /**
67
- * Quantity for invoice line items. Total per period = quantity × unitPrice. Only supported for fee prices; metered prices derive quantity from usage. Defaults to 1.
68
- */
69
- quantity: number;
70
- /**
71
- * The tax rate as a percentage (e.g., 10 for 10%).
72
- */
73
- taxRate?: number | undefined;
74
- };
75
-
76
- /** @internal */
77
- export const FeePriceModel$inboundSchema: z.ZodNativeEnum<
78
- typeof FeePriceModel
79
- > = z.nativeEnum(FeePriceModel);
80
-
81
- /** @internal */
82
- export const FeePricePaymentTerm$inboundSchema: z.ZodNativeEnum<
83
- typeof FeePricePaymentTerm
84
- > = z.nativeEnum(FeePricePaymentTerm);
85
-
86
- /** @internal */
87
- export const Properties$inboundSchema: z.ZodType<
88
- Properties,
89
- z.ZodTypeDef,
90
- unknown
91
- > = z.object({
92
- unitPrice: z.string(),
93
- });
94
-
95
- export function propertiesFromJSON(
96
- jsonString: string,
97
- ): SafeParseResult<Properties, SDKValidationError> {
98
- return safeParse(
99
- jsonString,
100
- (x) => Properties$inboundSchema.parse(JSON.parse(x)),
101
- `Failed to parse 'Properties' from JSON`,
102
- );
103
- }
104
-
105
- /** @internal */
106
- export const FeePrice$inboundSchema: z.ZodType<
107
- FeePrice,
108
- z.ZodTypeDef,
109
- unknown
110
- > = z.object({
111
- id: z.string(),
112
- feeId: z.string(),
113
- model: FeePriceModel$inboundSchema,
114
- paymentTerm: FeePricePaymentTerm$inboundSchema,
115
- invoiceDisplayName: z.string(),
116
- properties: z.lazy(() => Properties$inboundSchema),
117
- quantity: z.number().int(),
118
- taxRate: z.number().optional(),
119
- });
120
-
121
- export function feePriceFromJSON(
122
- jsonString: string,
123
- ): SafeParseResult<FeePrice, SDKValidationError> {
124
- return safeParse(
125
- jsonString,
126
- (x) => FeePrice$inboundSchema.parse(JSON.parse(x)),
127
- `Failed to parse 'FeePrice' from JSON`,
128
- );
129
- }
@@ -1,40 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
-
7
- export type GetFeePriceRequest = {
8
- /**
9
- * The unique identifier of the fee.
10
- */
11
- id: string;
12
- /**
13
- * The unique identifier of the subscription.
14
- */
15
- subscriptionId: string;
16
- };
17
-
18
- /** @internal */
19
- export type GetFeePriceRequest$Outbound = {
20
- id: string;
21
- subscriptionId: string;
22
- };
23
-
24
- /** @internal */
25
- export const GetFeePriceRequest$outboundSchema: z.ZodType<
26
- GetFeePriceRequest$Outbound,
27
- z.ZodTypeDef,
28
- GetFeePriceRequest
29
- > = z.object({
30
- id: z.string(),
31
- subscriptionId: z.string(),
32
- });
33
-
34
- export function getFeePriceRequestToJSON(
35
- getFeePriceRequest: GetFeePriceRequest,
36
- ): string {
37
- return JSON.stringify(
38
- GetFeePriceRequest$outboundSchema.parse(getFeePriceRequest),
39
- );
40
- }