@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
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "0.1.0",
68
- sdkVersion: "0.8.2",
68
+ sdkVersion: "0.8.4",
69
69
  genVersion: "2.879.13",
70
- userAgent: "speakeasy-sdk/typescript 0.8.2 2.879.13 0.1.0 @paygentic/sdk",
70
+ userAgent: "speakeasy-sdk/typescript 0.8.4 2.879.13 0.1.0 @paygentic/sdk",
71
71
  } as const;
@@ -33,7 +33,6 @@ export * from "./eventresponse.js";
33
33
  export * from "./externalreference.js";
34
34
  export * from "./feature.js";
35
35
  export * from "./fee.js";
36
- export * from "./feeprice.js";
37
36
  export * from "./grant.js";
38
37
  export * from "./groupinvoicesummary.js";
39
38
  export * from "./grouptrendentry.js";
@@ -7,15 +7,14 @@ import { ClosedEnum } from "../../types/enums.js";
7
7
  import * as models from "../index.js";
8
8
 
9
9
  /**
10
- * Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
10
+ * Billing timing preference: 'in_advance' (prepaid — charged upfront or drawn from a prepaid commitment) or 'in_arrears' (charged at period end).
11
11
  */
12
12
  export const CreatePricePaymentTerm = {
13
- Instant: "instant",
14
13
  InArrears: "in_arrears",
15
14
  InAdvance: "in_advance",
16
15
  } as const;
17
16
  /**
18
- * Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
17
+ * Billing timing preference: 'in_advance' (prepaid — charged upfront or drawn from a prepaid commitment) or 'in_arrears' (charged at period end).
19
18
  */
20
19
  export type CreatePricePaymentTerm = ClosedEnum<typeof CreatePricePaymentTerm>;
21
20
 
