@paygentic/sdk 0.9.4 → 0.9.6

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 (220) hide show
  1. package/README.md +12 -5
  2. package/dist/commonjs/funcs/pricesUpdate.d.ts +1 -1
  3. package/dist/commonjs/funcs/pricesUpdate.d.ts.map +1 -1
  4. package/dist/commonjs/funcs/pricesUpdate.js +2 -2
  5. package/dist/commonjs/funcs/pricesUpdate.js.map +1 -1
  6. package/dist/commonjs/funcs/subscriptionsCreateSubscriptionAdjustment.d.ts +19 -0
  7. package/dist/commonjs/funcs/subscriptionsCreateSubscriptionAdjustment.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/subscriptionsCreateSubscriptionAdjustment.js +127 -0
  9. package/dist/commonjs/funcs/subscriptionsCreateSubscriptionAdjustment.js.map +1 -0
  10. package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts +18 -0
  11. package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.js +128 -0
  13. package/dist/commonjs/funcs/subscriptionsDeleteSubscriptionAdjustment.js.map +1 -0
  14. package/dist/commonjs/funcs/subscriptionsListSubscriptionAdjustments.d.ts +19 -0
  15. package/dist/commonjs/funcs/subscriptionsListSubscriptionAdjustments.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/subscriptionsListSubscriptionAdjustments.js +129 -0
  17. package/dist/commonjs/funcs/subscriptionsListSubscriptionAdjustments.js.map +1 -0
  18. package/dist/commonjs/lib/config.d.ts +2 -2
  19. package/dist/commonjs/lib/config.js +2 -2
  20. package/dist/commonjs/models/createsubscriptionadjustmentrequest.d.ts +53 -0
  21. package/dist/commonjs/models/createsubscriptionadjustmentrequest.d.ts.map +1 -0
  22. package/dist/commonjs/models/createsubscriptionadjustmentrequest.js +63 -0
  23. package/dist/commonjs/models/createsubscriptionadjustmentrequest.js.map +1 -0
  24. package/dist/commonjs/models/errors/index.d.ts +1 -0
  25. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  26. package/dist/commonjs/models/errors/index.js +1 -0
  27. package/dist/commonjs/models/errors/index.js.map +1 -1
  28. package/dist/commonjs/models/errors/updateprice.d.ts +36 -0
  29. package/dist/commonjs/models/errors/updateprice.d.ts.map +1 -0
  30. package/dist/commonjs/models/errors/updateprice.js +77 -0
  31. package/dist/commonjs/models/errors/updateprice.js.map +1 -0
  32. package/dist/commonjs/models/index.d.ts +4 -1
  33. package/dist/commonjs/models/index.d.ts.map +1 -1
  34. package/dist/commonjs/models/index.js +4 -1
  35. package/dist/commonjs/models/index.js.map +1 -1
  36. package/dist/commonjs/models/operations/createprice.d.ts +8 -3
  37. package/dist/commonjs/models/operations/createprice.d.ts.map +1 -1
  38. package/dist/commonjs/models/operations/createprice.js +2 -1
  39. package/dist/commonjs/models/operations/createprice.js.map +1 -1
  40. package/dist/commonjs/models/operations/createsubscriptionadjustment.d.ts +18 -0
  41. package/dist/commonjs/models/operations/createsubscriptionadjustment.d.ts.map +1 -0
  42. package/dist/commonjs/models/operations/createsubscriptionadjustment.js +56 -0
  43. package/dist/commonjs/models/operations/createsubscriptionadjustment.js.map +1 -0
  44. package/dist/commonjs/models/operations/deletesubscriptionadjustment.d.ts +20 -0
  45. package/dist/commonjs/models/operations/deletesubscriptionadjustment.d.ts.map +1 -0
  46. package/dist/commonjs/models/operations/deletesubscriptionadjustment.js +50 -0
  47. package/dist/commonjs/models/operations/deletesubscriptionadjustment.js.map +1 -0
  48. package/dist/commonjs/models/operations/index.d.ts +3 -0
  49. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  50. package/dist/commonjs/models/operations/index.js +3 -0
  51. package/dist/commonjs/models/operations/index.js.map +1 -1
  52. package/dist/commonjs/models/operations/listsubscriptionadjustments.d.ts +25 -0
  53. package/dist/commonjs/models/operations/listsubscriptionadjustments.d.ts.map +1 -0
  54. package/dist/commonjs/models/operations/listsubscriptionadjustments.js +51 -0
  55. package/dist/commonjs/models/operations/listsubscriptionadjustments.js.map +1 -0
  56. package/dist/commonjs/models/operations/updateprice.d.ts +18 -3
  57. package/dist/commonjs/models/operations/updateprice.d.ts.map +1 -1
  58. package/dist/commonjs/models/operations/updateprice.js +14 -2
  59. package/dist/commonjs/models/operations/updateprice.js.map +1 -1
  60. package/dist/commonjs/models/planversionpriceslot.d.ts +4 -0
  61. package/dist/commonjs/models/planversionpriceslot.d.ts.map +1 -1
  62. package/dist/commonjs/models/planversionpriceslot.js +1 -0
  63. package/dist/commonjs/models/planversionpriceslot.js.map +1 -1
  64. package/dist/commonjs/models/price.d.ts +4 -0
  65. package/dist/commonjs/models/price.d.ts.map +1 -1
  66. package/dist/commonjs/models/price.js +1 -0
  67. package/dist/commonjs/models/price.js.map +1 -1
  68. package/dist/commonjs/models/pricemodel.d.ts +2 -2
  69. package/dist/commonjs/models/pricemodel.js +1 -1
  70. package/dist/commonjs/models/pricemodelinput.d.ts +3 -2
  71. package/dist/commonjs/models/pricemodelinput.d.ts.map +1 -1
  72. package/dist/commonjs/models/pricemodelinput.js +2 -1
  73. package/dist/commonjs/models/pricemodelinput.js.map +1 -1
  74. package/dist/commonjs/models/priceproperties.d.ts +125 -0
  75. package/dist/commonjs/models/priceproperties.d.ts.map +1 -0
  76. package/dist/commonjs/models/priceproperties.js +152 -0
  77. package/dist/commonjs/models/priceproperties.js.map +1 -0
  78. package/dist/commonjs/models/schemasprice.d.ts +7 -3
  79. package/dist/commonjs/models/schemasprice.d.ts.map +1 -1
  80. package/dist/commonjs/models/schemasprice.js +3 -2
  81. package/dist/commonjs/models/schemasprice.js.map +1 -1
  82. package/dist/commonjs/models/subscriptionadjustment.d.ts +49 -0
  83. package/dist/commonjs/models/subscriptionadjustment.d.ts.map +1 -0
  84. package/dist/commonjs/models/subscriptionadjustment.js +68 -0
  85. package/dist/commonjs/models/subscriptionadjustment.js.map +1 -0
  86. package/dist/commonjs/models/subscriptionadjustmentsresponse.d.ts +16 -0
  87. package/dist/commonjs/models/subscriptionadjustmentsresponse.d.ts.map +1 -0
  88. package/dist/commonjs/models/subscriptionadjustmentsresponse.js +53 -0
  89. package/dist/commonjs/models/subscriptionadjustmentsresponse.js.map +1 -0
  90. package/dist/commonjs/sdk/subscriptions.d.ts +21 -0
  91. package/dist/commonjs/sdk/subscriptions.d.ts.map +1 -1
  92. package/dist/commonjs/sdk/subscriptions.js +30 -0
  93. package/dist/commonjs/sdk/subscriptions.js.map +1 -1
  94. package/dist/esm/funcs/pricesUpdate.d.ts +1 -1
  95. package/dist/esm/funcs/pricesUpdate.d.ts.map +1 -1
  96. package/dist/esm/funcs/pricesUpdate.js +2 -2
  97. package/dist/esm/funcs/pricesUpdate.js.map +1 -1
  98. package/dist/esm/funcs/subscriptionsCreateSubscriptionAdjustment.d.ts +19 -0
  99. package/dist/esm/funcs/subscriptionsCreateSubscriptionAdjustment.d.ts.map +1 -0
  100. package/dist/esm/funcs/subscriptionsCreateSubscriptionAdjustment.js +91 -0
  101. package/dist/esm/funcs/subscriptionsCreateSubscriptionAdjustment.js.map +1 -0
  102. package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts +18 -0
  103. package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.d.ts.map +1 -0
  104. package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.js +92 -0
  105. package/dist/esm/funcs/subscriptionsDeleteSubscriptionAdjustment.js.map +1 -0
  106. package/dist/esm/funcs/subscriptionsListSubscriptionAdjustments.d.ts +19 -0
  107. package/dist/esm/funcs/subscriptionsListSubscriptionAdjustments.d.ts.map +1 -0
  108. package/dist/esm/funcs/subscriptionsListSubscriptionAdjustments.js +93 -0
  109. package/dist/esm/funcs/subscriptionsListSubscriptionAdjustments.js.map +1 -0
  110. package/dist/esm/lib/config.d.ts +2 -2
  111. package/dist/esm/lib/config.js +2 -2
  112. package/dist/esm/models/createsubscriptionadjustmentrequest.d.ts +53 -0
  113. package/dist/esm/models/createsubscriptionadjustmentrequest.d.ts.map +1 -0
  114. package/dist/esm/models/createsubscriptionadjustmentrequest.js +26 -0
  115. package/dist/esm/models/createsubscriptionadjustmentrequest.js.map +1 -0
  116. package/dist/esm/models/errors/index.d.ts +1 -0
  117. package/dist/esm/models/errors/index.d.ts.map +1 -1
  118. package/dist/esm/models/errors/index.js +1 -0
  119. package/dist/esm/models/errors/index.js.map +1 -1
  120. package/dist/esm/models/errors/updateprice.d.ts +36 -0
  121. package/dist/esm/models/errors/updateprice.d.ts.map +1 -0
  122. package/dist/esm/models/errors/updateprice.js +40 -0
  123. package/dist/esm/models/errors/updateprice.js.map +1 -0
  124. package/dist/esm/models/index.d.ts +4 -1
  125. package/dist/esm/models/index.d.ts.map +1 -1
  126. package/dist/esm/models/index.js +4 -1
  127. package/dist/esm/models/index.js.map +1 -1
  128. package/dist/esm/models/operations/createprice.d.ts +8 -3
  129. package/dist/esm/models/operations/createprice.d.ts.map +1 -1
  130. package/dist/esm/models/operations/createprice.js +2 -1
  131. package/dist/esm/models/operations/createprice.js.map +1 -1
  132. package/dist/esm/models/operations/createsubscriptionadjustment.d.ts +18 -0
  133. package/dist/esm/models/operations/createsubscriptionadjustment.d.ts.map +1 -0
  134. package/dist/esm/models/operations/createsubscriptionadjustment.js +19 -0
  135. package/dist/esm/models/operations/createsubscriptionadjustment.js.map +1 -0
  136. package/dist/esm/models/operations/deletesubscriptionadjustment.d.ts +20 -0
  137. package/dist/esm/models/operations/deletesubscriptionadjustment.d.ts.map +1 -0
  138. package/dist/esm/models/operations/deletesubscriptionadjustment.js +13 -0
  139. package/dist/esm/models/operations/deletesubscriptionadjustment.js.map +1 -0
  140. package/dist/esm/models/operations/index.d.ts +3 -0
  141. package/dist/esm/models/operations/index.d.ts.map +1 -1
  142. package/dist/esm/models/operations/index.js +3 -0
  143. package/dist/esm/models/operations/index.js.map +1 -1
  144. package/dist/esm/models/operations/listsubscriptionadjustments.d.ts +25 -0
  145. package/dist/esm/models/operations/listsubscriptionadjustments.d.ts.map +1 -0
  146. package/dist/esm/models/operations/listsubscriptionadjustments.js +14 -0
  147. package/dist/esm/models/operations/listsubscriptionadjustments.js.map +1 -0
  148. package/dist/esm/models/operations/updateprice.d.ts +18 -3
  149. package/dist/esm/models/operations/updateprice.d.ts.map +1 -1
  150. package/dist/esm/models/operations/updateprice.js +12 -1
  151. package/dist/esm/models/operations/updateprice.js.map +1 -1
  152. package/dist/esm/models/planversionpriceslot.d.ts +4 -0
  153. package/dist/esm/models/planversionpriceslot.d.ts.map +1 -1
  154. package/dist/esm/models/planversionpriceslot.js +1 -0
  155. package/dist/esm/models/planversionpriceslot.js.map +1 -1
  156. package/dist/esm/models/price.d.ts +4 -0
  157. package/dist/esm/models/price.d.ts.map +1 -1
  158. package/dist/esm/models/price.js +1 -0
  159. package/dist/esm/models/price.js.map +1 -1
  160. package/dist/esm/models/pricemodel.d.ts +2 -2
  161. package/dist/esm/models/pricemodel.js +1 -1
  162. package/dist/esm/models/pricemodelinput.d.ts +3 -2
  163. package/dist/esm/models/pricemodelinput.d.ts.map +1 -1
  164. package/dist/esm/models/pricemodelinput.js +2 -1
  165. package/dist/esm/models/pricemodelinput.js.map +1 -1
  166. package/dist/esm/models/priceproperties.d.ts +125 -0
  167. package/dist/esm/models/priceproperties.d.ts.map +1 -0
  168. package/dist/esm/models/priceproperties.js +104 -0
  169. package/dist/esm/models/priceproperties.js.map +1 -0
  170. package/dist/esm/models/schemasprice.d.ts +7 -3
  171. package/dist/esm/models/schemasprice.d.ts.map +1 -1
  172. package/dist/esm/models/schemasprice.js +3 -2
  173. package/dist/esm/models/schemasprice.js.map +1 -1
  174. package/dist/esm/models/subscriptionadjustment.d.ts +49 -0
  175. package/dist/esm/models/subscriptionadjustment.d.ts.map +1 -0
  176. package/dist/esm/models/subscriptionadjustment.js +31 -0
  177. package/dist/esm/models/subscriptionadjustment.js.map +1 -0
  178. package/dist/esm/models/subscriptionadjustmentsresponse.d.ts +16 -0
  179. package/dist/esm/models/subscriptionadjustmentsresponse.d.ts.map +1 -0
  180. package/dist/esm/models/subscriptionadjustmentsresponse.js +16 -0
  181. package/dist/esm/models/subscriptionadjustmentsresponse.js.map +1 -0
  182. package/dist/esm/sdk/subscriptions.d.ts +21 -0
  183. package/dist/esm/sdk/subscriptions.d.ts.map +1 -1
  184. package/dist/esm/sdk/subscriptions.js +30 -0
  185. package/dist/esm/sdk/subscriptions.js.map +1 -1
  186. package/jsr.json +1 -1
  187. package/package.json +1 -1
  188. package/src/funcs/pricesUpdate.ts +5 -1
  189. package/src/funcs/subscriptionsCreateSubscriptionAdjustment.ts +186 -0
  190. package/src/funcs/subscriptionsDeleteSubscriptionAdjustment.ts +185 -0
  191. package/src/funcs/subscriptionsListSubscriptionAdjustments.ts +183 -0
  192. package/src/lib/config.ts +2 -2
  193. package/src/models/createsubscriptionadjustmentrequest.ts +85 -0
  194. package/src/models/errors/index.ts +1 -0
  195. package/src/models/errors/updateprice.ts +71 -0
  196. package/src/models/index.ts +4 -1
  197. package/src/models/operations/createprice.ts +10 -4
  198. package/src/models/operations/createsubscriptionadjustment.ts +48 -0
  199. package/src/models/operations/deletesubscriptionadjustment.ts +42 -0
  200. package/src/models/operations/index.ts +3 -0
  201. package/src/models/operations/listsubscriptionadjustments.ts +48 -0
  202. package/src/models/operations/updateprice.ts +40 -4
  203. package/src/models/planversionpriceslot.ts +5 -0
  204. package/src/models/price.ts +5 -0
  205. package/src/models/pricemodel.ts +2 -2
  206. package/src/models/pricemodelinput.ts +3 -2
  207. package/src/models/priceproperties.ts +325 -0
  208. package/src/models/schemasprice.ts +11 -6
  209. package/src/models/subscriptionadjustment.ts +94 -0
  210. package/src/models/subscriptionadjustmentsresponse.ts +44 -0
  211. package/src/sdk/subscriptions.ts +54 -0
  212. package/dist/commonjs/models/pricepropertiesunion.d.ts +0 -152
  213. package/dist/commonjs/models/pricepropertiesunion.d.ts.map +0 -1
  214. package/dist/commonjs/models/pricepropertiesunion.js +0 -169
  215. package/dist/commonjs/models/pricepropertiesunion.js.map +0 -1
  216. package/dist/esm/models/pricepropertiesunion.d.ts +0 -152
  217. package/dist/esm/models/pricepropertiesunion.d.ts.map +0 -1
  218. package/dist/esm/models/pricepropertiesunion.js +0 -121
  219. package/dist/esm/models/pricepropertiesunion.js.map +0 -1
  220. package/src/models/pricepropertiesunion.ts +0 -364
