orb-billing 1.34.0 → 1.36.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 (260) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +1 -1
  4. data/lib/orb/client.rb +4 -0
  5. data/lib/orb/models/backfill_reflected_webhook_event.rb +180 -0
  6. data/lib/orb/models/backfill_reverted_webhook_event.rb +180 -0
  7. data/lib/orb/models/billable_metric_edited_webhook_event.rb +104 -0
  8. data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +499 -0
  9. data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +494 -0
  10. data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +161 -0
  11. data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +155 -0
  12. data/lib/orb/models/credit_note_issued_webhook_event.rb +65 -0
  13. data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +65 -0
  14. data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +171 -0
  15. data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +165 -0
  16. data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +212 -0
  17. data/lib/orb/models/customer_created_webhook_event.rb +81 -0
  18. data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +560 -0
  19. data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +566 -0
  20. data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +560 -0
  21. data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +474 -0
  22. data/lib/orb/models/customer_edited_webhook_event.rb +344 -0
  23. data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +100 -0
  24. data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +94 -0
  25. data/lib/orb/models/event_unmatched_event_webhook_event.rb +105 -0
  26. data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +64 -0
  27. data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +164 -0
  28. data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +158 -0
  29. data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +338 -0
  30. data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +83 -0
  31. data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +70 -0
  32. data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +70 -0
  33. data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +64 -0
  34. data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +186 -0
  35. data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +180 -0
  36. data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +184 -0
  37. data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +133 -0
  38. data/lib/orb/models/invoice_edited_webhook_event.rb +550 -0
  39. data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +120 -0
  40. data/lib/orb/models/invoice_issue_failed_webhook_event.rb +79 -0
  41. data/lib/orb/models/invoice_issued_summary_webhook_event.rb +841 -0
  42. data/lib/orb/models/invoice_issued_webhook_event.rb +79 -0
  43. data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +91 -0
  44. data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +68 -0
  45. data/lib/orb/models/invoice_payment_failed_webhook_event.rb +92 -0
  46. data/lib/orb/models/invoice_payment_processing_webhook_event.rb +85 -0
  47. data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +101 -0
  48. data/lib/orb/models/invoice_sync_failed_webhook_event.rb +85 -0
  49. data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +85 -0
  50. data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +68 -0
  51. data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +98 -0
  52. data/lib/orb/models/payment_method_created_webhook_event.rb +156 -0
  53. data/lib/orb/models/payment_method_deleted_webhook_event.rb +156 -0
  54. data/lib/orb/models/plan_default_version_set_webhook_event.rb +108 -0
  55. data/lib/orb/models/plan_version_created_webhook_event.rb +108 -0
  56. data/lib/orb/models/price_edited_webhook_event.rb +105 -0
  57. data/lib/orb/models/resource_event_test_webhook_event.rb +64 -0
  58. data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +164 -0
  59. data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +158 -0
  60. data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +178 -0
  61. data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +172 -0
  62. data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +624 -0
  63. data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +93 -0
  64. data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +93 -0
  65. data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +540 -0
  66. data/lib/orb/models/subscription_created_webhook_event.rb +82 -0
  67. data/lib/orb/models/subscription_edited_webhook_event.rb +134 -0
  68. data/lib/orb/models/subscription_ended_webhook_event.rb +82 -0
  69. data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +111 -0
  70. data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +655 -0
  71. data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +191 -0
  72. data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +214 -0
  73. data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +652 -0
  74. data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +105 -0
  75. data/lib/orb/models/subscription_plan_changed_webhook_event.rb +93 -0
  76. data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +106 -0
  77. data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +105 -0
  78. data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +541 -0
  79. data/lib/orb/models/subscription_started_webhook_event.rb +82 -0
  80. data/lib/orb/models/subscription_trial_ended_webhook_event.rb +82 -0
  81. data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +548 -0
  82. data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +236 -0
  83. data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +232 -0
  84. data/lib/orb/models/unwrap_webhook_event.rb +250 -0
  85. data/lib/orb/models/webhook_unwrap_params.rb +14 -0
  86. data/lib/orb/models.rb +180 -0
  87. data/lib/orb/resources/subscriptions.rb +13 -0
  88. data/lib/orb/resources/webhooks.rb +22 -0
  89. data/lib/orb/version.rb +1 -1
  90. data/lib/orb.rb +82 -0
  91. data/rbi/orb/client.rbi +3 -0
  92. data/rbi/orb/models/backfill_reflected_webhook_event.rbi +274 -0
  93. data/rbi/orb/models/backfill_reverted_webhook_event.rbi +271 -0
  94. data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +198 -0
  95. data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +1039 -0
  96. data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +1034 -0
  97. data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +315 -0
  98. data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +310 -0
  99. data/rbi/orb/models/credit_note_issued_webhook_event.rbi +98 -0
  100. data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +102 -0
  101. data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +339 -0
  102. data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +335 -0
  103. data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +437 -0
  104. data/rbi/orb/models/customer_created_webhook_event.rbi +128 -0
  105. data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +1091 -0
  106. data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +1096 -0
  107. data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +1091 -0
  108. data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +987 -0
  109. data/rbi/orb/models/customer_edited_webhook_event.rbi +599 -0
  110. data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +170 -0
  111. data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +165 -0
  112. data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +193 -0
  113. data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +132 -0
  114. data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +319 -0
  115. data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +312 -0
  116. data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +614 -0
  117. data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +144 -0
  118. data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +139 -0
  119. data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +139 -0
  120. data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +132 -0
  121. data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +331 -0
  122. data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +324 -0
  123. data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +329 -0
  124. data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +250 -0
  125. data/rbi/orb/models/invoice_edited_webhook_event.rbi +942 -0
  126. data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +251 -0
  127. data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +132 -0
  128. data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +1432 -0
  129. data/rbi/orb/models/invoice_issued_webhook_event.rbi +134 -0
  130. data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +165 -0
  131. data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +114 -0
  132. data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +157 -0
  133. data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +156 -0
  134. data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +175 -0
  135. data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +147 -0
  136. data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +147 -0
  137. data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +106 -0
  138. data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +167 -0
  139. data/rbi/orb/models/payment_method_created_webhook_event.rbi +259 -0
  140. data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +259 -0
  141. data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +196 -0
  142. data/rbi/orb/models/plan_version_created_webhook_event.rbi +190 -0
  143. data/rbi/orb/models/price_edited_webhook_event.rbi +235 -0
  144. data/rbi/orb/models/resource_event_test_webhook_event.rbi +116 -0
  145. data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +321 -0
  146. data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +316 -0
  147. data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +353 -0
  148. data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +346 -0
  149. data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +1232 -0
  150. data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +179 -0
  151. data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +183 -0
  152. data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +1034 -0
  153. data/rbi/orb/models/subscription_created_webhook_event.rbi +132 -0
  154. data/rbi/orb/models/subscription_edited_webhook_event.rbi +247 -0
  155. data/rbi/orb/models/subscription_ended_webhook_event.rbi +132 -0
  156. data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +206 -0
  157. data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +1262 -0
  158. data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +374 -0
  159. data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +421 -0
  160. data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +1265 -0
  161. data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +198 -0
  162. data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +169 -0
  163. data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +205 -0
  164. data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +199 -0
  165. data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +1035 -0
  166. data/rbi/orb/models/subscription_started_webhook_event.rbi +132 -0
  167. data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +136 -0
  168. data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +1041 -0
  169. data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +455 -0
  170. data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +449 -0
  171. data/rbi/orb/models/unwrap_webhook_event.rbi +99 -0
  172. data/rbi/orb/models/webhook_unwrap_params.rbi +25 -0
  173. data/rbi/orb/models.rbi +224 -0
  174. data/rbi/orb/resources/subscriptions.rbi +13 -0
  175. data/rbi/orb/resources/webhooks.rbi +103 -0
  176. data/sig/orb/client.rbs +2 -0
  177. data/sig/orb/models/backfill_reflected_webhook_event.rbs +130 -0
  178. data/sig/orb/models/backfill_reverted_webhook_event.rbs +130 -0
  179. data/sig/orb/models/billable_metric_edited_webhook_event.rbs +94 -0
  180. data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +412 -0
  181. data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +407 -0
  182. data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +147 -0
  183. data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +142 -0
  184. data/sig/orb/models/credit_note_issued_webhook_event.rbs +50 -0
  185. data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +50 -0
  186. data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +142 -0
  187. data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +137 -0
  188. data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +171 -0
  189. data/sig/orb/models/customer_created_webhook_event.rbs +50 -0
  190. data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +374 -0
  191. data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +379 -0
  192. data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +374 -0
  193. data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +364 -0
  194. data/sig/orb/models/customer_edited_webhook_event.rbs +139 -0
  195. data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +92 -0
  196. data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +87 -0
  197. data/sig/orb/models/event_unmatched_event_webhook_event.rbs +102 -0
  198. data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +55 -0
  199. data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +147 -0
  200. data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +142 -0
  201. data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +313 -0
  202. data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +73 -0
  203. data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +57 -0
  204. data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +57 -0
  205. data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +55 -0
  206. data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +171 -0
  207. data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +166 -0
  208. data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +156 -0
  209. data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +119 -0
  210. data/sig/orb/models/invoice_edited_webhook_event.rbs +388 -0
  211. data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +111 -0
  212. data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +60 -0
  213. data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +504 -0
  214. data/sig/orb/models/invoice_issued_webhook_event.rbs +60 -0
  215. data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +73 -0
  216. data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +50 -0
  217. data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +77 -0
  218. data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +71 -0
  219. data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +82 -0
  220. data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +69 -0
  221. data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +69 -0
  222. data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +50 -0
  223. data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +82 -0
  224. data/sig/orb/models/payment_method_created_webhook_event.rbs +112 -0
  225. data/sig/orb/models/payment_method_deleted_webhook_event.rbs +112 -0
  226. data/sig/orb/models/plan_default_version_set_webhook_event.rbs +94 -0
  227. data/sig/orb/models/plan_version_created_webhook_event.rbs +91 -0
  228. data/sig/orb/models/price_edited_webhook_event.rbs +77 -0
  229. data/sig/orb/models/resource_event_test_webhook_event.rbs +57 -0
  230. data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +147 -0
  231. data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +142 -0
  232. data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +147 -0
  233. data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +142 -0
  234. data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +444 -0
  235. data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +60 -0
  236. data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +60 -0
  237. data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +362 -0
  238. data/sig/orb/models/subscription_created_webhook_event.rbs +50 -0
  239. data/sig/orb/models/subscription_edited_webhook_event.rbs +109 -0
  240. data/sig/orb/models/subscription_ended_webhook_event.rbs +50 -0
  241. data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +82 -0
  242. data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +465 -0
  243. data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +158 -0
  244. data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +180 -0
  245. data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +460 -0
  246. data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +73 -0
  247. data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +60 -0
  248. data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +77 -0
  249. data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +77 -0
  250. data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +362 -0
  251. data/sig/orb/models/subscription_started_webhook_event.rbs +50 -0
  252. data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +50 -0
  253. data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +367 -0
  254. data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +205 -0
  255. data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +200 -0
  256. data/sig/orb/models/unwrap_webhook_event.rbs +90 -0
  257. data/sig/orb/models/webhook_unwrap_params.rbs +14 -0
  258. data/sig/orb/models.rbs +162 -0
  259. data/sig/orb/resources/webhooks.rbs +89 -0
  260. metadata +248 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d22f2113a4acbd1c6f8d94504b3c2e5b751636c2e24cd2c7bdc25897e3d6dd8b
