orb-billing 0.3.2 → 0.5.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 (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +95 -55
  4. data/lib/orb/client.rb +4 -4
  5. data/lib/orb/errors.rb +1 -1
  6. data/lib/orb/internal/transport/base_client.rb +74 -5
  7. data/lib/orb/internal/transport/pooled_net_requester.rb +17 -1
  8. data/lib/orb/internal/type/array_of.rb +1 -1
  9. data/lib/orb/internal/type/base_model.rb +70 -30
  10. data/lib/orb/internal/type/converter.rb +18 -0
  11. data/lib/orb/internal/type/enum.rb +1 -0
  12. data/lib/orb/internal/type/hash_of.rb +1 -1
  13. data/lib/orb/internal/type/union.rb +1 -0
  14. data/lib/orb/internal/util.rb +56 -0
  15. data/lib/orb/internal.rb +6 -0
  16. data/lib/orb/models/coupon.rb +4 -0
  17. data/lib/orb/models/coupon_create_params.rb +6 -0
  18. data/lib/orb/models/customer_create_params.rb +9 -0
  19. data/lib/orb/models/customer_update_by_external_id_params.rb +9 -0
  20. data/lib/orb/models/customer_update_params.rb +9 -0
  21. data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +14 -0
  22. data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +14 -0
  23. data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +14 -0
  24. data/lib/orb/models/customers/credits/ledger_list_response.rb +14 -0
  25. data/lib/orb/models/discount.rb +6 -0
  26. data/lib/orb/models/evaluate_price_group.rb +4 -0
  27. data/lib/orb/models/invoice.rb +22 -0
  28. data/lib/orb/models/invoice_fetch_upcoming_response.rb +22 -0
  29. data/lib/orb/models/invoice_level_discount.rb +4 -0
  30. data/lib/orb/models/invoice_line_item_create_response.rb +22 -0
  31. data/lib/orb/models/plan.rb +12 -0
  32. data/lib/orb/models/plan_create_params.rb +32 -0
  33. data/lib/orb/models/price.rb +35 -0
  34. data/lib/orb/models/subscription.rb +22 -0
  35. data/lib/orb/models/subscription_cancel_response.rb +22 -0
  36. data/lib/orb/models/subscription_change_apply_response.rb +22 -0
  37. data/lib/orb/models/subscription_change_cancel_response.rb +22 -0
  38. data/lib/orb/models/subscription_change_retrieve_response.rb +22 -0
  39. data/lib/orb/models/subscription_create_params.rb +88 -0
  40. data/lib/orb/models/subscription_create_response.rb +22 -0
  41. data/lib/orb/models/subscription_price_intervals_params.rb +89 -0
  42. data/lib/orb/models/subscription_price_intervals_response.rb +22 -0
  43. data/lib/orb/models/subscription_schedule_plan_change_params.rb +88 -0
  44. data/lib/orb/models/subscription_schedule_plan_change_response.rb +22 -0
  45. data/lib/orb/models/subscription_trigger_phase_response.rb +22 -0
  46. data/lib/orb/models/subscription_unschedule_cancellation_response.rb +22 -0
  47. data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +22 -0
  48. data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +22 -0
  49. data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +22 -0
  50. data/lib/orb/models/subscription_update_trial_params.rb +4 -0
  51. data/lib/orb/models/subscription_update_trial_response.rb +22 -0
  52. data/lib/orb/models/subscription_usage.rb +9 -0
  53. data/lib/orb/models.rb +24 -0
  54. data/lib/orb/request_options.rb +4 -0
  55. data/lib/orb/version.rb +1 -1
  56. data/lib/orb.rb +2 -0
  57. data/rbi/orb/internal/page.rbi +2 -1
  58. data/rbi/orb/internal/transport/base_client.rbi +31 -8
  59. data/rbi/orb/internal/transport/pooled_net_requester.rbi +10 -5
  60. data/rbi/orb/internal/type/base_model.rbi +31 -15
  61. data/rbi/orb/internal/type/base_page.rbi +1 -1
  62. data/rbi/orb/internal/type/converter.rbi +2 -0
  63. data/rbi/orb/internal/type/enum.rbi +1 -0
  64. data/rbi/orb/internal/type/union.rbi +1 -0
  65. data/rbi/orb/internal/util.rbi +28 -7
  66. data/rbi/orb/internal.rbi +2 -0
  67. data/rbi/orb/models/alert.rbi +13 -6
  68. data/rbi/orb/models/alert_create_for_customer_params.rbi +11 -2
  69. data/rbi/orb/models/alert_create_for_external_customer_params.rbi +14 -2
  70. data/rbi/orb/models/alert_create_for_subscription_params.rbi +11 -2
  71. data/rbi/orb/models/alert_disable_params.rbi +2 -1
  72. data/rbi/orb/models/alert_enable_params.rbi +2 -1
  73. data/rbi/orb/models/alert_list_params.rbi +2 -1
  74. data/rbi/orb/models/alert_retrieve_params.rbi +2 -1
  75. data/rbi/orb/models/alert_update_params.rbi +6 -2
  76. data/rbi/orb/models/amount_discount.rbi +2 -1
  77. data/rbi/orb/models/billable_metric.rbi +2 -1
  78. data/rbi/orb/models/coupon.rbi +1 -1
  79. data/rbi/orb/models/coupon_archive_params.rbi +2 -1
  80. data/rbi/orb/models/coupon_create_params.rbi +16 -3
  81. data/rbi/orb/models/coupon_fetch_params.rbi +2 -1
  82. data/rbi/orb/models/coupon_list_params.rbi +2 -1
  83. data/rbi/orb/models/coupons/subscription_list_params.rbi +4 -1
  84. data/rbi/orb/models/credit_note.rbi +45 -9
  85. data/rbi/orb/models/credit_note_create_params.rbi +8 -2
  86. data/rbi/orb/models/credit_note_fetch_params.rbi +4 -1
  87. data/rbi/orb/models/credit_note_list_params.rbi +4 -1
  88. data/rbi/orb/models/customer.rbi +41 -10
  89. data/rbi/orb/models/customer_create_params.rbi +61 -10
  90. data/rbi/orb/models/customer_delete_params.rbi +4 -1
  91. data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +4 -1
  92. data/rbi/orb/models/customer_fetch_params.rbi +2 -1
  93. data/rbi/orb/models/customer_list_params.rbi +2 -1
  94. data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +7 -1
  95. data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +7 -1
  96. data/rbi/orb/models/customer_update_by_external_id_params.rbi +67 -10
  97. data/rbi/orb/models/customer_update_params.rbi +61 -10
  98. data/rbi/orb/models/customers/balance_transaction_create_params.rbi +7 -1
  99. data/rbi/orb/models/customers/balance_transaction_create_response.rbi +21 -3
  100. data/rbi/orb/models/customers/balance_transaction_list_params.rbi +7 -1
  101. data/rbi/orb/models/customers/balance_transaction_list_response.rbi +21 -3
  102. data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +7 -1
  103. data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +21 -3
  104. data/rbi/orb/models/customers/cost_list_params.rbi +4 -1
  105. data/rbi/orb/models/customers/cost_list_response.rbi +21 -3
  106. data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +7 -1
  107. data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +7 -1
  108. data/rbi/orb/models/customers/credit_list_params.rbi +4 -1
  109. data/rbi/orb/models/customers/credit_list_response.rbi +7 -1
  110. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +14 -2
  111. data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +133 -21
  112. data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +14 -2
  113. data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +133 -21
  114. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +7 -1
  115. data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +133 -21
  116. data/rbi/orb/models/customers/credits/ledger_list_params.rbi +7 -1
  117. data/rbi/orb/models/customers/credits/ledger_list_response.rbi +133 -21
  118. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +14 -2
  119. data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +14 -2
  120. data/rbi/orb/models/customers/credits/top_up_create_params.rbi +14 -2
  121. data/rbi/orb/models/customers/credits/top_up_create_response.rbi +14 -2
  122. data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +7 -1
  123. data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +7 -1
  124. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +7 -1
  125. data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +14 -2
  126. data/rbi/orb/models/customers/credits/top_up_list_params.rbi +7 -1
  127. data/rbi/orb/models/customers/credits/top_up_list_response.rbi +14 -2
  128. data/rbi/orb/models/dimensional_price_group.rbi +4 -1
  129. data/rbi/orb/models/dimensional_price_group_create_params.rbi +4 -1
  130. data/rbi/orb/models/dimensional_price_group_list_params.rbi +4 -1
  131. data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +7 -1
  132. data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +7 -1
  133. data/rbi/orb/models/dimensional_price_groups.rbi +4 -1
  134. data/rbi/orb/models/evaluate_price_group.rbi +2 -1
  135. data/rbi/orb/models/event_deprecate_params.rbi +4 -1
  136. data/rbi/orb/models/event_deprecate_response.rbi +4 -1
  137. data/rbi/orb/models/event_ingest_params.rbi +6 -2
  138. data/rbi/orb/models/event_ingest_response.rbi +18 -3
  139. data/rbi/orb/models/event_search_params.rbi +2 -1
  140. data/rbi/orb/models/event_search_response.rbi +11 -2
  141. data/rbi/orb/models/event_update_params.rbi +2 -1
  142. data/rbi/orb/models/event_update_response.rbi +4 -1
  143. data/rbi/orb/models/events/backfill_close_params.rbi +4 -1
  144. data/rbi/orb/models/events/backfill_close_response.rbi +7 -1
  145. data/rbi/orb/models/events/backfill_create_params.rbi +4 -1
  146. data/rbi/orb/models/events/backfill_create_response.rbi +7 -1
  147. data/rbi/orb/models/events/backfill_fetch_params.rbi +4 -1
  148. data/rbi/orb/models/events/backfill_fetch_response.rbi +7 -1
  149. data/rbi/orb/models/events/backfill_list_params.rbi +4 -1
  150. data/rbi/orb/models/events/backfill_list_response.rbi +7 -1
  151. data/rbi/orb/models/events/backfill_revert_params.rbi +4 -1
  152. data/rbi/orb/models/events/backfill_revert_response.rbi +7 -1
  153. data/rbi/orb/models/events/event_volumes.rbi +8 -2
  154. data/rbi/orb/models/events/volume_list_params.rbi +4 -1
  155. data/rbi/orb/models/invoice.rbi +156 -31
  156. data/rbi/orb/models/invoice_create_params.rbi +13 -3
  157. data/rbi/orb/models/invoice_fetch_params.rbi +2 -1
  158. data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +4 -1
  159. data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +212 -31
  160. data/rbi/orb/models/invoice_issue_params.rbi +2 -1
  161. data/rbi/orb/models/invoice_line_item_create_params.rbi +4 -1
  162. data/rbi/orb/models/invoice_line_item_create_response.rbi +119 -17
  163. data/rbi/orb/models/invoice_list_params.rbi +2 -1
  164. data/rbi/orb/models/invoice_mark_paid_params.rbi +4 -1
  165. data/rbi/orb/models/invoice_pay_params.rbi +2 -1
  166. data/rbi/orb/models/invoice_update_params.rbi +2 -1
  167. data/rbi/orb/models/invoice_void_params.rbi +2 -1
  168. data/rbi/orb/models/item.rbi +5 -2
  169. data/rbi/orb/models/item_create_params.rbi +2 -1
  170. data/rbi/orb/models/item_fetch_params.rbi +2 -1
  171. data/rbi/orb/models/item_list_params.rbi +2 -1
  172. data/rbi/orb/models/item_update_params.rbi +9 -2
  173. data/rbi/orb/models/metric_create_params.rbi +2 -1
  174. data/rbi/orb/models/metric_fetch_params.rbi +2 -1
  175. data/rbi/orb/models/metric_list_params.rbi +2 -1
  176. data/rbi/orb/models/metric_update_params.rbi +2 -1
  177. data/rbi/orb/models/pagination_metadata.rbi +2 -1
  178. data/rbi/orb/models/percentage_discount.rbi +2 -1
  179. data/rbi/orb/models/plan.rbi +50 -14
  180. data/rbi/orb/models/plan_create_params.rbi +604 -89
  181. data/rbi/orb/models/plan_fetch_params.rbi +2 -1
  182. data/rbi/orb/models/plan_list_params.rbi +2 -1
  183. data/rbi/orb/models/plan_update_params.rbi +2 -1
  184. data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +4 -1
  185. data/rbi/orb/models/plans/external_plan_id_update_params.rbi +7 -1
  186. data/rbi/orb/models/price.rbi +1624 -270
  187. data/rbi/orb/models/price_create_params.rbi +100 -18
  188. data/rbi/orb/models/price_evaluate_params.rbi +2 -1
  189. data/rbi/orb/models/price_evaluate_response.rbi +4 -1
  190. data/rbi/orb/models/price_fetch_params.rbi +2 -1
  191. data/rbi/orb/models/price_list_params.rbi +2 -1
  192. data/rbi/orb/models/price_update_params.rbi +2 -1
  193. data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +7 -1
  194. data/rbi/orb/models/prices/external_price_id_update_params.rbi +7 -1
  195. data/rbi/orb/models/subscription.rbi +109 -19
  196. data/rbi/orb/models/subscription_cancel_params.rbi +4 -1
  197. data/rbi/orb/models/subscription_cancel_response.rbi +137 -20
  198. data/rbi/orb/models/subscription_change_apply_params.rbi +4 -1
  199. data/rbi/orb/models/subscription_change_apply_response.rbi +142 -21
  200. data/rbi/orb/models/subscription_change_cancel_params.rbi +4 -1
  201. data/rbi/orb/models/subscription_change_cancel_response.rbi +142 -21
  202. data/rbi/orb/models/subscription_change_retrieve_params.rbi +4 -1
  203. data/rbi/orb/models/subscription_change_retrieve_response.rbi +142 -21
  204. data/rbi/orb/models/subscription_create_params.rbi +1257 -198
  205. data/rbi/orb/models/subscription_create_response.rbi +137 -20
  206. data/rbi/orb/models/subscription_fetch_costs_params.rbi +4 -1
  207. data/rbi/orb/models/subscription_fetch_costs_response.rbi +21 -3
  208. data/rbi/orb/models/subscription_fetch_params.rbi +4 -1
  209. data/rbi/orb/models/subscription_fetch_schedule_params.rbi +4 -1
  210. data/rbi/orb/models/subscription_fetch_schedule_response.rbi +14 -2
  211. data/rbi/orb/models/subscription_fetch_usage_params.rbi +4 -1
  212. data/rbi/orb/models/subscription_list_params.rbi +4 -1
  213. data/rbi/orb/models/subscription_price_intervals_params.rbi +731 -115
  214. data/rbi/orb/models/subscription_price_intervals_response.rbi +140 -20
  215. data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +1260 -198
  216. data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +140 -20
  217. data/rbi/orb/models/subscription_trigger_phase_params.rbi +4 -1
  218. data/rbi/orb/models/subscription_trigger_phase_response.rbi +140 -20
  219. data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +7 -1
  220. data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +140 -20
  221. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +7 -1
  222. data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +140 -20
  223. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +7 -1
  224. data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +140 -20
  225. data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +7 -1
  226. data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +140 -20
  227. data/rbi/orb/models/subscription_update_params.rbi +4 -1
  228. data/rbi/orb/models/subscription_update_trial_params.rbi +4 -1
  229. data/rbi/orb/models/subscription_update_trial_response.rbi +140 -20
  230. data/rbi/orb/models/subscription_usage.rbi +63 -9
  231. data/rbi/orb/models/subscriptions.rbi +2 -1
  232. data/rbi/orb/models/top_level_ping_params.rbi +2 -1
  233. data/rbi/orb/models/top_level_ping_response.rbi +4 -1
  234. data/rbi/orb/models/trial_discount.rbi +2 -1
  235. data/rbi/orb/models/usage_discount.rbi +2 -1
  236. data/rbi/orb/request_options.rbi +1 -1
  237. data/sig/orb/internal/transport/base_client.rbs +16 -1
  238. data/sig/orb/internal/transport/pooled_net_requester.rbs +4 -0
  239. data/sig/orb/internal/type/base_model.rbs +11 -5
  240. data/sig/orb/internal/type/base_page.rbs +1 -1
  241. data/sig/orb/internal/type/converter.rbs +2 -0
  242. data/sig/orb/internal/type/enum.rbs +1 -0
  243. data/sig/orb/internal/type/union.rbs +1 -0
  244. data/sig/orb/internal/util.rbs +13 -0
  245. data/sig/orb/internal.rbs +2 -0
  246. metadata +2 -2
@@ -23,7 +23,13 @@ module Orb
23
23
  end
24
24
 
25
25
  class Increment < Orb::Internal::Type::BaseModel
26
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
26
+ OrHash =
27
+ T.type_alias do
28
+ T.any(
29
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment,
30
+ Orb::Internal::AnyHash
31
+ )
32
+ end
27
33
 
28
34
  sig { returns(String) }
29
35
  attr_accessor :id
@@ -164,7 +170,12 @@ module Orb
164
170
 
165
171
  class CreditBlock < Orb::Internal::Type::BaseModel
166
172
  OrHash =
167
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
173
+ T.type_alias do
174
+ T.any(
175
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock,
176
+ Orb::Internal::AnyHash
177
+ )
178
+ end
168
179
 
169
180
  sig { returns(String) }
170
181
  attr_accessor :id
@@ -200,7 +211,12 @@ module Orb
200
211
 
201
212
  class Customer < Orb::Internal::Type::BaseModel
202
213
  OrHash =
203
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
214
+ T.type_alias do
215
+ T.any(
216
+ Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer,
217
+ Orb::Internal::AnyHash
218
+ )
219
+ end
204
220
 
205
221
  sig { returns(String) }
206
222
  attr_accessor :id
@@ -262,7 +278,13 @@ module Orb
262
278
  end
263
279
 
264
280
  class Decrement < Orb::Internal::Type::BaseModel
265
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
281
+ OrHash =
282
+ T.type_alias do
283
+ T.any(
284
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement,
285
+ Orb::Internal::AnyHash
286
+ )
287
+ end
266
288
 
267
289
  sig { returns(String) }
268
290
  attr_accessor :id
@@ -421,7 +443,12 @@ module Orb
421
443
 
422
444
  class CreditBlock < Orb::Internal::Type::BaseModel
423
445
  OrHash =
424
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
446
+ T.type_alias do
447
+ T.any(
448
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock,
449
+ Orb::Internal::AnyHash
450
+ )
451
+ end
425
452
 
426
453
  sig { returns(String) }
427
454
  attr_accessor :id
@@ -457,7 +484,12 @@ module Orb
457
484
 
458
485
  class Customer < Orb::Internal::Type::BaseModel
459
486
  OrHash =
460
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
487
+ T.type_alias do
488
+ T.any(
489
+ Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer,
490
+ Orb::Internal::AnyHash
491
+ )
492
+ end
461
493
 
462
494
  sig { returns(String) }
463
495
  attr_accessor :id
@@ -519,7 +551,13 @@ module Orb
519
551
  end
520
552
 
521
553
  class ExpirationChange < Orb::Internal::Type::BaseModel
522
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
554
+ OrHash =
555
+ T.type_alias do
556
+ T.any(
557
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange,
558
+ Orb::Internal::AnyHash
559
+ )
560
+ end
523
561
 
524
562
  sig { returns(String) }
525
563
  attr_accessor :id
@@ -666,7 +704,12 @@ module Orb
666
704
 
667
705
  class CreditBlock < Orb::Internal::Type::BaseModel
668
706
  OrHash =
669
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
707
+ T.type_alias do
708
+ T.any(
709
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
710
+ Orb::Internal::AnyHash
711
+ )
712
+ end
670
713
 
671
714
  sig { returns(String) }
672
715
  attr_accessor :id
@@ -702,7 +745,12 @@ module Orb
702
745
 
703
746
  class Customer < Orb::Internal::Type::BaseModel
704
747
  OrHash =
705
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
748
+ T.type_alias do
749
+ T.any(
750
+ Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
751
+ Orb::Internal::AnyHash
752
+ )
753
+ end
706
754
 
707
755
  sig { returns(String) }
708
756
  attr_accessor :id
@@ -764,7 +812,13 @@ module Orb
764
812
  end
765
813
 
766
814
  class CreditBlockExpiry < Orb::Internal::Type::BaseModel
767
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
815
+ OrHash =
816
+ T.type_alias do
817
+ T.any(
818
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry,
819
+ Orb::Internal::AnyHash
820
+ )
821
+ end
768
822
 
769
823
  sig { returns(String) }
770
824
  attr_accessor :id
@@ -905,7 +959,12 @@ module Orb
905
959
 
906
960
  class CreditBlock < Orb::Internal::Type::BaseModel
907
961
  OrHash =
908
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
962
+ T.type_alias do
963
+ T.any(
964
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
965
+ Orb::Internal::AnyHash
966
+ )
967
+ end
909
968
 
910
969
  sig { returns(String) }
911
970
  attr_accessor :id
@@ -941,7 +1000,12 @@ module Orb
941
1000
 
942
1001
  class Customer < Orb::Internal::Type::BaseModel
943
1002
  OrHash =
944
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1003
+ T.type_alias do
1004
+ T.any(
1005
+ Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
1006
+ Orb::Internal::AnyHash
1007
+ )
1008
+ end
945
1009
 
946
1010
  sig { returns(String) }
947
1011
  attr_accessor :id
@@ -1003,7 +1067,13 @@ module Orb
1003
1067
  end
1004
1068
 
1005
1069
  class Void < Orb::Internal::Type::BaseModel
1006
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1070
+ OrHash =
1071
+ T.type_alias do
1072
+ T.any(
1073
+ Orb::Models::Customers::Credits::LedgerListResponse::Void,
1074
+ Orb::Internal::AnyHash
1075
+ )
1076
+ end
1007
1077
 
1008
1078
  sig { returns(String) }
1009
1079
  attr_accessor :id
@@ -1156,7 +1226,12 @@ module Orb
1156
1226
 
1157
1227
  class CreditBlock < Orb::Internal::Type::BaseModel
1158
1228
  OrHash =
1159
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1229
+ T.type_alias do
1230
+ T.any(
1231
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock,
1232
+ Orb::Internal::AnyHash
1233
+ )
1234
+ end
1160
1235
 
1161
1236
  sig { returns(String) }
1162
1237
  attr_accessor :id
@@ -1192,7 +1267,12 @@ module Orb
1192
1267
 
1193
1268
  class Customer < Orb::Internal::Type::BaseModel
1194
1269
  OrHash =
1195
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1270
+ T.type_alias do
1271
+ T.any(
1272
+ Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer,
1273
+ Orb::Internal::AnyHash
1274
+ )
1275
+ end
1196
1276
 
1197
1277
  sig { returns(String) }
1198
1278
  attr_accessor :id
@@ -1254,7 +1334,13 @@ module Orb
1254
1334
  end
1255
1335
 
1256
1336
  class VoidInitiated < Orb::Internal::Type::BaseModel
1257
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1337
+ OrHash =
1338
+ T.type_alias do
1339
+ T.any(
1340
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated,
1341
+ Orb::Internal::AnyHash
1342
+ )
1343
+ end
1258
1344
 
1259
1345
  sig { returns(String) }
1260
1346
  attr_accessor :id
@@ -1413,7 +1499,12 @@ module Orb
1413
1499
 
1414
1500
  class CreditBlock < Orb::Internal::Type::BaseModel
1415
1501
  OrHash =
1416
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1502
+ T.type_alias do
1503
+ T.any(
1504
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
1505
+ Orb::Internal::AnyHash
1506
+ )
1507
+ end
1417
1508
 
1418
1509
  sig { returns(String) }
1419
1510
  attr_accessor :id
@@ -1449,7 +1540,12 @@ module Orb
1449
1540
 
1450
1541
  class Customer < Orb::Internal::Type::BaseModel
1451
1542
  OrHash =
1452
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1543
+ T.type_alias do
1544
+ T.any(
1545
+ Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
1546
+ Orb::Internal::AnyHash
1547
+ )
1548
+ end
1453
1549
 
1454
1550
  sig { returns(String) }
1455
1551
  attr_accessor :id
@@ -1511,7 +1607,13 @@ module Orb
1511
1607
  end
1512
1608
 
1513
1609
  class Amendment < Orb::Internal::Type::BaseModel
1514
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1610
+ OrHash =
1611
+ T.type_alias do
1612
+ T.any(
1613
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment,
1614
+ Orb::Internal::AnyHash
1615
+ )
1616
+ end
1515
1617
 
1516
1618
  sig { returns(String) }
1517
1619
  attr_accessor :id
@@ -1652,7 +1754,12 @@ module Orb
1652
1754
 
1653
1755
  class CreditBlock < Orb::Internal::Type::BaseModel
1654
1756
  OrHash =
1655
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1757
+ T.type_alias do
1758
+ T.any(
1759
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock,
1760
+ Orb::Internal::AnyHash
1761
+ )
1762
+ end
1656
1763
 
1657
1764
  sig { returns(String) }
1658
1765
  attr_accessor :id
@@ -1688,7 +1795,12 @@ module Orb
1688
1795
 
1689
1796
  class Customer < Orb::Internal::Type::BaseModel
1690
1797
  OrHash =
1691
- T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
1798
+ T.type_alias do
1799
+ T.any(
1800
+ Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer,
1801
+ Orb::Internal::AnyHash
1802
+ )
1803
+ end
1692
1804
 
1693
1805
  sig { returns(String) }
1694
1806
  attr_accessor :id
@@ -8,7 +8,13 @@ module Orb
8
8
  extend Orb::Internal::Type::RequestParameters::Converter
9
9
  include Orb::Internal::Type::RequestParameters
10
10
 
11
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Orb::Customers::Credits::TopUpCreateByExternalIDParams,
15
+ Orb::Internal::AnyHash
16
+ )
17
+ end
12
18
 
