orb-billing 1.43.0 → 1.45.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 (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/orb/client.rb +6 -0
  5. data/lib/orb/models/alert_create_for_plan_params.rb +156 -0
  6. data/lib/orb/models/backfill_reflected_webhook_event.rb +24 -1
  7. data/lib/orb/models/backfill_reverted_webhook_event.rb +24 -1
  8. data/lib/orb/models/billable_metric_edited_webhook_event.rb +24 -1
  9. data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +27 -1
  10. data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +27 -1
  11. data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +24 -1
  12. data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +24 -1
  13. data/lib/orb/models/credit_note_issued_webhook_event.rb +24 -1
  14. data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +24 -1
  15. data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +24 -1
  16. data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +24 -1
  17. data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +24 -1
  18. data/lib/orb/models/customer_created_webhook_event.rb +24 -1
  19. data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +24 -1
  20. data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +24 -1
  21. data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +24 -1
  22. data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +24 -1
  23. data/lib/orb/models/customer_edited_webhook_event.rb +24 -1
  24. data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +27 -1
  25. data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +27 -1
  26. data/lib/orb/models/dimensional_price_groups/price_create_params.rb +147 -0
  27. data/lib/orb/models/dimensional_price_groups/price_create_response.rb +19 -0
  28. data/lib/orb/models/dimensional_price_groups/price_list_params.rb +65 -0
  29. data/lib/orb/models/event_unmatched_event_webhook_event.rb +27 -1
  30. data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +27 -1
  31. data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +24 -1
  32. data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +24 -1
  33. data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +24 -1
  34. data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +27 -1
  35. data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +27 -1
  36. data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +28 -1
  37. data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +27 -1
  38. data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +24 -1
  39. data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +24 -1
  40. data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +24 -1
  41. data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +24 -1
  42. data/lib/orb/models/invoice_edited_webhook_event.rb +24 -1
  43. data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +27 -1
  44. data/lib/orb/models/invoice_issue_failed_webhook_event.rb +24 -1
  45. data/lib/orb/models/invoice_issued_summary_webhook_event.rb +27 -1
  46. data/lib/orb/models/invoice_issued_webhook_event.rb +24 -1
  47. data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +24 -1
  48. data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +24 -1
  49. data/lib/orb/models/invoice_payment_failed_webhook_event.rb +24 -1
  50. data/lib/orb/models/invoice_payment_processing_webhook_event.rb +24 -1
  51. data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +24 -1
  52. data/lib/orb/models/invoice_sync_failed_webhook_event.rb +24 -1
  53. data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +24 -1
  54. data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +24 -1
  55. data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +24 -1
  56. data/lib/orb/models/payment_method_created_webhook_event.rb +24 -1
  57. data/lib/orb/models/payment_method_deleted_webhook_event.rb +24 -1
  58. data/lib/orb/models/plan_created_webhook_event.rb +117 -0
  59. data/lib/orb/models/plan_default_version_set_webhook_event.rb +27 -1
  60. data/lib/orb/models/plan_edited_webhook_event.rb +154 -0
  61. data/lib/orb/models/plan_version_created_webhook_event.rb +27 -1
  62. data/lib/orb/models/price_edited_webhook_event.rb +24 -1
  63. data/lib/orb/models/resource_event_test_webhook_event.rb +27 -1
  64. data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +24 -1
  65. data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +24 -1
  66. data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +24 -1
  67. data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +24 -1
  68. data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +24 -1
  69. data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +24 -1
  70. data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +24 -1
  71. data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +24 -1
  72. data/lib/orb/models/subscription_created_webhook_event.rb +24 -1
  73. data/lib/orb/models/subscription_edited_webhook_event.rb +24 -1
  74. data/lib/orb/models/subscription_ended_webhook_event.rb +24 -1
  75. data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +24 -1
  76. data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +24 -1
  77. data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +25 -1
  78. data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +24 -1
  79. data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +25 -1
  80. data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +24 -1
  81. data/lib/orb/models/subscription_plan_changed_webhook_event.rb +24 -1
  82. data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +25 -1
  83. data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +24 -1
  84. data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +24 -1
  85. data/lib/orb/models/subscription_started_webhook_event.rb +24 -1
  86. data/lib/orb/models/subscription_trial_ended_webhook_event.rb +24 -1
  87. data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +24 -1
  88. data/lib/orb/models/tax_amount.rb +32 -1
  89. data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +27 -1
  90. data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +27 -1
  91. data/lib/orb/models/unwrap_webhook_event.rb +7 -1
  92. data/lib/orb/models/webhook_endpoint.rb +56 -0
  93. data/lib/orb/models/webhook_endpoint_create_params.rb +34 -0
  94. data/lib/orb/models/webhook_endpoint_delete_params.rb +20 -0
  95. data/lib/orb/models/webhook_endpoint_disable_params.rb +20 -0
  96. data/lib/orb/models/webhook_endpoint_enable_params.rb +20 -0
  97. data/lib/orb/models/webhook_endpoint_list_params.rb +34 -0
  98. data/lib/orb/models/webhook_endpoint_retrieve_params.rb +20 -0
  99. data/lib/orb/models/webhook_endpoint_update_params.rb +41 -0
  100. data/lib/orb/models/webhook_endpoint_with_secret.rb +65 -0
  101. data/lib/orb/models.rb +24 -0
  102. data/lib/orb/resources/alerts.rb +55 -0
  103. data/lib/orb/resources/dimensional_price_groups/prices.rb +87 -0
  104. data/lib/orb/resources/dimensional_price_groups.rb +4 -0
  105. data/lib/orb/resources/webhook_endpoints.rb +183 -0
  106. data/lib/orb/resources/webhooks.rb +1 -1
  107. data/lib/orb/version.rb +1 -1
  108. data/lib/orb.rb +17 -0
  109. data/rbi/orb/client.rbi +5 -0
  110. data/rbi/orb/models/alert_create_for_plan_params.rbi +290 -0
  111. data/rbi/orb/models/backfill_reflected_webhook_event.rbi +47 -0
  112. data/rbi/orb/models/backfill_reverted_webhook_event.rbi +47 -0
  113. data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +49 -0
  114. data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +52 -0
  115. data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +52 -0
  116. data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +52 -0
  117. data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +52 -0
  118. data/rbi/orb/models/credit_note_issued_webhook_event.rbi +47 -0
  119. data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +49 -0
  120. data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +52 -0
  121. data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +52 -0
  122. data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +52 -0
  123. data/rbi/orb/models/customer_created_webhook_event.rbi +47 -0
  124. data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +52 -0
  125. data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +52 -0
  126. data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +52 -0
  127. data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +52 -0
  128. data/rbi/orb/models/customer_edited_webhook_event.rbi +47 -0
  129. data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +52 -0
  130. data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +52 -0
  131. data/rbi/orb/models/dimensional_price_groups/price_create_params.rbi +298 -0
  132. data/rbi/orb/models/dimensional_price_groups/price_create_response.rbi +76 -0
  133. data/rbi/orb/models/dimensional_price_groups/price_list_params.rbi +134 -0
  134. data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +49 -0
  135. data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +52 -0
  136. data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +52 -0
  137. data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +52 -0
  138. data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +52 -0
  139. data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +52 -0
  140. data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +52 -0
  141. data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +52 -0
  142. data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +52 -0
  143. data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +52 -0
  144. data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +52 -0
  145. data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +52 -0
  146. data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +52 -0
  147. data/rbi/orb/models/invoice_edited_webhook_event.rbi +44 -0
  148. data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +52 -0
  149. data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +47 -0
  150. data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +49 -0
  151. data/rbi/orb/models/invoice_issued_webhook_event.rbi +44 -0
  152. data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +52 -0
  153. data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +52 -0
  154. data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +49 -0
  155. data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +52 -0
  156. data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +52 -0
  157. data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +47 -0
  158. data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +49 -0
  159. data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +49 -0
  160. data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +52 -0
  161. data/rbi/orb/models/payment_method_created_webhook_event.rbi +49 -0
  162. data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +49 -0
  163. data/rbi/orb/models/plan_created_webhook_event.rbi +182 -0
  164. data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +49 -0
  165. data/rbi/orb/models/plan_edited_webhook_event.rbi +301 -0
  166. data/rbi/orb/models/plan_version_created_webhook_event.rbi +47 -0
  167. data/rbi/orb/models/price_edited_webhook_event.rbi +42 -0
  168. data/rbi/orb/models/resource_event_test_webhook_event.rbi +47 -0
  169. data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +52 -0
  170. data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +52 -0
  171. data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +52 -0
  172. data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +52 -0
  173. data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +52 -0
  174. data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +52 -0
  175. data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +52 -0
  176. data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +52 -0
  177. data/rbi/orb/models/subscription_created_webhook_event.rbi +49 -0
  178. data/rbi/orb/models/subscription_edited_webhook_event.rbi +47 -0
  179. data/rbi/orb/models/subscription_ended_webhook_event.rbi +47 -0
  180. data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +52 -0
  181. data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +52 -0
  182. data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +52 -0
  183. data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +52 -0
  184. data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +52 -0
  185. data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +52 -0
  186. data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +52 -0
  187. data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +52 -0
  188. data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +52 -0
  189. data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +52 -0
  190. data/rbi/orb/models/subscription_started_webhook_event.rbi +49 -0
  191. data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +49 -0
  192. data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +52 -0
  193. data/rbi/orb/models/tax_amount.rbi +41 -3
  194. data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +52 -0
  195. data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +52 -0
  196. data/rbi/orb/models/unwrap_webhook_event.rbi +2 -0
  197. data/rbi/orb/models/webhook_endpoint.rbi +71 -0
  198. data/rbi/orb/models/webhook_endpoint_create_params.rbi +53 -0
  199. data/rbi/orb/models/webhook_endpoint_delete_params.rbi +35 -0
  200. data/rbi/orb/models/webhook_endpoint_disable_params.rbi +35 -0
  201. data/rbi/orb/models/webhook_endpoint_enable_params.rbi +35 -0
  202. data/rbi/orb/models/webhook_endpoint_list_params.rbi +56 -0
  203. data/rbi/orb/models/webhook_endpoint_retrieve_params.rbi +35 -0
  204. data/rbi/orb/models/webhook_endpoint_update_params.rbi +59 -0
  205. data/rbi/orb/models/webhook_endpoint_with_secret.rbi +83 -0
  206. data/rbi/orb/models.rbi +24 -0
  207. data/rbi/orb/resources/alerts.rbi +59 -0
  208. data/rbi/orb/resources/dimensional_price_groups/prices.rbi +82 -0
  209. data/rbi/orb/resources/dimensional_price_groups.rbi +3 -0
  210. data/rbi/orb/resources/webhook_endpoints.rbi +116 -0
  211. data/rbi/orb/resources/webhooks.rbi +2 -0
  212. data/sig/orb/client.rbs +2 -0
  213. data/sig/orb/models/alert_create_for_plan_params.rbs +126 -0
  214. data/sig/orb/models/backfill_reflected_webhook_event.rbs +16 -0
  215. data/sig/orb/models/backfill_reverted_webhook_event.rbs +16 -0
  216. data/sig/orb/models/billable_metric_edited_webhook_event.rbs +16 -0
  217. data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +16 -0
  218. data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +16 -0
  219. data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +16 -0
  220. data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +16 -0
  221. data/sig/orb/models/credit_note_issued_webhook_event.rbs +16 -0
  222. data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +16 -0
  223. data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +16 -0
  224. data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +16 -0
  225. data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +16 -0
  226. data/sig/orb/models/customer_created_webhook_event.rbs +16 -0
  227. data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +16 -0
  228. data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +16 -0
  229. data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +16 -0
  230. data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +16 -0
  231. data/sig/orb/models/customer_edited_webhook_event.rbs +16 -0
  232. data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +16 -0
  233. data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +16 -0
  234. data/sig/orb/models/dimensional_price_groups/price_create_params.rbs +123 -0
  235. data/sig/orb/models/dimensional_price_groups/price_create_response.rbs +15 -0
  236. data/sig/orb/models/dimensional_price_groups/price_list_params.rbs +61 -0
  237. data/sig/orb/models/event_unmatched_event_webhook_event.rbs +16 -0
  238. data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +16 -0
  239. data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +16 -0
  240. data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +16 -0
  241. data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +16 -0
  242. data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +16 -0
  243. data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +16 -0
  244. data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +16 -0
  245. data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +16 -0
  246. data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +16 -0
  247. data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +16 -0
  248. data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +16 -0
  249. data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +16 -0
  250. data/sig/orb/models/invoice_edited_webhook_event.rbs +16 -0
  251. data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +16 -0
  252. data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +16 -0
  253. data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +16 -0
  254. data/sig/orb/models/invoice_issued_webhook_event.rbs +16 -0
  255. data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +16 -0
  256. data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +16 -0
  257. data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +16 -0
  258. data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +16 -0
  259. data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +16 -0
  260. data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +16 -0
  261. data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +16 -0
  262. data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +16 -0
  263. data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +16 -0
  264. data/sig/orb/models/payment_method_created_webhook_event.rbs +16 -0
  265. data/sig/orb/models/payment_method_deleted_webhook_event.rbs +16 -0
  266. data/sig/orb/models/plan_created_webhook_event.rbs +88 -0
  267. data/sig/orb/models/plan_default_version_set_webhook_event.rbs +16 -0
  268. data/sig/orb/models/plan_edited_webhook_event.rbs +132 -0
  269. data/sig/orb/models/plan_version_created_webhook_event.rbs +16 -0
  270. data/sig/orb/models/price_edited_webhook_event.rbs +16 -0
  271. data/sig/orb/models/resource_event_test_webhook_event.rbs +16 -0
  272. data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +16 -0
  273. data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +16 -0
  274. data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +16 -0
  275. data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +16 -0
  276. data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +16 -0
  277. data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +16 -0
  278. data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +16 -0
  279. data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +16 -0
  280. data/sig/orb/models/subscription_created_webhook_event.rbs +16 -0
  281. data/sig/orb/models/subscription_edited_webhook_event.rbs +16 -0
  282. data/sig/orb/models/subscription_ended_webhook_event.rbs +16 -0
  283. data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +16 -0
  284. data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +16 -0
  285. data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +16 -0
  286. data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +16 -0
  287. data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +16 -0
  288. data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +16 -0
  289. data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +16 -0
  290. data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +16 -0
  291. data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +16 -0
  292. data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +16 -0
  293. data/sig/orb/models/subscription_started_webhook_event.rbs +16 -0
  294. data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +16 -0
  295. data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +16 -0
  296. data/sig/orb/models/tax_amount.rbs +31 -3
  297. data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +16 -0
  298. data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +16 -0
  299. data/sig/orb/models/unwrap_webhook_event.rbs +2 -0
  300. data/sig/orb/models/webhook_endpoint.rbs +40 -0
  301. data/sig/orb/models/webhook_endpoint_create_params.rbs +28 -0
  302. data/sig/orb/models/webhook_endpoint_delete_params.rbs +23 -0
  303. data/sig/orb/models/webhook_endpoint_disable_params.rbs +23 -0
  304. data/sig/orb/models/webhook_endpoint_enable_params.rbs +23 -0
  305. data/sig/orb/models/webhook_endpoint_list_params.rbs +30 -0
  306. data/sig/orb/models/webhook_endpoint_retrieve_params.rbs +23 -0
  307. data/sig/orb/models/webhook_endpoint_update_params.rbs +36 -0
  308. data/sig/orb/models/webhook_endpoint_with_secret.rbs +45 -0
  309. data/sig/orb/models.rbs +24 -0
  310. data/sig/orb/resources/alerts.rbs +12 -0
  311. data/sig/orb/resources/dimensional_price_groups/prices.rbs +28 -0
  312. data/sig/orb/resources/dimensional_price_groups.rbs +2 -0
  313. data/sig/orb/resources/webhook_endpoints.rbs +46 -0
  314. data/sig/orb/resources/webhooks.rbs +2 -0
  315. metadata +52 -1
@@ -0,0 +1,290 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ class AlertCreateForPlanParams < Orb::Internal::Type::BaseModel
6
+ extend Orb::Internal::Type::RequestParameters::Converter
7
+ include Orb::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Orb::AlertCreateForPlanParams, Orb::Internal::AnyHash)
12
+ end
13
+
14
+ sig { returns(String) }
15
+ attr_accessor :plan_id
16
+
17
+ # The thresholds that define the values at which the alert will be triggered.
18
+ sig { returns(T::Array[Orb::Threshold]) }
19
+ attr_accessor :thresholds
20
+
21
+ # The type of alert to create. This must be a valid alert type.
22
+ sig { returns(Orb::AlertCreateForPlanParams::Type::OrSymbol) }
23
+ attr_accessor :type
24
+
25
+ # The case sensitive currency or custom pricing unit the alert is denominated in.
26
+ # Required for spend_exceeded alerts and when grouping_keys is set.
27
+ sig { returns(T.nilable(String)) }
28
+ attr_accessor :currency
29
+
30
+ # The property keys to group cost alerts by. Only applicable for cost_exceeded
31
+ # alerts.
32
+ sig { returns(T.nilable(T::Array[String])) }
33
+ attr_accessor :grouping_keys
34
+
35
+ # The metric to track usage for.
36
+ sig { returns(T.nilable(String)) }
37
+ attr_accessor :metric_id
38
+
39
+ # The plan version to create alerts for. If not specified, the default will be the
40
+ # plan's active plan version.
41
+ sig { returns(T.nilable(Integer)) }
42
+ attr_accessor :plan_version
43
+
44
+ # Filters to scope which prices are included in alert evaluation. Supports
45
+ # filtering by price_id, item_id, or price_type with includes/excludes operators.
46
+ # Only applicable to spend_exceeded alerts and to cost_exceeded alerts with
47
+ # grouping_keys set.
48
+ sig do
49
+ returns(T.nilable(T::Array[Orb::AlertCreateForPlanParams::PriceFilter]))
50
+ end
51
+ attr_accessor :price_filters
52
+
53
+ sig do
54
+ params(
55
+ plan_id: String,
56
+ thresholds: T::Array[Orb::Threshold::OrHash],
57
+ type: Orb::AlertCreateForPlanParams::Type::OrSymbol,
58
+ currency: T.nilable(String),
59
+ grouping_keys: T.nilable(T::Array[String]),
60
+ metric_id: T.nilable(String),
61
+ plan_version: T.nilable(Integer),
62
+ price_filters:
63
+ T.nilable(
64
+ T::Array[Orb::AlertCreateForPlanParams::PriceFilter::OrHash]
65
+ ),
66
+ request_options: Orb::RequestOptions::OrHash
67
+ ).returns(T.attached_class)
68
+ end
69
+ def self.new(
70
+ plan_id:,
71
+ # The thresholds that define the values at which the alert will be triggered.
72
+ thresholds:,
73
+ # The type of alert to create. This must be a valid alert type.
74
+ type:,
75
+ # The case sensitive currency or custom pricing unit the alert is denominated in.
76
+ # Required for spend_exceeded alerts and when grouping_keys is set.
77
+ currency: nil,
78
+ # The property keys to group cost alerts by. Only applicable for cost_exceeded
79
+ # alerts.
80
+ grouping_keys: nil,
81
+ # The metric to track usage for.
82
+ metric_id: nil,
83
+ # The plan version to create alerts for. If not specified, the default will be the
84
+ # plan's active plan version.
85
+ plan_version: nil,
86
+ # Filters to scope which prices are included in alert evaluation. Supports
87
+ # filtering by price_id, item_id, or price_type with includes/excludes operators.
88
+ # Only applicable to spend_exceeded alerts and to cost_exceeded alerts with
89
+ # grouping_keys set.
90
+ price_filters: nil,
91
+ request_options: {}
92
+ )
93
+ end
94
+
95
+ sig do
96
+ override.returns(
97
+ {
98
+ plan_id: String,
99
+ thresholds: T::Array[Orb::Threshold],
100
+ type: Orb::AlertCreateForPlanParams::Type::OrSymbol,
101
+ currency: T.nilable(String),
102
+ grouping_keys: T.nilable(T::Array[String]),
103
+ metric_id: T.nilable(String),
104
+ plan_version: T.nilable(Integer),
105
+ price_filters:
106
+ T.nilable(T::Array[Orb::AlertCreateForPlanParams::PriceFilter]),
107
+ request_options: Orb::RequestOptions
108
+ }
109
+ )
110
+ end
111
+ def to_hash
112
+ end
113
+
114
+ # The type of alert to create. This must be a valid alert type.
115
+ module Type
116
+ extend Orb::Internal::Type::Enum
117
+
118
+ TaggedSymbol =
119
+ T.type_alias { T.all(Symbol, Orb::AlertCreateForPlanParams::Type) }
120
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
121
+
122
+ USAGE_EXCEEDED =
123
+ T.let(
124
+ :usage_exceeded,
125
+ Orb::AlertCreateForPlanParams::Type::TaggedSymbol
126
+ )
127
+ COST_EXCEEDED =
128
+ T.let(
129
+ :cost_exceeded,
130
+ Orb::AlertCreateForPlanParams::Type::TaggedSymbol
131
+ )
132
+ SPEND_EXCEEDED =
133
+ T.let(
134
+ :spend_exceeded,
135
+ Orb::AlertCreateForPlanParams::Type::TaggedSymbol
136
+ )
137
+
138
+ sig do
139
+ override.returns(
140
+ T::Array[Orb::AlertCreateForPlanParams::Type::TaggedSymbol]
141
+ )
142
+ end
143
+ def self.values
144
+ end
145
+ end
146
+
147
+ class PriceFilter < Orb::Internal::Type::BaseModel
148
+ OrHash =
149
+ T.type_alias do
150
+ T.any(
151
+ Orb::AlertCreateForPlanParams::PriceFilter,
152
+ Orb::Internal::AnyHash
153
+ )
154
+ end
155
+
156
+ # The property of the price to filter on.
157
+ sig do
158
+ returns(Orb::AlertCreateForPlanParams::PriceFilter::Field::OrSymbol)
159
+ end
160
+ attr_accessor :field
161
+
162
+ # Should prices that match the filter be included or excluded.
163
+ sig do
164
+ returns(
165
+ Orb::AlertCreateForPlanParams::PriceFilter::Operator::OrSymbol
166
+ )
167
+ end
168
+ attr_accessor :operator
169
+
170
+ # The IDs or values that match this filter.
171
+ sig { returns(T::Array[String]) }
172
+ attr_accessor :values
173
+
174
+ sig do
175
+ params(
176
+ field: Orb::AlertCreateForPlanParams::PriceFilter::Field::OrSymbol,
177
+ operator:
178
+ Orb::AlertCreateForPlanParams::PriceFilter::Operator::OrSymbol,
179
+ values: T::Array[String]
180
+ ).returns(T.attached_class)
181
+ end
182
+ def self.new(
183
+ # The property of the price to filter on.
184
+ field:,
185
+ # Should prices that match the filter be included or excluded.
186
+ operator:,
187
+ # The IDs or values that match this filter.
188
+ values:
189
+ )
190
+ end
191
+
192
+ sig do
193
+ override.returns(
194
+ {
195
+ field:
196
+ Orb::AlertCreateForPlanParams::PriceFilter::Field::OrSymbol,
197
+ operator:
198
+ Orb::AlertCreateForPlanParams::PriceFilter::Operator::OrSymbol,
199
+ values: T::Array[String]
200
+ }
201
+ )
202
+ end
203
+ def to_hash
204
+ end
205
+
206
+ # The property of the price to filter on.
207
+ module Field
208
+ extend Orb::Internal::Type::Enum
209
+
210
+ TaggedSymbol =
211
+ T.type_alias do
212
+ T.all(Symbol, Orb::AlertCreateForPlanParams::PriceFilter::Field)
213
+ end
214
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
215
+
216
+ PRICE_ID =
217
+ T.let(
218
+ :price_id,
219
+ Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
220
+ )
221
+ ITEM_ID =
222
+ T.let(
223
+ :item_id,
224
+ Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
225
+ )
226
+ PRICE_TYPE =
227
+ T.let(
228
+ :price_type,
229
+ Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
230
+ )
231
+ CURRENCY =
232
+ T.let(
233
+ :currency,
234
+ Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
235
+ )
236
+ PRICING_UNIT_ID =
237
+ T.let(
238
+ :pricing_unit_id,
239
+ Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
240
+ )
241
+
242
+ sig do
243
+ override.returns(
244
+ T::Array[
245
+ Orb::AlertCreateForPlanParams::PriceFilter::Field::TaggedSymbol
246
+ ]
247
+ )
248
+ end
249
+ def self.values
250
+ end
251
+ end
252
+
253
+ # Should prices that match the filter be included or excluded.
254
+ module Operator
255
+ extend Orb::Internal::Type::Enum
256
+
257
+ TaggedSymbol =
258
+ T.type_alias do
259
+ T.all(
260
+ Symbol,
261
+ Orb::AlertCreateForPlanParams::PriceFilter::Operator
262
+ )
263
+ end
264
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
265
+
266
+ INCLUDES =
267
+ T.let(
268
+ :includes,
269
+ Orb::AlertCreateForPlanParams::PriceFilter::Operator::TaggedSymbol
270
+ )
271
+ EXCLUDES =
272
+ T.let(
273
+ :excludes,
274
+ Orb::AlertCreateForPlanParams::PriceFilter::Operator::TaggedSymbol
275
+ )
276
+
277
+ sig do
278
+ override.returns(
279
+ T::Array[
280
+ Orb::AlertCreateForPlanParams::PriceFilter::Operator::TaggedSymbol
281
+ ]
282
+ )
283
+ end
284
+ def self.values
285
+ end
286
+ end
287
+ end
288
+ end
289
+ end
290
+ end
@@ -28,6 +28,13 @@ module Orb
28
28
  sig { returns(Time) }
