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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5dc40a201faac67ea9e72b07425ff535bee8c7963fb6eb92d3ba2e5bc224034
4
- data.tar.gz: f895167c6a7d1f9333e90ff8cbecff8e29728b4154d91312b9ebfbd26ee77678
3
+ metadata.gz: 06c0074b0a16a37c4a6ddeb4fb2ef718479c621bd78268d964f5949167e9cd68
4
+ data.tar.gz: 779cf49681b6d3791724aaed878a536062beb6b065535501f62e1cbe2dddb6cb
5
5
  SHA512:
6
- metadata.gz: 00aefa80fd013628e189a38423ce551e8e4efffde14221d9532eaef6830287d0ac51e2b878d1c5ef4f7d7057b3f9f27a9627b9c3fc03a70afd72e7f644b124ff
7
- data.tar.gz: ee6b01f1ef20639b49d8bbacb86da21eb4441d4a6ece28aa4324f4e8a1437dd35394ad909dc7c812c493ca60283e583b551354499d8ab00f0fde0cdc0f52776a
6
+ metadata.gz: a29cd78e8c652ec6af4658ef68a1943401a9e2ed2d86f7acccb956bfcf0055f13dfece6568a1610d9e73da7049391a41035a0e28f35a1fc1dbe879811121fe76
7
+ data.tar.gz: '0681fe7130768ec32ffa151706102b023385e6303cb91fd1a70530ce239a838ef55cae74db86f1f749e985e38988e79d99cc942c39919dc5b1ce15771c96daa8'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.45.0](https://github.com/orbcorp/orb-ruby/compare/v1.44.0...v1.45.0) (2026-10-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** api update ([bf20672](https://github.com/orbcorp/orb-ruby/commit/bf206724a957f94ca650009dfc18879d47d1ec53))
9
+
10
+ ## [1.44.0](https://github.com/orbcorp/orb-ruby/compare/v1.43.0...v1.44.0) (2026-10-20)
11
+
12
+
13
+ ### Features
14
+
15
+ * **api:** add `plan.created` and `plan.edited` webhook events ([9413030](https://github.com/orbcorp/orb-ruby/commit/9413030251c1fd9ac58b583a369afbfb7c02672d))
16
+ * **api:** add `tax_reason` field to tax amount entries ([8d1c0db](https://github.com/orbcorp/orb-ruby/commit/8d1c0db96ed1accbe3ff654d1e87bdad7a1d6ad2))
17
+
3
18
  ## [1.43.0](https://github.com/orbcorp/orb-ruby/compare/v1.42.0...v1.43.0) (2026-10-16)
4
19
 
5
20
 
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "orb-billing", "~> 1.43.0"
18
+ gem "orb-billing", "~> 1.45.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
data/lib/orb/client.rb CHANGED
@@ -96,6 +96,11 @@ module Orb
96
96
  # @return [Orb::Resources::Items]
97
97
  attr_reader :items
98
98
 
99
+ # A webhook endpoint is an HTTPS URL that Orb sends
100
+ # [webhook events](/integrations-and-exports/webhooks) to.
101
+ # @return [Orb::Resources::WebhookEndpoints]
102
+ attr_reader :webhook_endpoints
103
+
99
104
  # The Metric resource represents a calculation of a quantity based on events.
100
105
  # Metrics are defined by the query that transforms raw usage events into
101
106
  # meaningful values for your customers.
@@ -232,6 +237,7 @@ module Orb
232
237
  @invoice_line_items = Orb::Resources::InvoiceLineItems.new(client: self)
233
238
  @invoices = Orb::Resources::Invoices.new(client: self)
234
239
  @items = Orb::Resources::Items.new(client: self)
240
+ @webhook_endpoints = Orb::Resources::WebhookEndpoints.new(client: self)
235
241
  @metrics = Orb::Resources::Metrics.new(client: self)
236
242
  @plans = Orb::Resources::Plans.new(client: self)
237
243
  @prices = Orb::Resources::Prices.new(client: self)
@@ -0,0 +1,156 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Orb
4
+ module Models
5
+ # @see Orb::Resources::Alerts#create_for_plan
6
+ class AlertCreateForPlanParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ # @!attribute plan_id
11
+ #
12
+ # @return [String]
13
+ required :plan_id, String
14
+
15
+ # @!attribute thresholds
16
+ # The thresholds that define the values at which the alert will be triggered.
17
+ #
18
+ # @return [Array<Orb::Models::Threshold>]
19
+ required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Threshold] }
20
+
21
+ # @!attribute type
22
+ # The type of alert to create. This must be a valid alert type.
23
+ #
24
+ # @return [Symbol, Orb::Models::AlertCreateForPlanParams::Type]
25
+ required :type, enum: -> { Orb::AlertCreateForPlanParams::Type }
26
+
27
+ # @!attribute currency
28
+ # The case sensitive currency or custom pricing unit the alert is denominated in.
29
+ # Required for spend_exceeded alerts and when grouping_keys is set.
30
+ #
31
+ # @return [String, nil]
32
+ optional :currency, String, nil?: true
33
+
34
+ # @!attribute grouping_keys
35
+ # The property keys to group cost alerts by. Only applicable for cost_exceeded
36
+ # alerts.
37
+ #
38
+ # @return [Array<String>, nil]
39
+ optional :grouping_keys, Orb::Internal::Type::ArrayOf[String], nil?: true
40
+
41
+ # @!attribute metric_id
42
+ # The metric to track usage for.
43
+ #
44
+ # @return [String, nil]
45
+ optional :metric_id, String, nil?: true
46
+
47
+ # @!attribute plan_version
48
+ # The plan version to create alerts for. If not specified, the default will be the
49
+ # plan's active plan version.
50
+ #
51
+ # @return [Integer, nil]
52
+ optional :plan_version, Integer, nil?: true
53
+
54
+ # @!attribute price_filters
55
+ # Filters to scope which prices are included in alert evaluation. Supports
56
+ # filtering by price_id, item_id, or price_type with includes/excludes operators.
57
+ # Only applicable to spend_exceeded alerts and to cost_exceeded alerts with
58
+ # grouping_keys set.
59
+ #
60
+ # @return [Array<Orb::Models::AlertCreateForPlanParams::PriceFilter>, nil]
61
+ optional :price_filters,
62
+ -> { Orb::Internal::Type::ArrayOf[Orb::AlertCreateForPlanParams::PriceFilter] },
63
+ nil?: true
64
+
65
+ # @!method initialize(plan_id:, thresholds:, type:, currency: nil, grouping_keys: nil, metric_id: nil, plan_version: nil, price_filters: nil, request_options: {})
66
+ # Some parameter documentations has been truncated, see
67
+ # {Orb::Models::AlertCreateForPlanParams} for more details.
68
+ #
69
+ # @param plan_id [String]
70
+ #
71
+ # @param thresholds [Array<Orb::Models::Threshold>] The thresholds that define the values at which the alert will be triggered.
72
+ #
73
+ # @param type [Symbol, Orb::Models::AlertCreateForPlanParams::Type] The type of alert to create. This must be a valid alert type.
74
+ #
75
+ # @param currency [String, nil] The case sensitive currency or custom pricing unit the alert is denominated in.
76
+ #
77
+ # @param grouping_keys [Array<String>, nil] The property keys to group cost alerts by. Only applicable for cost_exceeded ale
78
+ #
79
+ # @param metric_id [String, nil] The metric to track usage for.
80
+ #
81
+ # @param plan_version [Integer, nil] The plan version to create alerts for. If not specified, the default will be the
82
+ #
83
+ # @param price_filters [Array<Orb::Models::AlertCreateForPlanParams::PriceFilter>, nil] Filters to scope which prices are included in alert evaluation. Supports filteri
84
+ #
85
+ # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
86
+
87
+ # The type of alert to create. This must be a valid alert type.
88
+ module Type
89
+ extend Orb::Internal::Type::Enum
90
+
91
+ USAGE_EXCEEDED = :usage_exceeded
92
+ COST_EXCEEDED = :cost_exceeded
93
+ SPEND_EXCEEDED = :spend_exceeded
94
+
95
+ # @!method self.values
96
+ # @return [Array<Symbol>]
97
+ end
98
+
99
+ class PriceFilter < Orb::Internal::Type::BaseModel
100
+ # @!attribute field
101
+ # The property of the price to filter on.
102
+ #
103
+ # @return [Symbol, Orb::Models::AlertCreateForPlanParams::PriceFilter::Field]
104
+ required :field, enum: -> { Orb::AlertCreateForPlanParams::PriceFilter::Field }
105
+
106
+ # @!attribute operator
107
+ # Should prices that match the filter be included or excluded.
108
+ #
109
+ # @return [Symbol, Orb::Models::AlertCreateForPlanParams::PriceFilter::Operator]
110
+ required :operator, enum: -> { Orb::AlertCreateForPlanParams::PriceFilter::Operator }
111
+
112
+ # @!attribute values
113
+ # The IDs or values that match this filter.
114
+ #
115
+ # @return [Array<String>]
116
+ required :values, Orb::Internal::Type::ArrayOf[String]
117
+
118
+ # @!method initialize(field:, operator:, values:)
119
+ # @param field [Symbol, Orb::Models::AlertCreateForPlanParams::PriceFilter::Field] The property of the price to filter on.
120
+ #
121
+ # @param operator [Symbol, Orb::Models::AlertCreateForPlanParams::PriceFilter::Operator] Should prices that match the filter be included or excluded.
122
+ #
123
+ # @param values [Array<String>] The IDs or values that match this filter.
124
+
125
+ # The property of the price to filter on.
126
+ #
127
+ # @see Orb::Models::AlertCreateForPlanParams::PriceFilter#field
128
+ module Field
129
+ extend Orb::Internal::Type::Enum
130
+
131
+ PRICE_ID = :price_id
132
+ ITEM_ID = :item_id
133
+ PRICE_TYPE = :price_type
134
+ CURRENCY = :currency
135
+ PRICING_UNIT_ID = :pricing_unit_id
136
+
137
+ # @!method self.values
138
+ # @return [Array<Symbol>]
139
+ end
140
+
141
+ # Should prices that match the filter be included or excluded.
142
+ #
143
+ # @see Orb::Models::AlertCreateForPlanParams::PriceFilter#operator
144
+ module Operator
145
+ extend Orb::Internal::Type::Enum
146
+
147
+ INCLUDES = :includes
148
+ EXCLUDES = :excludes
149
+
150
+ # @!method self.values
151
+ # @return [Array<Symbol>]
152
+ end
153
+ end
154
+ end
155
+ end
156
+ end
@@ -22,6 +22,13 @@ module Orb
22
22
  # @return [Time]
23
23
  required :created_at, Time
24
24
 
25
+ # @!attribute payload_style
26
+ # The serialization style this payload was rendered in, as configured on the
27
+ # endpoint.
28
+ #
29
+ # @return [Symbol, Orb::Models::BackfillReflectedWebhookEvent::PayloadStyle]
30
+ required :payload_style, enum: -> { Orb::BackfillReflectedWebhookEvent::PayloadStyle }
31
+
25
32
  # @!attribute properties
26
33
  #
27
34
  # @return [Object]
@@ -33,7 +40,7 @@ module Orb
33
40
  # @return [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Type]
34
41
  required :type, enum: -> { Orb::BackfillReflectedWebhookEvent::Type }
35
42
 
36
- # @!method initialize(id:, backfill:, created_at:, properties:, type:)
43
+ # @!method initialize(id:, backfill:, created_at:, payload_style:, properties:, type:)
37
44
  # Some parameter documentations has been truncated, see
38
45
  # {Orb::Models::BackfillReflectedWebhookEvent} for more details.
39
46
  #
@@ -45,6 +52,8 @@ module Orb
45
52
  #
46
53
  # @param created_at [Time] The time at which this event was created, to the second.
47
54
  #
55
+ # @param payload_style [Symbol, Orb::Models::BackfillReflectedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
56
+ #
48
57
  # @param properties [Object]
49
58
  #
50
59
  # @param type [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Type] The event this payload describes.
@@ -164,6 +173,20 @@ module Orb
164
173
  end
165
174
  end
166
175
 
176
+ # The serialization style this payload was rendered in, as configured on the
177
+ # endpoint.
178
+ #
179
+ # @see Orb::Models::BackfillReflectedWebhookEvent#payload_style
180
+ module PayloadStyle
181
+ extend Orb::Internal::Type::Enum
182
+
183
+ EXPANDED = :expanded
184
+ STANDARD = :standard
185
+
186
+ # @!method self.values
187
+ # @return [Array<Symbol>]
188
+ end
189
+
167
190
  # The event this payload describes.
168
191
  #
169
192
  # @see Orb::Models::BackfillReflectedWebhookEvent#type
@@ -22,6 +22,13 @@ module Orb
22
22
  # @return [Time]
23
23
  required :created_at, Time
24
24
 
25
+ # @!attribute payload_style
26
+ # The serialization style this payload was rendered in, as configured on the
27
+ # endpoint.
28
+ #
29
+ # @return [Symbol, Orb::Models::BackfillRevertedWebhookEvent::PayloadStyle]
30
+ required :payload_style, enum: -> { Orb::BackfillRevertedWebhookEvent::PayloadStyle }
31
+
25
32
  # @!attribute properties
26
33
  #
27
34
  # @return [Object]
@@ -33,7 +40,7 @@ module Orb
33
40
  # @return [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Type]
34
41
  required :type, enum: -> { Orb::BackfillRevertedWebhookEvent::Type }
35
42
 
36
- # @!method initialize(id:, backfill:, created_at:, properties:, type:)
43
+ # @!method initialize(id:, backfill:, created_at:, payload_style:, properties:, type:)
37
44
  # Some parameter documentations has been truncated, see
38
45
  # {Orb::Models::BackfillRevertedWebhookEvent} for more details.
39
46
  #
@@ -45,6 +52,8 @@ module Orb
45
52
  #
46
53
  # @param created_at [Time] The time at which this event was created, to the second.
47
54
  #
55
+ # @param payload_style [Symbol, Orb::Models::BackfillRevertedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
56
+ #
48
57
  # @param properties [Object]
49
58
  #
50
59
  # @param type [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Type] The event this payload describes.
@@ -164,6 +173,20 @@ module Orb
164
173
  end
165
174
  end
166
175
 
176
+ # The serialization style this payload was rendered in, as configured on the
177
+ # endpoint.
178
+ #
179
+ # @see Orb::Models::BackfillRevertedWebhookEvent#payload_style
180
+ module PayloadStyle
181
+ extend Orb::Internal::Type::Enum
182
+
183
+ EXPANDED = :expanded
184
+ STANDARD = :standard
185
+
186
+ # @!method self.values
187
+ # @return [Array<Symbol>]
188
+ end
189
+
167
190
  # The event this payload describes.
168
191
  #
169
192
  # @see Orb::Models::BackfillRevertedWebhookEvent#type
@@ -23,6 +23,13 @@ module Orb
23
23
  # @return [Time]
24
24
  required :created_at, Time
25
25
 
26
+ # @!attribute payload_style
27
+ # The serialization style this payload was rendered in, as configured on the
28
+ # endpoint.
29
+ #
30
+ # @return [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::PayloadStyle]
31
+ required :payload_style, enum: -> { Orb::BillableMetricEditedWebhookEvent::PayloadStyle }
32
+
26
33
  # @!attribute properties
27
34
  #
28
35
  # @return [Orb::Models::BillableMetricEditedWebhookEvent::Properties]
@@ -34,7 +41,7 @@ module Orb
34
41
  # @return [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::Type]
35
42
  required :type, enum: -> { Orb::BillableMetricEditedWebhookEvent::Type }
36
43
 
37
- # @!method initialize(id:, billable_metric:, created_at:, properties:, type:)
44
+ # @!method initialize(id:, billable_metric:, created_at:, payload_style:, properties:, type:)
38
45
  # Some parameter documentations has been truncated, see
39
46
  # {Orb::Models::BillableMetricEditedWebhookEvent} for more details.
40
47
  #
@@ -46,10 +53,26 @@ module Orb
46
53
  #
47
54
  # @param created_at [Time] The time at which this event was created, to the second.
48
55
  #
56
+ # @param payload_style [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
57
+ #
49
58
  # @param properties [Orb::Models::BillableMetricEditedWebhookEvent::Properties]
50
59
  #
51
60
  # @param type [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::Type] The event this payload describes.
52
61
 
62
+ # The serialization style this payload was rendered in, as configured on the
63
+ # endpoint.
64
+ #
65
+ # @see Orb::Models::BillableMetricEditedWebhookEvent#payload_style
66
+ module PayloadStyle
67
+ extend Orb::Internal::Type::Enum
68
+
69
+ EXPANDED = :expanded
70
+ STANDARD = :standard
71
+
72
+ # @!method self.values
73
+ # @return [Array<Symbol>]
74
+ end
75
+
53
76
  # @see Orb::Models::BillableMetricEditedWebhookEvent#properties
54
77
  class Properties < Orb::Internal::Type::BaseModel
55
78
  # @!attribute previous_attributes
@@ -27,6 +27,13 @@ module Orb
27
27
  # @return [Time]
28
28
  required :created_at, Time
29
29
 
30
+ # @!attribute payload_style
31
+ # The serialization style this payload was rendered in, as configured on the
32
+ # endpoint.
33
+ #
34
+ # @return [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle]
35
+ required :payload_style, enum: -> { Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle }
36
+
30
37
  # @!attribute properties
31
38
  #
32
39
  # @return [Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Properties]
@@ -38,7 +45,10 @@ module Orb
38
45
  # @return [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Type]
39
46
  required :type, enum: -> { Orb::CreditBlockAccountingSyncFailedWebhookEvent::Type }
40
47
 
41
- # @!method initialize(id:, accounting_sync_record:, block:, created_at:, properties:, type:)
48
+ # @!method initialize(id:, accounting_sync_record:, block:, created_at:, payload_style:, properties:, type:)
49
+ # Some parameter documentations has been truncated, see
50
+ # {Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent} for more details.
51
+ #
42
52
  # Issued when a credit block accounting sync fails.
43
53
  #
44
54
  # @param id [String] The ID of this webhook event.
@@ -49,6 +59,8 @@ module Orb
49
59
  #
50
60
  # @param created_at [Time] The time at which this event was created, to the second.
51
61
  #
62
+ # @param payload_style [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
63
+ #
52
64
  # @param properties [Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Properties]
53
65
  #
54
66
  # @param type [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Type] The event this payload describes.
@@ -466,6 +478,20 @@ module Orb
466
478
  end
467
479
  end
468
480
 
481
+ # The serialization style this payload was rendered in, as configured on the
482
+ # endpoint.
483
+ #
484
+ # @see Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent#payload_style
485
+ module PayloadStyle
486
+ extend Orb::Internal::Type::Enum
487
+
488
+ EXPANDED = :expanded
489
+ STANDARD = :standard
490
+
491
+ # @!method self.values
492
+ # @return [Array<Symbol>]
493
+ end
494
+
469
495
  # @see Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent#properties
470
496
  class Properties < Orb::Internal::Type::BaseModel
471
497
  # @!attribute connection_type
@@ -27,6 +27,13 @@ module Orb
27
27
  # @return [Time]
28
28
  required :created_at, Time
29
29
 
30
+ # @!attribute payload_style
31
+ # The serialization style this payload was rendered in, as configured on the
32
+ # endpoint.
33
+ #
34
+ # @return [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle]
35
+ required :payload_style, enum: -> { Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle }
36
+
30
37
  # @!attribute properties
31
38
  #
32
39
  # @return [Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Properties]
@@ -38,7 +45,10 @@ module Orb
38
45
  # @return [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Type]
39
46
  required :type, enum: -> { Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Type }
40
47
 
41
- # @!method initialize(id:, accounting_sync_record:, block:, created_at:, properties:, type:)
48
+ # @!method initialize(id:, accounting_sync_record:, block:, created_at:, payload_style:, properties:, type:)
49
+ # Some parameter documentations has been truncated, see
50
+ # {Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent} for more details.
51
+ #
42
52
  # Issued when a credit block accounting sync succeeds.
43
53
  #
44
54
  # @param id [String] The ID of this webhook event.
@@ -49,6 +59,8 @@ module Orb
49
59
  #
50
60
  # @param created_at [Time] The time at which this event was created, to the second.
51
61
  #
62
+ # @param payload_style [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
63
+ #
52
64
  # @param properties [Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Properties]
53
65
  #
54
66
  # @param type [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Type] The event this payload describes.
@@ -467,6 +479,20 @@ module Orb
467
479
  end
468
480
  end
469
481
 
482
+ # The serialization style this payload was rendered in, as configured on the
483
+ # endpoint.
484
+ #
485
+ # @see Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent#payload_style
486
+ module PayloadStyle
487
+ extend Orb::Internal::Type::Enum
488
+
489
+ EXPANDED = :expanded
490
+ STANDARD = :standard
491
+
492
+ # @!method self.values
493
+ # @return [Array<Symbol>]
494
+ end
495
+
470
496
  # @see Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent#properties
471
497
  class Properties < Orb::Internal::Type::BaseModel
472
498
  # @!attribute connection_type
@@ -28,6 +28,13 @@ module Orb
28
28
  # @return [Orb::Models::CreditNote]
29
29
  required :credit_note, -> { Orb::CreditNote }
30
30
 
31
+ # @!attribute payload_style
32
+ # The serialization style this payload was rendered in, as configured on the
33
+ # endpoint.
34
+ #
35
+ # @return [Symbol, Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::PayloadStyle]
36
+ required :payload_style, enum: -> { Orb::CreditNoteAccountingSyncFailedWebhookEvent::PayloadStyle }
37
+
31
38
  # @!attribute properties
32
39
  #
33
40
  # @return [Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::Properties]
@@ -39,7 +46,7 @@ module Orb
39
46
  # @return [Symbol, Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::Type]
40
47
  required :type, enum: -> { Orb::CreditNoteAccountingSyncFailedWebhookEvent::Type }
41
48
 
42
- # @!method initialize(id:, accounting_sync_record:, created_at:, credit_note:, properties:, type:)
49
+ # @!method initialize(id:, accounting_sync_record:, created_at:, credit_note:, payload_style:, properties:, type:)
43
50
  # Some parameter documentations has been truncated, see
44
51
  # {Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent} for more details.
45
52
  #
@@ -53,6 +60,8 @@ module Orb
53
60
  #
54
61
  # @param credit_note [Orb::Models::CreditNote] The [Credit Note](/invoicing/credit-notes) resource represents a credit that has
55
62
  #
63
+ # @param payload_style [Symbol, Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
64
+ #
56
65
  # @param properties [Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::Properties]
57
66
  #
58
67
  # @param type [Symbol, Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::Type] The event this payload describes.
@@ -128,6 +137,20 @@ module Orb
128
137
  end
129
138
  end
130
139
 
140
+ # The serialization style this payload was rendered in, as configured on the
141
+ # endpoint.
142
+ #
143
+ # @see Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent#payload_style
144
+ module PayloadStyle
145
+ extend Orb::Internal::Type::Enum
146
+
147
+ EXPANDED = :expanded
148
+ STANDARD = :standard
149
+
150
+ # @!method self.values
151
+ # @return [Array<Symbol>]
152
+ end
153
+
131
154
  # @see Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent#properties
132
155
  class Properties < Orb::Internal::Type::BaseModel
133
156
  # @!attribute connection_type
@@ -28,6 +28,13 @@ module Orb
28
28
  # @return [Orb::Models::CreditNote]
29
29
  required :credit_note, -> { Orb::CreditNote }
30
30
 
31
+ # @!attribute payload_style
32
+ # The serialization style this payload was rendered in, as configured on the
33
+ # endpoint.
34
+ #
35
+ # @return [Symbol, Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::PayloadStyle]
36
+ required :payload_style, enum: -> { Orb::CreditNoteAccountingSyncSucceededWebhookEvent::PayloadStyle }
37
+
31
38
  # @!attribute properties
32
39
  #
33
40
  # @return [Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::Properties]
@@ -39,7 +46,7 @@ module Orb
39
46
  # @return [Symbol, Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::Type]
40
47
  required :type, enum: -> { Orb::CreditNoteAccountingSyncSucceededWebhookEvent::Type }
41
48
 
42
- # @!method initialize(id:, accounting_sync_record:, created_at:, credit_note:, properties:, type:)
49
+ # @!method initialize(id:, accounting_sync_record:, created_at:, credit_note:, payload_style:, properties:, type:)
43
50
  # Some parameter documentations has been truncated, see
44
51
  # {Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent} for more details.
45
52
  #
@@ -53,6 +60,8 @@ module Orb
53
60
  #
54
61
  # @param credit_note [Orb::Models::CreditNote] The [Credit Note](/invoicing/credit-notes) resource represents a credit that has
55
62
  #
63
+ # @param payload_style [Symbol, Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
64
+ #
56
65
  # @param properties [Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::Properties]
57
66
  #
58
67
  # @param type [Symbol, Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::Type] The event this payload describes.
@@ -128,6 +137,20 @@ module Orb
128
137
  end
129
138
  end
130
139
 
140
+ # The serialization style this payload was rendered in, as configured on the
141
+ # endpoint.
142
+ #
143
+ # @see Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent#payload_style
144
+ module PayloadStyle
145
+ extend Orb::Internal::Type::Enum
146
+
147
+ EXPANDED = :expanded
148
+ STANDARD = :standard
149
+
150
+ # @!method self.values
151
+ # @return [Array<Symbol>]
152
+ end
153
+
131
154
  # @see Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent#properties
132
155
  class Properties < Orb::Internal::Type::BaseModel
133
156
  # @!attribute connection_type
@@ -22,6 +22,13 @@ module Orb
22
22
  # @return [Orb::Models::CreditNote]
23
23
  required :credit_note, -> { Orb::CreditNote }
24
24
 
25
+ # @!attribute payload_style
26
+ # The serialization style this payload was rendered in, as configured on the
27
+ # endpoint.
28
+ #
29
+ # @return [Symbol, Orb::Models::CreditNoteIssuedWebhookEvent::PayloadStyle]
30
+ required :payload_style, enum: -> { Orb::CreditNoteIssuedWebhookEvent::PayloadStyle }
31
+
25
32
  # @!attribute properties
26
33
  #
27
34
  # @return [Object]
@@ -33,7 +40,7 @@ module Orb
33
40
  # @return [Symbol, Orb::Models::CreditNoteIssuedWebhookEvent::Type]
34
41
  required :type, enum: -> { Orb::CreditNoteIssuedWebhookEvent::Type }
35
42
 
36
- # @!method initialize(id:, created_at:, credit_note:, properties:, type:)
43
+ # @!method initialize(id:, created_at:, credit_note:, payload_style:, properties:, type:)
37
44
  # Some parameter documentations has been truncated, see
38
45
  # {Orb::Models::CreditNoteIssuedWebhookEvent} for more details.
39
46
  #
@@ -45,10 +52,26 @@ module Orb
45
52
  #
46
53
  # @param credit_note [Orb::Models::CreditNote] The [Credit Note](/invoicing/credit-notes) resource represents a credit that has
47
54
  #
55
+ # @param payload_style [Symbol, Orb::Models::CreditNoteIssuedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
56
+ #
48
57
  # @param properties [Object]
49
58
  #
50
59
  # @param type [Symbol, Orb::Models::CreditNoteIssuedWebhookEvent::Type] The event this payload describes.
51
60
 
61
+ # The serialization style this payload was rendered in, as configured on the
62
+ # endpoint.
63
+ #
64
+ # @see Orb::Models::CreditNoteIssuedWebhookEvent#payload_style
65
+ module PayloadStyle
66
+ extend Orb::Internal::Type::Enum
67
+
68
+ EXPANDED = :expanded
69
+ STANDARD = :standard
70
+
71
+ # @!method self.values
72
+ # @return [Array<Symbol>]
73
+ end
74
+
52
75
  # The event this payload describes.
53
76
  #
54
77
  # @see Orb::Models::CreditNoteIssuedWebhookEvent#type