13
19
  # The amount to increment when the threshold is reached.
14
20
  sig { returns(String) }
@@ -129,7 +135,13 @@ module Orb
129
135
  end
130
136
 
131
137
  class InvoiceSettings < Orb::Internal::Type::BaseModel
132
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
138
+ OrHash =
139
+ T.type_alias do
140
+ T.any(
141
+ Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings,
142
+ Orb::Internal::AnyHash
143
+ )
144
+ end
133
145
 
134
146
  # Whether the credits purchase invoice should auto collect with the customer's
135
147
  # saved payment method.
@@ -5,7 +5,13 @@ module Orb
5
5
  module Customers
6
6
  module Credits
7
7
  class TopUpCreateByExternalIDResponse < Orb::Internal::Type::BaseModel
8
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8
+ OrHash =
9
+ T.type_alias do
10
+ T.any(
11
+ Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse,
12
+ Orb::Internal::AnyHash
13
+ )
14
+ end
9
15
 
10
16
  sig { returns(String) }
11
17
  attr_accessor :id
@@ -119,7 +125,13 @@ module Orb
119
125
  end
120
126
 
121
127
  class InvoiceSettings < Orb::Internal::Type::BaseModel
122
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
128
+ OrHash =
129
+ T.type_alias do
130
+ T.any(
131
+ Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings,
132
+ Orb::Internal::AnyHash
133
+ )
134
+ end
123
135
 