29
29
  attr_accessor :created_at
30
30
 
31
+ # The serialization style this payload was rendered in, as configured on the
32
+ # endpoint.
33
+ sig do
34
+ returns(Orb::BackfillReflectedWebhookEvent::PayloadStyle::TaggedSymbol)
35
+ end
36
+ attr_accessor :payload_style
37
+
31
38
  sig { returns(T.anything) }
32
39
  attr_accessor :properties
33
40
 
@@ -41,6 +48,8 @@ module Orb
41
48
  id: String,
42
49
  backfill: Orb::BackfillReflectedWebhookEvent::Backfill::OrHash,
43
50
  created_at: Time,
51
+ payload_style:
52
+ Orb::BackfillReflectedWebhookEvent::PayloadStyle::OrSymbol,
44
53
  properties: T.anything,
45
54
  type: Orb::BackfillReflectedWebhookEvent::Type::OrSymbol
46
55
  ).returns(T.attached_class)
@@ -53,6 +62,9 @@ module Orb
53
62
  backfill:,
54
63
  # The time at which this event was created, to the second.
55
64
  created_at:,
65
+ # The serialization style this payload was rendered in, as configured on the
66
+ # endpoint.
67
+ payload_style:,
56
68
  properties:,
57
69
  # The event this payload describes.
