orb-billing 1.44.0 → 1.46.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 (507) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/orb/models/backfill_reflected_webhook_event.rb +24 -1
  5. data/lib/orb/models/backfill_reverted_webhook_event.rb +24 -1
  6. data/lib/orb/models/billable_metric_edited_webhook_event.rb +24 -1
  7. data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +27 -1
  8. data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +27 -1
  9. data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +24 -1
  10. data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +24 -1
  11. data/lib/orb/models/credit_note_issued_webhook_event.rb +24 -1
  12. data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +24 -1
  13. data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +24 -1
  14. data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +24 -1
  15. data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +24 -1
  16. data/lib/orb/models/customer_created_webhook_event.rb +24 -1
  17. data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +24 -1
  18. data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +24 -1
  19. data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +24 -1
  20. data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +24 -1
  21. data/lib/orb/models/customer_edited_webhook_event.rb +24 -1
  22. data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +27 -1
  23. data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +27 -1
  24. data/lib/orb/models/event_unmatched_event_webhook_event.rb +27 -1
  25. data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +27 -1
  26. data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +24 -1
  27. data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +24 -1
  28. data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +24 -1
  29. data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +27 -1
  30. data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +27 -1
  31. data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +28 -1
  32. data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +27 -1
  33. data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +24 -1
  34. data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +24 -1
  35. data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +24 -1
  36. data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +24 -1
  37. data/lib/orb/models/invoice_edited_webhook_event.rb +24 -1
  38. data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +27 -1
  39. data/lib/orb/models/invoice_issue_failed_webhook_event.rb +24 -1
  40. data/lib/orb/models/invoice_issued_summary_webhook_event.rb +27 -1
  41. data/lib/orb/models/invoice_issued_webhook_event.rb +24 -1
  42. data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +24 -1
  43. data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +24 -1
  44. data/lib/orb/models/invoice_payment_failed_webhook_event.rb +24 -1
  45. data/lib/orb/models/invoice_payment_processing_webhook_event.rb +24 -1
  46. data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +24 -1
  47. data/lib/orb/models/invoice_sync_failed_webhook_event.rb +24 -1
  48. data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +24 -1
  49. data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +24 -1
  50. data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +24 -1
  51. data/lib/orb/models/payment_method_created_webhook_event.rb +24 -1
  52. data/lib/orb/models/payment_method_deleted_webhook_event.rb +24 -1
  53. data/lib/orb/models/plan_created_webhook_event.rb +27 -1
  54. data/lib/orb/models/plan_default_version_set_webhook_event.rb +27 -1
  55. data/lib/orb/models/plan_edited_webhook_event.rb +24 -1
  56. data/lib/orb/models/plan_version_created_webhook_event.rb +27 -1
  57. data/lib/orb/models/price_edited_webhook_event.rb +24 -1
  58. data/lib/orb/models/resource_event_test_webhook_event.rb +27 -1
  59. data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +24 -1
  60. data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +24 -1
  61. data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +24 -1
  62. data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +24 -1
  63. data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +24 -1
  64. data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +24 -1
  65. data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +24 -1
  66. data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +24 -1
  67. data/lib/orb/models/subscription_created_webhook_event.rb +24 -1
  68. data/lib/orb/models/subscription_edited_webhook_event.rb +24 -1
  69. data/lib/orb/models/subscription_ended_webhook_event.rb +24 -1
  70. data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +24 -1
  71. data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +24 -1
  72. data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +25 -1
  73. data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +24 -1
  74. data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +25 -1
  75. data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +24 -1
  76. data/lib/orb/models/subscription_plan_changed_webhook_event.rb +24 -1
  77. data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +25 -1
  78. data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +24 -1
  79. data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +24 -1
  80. data/lib/orb/models/subscription_started_webhook_event.rb +24 -1
  81. data/lib/orb/models/subscription_trial_ended_webhook_event.rb +24 -1
  82. data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +24 -1
  83. data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +27 -1
  84. data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +27 -1
  85. data/lib/orb/models/webhooks/backfill_reflected_standard_webhook_event.rb +206 -0
  86. data/lib/orb/models/webhooks/backfill_reverted_standard_webhook_event.rb +206 -0
  87. data/lib/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rb +131 -0
  88. data/lib/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rb +537 -0
  89. data/lib/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rb +531 -0
  90. data/lib/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rb +188 -0
  91. data/lib/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rb +183 -0
  92. data/lib/orb/models/webhooks/credit_note_issued_standard_webhook_event.rb +90 -0
  93. data/lib/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rb +92 -0
  94. data/lib/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rb +198 -0
  95. data/lib/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rb +193 -0
  96. data/lib/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rb +240 -0
  97. data/lib/orb/models/webhooks/customer_created_standard_webhook_event.rb +106 -0
  98. data/lib/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rb +597 -0
  99. data/lib/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rb +603 -0
  100. data/lib/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rb +597 -0
  101. data/lib/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rb +509 -0
  102. data/lib/orb/models/webhooks/customer_edited_standard_webhook_event.rb +371 -0
  103. data/lib/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rb +130 -0
  104. data/lib/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rb +124 -0
  105. data/lib/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rb +134 -0
  106. data/lib/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rb +94 -0
  107. data/lib/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rb +972 -0
  108. data/lib/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rb +966 -0
  109. data/lib/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rb +367 -0
  110. data/lib/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rb +113 -0
  111. data/lib/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rb +101 -0
  112. data/lib/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rb +101 -0
  113. data/lib/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rb +95 -0
  114. data/lib/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rb +994 -0
  115. data/lib/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rb +988 -0
  116. data/lib/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rb +992 -0
  117. data/lib/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rb +942 -0
  118. data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +1365 -0
  119. data/lib/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rb +151 -0
  120. data/lib/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rb +885 -0
  121. data/lib/orb/models/webhooks/invoice_issued_standard_webhook_event.rb +884 -0
  122. data/lib/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rb +887 -0
  123. data/lib/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rb +899 -0
  124. data/lib/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rb +876 -0
  125. data/lib/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rb +899 -0
  126. data/lib/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rb +893 -0
  127. data/lib/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rb +908 -0
  128. data/lib/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rb +890 -0
  129. data/lib/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rb +892 -0
  130. data/lib/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rb +875 -0
  131. data/lib/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rb +125 -0
  132. data/lib/orb/models/webhooks/payment_method_created_standard_webhook_event.rb +184 -0
  133. data/lib/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rb +184 -0
  134. data/lib/orb/models/webhooks/plan_created_standard_webhook_event.rb +119 -0
  135. data/lib/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rb +139 -0
  136. data/lib/orb/models/webhooks/plan_edited_standard_webhook_event.rb +159 -0
  137. data/lib/orb/models/webhooks/plan_version_created_standard_webhook_event.rb +138 -0
  138. data/lib/orb/models/webhooks/price_edited_standard_webhook_event.rb +132 -0
  139. data/lib/orb/models/webhooks/resource_event_test_standard_webhook_event.rb +92 -0
  140. data/lib/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rb +972 -0
  141. data/lib/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rb +967 -0
  142. data/lib/orb/models/webhooks/standard_unwrap_standard_params.rb +16 -0
  143. data/lib/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rb +322 -0
  144. data/lib/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rb +316 -0
  145. data/lib/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rb +667 -0
  146. data/lib/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rb +237 -0
  147. data/lib/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rb +237 -0
  148. data/lib/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rb +692 -0
  149. data/lib/orb/models/webhooks/subscription_created_standard_webhook_event.rb +221 -0
  150. data/lib/orb/models/webhooks/subscription_edited_standard_webhook_event.rb +273 -0
  151. data/lib/orb/models/webhooks/subscription_ended_standard_webhook_event.rb +219 -0
  152. data/lib/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rb +255 -0
  153. data/lib/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rb +693 -0
  154. data/lib/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rb +222 -0
  155. data/lib/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rb +244 -0
  156. data/lib/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rb +687 -0
  157. data/lib/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rb +249 -0
  158. data/lib/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rb +233 -0
  159. data/lib/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rb +250 -0
  160. data/lib/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rb +248 -0
  161. data/lib/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rb +693 -0
  162. data/lib/orb/models/webhooks/subscription_started_standard_webhook_event.rb +221 -0
  163. data/lib/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rb +222 -0
  164. data/lib/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rb +700 -0
  165. data/lib/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rb +270 -0
  166. data/lib/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rb +264 -0
  167. data/lib/orb/models/webhooks/unwrap_standard_webhook_event.rb +258 -0
  168. data/lib/orb/models.rb +2 -0
  169. data/lib/orb/resources/webhooks/standard.rb +24 -0
  170. data/lib/orb/resources/webhooks.rb +4 -0
  171. data/lib/orb/version.rb +1 -1
  172. data/lib/orb.rb +84 -0
  173. data/rbi/orb/models/backfill_reflected_webhook_event.rbi +47 -0
  174. data/rbi/orb/models/backfill_reverted_webhook_event.rbi +47 -0
  175. data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +49 -0
  176. data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +52 -0
  177. data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +52 -0
  178. data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +52 -0
  179. data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +52 -0
  180. data/rbi/orb/models/credit_note_issued_webhook_event.rbi +47 -0
  181. data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +49 -0
  182. data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +52 -0
  183. data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +52 -0
  184. data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +52 -0
  185. data/rbi/orb/models/customer_created_webhook_event.rbi +47 -0
  186. data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +52 -0
  187. data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +52 -0
  188. data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +52 -0
  189. data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +52 -0
  190. data/rbi/orb/models/customer_edited_webhook_event.rbi +47 -0
  191. data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +52 -0
  192. data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +52 -0
  193. data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +49 -0
  194. data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +52 -0
  195. data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +52 -0
  196. data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +52 -0
  197. data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +52 -0
  198. data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +52 -0
  199. data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +52 -0
  200. data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +52 -0
  201. data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +52 -0
  202. data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +52 -0
  203. data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +52 -0
  204. data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +52 -0
  205. data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +52 -0
  206. data/rbi/orb/models/invoice_edited_webhook_event.rbi +44 -0
  207. data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +52 -0
  208. data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +47 -0
  209. data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +49 -0
  210. data/rbi/orb/models/invoice_issued_webhook_event.rbi +44 -0
  211. data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +52 -0
  212. data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +52 -0
  213. data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +49 -0
  214. data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +52 -0
  215. data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +52 -0
  216. data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +47 -0
  217. data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +49 -0
  218. data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +49 -0
  219. data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +52 -0
  220. data/rbi/orb/models/payment_method_created_webhook_event.rbi +49 -0
  221. data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +49 -0
  222. data/rbi/orb/models/plan_created_webhook_event.rbi +42 -0
  223. data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +49 -0
  224. data/rbi/orb/models/plan_edited_webhook_event.rbi +42 -0
  225. data/rbi/orb/models/plan_version_created_webhook_event.rbi +47 -0
  226. data/rbi/orb/models/price_edited_webhook_event.rbi +42 -0
  227. data/rbi/orb/models/resource_event_test_webhook_event.rbi +47 -0
  228. data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +52 -0
  229. data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +52 -0
  230. data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +52 -0
  231. data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +52 -0
  232. data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +52 -0
  233. data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +52 -0
  234. data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +52 -0
  235. data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +52 -0
  236. data/rbi/orb/models/subscription_created_webhook_event.rbi +49 -0
  237. data/rbi/orb/models/subscription_edited_webhook_event.rbi +47 -0
  238. data/rbi/orb/models/subscription_ended_webhook_event.rbi +47 -0
  239. data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +52 -0
  240. data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +52 -0
  241. data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +52 -0
  242. data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +52 -0
  243. data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +52 -0
  244. data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +52 -0
  245. data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +52 -0
  246. data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +52 -0
  247. data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +52 -0
  248. data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +52 -0
  249. data/rbi/orb/models/subscription_started_webhook_event.rbi +49 -0
  250. data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +49 -0
  251. data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +52 -0
  252. data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +52 -0
  253. data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +52 -0
  254. data/rbi/orb/models/webhooks/backfill_reflected_standard_webhook_event.rbi +349 -0
  255. data/rbi/orb/models/webhooks/backfill_reverted_standard_webhook_event.rbi +347 -0
  256. data/rbi/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rbi +273 -0
  257. data/rbi/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbi +1106 -0
  258. data/rbi/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbi +1095 -0
  259. data/rbi/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rbi +377 -0
  260. data/rbi/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rbi +366 -0
  261. data/rbi/orb/models/webhooks/credit_note_issued_standard_webhook_event.rbi +166 -0
  262. data/rbi/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rbi +166 -0
  263. data/rbi/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rbi +403 -0
  264. data/rbi/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rbi +392 -0
  265. data/rbi/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rbi +493 -0
  266. data/rbi/orb/models/webhooks/customer_created_standard_webhook_event.rbi +198 -0
  267. data/rbi/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rbi +1151 -0
  268. data/rbi/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rbi +1158 -0
  269. data/rbi/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rbi +1151 -0
  270. data/rbi/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbi +1044 -0
  271. data/rbi/orb/models/webhooks/customer_edited_standard_webhook_event.rbi +678 -0
  272. data/rbi/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rbi +236 -0
  273. data/rbi/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rbi +230 -0
  274. data/rbi/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rbi +275 -0
  275. data/rbi/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rbi +192 -0
  276. data/rbi/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbi +1705 -0
  277. data/rbi/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbi +1694 -0
  278. data/rbi/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rbi +670 -0
  279. data/rbi/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rbi +210 -0
  280. data/rbi/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rbi +195 -0
  281. data/rbi/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rbi +195 -0
  282. data/rbi/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rbi +188 -0
  283. data/rbi/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbi +1713 -0
  284. data/rbi/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbi +1708 -0
  285. data/rbi/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbi +1713 -0
  286. data/rbi/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbi +1628 -0
  287. data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +2337 -0
  288. data/rbi/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rbi +324 -0
  289. data/rbi/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbi +1529 -0
  290. data/rbi/orb/models/webhooks/invoice_issued_standard_webhook_event.rbi +1529 -0
  291. data/rbi/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbi +1534 -0
  292. data/rbi/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbi +1549 -0
  293. data/rbi/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbi +1494 -0
  294. data/rbi/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbi +1554 -0
  295. data/rbi/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbi +1547 -0
  296. data/rbi/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbi +1563 -0
  297. data/rbi/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbi +1542 -0
  298. data/rbi/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbi +1544 -0
  299. data/rbi/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbi +1494 -0
  300. data/rbi/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rbi +233 -0
  301. data/rbi/orb/models/webhooks/payment_method_created_standard_webhook_event.rbi +331 -0
  302. data/rbi/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rbi +331 -0
  303. data/rbi/orb/models/webhooks/plan_created_standard_webhook_event.rbi +216 -0
  304. data/rbi/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rbi +277 -0
  305. data/rbi/orb/models/webhooks/plan_edited_standard_webhook_event.rbi +337 -0
  306. data/rbi/orb/models/webhooks/plan_version_created_standard_webhook_event.rbi +271 -0
  307. data/rbi/orb/models/webhooks/price_edited_standard_webhook_event.rbi +311 -0
  308. data/rbi/orb/models/webhooks/resource_event_test_standard_webhook_event.rbi +191 -0
  309. data/rbi/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbi +1705 -0
  310. data/rbi/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbi +1694 -0
  311. data/rbi/orb/models/webhooks/standard_unwrap_standard_params.rbi +32 -0
  312. data/rbi/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbi +609 -0
  313. data/rbi/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbi +598 -0
  314. data/rbi/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rbi +1302 -0
  315. data/rbi/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbi +433 -0
  316. data/rbi/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbi +435 -0
  317. data/rbi/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbi +1298 -0
  318. data/rbi/orb/models/webhooks/subscription_created_standard_webhook_event.rbi +398 -0
  319. data/rbi/orb/models/webhooks/subscription_edited_standard_webhook_event.rbi +520 -0
  320. data/rbi/orb/models/webhooks/subscription_ended_standard_webhook_event.rbi +398 -0
  321. data/rbi/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbi +458 -0
  322. data/rbi/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rbi +1321 -0
  323. data/rbi/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rbi +428 -0
  324. data/rbi/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rbi +477 -0
  325. data/rbi/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rbi +1319 -0
  326. data/rbi/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbi +453 -0
  327. data/rbi/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbi +433 -0
  328. data/rbi/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbi +457 -0
  329. data/rbi/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbi +457 -0
  330. data/rbi/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbi +1299 -0
  331. data/rbi/orb/models/webhooks/subscription_started_standard_webhook_event.rbi +398 -0
  332. data/rbi/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbi +398 -0
  333. data/rbi/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbi +1305 -0
  334. data/rbi/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rbi +516 -0
  335. data/rbi/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbi +505 -0
  336. data/rbi/orb/models/webhooks/unwrap_standard_webhook_event.rbi +107 -0
  337. data/rbi/orb/models.rbi +2 -0
  338. data/rbi/orb/resources/webhooks/standard.rbi +107 -0
  339. data/rbi/orb/resources/webhooks.rbi +3 -0
  340. data/sig/orb/models/backfill_reflected_webhook_event.rbs +16 -0
  341. data/sig/orb/models/backfill_reverted_webhook_event.rbs +16 -0
  342. data/sig/orb/models/billable_metric_edited_webhook_event.rbs +16 -0
  343. data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +16 -0
  344. data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +16 -0
  345. data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +16 -0
  346. data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +16 -0
  347. data/sig/orb/models/credit_note_issued_webhook_event.rbs +16 -0
  348. data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +16 -0
  349. data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +16 -0
  350. data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +16 -0
  351. data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +16 -0
  352. data/sig/orb/models/customer_created_webhook_event.rbs +16 -0
  353. data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +16 -0
  354. data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +16 -0
  355. data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +16 -0
  356. data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +16 -0
  357. data/sig/orb/models/customer_edited_webhook_event.rbs +16 -0
  358. data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +16 -0
  359. data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +16 -0
  360. data/sig/orb/models/event_unmatched_event_webhook_event.rbs +16 -0
  361. data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +16 -0
  362. data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +16 -0
  363. data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +16 -0
  364. data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +16 -0
  365. data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +16 -0
  366. data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +16 -0
  367. data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +16 -0
  368. data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +16 -0
  369. data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +16 -0
  370. data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +16 -0
  371. data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +16 -0
  372. data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +16 -0
  373. data/sig/orb/models/invoice_edited_webhook_event.rbs +16 -0
  374. data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +16 -0
  375. data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +16 -0
  376. data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +16 -0
  377. data/sig/orb/models/invoice_issued_webhook_event.rbs +16 -0
  378. data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +16 -0
  379. data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +16 -0
  380. data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +16 -0
  381. data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +16 -0
  382. data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +16 -0
  383. data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +16 -0
  384. data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +16 -0
  385. data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +16 -0
  386. data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +16 -0
  387. data/sig/orb/models/payment_method_created_webhook_event.rbs +16 -0
  388. data/sig/orb/models/payment_method_deleted_webhook_event.rbs +16 -0
  389. data/sig/orb/models/plan_created_webhook_event.rbs +16 -0
  390. data/sig/orb/models/plan_default_version_set_webhook_event.rbs +16 -0
  391. data/sig/orb/models/plan_edited_webhook_event.rbs +16 -0
  392. data/sig/orb/models/plan_version_created_webhook_event.rbs +16 -0
  393. data/sig/orb/models/price_edited_webhook_event.rbs +16 -0
  394. data/sig/orb/models/resource_event_test_webhook_event.rbs +16 -0
  395. data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +16 -0
  396. data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +16 -0
  397. data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +16 -0
  398. data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +16 -0
  399. data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +16 -0
  400. data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +16 -0
  401. data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +16 -0
  402. data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +16 -0
  403. data/sig/orb/models/subscription_created_webhook_event.rbs +16 -0
  404. data/sig/orb/models/subscription_edited_webhook_event.rbs +16 -0
  405. data/sig/orb/models/subscription_ended_webhook_event.rbs +16 -0
  406. data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +16 -0
  407. data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +16 -0
  408. data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +16 -0
  409. data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +16 -0
  410. data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +16 -0
  411. data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +16 -0
  412. data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +16 -0
  413. data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +16 -0
  414. data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +16 -0
  415. data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +16 -0
  416. data/sig/orb/models/subscription_started_webhook_event.rbs +16 -0
  417. data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +16 -0
  418. data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +16 -0
  419. data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +16 -0
  420. data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +16 -0
  421. data/sig/orb/models/webhooks/backfill_reflected_standard_webhook_event.rbs +148 -0
  422. data/sig/orb/models/webhooks/backfill_reverted_standard_webhook_event.rbs +148 -0
  423. data/sig/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rbs +112 -0
  424. data/sig/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbs +435 -0
  425. data/sig/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbs +430 -0
  426. data/sig/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rbs +165 -0
  427. data/sig/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rbs +160 -0
  428. data/sig/orb/models/webhooks/credit_note_issued_standard_webhook_event.rbs +68 -0
  429. data/sig/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rbs +68 -0
  430. data/sig/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rbs +160 -0
  431. data/sig/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rbs +155 -0
  432. data/sig/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rbs +189 -0
  433. data/sig/orb/models/webhooks/customer_created_standard_webhook_event.rbs +68 -0
  434. data/sig/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rbs +396 -0
  435. data/sig/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rbs +401 -0
  436. data/sig/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rbs +396 -0
  437. data/sig/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbs +386 -0
  438. data/sig/orb/models/webhooks/customer_edited_standard_webhook_event.rbs +157 -0
  439. data/sig/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rbs +110 -0
  440. data/sig/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rbs +105 -0
  441. data/sig/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rbs +122 -0
  442. data/sig/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rbs +73 -0
  443. data/sig/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbs +614 -0
  444. data/sig/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbs +609 -0
  445. data/sig/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rbs +331 -0
  446. data/sig/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rbs +91 -0
  447. data/sig/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rbs +75 -0
  448. data/sig/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rbs +75 -0
  449. data/sig/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rbs +73 -0
  450. data/sig/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbs +638 -0
  451. data/sig/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbs +633 -0
  452. data/sig/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbs +623 -0
  453. data/sig/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbs +586 -0
  454. data/sig/orb/models/webhooks/invoice_edited_standard_webhook_event.rbs +859 -0
  455. data/sig/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rbs +129 -0
  456. data/sig/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbs +527 -0
  457. data/sig/orb/models/webhooks/invoice_issued_standard_webhook_event.rbs +527 -0
  458. data/sig/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbs +527 -0
  459. data/sig/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbs +540 -0
  460. data/sig/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbs +517 -0
  461. data/sig/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbs +544 -0
  462. data/sig/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbs +538 -0
  463. data/sig/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbs +549 -0
  464. data/sig/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbs +536 -0
  465. data/sig/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbs +536 -0
  466. data/sig/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbs +517 -0
  467. data/sig/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rbs +100 -0
  468. data/sig/orb/models/webhooks/payment_method_created_standard_webhook_event.rbs +130 -0
  469. data/sig/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rbs +130 -0
  470. data/sig/orb/models/webhooks/plan_created_standard_webhook_event.rbs +90 -0
  471. data/sig/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rbs +112 -0
  472. data/sig/orb/models/webhooks/plan_edited_standard_webhook_event.rbs +134 -0
  473. data/sig/orb/models/webhooks/plan_version_created_standard_webhook_event.rbs +109 -0
  474. data/sig/orb/models/webhooks/price_edited_standard_webhook_event.rbs +95 -0
  475. data/sig/orb/models/webhooks/resource_event_test_standard_webhook_event.rbs +75 -0
  476. data/sig/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbs +614 -0
  477. data/sig/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbs +609 -0
  478. data/sig/orb/models/webhooks/standard_unwrap_standard_params.rbs +17 -0
  479. data/sig/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbs +256 -0
  480. data/sig/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbs +251 -0
  481. data/sig/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rbs +466 -0
  482. data/sig/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbs +169 -0
  483. data/sig/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbs +169 -0
  484. data/sig/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbs +475 -0
  485. data/sig/orb/models/webhooks/subscription_created_standard_webhook_event.rbs +159 -0
  486. data/sig/orb/models/webhooks/subscription_edited_standard_webhook_event.rbs +218 -0
  487. data/sig/orb/models/webhooks/subscription_ended_standard_webhook_event.rbs +159 -0
  488. data/sig/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbs +191 -0
  489. data/sig/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rbs +487 -0
  490. data/sig/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rbs +176 -0
  491. data/sig/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rbs +198 -0
  492. data/sig/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rbs +482 -0
  493. data/sig/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbs +182 -0
  494. data/sig/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbs +169 -0
  495. data/sig/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbs +186 -0
  496. data/sig/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbs +186 -0
  497. data/sig/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbs +475 -0
  498. data/sig/orb/models/webhooks/subscription_started_standard_webhook_event.rbs +159 -0
  499. data/sig/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbs +159 -0
  500. data/sig/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbs +480 -0
  501. data/sig/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rbs +223 -0
  502. data/sig/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbs +218 -0
  503. data/sig/orb/models/webhooks/unwrap_standard_webhook_event.rbs +94 -0
  504. data/sig/orb/models.rbs +2 -0
  505. data/sig/orb/resources/webhooks/standard.rbs +93 -0
  506. data/sig/orb/resources/webhooks.rbs +2 -0
  507. metadata +253 -1