124
136
  # Whether the credits purchase invoice should auto collect with the customer's
125
137
  # saved payment method.
@@ -8,7 +8,13 @@ module Orb
8
8
  extend Orb::Internal::Type::RequestParameters::Converter
9
9
  include Orb::Internal::Type::RequestParameters
10
10
 
11
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Orb::Customers::Credits::TopUpCreateParams,
15
+ Orb::Internal::AnyHash
16
+ )
17
+ end
12
18
 
13
19
  # The amount to increment when the threshold is reached.
14
20
  sig { returns(String) }
@@ -127,7 +133,13 @@ module Orb
127
133
  end
128
134
 
129
135
  class InvoiceSettings < Orb::Internal::Type::BaseModel
130
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
136
+ OrHash =
137
+ T.type_alias do
138
+ T.any(
139
+ Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings,
140
+ Orb::Internal::AnyHash
141
+ )
142
+ end
131
143
 
132
144
  # Whether the credits purchase invoice should auto collect with the customer's
133
145
  # saved payment method.
@@ -5,7 +5,13 @@ module Orb
5
5
  module Customers
6
6
  module Credits
7
7
  class TopUpCreateResponse < Orb::Internal::Type::BaseModel
8
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8
+ OrHash =
9
+ T.type_alias do
10
+ T.any(
11
+ Orb::Models::Customers::Credits::TopUpCreateResponse,
12
+ Orb::Internal::AnyHash
13
+ )
14
+ end
9
15
 