58
70
  type:
@@ -65,6 +77,8 @@ module Orb
65
77
  id: String,
66
78
  backfill: Orb::BackfillReflectedWebhookEvent::Backfill,
67
79
  created_at: Time,
80
+ payload_style:
81
+ Orb::BackfillReflectedWebhookEvent::PayloadStyle::TaggedSymbol,
68
82
  properties: T.anything,
69
83
  type: Orb::BackfillReflectedWebhookEvent::Type::TaggedSymbol
70
84
  }
@@ -245,6 +259,39 @@ module Orb
245
259
  end
246
260
  end
247
261
 
262
+ # The serialization style this payload was rendered in, as configured on the
263
+ # endpoint.
264
+ module PayloadStyle
265
+ extend Orb::Internal::Type::Enum
266
+
267
+ TaggedSymbol =
268
+ T.type_alias do
269
+ T.all(Symbol, Orb::BackfillReflectedWebhookEvent::PayloadStyle)
270
+ end
271
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
272
+
273
+ EXPANDED =
274
+ T.let(
275
+ :expanded,
276
+ Orb::BackfillReflectedWebhookEvent::PayloadStyle::TaggedSymbol
277
+ )
278
+ STANDARD =
279
+ T.let(
280
+ :standard,
281
+ Orb::BackfillReflectedWebhookEvent::PayloadStyle::TaggedSymbol
282
+ )
283
+
284
+ sig do
285
+ override.returns(
286
+ T::Array[
287
+ Orb::BackfillReflectedWebhookEvent::PayloadStyle::TaggedSymbol
288
+ ]
289
+ )
290
+ end
291
+ def self.values
292
+ end
293
+ end
294
+
248
295
  # The event this payload describes.
