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