@@ -41,7 +40,7 @@ export type CreatePriceRequest = {
41
40
  */
42
41
  invoiceDisplayName: string;
43
42
  /**
44
- * Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
43
+ * Billing timing preference: 'in_advance' (prepaid — charged upfront or drawn from a prepaid commitment) or 'in_arrears' (charged at period end).
45
44
  */
46
45
  paymentTerm: CreatePricePaymentTerm;
47
46
  /**
@@ -54,7 +54,6 @@ export * from "./getentitlementgrant.js";
54
54
  export * from "./getexternalreference.js";
55
55
  export * from "./getfeature.js";
56
56
  export * from "./getfee.js";
57
- export * from "./getfeeprice.js";
58
57
  export * from "./getinvoice.js";
59
58
  export * from "./getinvoicelineitems.js";
60
59
  export * from "./getitem.js";
@@ -8,15 +8,14 @@ import { ClosedEnum } from "../../types/enums.js";
8
8
  import * as models from "../index.js";
9
9
 
10
10
  /**
11
- * Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
11
+ * Billing timing preference: 'in_advance' (prepaid — charged upfront or drawn from a prepaid commitment) or 'in_arrears' (charged at period end).
12
12
  */
13
13
  export const UpdatePricePaymentTerm = {
14
- Instant: "instant",
15
14
  InArrears: "in_arrears",
16
15
  InAdvance: "in_advance",
17
16
  } as const;
18
17
  /**
19
- * Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
18
+ * Billing timing preference: 'in_advance' (prepaid — charged upfront or drawn from a prepaid commitment) or 'in_arrears' (charged at period end).
20
19
  */
21
20
  export type UpdatePricePaymentTerm = ClosedEnum<typeof UpdatePricePaymentTerm>;
22
21
 
@@ -39,7 +38,7 @@ export type UpdatePriceRequestBody = {
39
38
  model?: models.PriceModelInput | undefined;
40
39
  properties?: models.PricePropertiesUnion | undefined;
41
40
  /**
42
- * Billing timing preference. For billable metrics: 'instant' (charges immediately) or 'in_arrears' (charges at period end). For fees: 'in_advance' (charges upfront) or 'in_arrears' (charges at period end).
41
+ * Billing timing preference: 'in_advance' (prepaid — charged upfront or drawn from a prepaid commitment) or 'in_arrears' (charged at period end).
43
42
  */
44
43
  paymentTerm?: UpdatePricePaymentTerm | undefined;
45
44
  /**
@@ -34,7 +34,7 @@ export type BillingCadence = ClosedEnum<typeof BillingCadence>;
34
34
 
35
35
  export type PlanPaymentTerm = {
36
36
  inArrears?: boolean | undefined;
37
- instant?: boolean | undefined;
37
+ inAdvance?: boolean | undefined;
38
38
  };
39
39
 
40
40
  /**
@@ -136,10 +136,11 @@ export const PlanPaymentTerm$inboundSchema: z.ZodType<
136
136
  unknown
137
137
  > = z.object({
138
138
  in_arrears: z.boolean().optional(),
139
- instant: z.boolean().optional(),
139
+ in_advance: z.boolean().optional(),
140
140
  }).transform((v) => {
141
141
  return remap$(v, {
142
142
  "in_arrears": "inArrears",
143
+ "in_advance": "inAdvance",
143
144
  });
144
145
  });
145
146
 
@@ -14,16 +14,15 @@ export const PriceObject = {
14
14
  } as const;
15
15
  export type PriceObject = ClosedEnum<typeof PriceObject>;
16
16
 
17
- export const PriceModel1 = {
17
+ export const Model = {
18
18
  Standard: "standard",
19
19
  Dynamic: "dynamic",
20
20
  Volume: "volume",
21
21
  Percentage: "percentage",
22
22
  } as const;
23
- export type PriceModel1 = ClosedEnum<typeof PriceModel1>;
23
+ export type Model = ClosedEnum<typeof Model>;
24
24
 
25
25
  export const PricePaymentTerm = {
26
- Instant: "instant",
27
26
  InArrears: "in_arrears",
28
27
  InAdvance: "in_advance",
29
28
  } as const;
@@ -52,7 +51,7 @@ export type Price = {
52
51
  currency?: string | undefined;
53
52
  description?: string | undefined;
54
53
  invoiceDisplayName: string;
55
- model: PriceModel1;
54
+ model: Model;
56
55
  paymentTerm: PricePaymentTerm;
57
56
  properties: { [k: string]: any };
58
57
  unitAmount?: string | undefined;
@@ -76,8 +75,9 @@ export const PriceObject$inboundSchema: z.ZodNativeEnum<typeof PriceObject> = z
76
75
  .nativeEnum(PriceObject);
77
76
 
78
77
  /** @internal */
79
- export const PriceModel1$inboundSchema: z.ZodNativeEnum<typeof PriceModel1> = z
80
- .nativeEnum(PriceModel1);
78
+ export const Model$inboundSchema: z.ZodNativeEnum<typeof Model> = z.nativeEnum(
79
+ Model,
80
+ );
81
81
 
82
82
  /** @internal */
83
83
  export const PricePaymentTerm$inboundSchema: z.ZodNativeEnum<
@@ -99,7 +99,7 @@ export const Price$inboundSchema: z.ZodType<Price, z.ZodTypeDef, unknown> = z
99
99
  currency: z.string().optional(),
100
100
  description: z.string().optional(),
101
101
  invoiceDisplayName: z.string(),
102
- model: PriceModel1$inboundSchema,
102
+ model: Model$inboundSchema,
103
103
  paymentTerm: PricePaymentTerm$inboundSchema,
104
104
  properties: z.record(z.any()),
105
105
  unitAmount: z.string().optional(),
@@ -11,7 +11,7 @@ export type ReconciledFeatureAdded = {
11
11
  featureId: string;
12
12
  featureKey: string;
13
13
  /**
14
- * False when this feature's price never produces a recurring line item (an instant price, a credit-denominated price, or an already-elapsed one-time charge) — the feature is entitled but not billed by this reconciliation.
14
+ * False when this feature's price never produces a recurring line item (a credit-denominated price, or an already-elapsed one-time charge) — the feature is entitled but not billed by this reconciliation.
15
15
  */
16
16
  billed: boolean;
17
17
  };
@@ -20,7 +20,6 @@ export const SchemasPriceObject = {
20
20
  export type SchemasPriceObject = ClosedEnum<typeof SchemasPriceObject>;
21
21
 
22
22
  export const SchemasPricePaymentTerm = {
23
- Instant: "instant",
24
23
  InArrears: "in_arrears",
25
24
  InAdvance: "in_advance",
26
25
  } as const;
package/src/sdk/fees.ts CHANGED
@@ -5,7 +5,6 @@
5
5
  import { feesCreate } from "../funcs/feesCreate.js";
6
6
  import { feesDelete } from "../funcs/feesDelete.js";
7
7
  import { feesGet } from "../funcs/feesGet.js";
8
- import { feesGetPrice } from "../funcs/feesGetPrice.js";
9
8
  import { feesList } from "../funcs/feesList.js";
10
9
  import { feesUpdate } from "../funcs/feesUpdate.js";
11
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -86,21 +85,4 @@ export class Fees extends ClientSDK {
86
85
  options,
87
86
  ));
88
87
  }
89
-
90
- /**
91
- * Get Fee Price
92
- *
93
- * @remarks
94
- * 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.
95
- */
96
- async getPrice(
97
- request: operations.GetFeePriceRequest,
98
- options?: RequestOptions,
99
- ): Promise<models.FeePrice> {
100
- return unwrapAsync(feesGetPrice(
101
- this,
102
- request,
103
- options,
104
- ));
105
- }
106
88
  }