@@ -1,152 +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
- * Percentage pricing model
7
- */
8
- export type PriceProperties4 = {
9
- /**
10
- * Ceiling amount limiting total charge regardless of percentage calculation. Sample values: '500.00' caps fees at $500 maximum, '2000.00' limits charges to $2000 per period
11
- */
12
- maxCharge: string;
13
- /**
14
- * Floor amount charged regardless of percentage calculation. Sample values: '5.00' ensures minimum $5 fee, '25.00' guarantees at least $25 per billing event
15
- */
16
- minCharge: string;
17
- /**
18
- * Rate expressed as decimal between 0 and 10, supporting up to 4 decimal precision. Sample values: '0.03' represents 3%, '0.075' represents 7.5%, '1.10' represents 110%
19
- */
20
- percentage: string;
21
- };
22
- /**
23
- * Function used for volume pricing calculations
24
- */
25
- export declare const FunctionT: {
26
- readonly Linear: "linear";
27
- };
28
- /**
29
- * Function used for volume pricing calculations
30
- */
31
- export type FunctionT = ClosedEnum<typeof FunctionT>;
32
- export type ParametersT = {
33
- /**
34
- * Function used for volume pricing calculations
35
- */
36
- function: FunctionT;
37
- /**
38
- * Gradient for volume pricing calculations
39
- */
40
- gradient: string;
41
- /**
42
- * Maximum value for volume pricing
43
- */
44
- max: string;
45
- /**
46
- * Minimum value for volume pricing
47
- */
48
- min: string;
49
- };
50
- /**
51
- * Volume pricing model
52
- */
53
- export type PriceProperties3 = {
54
- /**
55
- * Default value for volume pricing
56
- */
57
- default: string;
58
- parameters: ParametersT;
59
- };
60
- /**
61
- * Dynamic pricing model
62
- */
63
- export type PriceProperties2 = {
64
- /**
65
- * Upper limit of the price range for dynamic pricing. Sample values: '0.10' means $0.10 per token for large volumes at peak times
66
- */
67
- maxPrice: string;
68
- /**
69
- * Lower limit of the price range for dynamic pricing. Sample values: '0.01' means $0.01 per token for low volumes during off-peak hours
70
- */
71
- minPrice: string;
72
- };
73
- /**
74
- * Standard pricing model
75
- */
76
- export type PriceProperties1 = {
77
- /**
78
- * Per-unit cost in decimal format for fixed-rate pricing. Sample values: '0.00002' represents $0.00002 per token, '0.15' represents $0.15 per gigabyte stored, '0.05' represents $0.05 per API call. Per unit. Total per period = quantity × unitPrice; see the `quantity` field. A negative value defines a usage-scaled rebate: the line's subtotal is negative and reduces the invoice. A rebate never drives an invoice total below zero, so set rebate rates below the charges they offset. A negative unitPrice is only valid on a metered price (a billableMetricId is required — there is no usage to scale on a fee price) and cannot be combined with grantDiscountEnabled, a hard-limit feature, or a pricingUnitId. When a rebate and a charge price share a billable metric but attach to different features, they compute against different quantity bases: a price attached to a feature bills the overage against its allowance, while a featureless price bills the raw metered usage. That is a permitted configuration, not an error. Attach both to the same feature to bill them against one basis.
79
- */
80
- unitPrice: string;
81
- };
82
- export type PricePropertiesUnion = PriceProperties4 | PriceProperties2 | PriceProperties3 | PriceProperties1;
83
- /** @internal */
84
- export declare const PriceProperties4$inboundSchema: z.ZodType<PriceProperties4, z.ZodTypeDef, unknown>;
85
- /** @internal */
86
- export type PriceProperties4$Outbound = {
87
- maxCharge: string;
88
- minCharge: string;
89
- percentage: string;
90
- };
91
- /** @internal */
92
- export declare const PriceProperties4$outboundSchema: z.ZodType<PriceProperties4$Outbound, z.ZodTypeDef, PriceProperties4>;
93
- export declare function priceProperties4ToJSON(priceProperties4: PriceProperties4): string;
94
- export declare function priceProperties4FromJSON(jsonString: string): SafeParseResult<PriceProperties4, SDKValidationError>;
95
- /** @internal */
96
- export declare const FunctionT$inboundSchema: z.ZodNativeEnum<typeof FunctionT>;
97
- /** @internal */
98
- export declare const FunctionT$outboundSchema: z.ZodNativeEnum<typeof FunctionT>;
99
- /** @internal */
100
- export declare const ParametersT$inboundSchema: z.ZodType<ParametersT, z.ZodTypeDef, unknown>;
101
- /** @internal */
102
- export type ParametersT$Outbound = {
103
- function: string;
104
- gradient: string;
105
- max: string;
106
- min: string;
107
- };
108
- /** @internal */
109
- export declare const ParametersT$outboundSchema: z.ZodType<ParametersT$Outbound, z.ZodTypeDef, ParametersT>;
110
- export declare function parametersToJSON(parametersT: ParametersT): string;
111
- export declare function parametersFromJSON(jsonString: string): SafeParseResult<ParametersT, SDKValidationError>;
112
- /** @internal */
113
- export declare const PriceProperties3$inboundSchema: z.ZodType<PriceProperties3, z.ZodTypeDef, unknown>;
114
- /** @internal */
115
- export type PriceProperties3$Outbound = {
116
- default: string;
117
- parameters: ParametersT$Outbound;
118
- };
119
- /** @internal */
120
- export declare const PriceProperties3$outboundSchema: z.ZodType<PriceProperties3$Outbound, z.ZodTypeDef, PriceProperties3>;
121
- export declare function priceProperties3ToJSON(priceProperties3: PriceProperties3): string;
122
- export declare function priceProperties3FromJSON(jsonString: string): SafeParseResult<PriceProperties3, SDKValidationError>;
123
- /** @internal */
124
- export declare const PriceProperties2$inboundSchema: z.ZodType<PriceProperties2, z.ZodTypeDef, unknown>;
125
- /** @internal */
126
- export type PriceProperties2$Outbound = {
127
- maxPrice: string;
128
- minPrice: string;
129
- };
130
- /** @internal */
131
- export declare const PriceProperties2$outboundSchema: z.ZodType<PriceProperties2$Outbound, z.ZodTypeDef, PriceProperties2>;
132
- export declare function priceProperties2ToJSON(priceProperties2: PriceProperties2): string;
133
- export declare function priceProperties2FromJSON(jsonString: string): SafeParseResult<PriceProperties2, SDKValidationError>;
134
- /** @internal */
135
- export declare const PriceProperties1$inboundSchema: z.ZodType<PriceProperties1, z.ZodTypeDef, unknown>;
136
- /** @internal */
137
- export type PriceProperties1$Outbound = {
138
- unitPrice: string;
139
- };
140
- /** @internal */
141
- export declare const PriceProperties1$outboundSchema: z.ZodType<PriceProperties1$Outbound, z.ZodTypeDef, PriceProperties1>;
142
- export declare function priceProperties1ToJSON(priceProperties1: PriceProperties1): string;
143
- export declare function priceProperties1FromJSON(jsonString: string): SafeParseResult<PriceProperties1, SDKValidationError>;
144
- /** @internal */
145
- export declare const PricePropertiesUnion$inboundSchema: z.ZodType<PricePropertiesUnion, z.ZodTypeDef, unknown>;
146
- /** @internal */
147
- export type PricePropertiesUnion$Outbound = PriceProperties4$Outbound | PriceProperties2$Outbound | PriceProperties3$Outbound | PriceProperties1$Outbound;
148
- /** @internal */
149
- export declare const PricePropertiesUnion$outboundSchema: z.ZodType<PricePropertiesUnion$Outbound, z.ZodTypeDef, PricePropertiesUnion>;
150
- export declare function pricePropertiesUnionToJSON(pricePropertiesUnion: PricePropertiesUnion): string;
151
- export declare function pricePropertiesUnionFromJSON(jsonString: string): SafeParseResult<PricePropertiesUnion, SDKValidationError>;
152
- //# sourceMappingURL=pricepropertiesunion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pricepropertiesunion.d.ts","sourceRoot":"","sources":["../../../src/models/pricepropertiesunion.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,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;CAEZ,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;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,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GACrC,yBAAyB,GACzB,yBAAyB,GACzB,yBAAyB,GACzB,yBAAyB,CAAC;AAE9B,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAMpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AACD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -1,169 +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.PricePropertiesUnion$outboundSchema = exports.PricePropertiesUnion$inboundSchema = exports.PriceProperties1$outboundSchema = exports.PriceProperties1$inboundSchema = exports.PriceProperties2$outboundSchema = exports.PriceProperties2$inboundSchema = exports.PriceProperties3$outboundSchema = exports.PriceProperties3$inboundSchema = exports.ParametersT$outboundSchema = exports.ParametersT$inboundSchema = exports.FunctionT$outboundSchema = exports.FunctionT$inboundSchema = exports.PriceProperties4$outboundSchema = exports.PriceProperties4$inboundSchema = exports.FunctionT = void 0;
40
- exports.priceProperties4ToJSON = priceProperties4ToJSON;
41
- exports.priceProperties4FromJSON = priceProperties4FromJSON;
42
- exports.parametersToJSON = parametersToJSON;
43
- exports.parametersFromJSON = parametersFromJSON;
44
- exports.priceProperties3ToJSON = priceProperties3ToJSON;
45
- exports.priceProperties3FromJSON = priceProperties3FromJSON;
46
- exports.priceProperties2ToJSON = priceProperties2ToJSON;
47
- exports.priceProperties2FromJSON = priceProperties2FromJSON;
48
- exports.priceProperties1ToJSON = priceProperties1ToJSON;
49
- exports.priceProperties1FromJSON = priceProperties1FromJSON;
50
- exports.pricePropertiesUnionToJSON = pricePropertiesUnionToJSON;
51
- exports.pricePropertiesUnionFromJSON = pricePropertiesUnionFromJSON;
52
- const z = __importStar(require("zod/v3"));
53
- const schemas_js_1 = require("../lib/schemas.js");
54
- /**
55
- * Function used for volume pricing calculations
56
- */
57
- exports.FunctionT = {
58
- Linear: "linear",
59
- };
60
- /** @internal */
61
- exports.PriceProperties4$inboundSchema = z.object({
62
- maxCharge: z.string(),
63
- minCharge: z.string(),
64
- percentage: z.string(),
65
- });
66
- /** @internal */
67
- exports.PriceProperties4$outboundSchema = z.object({
68
- maxCharge: z.string(),
69
- minCharge: z.string(),
70
- percentage: z.string(),
71
- });
72
- function priceProperties4ToJSON(priceProperties4) {
73
- return JSON.stringify(exports.PriceProperties4$outboundSchema.parse(priceProperties4));
74
- }
75
- function priceProperties4FromJSON(jsonString) {
76
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PriceProperties4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PriceProperties4' from JSON`);
77
- }
78
- /** @internal */
79
- exports.FunctionT$inboundSchema = z
80
- .nativeEnum(exports.FunctionT);
81
- /** @internal */
82
- exports.FunctionT$outboundSchema = exports.FunctionT$inboundSchema;
83
- /** @internal */
84
- exports.ParametersT$inboundSchema = z.object({
85
- function: exports.FunctionT$inboundSchema,
86
- gradient: z.string(),
87
- max: z.string(),
88
- min: z.string(),
89
- });
90
- /** @internal */
91
- exports.ParametersT$outboundSchema = z.object({
92
- function: exports.FunctionT$outboundSchema,
93
- gradient: z.string(),
94
- max: z.string(),
95
- min: z.string(),
96
- });
97
- function parametersToJSON(parametersT) {
98
- return JSON.stringify(exports.ParametersT$outboundSchema.parse(parametersT));
99
- }
100
- function parametersFromJSON(jsonString) {
101
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ParametersT$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ParametersT' from JSON`);
102
- }
103
- /** @internal */
104
- exports.PriceProperties3$inboundSchema = z.object({
105
- default: z.string(),
106
- parameters: z.lazy(() => exports.ParametersT$inboundSchema),
107
- });
108
- /** @internal */
109
- exports.PriceProperties3$outboundSchema = z.object({
110
- default: z.string(),
111
- parameters: z.lazy(() => exports.ParametersT$outboundSchema),
112
- });
113
- function priceProperties3ToJSON(priceProperties3) {
114
- return JSON.stringify(exports.PriceProperties3$outboundSchema.parse(priceProperties3));
115
- }
116
- function priceProperties3FromJSON(jsonString) {
117
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PriceProperties3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PriceProperties3' from JSON`);
118
- }
119
- /** @internal */
120
- exports.PriceProperties2$inboundSchema = z.object({
121
- maxPrice: z.string(),
122
- minPrice: z.string(),
123
- });
124
- /** @internal */
125
- exports.PriceProperties2$outboundSchema = z.object({
126
- maxPrice: z.string(),
127
- minPrice: z.string(),
128
- });
129
- function priceProperties2ToJSON(priceProperties2) {
130
- return JSON.stringify(exports.PriceProperties2$outboundSchema.parse(priceProperties2));
131
- }
132
- function priceProperties2FromJSON(jsonString) {
133
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PriceProperties2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PriceProperties2' from JSON`);
134
- }
135
- /** @internal */
136
- exports.PriceProperties1$inboundSchema = z.object({
137
- unitPrice: z.string(),
138
- });
139
- /** @internal */
140
- exports.PriceProperties1$outboundSchema = z.object({
141
- unitPrice: z.string(),
142
- });
143
- function priceProperties1ToJSON(priceProperties1) {
144
- return JSON.stringify(exports.PriceProperties1$outboundSchema.parse(priceProperties1));
145
- }
146
- function priceProperties1FromJSON(jsonString) {
147
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PriceProperties1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PriceProperties1' from JSON`);
148
- }
149
- /** @internal */
150
- exports.PricePropertiesUnion$inboundSchema = z.union([
151
- z.lazy(() => exports.PriceProperties4$inboundSchema),
152
- z.lazy(() => exports.PriceProperties2$inboundSchema),
153
- z.lazy(() => exports.PriceProperties3$inboundSchema),
154
- z.lazy(() => exports.PriceProperties1$inboundSchema),
155
- ]);
156
- /** @internal */
157
- exports.PricePropertiesUnion$outboundSchema = z.union([
158
- z.lazy(() => exports.PriceProperties4$outboundSchema),
159
- z.lazy(() => exports.PriceProperties2$outboundSchema),
160
- z.lazy(() => exports.PriceProperties3$outboundSchema),
161
- z.lazy(() => exports.PriceProperties1$outboundSchema),
162
- ]);
163
- function pricePropertiesUnionToJSON(pricePropertiesUnion) {
164
- return JSON.stringify(exports.PricePropertiesUnion$outboundSchema.parse(pricePropertiesUnion));
165
- }
166
- function pricePropertiesUnionFromJSON(jsonString) {
167
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PricePropertiesUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PricePropertiesUnion' from JSON`);
168
- }
169
- //# sourceMappingURL=pricepropertiesunion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pricepropertiesunion.js","sourceRoot":"","sources":["../../../src/models/pricepropertiesunion.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6HH,wDAMC;AACD,4DAQC;AAwCD,4CAEC;AACD,gDAQC;AA2BD,wDAMC;AACD,4DAQC;AA2BD,wDAMC;AACD,4DAQC;AAwBD,wDAMC;AACD,4DAQC;AAgCD,gEAMC;AACD,oEAQC;AAvWD,0CAA4B;AAC5B,kDAA8C;AAuB9C;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;CACR,CAAC;AAkEX,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AACD,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,U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G,EAAE,CAAC,uCAA+B,CAAC;IAC7C,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,uCAA+B,CAAC;CAC9C,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AACD,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
@@ -1,152 +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
- * Percentage pricing model
7
- */
8
- export type PriceProperties4 = {
9
- /**
10
- * Ceiling amount limiting total charge regardless of percentage calculation. Sample values: '500.00' caps fees at $500 maximum, '2000.00' limits charges to $2000 per period
11
- */
12
- maxCharge: string;
13
- /**
14
- * Floor amount charged regardless of percentage calculation. Sample values: '5.00' ensures minimum $5 fee, '25.00' guarantees at least $25 per billing event
15
- */
16
- minCharge: string;
17
- /**
18
- * Rate expressed as decimal between 0 and 10, supporting up to 4 decimal precision. Sample values: '0.03' represents 3%, '0.075' represents 7.5%, '1.10' represents 110%
19
- */
20
- percentage: string;
21
- };
22
- /**
23
- * Function used for volume pricing calculations
24
- */
25
- export declare const FunctionT: {
26
- readonly Linear: "linear";
27
- };
28
- /**
29
- * Function used for volume pricing calculations
30
- */
31
- export type FunctionT = ClosedEnum<typeof FunctionT>;
32
- export type ParametersT = {
33
- /**
34
- * Function used for volume pricing calculations
35
- */
36
- function: FunctionT;
37
- /**
38
- * Gradient for volume pricing calculations
39
- */
40
- gradient: string;
41
- /**
42
- * Maximum value for volume pricing
43
- */
44
- max: string;
45
- /**
46
- * Minimum value for volume pricing
47
- */
48
- min: string;
49
- };
50
- /**
51
- * Volume pricing model
52
- */
53
- export type PriceProperties3 = {
54
- /**
55
- * Default value for volume pricing
56
- */
57
- default: string;
58
- parameters: ParametersT;
59
- };
60
- /**
61
- * Dynamic pricing model
62
- */
63
- export type PriceProperties2 = {
64
- /**
65
- * Upper limit of the price range for dynamic pricing. Sample values: '0.10' means $0.10 per token for large volumes at peak times
66
- */
67
- maxPrice: string;
68
- /**
69
- * Lower limit of the price range for dynamic pricing. Sample values: '0.01' means $0.01 per token for low volumes during off-peak hours
70
- */
71
- minPrice: string;
72
- };
73
- /**
74
- * Standard pricing model
75
- */
76
- export type PriceProperties1 = {
77
- /**
78
- * Per-unit cost in decimal format for fixed-rate pricing. Sample values: '0.00002' represents $0.00002 per token, '0.15' represents $0.15 per gigabyte stored, '0.05' represents $0.05 per API call. Per unit. Total per period = quantity × unitPrice; see the `quantity` field. A negative value defines a usage-scaled rebate: the line's subtotal is negative and reduces the invoice. A rebate never drives an invoice total below zero, so set rebate rates below the charges they offset. A negative unitPrice is only valid on a metered price (a billableMetricId is required — there is no usage to scale on a fee price) and cannot be combined with grantDiscountEnabled, a hard-limit feature, or a pricingUnitId. When a rebate and a charge price share a billable metric but attach to different features, they compute against different quantity bases: a price attached to a feature bills the overage against its allowance, while a featureless price bills the raw metered usage. That is a permitted configuration, not an error. Attach both to the same feature to bill them against one basis.
79
- */
80
- unitPrice: string;
81
- };
82
- export type PricePropertiesUnion = PriceProperties4 | PriceProperties2 | PriceProperties3 | PriceProperties1;
83
- /** @internal */
84
- export declare const PriceProperties4$inboundSchema: z.ZodType<PriceProperties4, z.ZodTypeDef, unknown>;
85
- /** @internal */
86
- export type PriceProperties4$Outbound = {
87
- maxCharge: string;
88
- minCharge: string;
89
- percentage: string;
90
- };
91
- /** @internal */
92
- export declare const PriceProperties4$outboundSchema: z.ZodType<PriceProperties4$Outbound, z.ZodTypeDef, PriceProperties4>;
93
- export declare function priceProperties4ToJSON(priceProperties4: PriceProperties4): string;
94
- export declare function priceProperties4FromJSON(jsonString: string): SafeParseResult<PriceProperties4, SDKValidationError>;
95
- /** @internal */
96
- export declare const FunctionT$inboundSchema: z.ZodNativeEnum<typeof FunctionT>;
97
- /** @internal */
98
- export declare const FunctionT$outboundSchema: z.ZodNativeEnum<typeof FunctionT>;
99
- /** @internal */
100
- export declare const ParametersT$inboundSchema: z.ZodType<ParametersT, z.ZodTypeDef, unknown>;
101
- /** @internal */
102
- export type ParametersT$Outbound = {
103
- function: string;
104
- gradient: string;
105
- max: string;
106
- min: string;
107
- };
108
- /** @internal */
109
- export declare const ParametersT$outboundSchema: z.ZodType<ParametersT$Outbound, z.ZodTypeDef, ParametersT>;
110
- export declare function parametersToJSON(parametersT: ParametersT): string;
111
- export declare function parametersFromJSON(jsonString: string): SafeParseResult<ParametersT, SDKValidationError>;
112
- /** @internal */
113
- export declare const PriceProperties3$inboundSchema: z.ZodType<PriceProperties3, z.ZodTypeDef, unknown>;
114
- /** @internal */
115
- export type PriceProperties3$Outbound = {
116
- default: string;
117
- parameters: ParametersT$Outbound;
118
- };
119
- /** @internal */
120
- export declare const PriceProperties3$outboundSchema: z.ZodType<PriceProperties3$Outbound, z.ZodTypeDef, PriceProperties3>;
121
- export declare function priceProperties3ToJSON(priceProperties3: PriceProperties3): string;
122
- export declare function priceProperties3FromJSON(jsonString: string): SafeParseResult<PriceProperties3, SDKValidationError>;
123
- /** @internal */
124
- export declare const PriceProperties2$inboundSchema: z.ZodType<PriceProperties2, z.ZodTypeDef, unknown>;
125
- /** @internal */
126
- export type PriceProperties2$Outbound = {
127
- maxPrice: string;
128
- minPrice: string;
129
- };
130
- /** @internal */
131
- export declare const PriceProperties2$outboundSchema: z.ZodType<PriceProperties2$Outbound, z.ZodTypeDef, PriceProperties2>;
132
- export declare function priceProperties2ToJSON(priceProperties2: PriceProperties2): string;
133
- export declare function priceProperties2FromJSON(jsonString: string): SafeParseResult<PriceProperties2, SDKValidationError>;
134
- /** @internal */
135
- export declare const PriceProperties1$inboundSchema: z.ZodType<PriceProperties1, z.ZodTypeDef, unknown>;
136
- /** @internal */
137
- export type PriceProperties1$Outbound = {
138
- unitPrice: string;
139
- };
140
- /** @internal */
141
- export declare const PriceProperties1$outboundSchema: z.ZodType<PriceProperties1$Outbound, z.ZodTypeDef, PriceProperties1>;
142
- export declare function priceProperties1ToJSON(priceProperties1: PriceProperties1): string;
143
- export declare function priceProperties1FromJSON(jsonString: string): SafeParseResult<PriceProperties1, SDKValidationError>;
144
- /** @internal */
145
- export declare const PricePropertiesUnion$inboundSchema: z.ZodType<PricePropertiesUnion, z.ZodTypeDef, unknown>;
146
- /** @internal */
147
- export type PricePropertiesUnion$Outbound = PriceProperties4$Outbound | PriceProperties2$Outbound | PriceProperties3$Outbound | PriceProperties1$Outbound;
148
- /** @internal */
149
- export declare const PricePropertiesUnion$outboundSchema: z.ZodType<PricePropertiesUnion$Outbound, z.ZodTypeDef, PricePropertiesUnion>;
150
- export declare function pricePropertiesUnionToJSON(pricePropertiesUnion: PricePropertiesUnion): string;
151
- export declare function pricePropertiesUnionFromJSON(jsonString: string): SafeParseResult<PricePropertiesUnion, SDKValidationError>;
152
- //# sourceMappingURL=pricepropertiesunion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pricepropertiesunion.d.ts","sourceRoot":"","sources":["../../../src/models/pricepropertiesunion.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,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,MAA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AgB,CAGhB,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AACD,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD;AAED,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GACrC,yBAAyB,GACzB,yBAAyB,GACzB,yBAAyB,GACzB,yBAAyB,CAAC;AAE9B,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAMpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AACD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -1,121 +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
- * Function used for volume pricing calculations
8
- */
9
- export const FunctionT = {
10
- Linear: "linear",
11
- };
12
- /** @internal */
13
- export const PriceProperties4$inboundSchema = z.object({
14
- maxCharge: z.string(),
15
- minCharge: z.string(),
16
- percentage: z.string(),
17
- });
18
- /** @internal */
19
- export const PriceProperties4$outboundSchema = z.object({
20
- maxCharge: z.string(),
21
- minCharge: z.string(),
22
- percentage: z.string(),
23
- });
24
- export function priceProperties4ToJSON(priceProperties4) {
25
- return JSON.stringify(PriceProperties4$outboundSchema.parse(priceProperties4));
26
- }
27
- export function priceProperties4FromJSON(jsonString) {
28
- return safeParse(jsonString, (x) => PriceProperties4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PriceProperties4' from JSON`);
29
- }
30
- /** @internal */
31
- export const FunctionT$inboundSchema = z
32
- .nativeEnum(FunctionT);
33
- /** @internal */
34
- export const FunctionT$outboundSchema = FunctionT$inboundSchema;
35
- /** @internal */
36
- export const ParametersT$inboundSchema = z.object({
37
- function: FunctionT$inboundSchema,
38
- gradient: z.string(),
39
- max: z.string(),
40
- min: z.string(),
41
- });
42
- /** @internal */
43
- export const ParametersT$outboundSchema = z.object({
44
- function: FunctionT$outboundSchema,
45
- gradient: z.string(),
46
- max: z.string(),
47
- min: z.string(),
48
- });
49
- export function parametersToJSON(parametersT) {
50
- return JSON.stringify(ParametersT$outboundSchema.parse(parametersT));
51
- }
52
- export function parametersFromJSON(jsonString) {
53
- return safeParse(jsonString, (x) => ParametersT$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ParametersT' from JSON`);
54
- }
55
- /** @internal */
56
- export const PriceProperties3$inboundSchema = z.object({
57
- default: z.string(),
58
- parameters: z.lazy(() => ParametersT$inboundSchema),
59
- });
60
- /** @internal */
61
- export const PriceProperties3$outboundSchema = z.object({
62
- default: z.string(),
63
- parameters: z.lazy(() => ParametersT$outboundSchema),
64
- });
65
- export function priceProperties3ToJSON(priceProperties3) {
66
- return JSON.stringify(PriceProperties3$outboundSchema.parse(priceProperties3));
67
- }
68
- export function priceProperties3FromJSON(jsonString) {
69
- return safeParse(jsonString, (x) => PriceProperties3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PriceProperties3' from JSON`);
70
- }
71
- /** @internal */
72
- export const PriceProperties2$inboundSchema = z.object({
73
- maxPrice: z.string(),
74
- minPrice: z.string(),
75
- });
76
- /** @internal */
77
- export const PriceProperties2$outboundSchema = z.object({
78
- maxPrice: z.string(),
79
- minPrice: z.string(),
80
- });
81
- export function priceProperties2ToJSON(priceProperties2) {
82
- return JSON.stringify(PriceProperties2$outboundSchema.parse(priceProperties2));
83
- }
84
- export function priceProperties2FromJSON(jsonString) {
85
- return safeParse(jsonString, (x) => PriceProperties2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PriceProperties2' from JSON`);
86
- }
87
- /** @internal */
88
- export const PriceProperties1$inboundSchema = z.object({
89
- unitPrice: z.string(),
90
- });
91
- /** @internal */
92
- export const PriceProperties1$outboundSchema = z.object({
93
- unitPrice: z.string(),
94
- });
95
- export function priceProperties1ToJSON(priceProperties1) {
96
- return JSON.stringify(PriceProperties1$outboundSchema.parse(priceProperties1));
97
- }
98
- export function priceProperties1FromJSON(jsonString) {
99
- return safeParse(jsonString, (x) => PriceProperties1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PriceProperties1' from JSON`);
100
- }
101
- /** @internal */
102
- export const PricePropertiesUnion$inboundSchema = z.union([
103
- z.lazy(() => PriceProperties4$inboundSchema),
104
- z.lazy(() => PriceProperties2$inboundSchema),
105
- z.lazy(() => PriceProperties3$inboundSchema),
106
- z.lazy(() => PriceProperties1$inboundSchema),
107
- ]);
108
- /** @internal */
109
- export const PricePropertiesUnion$outboundSchema = z.union([
110
- z.lazy(() => PriceProperties4$outboundSchema),
111
- z.lazy(() => PriceProperties2$outboundSchema),
112
- z.lazy(() => PriceProperties3$outboundSchema),
113
- z.lazy(() => PriceProperties1$outboundSchema),
114
- ]);
115
- export function pricePropertiesUnionToJSON(pricePropertiesUnion) {
116
- return JSON.stringify(PricePropertiesUnion$outboundSchema.parse(pricePropertiesUnion));
117
- }
118
- export function pricePropertiesUnionFromJSON(jsonString) {
119
- return safeParse(jsonString, (x) => PricePropertiesUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PricePropertiesUnion' from JSON`);
120
- }
121
- //# sourceMappingURL=pricepropertiesunion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pricepropertiesunion.js","sourceRoot":"","sources":["../../../src/models/pricepropertiesunion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC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