@@ -0,0 +1,1319 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ module Webhooks
6
+ class SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent < Orb::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent,
11
+ Orb::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # The ID of this webhook event.
16
+ sig { returns(String) }
17
+ attr_accessor :id
18
+
19
+ # The time at which this event was created, to the second.
20
+ sig { returns(Time) }
21
+ attr_accessor :created_at
22
+
23
+ # The serialization style this payload was rendered in, as configured on the
24
+ # endpoint.
25
+ sig do
26
+ returns(
27
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::PayloadStyle::TaggedSymbol
28
+ )
29
+ end
30
+ attr_accessor :payload_style
31
+
32
+ # Every license that crossed a threshold for one alert, batched into a single
33
+ # message. For account-wide alerts the licenses may span several license types.
34
+ sig do
35
+ returns(
36
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties
37
+ )
38
+ end
39
+ attr_reader :properties
40
+
41
+ sig do
42
+ params(
43
+ properties:
44
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::OrHash
45
+ ).void
46
+ end
47
+ attr_writer :properties
48
+
49
+ # A lightweight subscription representation for webhook payloads.
50
+ #
51
+ # This avoids the expensive to_subscription_params() call required for full
52
+ # serialization.
53
+ sig do
54
+ returns(
55
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription
56
+ )
57
+ end
58
+ attr_reader :subscription
59
+
60
+ sig do
61
+ params(
62
+ subscription:
63
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::OrHash
64
+ ).void
65
+ end
66
+ attr_writer :subscription
67
+
68
+ # The event this payload describes.
69
+ sig do
70
+ returns(
71
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Type::TaggedSymbol
72
+ )
73
+ end
74
+ attr_accessor :type
75
+
76
+ # Issued when a license balance threshold is reached.
77
+ sig do
78
+ params(
79
+ id: String,
80
+ created_at: Time,
81
+ payload_style:
82
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::PayloadStyle::OrSymbol,
83
+ properties:
84
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::OrHash,
85
+ subscription:
86
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::OrHash,
87
+ type:
88
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Type::OrSymbol
89
+ ).returns(T.attached_class)
90
+ end
91
+ def self.new(
92
+ # The ID of this webhook event.
93
+ id:,
94
+ # The time at which this event was created, to the second.
95
+ created_at:,
96
+ # The serialization style this payload was rendered in, as configured on the
97
+ # endpoint.
98
+ payload_style:,
99
+ # Every license that crossed a threshold for one alert, batched into a single
100
+ # message. For account-wide alerts the licenses may span several license types.
101
+ properties:,
102
+ # A lightweight subscription representation for webhook payloads.
103
+ #
104
+ # This avoids the expensive to_subscription_params() call required for full
105
+ # serialization.
106
+ subscription:,
107
+ # The event this payload describes.
108
+ type:
109
+ )
110
+ end
111
+
112
+ sig do
113
+ override.returns(
114
+ {
115
+ id: String,
116
+ created_at: Time,
117
+ payload_style:
118
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::PayloadStyle::TaggedSymbol,
119
+ properties:
120
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties,
121
+ subscription:
122
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription,
123
+ type:
124
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Type::TaggedSymbol
125
+ }
126
+ )
127
+ end
128
+ def to_hash
129
+ end
130
+
131
+ # The serialization style this payload was rendered in, as configured on the
132
+ # endpoint.
133
+ module PayloadStyle
134
+ extend Orb::Internal::Type::Enum
135
+
136
+ TaggedSymbol =
137
+ T.type_alias do
138
+ T.all(
139
+ Symbol,
140
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::PayloadStyle
141
+ )
142
+ end
143
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
144
+
145
+ EXPANDED =
146
+ T.let(
147
+ :expanded,
148
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::PayloadStyle::TaggedSymbol
149
+ )
150
+ STANDARD =
151
+ T.let(
152
+ :standard,
153
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::PayloadStyle::TaggedSymbol
154
+ )
155
+
156
+ sig do
157
+ override.returns(
158
+ T::Array[
159
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::PayloadStyle::TaggedSymbol
160
+ ]
161
+ )
162
+ end
163
+ def self.values
164
+ end
165
+ end
166
+
167
+ class Properties < Orb::Internal::Type::BaseModel
168
+ OrHash =
169
+ T.type_alias do
170
+ T.any(
171
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties,
172
+ Orb::Internal::AnyHash
173
+ )
174
+ end
175
+
176
+ # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
177
+ # usage, or credit balance and trigger webhooks when a threshold is exceeded.
178
+ #
179
+ # Alerts created through the API can be scoped to either customers or
180
+ # subscriptions.
181
+ sig do
182
+ returns(
183
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration
184
+ )
185
+ end
186
+ attr_reader :alert_configuration
187
+
188
+ sig do
189
+ params(
190
+ alert_configuration:
191
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::OrHash
192
+ ).void
193
+ end
194
+ attr_writer :alert_configuration
195
+
196
+ sig do
197
+ returns(
198
+ T::Array[
199
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::License
200
+ ]
201
+ )
202
+ end
203
+ attr_accessor :licenses
204
+
205
+ sig { returns(Time) }
206
+ attr_accessor :timeframe_end
207
+
208
+ sig { returns(Time) }
209
+ attr_accessor :timeframe_start
210
+
211
+ # Every license that crossed a threshold for one alert, batched into a single
212
+ # message. For account-wide alerts the licenses may span several license types.
213
+ sig do
214
+ params(
215
+ alert_configuration:
216
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::OrHash,
217
+ licenses:
218
+ T::Array[
219
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::License::OrHash
220
+ ],
221
+ timeframe_end: Time,
222
+ timeframe_start: Time
223
+ ).returns(T.attached_class)
224
+ end
225
+ def self.new(
226
+ # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
227
+ # usage, or credit balance and trigger webhooks when a threshold is exceeded.
228
+ #
229
+ # Alerts created through the API can be scoped to either customers or
230
+ # subscriptions.
231
+ alert_configuration:,
232
+ licenses:,
233
+ timeframe_end:,
234
+ timeframe_start:
235
+ )
236
+ end
237
+
238
+ sig do
239
+ override.returns(
240
+ {
241
+ alert_configuration:
242
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration,
243
+ licenses:
244
+ T::Array[
245
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::License
246
+ ],
247
+ timeframe_end: Time,
248
+ timeframe_start: Time
249
+ }
250
+ )
251
+ end
252
+ def to_hash
253
+ end
254
+
255
+ class AlertConfiguration < Orb::Internal::Type::BaseModel
256
+ OrHash =
257
+ T.type_alias do
258
+ T.any(
259
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration,
260
+ Orb::Internal::AnyHash
261
+ )
262
+ end
263
+
264
+ # Also referred to as alert_id in this documentation.
265
+ sig { returns(String) }
266
+ attr_accessor :id
267
+
268
+ # The creation time of the resource in Orb.
269
+ sig { returns(Time) }
270
+ attr_accessor :created_at
271
+
272
+ # The name of the currency the credit balance or invoice cost is denominated in.
273
+ sig { returns(T.nilable(String)) }
274
+ attr_accessor :currency
275
+
276
+ # The customer the alert applies to.
277
+ sig { returns(T.nilable(Orb::CustomerMinified)) }
278
+ attr_reader :customer
279
+
280
+ sig do
281
+ params(customer: T.nilable(Orb::CustomerMinified::OrHash)).void
282
+ end
283
+ attr_writer :customer
284
+
285
+ # Whether the alert is enabled or disabled.
286
+ sig { returns(T::Boolean) }
287
+ attr_accessor :enabled
288
+
289
+ # The metric the alert applies to.
290
+ sig do
291
+ returns(
292
+ T.nilable(
293
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Metric
294
+ )
295
+ )
296
+ end
297
+ attr_reader :metric
298
+
299
+ sig do
300
+ params(
301
+ metric:
302
+ T.nilable(
303
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Metric::OrHash
304
+ )
305
+ ).void
306
+ end
307
+ attr_writer :metric
308
+
309
+ # The plan the alert applies to.
310
+ sig do
311
+ returns(
312
+ T.nilable(
313
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Plan
314
+ )
315
+ )
316
+ end
317
+ attr_reader :plan
318
+
319
+ sig do
320
+ params(
321
+ plan:
322
+ T.nilable(
323
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Plan::OrHash
324
+ )
325
+ ).void
326
+ end
327
+ attr_writer :plan
328
+
329
+ # The subscription the alert applies to.
330
+ sig { returns(T.nilable(Orb::SubscriptionMinified)) }
331
+ attr_reader :subscription
332
+
333
+ sig do
334
+ params(
335
+ subscription: T.nilable(Orb::SubscriptionMinified::OrHash)
336
+ ).void
337
+ end
338
+ attr_writer :subscription
339
+
340
+ # The thresholds that define the conditions under which the alert will be
341
+ # triggered.
342
+ sig do
343
+ returns(
344
+ T.nilable(
345
+ T::Array[
346
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Threshold
347
+ ]
348
+ )
349
+ )
350
+ end
351
+ attr_accessor :thresholds
352
+
353
+ # The type of alert. This must be a valid alert type.
354
+ sig do
355
+ returns(
356
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
357
+ )
358
+ end
359
+ attr_accessor :type
360
+
361
+ # The current status of the alert. This field is only present for credit balance
362
+ # alerts.
363
+ sig do
364
+ returns(
365
+ T.nilable(
366
+ T::Array[
367
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::BalanceAlertStatus
368
+ ]
369
+ )
370
+ )
371
+ end
372
+ attr_accessor :balance_alert_status
373
+
374
+ # The property keys to group cost alerts by. Only present for cost alerts with
375
+ # grouping enabled.
376
+ sig { returns(T.nilable(T::Array[String])) }
377
+ attr_accessor :grouping_keys
378
+
379
+ # Minified license type for alert serialization.
380
+ sig do
381
+ returns(
382
+ T.nilable(
383
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::LicenseType
384
+ )
385
+ )
386
+ end
387
+ attr_reader :license_type
388
+
389
+ sig do
390
+ params(
391
+ license_type:
392
+ T.nilable(
393
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::LicenseType::OrHash
394
+ )
395
+ ).void
396
+ end
397
+ attr_writer :license_type
398
+
399
+ # Filters scoping which prices are included in spend and grouped cost alert
400
+ # evaluation. Alerts use the price_id, item_id, and price_type fields only; the
401
+ # alert's pricing unit is reported by currency.
402
+ sig do
403
+ returns(
404
+ T.nilable(
405
+ T::Array[
406
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter
407
+ ]
408
+ )
409
+ )
410
+ end
411
+ attr_accessor :price_filters
412
+
413
+ # Per-group threshold overrides. Each override maps a specific combination of
414
+ # grouping_keys values to a replacement threshold list. Only present for grouped
415
+ # cost alerts that have at least one override.
416
+ sig do
417
+ returns(
418
+ T.nilable(
419
+ T::Array[
420
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride
421
+ ]
422
+ )
423
+ )
424
+ end
425
+ attr_accessor :threshold_overrides
426
+
427
+ # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
428
+ # usage, or credit balance and trigger webhooks when a threshold is exceeded.
429
+ #
430
+ # Alerts created through the API can be scoped to either customers or
431
+ # subscriptions.
432
+ sig do
433
+ params(
434
+ id: String,
435
+ created_at: Time,
436
+ currency: T.nilable(String),
437
+ customer: T.nilable(Orb::CustomerMinified::OrHash),
438
+ enabled: T::Boolean,
439
+ metric:
440
+ T.nilable(
441
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Metric::OrHash
442
+ ),
443
+ plan:
444
+ T.nilable(
445
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Plan::OrHash
446
+ ),
447
+ subscription: T.nilable(Orb::SubscriptionMinified::OrHash),
448
+ thresholds:
449
+ T.nilable(
450
+ T::Array[
451
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Threshold::OrHash
452
+ ]
453
+ ),
454
+ type:
455
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::OrSymbol,
456
+ balance_alert_status:
457
+ T.nilable(
458
+ T::Array[
459
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::BalanceAlertStatus::OrHash
460
+ ]
461
+ ),
462
+ grouping_keys: T.nilable(T::Array[String]),
463
+ license_type:
464
+ T.nilable(
465
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::LicenseType::OrHash
466
+ ),
467
+ price_filters:
468
+ T.nilable(
469
+ T::Array[
470
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::OrHash
471
+ ]
472
+ ),
473
+ threshold_overrides:
474
+ T.nilable(
475
+ T::Array[
476
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride::OrHash
477
+ ]
478
+ )
479
+ ).returns(T.attached_class)
480
+ end
481
+ def self.new(
482
+ # Also referred to as alert_id in this documentation.
483
+ id:,
484
+ # The creation time of the resource in Orb.
485
+ created_at:,
486
+ # The name of the currency the credit balance or invoice cost is denominated in.
487
+ currency:,
488
+ # The customer the alert applies to.
489
+ customer:,
490
+ # Whether the alert is enabled or disabled.
491
+ enabled:,
492
+ # The metric the alert applies to.
493
+ metric:,
494
+ # The plan the alert applies to.
495
+ plan:,
496
+ # The subscription the alert applies to.
497
+ subscription:,
498
+ # The thresholds that define the conditions under which the alert will be
499
+ # triggered.
500
+ thresholds:,
501
+ # The type of alert. This must be a valid alert type.
502
+ type:,
503
+ # The current status of the alert. This field is only present for credit balance
504
+ # alerts.
505
+ balance_alert_status: nil,
506
+ # The property keys to group cost alerts by. Only present for cost alerts with
507
+ # grouping enabled.
508
+ grouping_keys: nil,
509
+ # Minified license type for alert serialization.
510
+ license_type: nil,
511
+ # Filters scoping which prices are included in spend and grouped cost alert
512
+ # evaluation. Alerts use the price_id, item_id, and price_type fields only; the
513
+ # alert's pricing unit is reported by currency.
514
+ price_filters: nil,
515
+ # Per-group threshold overrides. Each override maps a specific combination of
516
+ # grouping_keys values to a replacement threshold list. Only present for grouped
517
+ # cost alerts that have at least one override.
518
+ threshold_overrides: nil
519
+ )
520
+ end
521
+
522
+ sig do
523
+ override.returns(
524
+ {
525
+ id: String,
526
+ created_at: Time,
527
+ currency: T.nilable(String),
528
+ customer: T.nilable(Orb::CustomerMinified),
529
+ enabled: T::Boolean,
530
+ metric:
531
+ T.nilable(
532
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Metric
533
+ ),
534
+ plan:
535
+ T.nilable(
536
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Plan
537
+ ),
538
+ subscription: T.nilable(Orb::SubscriptionMinified),
539
+ thresholds:
540
+ T.nilable(
541
+ T::Array[
542
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Threshold
543
+ ]
544
+ ),
545
+ type:
546
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol,
547
+ balance_alert_status:
548
+ T.nilable(
549
+ T::Array[
550
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::BalanceAlertStatus
551
+ ]
552
+ ),
553
+ grouping_keys: T.nilable(T::Array[String]),
554
+ license_type:
555
+ T.nilable(
556
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::LicenseType
557
+ ),
558
+ price_filters:
559
+ T.nilable(
560
+ T::Array[
561
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter
562
+ ]
563
+ ),
564
+ threshold_overrides:
565
+ T.nilable(
566
+ T::Array[
567
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride
568
+ ]
569
+ )
570
+ }
571
+ )
572
+ end
573
+ def to_hash
574
+ end
575
+
576
+ class Metric < Orb::Internal::Type::BaseModel
577
+ OrHash =
578
+ T.type_alias do
579
+ T.any(
580
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Metric,
581
+ Orb::Internal::AnyHash
582
+ )
583
+ end
584
+
585
+ sig { returns(String) }
586
+ attr_accessor :id
587
+
588
+ # The metric the alert applies to.
589
+ sig { params(id: String).returns(T.attached_class) }
590
+ def self.new(id:)
591
+ end
592
+
593
+ sig { override.returns({ id: String }) }
594
+ def to_hash
595
+ end
596
+ end
597
+
598
+ class Plan < Orb::Internal::Type::BaseModel
599
+ OrHash =
600
+ T.type_alias do
601
+ T.any(
602
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Plan,
603
+ Orb::Internal::AnyHash
604
+ )
605
+ end
606
+
607
+ sig { returns(T.nilable(String)) }
608
+ attr_accessor :id
609
+
610
+ # An optional user-defined ID for this plan resource, used throughout the system
611
+ # as an alias for this Plan. Use this field to identify a plan by an existing
612
+ # identifier in your system.
613
+ sig { returns(T.nilable(String)) }
614
+ attr_accessor :external_plan_id
615
+
616
+ sig { returns(T.nilable(String)) }
617
+ attr_accessor :name
618
+
619
+ sig { returns(String) }
620
+ attr_accessor :plan_version
621
+
622
+ # The plan the alert applies to.
623
+ sig do
624
+ params(
625
+ id: T.nilable(String),
626
+ external_plan_id: T.nilable(String),
627
+ name: T.nilable(String),
628
+ plan_version: String
629
+ ).returns(T.attached_class)
630
+ end
631
+ def self.new(
632
+ id:,
633
+ # An optional user-defined ID for this plan resource, used throughout the system
634
+ # as an alias for this Plan. Use this field to identify a plan by an existing
635
+ # identifier in your system.
636
+ external_plan_id:,
637
+ name:,
638
+ plan_version:
639
+ )
640
+ end
641
+
642
+ sig do
643
+ override.returns(
644
+ {
645
+ id: T.nilable(String),
646
+ external_plan_id: T.nilable(String),
647
+ name: T.nilable(String),
648
+ plan_version: String
649
+ }
650
+ )
651
+ end
652
+ def to_hash
653
+ end
654
+ end
655
+
656
+ class Threshold < Orb::Internal::Type::BaseModel
657
+ OrHash =
658
+ T.type_alias do
659
+ T.any(
660
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Threshold,
661
+ Orb::Internal::AnyHash
662
+ )
663
+ end
664
+
665
+ # The value at which an alert will fire. For credit balance alerts, the alert will
666
+ # fire at or below this value. For usage and cost alerts, the alert will fire at
667
+ # or above this value.
668
+ sig { returns(String) }
669
+ attr_accessor :value
670
+
671
+ # Thresholds are used to define the conditions under which an alert will be
672
+ # triggered.
673
+ sig { params(value: String).returns(T.attached_class) }
674
+ def self.new(
675
+ # The value at which an alert will fire. For credit balance alerts, the alert will
676
+ # fire at or below this value. For usage and cost alerts, the alert will fire at
677
+ # or above this value.
678
+ value:
679
+ )
680
+ end
681
+
682
+ sig { override.returns({ value: String }) }
683
+ def to_hash
684
+ end
685
+ end
686
+
687
+ # The type of alert. This must be a valid alert type.
688
+ module Type
689
+ extend Orb::Internal::Type::Enum
690
+
691
+ TaggedSymbol =
692
+ T.type_alias do
693
+ T.all(
694
+ Symbol,
695
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type
696
+ )
697
+ end
698
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
699
+
700
+ CREDIT_BALANCE_DEPLETED =
701
+ T.let(
702
+ :credit_balance_depleted,
703
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
704
+ )
705
+ CREDIT_BALANCE_DROPPED =
706
+ T.let(
707
+ :credit_balance_dropped,
708
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
709
+ )
710
+ CREDIT_BALANCE_RECOVERED =
711
+ T.let(
712
+ :credit_balance_recovered,
713
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
714
+ )
715
+ USAGE_EXCEEDED =
716
+ T.let(
717
+ :usage_exceeded,
718
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
719
+ )
720
+ COST_EXCEEDED =
721
+ T.let(
722
+ :cost_exceeded,
723
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
724
+ )
725
+ SPEND_EXCEEDED =
726
+ T.let(
727
+ :spend_exceeded,
728
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
729
+ )
730
+ LICENSE_BALANCE_THRESHOLD_REACHED =
731
+ T.let(
732
+ :license_balance_threshold_reached,
733
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
734
+ )
735
+
736
+ sig do
737
+ override.returns(
738
+ T::Array[
739
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::Type::TaggedSymbol
740
+ ]
741
+ )
742
+ end
743
+ def self.values
744
+ end
745
+ end
746
+
747
+ class BalanceAlertStatus < Orb::Internal::Type::BaseModel
748
+ OrHash =
749
+ T.type_alias do
750
+ T.any(
751
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::BalanceAlertStatus,
752
+ Orb::Internal::AnyHash
753
+ )
754
+ end
755
+
756
+ # Whether the alert is currently in-alert or not.
757
+ sig { returns(T::Boolean) }
758
+ attr_accessor :in_alert
759
+
760
+ # The value of the threshold that defines the alert status.
761
+ sig { returns(String) }
762
+ attr_accessor :threshold_value
763
+
764
+ # Alert status is used to determine if an alert is currently in-alert or not.
765
+ sig do
766
+ params(in_alert: T::Boolean, threshold_value: String).returns(
767
+ T.attached_class
768
+ )
769
+ end
770
+ def self.new(
771
+ # Whether the alert is currently in-alert or not.
772
+ in_alert:,
773
+ # The value of the threshold that defines the alert status.
774
+ threshold_value:
775
+ )
776
+ end
777
+
778
+ sig do
779
+ override.returns(
780
+ { in_alert: T::Boolean, threshold_value: String }
781
+ )
782
+ end
783
+ def to_hash
784
+ end
785
+ end
786
+
787
+ class LicenseType < Orb::Internal::Type::BaseModel
788
+ OrHash =
789
+ T.type_alias do
790
+ T.any(
791
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::LicenseType,
792
+ Orb::Internal::AnyHash
793
+ )
794
+ end
795
+
796
+ sig { returns(String) }
797
+ attr_accessor :id
798
+
799
+ # Minified license type for alert serialization.
800
+ sig { params(id: String).returns(T.attached_class) }
801
+ def self.new(id:)
802
+ end
803
+
804
+ sig { override.returns({ id: String }) }
805
+ def to_hash
806
+ end
807
+ end
808
+
809
+ class PriceFilter < Orb::Internal::Type::BaseModel
810
+ OrHash =
811
+ T.type_alias do
812
+ T.any(
813
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter,
814
+ Orb::Internal::AnyHash
815
+ )
816
+ end
817
+
818
+ # The property of the price to filter on.
819
+ sig do
820
+ returns(
821
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
822
+ )
823
+ end
824
+ attr_accessor :field
825
+
826
+ # Should prices that match the filter be included or excluded.
827
+ sig do
828
+ returns(
829
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::TaggedSymbol
830
+ )
831
+ end
832
+ attr_accessor :operator
833
+
834
+ # The IDs or values that match this filter.
835
+ sig { returns(T::Array[String]) }
836
+ attr_accessor :values
837
+
838
+ sig do
839
+ params(
840
+ field:
841
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::OrSymbol,
842
+ operator:
843
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::OrSymbol,
844
+ values: T::Array[String]
845
+ ).returns(T.attached_class)
846
+ end
847
+ def self.new(
848
+ # The property of the price to filter on.
849
+ field:,
850
+ # Should prices that match the filter be included or excluded.
851
+ operator:,
852
+ # The IDs or values that match this filter.
853
+ values:
854
+ )
855
+ end
856
+
857
+ sig do
858
+ override.returns(
859
+ {
860
+ field:
861
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol,
862
+ operator:
863
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::TaggedSymbol,
864
+ values: T::Array[String]
865
+ }
866
+ )
867
+ end
868
+ def to_hash
869
+ end
870
+
871
+ # The property of the price to filter on.
872
+ module Field
873
+ extend Orb::Internal::Type::Enum
874
+
875
+ TaggedSymbol =
876
+ T.type_alias do
877
+ T.all(
878
+ Symbol,
879
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field
880
+ )
881
+ end
882
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
883
+
884
+ PRICE_ID =
885
+ T.let(
886
+ :price_id,
887
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
888
+ )
889
+ ITEM_ID =
890
+ T.let(
891
+ :item_id,
892
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
893
+ )
894
+ PRICE_TYPE =
895
+ T.let(
896
+ :price_type,
897
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
898
+ )
899
+ CURRENCY =
900
+ T.let(
901
+ :currency,
902
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
903
+ )
904
+ PRICING_UNIT_ID =
905
+ T.let(
906
+ :pricing_unit_id,
907
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
908
+ )
909
+
910
+ sig do
911
+ override.returns(
912
+ T::Array[
913
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Field::TaggedSymbol
914
+ ]
915
+ )
916
+ end
917
+ def self.values
918
+ end
919
+ end
920
+
921
+ # Should prices that match the filter be included or excluded.
922
+ module Operator
923
+ extend Orb::Internal::Type::Enum
924
+
925
+ TaggedSymbol =
926
+ T.type_alias do
927
+ T.all(
928
+ Symbol,
929
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator
930
+ )
931
+ end
932
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
933
+
934
+ INCLUDES =
935
+ T.let(
936
+ :includes,
937
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::TaggedSymbol
938
+ )
939
+ EXCLUDES =
940
+ T.let(
941
+ :excludes,
942
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::TaggedSymbol
943
+ )
944
+
945
+ sig do
946
+ override.returns(
947
+ T::Array[
948
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::PriceFilter::Operator::TaggedSymbol
949
+ ]
950
+ )
951
+ end
952
+ def self.values
953
+ end
954
+ end
955
+ end
956
+
957
+ class ThresholdOverride < Orb::Internal::Type::BaseModel
958
+ OrHash =
959
+ T.type_alias do
960
+ T.any(
961
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride,
962
+ Orb::Internal::AnyHash
963
+ )
964
+ end
965
+
966
+ # The values identifying this group, ordered to match group_keys when set and the
967
+ # alert's grouping_keys otherwise.
968
+ sig { returns(T::Array[String]) }
969
+ attr_accessor :group_values
970
+
971
+ # The thresholds applied to this group. An empty list means the group is silenced.
972
+ sig do
973
+ returns(
974
+ T::Array[
975
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride::Threshold
976
+ ]
977
+ )
978
+ end
979
+ attr_accessor :thresholds
980
+
981
+ # The subset of the alert's grouping_keys this override binds. Null when the
982
+ # override targets one exact group across every grouping key.
983
+ sig { returns(T.nilable(T::Array[String])) }
984
+ attr_accessor :group_keys
985
+
986
+ # A per-group threshold override on a grouped cost alert.
987
+ #
988
+ # An empty `thresholds` list means the group is silenced (never fires). A
989
+ # non-empty list fully replaces the default thresholds for that group.
990
+ sig do
991
+ params(
992
+ group_values: T::Array[String],
993
+ thresholds:
994
+ T::Array[
995
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride::Threshold::OrHash
996
+ ],
997
+ group_keys: T.nilable(T::Array[String])
998
+ ).returns(T.attached_class)
999
+ end
1000
+ def self.new(
1001
+ # The values identifying this group, ordered to match group_keys when set and the
1002
+ # alert's grouping_keys otherwise.
1003
+ group_values:,
1004
+ # The thresholds applied to this group. An empty list means the group is silenced.
1005
+ thresholds:,
1006
+ # The subset of the alert's grouping_keys this override binds. Null when the
1007
+ # override targets one exact group across every grouping key.
1008
+ group_keys: nil
1009
+ )
1010
+ end
1011
+
1012
+ sig do
1013
+ override.returns(
1014
+ {
1015
+ group_values: T::Array[String],
1016
+ thresholds:
1017
+ T::Array[
1018
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride::Threshold
1019
+ ],
1020
+ group_keys: T.nilable(T::Array[String])
1021
+ }
1022
+ )
1023
+ end
1024
+ def to_hash
1025
+ end
1026
+
1027
+ class Threshold < Orb::Internal::Type::BaseModel
1028
+ OrHash =
1029
+ T.type_alias do
1030
+ T.any(
1031
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::AlertConfiguration::ThresholdOverride::Threshold,
1032
+ Orb::Internal::AnyHash
1033
+ )
1034
+ end
1035
+
1036
+ # The value at which an alert will fire. For credit balance alerts, the alert will
1037
+ # fire at or below this value. For usage and cost alerts, the alert will fire at
1038
+ # or above this value.
1039
+ sig { returns(String) }
1040
+ attr_accessor :value
1041
+
1042
+ # Thresholds are used to define the conditions under which an alert will be
1043
+ # triggered.
1044
+ sig { params(value: String).returns(T.attached_class) }
1045
+ def self.new(
1046
+ # The value at which an alert will fire. For credit balance alerts, the alert will
1047
+ # fire at or below this value. For usage and cost alerts, the alert will fire at
1048
+ # or above this value.
1049
+ value:
1050
+ )
1051
+ end
1052
+
1053
+ sig { override.returns({ value: String }) }
1054
+ def to_hash
1055
+ end
1056
+ end
1057
+ end
1058
+ end
1059
+
1060
+ class License < Orb::Internal::Type::BaseModel
1061
+ OrHash =
1062
+ T.type_alias do
1063
+ T.any(
1064
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Properties::License,
1065
+ Orb::Internal::AnyHash
1066
+ )
1067
+ end
1068
+
1069
+ sig { returns(String) }
1070
+ attr_accessor :external_license_id
1071
+
1072
+ sig { returns(String) }
1073
+ attr_accessor :license_type_id
1074
+
1075
+ sig { returns(String) }
1076
+ attr_accessor :threshold_percentage
1077
+
1078
+ sig do
1079
+ params(
1080
+ external_license_id: String,
1081
+ license_type_id: String,
1082
+ threshold_percentage: String
1083
+ ).returns(T.attached_class)
1084
+ end
1085
+ def self.new(
1086
+ external_license_id:,
1087
+ license_type_id:,
1088
+ threshold_percentage:
1089
+ )
1090
+ end
1091
+
1092
+ sig do
1093
+ override.returns(
1094
+ {
1095
+ external_license_id: String,
1096
+ license_type_id: String,
1097
+ threshold_percentage: String
1098
+ }
1099
+ )
1100
+ end
1101
+ def to_hash
1102
+ end
1103
+ end
1104
+ end
1105
+
1106
+ class Subscription < Orb::Internal::Type::BaseModel
1107
+ OrHash =
1108
+ T.type_alias do
1109
+ T.any(
1110
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription,
1111
+ Orb::Internal::AnyHash
1112
+ )
1113
+ end
1114
+
1115
+ sig { returns(String) }
1116
+ attr_accessor :id
1117
+
1118
+ sig { returns(Orb::CustomerMinified) }
1119
+ attr_reader :customer
1120
+
1121
+ sig { params(customer: Orb::CustomerMinified::OrHash).void }
1122
+ attr_writer :customer
1123
+
1124
+ sig { returns(T.nilable(Time)) }
1125
+ attr_accessor :end_date
1126
+
1127
+ sig do
1128
+ returns(
1129
+ T.nilable(
1130
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Plan
1131
+ )
1132
+ )
1133
+ end
1134
+ attr_reader :plan
1135
+
1136
+ sig do
1137
+ params(
1138
+ plan:
1139
+ T.nilable(
1140
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Plan::OrHash
1141
+ )
1142
+ ).void
1143
+ end
1144
+ attr_writer :plan
1145
+
1146
+ sig { returns(Time) }
1147
+ attr_accessor :start_date
1148
+
1149
+ sig do
1150
+ returns(
1151
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Status::TaggedSymbol
1152
+ )
1153
+ end
1154
+ attr_accessor :status
1155
+
1156
+ # A lightweight subscription representation for webhook payloads.
1157
+ #
1158
+ # This avoids the expensive to_subscription_params() call required for full
1159
+ # serialization.
1160
+ sig do
1161
+ params(
1162
+ id: String,
1163
+ customer: Orb::CustomerMinified::OrHash,
1164
+ end_date: T.nilable(Time),
1165
+ plan:
1166
+ T.nilable(
1167
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Plan::OrHash
1168
+ ),
1169
+ start_date: Time,
1170
+ status:
1171
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Status::OrSymbol
1172
+ ).returns(T.attached_class)
1173
+ end
1174
+ def self.new(id:, customer:, end_date:, plan:, start_date:, status:)
1175
+ end
1176
+
1177
+ sig do
1178
+ override.returns(
1179
+ {
1180
+ id: String,
1181
+ customer: Orb::CustomerMinified,
1182
+ end_date: T.nilable(Time),
1183
+ plan:
1184
+ T.nilable(
1185
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Plan
1186
+ ),
1187
+ start_date: Time,
1188
+ status:
1189
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Status::TaggedSymbol
1190
+ }
1191
+ )
1192
+ end
1193
+ def to_hash
1194
+ end
1195
+
1196
+ class Plan < Orb::Internal::Type::BaseModel
1197
+ OrHash =
1198
+ T.type_alias do
1199
+ T.any(
1200
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Plan,
1201
+ Orb::Internal::AnyHash
1202
+ )
1203
+ end
1204
+
1205
+ sig { returns(T.nilable(String)) }
1206
+ attr_accessor :id
1207
+
1208
+ # An optional user-defined ID for this plan resource, used throughout the system
1209
+ # as an alias for this Plan. Use this field to identify a plan by an existing
1210
+ # identifier in your system.
1211
+ sig { returns(T.nilable(String)) }
1212
+ attr_accessor :external_plan_id
1213
+
1214
+ sig { returns(T.nilable(String)) }
1215
+ attr_accessor :name
1216
+
1217
+ sig do
1218
+ params(
1219
+ id: T.nilable(String),
1220
+ external_plan_id: T.nilable(String),
1221
+ name: T.nilable(String)
1222
+ ).returns(T.attached_class)
1223
+ end
1224
+ def self.new(
1225
+ id:,
1226
+ # An optional user-defined ID for this plan resource, used throughout the system
1227
+ # as an alias for this Plan. Use this field to identify a plan by an existing
1228
+ # identifier in your system.
1229
+ external_plan_id:,
1230
+ name:
1231
+ )
1232
+ end
1233
+
1234
+ sig do
1235
+ override.returns(
1236
+ {
1237
+ id: T.nilable(String),
1238
+ external_plan_id: T.nilable(String),
1239
+ name: T.nilable(String)
1240
+ }
1241
+ )
1242
+ end
1243
+ def to_hash
1244
+ end
1245
+ end
1246
+
1247
+ module Status
1248
+ extend Orb::Internal::Type::Enum
1249
+
1250
+ TaggedSymbol =
1251
+ T.type_alias do
1252
+ T.all(
1253
+ Symbol,
1254
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Status
1255
+ )
1256
+ end
1257
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1258
+
1259
+ ACTIVE =
1260
+ T.let(
1261
+ :active,
1262
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Status::TaggedSymbol
1263
+ )
1264
+ ENDED =
1265
+ T.let(
1266
+ :ended,
1267
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Status::TaggedSymbol
1268
+ )
1269
+ UPCOMING =
1270
+ T.let(
1271
+ :upcoming,
1272
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Status::TaggedSymbol
1273
+ )
1274
+
1275
+ sig do
1276
+ override.returns(
1277
+ T::Array[
1278
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Subscription::Status::TaggedSymbol
1279
+ ]
1280
+ )
1281
+ end
1282
+ def self.values
1283
+ end
1284
+ end
1285
+ end
1286
+
1287
+ # The event this payload describes.
1288
+ module Type
1289
+ extend Orb::Internal::Type::Enum
1290
+
1291
+ TaggedSymbol =
1292
+ T.type_alias do
1293
+ T.all(
1294
+ Symbol,
1295
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Type
1296
+ )
1297
+ end
1298
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1299
+
1300
+ SUBSCRIPTION_LICENSE_BALANCE_THRESHOLD_REACHED =
1301
+ T.let(
1302
+ :"subscription.license_balance_threshold_reached",
1303
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Type::TaggedSymbol
1304
+ )
1305
+
1306
+ sig do
1307
+ override.returns(
1308
+ T::Array[
1309
+ Orb::Webhooks::SubscriptionLicenseBalanceThresholdReachedStandardWebhookEvent::Type::TaggedSymbol
1310
+ ]
1311
+ )
1312
+ end
1313
+ def self.values
1314
+ end
1315
+ end
1316
+ end
1317
+ end
1318
+ end
1319
+ end