orb-billing 0.11.0 → 1.0.0

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 (746) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/orb/internal/type/base_model.rb +5 -5
  5. data/lib/orb/internal/type/union.rb +3 -8
  6. data/lib/orb/internal/util.rb +8 -9
  7. data/lib/orb/models/accounting_provider_config.rb +21 -0
  8. data/lib/orb/models/address.rb +45 -0
  9. data/lib/orb/models/address_input.rb +45 -0
  10. data/lib/orb/models/adjustment_interval.rb +66 -0
  11. data/lib/orb/models/aggregated_cost.rb +45 -0
  12. data/lib/orb/models/alert.rb +9 -60
  13. data/lib/orb/models/alert_create_for_customer_params.rb +3 -24
  14. data/lib/orb/models/alert_create_for_external_customer_params.rb +3 -24
  15. data/lib/orb/models/alert_create_for_subscription_params.rb +3 -23
  16. data/lib/orb/models/alert_update_params.rb +3 -22
  17. data/lib/orb/models/allocation.rb +27 -0
  18. data/lib/orb/models/amount_discount.rb +9 -1
  19. data/lib/orb/models/amount_discount_interval.rb +65 -0
  20. data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +186 -17772
  21. data/lib/orb/models/beta_create_plan_version_params.rb +183 -17605
  22. data/lib/orb/models/billable_metric_tiny.rb +15 -0
  23. data/lib/orb/models/billing_cycle_anchor_configuration.rb +41 -0
  24. data/lib/orb/models/billing_cycle_configuration.rb +32 -0
  25. data/lib/orb/models/bps_config.rb +24 -0
  26. data/lib/orb/models/bps_tier.rb +40 -0
  27. data/lib/orb/models/bulk_bps_config.rb +20 -0
  28. data/lib/orb/models/bulk_bps_tier.rb +32 -0
  29. data/lib/orb/models/bulk_config.rb +16 -0
  30. data/lib/orb/models/bulk_tier.rb +24 -0
  31. data/lib/orb/models/changed_subscription_resources.rb +40 -0
  32. data/lib/orb/models/conversion_rate_tier.rb +32 -0
  33. data/lib/orb/models/conversion_rate_tiered_config.rb +16 -0
  34. data/lib/orb/models/conversion_rate_unit_config.rb +16 -0
  35. data/lib/orb/models/coupon_redemption.rb +27 -0
  36. data/lib/orb/models/credit_note.rb +6 -51
  37. data/lib/orb/models/credit_note_tiny.rb +16 -0
  38. data/lib/orb/models/custom_expiration.rb +32 -0
  39. data/lib/orb/models/customer.rb +15 -426
  40. data/lib/orb/models/customer_create_params.rb +24 -527
  41. data/lib/orb/models/customer_hierarchy_config.rb +29 -0
  42. data/lib/orb/models/customer_minified.rb +21 -0
  43. data/lib/orb/models/customer_tax_id.rb +300 -0
  44. data/lib/orb/models/customer_update_by_external_id_params.rb +24 -529
  45. data/lib/orb/models/customer_update_params.rb +24 -527
  46. data/lib/orb/models/customers/balance_transaction_create_response.rb +6 -32
  47. data/lib/orb/models/customers/balance_transaction_list_response.rb +6 -32
  48. data/lib/orb/models/customers/cost_list_by_external_id_response.rb +3 -88
  49. data/lib/orb/models/customers/cost_list_response.rb +3 -87
  50. data/lib/orb/models/customers/credits/affected_block.rb +31 -0
  51. data/lib/orb/models/customers/credits/amendment_ledger_entry.rb +131 -0
  52. data/lib/orb/models/customers/credits/credit_block_expiry_ledger_entry.rb +137 -0
  53. data/lib/orb/models/customers/credits/decrement_ledger_entry.rb +152 -0
  54. data/lib/orb/models/customers/credits/expiration_change_ledger_entry.rb +141 -0
  55. data/lib/orb/models/customers/credits/increment_ledger_entry.rb +139 -0
  56. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +8 -1177
  57. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +8 -1169
  58. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +8 -1173
  59. data/lib/orb/models/customers/credits/ledger_list_response.rb +8 -1161
  60. data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +3 -52
  61. data/lib/orb/models/customers/credits/top_up_create_response.rb +3 -51
  62. data/lib/orb/models/customers/credits/top_up_invoice_settings.rb +53 -0
  63. data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +3 -52
  64. data/lib/orb/models/customers/credits/top_up_list_response.rb +3 -51
  65. data/lib/orb/models/customers/credits/void_initiated_ledger_entry.rb +152 -0
  66. data/lib/orb/models/customers/credits/void_ledger_entry.rb +145 -0
  67. data/lib/orb/models/dimensional_price_configuration.rb +21 -0
  68. data/lib/orb/models/discount_override.rb +56 -0
  69. data/lib/orb/models/fixed_fee_quantity_schedule_entry.rb +33 -0
  70. data/lib/orb/models/fixed_fee_quantity_transition.rb +27 -0
  71. data/lib/orb/models/invoice.rb +56 -1777
  72. data/lib/orb/models/invoice_create_params.rb +3 -15
  73. data/lib/orb/models/invoice_fetch_upcoming_response.rb +56 -1794
  74. data/lib/orb/models/invoice_line_item_create_response.rb +25 -1142
  75. data/lib/orb/models/invoice_tiny.rb +16 -0
  76. data/lib/orb/models/item_slim.rb +21 -0
  77. data/lib/orb/models/matrix_config.rb +32 -0
  78. data/lib/orb/models/matrix_sub_line_item.rb +61 -0
  79. data/lib/orb/models/matrix_value.rb +29 -0
  80. data/lib/orb/models/matrix_with_allocation_config.rb +40 -0
  81. data/lib/orb/models/maximum.rb +38 -0
  82. data/lib/orb/models/maximum_interval.rb +52 -0
  83. data/lib/orb/models/minimum.rb +38 -0
  84. data/lib/orb/models/minimum_interval.rb +52 -0
  85. data/lib/orb/models/monetary_amount_discount_adjustment.rb +87 -0
  86. data/lib/orb/models/monetary_maximum_adjustment.rb +87 -0
  87. data/lib/orb/models/monetary_minimum_adjustment.rb +95 -0
  88. data/lib/orb/models/monetary_percentage_discount_adjustment.rb +87 -0
  89. data/lib/orb/models/monetary_usage_discount_adjustment.rb +87 -0
  90. data/lib/orb/models/mutated_subscription.rb +302 -0
  91. data/lib/orb/models/new_accounting_sync_configuration.rb +23 -0
  92. data/lib/orb/models/new_allocation_price.rb +70 -0
  93. data/lib/orb/models/new_amount_discount.rb +120 -0
  94. data/lib/orb/models/new_avalara_tax_configuration.rb +37 -0
  95. data/lib/orb/models/new_billing_cycle_configuration.rb +37 -0
  96. data/lib/orb/models/new_dimensional_price_configuration.rb +36 -0
  97. data/lib/orb/models/new_floating_bps_price.rb +199 -0
  98. data/lib/orb/models/new_floating_bulk_bps_price.rb +197 -0
  99. data/lib/orb/models/new_floating_bulk_price.rb +197 -0
  100. data/lib/orb/models/new_floating_bulk_with_proration_price.rb +197 -0
  101. data/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +197 -0
  102. data/lib/orb/models/new_floating_grouped_allocation_price.rb +197 -0
  103. data/lib/orb/models/new_floating_grouped_tiered_package_price.rb +197 -0
  104. data/lib/orb/models/new_floating_grouped_tiered_price.rb +197 -0
  105. data/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +197 -0
  106. data/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +198 -0
  107. data/lib/orb/models/new_floating_matrix_price.rb +197 -0
  108. data/lib/orb/models/new_floating_matrix_with_allocation_price.rb +197 -0
  109. data/lib/orb/models/new_floating_matrix_with_display_name_price.rb +197 -0
  110. data/lib/orb/models/new_floating_max_group_tiered_package_price.rb +197 -0
  111. data/lib/orb/models/new_floating_package_price.rb +197 -0
  112. data/lib/orb/models/new_floating_package_with_allocation_price.rb +197 -0
  113. data/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +198 -0
  114. data/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +198 -0
  115. data/lib/orb/models/new_floating_threshold_total_amount_price.rb +197 -0
  116. data/lib/orb/models/new_floating_tiered_bps_price.rb +197 -0
  117. data/lib/orb/models/new_floating_tiered_package_price.rb +197 -0
  118. data/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +197 -0
  119. data/lib/orb/models/new_floating_tiered_price.rb +197 -0
  120. data/lib/orb/models/new_floating_tiered_with_minimum_price.rb +197 -0
  121. data/lib/orb/models/new_floating_tiered_with_proration_price.rb +197 -0
  122. data/lib/orb/models/new_floating_unit_price.rb +197 -0
  123. data/lib/orb/models/new_floating_unit_with_percent_price.rb +197 -0
  124. data/lib/orb/models/new_floating_unit_with_proration_price.rb +197 -0
  125. data/lib/orb/models/new_maximum.rb +120 -0
  126. data/lib/orb/models/new_minimum.rb +128 -0
  127. data/lib/orb/models/new_percentage_discount.rb +120 -0
  128. data/lib/orb/models/new_plan_bps_price.rb +196 -0
  129. data/lib/orb/models/new_plan_bulk_bps_price.rb +200 -0
  130. data/lib/orb/models/new_plan_bulk_price.rb +196 -0
  131. data/lib/orb/models/new_plan_bulk_with_proration_price.rb +198 -0
  132. data/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +198 -0
  133. data/lib/orb/models/new_plan_grouped_allocation_price.rb +198 -0
  134. data/lib/orb/models/new_plan_grouped_tiered_package_price.rb +198 -0
  135. data/lib/orb/models/new_plan_grouped_tiered_price.rb +198 -0
  136. data/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +198 -0
  137. data/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +199 -0
  138. data/lib/orb/models/new_plan_matrix_price.rb +200 -0
  139. data/lib/orb/models/new_plan_matrix_with_allocation_price.rb +198 -0
  140. data/lib/orb/models/new_plan_matrix_with_display_name_price.rb +198 -0
  141. data/lib/orb/models/new_plan_max_group_tiered_package_price.rb +198 -0
  142. data/lib/orb/models/new_plan_package_price.rb +200 -0
  143. data/lib/orb/models/new_plan_package_with_allocation_price.rb +198 -0
  144. data/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +199 -0
  145. data/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +199 -0
  146. data/lib/orb/models/new_plan_threshold_total_amount_price.rb +198 -0
  147. data/lib/orb/models/new_plan_tier_with_proration_price.rb +198 -0
  148. data/lib/orb/models/new_plan_tiered_bps_price.rb +198 -0
  149. data/lib/orb/models/new_plan_tiered_package_price.rb +198 -0
  150. data/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +198 -0
  151. data/lib/orb/models/new_plan_tiered_price.rb +200 -0
  152. data/lib/orb/models/new_plan_tiered_with_minimum_price.rb +198 -0
  153. data/lib/orb/models/new_plan_unit_price.rb +196 -0
  154. data/lib/orb/models/new_plan_unit_with_percent_price.rb +198 -0
  155. data/lib/orb/models/new_plan_unit_with_proration_price.rb +198 -0
  156. data/lib/orb/models/new_reporting_configuration.rb +15 -0
  157. data/lib/orb/models/new_sphere_configuration.rb +31 -0
  158. data/lib/orb/models/new_subscription_bps_price.rb +207 -0
  159. data/lib/orb/models/new_subscription_bulk_bps_price.rb +207 -0
  160. data/lib/orb/models/new_subscription_bulk_price.rb +207 -0
  161. data/lib/orb/models/new_subscription_bulk_with_proration_price.rb +207 -0
  162. data/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +207 -0
  163. data/lib/orb/models/new_subscription_grouped_allocation_price.rb +207 -0
  164. data/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +207 -0
  165. data/lib/orb/models/new_subscription_grouped_tiered_price.rb +207 -0
  166. data/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +207 -0
  167. data/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +208 -0
  168. data/lib/orb/models/new_subscription_matrix_price.rb +207 -0
  169. data/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +207 -0
  170. data/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +207 -0
  171. data/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +207 -0
  172. data/lib/orb/models/new_subscription_package_price.rb +207 -0
  173. data/lib/orb/models/new_subscription_package_with_allocation_price.rb +207 -0
  174. data/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +209 -0
  175. data/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +209 -0
  176. data/lib/orb/models/new_subscription_threshold_total_amount_price.rb +207 -0
  177. data/lib/orb/models/new_subscription_tier_with_proration_price.rb +207 -0
  178. data/lib/orb/models/new_subscription_tiered_bps_price.rb +207 -0
  179. data/lib/orb/models/new_subscription_tiered_package_price.rb +207 -0
  180. data/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +207 -0
  181. data/lib/orb/models/new_subscription_tiered_price.rb +207 -0
  182. data/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +207 -0
  183. data/lib/orb/models/new_subscription_unit_price.rb +207 -0
  184. data/lib/orb/models/new_subscription_unit_with_percent_price.rb +207 -0
  185. data/lib/orb/models/new_subscription_unit_with_proration_price.rb +207 -0
  186. data/lib/orb/models/new_tax_jar_configuration.rb +31 -0
  187. data/lib/orb/models/new_usage_discount.rb +120 -0
  188. data/lib/orb/models/other_sub_line_item.rb +54 -0
  189. data/lib/orb/models/package_config.rb +28 -0
  190. data/lib/orb/models/per_price_cost.rb +48 -0
  191. data/lib/orb/models/percentage_discount.rb +9 -1
  192. data/lib/orb/models/percentage_discount_interval.rb +69 -0
  193. data/lib/orb/models/plan.rb +22 -1040
  194. data/lib/orb/models/plan_create_params.rb +31 -8145
  195. data/lib/orb/models/plan_phase_amount_discount_adjustment.rb +87 -0
  196. data/lib/orb/models/plan_phase_maximum_adjustment.rb +87 -0
  197. data/lib/orb/models/plan_phase_minimum_adjustment.rb +95 -0
  198. data/lib/orb/models/plan_phase_percentage_discount_adjustment.rb +87 -0
  199. data/lib/orb/models/plan_phase_usage_discount_adjustment.rb +87 -0
  200. data/lib/orb/models/plan_version.rb +10 -672
  201. data/lib/orb/models/price.rb +1225 -10817
  202. data/lib/orb/models/price_create_params.rb +53 -472
  203. data/lib/orb/models/price_evaluate_multiple_params.rb +32 -8479
  204. data/lib/orb/models/price_evaluate_preview_events_params.rb +236 -0
  205. data/lib/orb/models/price_evaluate_preview_events_response.rb +51 -0
  206. data/lib/orb/models/price_interval.rb +113 -0
  207. data/lib/orb/models/sub_line_item_grouping.rb +23 -0
  208. data/lib/orb/models/sub_line_item_matrix_config.rb +16 -0
  209. data/lib/orb/models/subscription.rb +33 -1581
  210. data/lib/orb/models/subscription_change_apply_response.rb +3 -1904
  211. data/lib/orb/models/subscription_change_cancel_response.rb +3 -1905
  212. data/lib/orb/models/subscription_change_minified.rb +15 -0
  213. data/lib/orb/models/subscription_change_retrieve_response.rb +3 -1906
  214. data/lib/orb/models/subscription_create_params.rb +232 -18278
  215. data/lib/orb/models/subscription_fetch_costs_response.rb +3 -87
  216. data/lib/orb/models/subscription_minified.rb +15 -0
  217. data/lib/orb/models/subscription_price_intervals_params.rb +86 -8758
  218. data/lib/orb/models/subscription_redeem_coupon_params.rb +17 -9
  219. data/lib/orb/models/subscription_schedule_plan_change_params.rb +238 -18372
  220. data/lib/orb/models/subscription_trial_info.rb +15 -0
  221. data/lib/orb/models/tax_amount.rb +32 -0
  222. data/lib/orb/models/threshold.rb +24 -0
  223. data/lib/orb/models/tier.rb +32 -0
  224. data/lib/orb/models/tier_config.rb +27 -0
  225. data/lib/orb/models/tier_sub_line_item.rb +61 -0
  226. data/lib/orb/models/tiered_bps_config.rb +20 -0
  227. data/lib/orb/models/tiered_config.rb +16 -0
  228. data/lib/orb/models/tiered_conversion_rate_config.rb +31 -0
  229. data/lib/orb/models/transform_price_filter.rb +61 -0
  230. data/lib/orb/models/trial_discount.rb +9 -1
  231. data/lib/orb/models/unit_config.rb +16 -0
  232. data/lib/orb/models/unit_conversion_rate_config.rb +31 -0
  233. data/lib/orb/models/usage_discount.rb +9 -1
  234. data/lib/orb/models/usage_discount_interval.rb +69 -0
  235. data/lib/orb/models.rb +348 -0
  236. data/lib/orb/resources/alerts.rb +4 -4
  237. data/lib/orb/resources/customers/credits/ledger.rb +4 -4
  238. data/lib/orb/resources/customers.rb +21 -21
  239. data/lib/orb/resources/plans.rb +1 -1
  240. data/lib/orb/resources/prices/external_price_id.rb +2 -2
  241. data/lib/orb/resources/prices.rb +82 -34
  242. data/lib/orb/resources/subscriptions.rb +29 -27
  243. data/lib/orb/version.rb +1 -1
  244. data/lib/orb.rb +181 -11
  245. data/rbi/orb/internal/util.rbi +2 -0
  246. data/rbi/orb/models/accounting_provider_config.rbi +34 -0
  247. data/rbi/orb/models/address.rbi +55 -0
  248. data/rbi/orb/models/address_input.rbi +62 -0
  249. data/rbi/orb/models/adjustment_interval.rbi +93 -0
  250. data/rbi/orb/models/aggregated_cost.rbi +61 -0
  251. data/rbi/orb/models/alert.rbi +11 -84
  252. data/rbi/orb/models/alert_create_for_customer_params.rbi +3 -42
  253. data/rbi/orb/models/alert_create_for_external_customer_params.rbi +3 -48
  254. data/rbi/orb/models/alert_create_for_subscription_params.rbi +3 -38
  255. data/rbi/orb/models/alert_update_params.rbi +3 -31
  256. data/rbi/orb/models/allocation.rbi +45 -0
  257. data/rbi/orb/models/amount_discount.rbi +8 -0
  258. data/rbi/orb/models/amount_discount_interval.rbi +100 -0
  259. data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +482 -32442
  260. data/rbi/orb/models/beta_create_plan_version_params.rbi +484 -32436
  261. data/rbi/orb/models/billable_metric_tiny.rbi +21 -0
  262. data/rbi/orb/models/billing_cycle_anchor_configuration.rbi +61 -0
  263. data/rbi/orb/models/billing_cycle_configuration.rbi +70 -0
  264. data/rbi/orb/models/bps_config.rbi +36 -0
  265. data/rbi/orb/models/bps_tier.rbi +58 -0
  266. data/rbi/orb/models/bulk_bps_config.rbi +31 -0
  267. data/rbi/orb/models/bulk_bps_tier.rbi +50 -0
  268. data/rbi/orb/models/bulk_config.rbi +26 -0
  269. data/rbi/orb/models/bulk_tier.rbi +38 -0
  270. data/rbi/orb/models/changed_subscription_resources.rbi +61 -0
  271. data/rbi/orb/models/conversion_rate_tier.rbi +51 -0
  272. data/rbi/orb/models/conversion_rate_tiered_config.rbi +31 -0
  273. data/rbi/orb/models/conversion_rate_unit_config.rbi +27 -0
  274. data/rbi/orb/models/coupon_redemption.rbi +37 -0
  275. data/rbi/orb/models/credit_note.rbi +7 -87
  276. data/rbi/orb/models/credit_note_tiny.rbi +25 -0
  277. data/rbi/orb/models/custom_expiration.rbi +55 -0
  278. data/rbi/orb/models/customer.rbi +19 -522
  279. data/rbi/orb/models/customer_create_params.rbi +36 -957
  280. data/rbi/orb/models/customer_hierarchy_config.rbi +52 -0
  281. data/rbi/orb/models/customer_minified.rbi +32 -0
  282. data/rbi/orb/models/customer_tax_id.rbi +324 -0
  283. data/rbi/orb/models/customer_update_by_external_id_params.rbi +36 -1436
  284. data/rbi/orb/models/customer_update_params.rbi +36 -957
  285. data/rbi/orb/models/customers/balance_transaction_create_response.rbi +8 -96
  286. data/rbi/orb/models/customers/balance_transaction_list_response.rbi +8 -96
  287. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +5 -191
  288. data/rbi/orb/models/customers/cost_list_response.rbi +5 -182
  289. data/rbi/orb/models/customers/credits/affected_block.rbi +50 -0
  290. data/rbi/orb/models/customers/credits/amendment_ledger_entry.rbi +207 -0
  291. data/rbi/orb/models/customers/credits/credit_block_expiry_ledger_entry.rbi +209 -0
  292. data/rbi/orb/models/customers/credits/decrement_ledger_entry.rbi +225 -0
  293. data/rbi/orb/models/customers/credits/expiration_change_ledger_entry.rbi +213 -0
  294. data/rbi/orb/models/customers/credits/increment_ledger_entry.rbi +215 -0
  295. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +7 -1854
  296. data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +7 -1854
  297. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +7 -1854
  298. data/rbi/orb/models/customers/credits/ledger_list_response.rbi +7 -1854
  299. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +4 -84
  300. data/rbi/orb/models/customers/credits/top_up_create_response.rbi +4 -84
  301. data/rbi/orb/models/customers/credits/top_up_invoice_settings.rbi +83 -0
  302. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +4 -84
  303. data/rbi/orb/models/customers/credits/top_up_list_response.rbi +4 -84
  304. data/rbi/orb/models/customers/credits/void_initiated_ledger_entry.rbi +225 -0
  305. data/rbi/orb/models/customers/credits/void_ledger_entry.rbi +219 -0
  306. data/rbi/orb/models/dimensional_price_configuration.rbi +38 -0
  307. data/rbi/orb/models/discount_override.rbi +83 -0
  308. data/rbi/orb/models/fixed_fee_quantity_schedule_entry.rbi +48 -0
  309. data/rbi/orb/models/fixed_fee_quantity_transition.rbi +39 -0
  310. data/rbi/orb/models/invoice.rbi +212 -3345
  311. data/rbi/orb/models/invoice_create_params.rbi +4 -33
  312. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +355 -4329
  313. data/rbi/orb/models/invoice_line_item_create_response.rbi +30 -2260
  314. data/rbi/orb/models/invoice_tiny.rbi +24 -0
  315. data/rbi/orb/models/item_slim.rbi +23 -0
  316. data/rbi/orb/models/matrix_config.rbi +50 -0
  317. data/rbi/orb/models/matrix_sub_line_item.rbi +87 -0
  318. data/rbi/orb/models/matrix_value.rbi +43 -0
  319. data/rbi/orb/models/matrix_with_allocation_config.rbi +61 -0
  320. data/rbi/orb/models/maximum.rbi +52 -0
  321. data/rbi/orb/models/maximum_interval.rbi +69 -0
  322. data/rbi/orb/models/minimum.rbi +52 -0
  323. data/rbi/orb/models/minimum_interval.rbi +69 -0
  324. data/rbi/orb/models/monetary_amount_discount_adjustment.rbi +125 -0
  325. data/rbi/orb/models/monetary_maximum_adjustment.rbi +123 -0
  326. data/rbi/orb/models/monetary_minimum_adjustment.rbi +131 -0
  327. data/rbi/orb/models/monetary_percentage_discount_adjustment.rbi +131 -0
  328. data/rbi/orb/models/monetary_usage_discount_adjustment.rbi +125 -0
  329. data/rbi/orb/models/mutated_subscription.rbi +412 -0
  330. data/rbi/orb/models/new_accounting_sync_configuration.rbi +40 -0
  331. data/rbi/orb/models/new_allocation_price.rbi +104 -0
  332. data/rbi/orb/models/new_amount_discount.rbi +179 -0
  333. data/rbi/orb/models/new_avalara_tax_configuration.rbi +68 -0
  334. data/rbi/orb/models/new_billing_cycle_configuration.rbi +79 -0
  335. data/rbi/orb/models/new_dimensional_price_configuration.rbi +55 -0
  336. data/rbi/orb/models/new_floating_bps_price.rbi +294 -0
  337. data/rbi/orb/models/new_floating_bulk_bps_price.rbi +309 -0
  338. data/rbi/orb/models/new_floating_bulk_price.rbi +298 -0
  339. data/rbi/orb/models/new_floating_bulk_with_proration_price.rbi +331 -0
  340. data/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi +338 -0
  341. data/rbi/orb/models/new_floating_grouped_allocation_price.rbi +331 -0
  342. data/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi +337 -0
  343. data/rbi/orb/models/new_floating_grouped_tiered_price.rbi +325 -0
  344. data/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi +348 -0
  345. data/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi +348 -0
  346. data/rbi/orb/models/new_floating_matrix_price.rbi +304 -0
  347. data/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi +345 -0
  348. data/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi +338 -0
  349. data/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi +338 -0
  350. data/rbi/orb/models/new_floating_package_price.rbi +306 -0
  351. data/rbi/orb/models/new_floating_package_with_allocation_price.rbi +338 -0
  352. data/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi +350 -0
  353. data/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +349 -0
  354. data/rbi/orb/models/new_floating_threshold_total_amount_price.rbi +337 -0
  355. data/rbi/orb/models/new_floating_tiered_bps_price.rbi +317 -0
  356. data/rbi/orb/models/new_floating_tiered_package_price.rbi +325 -0
  357. data/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi +348 -0
  358. data/rbi/orb/models/new_floating_tiered_price.rbi +304 -0
  359. data/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi +331 -0
  360. data/rbi/orb/models/new_floating_tiered_with_proration_price.rbi +337 -0
  361. data/rbi/orb/models/new_floating_unit_price.rbi +298 -0
  362. data/rbi/orb/models/new_floating_unit_with_percent_price.rbi +328 -0
  363. data/rbi/orb/models/new_floating_unit_with_proration_price.rbi +331 -0
  364. data/rbi/orb/models/new_maximum.rbi +160 -0
  365. data/rbi/orb/models/new_minimum.rbi +168 -0
  366. data/rbi/orb/models/new_percentage_discount.rbi +193 -0
  367. data/rbi/orb/models/new_plan_bps_price.rbi +294 -0
  368. data/rbi/orb/models/new_plan_bulk_bps_price.rbi +297 -0
  369. data/rbi/orb/models/new_plan_bulk_price.rbi +295 -0
  370. data/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +327 -0
  371. data/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +333 -0
  372. data/rbi/orb/models/new_plan_grouped_allocation_price.rbi +327 -0
  373. data/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +333 -0
  374. data/rbi/orb/models/new_plan_grouped_tiered_price.rbi +316 -0
  375. data/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +340 -0
  376. data/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +345 -0
  377. data/rbi/orb/models/new_plan_matrix_price.rbi +297 -0
  378. data/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +341 -0
  379. data/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +333 -0
  380. data/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +333 -0
  381. data/rbi/orb/models/new_plan_package_price.rbi +297 -0
  382. data/rbi/orb/models/new_plan_package_with_allocation_price.rbi +333 -0
  383. data/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +352 -0
  384. data/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +351 -0
  385. data/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +333 -0
  386. data/rbi/orb/models/new_plan_tier_with_proration_price.rbi +327 -0
  387. data/rbi/orb/models/new_plan_tiered_bps_price.rbi +304 -0
  388. data/rbi/orb/models/new_plan_tiered_package_price.rbi +316 -0
  389. data/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +339 -0
  390. data/rbi/orb/models/new_plan_tiered_price.rbi +297 -0
  391. data/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +327 -0
  392. data/rbi/orb/models/new_plan_unit_price.rbi +295 -0
  393. data/rbi/orb/models/new_plan_unit_with_percent_price.rbi +325 -0
  394. data/rbi/orb/models/new_plan_unit_with_proration_price.rbi +327 -0
  395. data/rbi/orb/models/new_reporting_configuration.rbi +23 -0
  396. data/rbi/orb/models/new_sphere_configuration.rbi +59 -0
  397. data/rbi/orb/models/new_subscription_bps_price.rbi +317 -0
  398. data/rbi/orb/models/new_subscription_bulk_bps_price.rbi +338 -0
  399. data/rbi/orb/models/new_subscription_bulk_price.rbi +321 -0
  400. data/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi +350 -0
  401. data/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi +360 -0
  402. data/rbi/orb/models/new_subscription_grouped_allocation_price.rbi +350 -0
  403. data/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi +360 -0
  404. data/rbi/orb/models/new_subscription_grouped_tiered_price.rbi +343 -0
  405. data/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi +360 -0
  406. data/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi +360 -0
  407. data/rbi/orb/models/new_subscription_matrix_price.rbi +332 -0
  408. data/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi +368 -0
  409. data/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi +360 -0
  410. data/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi +360 -0
  411. data/rbi/orb/models/new_subscription_package_price.rbi +338 -0
  412. data/rbi/orb/models/new_subscription_package_with_allocation_price.rbi +360 -0
  413. data/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi +362 -0
  414. data/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +361 -0
  415. data/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi +360 -0
  416. data/rbi/orb/models/new_subscription_tier_with_proration_price.rbi +350 -0
  417. data/rbi/orb/models/new_subscription_tiered_bps_price.rbi +340 -0
  418. data/rbi/orb/models/new_subscription_tiered_package_price.rbi +343 -0
  419. data/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi +360 -0
  420. data/rbi/orb/models/new_subscription_tiered_price.rbi +332 -0
  421. data/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi +350 -0
  422. data/rbi/orb/models/new_subscription_unit_price.rbi +321 -0
  423. data/rbi/orb/models/new_subscription_unit_with_percent_price.rbi +349 -0
  424. data/rbi/orb/models/new_subscription_unit_with_proration_price.rbi +350 -0
  425. data/rbi/orb/models/new_tax_jar_configuration.rbi +59 -0
  426. data/rbi/orb/models/new_usage_discount.rbi +177 -0
  427. data/rbi/orb/models/other_sub_line_item.rbi +78 -0
  428. data/rbi/orb/models/package_config.rbi +39 -0
  429. data/rbi/orb/models/per_price_cost.rbi +96 -0
  430. data/rbi/orb/models/percentage_discount.rbi +8 -0
  431. data/rbi/orb/models/percentage_discount_interval.rbi +107 -0
  432. data/rbi/orb/models/plan.rbi +29 -1937
  433. data/rbi/orb/models/plan_create_params.rbi +112 -15428
  434. data/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi +128 -0
  435. data/rbi/orb/models/plan_phase_maximum_adjustment.rbi +123 -0
  436. data/rbi/orb/models/plan_phase_minimum_adjustment.rbi +131 -0
  437. data/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi +131 -0
  438. data/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi +125 -0
  439. data/rbi/orb/models/plan_version.rbi +13 -1252
  440. data/rbi/orb/models/price.rbi +3518 -26097
  441. data/rbi/orb/models/price_create_params.rbi +81 -937
  442. data/rbi/orb/models/price_evaluate_multiple_params.rbi +112 -15566
  443. data/rbi/orb/models/price_evaluate_preview_events_params.rbi +411 -0
  444. data/rbi/orb/models/price_evaluate_preview_events_response.rbi +101 -0
  445. data/rbi/orb/models/price_interval.rbi +174 -0
  446. data/rbi/orb/models/sub_line_item_grouping.rbi +31 -0
  447. data/rbi/orb/models/sub_line_item_matrix_config.rbi +33 -0
  448. data/rbi/orb/models/subscription.rbi +51 -2939
  449. data/rbi/orb/models/subscription_change_apply_response.rbi +4 -3580
  450. data/rbi/orb/models/subscription_change_cancel_response.rbi +4 -3580
  451. data/rbi/orb/models/subscription_change_minified.rbi +23 -0
  452. data/rbi/orb/models/subscription_change_retrieve_response.rbi +4 -3582
  453. data/rbi/orb/models/subscription_create_params.rbi +541 -33368
  454. data/rbi/orb/models/subscription_fetch_costs_response.rbi +5 -182
  455. data/rbi/orb/models/subscription_minified.rbi +23 -0
  456. data/rbi/orb/models/subscription_price_intervals_params.rbi +224 -16144
  457. data/rbi/orb/models/subscription_redeem_coupon_params.rbi +16 -8
  458. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +549 -33384
  459. data/rbi/orb/models/subscription_trial_info.rbi +23 -0
  460. data/rbi/orb/models/tax_amount.rbi +50 -0
  461. data/rbi/orb/models/threshold.rbi +30 -0
  462. data/rbi/orb/models/tier.rbi +50 -0
  463. data/rbi/orb/models/tier_config.rbi +40 -0
  464. data/rbi/orb/models/tier_sub_line_item.rbi +87 -0
  465. data/rbi/orb/models/tiered_bps_config.rbi +29 -0
  466. data/rbi/orb/models/tiered_config.rbi +26 -0
  467. data/rbi/orb/models/tiered_conversion_rate_config.rbi +73 -0
  468. data/rbi/orb/models/transform_price_filter.rbi +106 -0
  469. data/rbi/orb/models/trial_discount.rbi +8 -0
  470. data/rbi/orb/models/unit_config.rbi +24 -0
  471. data/rbi/orb/models/unit_conversion_rate_config.rbi +71 -0
  472. data/rbi/orb/models/usage_discount.rbi +8 -0
  473. data/rbi/orb/models/usage_discount_interval.rbi +99 -0
  474. data/rbi/orb/models.rbi +398 -0
  475. data/rbi/orb/resources/alerts.rbi +4 -13
  476. data/rbi/orb/resources/customers.rbi +27 -51
  477. data/rbi/orb/resources/plans.rbi +28 -28
  478. data/rbi/orb/resources/prices.rbi +82 -36
  479. data/rbi/orb/resources/subscriptions.rbi +19 -22
  480. data/sig/orb/models/accounting_provider_config.rbs +19 -0
  481. data/sig/orb/models/address.rbs +45 -0
  482. data/sig/orb/models/address_input.rbs +45 -0
  483. data/sig/orb/models/adjustment_interval.rbs +53 -0
  484. data/sig/orb/models/aggregated_cost.rbs +40 -0
  485. data/sig/orb/models/alert.rbs +12 -44
  486. data/sig/orb/models/alert_create_for_customer_params.rbs +4 -14
  487. data/sig/orb/models/alert_create_for_external_customer_params.rbs +4 -14
  488. data/sig/orb/models/alert_create_for_subscription_params.rbs +4 -14
  489. data/sig/orb/models/alert_update_params.rbs +4 -14
  490. data/sig/orb/models/allocation.rbs +30 -0
  491. data/sig/orb/models/amount_discount.rbs +5 -0
  492. data/sig/orb/models/amount_discount_interval.rbs +55 -0
  493. data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +147 -12821
  494. data/sig/orb/models/beta_create_plan_version_params.rbs +144 -12802
  495. data/sig/orb/models/billable_metric_tiny.rbs +13 -0
  496. data/sig/orb/models/billing_cycle_anchor_configuration.rbs +18 -0
  497. data/sig/orb/models/billing_cycle_configuration.rbs +36 -0
  498. data/sig/orb/models/bps_config.rbs +15 -0
  499. data/sig/orb/models/bps_tier.rbs +35 -0
  500. data/sig/orb/models/bulk_bps_config.rbs +13 -0
  501. data/sig/orb/models/bulk_bps_tier.rbs +26 -0
  502. data/sig/orb/models/bulk_config.rbs +13 -0
  503. data/sig/orb/models/bulk_tier.rbs +15 -0
  504. data/sig/orb/models/changed_subscription_resources.rbs +35 -0
  505. data/sig/orb/models/conversion_rate_tier.rbs +26 -0
  506. data/sig/orb/models/conversion_rate_tiered_config.rbs +14 -0
  507. data/sig/orb/models/conversion_rate_unit_config.rbs +13 -0
  508. data/sig/orb/models/coupon_redemption.rbs +22 -0
  509. data/sig/orb/models/credit_note.rbs +8 -47
  510. data/sig/orb/models/credit_note_tiny.rbs +13 -0
  511. data/sig/orb/models/custom_expiration.rbs +36 -0
  512. data/sig/orb/models/customer.rbs +20 -471
  513. data/sig/orb/models/customer_create_params.rbs +27 -577
  514. data/sig/orb/models/customer_hierarchy_config.rbs +24 -0
  515. data/sig/orb/models/customer_minified.rbs +15 -0
  516. data/sig/orb/models/customer_tax_id.rbs +346 -0
  517. data/sig/orb/models/customer_update_by_external_id_params.rbs +27 -577
  518. data/sig/orb/models/customer_update_params.rbs +27 -577
  519. data/sig/orb/models/customers/balance_transaction_create_response.rbs +8 -28
  520. data/sig/orb/models/customers/balance_transaction_list_response.rbs +8 -28
  521. data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +4 -84
  522. data/sig/orb/models/customers/cost_list_response.rbs +4 -83
  523. data/sig/orb/models/customers/credits/affected_block.rbs +30 -0
  524. data/sig/orb/models/customers/credits/amendment_ledger_entry.rbs +105 -0
  525. data/sig/orb/models/customers/credits/credit_block_expiry_ledger_entry.rbs +107 -0
  526. data/sig/orb/models/customers/credits/decrement_ledger_entry.rbs +120 -0
  527. data/sig/orb/models/customers/credits/expiration_change_ledger_entry.rbs +110 -0
  528. data/sig/orb/models/customers/credits/increment_ledger_entry.rbs +110 -0
  529. data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +7 -939
  530. data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +7 -939
  531. data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +7 -939
  532. data/sig/orb/models/customers/credits/ledger_list_response.rbs +7 -939
  533. data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +4 -38
  534. data/sig/orb/models/customers/credits/top_up_create_response.rbs +4 -38
  535. data/sig/orb/models/customers/credits/top_up_invoice_settings.rbs +41 -0
  536. data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +4 -38
  537. data/sig/orb/models/customers/credits/top_up_list_response.rbs +4 -38
  538. data/sig/orb/models/customers/credits/void_initiated_ledger_entry.rbs +120 -0
  539. data/sig/orb/models/customers/credits/void_ledger_entry.rbs +115 -0
  540. data/sig/orb/models/dimensional_price_configuration.rbs +22 -0
  541. data/sig/orb/models/discount_override.rbs +47 -0
  542. data/sig/orb/models/fixed_fee_quantity_schedule_entry.rbs +30 -0
  543. data/sig/orb/models/fixed_fee_quantity_transition.rbs +26 -0
  544. data/sig/orb/models/invoice.rbs +54 -1612
  545. data/sig/orb/models/invoice_create_params.rbs +4 -14
  546. data/sig/orb/models/invoice_fetch_upcoming_response.rbs +54 -1612
  547. data/sig/orb/models/invoice_line_item_create_response.rbs +18 -927
  548. data/sig/orb/models/invoice_tiny.rbs +13 -0
  549. data/sig/orb/models/item_slim.rbs +15 -0
  550. data/sig/orb/models/matrix_config.rbs +30 -0
  551. data/sig/orb/models/matrix_sub_line_item.rbs +55 -0
  552. data/sig/orb/models/matrix_value.rbs +22 -0
  553. data/sig/orb/models/matrix_with_allocation_config.rbs +35 -0
  554. data/sig/orb/models/maximum.rbs +30 -0
  555. data/sig/orb/models/maximum_interval.rbs +40 -0
  556. data/sig/orb/models/minimum.rbs +30 -0
  557. data/sig/orb/models/minimum_interval.rbs +40 -0
  558. data/sig/orb/models/monetary_amount_discount_adjustment.rbs +65 -0
  559. data/sig/orb/models/monetary_maximum_adjustment.rbs +65 -0
  560. data/sig/orb/models/monetary_minimum_adjustment.rbs +70 -0
  561. data/sig/orb/models/monetary_percentage_discount_adjustment.rbs +65 -0
  562. data/sig/orb/models/monetary_usage_discount_adjustment.rbs +65 -0
  563. data/sig/orb/models/mutated_subscription.rbs +178 -0
  564. data/sig/orb/models/new_accounting_sync_configuration.rbs +25 -0
  565. data/sig/orb/models/new_allocation_price.rbs +56 -0
  566. data/sig/orb/models/new_amount_discount.rbs +97 -0
  567. data/sig/orb/models/new_avalara_tax_configuration.rbs +40 -0
  568. data/sig/orb/models/new_billing_cycle_configuration.rbs +36 -0
  569. data/sig/orb/models/new_dimensional_price_configuration.rbs +30 -0
  570. data/sig/orb/models/new_floating_bps_price.rbs +135 -0
  571. data/sig/orb/models/new_floating_bulk_bps_price.rbs +135 -0
  572. data/sig/orb/models/new_floating_bulk_price.rbs +135 -0
  573. data/sig/orb/models/new_floating_bulk_with_proration_price.rbs +135 -0
  574. data/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +135 -0
  575. data/sig/orb/models/new_floating_grouped_allocation_price.rbs +135 -0
  576. data/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +135 -0
  577. data/sig/orb/models/new_floating_grouped_tiered_price.rbs +135 -0
  578. data/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +135 -0
  579. data/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +135 -0
  580. data/sig/orb/models/new_floating_matrix_price.rbs +135 -0
  581. data/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +135 -0
  582. data/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +135 -0
  583. data/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +135 -0
  584. data/sig/orb/models/new_floating_package_price.rbs +135 -0
  585. data/sig/orb/models/new_floating_package_with_allocation_price.rbs +135 -0
  586. data/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +135 -0
  587. data/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +135 -0
  588. data/sig/orb/models/new_floating_threshold_total_amount_price.rbs +135 -0
  589. data/sig/orb/models/new_floating_tiered_bps_price.rbs +135 -0
  590. data/sig/orb/models/new_floating_tiered_package_price.rbs +135 -0
  591. data/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +135 -0
  592. data/sig/orb/models/new_floating_tiered_price.rbs +135 -0
  593. data/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +135 -0
  594. data/sig/orb/models/new_floating_tiered_with_proration_price.rbs +135 -0
  595. data/sig/orb/models/new_floating_unit_price.rbs +135 -0
  596. data/sig/orb/models/new_floating_unit_with_percent_price.rbs +135 -0
  597. data/sig/orb/models/new_floating_unit_with_proration_price.rbs +135 -0
  598. data/sig/orb/models/new_maximum.rbs +97 -0
  599. data/sig/orb/models/new_minimum.rbs +102 -0
  600. data/sig/orb/models/new_percentage_discount.rbs +97 -0
  601. data/sig/orb/models/new_plan_bps_price.rbs +135 -0
  602. data/sig/orb/models/new_plan_bulk_bps_price.rbs +135 -0
  603. data/sig/orb/models/new_plan_bulk_price.rbs +135 -0
  604. data/sig/orb/models/new_plan_bulk_with_proration_price.rbs +135 -0
  605. data/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +135 -0
  606. data/sig/orb/models/new_plan_grouped_allocation_price.rbs +135 -0
  607. data/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +135 -0
  608. data/sig/orb/models/new_plan_grouped_tiered_price.rbs +135 -0
  609. data/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +135 -0
  610. data/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +135 -0
  611. data/sig/orb/models/new_plan_matrix_price.rbs +135 -0
  612. data/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +135 -0
  613. data/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +135 -0
  614. data/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +135 -0
  615. data/sig/orb/models/new_plan_package_price.rbs +135 -0
  616. data/sig/orb/models/new_plan_package_with_allocation_price.rbs +135 -0
  617. data/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +135 -0
  618. data/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +135 -0
  619. data/sig/orb/models/new_plan_threshold_total_amount_price.rbs +135 -0
  620. data/sig/orb/models/new_plan_tier_with_proration_price.rbs +135 -0
  621. data/sig/orb/models/new_plan_tiered_bps_price.rbs +135 -0
  622. data/sig/orb/models/new_plan_tiered_package_price.rbs +135 -0
  623. data/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +135 -0
  624. data/sig/orb/models/new_plan_tiered_price.rbs +135 -0
  625. data/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +135 -0
  626. data/sig/orb/models/new_plan_unit_price.rbs +135 -0
  627. data/sig/orb/models/new_plan_unit_with_percent_price.rbs +135 -0
  628. data/sig/orb/models/new_plan_unit_with_proration_price.rbs +135 -0
  629. data/sig/orb/models/new_reporting_configuration.rbs +13 -0
  630. data/sig/orb/models/new_sphere_configuration.rbs +35 -0
  631. data/sig/orb/models/new_subscription_bps_price.rbs +140 -0
  632. data/sig/orb/models/new_subscription_bulk_bps_price.rbs +140 -0
  633. data/sig/orb/models/new_subscription_bulk_price.rbs +140 -0
  634. data/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +140 -0
  635. data/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +140 -0
  636. data/sig/orb/models/new_subscription_grouped_allocation_price.rbs +140 -0
  637. data/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +140 -0
  638. data/sig/orb/models/new_subscription_grouped_tiered_price.rbs +140 -0
  639. data/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +140 -0
  640. data/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +140 -0
  641. data/sig/orb/models/new_subscription_matrix_price.rbs +140 -0
  642. data/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +140 -0
  643. data/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +140 -0
  644. data/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +140 -0
  645. data/sig/orb/models/new_subscription_package_price.rbs +140 -0
  646. data/sig/orb/models/new_subscription_package_with_allocation_price.rbs +140 -0
  647. data/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +140 -0
  648. data/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +140 -0
  649. data/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +140 -0
  650. data/sig/orb/models/new_subscription_tier_with_proration_price.rbs +140 -0
  651. data/sig/orb/models/new_subscription_tiered_bps_price.rbs +140 -0
  652. data/sig/orb/models/new_subscription_tiered_package_price.rbs +140 -0
  653. data/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +140 -0
  654. data/sig/orb/models/new_subscription_tiered_price.rbs +140 -0
  655. data/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +140 -0
  656. data/sig/orb/models/new_subscription_unit_price.rbs +140 -0
  657. data/sig/orb/models/new_subscription_unit_with_percent_price.rbs +140 -0
  658. data/sig/orb/models/new_subscription_unit_with_proration_price.rbs +140 -0
  659. data/sig/orb/models/new_tax_jar_configuration.rbs +35 -0
  660. data/sig/orb/models/new_usage_discount.rbs +97 -0
  661. data/sig/orb/models/other_sub_line_item.rbs +50 -0
  662. data/sig/orb/models/package_config.rbs +15 -0
  663. data/sig/orb/models/per_price_cost.rbs +40 -0
  664. data/sig/orb/models/percentage_discount.rbs +5 -0
  665. data/sig/orb/models/percentage_discount_interval.rbs +55 -0
  666. data/sig/orb/models/plan.rbs +21 -871
  667. data/sig/orb/models/plan_create_params.rbs +28 -5952
  668. data/sig/orb/models/plan_phase_amount_discount_adjustment.rbs +65 -0
  669. data/sig/orb/models/plan_phase_maximum_adjustment.rbs +65 -0
  670. data/sig/orb/models/plan_phase_minimum_adjustment.rbs +70 -0
  671. data/sig/orb/models/plan_phase_percentage_discount_adjustment.rbs +65 -0
  672. data/sig/orb/models/plan_phase_usage_discount_adjustment.rbs +65 -0
  673. data/sig/orb/models/plan_version.rbs +5 -535
  674. data/sig/orb/models/price.rbs +2164 -11297
  675. data/sig/orb/models/price_create_params.rbs +58 -418
  676. data/sig/orb/models/price_evaluate_multiple_params.rbs +28 -6138
  677. data/sig/orb/models/price_evaluate_preview_events_params.rbs +166 -0
  678. data/sig/orb/models/price_evaluate_preview_events_response.rbs +50 -0
  679. data/sig/orb/models/price_interval.rbs +65 -0
  680. data/sig/orb/models/sub_line_item_grouping.rbs +15 -0
  681. data/sig/orb/models/sub_line_item_matrix_config.rbs +13 -0
  682. data/sig/orb/models/subscription.rbs +39 -1274
  683. data/sig/orb/models/subscription_change_apply_response.rbs +4 -1467
  684. data/sig/orb/models/subscription_change_cancel_response.rbs +4 -1467
  685. data/sig/orb/models/subscription_change_minified.rbs +13 -0
  686. data/sig/orb/models/subscription_change_retrieve_response.rbs +4 -1467
  687. data/sig/orb/models/subscription_create_params.rbs +174 -13219
  688. data/sig/orb/models/subscription_fetch_costs_response.rbs +4 -82
  689. data/sig/orb/models/subscription_minified.rbs +13 -0
  690. data/sig/orb/models/subscription_price_intervals_params.rbs +61 -6390
  691. data/sig/orb/models/subscription_redeem_coupon_params.rbs +11 -6
  692. data/sig/orb/models/subscription_schedule_plan_change_params.rbs +175 -13220
  693. data/sig/orb/models/subscription_trial_info.rbs +13 -0
  694. data/sig/orb/models/tax_amount.rbs +30 -0
  695. data/sig/orb/models/threshold.rbs +13 -0
  696. data/sig/orb/models/tier.rbs +25 -0
  697. data/sig/orb/models/tier_config.rbs +26 -0
  698. data/sig/orb/models/tier_sub_line_item.rbs +55 -0
  699. data/sig/orb/models/tiered_bps_config.rbs +13 -0
  700. data/sig/orb/models/tiered_config.rbs +13 -0
  701. data/sig/orb/models/tiered_conversion_rate_config.rbs +35 -0
  702. data/sig/orb/models/transform_price_filter.rbs +56 -0
  703. data/sig/orb/models/trial_discount.rbs +5 -0
  704. data/sig/orb/models/unit_config.rbs +13 -0
  705. data/sig/orb/models/unit_conversion_rate_config.rbs +35 -0
  706. data/sig/orb/models/usage_discount.rbs +5 -0
  707. data/sig/orb/models/usage_discount_interval.rbs +55 -0
  708. data/sig/orb/models.rbs +342 -0
  709. data/sig/orb/resources/alerts.rbs +4 -4
  710. data/sig/orb/resources/customers.rbs +18 -18
  711. data/sig/orb/resources/prices.rbs +23 -13
  712. data/sig/orb/resources/subscriptions.rbs +15 -14
  713. metadata +545 -35
  714. data/lib/orb/models/subscription_cancel_response.rb +0 -1873
  715. data/lib/orb/models/subscription_create_response.rb +0 -1873
  716. data/lib/orb/models/subscription_price_intervals_response.rb +0 -1888
  717. data/lib/orb/models/subscription_redeem_coupon_response.rb +0 -1883
  718. data/lib/orb/models/subscription_schedule_plan_change_response.rb +0 -1893
  719. data/lib/orb/models/subscription_trigger_phase_response.rb +0 -1883
  720. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +0 -1897
  721. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +0 -1912
  722. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +0 -1908
  723. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +0 -1897
  724. data/lib/orb/models/subscription_update_trial_response.rb +0 -1879
  725. data/rbi/orb/models/subscription_cancel_response.rbi +0 -3537
  726. data/rbi/orb/models/subscription_create_response.rbi +0 -3537
  727. data/rbi/orb/models/subscription_price_intervals_response.rbi +0 -3564
  728. data/rbi/orb/models/subscription_redeem_coupon_response.rbi +0 -3557
  729. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +0 -3564
  730. data/rbi/orb/models/subscription_trigger_phase_response.rbi +0 -3557
  731. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +0 -3566
  732. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +0 -3566
  733. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +0 -3566
  734. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +0 -3566
  735. data/rbi/orb/models/subscription_update_trial_response.rbi +0 -3556
  736. data/sig/orb/models/subscription_cancel_response.rbs +0 -1445
  737. data/sig/orb/models/subscription_create_response.rbs +0 -1445
  738. data/sig/orb/models/subscription_price_intervals_response.rbs +0 -1445
  739. data/sig/orb/models/subscription_redeem_coupon_response.rbs +0 -1445
  740. data/sig/orb/models/subscription_schedule_plan_change_response.rbs +0 -1445
  741. data/sig/orb/models/subscription_trigger_phase_response.rbs +0 -1445
  742. data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +0 -1445
  743. data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +0 -1445
  744. data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +0 -1445
  745. data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +0 -1445
  746. data/sig/orb/models/subscription_update_trial_response.rbs +0 -1445