10
16
  sig { returns(String) }
11
17
  attr_accessor :id
@@ -119,7 +125,13 @@ module Orb
119
125
  end
120
126
 
121
127
  class InvoiceSettings < Orb::Internal::Type::BaseModel
122
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
128
+ OrHash =
129
+ T.type_alias do
130
+ T.any(
131
+ Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings,
132
+ Orb::Internal::AnyHash
133
+ )
134
+ end
123
135
 
124
136
  # Whether the credits purchase invoice should auto collect with the customer's
125
137
  # saved payment method.
@@ -8,7 +8,13 @@ module Orb
8
8
  extend Orb::Internal::Type::RequestParameters::Converter
9
9
  include Orb::Internal::Type::RequestParameters
10
10
 
11
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Orb::Customers::Credits::TopUpDeleteByExternalIDParams,
15
+ Orb::Internal::AnyHash
16
+ )
17
+ end
12
18
 
13
19
  sig { returns(String) }
14
20
  attr_accessor :external_customer_id
@@ -8,7 +8,13 @@ module Orb
8
8
  extend Orb::Internal::Type::RequestParameters::Converter
9
9
  include Orb::Internal::Type::RequestParameters
10
10
 
11
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Orb::Customers::Credits::TopUpDeleteParams,
15
+ Orb::Internal::AnyHash
16
+ )
17
+ end
12
18
 
