@flexprice/sdk 2.1.34 → 2.1.36

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 (286) hide show
  1. package/README.md +39 -3
  2. package/docs/sdk/models/add-addon-ref.md +1 -0
  3. package/docs/sdk/models/add-addon-request.md +1 -0
  4. package/docs/sdk/models/add-addon-to-subscription-request.md +1 -0
  5. package/docs/sdk/models/coupon-ref.md +19 -0
  6. package/docs/sdk/models/create-credit-grant-request.md +1 -0
  7. package/docs/sdk/models/create-customer-request.md +7 -0
  8. package/docs/sdk/models/create-scheduled-task-request.md +1 -1
  9. package/docs/sdk/models/create-subscription-request.md +1 -0
  10. package/docs/sdk/models/customer-contact-person.md +25 -0
  11. package/docs/sdk/models/customer-response.md +2 -0
  12. package/docs/sdk/models/customer.md +2 -0
  13. package/docs/sdk/models/external-tax-details.md +25 -0
  14. package/docs/sdk/models/fx-conversion-source.md +18 -0
  15. package/docs/sdk/models/fx-conversion.md +21 -0
  16. package/docs/sdk/models/inline-fx-rate.md +17 -0
  17. package/docs/sdk/models/invoice-line-item-response.md +1 -0
  18. package/docs/sdk/models/invoice-response.md +1 -0
  19. package/docs/sdk/models/line-item-change.md +1 -0
  20. package/docs/sdk/models/modify-subscription-line-item.md +1 -0
  21. package/docs/sdk/models/scheduled-task-entity-type.md +1 -1
  22. package/docs/sdk/models/tax-applied-response.md +5 -1
  23. package/docs/sdk/models/tax-exemption-reason-code.md +2 -2
  24. package/docs/sdk/models/tax-jurisdiction.md +18 -0
  25. package/docs/sdk/models/tax-provider.md +17 -0
  26. package/docs/sdk/models/tax-rate-entity-type.md +1 -1
  27. package/docs/sdk/models/tax-reversal-mode.md +17 -0
  28. package/docs/sdk/models/tax-reversal.md +16 -0
  29. package/docs/sdk/models/tax-transaction-type.md +17 -0
  30. package/docs/sdk/models/top-up-coupon.md +17 -0
  31. package/docs/sdk/models/top-up-wallet-request.md +1 -0
  32. package/docs/sdk/models/update-customer-request-request.md +7 -1
  33. package/docs/sdk/models/update-customer-request.md +5 -1
  34. package/docs/sdk/models/update-subscription-line-item-request.md +20 -18
  35. package/docs/sdk/models/update-tenant-address.md +20 -0
  36. package/docs/sdk/models/update-tenant-billing-details.md +18 -0
  37. package/docs/sdk/models/update-tenant-request.md +5 -5
  38. package/docs/sdk/models/wallet-transaction-response.md +3 -0
  39. package/docs/sdk/models/wallet-tx-consumption.md +16 -0
  40. package/docs/sdk/models/wallet-tx-source-type.md +15 -0
  41. package/docs/sdk/models/webhook-dto-invoice-line-item.md +1 -0
  42. package/docs/sdk/models/webhook-dto-invoice.md +1 -0
  43. package/docs/sdk/models/webhook-dto-tax-applied.md +3 -0
  44. package/docs/sdk/models/webhook-dto-wallet-transaction.md +3 -0
  45. package/docs/sdks/customers/README.md +8 -2
  46. package/esm/hooks/auth-headers.d.ts +4 -0
  47. package/esm/hooks/auth-headers.d.ts.map +1 -0
  48. package/esm/hooks/auth-headers.js +35 -0
  49. package/esm/hooks/auth-headers.js.map +1 -0
  50. package/esm/hooks/registration.d.ts +2 -3
  51. package/esm/hooks/registration.d.ts.map +1 -1
  52. package/esm/hooks/registration.js +4 -4
  53. package/esm/hooks/registration.js.map +1 -1
  54. package/esm/lib/config.d.ts +7 -3
  55. package/esm/lib/config.d.ts.map +1 -1
  56. package/esm/lib/config.js +3 -3
  57. package/esm/lib/config.js.map +1 -1
  58. package/esm/sdk/models/add-addon-ref.d.ts +3 -0
  59. package/esm/sdk/models/add-addon-ref.d.ts.map +1 -1
  60. package/esm/sdk/models/add-addon-ref.js +2 -0
  61. package/esm/sdk/models/add-addon-ref.js.map +1 -1
  62. package/esm/sdk/models/add-addon-request.d.ts +6 -0
  63. package/esm/sdk/models/add-addon-request.d.ts.map +1 -1
  64. package/esm/sdk/models/add-addon-request.js +2 -0
  65. package/esm/sdk/models/add-addon-request.js.map +1 -1
  66. package/esm/sdk/models/add-addon-to-subscription-request.d.ts +6 -0
  67. package/esm/sdk/models/add-addon-to-subscription-request.d.ts.map +1 -1
  68. package/esm/sdk/models/add-addon-to-subscription-request.js +2 -0
  69. package/esm/sdk/models/add-addon-to-subscription-request.js.map +1 -1
  70. package/esm/sdk/models/address.d.ts +0 -12
  71. package/esm/sdk/models/address.d.ts.map +1 -1
  72. package/esm/sdk/models/address.js +0 -21
  73. package/esm/sdk/models/address.js.map +1 -1
  74. package/esm/sdk/models/coupon-ref.d.ts +20 -0
  75. package/esm/sdk/models/coupon-ref.d.ts.map +1 -0
  76. package/esm/sdk/models/coupon-ref.js +25 -0
  77. package/esm/sdk/models/coupon-ref.js.map +1 -0
  78. package/esm/sdk/models/create-credit-grant-request.d.ts +3 -0
  79. package/esm/sdk/models/create-credit-grant-request.d.ts.map +1 -1
  80. package/esm/sdk/models/create-credit-grant-request.js +3 -0
  81. package/esm/sdk/models/create-credit-grant-request.js.map +1 -1
  82. package/esm/sdk/models/create-customer-request.d.ts +11 -0
  83. package/esm/sdk/models/create-customer-request.d.ts.map +1 -1
  84. package/esm/sdk/models/create-customer-request.js +5 -0
  85. package/esm/sdk/models/create-customer-request.js.map +1 -1
  86. package/esm/sdk/models/create-subscription-request.d.ts +9 -0
  87. package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
  88. package/esm/sdk/models/create-subscription-request.js +3 -0
  89. package/esm/sdk/models/create-subscription-request.js.map +1 -1
  90. package/esm/sdk/models/customer-contact-person.d.ts +33 -0
  91. package/esm/sdk/models/customer-contact-person.d.ts.map +1 -0
  92. package/esm/sdk/models/customer-contact-person.js +50 -0
  93. package/esm/sdk/models/customer-contact-person.js.map +1 -0
  94. package/esm/sdk/models/customer-response.d.ts +6 -0
  95. package/esm/sdk/models/customer-response.d.ts.map +1 -1
  96. package/esm/sdk/models/customer-response.js +5 -0
  97. package/esm/sdk/models/customer-response.js.map +1 -1
  98. package/esm/sdk/models/customer.d.ts +6 -0
  99. package/esm/sdk/models/customer.d.ts.map +1 -1
  100. package/esm/sdk/models/customer.js +5 -0
  101. package/esm/sdk/models/customer.js.map +1 -1
  102. package/esm/sdk/models/external-tax-details.d.ts +66 -0
  103. package/esm/sdk/models/external-tax-details.d.ts.map +1 -0
  104. package/esm/sdk/models/external-tax-details.js +36 -0
  105. package/esm/sdk/models/external-tax-details.js.map +1 -0
  106. package/esm/sdk/models/fx-conversion-source.d.ts +13 -0
  107. package/esm/sdk/models/fx-conversion-source.d.ts.map +1 -0
  108. package/esm/sdk/models/fx-conversion-source.js +23 -0
  109. package/esm/sdk/models/fx-conversion-source.js.map +1 -0
  110. package/esm/sdk/models/fx-conversion.d.ts +33 -0
  111. package/esm/sdk/models/fx-conversion.d.ts.map +1 -0
  112. package/esm/sdk/models/fx-conversion.js +30 -0
  113. package/esm/sdk/models/fx-conversion.js.map +1 -0
  114. package/esm/sdk/models/index.d.ts +16 -0
  115. package/esm/sdk/models/index.d.ts.map +1 -1
  116. package/esm/sdk/models/index.js +16 -0
  117. package/esm/sdk/models/index.js.map +1 -1
  118. package/esm/sdk/models/inline-fx-rate.d.ts +16 -0
  119. package/esm/sdk/models/inline-fx-rate.d.ts.map +1 -0
  120. package/esm/sdk/models/inline-fx-rate.js +20 -0
  121. package/esm/sdk/models/inline-fx-rate.js.map +1 -0
  122. package/esm/sdk/models/invoice-line-item-response.d.ts +2 -0
  123. package/esm/sdk/models/invoice-line-item-response.d.ts.map +1 -1
  124. package/esm/sdk/models/invoice-line-item-response.js +3 -0
  125. package/esm/sdk/models/invoice-line-item-response.js.map +1 -1
  126. package/esm/sdk/models/invoice-response.d.ts +2 -0
  127. package/esm/sdk/models/invoice-response.d.ts.map +1 -1
  128. package/esm/sdk/models/invoice-response.js +3 -0
  129. package/esm/sdk/models/invoice-response.js.map +1 -1
  130. package/esm/sdk/models/line-item-change.d.ts +6 -0
  131. package/esm/sdk/models/line-item-change.d.ts.map +1 -1
  132. package/esm/sdk/models/line-item-change.js +2 -0
  133. package/esm/sdk/models/line-item-change.js.map +1 -1
  134. package/esm/sdk/models/modify-subscription-line-item.d.ts +3 -0
  135. package/esm/sdk/models/modify-subscription-line-item.d.ts.map +1 -1
  136. package/esm/sdk/models/modify-subscription-line-item.js +2 -0
  137. package/esm/sdk/models/modify-subscription-line-item.js.map +1 -1
  138. package/esm/sdk/models/scheduled-task-entity-type.d.ts +1 -0
  139. package/esm/sdk/models/scheduled-task-entity-type.d.ts.map +1 -1
  140. package/esm/sdk/models/scheduled-task-entity-type.js +1 -0
  141. package/esm/sdk/models/scheduled-task-entity-type.js.map +1 -1
  142. package/esm/sdk/models/tax-applied-response.d.ts +13 -0
  143. package/esm/sdk/models/tax-applied-response.d.ts.map +1 -1
  144. package/esm/sdk/models/tax-applied-response.js +10 -0
  145. package/esm/sdk/models/tax-applied-response.js.map +1 -1
  146. package/esm/sdk/models/tax-exemption-reason-code.d.ts +4 -0
  147. package/esm/sdk/models/tax-exemption-reason-code.d.ts.map +1 -1
  148. package/esm/sdk/models/tax-exemption-reason-code.js +4 -0
  149. package/esm/sdk/models/tax-exemption-reason-code.js.map +1 -1
  150. package/esm/sdk/models/tax-jurisdiction.d.ts +13 -0
  151. package/esm/sdk/models/tax-jurisdiction.d.ts.map +1 -0
  152. package/esm/sdk/models/tax-jurisdiction.js +22 -0
  153. package/esm/sdk/models/tax-jurisdiction.js.map +1 -0
  154. package/esm/sdk/models/tax-provider.d.ts +10 -0
  155. package/esm/sdk/models/tax-provider.d.ts.map +1 -0
  156. package/esm/sdk/models/tax-provider.js +11 -0
  157. package/esm/sdk/models/tax-provider.js.map +1 -0
  158. package/esm/sdk/models/tax-rate-entity-type.d.ts +1 -0
  159. package/esm/sdk/models/tax-rate-entity-type.d.ts.map +1 -1
  160. package/esm/sdk/models/tax-rate-entity-type.js +1 -0
  161. package/esm/sdk/models/tax-rate-entity-type.js.map +1 -1
  162. package/esm/sdk/models/tax-reversal-mode.d.ts +10 -0
  163. package/esm/sdk/models/tax-reversal-mode.d.ts.map +1 -0
  164. package/esm/sdk/models/tax-reversal-mode.js +11 -0
  165. package/esm/sdk/models/tax-reversal-mode.js.map +1 -0
  166. package/esm/sdk/models/tax-reversal.d.ts +12 -0
  167. package/esm/sdk/models/tax-reversal.d.ts.map +1 -0
  168. package/esm/sdk/models/tax-reversal.js +22 -0
  169. package/esm/sdk/models/tax-reversal.js.map +1 -0
  170. package/esm/sdk/models/tax-transaction-type.d.ts +10 -0
  171. package/esm/sdk/models/tax-transaction-type.d.ts.map +1 -0
  172. package/esm/sdk/models/tax-transaction-type.js +11 -0
  173. package/esm/sdk/models/tax-transaction-type.js.map +1 -0
  174. package/esm/sdk/models/tenant-billing-details.d.ts +1 -11
  175. package/esm/sdk/models/tenant-billing-details.d.ts.map +1 -1
  176. package/esm/sdk/models/tenant-billing-details.js +1 -15
  177. package/esm/sdk/models/tenant-billing-details.js.map +1 -1
  178. package/esm/sdk/models/top-up-coupon.d.ts +12 -0
  179. package/esm/sdk/models/top-up-coupon.d.ts.map +1 -0
  180. package/esm/sdk/models/top-up-coupon.js +17 -0
  181. package/esm/sdk/models/top-up-coupon.js.map +1 -0
  182. package/esm/sdk/models/top-up-wallet-request.d.ts +3 -0
  183. package/esm/sdk/models/top-up-wallet-request.d.ts.map +1 -1
  184. package/esm/sdk/models/top-up-wallet-request.js +2 -0
  185. package/esm/sdk/models/top-up-wallet-request.js.map +1 -1
  186. package/esm/sdk/models/update-customer-request.d.ts +11 -0
  187. package/esm/sdk/models/update-customer-request.d.ts.map +1 -1
  188. package/esm/sdk/models/update-customer-request.js +5 -0
  189. package/esm/sdk/models/update-customer-request.js.map +1 -1
  190. package/esm/sdk/models/update-subscription-line-item-request.d.ts +10 -0
  191. package/esm/sdk/models/update-subscription-line-item-request.d.ts.map +1 -1
  192. package/esm/sdk/models/update-subscription-line-item-request.js +4 -0
  193. package/esm/sdk/models/update-subscription-line-item-request.js.map +1 -1
  194. package/esm/sdk/models/update-tenant-address.d.ts +22 -0
  195. package/esm/sdk/models/update-tenant-address.d.ts.map +1 -0
  196. package/esm/sdk/models/update-tenant-address.js +27 -0
  197. package/esm/sdk/models/update-tenant-address.js.map +1 -0
  198. package/esm/sdk/models/update-tenant-billing-details.d.ts +19 -0
  199. package/esm/sdk/models/update-tenant-billing-details.d.ts.map +1 -0
  200. package/esm/sdk/models/update-tenant-billing-details.js +21 -0
  201. package/esm/sdk/models/update-tenant-billing-details.js.map +1 -0
  202. package/esm/sdk/models/update-tenant-request.d.ts +3 -3
  203. package/esm/sdk/models/update-tenant-request.d.ts.map +1 -1
  204. package/esm/sdk/models/update-tenant-request.js +2 -2
  205. package/esm/sdk/models/update-tenant-request.js.map +1 -1
  206. package/esm/sdk/models/wallet-transaction-response.d.ts +8 -0
  207. package/esm/sdk/models/wallet-transaction-response.d.ts.map +1 -1
  208. package/esm/sdk/models/wallet-transaction-response.js +8 -0
  209. package/esm/sdk/models/wallet-transaction-response.js.map +1 -1
  210. package/esm/sdk/models/wallet-tx-consumption.d.ts +11 -0
  211. package/esm/sdk/models/wallet-tx-consumption.d.ts.map +1 -0
  212. package/esm/sdk/models/wallet-tx-consumption.js +20 -0
  213. package/esm/sdk/models/wallet-tx-consumption.js.map +1 -0
  214. package/esm/sdk/models/wallet-tx-source-type.d.ts +9 -0
  215. package/esm/sdk/models/wallet-tx-source-type.d.ts.map +1 -0
  216. package/esm/sdk/models/wallet-tx-source-type.js +10 -0
  217. package/esm/sdk/models/wallet-tx-source-type.js.map +1 -0
  218. package/esm/sdk/models/webhook-dto-invoice-line-item.d.ts +2 -0
  219. package/esm/sdk/models/webhook-dto-invoice-line-item.d.ts.map +1 -1
  220. package/esm/sdk/models/webhook-dto-invoice-line-item.js +3 -0
  221. package/esm/sdk/models/webhook-dto-invoice-line-item.js.map +1 -1
  222. package/esm/sdk/models/webhook-dto-invoice.d.ts +2 -0
  223. package/esm/sdk/models/webhook-dto-invoice.d.ts.map +1 -1
  224. package/esm/sdk/models/webhook-dto-invoice.js +3 -0
  225. package/esm/sdk/models/webhook-dto-invoice.js.map +1 -1
  226. package/esm/sdk/models/webhook-dto-tax-applied.d.ts +6 -0
  227. package/esm/sdk/models/webhook-dto-tax-applied.d.ts.map +1 -1
  228. package/esm/sdk/models/webhook-dto-tax-applied.js +8 -0
  229. package/esm/sdk/models/webhook-dto-tax-applied.js.map +1 -1
  230. package/esm/sdk/models/webhook-dto-wallet-transaction.d.ts +5 -0
  231. package/esm/sdk/models/webhook-dto-wallet-transaction.d.ts.map +1 -1
  232. package/esm/sdk/models/webhook-dto-wallet-transaction.js +8 -0
  233. package/esm/sdk/models/webhook-dto-wallet-transaction.js.map +1 -1
  234. package/esm/types/smart-union.d.ts.map +1 -1
  235. package/esm/types/smart-union.js +13 -8
  236. package/esm/types/smart-union.js.map +1 -1
  237. package/jsr.json +1 -1
  238. package/package.json +1 -1
  239. package/src/hooks/auth-headers.ts +47 -0
  240. package/src/hooks/registration.ts +4 -4
  241. package/src/lib/config.ts +7 -3
  242. package/src/sdk/models/add-addon-ref.ts +8 -0
  243. package/src/sdk/models/add-addon-request.ts +11 -0
  244. package/src/sdk/models/add-addon-to-subscription-request.ts +11 -0
  245. package/src/sdk/models/address.ts +0 -35
  246. package/src/sdk/models/coupon-ref.ts +50 -0
  247. package/src/sdk/models/create-credit-grant-request.ts +8 -0
  248. package/src/sdk/models/create-customer-request.ts +19 -0
  249. package/src/sdk/models/create-subscription-request.ts +15 -0
  250. package/src/sdk/models/customer-contact-person.ts +101 -0
  251. package/src/sdk/models/customer-response.ts +15 -0
  252. package/src/sdk/models/customer.ts +15 -0
  253. package/src/sdk/models/external-tax-details.ts +113 -0
  254. package/src/sdk/models/fx-conversion-source.ts +46 -0
  255. package/src/sdk/models/fx-conversion.ts +72 -0
  256. package/src/sdk/models/index.ts +16 -0
  257. package/src/sdk/models/inline-fx-rate.ts +41 -0
  258. package/src/sdk/models/invoice-line-item-response.ts +4 -0
  259. package/src/sdk/models/invoice-response.ts +4 -0
  260. package/src/sdk/models/line-item-change.ts +11 -0
  261. package/src/sdk/models/modify-subscription-line-item.ts +8 -0
  262. package/src/sdk/models/scheduled-task-entity-type.ts +1 -0
  263. package/src/sdk/models/tax-applied-response.ts +26 -0
  264. package/src/sdk/models/tax-exemption-reason-code.ts +4 -0
  265. package/src/sdk/models/tax-jurisdiction.ts +45 -0
  266. package/src/sdk/models/tax-provider.ts +17 -0
  267. package/src/sdk/models/tax-rate-entity-type.ts +1 -0
  268. package/src/sdk/models/tax-reversal-mode.ts +19 -0
  269. package/src/sdk/models/tax-reversal.ts +43 -0
  270. package/src/sdk/models/tax-transaction-type.ts +19 -0
  271. package/src/sdk/models/tenant-billing-details.ts +1 -38
  272. package/src/sdk/models/top-up-coupon.ts +34 -0
  273. package/src/sdk/models/top-up-wallet-request.ts +8 -0
  274. package/src/sdk/models/update-customer-request.ts +19 -0
  275. package/src/sdk/models/update-subscription-line-item-request.ts +14 -0
  276. package/src/sdk/models/update-tenant-address.ts +58 -0
  277. package/src/sdk/models/update-tenant-billing-details.ts +52 -0
  278. package/src/sdk/models/update-tenant-request.ts +7 -7
  279. package/src/sdk/models/wallet-transaction-response.ts +22 -0
  280. package/src/sdk/models/wallet-tx-consumption.ts +41 -0
  281. package/src/sdk/models/wallet-tx-source-type.ts +16 -0
  282. package/src/sdk/models/webhook-dto-invoice-line-item.ts +4 -0
  283. package/src/sdk/models/webhook-dto-invoice.ts +4 -0
  284. package/src/sdk/models/webhook-dto-tax-applied.ts +17 -0
  285. package/src/sdk/models/webhook-dto-wallet-transaction.ts +19 -0
  286. package/src/types/smart-union.ts +17 -8