@@ -88,7 +88,7 @@ export class InvoicesV2 extends ClientSDK {
88
88
  * Get Line Items
89
89
  *
90
90
  * @remarks
91
- * Get paginated line items for an invoice from the analytics service
91
+ * Get paginated line items for an invoice
92
92
  */
93
93
  async getLineItems(
94
94
  request: operations.GetInvoiceLineItemsRequest,
@@ -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,128 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.feesGetPrice = feesGetPrice;
40
- const encodings_js_1 = require("../lib/encodings.js");
41
- const M = __importStar(require("../lib/matchers.js"));
42
- const primitives_js_1 = require("../lib/primitives.js");
43
- const schemas_js_1 = require("../lib/schemas.js");
44
- const security_js_1 = require("../lib/security.js");
45
- const url_js_1 = require("../lib/url.js");
46
- const errors = __importStar(require("../models/errors/index.js"));
47
- const models = __importStar(require("../models/index.js"));
48
- const operations = __importStar(require("../models/operations/index.js"));
49
- const async_js_1 = require("../types/async.js");
50
- /**
51
- * Get Fee Price
52
- *
53
- * @remarks
54
- * 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.
55
- */
56
- function feesGetPrice(client, request, options) {
57
- return new async_js_1.APIPromise($do(client, request, options));
58
- }
59
- async function $do(client, request, options) {
60
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetFeePriceRequest$outboundSchema.parse(value), "Input validation failed");
61
- if (!parsed.ok) {
62
- return [parsed, { status: "invalid" }];
63
- }
64
- const payload = parsed.value;
65
- const body = null;
66
- const pathParams = {
67
- id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
68
- explode: false,
69
- charEncoding: "percent",
70
- }),
71
- subscriptionId: (0, encodings_js_1.encodeSimple)("subscriptionId", payload.subscriptionId, {
72
- explode: false,
73
- charEncoding: "percent",
74
- }),
75
- };
76
- const path = (0, url_js_1.pathToFunc)("/v0/fees/{id}/price/{subscriptionId}")(pathParams);
77
- const headers = new Headers((0, primitives_js_1.compactMap)({
78
- Accept: "application/json",
79
- }));
80
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.bearerAuth);
81
- const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
82
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
83
- const context = {
84
- options: client._options,
85
- baseURL: options?.serverURL ?? client._baseURL ?? "",
86
- operationID: "getFeePrice",
87
- oAuth2Scopes: null,
88
- resolvedSecurity: requestSecurity,
89
- securitySource: client._options.bearerAuth,
90
- retryConfig: options?.retries
91
- || client._options.retryConfig
92
- || { strategy: "none" },
93
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
94
- };
95
- const requestRes = client._createRequest(context, {
96
- security: requestSecurity,
97
- method: "GET",
98
- baseURL: options?.serverURL,
99
- path: path,
100
- headers: headers,
101
- body: body,
102
- userAgent: client._options.userAgent,
103
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
104
- }, options);
105
- if (!requestRes.ok) {
106
- return [requestRes, { status: "invalid" }];
107
- }
108
- const req = requestRes.value;
109
- const doResult = await client._do(req, {
110
- context,
111
- errorCodes: ["401", "404", "4XX", "500", "5XX"],
112
- retryConfig: context.retryConfig,
113
- retryCodes: context.retryCodes,
114
- });
115
- if (!doResult.ok) {
116
- return [doResult, { status: "request-error", request: req }];
117
- }
118
- const response = doResult.value;
119
- const responseFields = {
120
- HttpMeta: { Response: response, Request: req },
121
- };
122
- 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 });
123
- if (!result.ok) {
124
- return [result, { status: "complete", request: req, response }];
125
- }
126
- return [result, { status: "complete", request: req, response }];
127
- }
128
- //# sourceMappingURL=feesGetPrice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feesGetPrice.js","sourceRoot":"","sources":["../../../src/funcs/feesGetPrice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,oCAuBC;AApDD,sDAAmD;AACnD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,2DAA6C;AAC7C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,YAAY,CAC1B,MAAqB,EACrB,O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,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,82 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.FeePrice$inboundSchema = exports.Properties$inboundSchema = exports.FeePricePaymentTerm$inboundSchema = exports.FeePriceModel$inboundSchema = exports.FeePricePaymentTerm = exports.FeePriceModel = void 0;
40
- exports.propertiesFromJSON = propertiesFromJSON;
41
- exports.feePriceFromJSON = feePriceFromJSON;
42
- const z = __importStar(require("zod/v3"));
43
- const schemas_js_1 = require("../lib/schemas.js");
44
- /**
45
- * The pricing model. Fees only support standard pricing.
46
- */
47
- exports.FeePriceModel = {
48
- Standard: "standard",
49
- };
50
- /**
51
- * When the fee is charged relative to the billing period.
52
- */
53
- exports.FeePricePaymentTerm = {
54
- InAdvance: "in_advance",
55
- InArrears: "in_arrears",
56
- };
57
- /** @internal */
58
- exports.FeePriceModel$inboundSchema = z.nativeEnum(exports.FeePriceModel);
59
- /** @internal */
60
- exports.FeePricePaymentTerm$inboundSchema = z.nativeEnum(exports.FeePricePaymentTerm);
61
- /** @internal */
62
- exports.Properties$inboundSchema = z.object({
63
- unitPrice: z.string(),
64
- });
65
- function propertiesFromJSON(jsonString) {
66
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Properties$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Properties' from JSON`);
67
- }
68
- /** @internal */
69
- exports.FeePrice$inboundSchema = z.object({
70
- id: z.string(),
71
- feeId: z.string(),
72
- model: exports.FeePriceModel$inboundSchema,
73
- paymentTerm: exports.FeePricePaymentTerm$inboundSchema,
74
- invoiceDisplayName: z.string(),
75
- properties: z.lazy(() => exports.Properties$inboundSchema),
76
- quantity: z.number().int(),
77
- taxRate: z.number().optional(),
78
- });
79
- function feePriceFromJSON(jsonString) {
80
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FeePrice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeePrice' from JSON`);
81
- }
82
- //# sourceMappingURL=feeprice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feeprice.js","sourceRoot":"","sources":["../../../src/models/feeprice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4FH,gDAQC;AAkBD,4CAQC;AA5HD,0CAA4B;AAC5B,kDAA8C;AAK9C;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,QAAQ,EAAE,UAAU;CACZ,CAAC;AAMX;;GAEG;AACU,QAAA,mBAAmB,GAAG;IACjC,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;CACf,CAAC;AAgDX,gBAAgB;AACH,QAAA,2BAA2B,GAEpC,CAAC,CAAC,UAAU,CAAC,qBAAa,CAAC,CAAC;AAEhC,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC,CAAC;AAEtC,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,mCAA2B;IAClC,WAAW,EAAE,yCAAiC;IAC9C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,gCAAwB,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,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,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,50 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.GetFeePriceRequest$outboundSchema = void 0;
40
- exports.getFeePriceRequestToJSON = getFeePriceRequestToJSON;
41
- const z = __importStar(require("zod/v3"));
42
- /** @internal */
43
- exports.GetFeePriceRequest$outboundSchema = z.object({
44
- id: z.string(),
45
- subscriptionId: z.string(),
46
- });
47
- function getFeePriceRequestToJSON(getFeePriceRequest) {
48
- return JSON.stringify(exports.GetFeePriceRequest$outboundSchema.parse(getFeePriceRequest));
49
- }
50
- //# sourceMappingURL=getfeeprice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getfeeprice.js","sourceRoot":"","sources":["../../../../src/models/operations/getfeeprice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,4DAMC;AAnCD,0CAA4B;AAmB5B,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}