249
296
  module Type
250
297
  extend Orb::Internal::Type::Enum
@@ -28,6 +28,13 @@ module Orb
28
28
  sig { returns(Time) }
29
29
  attr_accessor :created_at
30
30
 
31
+ # The serialization style this payload was rendered in, as configured on the
32
+ # endpoint.
33
+ sig do
34
+ returns(Orb::BackfillRevertedWebhookEvent::PayloadStyle::TaggedSymbol)
35
+ end
36
+ attr_accessor :payload_style
37
+
31
38
  sig { returns(T.anything) }
32
39
  attr_accessor :properties
33
40
 
@@ -41,6 +48,8 @@ module Orb
41
48
  id: String,
42
49
  backfill: Orb::BackfillRevertedWebhookEvent::Backfill::OrHash,
43
50
  created_at: Time,
51
+ payload_style:
52
+ Orb::BackfillRevertedWebhookEvent::PayloadStyle::OrSymbol,
44
53
  properties: T.anything,
45
54
  type: Orb::BackfillRevertedWebhookEvent::Type::OrSymbol
46
55
  ).returns(T.attached_class)
@@ -53,6 +62,9 @@ module Orb
53
62
  backfill:,
54
63
  # The time at which this event was created, to the second.
55
64
  created_at:,
65
+ # The serialization style this payload was rendered in, as configured on the
66
+ # endpoint.
67
+ payload_style:,
56
68
  properties:,
