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