13
19
  sig { returns(String) }
14
20
  attr_accessor :customer_id
@@ -8,7 +8,13 @@ module Orb
8
8
  extend Orb::Internal::Type::RequestParameters::Converter
9
9
  include Orb::Internal::Type::RequestParameters
10
10
 
11
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Orb::Customers::Credits::TopUpListByExternalIDParams,
15
+ Orb::Internal::AnyHash
16
+ )
17
+ end
12
18
 
13
19
  # Cursor for pagination. This can be populated by the `next_cursor` value returned
14
20
  # from the initial request.
@@ -5,7 +5,13 @@ module Orb
5
5
  module Customers
6
6
  module Credits
7
7
  class TopUpListByExternalIDResponse < Orb::Internal::Type::BaseModel
8
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8
+ OrHash =
9
+ T.type_alias do
10
+ T.any(
11
+ Orb::Models::Customers::Credits::TopUpListByExternalIDResponse,
12
+ Orb::Internal::AnyHash
13
+ )
14
+ end
9
15
 
10
16
  sig { returns(String) }
11
17
  attr_accessor :id
@@ -119,7 +125,13 @@ module Orb
119
125
  end
120
126
 
121
127
  class InvoiceSettings < Orb::Internal::Type::BaseModel
122
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
128
+ OrHash =
129
+ T.type_alias do
130
+ T.any(
131
+ Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings,
132
+ Orb::Internal::AnyHash
133
+ )
134
+ end
123
135
 