57
69
  # The event this payload describes.
58
70
  type:
@@ -65,6 +77,8 @@ module Orb
65
77
  id: String,
66
78
  backfill: Orb::BackfillRevertedWebhookEvent::Backfill,
67
79
  created_at: Time,
80
+ payload_style:
81
+ Orb::BackfillRevertedWebhookEvent::PayloadStyle::TaggedSymbol,
68
82
  properties: T.anything,
69
83
  type: Orb::BackfillRevertedWebhookEvent::Type::TaggedSymbol
70
84
  }
@@ -242,6 +256,39 @@ module Orb
242
256
  end
243
257
  end
244
258
 
259
+ # The serialization style this payload was rendered in, as configured on the
260
+ # endpoint.
261
+ module PayloadStyle
262
+ extend Orb::Internal::Type::Enum
263
+
264
+ TaggedSymbol =
265
+ T.type_alias do
266
+ T.all(Symbol, Orb::BackfillRevertedWebhookEvent::PayloadStyle)
267
+ end
268
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
269
+
270
+ EXPANDED =
271
+ T.let(
272
+ :expanded,
273
+ Orb::BackfillRevertedWebhookEvent::PayloadStyle::TaggedSymbol
274
+ )
275
+ STANDARD =
276
+ T.let(
277
+ :standard,
278
+ Orb::BackfillRevertedWebhookEvent::PayloadStyle::TaggedSymbol
279
+ )
280
+
281
+ sig do
282
+ override.returns(
283
+ T::Array[
284
+ Orb::BackfillRevertedWebhookEvent::PayloadStyle::TaggedSymbol
285
+ ]
286
+ )
287
+ end
288
+ def self.values
289
+ end
290
+ end
291
+
245
292
  # The event this payload describes.