@@ -15,6 +15,7 @@ import {
15
15
  CustomCurrencyLineItem,
16
16
  CustomCurrencyLineItem$inboundSchema,
17
17
  } from "./custom-currency-line-item.js";
18
+ import { FxConversion, FxConversion$inboundSchema } from "./fx-conversion.js";
18
19
  import { SDKValidationError } from "./sdk-validation-error.js";
19
20
  import {
20
21
  SourceUsageItem,
@@ -45,6 +46,7 @@ export type InvoiceLineItemResponse = {
45
46
  entityId?: string | undefined;
46
47
  entityType?: string | undefined;
47
48
  environmentId?: string | undefined;
49
+ fxConversion?: FxConversion | undefined;
48
50
  id?: string | undefined;
49
51
  invoiceId?: string | undefined;
50
52
  /**
@@ -115,6 +117,7 @@ export const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType<
115
117
  entity_id: types.optional(types.string()),
116
118
  entity_type: types.optional(types.string()),
117
119
  environment_id: types.optional(types.string()),
120
+ fx_conversion: types.optional(FxConversion$inboundSchema),
118
121
  id: types.optional(types.string()),
119
122
  invoice_id: types.optional(types.string()),
120
123
  invoice_level_discount: types.optional(types.string()),
@@ -154,6 +157,7 @@ export const InvoiceLineItemResponse$inboundSchema: z.ZodMiniType<
154
157
  "entity_id": "entityId",
155
158
  "entity_type": "entityType",
156
159
  "environment_id": "environmentId",
160
+ "fx_conversion": "fxConversion",
157
161
  "invoice_id": "invoiceId",
158
162
  "invoice_level_discount": "invoiceLevelDiscount",
159
163
  "line_item_discount": "lineItemDiscount",
@@ -23,6 +23,7 @@ import {
23
23
  CustomerResponse,
24
24
  CustomerResponse$inboundSchema,
25
25
  } from "./customer-response.js";
26
+ import { FxConversion, FxConversion$inboundSchema } from "./fx-conversion.js";
26
27
  import {
27
28
  InvoiceLineItemResponse,
28
29
  InvoiceLineItemResponse$inboundSchema,
@@ -124,6 +125,7 @@ export type InvoiceResponse = {
124
125
  * finalized_at is the timestamp when this invoice was finalized and made ready for payment
125
126
  */
126
127
  finalizedAt?: Date | undefined;
128
+ fxConversion?: FxConversion | undefined;
127
129
  /**
128
130
  * id is the unique identifier for this invoice
129
131
  */
@@ -273,6 +275,7 @@ export const InvoiceResponse$inboundSchema: z.ZodMiniType<
273
275
  due_date: types.optional(types.date()),
274
276
  environment_id: types.optional(types.string()),
275
277
  finalized_at: types.optional(types.date()),
278
+ fx_conversion: types.optional(FxConversion$inboundSchema),
276
279
  id: types.optional(types.string()),
277
280
  idempotency_key: types.optional(types.string()),
278
281
  invoice_number: types.optional(types.string()),
@@ -332,6 +335,7 @@ export const InvoiceResponse$inboundSchema: z.ZodMiniType<
332
335
  "due_date": "dueDate",
333
336
  "environment_id": "environmentId",
334
337
  "finalized_at": "finalizedAt",
338
+ "fx_conversion": "fxConversion",
335
339
  "idempotency_key": "idempotencyKey",
336
340
  "invoice_number": "invoiceNumber",
337
341
  "invoice_pdf_url": "invoicePdfUrl",
@@ -4,12 +4,21 @@
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ SubscriptionCouponInput,
9
+ SubscriptionCouponInput$Outbound,
10
+ SubscriptionCouponInput$outboundSchema,
11
+ } from "./subscription-coupon-input.js";
7
12
 
8
13
  export type LineItemChange = {
9
14
  /**
10
15
  * Amount reprices the charge. Flat fee only for now.
11
16
  */
12
17
  amount?: string | undefined;
18
+ /**
19
+ * Coupons apply to the new line item created by this change.
20
+ */
21
+ coupons?: Array<SubscriptionCouponInput> | undefined;
13
22
  effectiveDate?: Date | undefined;
14
23
  id: string;
15
24
  quantity?: string | undefined;
@@ -18,6 +27,7 @@ export type LineItemChange = {
18
27
  /** @internal */
19
28
  export type LineItemChange$Outbound = {
20
29
  amount?: string | undefined;
30
+ coupons?: Array<SubscriptionCouponInput$Outbound> | undefined;
21
31
  effective_date?: string | undefined;
22
32
  id: string;
23
33
  quantity?: string | undefined;
@@ -30,6 +40,7 @@ export const LineItemChange$outboundSchema: z.ZodMiniType<
30
40
  > = z.pipe(
31
41
  z.object({
32
42
  amount: z.optional(z.string()),
43
+ coupons: z.optional(z.array(SubscriptionCouponInput$outboundSchema)),
33
44
  effectiveDate: z.optional(
34
45
  z.pipe(z.date(), z.transform(v => v.toISOString())),
35
46
  ),
@@ -4,9 +4,15 @@
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ CouponRef,
9
+ CouponRef$Outbound,
10
+ CouponRef$outboundSchema,
11
+ } from "./coupon-ref.js";
7
12
 
8
13
  export type ModifySubscriptionLineItem = {
9
14
  amount?: string | undefined;
15
+ coupons?: Array<CouponRef> | undefined;
10
16
  effectiveDate?: Date | undefined;
11
17
  lineItemId?: string | undefined;
12
18
  quantity?: string | undefined;
@@ -15,6 +21,7 @@ export type ModifySubscriptionLineItem = {
15
21
  /** @internal */
16
22
  export type ModifySubscriptionLineItem$Outbound = {
17
23
  amount?: string | undefined;
24
+ coupons?: Array<CouponRef$Outbound> | undefined;
18
25
  effective_date?: string | undefined;
19
26
  line_item_id?: string | undefined;
20
27
  quantity?: string | undefined;
@@ -27,6 +34,7 @@ export const ModifySubscriptionLineItem$outboundSchema: z.ZodMiniType<
27
34
  > = z.pipe(
28
35
  z.object({
29
36
  amount: z.optional(z.string()),
37
+ coupons: z.optional(z.array(CouponRef$outboundSchema)),
30
38
  effectiveDate: z.optional(
31
39
  z.pipe(z.date(), z.transform(v => v.toISOString())),
32
40
  ),
@@ -10,6 +10,7 @@ export const ScheduledTaskEntityType = {
10
10
  Events: "events",
11
11
  Invoice: "invoice",
12
12
  CreditTopups: "credit_topups",
13
+ WalletDebits: "wallet_debits",
13
14
  CreditUsage: "credit_usage",
14
15
  UsageAnalytics: "usage_analytics",
15
16
  RevenueFacts: "revenue_facts",
@@ -7,9 +7,14 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as types from "../../types/primitives.js";
10
+ import {
11
+ ExternalTaxDetails,
12
+ ExternalTaxDetails$inboundSchema,
13
+ } from "./external-tax-details.js";
10
14
  import { SDKValidationError } from "./sdk-validation-error.js";
11
15
  import { Status, Status$inboundSchema } from "./status.js";
12
16
  import { TaxBehavior, TaxBehavior$inboundSchema } from "./tax-behavior.js";
17
+ import { TaxProvider, TaxProvider$inboundSchema } from "./tax-provider.js";
13
18
  import {
14
19
  TaxRateEntityType,
15
20
  TaxRateEntityType$inboundSchema,
@@ -18,6 +23,10 @@ import {
18
23
  TaxRateResponse,
19
24
  TaxRateResponse$inboundSchema,
20
25
  } from "./tax-rate-response.js";
26
+ import {
27
+ TaxTransactionType,
28
+ TaxTransactionType$inboundSchema,
29
+ } from "./tax-transaction-type.js";
21
30
 
22
31
  export type TaxAppliedResponse = {
23
32
  appliedAt?: Date | undefined;
@@ -27,15 +36,25 @@ export type TaxAppliedResponse = {
27
36
  entityId?: string | undefined;
28
37
  entityType?: TaxRateEntityType | undefined;
29
38
  environmentId?: string | undefined;
39
+ externalTaxDetails?: ExternalTaxDetails | undefined;
30
40
  id?: string | undefined;
31
41
  idempotencyKey?: string | undefined;
32
42
  metadata?: { [k: string]: string } | undefined;
43
+ provider?: TaxProvider | undefined;
33
44
  status?: Status | undefined;
34
45
  taxAmount?: string | undefined;
35
46
  taxAssociationId?: string | undefined;
36
47
  taxBehavior?: TaxBehavior | undefined;
37
48
  taxRate?: TaxRateResponse | undefined;
49
+ /**
50
+ * Null when an external engine calculated the tax: there is no Flexprice rate to point at.
51
+ */
38
52
  taxRateId?: string | undefined;
53
+ /**
54
+ * TaxTransactionID is the provider transaction recording the filed tax, stamped at commit.
55
+ */
56
+ taxTransactionId?: string | undefined;
57
+ taxTransactionType?: TaxTransactionType | undefined;
39
58
  taxableAmount?: string | undefined;
40
59
  tenantId?: string | undefined;
41
60
  updatedAt?: Date | undefined;
@@ -55,15 +74,19 @@ export const TaxAppliedResponse$inboundSchema: z.ZodMiniType<
55
74
  entity_id: types.optional(types.string()),
56
75
  entity_type: types.optional(TaxRateEntityType$inboundSchema),
57
76
  environment_id: types.optional(types.string()),
77
+ external_tax_details: types.optional(ExternalTaxDetails$inboundSchema),
58
78
  id: types.optional(types.string()),
59
79
  idempotency_key: types.optional(types.string()),
60
80
  metadata: types.optional(z.record(z.string(), types.string())),
81
+ provider: types.optional(TaxProvider$inboundSchema),
61
82
  status: types.optional(Status$inboundSchema),
62
83
  tax_amount: types.optional(types.string()),
63
84
  tax_association_id: types.optional(types.string()),
64
85
  tax_behavior: types.optional(TaxBehavior$inboundSchema),
65
86
  tax_rate: types.optional(TaxRateResponse$inboundSchema),
66
87
  tax_rate_id: types.optional(types.string()),
88
+ tax_transaction_id: types.optional(types.string()),
89
+ tax_transaction_type: types.optional(TaxTransactionType$inboundSchema),
67
90
  taxable_amount: types.optional(types.string()),
68
91
  tenant_id: types.optional(types.string()),
69
92
  updated_at: types.optional(types.date()),
@@ -77,12 +100,15 @@ export const TaxAppliedResponse$inboundSchema: z.ZodMiniType<
77
100
  "entity_id": "entityId",
78
101
  "entity_type": "entityType",
79
102
  "environment_id": "environmentId",
103
+ "external_tax_details": "externalTaxDetails",
80
104
  "idempotency_key": "idempotencyKey",
81
105
  "tax_amount": "taxAmount",
82
106
  "tax_association_id": "taxAssociationId",
83
107
  "tax_behavior": "taxBehavior",
84
108
  "tax_rate": "taxRate",
85
109
  "tax_rate_id": "taxRateId",
110
+ "tax_transaction_id": "taxTransactionId",
111
+ "tax_transaction_type": "taxTransactionType",
86
112
  "taxable_amount": "taxableAmount",
87
113
  "tenant_id": "tenantId",
88
114
  "updated_at": "updatedAt",
@@ -9,6 +9,10 @@ import { OpenEnum } from "../../types/enums.js";
9
9
  export const TaxExemptionReasonCode = {
10
10
  CustomerExempt: "customer_exempt",
11
11
  NoTaxConfigured: "no_tax_configured",
12
+ ReverseCharge: "reverse_charge",
13
+ NotCollecting: "not_collecting",
14
+ NotSubjectToTax: "not_subject_to_tax",
15
+ NotSupported: "not_supported",
12
16
  } as const;
13
17
  export type TaxExemptionReasonCode = OpenEnum<typeof TaxExemptionReasonCode>;
14
18
 
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "./sdk-validation-error.js";
11
+
12
+ export type TaxJurisdiction = {
13
+ country?: string | undefined;
14
+ displayName?: string | undefined;
15
+ level?: string | undefined;
16
+ state?: string | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const TaxJurisdiction$inboundSchema: z.ZodMiniType<
21
+ TaxJurisdiction,
22
+ unknown
23
+ > = z.pipe(
24
+ z.object({
25
+ country: types.optional(types.string()),
26
+ display_name: types.optional(types.string()),
27
+ level: types.optional(types.string()),
28
+ state: types.optional(types.string()),
29
+ }),
30
+ z.transform((v) => {
31
+ return remap$(v, {
32
+ "display_name": "displayName",
33
+ });
34
+ }),
35
+ );
36
+
37
+ export function taxJurisdictionFromJSON(
38
+ jsonString: string,
39
+ ): SafeParseResult<TaxJurisdiction, SDKValidationError> {
40
+ return safeParse(
41
+ jsonString,
42
+ (x) => TaxJurisdiction$inboundSchema.parse(JSON.parse(x)),
43
+ `Failed to parse 'TaxJurisdiction' from JSON`,
44
+ );
45
+ }
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import { OpenEnum } from "../../types/enums.js";
8
+
9
+ export const TaxProvider = {
10
+ Flexprice: "flexprice",
11
+ Stripe: "stripe",
12
+ } as const;
13
+ export type TaxProvider = OpenEnum<typeof TaxProvider>;
14
+
15
+ /** @internal */
16
+ export const TaxProvider$inboundSchema: z.ZodMiniType<TaxProvider, unknown> =
17
+ openEnums.inboundSchema(TaxProvider);
@@ -11,6 +11,7 @@ export const TaxRateEntityType = {
11
11
  Subscription: "subscription",
12
12
  Invoice: "invoice",
13
13
  Tenant: "tenant",
14
+ CreditNote: "credit_note",
14
15
  } as const;
15
16
  export type TaxRateEntityType = OpenEnum<typeof TaxRateEntityType>;
16
17
 
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import { OpenEnum } from "../../types/enums.js";
8
+
9
+ export const TaxReversalMode = {
10
+ Full: "full",
11
+ Partial: "partial",
12
+ } as const;
13
+ export type TaxReversalMode = OpenEnum<typeof TaxReversalMode>;
14
+
15
+ /** @internal */
16
+ export const TaxReversalMode$inboundSchema: z.ZodMiniType<
17
+ TaxReversalMode,
18
+ unknown
19
+ > = openEnums.inboundSchema(TaxReversalMode);
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "./sdk-validation-error.js";
11
+ import {
12
+ TaxReversalMode,
13
+ TaxReversalMode$inboundSchema,
14
+ } from "./tax-reversal-mode.js";
15
+
16
+ export type TaxReversal = {
17
+ mode?: TaxReversalMode | undefined;
18
+ originalTransaction?: string | undefined;
19
+ };
20
+
21
+ /** @internal */
22
+ export const TaxReversal$inboundSchema: z.ZodMiniType<TaxReversal, unknown> = z
23
+ .pipe(
24
+ z.object({
25
+ mode: types.optional(TaxReversalMode$inboundSchema),
26
+ original_transaction: types.optional(types.string()),
27
+ }),
28
+ z.transform((v) => {
29
+ return remap$(v, {
30
+ "original_transaction": "originalTransaction",
31
+ });
32
+ }),
33
+ );
34
+
35
+ export function taxReversalFromJSON(
36
+ jsonString: string,
37
+ ): SafeParseResult<TaxReversal, SDKValidationError> {
38
+ return safeParse(
39
+ jsonString,
40
+ (x) => TaxReversal$inboundSchema.parse(JSON.parse(x)),
41
+ `Failed to parse 'TaxReversal' from JSON`,
42
+ );
43
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import { OpenEnum } from "../../types/enums.js";
8
+
9
+ export const TaxTransactionType = {
10
+ Filing: "filing",
11
+ Reversal: "reversal",
12
+ } as const;
13
+ export type TaxTransactionType = OpenEnum<typeof TaxTransactionType>;
14
+
15
+ /** @internal */
16
+ export const TaxTransactionType$inboundSchema: z.ZodMiniType<
17
+ TaxTransactionType,
18
+ unknown
19
+ > = openEnums.inboundSchema(TaxTransactionType);
@@ -7,12 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as types from "../../types/primitives.js";
10
- import {
11
- Address,
12
- Address$inboundSchema,
13
- Address$Outbound,
14
- Address$outboundSchema,
15
- } from "./address.js";
10
+ import { Address, Address$inboundSchema } from "./address.js";
16
11
  import { SDKValidationError } from "./sdk-validation-error.js";
17
12
 
18
13
  export type TenantBillingDetails = {
@@ -39,39 +34,7 @@ export const TenantBillingDetails$inboundSchema: z.ZodMiniType<
39
34
  });
40
35
  }),
41
36
  );
42
- /** @internal */
43
- export type TenantBillingDetails$Outbound = {
44
- address?: Address$Outbound | undefined;
45
- email?: string | undefined;
46
- help_email?: string | undefined;
47
- phone?: string | undefined;
48
- };
49
-
50
- /** @internal */
51
- export const TenantBillingDetails$outboundSchema: z.ZodMiniType<
52
- TenantBillingDetails$Outbound,
53
- TenantBillingDetails
54
- > = z.pipe(
55
- z.object({
56
- address: z.optional(Address$outboundSchema),
57
- email: z.optional(z.string()),
58
- helpEmail: z.optional(z.string()),
59
- phone: z.optional(z.string()),
60
- }),
61
- z.transform((v) => {
62
- return remap$(v, {
63
- helpEmail: "help_email",
64
- });
65
- }),
66
- );
67
37
 
68
- export function tenantBillingDetailsToJSON(
69
- tenantBillingDetails: TenantBillingDetails,
70
- ): string {
71
- return JSON.stringify(
72
- TenantBillingDetails$outboundSchema.parse(tenantBillingDetails),
73
- );
74
- }
75
38
  export function tenantBillingDetailsFromJSON(
76
39
  jsonString: string,
77
40
  ): SafeParseResult<TenantBillingDetails, SDKValidationError> {
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type TopUpCoupon = {
9
+ couponCode: string;
10
+ };
11
+
12
+ /** @internal */
13
+ export type TopUpCoupon$Outbound = {
14
+ coupon_code: string;
15
+ };
16
+
17
+ /** @internal */
18
+ export const TopUpCoupon$outboundSchema: z.ZodMiniType<
19
+ TopUpCoupon$Outbound,
20
+ TopUpCoupon
21
+ > = z.pipe(
22
+ z.object({
23
+ couponCode: z.string(),
24
+ }),
25
+ z.transform((v) => {
26
+ return remap$(v, {
27
+ couponCode: "coupon_code",
28
+ });
29
+ }),
30
+ );
31
+
32
+ export function topUpCouponToJSON(topUpCoupon: TopUpCoupon): string {
33
+ return JSON.stringify(TopUpCoupon$outboundSchema.parse(topUpCoupon));
34
+ }
@@ -9,6 +9,11 @@ import {
9
9
  CheckoutParams$Outbound,
10
10
  CheckoutParams$outboundSchema,
11
11
  } from "./checkout-params.js";
12
+ import {
13
+ TopUpCoupon,
14
+ TopUpCoupon$Outbound,
15
+ TopUpCoupon$outboundSchema,
16
+ } from "./top-up-coupon.js";
12
17
  import {
13
18
  TransactionReason,
14
19
  TransactionReason$outboundSchema,
@@ -44,6 +49,7 @@ export type TopUpWalletRequest = {
44
49
  */
45
50
  bonusCreditsToAdd?: string | undefined;
46
51
  checkout?: CheckoutParams | undefined;
52
+ coupons?: Array<TopUpCoupon> | undefined;
47
53
  /**
48
54
  * credits_to_add is the number of credits to add to the wallet
49
55
  */
@@ -82,6 +88,7 @@ export type TopUpWalletRequest$Outbound = {
82
88
  bonus_credits_expiry_date_utc?: string | undefined;
83
89
  bonus_credits_to_add?: string | undefined;
84
90
  checkout?: CheckoutParams$Outbound | undefined;
91
+ coupons?: Array<TopUpCoupon$Outbound> | undefined;
85
92
  credits_to_add?: string | undefined;
86
93
  description?: string | undefined;
87
94
  expiry_date_utc?: string | undefined;
@@ -102,6 +109,7 @@ export const TopUpWalletRequest$outboundSchema: z.ZodMiniType<
102
109
  bonusCreditsExpiryDateUtc: z.optional(z.string()),
103
110
  bonusCreditsToAdd: z.optional(z.string()),
104
111
  checkout: z.optional(CheckoutParams$outboundSchema),
112
+ coupons: z.optional(z.array(TopUpCoupon$outboundSchema)),
105
113
  creditsToAdd: z.optional(z.string()),
106
114
  description: z.optional(z.string()),
107
115
  expiryDateUtc: z.optional(z.string()),
@@ -9,6 +9,11 @@ import {
9
9
  CreateEntityIntegrationMappingRequest$Outbound,
10
10
  CreateEntityIntegrationMappingRequest$outboundSchema,
11
11
  } from "./create-entity-integration-mapping-request.js";
12
+ import {
13
+ CustomerContactPerson,
14
+ CustomerContactPerson$Outbound,
15
+ CustomerContactPerson$outboundSchema,
16
+ } from "./customer-contact-person.js";
12
17
  import { TaxTreatment, TaxTreatment$outboundSchema } from "./tax-treatment.js";
13
18
 
14
19
  /**
@@ -39,10 +44,18 @@ export type UpdateCustomerRequest = {
39
44
  * address_state is the updated state, province, or region name with maximum 100 characters
40
45
  */
41
46
  addressState?: string | undefined;
47
+ /**
48
+ * billing_currency updates the invoicing currency; send "" to clear it back to the charge currency
49
+ */
50
+ billingCurrency?: string | undefined;
42
51
  /**
43
52
  * contact is the updated contact number for the customer (e.g. phone)
44
53
  */
45
54
  contact?: string | undefined;
55
+ /**
56
+ * contact_persons replaces the customer's contact persons when provided; at most one may be primary
57
+ */
58
+ contactPersons: Array<CustomerContactPerson>;
46
59
  /**
47
60
  * email is the updated email address and must be a valid email format if provided
48
61
  */
@@ -80,7 +93,9 @@ export type UpdateCustomerRequest$Outbound = {
80
93
  address_line2?: string | undefined;
81
94
  address_postal_code?: string | undefined;
82
95
  address_state?: string | undefined;
96
+ billing_currency?: string | undefined;
83
97
  contact?: string | undefined;
98
+ contact_persons: Array<CustomerContactPerson$Outbound>;
84
99
  email?: string | undefined;
85
100
  external_id?: string | undefined;
86
101
  integration_entity_mapping?:
@@ -104,7 +119,9 @@ export const UpdateCustomerRequest$outboundSchema: z.ZodMiniType<
104
119
  addressLine2: z.optional(z.string()),
105
120
  addressPostalCode: z.optional(z.string()),
106
121
  addressState: z.optional(z.string()),
122
+ billingCurrency: z.optional(z.string()),
107
123
  contact: z.optional(z.string()),
124
+ contactPersons: z.array(CustomerContactPerson$outboundSchema),
108
125
  email: z.optional(z.string()),
109
126
  externalId: z.optional(z.string()),
110
127
  integrationEntityMapping: z.optional(
@@ -123,6 +140,8 @@ export const UpdateCustomerRequest$outboundSchema: z.ZodMiniType<
123
140
  addressLine2: "address_line2",
124
141
  addressPostalCode: "address_postal_code",
125
142
  addressState: "address_state",
143
+ billingCurrency: "billing_currency",
144
+ contactPersons: "contact_persons",
126
145
  externalId: "external_id",
127
146
  integrationEntityMapping: "integration_entity_mapping",
128
147
  taxTreatment: "tax_treatment",
@@ -60,6 +60,14 @@ export type UpdateSubscriptionLineItemRequest = {
60
60
  * Metadata for the new line item
61
61
  */
62
62
  metadata?: { [k: string]: string } | undefined;
63
+ /**
64
+ * PriceUnitAmount is the amount for a CUSTOM price unit price (FLAT_FEE/PACKAGE billing models)
65
+ */
66
+ priceUnitAmount?: string | undefined;
67
+ /**
68
+ * PriceUnitTiers are the tiers for a CUSTOM price unit price (TIERED billing model)
69
+ */
70
+ priceUnitTiers?: Array<CreatePriceTier> | undefined;
63
71
  tierMode?: BillingTier | undefined;
64
72
  /**
65
73
  * Tiers determines the pricing tiers for this line item
@@ -83,6 +91,8 @@ export type UpdateSubscriptionLineItemRequest$Outbound = {
83
91
  commitment_windowed?: boolean | undefined;
84
92
  effective_from?: string | undefined;
85
93
  metadata?: { [k: string]: string } | undefined;
94
+ price_unit_amount?: string | undefined;
95
+ price_unit_tiers?: Array<CreatePriceTier$Outbound> | undefined;
86
96
  tier_mode?: string | undefined;
87
97
  tiers?: Array<CreatePriceTier$Outbound> | undefined;
88
98
  transform_quantity?: PriceTransformQuantity$Outbound | undefined;
@@ -109,6 +119,8 @@ export const UpdateSubscriptionLineItemRequest$outboundSchema: z.ZodMiniType<
109
119
  commitmentWindowed: z.optional(z.boolean()),
110
120
  effectiveFrom: z.optional(z.string()),
111
121
  metadata: z.optional(z.record(z.string(), z.string())),
122
+ priceUnitAmount: z.optional(z.string()),
123
+ priceUnitTiers: z.optional(z.array(CreatePriceTier$outboundSchema)),
112
124
  tierMode: z.optional(BillingTier$outboundSchema),
113
125
  tiers: z.optional(z.array(CreatePriceTier$outboundSchema)),
114
126
  transformQuantity: z.optional(PriceTransformQuantity$outboundSchema),
@@ -126,6 +138,8 @@ export const UpdateSubscriptionLineItemRequest$outboundSchema: z.ZodMiniType<
126
138
  commitmentType: "commitment_type",
127
139
  commitmentWindowed: "commitment_windowed",
128
140
  effectiveFrom: "effective_from",
141
+ priceUnitAmount: "price_unit_amount",
142
+ priceUnitTiers: "price_unit_tiers",
129
143
  tierMode: "tier_mode",
130
144
  transformQuantity: "transform_quantity",
131
145
  });