124
136
  # Whether the credits purchase invoice should auto collect with the customer's
125
137
  # saved payment method.
@@ -8,7 +8,13 @@ module Orb
8
8
  extend Orb::Internal::Type::RequestParameters::Converter
9
9
  include Orb::Internal::Type::RequestParameters
10
10
 
11
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
11
+ OrHash =
12
+ T.type_alias do
13
+ T.any(
14
+ Orb::Customers::Credits::TopUpListParams,
15
+ Orb::Internal::AnyHash
16
+ )
17
+ end
12
18
 
13
19
  # Cursor for pagination. This can be populated by the `next_cursor` value returned
14
20
  # from the initial request.
@@ -5,7 +5,13 @@ module Orb
5
5
  module Customers
6
6
  module Credits
7
7
  class TopUpListResponse < Orb::Internal::Type::BaseModel
8
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
8
+ OrHash =
9
+ T.type_alias do
10
+ T.any(
11
+ Orb::Models::Customers::Credits::TopUpListResponse,
12
+ Orb::Internal::AnyHash
13
+ )
14
+ end
9
15
 
10
16
  sig { returns(String) }
11
17
  attr_accessor :id
@@ -119,7 +125,13 @@ module Orb
119
125
  end
120
126
 
121
127
  class InvoiceSettings < Orb::Internal::Type::BaseModel