246
293
  module Type
247
294
  extend Orb::Internal::Type::Enum
@@ -25,6 +25,15 @@ module Orb
25
25
  sig { returns(Time) }
26
26
  attr_accessor :created_at
27
27
 
28
+ # The serialization style this payload was rendered in, as configured on the
29
+ # endpoint.
30
+ sig do
31
+ returns(
32
+ Orb::BillableMetricEditedWebhookEvent::PayloadStyle::TaggedSymbol
33
+ )
34
+ end
35
+ attr_accessor :payload_style
36
+
28
37
  sig { returns(Orb::BillableMetricEditedWebhookEvent::Properties) }
29
38
  attr_reader :properties
30
39
 
@@ -45,6 +54,8 @@ module Orb
45
54
  id: String,
46
55
  billable_metric: Orb::BillableMetric::OrHash,
47
56
  created_at: Time,
57
+ payload_style:
58
+ Orb::BillableMetricEditedWebhookEvent::PayloadStyle::OrSymbol,
48
59
  properties: Orb::BillableMetricEditedWebhookEvent::Properties::OrHash,
49
60
  type: Orb::BillableMetricEditedWebhookEvent::Type::OrSymbol
50
61
  ).returns(T.attached_class)
@@ -58,6 +69,9 @@ module Orb
58
69
  billable_metric:,