@@ -12,1863 +12,16 @@ module Orb
12
12
  Variants =
13
13
  T.type_alias do
14
14
  T.any(
15
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment,
16
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement,
17
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange,
18
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry,
19
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void,
20
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated,
21
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment
15
+ Orb::Customers::Credits::IncrementLedgerEntry,
16
+ Orb::Customers::Credits::DecrementLedgerEntry,
17
+ Orb::Customers::Credits::ExpirationChangeLedgerEntry,
18
+ Orb::Customers::Credits::CreditBlockExpiryLedgerEntry,
19
+ Orb::Customers::Credits::VoidLedgerEntry,
20
+ Orb::Customers::Credits::VoidInitiatedLedgerEntry,
21
+ Orb::Customers::Credits::AmendmentLedgerEntry
22
22
  )
23
23
  end
24
24
 
25
- class Increment < Orb::Internal::Type::BaseModel
26
- OrHash =
27
- T.type_alias do
28
- T.any(
29
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment,
30
- Orb::Internal::AnyHash
31
- )
32
- end
33
-
34
- sig { returns(String) }
35
- attr_accessor :id
36
-
37
- sig { returns(Float) }
38
- attr_accessor :amount
39
-
40
- sig { returns(Time) }
41
- attr_accessor :created_at
42
-
43
- sig do
44
- returns(
45
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock
46
- )
47
- end
48
- attr_reader :credit_block
49
-
50
- sig do
51
- params(
52
- credit_block:
53
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock::OrHash
54
- ).void
55
- end
56
- attr_writer :credit_block
57
-
58
- sig { returns(String) }
59
- attr_accessor :currency
60
-
61
- sig do
62
- returns(
63
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer
64
- )
65
- end
66
- attr_reader :customer
67
-
68
- sig do
69
- params(
70
- customer:
71
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer::OrHash
72
- ).void
73
- end
74
- attr_writer :customer
75
-
76
- sig { returns(T.nilable(String)) }
77
- attr_accessor :description
78
-
79
- sig { returns(Float) }
80
- attr_accessor :ending_balance
81
-
82
- sig do
83
- returns(
84
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::TaggedSymbol
85
- )
86
- end
87
- attr_accessor :entry_status
88
-
89
- sig { returns(Symbol) }
90
- attr_accessor :entry_type
91
-
92
- sig { returns(Integer) }
93
- attr_accessor :ledger_sequence_number
94
-
95
- # User specified key-value pairs for the resource. If not present, this defaults
96
- # to an empty dictionary. Individual keys can be removed by setting the value to
97
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
98
- # `null`.
99
- sig { returns(T::Hash[Symbol, String]) }
100
- attr_accessor :metadata
101
-
102
- sig { returns(Float) }
103
- attr_accessor :starting_balance
104
-
105
- # If the increment resulted in invoice creation, the list of created invoices
106
- sig { returns(T.nilable(T::Array[Orb::Invoice])) }
107
- attr_accessor :created_invoices
108
-
109
- sig do
110
- params(
111
- id: String,
112
- amount: Float,
113
- created_at: Time,
114
- credit_block:
115
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock::OrHash,
116
- currency: String,
117
- customer:
118
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer::OrHash,
119
- description: T.nilable(String),
120
- ending_balance: Float,
121
- entry_status:
122
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::OrSymbol,
123
- ledger_sequence_number: Integer,
124
- metadata: T::Hash[Symbol, String],
125
- starting_balance: Float,
126
- created_invoices: T.nilable(T::Array[Orb::Invoice::OrHash]),
127
- entry_type: Symbol
128
- ).returns(T.attached_class)
129
- end
130
- def self.new(
131
- id:,
132
- amount:,
133
- created_at:,
134
- credit_block:,
135
- currency:,
136
- customer:,
137
- description:,
138
- ending_balance:,
139
- entry_status:,
140
- ledger_sequence_number:,
141
- # User specified key-value pairs for the resource. If not present, this defaults
142
- # to an empty dictionary. Individual keys can be removed by setting the value to
143
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
144
- # `null`.
145
- metadata:,
146
- starting_balance:,
147
- # If the increment resulted in invoice creation, the list of created invoices
148
- created_invoices: nil,
149
- entry_type: :increment
150
- )
151
- end
152
-
153
- sig do
154
- override.returns(
155
- {
156
- id: String,
157
- amount: Float,
158
- created_at: Time,
159
- credit_block:
160
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock,
161
- currency: String,
162
- customer:
163
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer,
164
- description: T.nilable(String),
165
- ending_balance: Float,
166
- entry_status:
167
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::TaggedSymbol,
168
- entry_type: Symbol,
169
- ledger_sequence_number: Integer,
170
- metadata: T::Hash[Symbol, String],
171
- starting_balance: Float,
172
- created_invoices: T.nilable(T::Array[Orb::Invoice])
173
- }
174
- )
175
- end
176
- def to_hash
177
- end
178
-
179
- class CreditBlock < Orb::Internal::Type::BaseModel
180
- OrHash =
181
- T.type_alias do
182
- T.any(
183
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::CreditBlock,
184
- Orb::Internal::AnyHash
185
- )
186
- end
187
-
188
- sig { returns(String) }
189
- attr_accessor :id
190
-
191
- sig { returns(T.nilable(Time)) }
192
- attr_accessor :expiry_date
193
-
194
- sig { returns(T.nilable(String)) }
195
- attr_accessor :per_unit_cost_basis
196
-
197
- sig do
198
- params(
199
- id: String,
200
- expiry_date: T.nilable(Time),
201
- per_unit_cost_basis: T.nilable(String)
202
- ).returns(T.attached_class)
203
- end
204
- def self.new(id:, expiry_date:, per_unit_cost_basis:)
205
- end
206
-
207
- sig do
208
- override.returns(
209
- {
210
- id: String,
211
- expiry_date: T.nilable(Time),
212
- per_unit_cost_basis: T.nilable(String)
213
- }
214
- )
215
- end
216
- def to_hash
217
- end
218
- end
219
-
220
- class Customer < Orb::Internal::Type::BaseModel
221
- OrHash =
222
- T.type_alias do
223
- T.any(
224
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::Customer,
225
- Orb::Internal::AnyHash
226
- )
227
- end
228
-
229
- sig { returns(String) }
230
- attr_accessor :id
231
-
232
- sig { returns(T.nilable(String)) }
233
- attr_accessor :external_customer_id
234
-
235
- sig do
236
- params(
237
- id: String,
238
- external_customer_id: T.nilable(String)
239
- ).returns(T.attached_class)
240
- end
241
- def self.new(id:, external_customer_id:)
242
- end
243
-
244
- sig do
245
- override.returns(
246
- { id: String, external_customer_id: T.nilable(String) }
247
- )
248
- end
249
- def to_hash
250
- end
251
- end
252
-
253
- module EntryStatus
254
- extend Orb::Internal::Type::Enum
255
-
256
- TaggedSymbol =
257
- T.type_alias do
258
- T.all(
259
- Symbol,
260
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus
261
- )
262
- end
263
- OrSymbol = T.type_alias { T.any(Symbol, String) }
264
-
265
- COMMITTED =
266
- T.let(
267
- :committed,
268
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::TaggedSymbol
269
- )
270
- PENDING =
271
- T.let(
272
- :pending,
273
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::TaggedSymbol
274
- )
275
-
276
- sig do
277
- override.returns(
278
- T::Array[
279
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment::EntryStatus::TaggedSymbol
280
- ]
281
- )
282
- end
283
- def self.values
284
- end
285
- end
286
- end
287
-
288
- class Decrement < Orb::Internal::Type::BaseModel
289
- OrHash =
290
- T.type_alias do
291
- T.any(
292
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement,
293
- Orb::Internal::AnyHash
294
- )
295
- end
296
-
297
- sig { returns(String) }
298
- attr_accessor :id
299
-
300
- sig { returns(Float) }
301
- attr_accessor :amount
302
-
303
- sig { returns(Time) }
304
- attr_accessor :created_at
305
-
306
- sig do
307
- returns(
308
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock
309
- )
310
- end
311
- attr_reader :credit_block
312
-
313
- sig do
314
- params(
315
- credit_block:
316
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock::OrHash
317
- ).void
318
- end
319
- attr_writer :credit_block
320
-
321
- sig { returns(String) }
322
- attr_accessor :currency
323
-
324
- sig do
325
- returns(
326
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer
327
- )
328
- end
329
- attr_reader :customer
330
-
331
- sig do
332
- params(
333
- customer:
334
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer::OrHash
335
- ).void
336
- end
337
- attr_writer :customer
338
-
339
- sig { returns(T.nilable(String)) }
340
- attr_accessor :description
341
-
342
- sig { returns(Float) }
343
- attr_accessor :ending_balance
344
-
345
- sig do
346
- returns(
347
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol
348
- )
349
- end
350
- attr_accessor :entry_status
351
-
352
- sig { returns(Symbol) }
353
- attr_accessor :entry_type
354
-
355
- sig { returns(Integer) }
356
- attr_accessor :ledger_sequence_number
357
-
358
- # User specified key-value pairs for the resource. If not present, this defaults
359
- # to an empty dictionary. Individual keys can be removed by setting the value to
360
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
361
- # `null`.
362
- sig { returns(T::Hash[Symbol, String]) }
363
- attr_accessor :metadata
364
-
365
- sig { returns(Float) }
366
- attr_accessor :starting_balance
367
-
368
- sig { returns(T.nilable(String)) }
369
- attr_accessor :event_id
370
-
371
- sig { returns(T.nilable(String)) }
372
- attr_accessor :invoice_id
373
-
374
- sig { returns(T.nilable(String)) }
375
- attr_accessor :price_id
376
-
377
- sig do
378
- params(
379
- id: String,
380
- amount: Float,
381
- created_at: Time,
382
- credit_block:
383
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock::OrHash,
384
- currency: String,
385
- customer:
386
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer::OrHash,
387
- description: T.nilable(String),
388
- ending_balance: Float,
389
- entry_status:
390
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::OrSymbol,
391
- ledger_sequence_number: Integer,
392
- metadata: T::Hash[Symbol, String],
393
- starting_balance: Float,
394
- event_id: T.nilable(String),
395
- invoice_id: T.nilable(String),
396
- price_id: T.nilable(String),
397
- entry_type: Symbol
398
- ).returns(T.attached_class)
399
- end
400
- def self.new(
401
- id:,
402
- amount:,
403
- created_at:,
404
- credit_block:,
405
- currency:,
406
- customer:,
407
- description:,
408
- ending_balance:,
409
- entry_status:,
410
- ledger_sequence_number:,
411
- # User specified key-value pairs for the resource. If not present, this defaults
412
- # to an empty dictionary. Individual keys can be removed by setting the value to
413
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
414
- # `null`.
415
- metadata:,
416
- starting_balance:,
417
- event_id: nil,
418
- invoice_id: nil,
419
- price_id: nil,
420
- entry_type: :decrement
421
- )
422
- end
423
-
424
- sig do
425
- override.returns(
426
- {
427
- id: String,
428
- amount: Float,
429
- created_at: Time,
430
- credit_block:
431
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock,
432
- currency: String,
433
- customer:
434
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer,
435
- description: T.nilable(String),
436
- ending_balance: Float,
437
- entry_status:
438
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol,
439
- entry_type: Symbol,
440
- ledger_sequence_number: Integer,
441
- metadata: T::Hash[Symbol, String],
442
- starting_balance: Float,
443
- event_id: T.nilable(String),
444
- invoice_id: T.nilable(String),
445
- price_id: T.nilable(String)
446
- }
447
- )
448
- end
449
- def to_hash
450
- end
451
-
452
- class CreditBlock < Orb::Internal::Type::BaseModel
453
- OrHash =
454
- T.type_alias do
455
- T.any(
456
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::CreditBlock,
457
- Orb::Internal::AnyHash
458
- )
459
- end
460
-
461
- sig { returns(String) }
462
- attr_accessor :id
463
-
464
- sig { returns(T.nilable(Time)) }
465
- attr_accessor :expiry_date
466
-
467
- sig { returns(T.nilable(String)) }
468
- attr_accessor :per_unit_cost_basis
469
-
470
- sig do
471
- params(
472
- id: String,
473
- expiry_date: T.nilable(Time),
474
- per_unit_cost_basis: T.nilable(String)
475
- ).returns(T.attached_class)
476
- end
477
- def self.new(id:, expiry_date:, per_unit_cost_basis:)
478
- end
479
-
480
- sig do
481
- override.returns(
482
- {
483
- id: String,
484
- expiry_date: T.nilable(Time),
485
- per_unit_cost_basis: T.nilable(String)
486
- }
487
- )
488
- end
489
- def to_hash
490
- end
491
- end
492
-
493
- class Customer < Orb::Internal::Type::BaseModel
494
- OrHash =
495
- T.type_alias do
496
- T.any(
497
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::Customer,
498
- Orb::Internal::AnyHash
499
- )
500
- end
501
-
502
- sig { returns(String) }
503
- attr_accessor :id
504
-
505
- sig { returns(T.nilable(String)) }
506
- attr_accessor :external_customer_id
507
-
508
- sig do
509
- params(
510
- id: String,
511
- external_customer_id: T.nilable(String)
512
- ).returns(T.attached_class)
513
- end
514
- def self.new(id:, external_customer_id:)
515
- end
516
-
517
- sig do
518
- override.returns(
519
- { id: String, external_customer_id: T.nilable(String) }
520
- )
521
- end
522
- def to_hash
523
- end
524
- end
525
-
526
- module EntryStatus
527
- extend Orb::Internal::Type::Enum
528
-
529
- TaggedSymbol =
530
- T.type_alias do
531
- T.all(
532
- Symbol,
533
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus
534
- )
535
- end
536
- OrSymbol = T.type_alias { T.any(Symbol, String) }
537
-
538
- COMMITTED =
539
- T.let(
540
- :committed,
541
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol
542
- )
543
- PENDING =
544
- T.let(
545
- :pending,
546
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol
547
- )
548
-
549
- sig do
550
- override.returns(
551
- T::Array[
552
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Decrement::EntryStatus::TaggedSymbol
553
- ]
554
- )
555
- end
556
- def self.values
557
- end
558
- end
559
- end
560
-
561
- class ExpirationChange < Orb::Internal::Type::BaseModel
562
- OrHash =
563
- T.type_alias do
564
- T.any(
565
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange,
566
- Orb::Internal::AnyHash
567
- )
568
- end
569
-
570
- sig { returns(String) }
571
- attr_accessor :id
572
-
573
- sig { returns(Float) }
574
- attr_accessor :amount
575
-
576
- sig { returns(Time) }
577
- attr_accessor :created_at
578
-
579
- sig do
580
- returns(
581
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock
582
- )
583
- end
584
- attr_reader :credit_block
585
-
586
- sig do
587
- params(
588
- credit_block:
589
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock::OrHash
590
- ).void
591
- end
592
- attr_writer :credit_block
593
-
594
- sig { returns(String) }
595
- attr_accessor :currency
596
-
597
- sig do
598
- returns(
599
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer
600
- )
601
- end
602
- attr_reader :customer
603
-
604
- sig do
605
- params(
606
- customer:
607
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer::OrHash
608
- ).void
609
- end
610
- attr_writer :customer
611
-
612
- sig { returns(T.nilable(String)) }
613
- attr_accessor :description
614
-
615
- sig { returns(Float) }
616
- attr_accessor :ending_balance
617
-
618
- sig do
619
- returns(
620
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol
621
- )
622
- end
623
- attr_accessor :entry_status
624
-
625
- sig { returns(Symbol) }
626
- attr_accessor :entry_type
627
-
628
- sig { returns(Integer) }
629
- attr_accessor :ledger_sequence_number
630
-
631
- # User specified key-value pairs for the resource. If not present, this defaults
632
- # to an empty dictionary. Individual keys can be removed by setting the value to
633
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
634
- # `null`.
635
- sig { returns(T::Hash[Symbol, String]) }
636
- attr_accessor :metadata
637
-
638
- sig { returns(T.nilable(Time)) }
639
- attr_accessor :new_block_expiry_date
640
-
641
- sig { returns(Float) }
642
- attr_accessor :starting_balance
643
-
644
- sig do
645
- params(
646
- id: String,
647
- amount: Float,
648
- created_at: Time,
649
- credit_block:
650
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock::OrHash,
651
- currency: String,
652
- customer:
653
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer::OrHash,
654
- description: T.nilable(String),
655
- ending_balance: Float,
656
- entry_status:
657
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::OrSymbol,
658
- ledger_sequence_number: Integer,
659
- metadata: T::Hash[Symbol, String],
660
- new_block_expiry_date: T.nilable(Time),
661
- starting_balance: Float,
662
- entry_type: Symbol
663
- ).returns(T.attached_class)
664
- end
665
- def self.new(
666
- id:,
667
- amount:,
668
- created_at:,
669
- credit_block:,
670
- currency:,
671
- customer:,
672
- description:,
673
- ending_balance:,
674
- entry_status:,
675
- ledger_sequence_number:,
676
- # User specified key-value pairs for the resource. If not present, this defaults
677
- # to an empty dictionary. Individual keys can be removed by setting the value to
678
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
679
- # `null`.
680
- metadata:,
681
- new_block_expiry_date:,
682
- starting_balance:,
683
- entry_type: :expiration_change
684
- )
685
- end
686
-
687
- sig do
688
- override.returns(
689
- {
690
- id: String,
691
- amount: Float,
692
- created_at: Time,
693
- credit_block:
694
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock,
695
- currency: String,
696
- customer:
697
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer,
698
- description: T.nilable(String),
699
- ending_balance: Float,
700
- entry_status:
701
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol,
702
- entry_type: Symbol,
703
- ledger_sequence_number: Integer,
704
- metadata: T::Hash[Symbol, String],
705
- new_block_expiry_date: T.nilable(Time),
706
- starting_balance: Float
707
- }
708
- )
709
- end
710
- def to_hash
711
- end
712
-
713
- class CreditBlock < Orb::Internal::Type::BaseModel
714
- OrHash =
715
- T.type_alias do
716
- T.any(
717
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::CreditBlock,
718
- Orb::Internal::AnyHash
719
- )
720
- end
721
-
722
- sig { returns(String) }
723
- attr_accessor :id
724
-
725
- sig { returns(T.nilable(Time)) }
726
- attr_accessor :expiry_date
727
-
728
- sig { returns(T.nilable(String)) }
729
- attr_accessor :per_unit_cost_basis
730
-
731
- sig do
732
- params(
733
- id: String,
734
- expiry_date: T.nilable(Time),
735
- per_unit_cost_basis: T.nilable(String)
736
- ).returns(T.attached_class)
737
- end
738
- def self.new(id:, expiry_date:, per_unit_cost_basis:)
739
- end
740
-
741
- sig do
742
- override.returns(
743
- {
744
- id: String,
745
- expiry_date: T.nilable(Time),
746
- per_unit_cost_basis: T.nilable(String)
747
- }
748
- )
749
- end
750
- def to_hash
751
- end
752
- end
753
-
754
- class Customer < Orb::Internal::Type::BaseModel
755
- OrHash =
756
- T.type_alias do
757
- T.any(
758
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::Customer,
759
- Orb::Internal::AnyHash
760
- )
761
- end
762
-
763
- sig { returns(String) }
764
- attr_accessor :id
765
-
766
- sig { returns(T.nilable(String)) }
767
- attr_accessor :external_customer_id
768
-
769
- sig do
770
- params(
771
- id: String,
772
- external_customer_id: T.nilable(String)
773
- ).returns(T.attached_class)
774
- end
775
- def self.new(id:, external_customer_id:)
776
- end
777
-
778
- sig do
779
- override.returns(
780
- { id: String, external_customer_id: T.nilable(String) }
781
- )
782
- end
783
- def to_hash
784
- end
785
- end
786
-
787
- module EntryStatus
788
- extend Orb::Internal::Type::Enum
789
-
790
- TaggedSymbol =
791
- T.type_alias do
792
- T.all(
793
- Symbol,
794
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus
795
- )
796
- end
797
- OrSymbol = T.type_alias { T.any(Symbol, String) }
798
-
799
- COMMITTED =
800
- T.let(
801
- :committed,
802
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol
803
- )
804
- PENDING =
805
- T.let(
806
- :pending,
807
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol
808
- )
809
-
810
- sig do
811
- override.returns(
812
- T::Array[
813
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChange::EntryStatus::TaggedSymbol
814
- ]
815
- )
816
- end
817
- def self.values
818
- end
819
- end
820
- end
821
-
822
- class CreditBlockExpiry < Orb::Internal::Type::BaseModel
823
- OrHash =
824
- T.type_alias do
825
- T.any(
826
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry,
827
- Orb::Internal::AnyHash
828
- )
829
- end
830
-
831
- sig { returns(String) }
832
- attr_accessor :id
833
-
834
- sig { returns(Float) }
835
- attr_accessor :amount
836
-
837
- sig { returns(Time) }
838
- attr_accessor :created_at
839
-
840
- sig do
841
- returns(
842
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock
843
- )
844
- end
845
- attr_reader :credit_block
846
-
847
- sig do
848
- params(
849
- credit_block:
850
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock::OrHash
851
- ).void
852
- end
853
- attr_writer :credit_block
854
-
855
- sig { returns(String) }
856
- attr_accessor :currency
857
-
858
- sig do
859
- returns(
860
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer
861
- )
862
- end
863
- attr_reader :customer
864
-
865
- sig do
866
- params(
867
- customer:
868
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer::OrHash
869
- ).void
870
- end
871
- attr_writer :customer
872
-
873
- sig { returns(T.nilable(String)) }
874
- attr_accessor :description
875
-
876
- sig { returns(Float) }
877
- attr_accessor :ending_balance
878
-
879
- sig do
880
- returns(
881
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
882
- )
883
- end
884
- attr_accessor :entry_status
885
-
886
- sig { returns(Symbol) }
887
- attr_accessor :entry_type
888
-
889
- sig { returns(Integer) }
890
- attr_accessor :ledger_sequence_number
891
-
892
- # User specified key-value pairs for the resource. If not present, this defaults
893
- # to an empty dictionary. Individual keys can be removed by setting the value to
894
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
895
- # `null`.
896
- sig { returns(T::Hash[Symbol, String]) }
897
- attr_accessor :metadata
898
-
899
- sig { returns(Float) }
900
- attr_accessor :starting_balance
901
-
902
- sig do
903
- params(
904
- id: String,
905
- amount: Float,
906
- created_at: Time,
907
- credit_block:
908
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock::OrHash,
909
- currency: String,
910
- customer:
911
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer::OrHash,
912
- description: T.nilable(String),
913
- ending_balance: Float,
914
- entry_status:
915
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::OrSymbol,
916
- ledger_sequence_number: Integer,
917
- metadata: T::Hash[Symbol, String],
918
- starting_balance: Float,
919
- entry_type: Symbol
920
- ).returns(T.attached_class)
921
- end
922
- def self.new(
923
- id:,
924
- amount:,
925
- created_at:,
926
- credit_block:,
927
- currency:,
928
- customer:,
929
- description:,
930
- ending_balance:,
931
- entry_status:,
932
- ledger_sequence_number:,
933
- # User specified key-value pairs for the resource. If not present, this defaults
934
- # to an empty dictionary. Individual keys can be removed by setting the value to
935
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
936
- # `null`.
937
- metadata:,
938
- starting_balance:,
939
- entry_type: :credit_block_expiry
940
- )
941
- end
942
-
943
- sig do
944
- override.returns(
945
- {
946
- id: String,
947
- amount: Float,
948
- created_at: Time,
949
- credit_block:
950
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock,
951
- currency: String,
952
- customer:
953
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer,
954
- description: T.nilable(String),
955
- ending_balance: Float,
956
- entry_status:
957
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol,
958
- entry_type: Symbol,
959
- ledger_sequence_number: Integer,
960
- metadata: T::Hash[Symbol, String],
961
- starting_balance: Float
962
- }
963
- )
964
- end
965
- def to_hash
966
- end
967
-
968
- class CreditBlock < Orb::Internal::Type::BaseModel
969
- OrHash =
970
- T.type_alias do
971
- T.any(
972
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::CreditBlock,
973
- Orb::Internal::AnyHash
974
- )
975
- end
976
-
977
- sig { returns(String) }
978
- attr_accessor :id
979
-
980
- sig { returns(T.nilable(Time)) }
981
- attr_accessor :expiry_date
982
-
983
- sig { returns(T.nilable(String)) }
984
- attr_accessor :per_unit_cost_basis
985
-
986
- sig do
987
- params(
988
- id: String,
989
- expiry_date: T.nilable(Time),
990
- per_unit_cost_basis: T.nilable(String)
991
- ).returns(T.attached_class)
992
- end
993
- def self.new(id:, expiry_date:, per_unit_cost_basis:)
994
- end
995
-
996
- sig do
997
- override.returns(
998
- {
999
- id: String,
1000
- expiry_date: T.nilable(Time),
1001
- per_unit_cost_basis: T.nilable(String)
1002
- }
1003
- )
1004
- end
1005
- def to_hash
1006
- end
1007
- end
1008
-
1009
- class Customer < Orb::Internal::Type::BaseModel
1010
- OrHash =
1011
- T.type_alias do
1012
- T.any(
1013
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::Customer,
1014
- Orb::Internal::AnyHash
1015
- )
1016
- end
1017
-
1018
- sig { returns(String) }
1019
- attr_accessor :id
1020
-
1021
- sig { returns(T.nilable(String)) }
1022
- attr_accessor :external_customer_id
1023
-
1024
- sig do
1025
- params(
1026
- id: String,
1027
- external_customer_id: T.nilable(String)
1028
- ).returns(T.attached_class)
1029
- end
1030
- def self.new(id:, external_customer_id:)
1031
- end
1032
-
1033
- sig do
1034
- override.returns(
1035
- { id: String, external_customer_id: T.nilable(String) }
1036
- )
1037
- end
1038
- def to_hash
1039
- end
1040
- end
1041
-
1042
- module EntryStatus
1043
- extend Orb::Internal::Type::Enum
1044
-
1045
- TaggedSymbol =
1046
- T.type_alias do
1047
- T.all(
1048
- Symbol,
1049
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus
1050
- )
1051
- end
1052
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1053
-
1054
- COMMITTED =
1055
- T.let(
1056
- :committed,
1057
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
1058
- )
1059
- PENDING =
1060
- T.let(
1061
- :pending,
1062
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
1063
- )
1064
-
1065
- sig do
1066
- override.returns(
1067
- T::Array[
1068
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
1069
- ]
1070
- )
1071
- end
1072
- def self.values
1073
- end
1074
- end
1075
- end
1076
-
1077
- class Void < Orb::Internal::Type::BaseModel
1078
- OrHash =
1079
- T.type_alias do
1080
- T.any(
1081
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void,
1082
- Orb::Internal::AnyHash
1083
- )
1084
- end
1085
-
1086
- sig { returns(String) }
1087
- attr_accessor :id
1088
-
1089
- sig { returns(Float) }
1090
- attr_accessor :amount
1091
-
1092
- sig { returns(Time) }
1093
- attr_accessor :created_at
1094
-
1095
- sig do
1096
- returns(
1097
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock
1098
- )
1099
- end
1100
- attr_reader :credit_block
1101
-
1102
- sig do
1103
- params(
1104
- credit_block:
1105
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock::OrHash
1106
- ).void
1107
- end
1108
- attr_writer :credit_block
1109
-
1110
- sig { returns(String) }
1111
- attr_accessor :currency
1112
-
1113
- sig do
1114
- returns(
1115
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer
1116
- )
1117
- end
1118
- attr_reader :customer
1119
-
1120
- sig do
1121
- params(
1122
- customer:
1123
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer::OrHash
1124
- ).void
1125
- end
1126
- attr_writer :customer
1127
-
1128
- sig { returns(T.nilable(String)) }
1129
- attr_accessor :description
1130
-
1131
- sig { returns(Float) }
1132
- attr_accessor :ending_balance
1133
-
1134
- sig do
1135
- returns(
1136
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol
1137
- )
1138
- end
1139
- attr_accessor :entry_status
1140
-
1141
- sig { returns(Symbol) }
1142
- attr_accessor :entry_type
1143
-
1144
- sig { returns(Integer) }
1145
- attr_accessor :ledger_sequence_number
1146
-
1147
- # User specified key-value pairs for the resource. If not present, this defaults
1148
- # to an empty dictionary. Individual keys can be removed by setting the value to
1149
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1150
- # `null`.
1151
- sig { returns(T::Hash[Symbol, String]) }
1152
- attr_accessor :metadata
1153
-
1154
- sig { returns(Float) }
1155
- attr_accessor :starting_balance
1156
-
1157
- sig { returns(Float) }
1158
- attr_accessor :void_amount
1159
-
1160
- sig { returns(T.nilable(String)) }
1161
- attr_accessor :void_reason
1162
-
1163
- sig do
1164
- params(
1165
- id: String,
1166
- amount: Float,
1167
- created_at: Time,
1168
- credit_block:
1169
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock::OrHash,
1170
- currency: String,
1171
- customer:
1172
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer::OrHash,
1173
- description: T.nilable(String),
1174
- ending_balance: Float,
1175
- entry_status:
1176
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::OrSymbol,
1177
- ledger_sequence_number: Integer,
1178
- metadata: T::Hash[Symbol, String],
1179
- starting_balance: Float,
1180
- void_amount: Float,
1181
- void_reason: T.nilable(String),
1182
- entry_type: Symbol
1183
- ).returns(T.attached_class)
1184
- end
1185
- def self.new(
1186
- id:,
1187
- amount:,
1188
- created_at:,
1189
- credit_block:,
1190
- currency:,
1191
- customer:,
1192
- description:,
1193
- ending_balance:,
1194
- entry_status:,
1195
- ledger_sequence_number:,
1196
- # User specified key-value pairs for the resource. If not present, this defaults
1197
- # to an empty dictionary. Individual keys can be removed by setting the value to
1198
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1199
- # `null`.
1200
- metadata:,
1201
- starting_balance:,
1202
- void_amount:,
1203
- void_reason:,
1204
- entry_type: :void
1205
- )
1206
- end
1207
-
1208
- sig do
1209
- override.returns(
1210
- {
1211
- id: String,
1212
- amount: Float,
1213
- created_at: Time,
1214
- credit_block:
1215
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock,
1216
- currency: String,
1217
- customer:
1218
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer,
1219
- description: T.nilable(String),
1220
- ending_balance: Float,
1221
- entry_status:
1222
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol,
1223
- entry_type: Symbol,
1224
- ledger_sequence_number: Integer,
1225
- metadata: T::Hash[Symbol, String],
1226
- starting_balance: Float,
1227
- void_amount: Float,
1228
- void_reason: T.nilable(String)
1229
- }
1230
- )
1231
- end
1232
- def to_hash
1233
- end
1234
-
1235
- class CreditBlock < Orb::Internal::Type::BaseModel
1236
- OrHash =
1237
- T.type_alias do
1238
- T.any(
1239
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::CreditBlock,
1240
- Orb::Internal::AnyHash
1241
- )
1242
- end
1243
-
1244
- sig { returns(String) }
1245
- attr_accessor :id
1246
-
1247
- sig { returns(T.nilable(Time)) }
1248
- attr_accessor :expiry_date
1249
-
1250
- sig { returns(T.nilable(String)) }
1251
- attr_accessor :per_unit_cost_basis
1252
-
1253
- sig do
1254
- params(
1255
- id: String,
1256
- expiry_date: T.nilable(Time),
1257
- per_unit_cost_basis: T.nilable(String)
1258
- ).returns(T.attached_class)
1259
- end
1260
- def self.new(id:, expiry_date:, per_unit_cost_basis:)
1261
- end
1262
-
1263
- sig do
1264
- override.returns(
1265
- {
1266
- id: String,
1267
- expiry_date: T.nilable(Time),
1268
- per_unit_cost_basis: T.nilable(String)
1269
- }
1270
- )
1271
- end
1272
- def to_hash
1273
- end
1274
- end
1275
-
1276
- class Customer < Orb::Internal::Type::BaseModel
1277
- OrHash =
1278
- T.type_alias do
1279
- T.any(
1280
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::Customer,
1281
- Orb::Internal::AnyHash
1282
- )
1283
- end
1284
-
1285
- sig { returns(String) }
1286
- attr_accessor :id
1287
-
1288
- sig { returns(T.nilable(String)) }
1289
- attr_accessor :external_customer_id
1290
-
1291
- sig do
1292
- params(
1293
- id: String,
1294
- external_customer_id: T.nilable(String)
1295
- ).returns(T.attached_class)
1296
- end
1297
- def self.new(id:, external_customer_id:)
1298
- end
1299
-
1300
- sig do
1301
- override.returns(
1302
- { id: String, external_customer_id: T.nilable(String) }
1303
- )
1304
- end
1305
- def to_hash
1306
- end
1307
- end
1308
-
1309
- module EntryStatus
1310
- extend Orb::Internal::Type::Enum
1311
-
1312
- TaggedSymbol =
1313
- T.type_alias do
1314
- T.all(
1315
- Symbol,
1316
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus
1317
- )
1318
- end
1319
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1320
-
1321
- COMMITTED =
1322
- T.let(
1323
- :committed,
1324
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol
1325
- )
1326
- PENDING =
1327
- T.let(
1328
- :pending,
1329
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol
1330
- )
1331
-
1332
- sig do
1333
- override.returns(
1334
- T::Array[
1335
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Void::EntryStatus::TaggedSymbol
1336
- ]
1337
- )
1338
- end
1339
- def self.values
1340
- end
1341
- end
1342
- end
1343
-
1344
- class VoidInitiated < Orb::Internal::Type::BaseModel
1345
- OrHash =
1346
- T.type_alias do
1347
- T.any(
1348
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated,
1349
- Orb::Internal::AnyHash
1350
- )
1351
- end
1352
-
1353
- sig { returns(String) }
1354
- attr_accessor :id
1355
-
1356
- sig { returns(Float) }
1357
- attr_accessor :amount
1358
-
1359
- sig { returns(Time) }
1360
- attr_accessor :created_at
1361
-
1362
- sig do
1363
- returns(
1364
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock
1365
- )
1366
- end
1367
- attr_reader :credit_block
1368
-
1369
- sig do
1370
- params(
1371
- credit_block:
1372
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock::OrHash
1373
- ).void
1374
- end
1375
- attr_writer :credit_block
1376
-
1377
- sig { returns(String) }
1378
- attr_accessor :currency
1379
-
1380
- sig do
1381
- returns(
1382
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer
1383
- )
1384
- end
1385
- attr_reader :customer
1386
-
1387
- sig do
1388
- params(
1389
- customer:
1390
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer::OrHash
1391
- ).void
1392
- end
1393
- attr_writer :customer
1394
-
1395
- sig { returns(T.nilable(String)) }
1396
- attr_accessor :description
1397
-
1398
- sig { returns(Float) }
1399
- attr_accessor :ending_balance
1400
-
1401
- sig do
1402
- returns(
1403
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol
1404
- )
1405
- end
1406
- attr_accessor :entry_status
1407
-
1408
- sig { returns(Symbol) }
1409
- attr_accessor :entry_type
1410
-
1411
- sig { returns(Integer) }
1412
- attr_accessor :ledger_sequence_number
1413
-
1414
- # User specified key-value pairs for the resource. If not present, this defaults
1415
- # to an empty dictionary. Individual keys can be removed by setting the value to
1416
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1417
- # `null`.
1418
- sig { returns(T::Hash[Symbol, String]) }
1419
- attr_accessor :metadata
1420
-
1421
- sig { returns(Time) }
1422
- attr_accessor :new_block_expiry_date
1423
-
1424
- sig { returns(Float) }
1425
- attr_accessor :starting_balance
1426
-
1427
- sig { returns(Float) }
1428
- attr_accessor :void_amount
1429
-
1430
- sig { returns(T.nilable(String)) }
1431
- attr_accessor :void_reason
1432
-
1433
- sig do
1434
- params(
1435
- id: String,
1436
- amount: Float,
1437
- created_at: Time,
1438
- credit_block:
1439
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock::OrHash,
1440
- currency: String,
1441
- customer:
1442
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer::OrHash,
1443
- description: T.nilable(String),
1444
- ending_balance: Float,
1445
- entry_status:
1446
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::OrSymbol,
1447
- ledger_sequence_number: Integer,
1448
- metadata: T::Hash[Symbol, String],
1449
- new_block_expiry_date: Time,
1450
- starting_balance: Float,
1451
- void_amount: Float,
1452
- void_reason: T.nilable(String),
1453
- entry_type: Symbol
1454
- ).returns(T.attached_class)
1455
- end
1456
- def self.new(
1457
- id:,
1458
- amount:,
1459
- created_at:,
1460
- credit_block:,
1461
- currency:,
1462
- customer:,
1463
- description:,
1464
- ending_balance:,
1465
- entry_status:,
1466
- ledger_sequence_number:,
1467
- # User specified key-value pairs for the resource. If not present, this defaults
1468
- # to an empty dictionary. Individual keys can be removed by setting the value to
1469
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1470
- # `null`.
1471
- metadata:,
1472
- new_block_expiry_date:,
1473
- starting_balance:,
1474
- void_amount:,
1475
- void_reason:,
1476
- entry_type: :void_initiated
1477
- )
1478
- end
1479
-
1480
- sig do
1481
- override.returns(
1482
- {
1483
- id: String,
1484
- amount: Float,
1485
- created_at: Time,
1486
- credit_block:
1487
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock,
1488
- currency: String,
1489
- customer:
1490
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer,
1491
- description: T.nilable(String),
1492
- ending_balance: Float,
1493
- entry_status:
1494
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol,
1495
- entry_type: Symbol,
1496
- ledger_sequence_number: Integer,
1497
- metadata: T::Hash[Symbol, String],
1498
- new_block_expiry_date: Time,
1499
- starting_balance: Float,
1500
- void_amount: Float,
1501
- void_reason: T.nilable(String)
1502
- }
1503
- )
1504
- end
1505
- def to_hash
1506
- end
1507
-
1508
- class CreditBlock < Orb::Internal::Type::BaseModel
1509
- OrHash =
1510
- T.type_alias do
1511
- T.any(
1512
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::CreditBlock,
1513
- Orb::Internal::AnyHash
1514
- )
1515
- end
1516
-
1517
- sig { returns(String) }
1518
- attr_accessor :id
1519
-
1520
- sig { returns(T.nilable(Time)) }
1521
- attr_accessor :expiry_date
1522
-
1523
- sig { returns(T.nilable(String)) }
1524
- attr_accessor :per_unit_cost_basis
1525
-
1526
- sig do
1527
- params(
1528
- id: String,
1529
- expiry_date: T.nilable(Time),
1530
- per_unit_cost_basis: T.nilable(String)
1531
- ).returns(T.attached_class)
1532
- end
1533
- def self.new(id:, expiry_date:, per_unit_cost_basis:)
1534
- end
1535
-
1536
- sig do
1537
- override.returns(
1538
- {
1539
- id: String,
1540
- expiry_date: T.nilable(Time),
1541
- per_unit_cost_basis: T.nilable(String)
1542
- }
1543
- )
1544
- end
1545
- def to_hash
1546
- end
1547
- end
1548
-
1549
- class Customer < Orb::Internal::Type::BaseModel
1550
- OrHash =
1551
- T.type_alias do
1552
- T.any(
1553
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::Customer,
1554
- Orb::Internal::AnyHash
1555
- )
1556
- end
1557
-
1558
- sig { returns(String) }
1559
- attr_accessor :id
1560
-
1561
- sig { returns(T.nilable(String)) }
1562
- attr_accessor :external_customer_id
1563
-
1564
- sig do
1565
- params(
1566
- id: String,
1567
- external_customer_id: T.nilable(String)
1568
- ).returns(T.attached_class)
1569
- end
1570
- def self.new(id:, external_customer_id:)
1571
- end
1572
-
1573
- sig do
1574
- override.returns(
1575
- { id: String, external_customer_id: T.nilable(String) }
1576
- )
1577
- end
1578
- def to_hash
1579
- end
1580
- end
1581
-
1582
- module EntryStatus
1583
- extend Orb::Internal::Type::Enum
1584
-
1585
- TaggedSymbol =
1586
- T.type_alias do
1587
- T.all(
1588
- Symbol,
1589
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus
1590
- )
1591
- end
1592
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1593
-
1594
- COMMITTED =
1595
- T.let(
1596
- :committed,
1597
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol
1598
- )
1599
- PENDING =
1600
- T.let(
1601
- :pending,
1602
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol
1603
- )
1604
-
1605
- sig do
1606
- override.returns(
1607
- T::Array[
1608
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiated::EntryStatus::TaggedSymbol
1609
- ]
1610
- )
1611
- end
1612
- def self.values
1613
- end
1614
- end
1615
- end
1616
-
1617
- class Amendment < Orb::Internal::Type::BaseModel
1618
- OrHash =
1619
- T.type_alias do
1620
- T.any(
1621
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment,
1622
- Orb::Internal::AnyHash
1623
- )
1624
- end
1625
-
1626
- sig { returns(String) }
1627
- attr_accessor :id
1628
-
1629
- sig { returns(Float) }
1630
- attr_accessor :amount
1631
-
1632
- sig { returns(Time) }
1633
- attr_accessor :created_at
1634
-
1635
- sig do
1636
- returns(
1637
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock
1638
- )
1639
- end
1640
- attr_reader :credit_block
1641
-
1642
- sig do
1643
- params(
1644
- credit_block:
1645
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock::OrHash
1646
- ).void
1647
- end
1648
- attr_writer :credit_block
1649
-
1650
- sig { returns(String) }
1651
- attr_accessor :currency
1652
-
1653
- sig do
1654
- returns(
1655
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer
1656
- )
1657
- end
1658
- attr_reader :customer
1659
-
1660
- sig do
1661
- params(
1662
- customer:
1663
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer::OrHash
1664
- ).void
1665
- end
1666
- attr_writer :customer
1667
-
1668
- sig { returns(T.nilable(String)) }
1669
- attr_accessor :description
1670
-
1671
- sig { returns(Float) }
1672
- attr_accessor :ending_balance
1673
-
1674
- sig do
1675
- returns(
1676
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol
1677
- )
1678
- end
1679
- attr_accessor :entry_status
1680
-
1681
- sig { returns(Symbol) }
1682
- attr_accessor :entry_type
1683
-
1684
- sig { returns(Integer) }
1685
- attr_accessor :ledger_sequence_number
1686
-
1687
- # User specified key-value pairs for the resource. If not present, this defaults
1688
- # to an empty dictionary. Individual keys can be removed by setting the value to
1689
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1690
- # `null`.
1691
- sig { returns(T::Hash[Symbol, String]) }
1692
- attr_accessor :metadata
1693
-
1694
- sig { returns(Float) }
1695
- attr_accessor :starting_balance
1696
-
1697
- sig do
1698
- params(
1699
- id: String,
1700
- amount: Float,
1701
- created_at: Time,
1702
- credit_block:
1703
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock::OrHash,
1704
- currency: String,
1705
- customer:
1706
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer::OrHash,
1707
- description: T.nilable(String),
1708
- ending_balance: Float,
1709
- entry_status:
1710
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::OrSymbol,
1711
- ledger_sequence_number: Integer,
1712
- metadata: T::Hash[Symbol, String],
1713
- starting_balance: Float,
1714
- entry_type: Symbol
1715
- ).returns(T.attached_class)
1716
- end
1717
- def self.new(
1718
- id:,
1719
- amount:,
1720
- created_at:,
1721
- credit_block:,
1722
- currency:,
1723
- customer:,
1724
- description:,
1725
- ending_balance:,
1726
- entry_status:,
1727
- ledger_sequence_number:,
1728
- # User specified key-value pairs for the resource. If not present, this defaults
1729
- # to an empty dictionary. Individual keys can be removed by setting the value to
1730
- # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1731
- # `null`.
1732
- metadata:,
1733
- starting_balance:,
1734
- entry_type: :amendment
1735
- )
1736
- end
1737
-
1738
- sig do
1739
- override.returns(
1740
- {
1741
- id: String,
1742
- amount: Float,
1743
- created_at: Time,
1744
- credit_block:
1745
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock,
1746
- currency: String,
1747
- customer:
1748
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer,
1749
- description: T.nilable(String),
1750
- ending_balance: Float,
1751
- entry_status:
1752
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol,
1753
- entry_type: Symbol,
1754
- ledger_sequence_number: Integer,
1755
- metadata: T::Hash[Symbol, String],
1756
- starting_balance: Float
1757
- }
1758
- )
1759
- end
1760
- def to_hash
1761
- end
1762
-
1763
- class CreditBlock < Orb::Internal::Type::BaseModel
1764
- OrHash =
1765
- T.type_alias do
1766
- T.any(
1767
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::CreditBlock,
1768
- Orb::Internal::AnyHash
1769
- )
1770
- end
1771
-
1772
- sig { returns(String) }
1773
- attr_accessor :id
1774
-
1775
- sig { returns(T.nilable(Time)) }
1776
- attr_accessor :expiry_date
1777
-
1778
- sig { returns(T.nilable(String)) }
1779
- attr_accessor :per_unit_cost_basis
1780
-
1781
- sig do
1782
- params(
1783
- id: String,
1784
- expiry_date: T.nilable(Time),
1785
- per_unit_cost_basis: T.nilable(String)
1786
- ).returns(T.attached_class)
1787
- end
1788
- def self.new(id:, expiry_date:, per_unit_cost_basis:)
1789
- end
1790
-
1791
- sig do
1792
- override.returns(
1793
- {
1794
- id: String,
1795
- expiry_date: T.nilable(Time),
1796
- per_unit_cost_basis: T.nilable(String)
1797
- }
1798
- )
1799
- end
1800
- def to_hash
1801
- end
1802
- end
1803
-
1804
- class Customer < Orb::Internal::Type::BaseModel
1805
- OrHash =
1806
- T.type_alias do
1807
- T.any(
1808
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::Customer,
1809
- Orb::Internal::AnyHash
1810
- )
1811
- end
1812
-
1813
- sig { returns(String) }
1814
- attr_accessor :id
1815
-
1816
- sig { returns(T.nilable(String)) }
1817
- attr_accessor :external_customer_id
1818
-
1819
- sig do
1820
- params(
1821
- id: String,
1822
- external_customer_id: T.nilable(String)
1823
- ).returns(T.attached_class)
1824
- end
1825
- def self.new(id:, external_customer_id:)
1826
- end
1827
-
1828
- sig do
1829
- override.returns(
1830
- { id: String, external_customer_id: T.nilable(String) }
1831
- )
1832
- end
1833
- def to_hash
1834
- end
1835
- end
1836
-
1837
- module EntryStatus
1838
- extend Orb::Internal::Type::Enum
1839
-
1840
- TaggedSymbol =
1841
- T.type_alias do
1842
- T.all(
1843
- Symbol,
1844
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus
1845
- )
1846
- end
1847
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1848
-
1849
- COMMITTED =
1850
- T.let(
1851
- :committed,
1852
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol
1853
- )
1854
- PENDING =
1855
- T.let(
1856
- :pending,
1857
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol
1858
- )
1859
-
1860
- sig do
1861
- override.returns(
1862
- T::Array[
1863
- Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Amendment::EntryStatus::TaggedSymbol
1864
- ]
1865
- )
1866
- end
1867
- def self.values
1868
- end
1869
- end
1870
- end
1871
-
1872
25
  sig do
1873
26
  override.returns(
1874
27
  T::Array[