122
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
128
+ OrHash =
129
+ T.type_alias do
130
+ T.any(
131
+ Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings,
132
+ Orb::Internal::AnyHash
133
+ )
134
+ end
123
135
 
124
136
  # Whether the credits purchase invoice should auto collect with the customer's
125
137
  # saved payment method.
@@ -3,7 +3,10 @@
3
3
  module Orb
4
4
  module Models
5
5
  class DimensionalPriceGroup < Orb::Internal::Type::BaseModel
6
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Orb::DimensionalPriceGroup, Orb::Internal::AnyHash)
9
+ end
7
10
 
8
11
  sig { returns(String) }
9
12
  attr_accessor :id
@@ -6,7 +6,10 @@ module Orb
6
6
  extend Orb::Internal::Type::RequestParameters::Converter
7
7
  include Orb::Internal::Type::RequestParameters
8
8
 
9
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Orb::DimensionalPriceGroupCreateParams, Orb::Internal::AnyHash)
12
+ end
10
13
 
11
14
  sig { returns(String) }
12
15
  attr_accessor :billable_metric_id
@@ -6,7 +6,10 @@ module Orb
6
6
  extend Orb::Internal::Type::RequestParameters::Converter
7
7
  include Orb::Internal::Type::RequestParameters
8
8
 