59
70
  # The time at which this event was created, to the second.
60
71
  created_at:,
72
+ # The serialization style this payload was rendered in, as configured on the
73
+ # endpoint.
74
+ payload_style:,
61
75
  properties:,
62
76
  # The event this payload describes.
63
77
  type:
@@ -70,6 +84,8 @@ module Orb
70
84
  id: String,
71
85
  billable_metric: Orb::BillableMetric,
72
86
  created_at: Time,
87
+ payload_style:
88
+ Orb::BillableMetricEditedWebhookEvent::PayloadStyle::TaggedSymbol,
73
89
  properties: Orb::BillableMetricEditedWebhookEvent::Properties,
74
90
  type: Orb::BillableMetricEditedWebhookEvent::Type::TaggedSymbol
75
91
  }
@@ -78,6 +94,39 @@ module Orb
78
94
  def to_hash
79
95
  end
80
96
 
97
+ # The serialization style this payload was rendered in, as configured on the
98
+ # endpoint.
99
+ module PayloadStyle
100
+ extend Orb::Internal::Type::Enum
101
+
102
+ TaggedSymbol =
103
+ T.type_alias do
104
+ T.all(Symbol, Orb::BillableMetricEditedWebhookEvent::PayloadStyle)
105
+ end
106
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
107
+
108
+ EXPANDED =
109
+ T.let(
110
+ :expanded,
111
+ Orb::BillableMetricEditedWebhookEvent::PayloadStyle::TaggedSymbol
112
+ )
113
+ STANDARD =
114
+ T.let(
115
+ :standard,
116
+ Orb::BillableMetricEditedWebhookEvent::PayloadStyle::TaggedSymbol
117
+ )
118
+
119
+ sig do
120
+ override.returns(
121
+ T::Array[
122
+ Orb::BillableMetricEditedWebhookEvent::PayloadStyle::TaggedSymbol
123
+ ]
124
+ )
125
+ end
126
+ def self.values
127
+ end
128
+ end
129
+
81
130
  class Properties < Orb::Internal::Type::BaseModel