4
- data.tar.gz: 4b5092fb788b3bd1b064c20fe160a92bccf05e2394b1af40b715df5db403a27f
3
+ metadata.gz: 7dccfefe6ce7cde0754bbb1d6b14152cec555db907947996e0d151769b713b72
4
+ data.tar.gz: b0b230acf4c18d6a950d5b85d2bd3354704fedb09a5e47b4f10b2570b2066411
5
5
  SHA512:
6
- metadata.gz: 322da3b2af920d12a3967a9599f3c2b1a104e25497a66d42175e2387f6879edbe7e8338a5cecd098a009c5347046f6de5863a161f049e67ab31b78cb965d1573
7
- data.tar.gz: 8a7db721c8affc90f7c0b32113ab96118dc139005bba72b2a8ee03b6944aff99413f8b9e296b96f911c21097e4597143a43ae1da4dafb048dea667d0a896df20
6
+ metadata.gz: 6887197332231d65647e176359fa795ecf7a701bc32d56ed0e3629c5424f0394e1f2ef3fbcf6206f46a72b69ebee54ae30e382c57cea6a0539b51764e6dde67a
7
+ data.tar.gz: 6bba73f8827220e60b107b95affce1f13eb5c2943776aaaa2e922e8a3c4a369f49c94844ef63eb338227e7d1019c9c2141285e7cbfa5278d76d1d3e0931e3cdb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.36.0](https://github.com/orbcorp/orb-ruby/compare/v1.35.0...v1.36.0) (2026-09-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** api update ([62c9140](https://github.com/orbcorp/orb-ruby/commit/62c914083d1b3b3f514e86a4960b42ff0ef18fa4))
9
+ * **api:** api update ([62c9140](https://github.com/orbcorp/orb-ruby/commit/62c914083d1b3b3f514e86a4960b42ff0ef18fa4))
10
+ * **api:** api update ([62c9140](https://github.com/orbcorp/orb-ruby/commit/62c914083d1b3b3f514e86a4960b42ff0ef18fa4))
11
+ * **api:** api update ([14a6517](https://github.com/orbcorp/orb-ruby/commit/14a65171cecf6a8ffde8b816ab3f1b83bba2a6fa))
12
+ * **api:** api update ([14a6517](https://github.com/orbcorp/orb-ruby/commit/14a65171cecf6a8ffde8b816ab3f1b83bba2a6fa))
13
+ * **api:** api update ([14a6517](https://github.com/orbcorp/orb-ruby/commit/14a65171cecf6a8ffde8b816ab3f1b83bba2a6fa))
14
+ * **api:** api update ([14a6517](https://github.com/orbcorp/orb-ruby/commit/14a65171cecf6a8ffde8b816ab3f1b83bba2a6fa))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **api:** correctly apply plan name when updating a draft plan ([62c9140](https://github.com/orbcorp/orb-ruby/commit/62c914083d1b3b3f514e86a4960b42ff0ef18fa4))
20
+
21
+ ## [1.35.0](https://github.com/orbcorp/orb-ruby/compare/v1.34.0...v1.35.0) (2026-09-21)
22
+
23
+
24
+ ### Features
25
+
26
+ * **api:** api update ([f86f225](https://github.com/orbcorp/orb-ruby/commit/f86f22550792b81d0aa2153d0794c242e0504f30))
27
+
3
28
  ## [1.34.0](https://github.com/orbcorp/orb-ruby/compare/v1.33.0...v1.34.0) (2026-09-13)
4
29
 
5
30
 
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "orb-billing", "~> 1.34.0"
18
+ gem "orb-billing", "~> 1.36.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
data/lib/orb/client.rb CHANGED
@@ -21,6 +21,9 @@ module Orb
21
21
  # @return [String, nil]
22
22
  attr_reader :webhook_secret
23
23
 
24
+ # @return [Orb::Resources::Webhooks]
25
+ attr_reader :webhooks
26
+
24
27
  # @return [Orb::Resources::TopLevel]
25
28
  attr_reader :top_level
26
29
 
@@ -219,6 +222,7 @@ module Orb
219
222
  idempotency_header: idempotency_header
220
223
  )
221
224
 
225
+ @webhooks = Orb::Resources::Webhooks.new(client: self)
222
226
  @top_level = Orb::Resources::TopLevel.new(client: self)
223
227
  @beta = Orb::Resources::Beta.new(client: self)
224
228
  @coupons = Orb::Resources::Coupons.new(client: self)
@@ -0,0 +1,180 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Orb
4
+ module Models
5
+ class BackfillReflectedWebhookEvent < Orb::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # The ID of this webhook event.
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute backfill
13
+ # A backfill represents an update to historical usage data, adding or replacing
14
+ # events in a timeframe.
15
+ #
16
+ # @return [Orb::Models::BackfillReflectedWebhookEvent::Backfill]
17
+ required :backfill, -> { Orb::BackfillReflectedWebhookEvent::Backfill }
18
+
19
+ # @!attribute created_at
20
+ # The time at which this event was created, to the second.
21
+ #
22
+ # @return [Time]
23
+ required :created_at, Time
24
+
25
+ # @!attribute properties
26
+ #
27
+ # @return [Object]
28
+ required :properties, Orb::Internal::Type::Unknown
29
+
30
+ # @!attribute type
31
+ # The event this payload describes.
32
+ #
33
+ # @return [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Type]
34
+ required :type, enum: -> { Orb::BackfillReflectedWebhookEvent::Type }
35
+
36
+ # @!method initialize(id:, backfill:, created_at:, properties:, type:)
37
+ # Some parameter documentations has been truncated, see
38
+ # {Orb::Models::BackfillReflectedWebhookEvent} for more details.
39
+ #
40
+ # Issued when a backfill is closed and its events are reflected into usage.
41
+ #
42
+ # @param id [String] The ID of this webhook event.
43
+ #
44
+ # @param backfill [Orb::Models::BackfillReflectedWebhookEvent::Backfill] A backfill represents an update to historical usage data, adding or replacing ev
45
+ #
46
+ # @param created_at [Time] The time at which this event was created, to the second.
47
+ #
48
+ # @param properties [Object]
49
+ #
50
+ # @param type [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Type] The event this payload describes.
51
+
52
+ # @see Orb::Models::BackfillReflectedWebhookEvent#backfill
53
+ class Backfill < Orb::Internal::Type::BaseModel
54
+ # @!attribute id
55
+ #
56
+ # @return [String]
57
+ required :id, String
58
+
59
+ # @!attribute close_time
60
+ # If in the future, the time at which the backfill will automatically close. If in
61
+ # the past, the time at which the backfill was closed.
62
+ #
63
+ # @return [Time, nil]
64
+ required :close_time, Time, nil?: true
65
+
66
+ # @!attribute created_at
67
+ #
68
+ # @return [Time]
69
+ required :created_at, Time
70
+
71
+ # @!attribute customer_id
72
+ # The Orb-generated ID of the customer to which this backfill is scoped. If
73
+ # `null`, this backfill is scoped to all customers.
74
+ #
75
+ # @return [String, nil]
76
+ required :customer_id, String, nil?: true
77
+
78
+ # @!attribute events_ingested
79
+ # The number of events ingested in this backfill.
80
+ #
81
+ # @return [Integer]
82
+ required :events_ingested, Integer
83
+
84
+ # @!attribute replace_existing_events
85
+ # If `true`, existing events in the backfill's timeframe will be replaced with the
86
+ # newly ingested events associated with the backfill. If `false`, newly ingested
87
+ # events will be added to the existing events.
88
+ #
89
+ # @return [Boolean]
90
+ required :replace_existing_events, Orb::Internal::Type::Boolean
91
+
92
+ # @!attribute reverted_at
93
+ # The time at which this backfill was reverted.
94
+ #
95
+ # @return [Time, nil]
96
+ required :reverted_at, Time, nil?: true
97
+
98
+ # @!attribute status
99
+ # The status of the backfill.
100
+ #
101
+ # @return [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Backfill::Status]
102
+ required :status, enum: -> { Orb::BackfillReflectedWebhookEvent::Backfill::Status }
103
+
104
+ # @!attribute timeframe_end
105
+ #
106
+ # @return [Time]
107
+ required :timeframe_end, Time
108
+
109
+ # @!attribute timeframe_start
110
+ #
111
+ # @return [Time]
112
+ required :timeframe_start, Time
113
+
114
+ # @!attribute deprecation_filter
115
+ # A boolean
116
+ # [computed property](/extensibility/advanced-metrics#computed-properties) used to
117
+ # filter the set of events to deprecate
118
+ #
119
+ # @return [String, nil]
120
+ optional :deprecation_filter, String, nil?: true
121
+
122
+ # @!method initialize(id:, close_time:, created_at:, customer_id:, events_ingested:, replace_existing_events:, reverted_at:, status:, timeframe_end:, timeframe_start:, deprecation_filter: nil)
123
+ # Some parameter documentations has been truncated, see
124
+ # {Orb::Models::BackfillReflectedWebhookEvent::Backfill} for more details.
125
+ #
126
+ # A backfill represents an update to historical usage data, adding or replacing
127
+ # events in a timeframe.
128
+ #
129
+ # @param id [String]
130
+ #
131
+ # @param close_time [Time, nil] If in the future, the time at which the backfill will automatically close. If in
132
+ #
133
+ # @param created_at [Time]
134
+ #
135
+ # @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. If `null`
136
+ #
137
+ # @param events_ingested [Integer] The number of events ingested in this backfill.
138
+ #
139
+ # @param replace_existing_events [Boolean] If `true`, existing events in the backfill's timeframe will be replaced with the
140
+ #
141
+ # @param reverted_at [Time, nil] The time at which this backfill was reverted.
142
+ #
143
+ # @param status [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Backfill::Status] The status of the backfill.
144
+ #
145
+ # @param timeframe_end [Time]
146
+ #
147
+ # @param timeframe_start [Time]
148
+ #
149
+ # @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie
150
+
151
+ # The status of the backfill.
152
+ #
153
+ # @see Orb::Models::BackfillReflectedWebhookEvent::Backfill#status
154
+ module Status
155
+ extend Orb::Internal::Type::Enum
156
+
157
+ PENDING = :pending
158
+ REFLECTED = :reflected
159
+ PENDING_REVERT = :pending_revert
160
+ REVERTED = :reverted
161
+
162
+ # @!method self.values
163
+ # @return [Array<Symbol>]
164
+ end
165
+ end
166
+
167
+ # The event this payload describes.
168
+ #
169
+ # @see Orb::Models::BackfillReflectedWebhookEvent#type
170
+ module Type
171
+ extend Orb::Internal::Type::Enum
172
+
173
+ BACKFILL_REFLECTED = :"backfill.reflected"
174
+
175
+ # @!method self.values
176
+ # @return [Array<Symbol>]
177
+ end
178
+ end
179
+ end
180
+ end
@@ -0,0 +1,180 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Orb
4
+ module Models
5
+ class BackfillRevertedWebhookEvent < Orb::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # The ID of this webhook event.
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute backfill
13
+ # A backfill represents an update to historical usage data, adding or replacing
14
+ # events in a timeframe.
15
+ #
16
+ # @return [Orb::Models::BackfillRevertedWebhookEvent::Backfill]
17
+ required :backfill, -> { Orb::BackfillRevertedWebhookEvent::Backfill }
18
+
19
+ # @!attribute created_at
20
+ # The time at which this event was created, to the second.
21
+ #
22
+ # @return [Time]
23
+ required :created_at, Time
24
+
25
+ # @!attribute properties
26
+ #
27
+ # @return [Object]
28
+ required :properties, Orb::Internal::Type::Unknown
29
+
30
+ # @!attribute type
31
+ # The event this payload describes.
32
+ #
33
+ # @return [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Type]
34
+ required :type, enum: -> { Orb::BackfillRevertedWebhookEvent::Type }
35
+
36
+ # @!method initialize(id:, backfill:, created_at:, properties:, type:)
37
+ # Some parameter documentations has been truncated, see
38
+ # {Orb::Models::BackfillRevertedWebhookEvent} for more details.
39
+ #
40
+ # Issued when a backfill is reverted, removing its events from usage.
41
+ #
42
+ # @param id [String] The ID of this webhook event.
43
+ #
44
+ # @param backfill [Orb::Models::BackfillRevertedWebhookEvent::Backfill] A backfill represents an update to historical usage data, adding or replacing ev
45
+ #
46
+ # @param created_at [Time] The time at which this event was created, to the second.
47
+ #
48
+ # @param properties [Object]
49
+ #
50
+ # @param type [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Type] The event this payload describes.
51
+
52
+ # @see Orb::Models::BackfillRevertedWebhookEvent#backfill
53
+ class Backfill < Orb::Internal::Type::BaseModel
54
+ # @!attribute id
55
+ #
56
+ # @return [String]
57
+ required :id, String
58
+
59
+ # @!attribute close_time
60
+ # If in the future, the time at which the backfill will automatically close. If in
61
+ # the past, the time at which the backfill was closed.
62
+ #
63
+ # @return [Time, nil]
64
+ required :close_time, Time, nil?: true
65
+
66
+ # @!attribute created_at
67
+ #
68
+ # @return [Time]
69
+ required :created_at, Time
70
+
71
+ # @!attribute customer_id
72
+ # The Orb-generated ID of the customer to which this backfill is scoped. If
73
+ # `null`, this backfill is scoped to all customers.
74
+ #
75
+ # @return [String, nil]
76
+ required :customer_id, String, nil?: true
77
+
78
+ # @!attribute events_ingested
79
+ # The number of events ingested in this backfill.
80
+ #
81
+ # @return [Integer]
82
+ required :events_ingested, Integer
83
+
84
+ # @!attribute replace_existing_events
85
+ # If `true`, existing events in the backfill's timeframe will be replaced with the
86
+ # newly ingested events associated with the backfill. If `false`, newly ingested
87
+ # events will be added to the existing events.
88
+ #
89
+ # @return [Boolean]
90
+ required :replace_existing_events, Orb::Internal::Type::Boolean
91
+
92
+ # @!attribute reverted_at
93
+ # The time at which this backfill was reverted.
94
+ #
95
+ # @return [Time, nil]
96
+ required :reverted_at, Time, nil?: true
97
+
98
+ # @!attribute status
99
+ # The status of the backfill.
100
+ #
101
+ # @return [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Backfill::Status]
102
+ required :status, enum: -> { Orb::BackfillRevertedWebhookEvent::Backfill::Status }
103
+
104
+ # @!attribute timeframe_end
105
+ #
106
+ # @return [Time]
107
+ required :timeframe_end, Time
108
+
109
+ # @!attribute timeframe_start
110
+ #
111
+ # @return [Time]
112
+ required :timeframe_start, Time
113
+
114
+ # @!attribute deprecation_filter
115
+ # A boolean
116
+ # [computed property](/extensibility/advanced-metrics#computed-properties) used to
117
+ # filter the set of events to deprecate
118
+ #
119
+ # @return [String, nil]
120
+ optional :deprecation_filter, String, nil?: true
121
+
122
+ # @!method initialize(id:, close_time:, created_at:, customer_id:, events_ingested:, replace_existing_events:, reverted_at:, status:, timeframe_end:, timeframe_start:, deprecation_filter: nil)
123
+ # Some parameter documentations has been truncated, see
124
+ # {Orb::Models::BackfillRevertedWebhookEvent::Backfill} for more details.
125
+ #
126
+ # A backfill represents an update to historical usage data, adding or replacing
127
+ # events in a timeframe.
128
+ #
129
+ # @param id [String]
130
+ #
131
+ # @param close_time [Time, nil] If in the future, the time at which the backfill will automatically close. If in
132
+ #
133
+ # @param created_at [Time]
134
+ #
135
+ # @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. If `null`
136
+ #
137
+ # @param events_ingested [Integer] The number of events ingested in this backfill.
138
+ #
139
+ # @param replace_existing_events [Boolean] If `true`, existing events in the backfill's timeframe will be replaced with the
140
+ #
141
+ # @param reverted_at [Time, nil] The time at which this backfill was reverted.
142
+ #
143
+ # @param status [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Backfill::Status] The status of the backfill.
144
+ #
145
+ # @param timeframe_end [Time]
146
+ #
147
+ # @param timeframe_start [Time]
148
+ #
149
+ # @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie
150
+
151
+ # The status of the backfill.
152
+ #
153
+ # @see Orb::Models::BackfillRevertedWebhookEvent::Backfill#status
154
+ module Status
155
+ extend Orb::Internal::Type::Enum
156
+
157
+ PENDING = :pending
158
+ REFLECTED = :reflected
159
+ PENDING_REVERT = :pending_revert
160
+ REVERTED = :reverted
161
+
162
+ # @!method self.values
163
+ # @return [Array<Symbol>]
164
+ end
165
+ end
166
+
167
+ # The event this payload describes.
168
+ #
169
+ # @see Orb::Models::BackfillRevertedWebhookEvent#type
170
+ module Type
171
+ extend Orb::Internal::Type::Enum
172
+
173
+ BACKFILL_REVERTED = :"backfill.reverted"
174
+
175
+ # @!method self.values
176
+ # @return [Array<Symbol>]
177
+ end
178
+ end
179
+ end
180
+ end
@@ -0,0 +1,104 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Orb
4
+ module Models
5
+ class BillableMetricEditedWebhookEvent < Orb::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # The ID of this webhook event.
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute billable_metric
13
+ # The Metric resource represents a calculation of a quantity based on events.
14
+ # Metrics are defined by the query that transforms raw usage events into
15
+ # meaningful values for your customers.
16
+ #
17
+ # @return [Orb::Models::BillableMetric]
18
+ required :billable_metric, -> { Orb::BillableMetric }
19
+
20
+ # @!attribute created_at
21
+ # The time at which this event was created, to the second.
22
+ #
23
+ # @return [Time]
24
+ required :created_at, Time
25
+
26
+ # @!attribute properties
27
+ #
28
+ # @return [Orb::Models::BillableMetricEditedWebhookEvent::Properties]
29
+ required :properties, -> { Orb::BillableMetricEditedWebhookEvent::Properties }
30
+
31
+ # @!attribute type
32
+ # The event this payload describes.
33
+ #
34
+ # @return [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::Type]
35
+ required :type, enum: -> { Orb::BillableMetricEditedWebhookEvent::Type }
36
+
37
+ # @!method initialize(id:, billable_metric:, created_at:, properties:, type:)
38
+ # Some parameter documentations has been truncated, see
39
+ # {Orb::Models::BillableMetricEditedWebhookEvent} for more details.
40
+ #
41
+ # Issued when a billable metric is edited.
42
+ #
43
+ # @param id [String] The ID of this webhook event.
44
+ #
45
+ # @param billable_metric [Orb::Models::BillableMetric] The Metric resource represents a calculation of a quantity based on events.
46
+ #
47
+ # @param created_at [Time] The time at which this event was created, to the second.
48
+ #
49
+ # @param properties [Orb::Models::BillableMetricEditedWebhookEvent::Properties]
50
+ #
51
+ # @param type [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::Type] The event this payload describes.
52
+
53
+ # @see Orb::Models::BillableMetricEditedWebhookEvent#properties
54
+ class Properties < Orb::Internal::Type::BaseModel
55
+ # @!attribute previous_attributes
56
+ # metadata values are non-null on the wire, as on the price event.
57
+ #
58
+ # @return [Orb::Models::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes]
59
+ required :previous_attributes,
60
+ -> { Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes }
61
+
62
+ # @!method initialize(previous_attributes:)
63
+ # @param previous_attributes [Orb::Models::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes] metadata values are non-null on the wire, as on the price event.
64
+
65
+ # @see Orb::Models::BillableMetricEditedWebhookEvent::Properties#previous_attributes
66
+ class PreviousAttributes < Orb::Internal::Type::BaseModel
67
+ # @!attribute description
68
+ #
69
+ # @return [String, nil]
70
+ optional :description, String, nil?: true
71
+
72
+ # @!attribute metadata
73
+ #
74
+ # @return [Hash{Symbol=>String}, nil]
75
+ optional :metadata, Orb::Internal::Type::HashOf[String], nil?: true
76
+
77
+ # @!attribute name
78
+ #
79
+ # @return [String, nil]
80
+ optional :name, String, nil?: true
81
+
82
+ # @!method initialize(description: nil, metadata: nil, name: nil)
83
+ # metadata values are non-null on the wire, as on the price event.
84
+ #
85
+ # @param description [String, nil]
86
+ # @param metadata [Hash{Symbol=>String}, nil]
87
+ # @param name [String, nil]
88
+ end
89
+ end
90
+
91
+ # The event this payload describes.
92
+ #
93
+ # @see Orb::Models::BillableMetricEditedWebhookEvent#type
94
+ module Type
95
+ extend Orb::Internal::Type::Enum
96
+
97
+ BILLABLE_METRIC_EDITED = :"billable_metric.edited"
98
+
99
+ # @!method self.values
100
+ # @return [Array<Symbol>]
101
+ end
102
+ end
103
+ end
104
+ end