9
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Orb::DimensionalPriceGroupListParams, Orb::Internal::AnyHash)
12
+ end
10
13
 
11
14
  # Cursor for pagination. This can be populated by the `next_cursor` value returned
12
15
  # from the initial request.
@@ -6,7 +6,13 @@ module Orb
6
6
  extend Orb::Internal::Type::RequestParameters::Converter
7
7
  include Orb::Internal::Type::RequestParameters
8
8
 
9
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Orb::DimensionalPriceGroupRetrieveParams,
13
+ Orb::Internal::AnyHash
14
+ )
15
+ end
10
16
 
11
17
  sig do
12
18
  params(request_options: Orb::RequestOptions::OrHash).returns(
@@ -7,7 +7,13 @@ module Orb
7
7
  extend Orb::Internal::Type::RequestParameters::Converter
8
8
  include Orb::Internal::Type::RequestParameters
9
9
 
10
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Orb::DimensionalPriceGroups::ExternalDimensionalPriceGroupIDRetrieveParams,
14
+ Orb::Internal::AnyHash
15
+ )
16
+ end
11
17
 
12
18
  sig do
13
19
  params(request_options: Orb::RequestOptions::OrHash).returns(
@@ -3,7 +3,10 @@
3
3
  module Orb
4
4
  module Models
5
5
  class DimensionalPriceGroupsAPI < Orb::Internal::Type::BaseModel
6
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Orb::DimensionalPriceGroupsAPI, Orb::Internal::AnyHash)
9
+ end
7
10
 
8
11
  sig { returns(T::Array[Orb::DimensionalPriceGroup]) }
9
12
  attr_accessor :data
@@ -3,7 +3,8 @@
3
3
  module Orb
4
4
  module Models
5
5
  class EvaluatePriceGroup < Orb::Internal::Type::BaseModel
6
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6
+ OrHash =
7
+ T.type_alias { T.any(Orb::EvaluatePriceGroup, Orb::Internal::AnyHash) }
7
8
 
8
9
  # The price's output for the group
9
10
  sig { returns(String) }
@@ -6,7 +6,10 @@ module Orb
6
6
  extend Orb::Internal::Type::RequestParameters::Converter
7
7
  include Orb::Internal::Type::RequestParameters
8
8
 
9
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Orb::EventDeprecateParams, Orb::Internal::AnyHash)
12
+ end
10
13
 
11
14
  sig do
12
15
  params(request_options: Orb::RequestOptions::OrHash).returns(
@@ -3,7 +3,10 @@
3
3
  module Orb
4
4
  module Models
5
5
  class EventDeprecateResponse < Orb::Internal::Type::BaseModel
6
- OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Orb::Models::EventDeprecateResponse, Orb::Internal::AnyHash)
9
+ end
7
10
 
8
11
  # event_id of the deprecated event, if successfully updated
9
12
  sig { returns(String) }