82
131
  OrHash =
83
132
  T.type_alias do
@@ -45,6 +45,15 @@ module Orb
45
45
  sig { returns(Time) }
46
46
  attr_accessor :created_at
47
47
 
48
+ # The serialization style this payload was rendered in, as configured on the
49
+ # endpoint.
50
+ sig do
51
+ returns(
52
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
53
+ )
54
+ end
55
+ attr_accessor :payload_style
56
+
48
57
  sig do
49
58
  returns(Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties)
50
59
  end
@@ -75,6 +84,8 @@ module Orb
75
84
  block:
76
85
  Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::OrHash,
77
86
  created_at: Time,
87
+ payload_style:
88
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::OrSymbol,
78
89
  properties:
79
90
  Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties::OrHash,
80
91
  type: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Type::OrSymbol
@@ -88,6 +99,9 @@ module Orb
88
99
  block:,
89
100
  # The time at which this event was created, to the second.
90
101
  created_at:,
102
+ # The serialization style this payload was rendered in, as configured on the
103
+ # endpoint.
104
+ payload_style:,
91
105
  properties:,
92
106
  # The event this payload describes.
93
107
  type:
@@ -102,6 +116,8 @@ module Orb
102
116
  Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
103
117
  block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block,
104
118
  created_at: Time,
119
+ payload_style:
120
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol,
105
121
  properties:
106
122
  Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties,
107
123
  type:
@@ -975,6 +991,42 @@ module Orb
975
991
  end
976
992
  end
977
993
 
994
+ # The serialization style this payload was rendered in, as configured on the
995
+ # endpoint.
996
+ module PayloadStyle
997
+ extend Orb::Internal::Type::Enum
998
+
999
+ TaggedSymbol =
1000
+ T.type_alias do
1001
+ T.all(
1002
+ Symbol,
1003
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle
1004
+ )
1005
+ end
1006
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1007
+
1008
+ EXPANDED =
1009
+ T.let(
1010
+ :expanded,
1011
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
1012
+ )
1013
+ STANDARD =
1014
+ T.let(
1015
+ :standard,
1016
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
1017
+ )
1018
+
1019
+ sig do
1020
+ override.returns(
1021
+ T::Array[
1022
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
1023
+ ]
1024
+ )
1025
+ end
1026
+ def self.values
1027
+ end
1028
+ end
1029
+
978
1030
  class Properties < Orb::Internal::Type::BaseModel
979
1031
  OrHash =
980
1032
  T.type_alias do
@@ -48,6 +48,15 @@ module Orb
48
48
  sig { returns(Time) }
49
49
  attr_accessor :created_at
50
50
 
51
+ # The serialization style this payload was rendered in, as configured on the
52
+ # endpoint.
53
+ sig do
54
+ returns(
55
+ Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::TaggedSymbol
56
+ )
57
+ end
58
+ attr_accessor :payload_style
59
+
51
60
  sig do
52
61
  returns(Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Properties)
53
62
  end
@@ -78,6 +87,8 @@ module Orb
78
87
  block:
79
88
  Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block::OrHash,
80
89
  created_at: Time,
90
+ payload_style:
91
+ Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::OrSymbol,
81
92
  properties:
82
93
  Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Properties::OrHash,
83
94
  type:
@@ -92,6 +103,9 @@ module Orb
92
103
  block:,
93
104
  # The time at which this event was created, to the second.
94
105
  created_at:,
106
+ # The serialization style this payload was rendered in, as configured on the
107
+ # endpoint.
108
+ payload_style:,
95
109
  properties:,
96
110
  # The event this payload describes.
97
111
  type:
@@ -106,6 +120,8 @@ module Orb
106
120
  Orb::CreditBlockAccountingSyncSucceededWebhookEvent::AccountingSyncRecord,
107
121
  block: Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Block,
108
122
  created_at: Time,
123
+ payload_style:
124
+ Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::TaggedSymbol,
109
125
  properties:
110
126
  Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Properties,
111
127
  type:
@@ -979,6 +995,42 @@ module Orb
979
995
  end
980
996
  end
981
997
 
998
+ # The serialization style this payload was rendered in, as configured on the
999
+ # endpoint.
1000
+ module PayloadStyle
1001
+ extend Orb::Internal::Type::Enum
1002
+
1003
+ TaggedSymbol =
1004
+ T.type_alias do
1005
+ T.all(
1006
+ Symbol,
1007
+ Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle
1008
+ )
1009
+ end
1010
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1011
+
1012
+ EXPANDED =
1013
+ T.let(
1014
+ :expanded,
1015
+ Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::TaggedSymbol
1016
+ )
1017
+ STANDARD =
1018
+ T.let(
1019
+ :standard,
1020
+ Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::TaggedSymbol
1021
+ )
1022
+
1023
+ sig do
1024
+ override.returns(
1025
+ T::Array[
1026
+ Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle::TaggedSymbol
1027
+ ]
1028
+ )
1029
+ end
1030
+ def self.values
1031
+ end
1032
+ end
1033
+
982
1034
  class Properties < Orb::Internal::Type::BaseModel
983
1035
  OrHash =
984
1036
  T.type_alias do