orb-billing 1.35.0 → 1.36.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 (258) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +1 -1
  4. data/lib/orb/client.rb +4 -0
  5. data/lib/orb/models/backfill_reflected_webhook_event.rb +180 -0
  6. data/lib/orb/models/backfill_reverted_webhook_event.rb +180 -0
  7. data/lib/orb/models/billable_metric_edited_webhook_event.rb +104 -0
  8. data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +499 -0
  9. data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +494 -0
  10. data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +161 -0
  11. data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +155 -0
  12. data/lib/orb/models/credit_note_issued_webhook_event.rb +65 -0
  13. data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +65 -0
  14. data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +171 -0
  15. data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +165 -0
  16. data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +212 -0
  17. data/lib/orb/models/customer_created_webhook_event.rb +81 -0
  18. data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +560 -0
  19. data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +566 -0
  20. data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +560 -0
  21. data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +474 -0
  22. data/lib/orb/models/customer_edited_webhook_event.rb +344 -0
  23. data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +100 -0
  24. data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +94 -0
  25. data/lib/orb/models/event_unmatched_event_webhook_event.rb +105 -0
  26. data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +64 -0
  27. data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +164 -0
  28. data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +158 -0
  29. data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +338 -0
  30. data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +83 -0
  31. data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +70 -0
  32. data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +70 -0
  33. data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +64 -0
  34. data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +186 -0
  35. data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +180 -0
  36. data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +184 -0
  37. data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +133 -0
  38. data/lib/orb/models/invoice_edited_webhook_event.rb +550 -0
  39. data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +120 -0
  40. data/lib/orb/models/invoice_issue_failed_webhook_event.rb +79 -0
  41. data/lib/orb/models/invoice_issued_summary_webhook_event.rb +841 -0
  42. data/lib/orb/models/invoice_issued_webhook_event.rb +79 -0
  43. data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +91 -0
  44. data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +68 -0
  45. data/lib/orb/models/invoice_payment_failed_webhook_event.rb +92 -0
  46. data/lib/orb/models/invoice_payment_processing_webhook_event.rb +85 -0
  47. data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +101 -0
  48. data/lib/orb/models/invoice_sync_failed_webhook_event.rb +85 -0
  49. data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +85 -0
  50. data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +68 -0
  51. data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +98 -0
  52. data/lib/orb/models/payment_method_created_webhook_event.rb +156 -0
  53. data/lib/orb/models/payment_method_deleted_webhook_event.rb +156 -0
  54. data/lib/orb/models/plan_default_version_set_webhook_event.rb +108 -0
  55. data/lib/orb/models/plan_version_created_webhook_event.rb +108 -0
  56. data/lib/orb/models/price_edited_webhook_event.rb +105 -0
  57. data/lib/orb/models/resource_event_test_webhook_event.rb +64 -0
  58. data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +164 -0
  59. data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +158 -0
  60. data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +178 -0
  61. data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +172 -0
  62. data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +624 -0
  63. data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +93 -0
  64. data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +93 -0
  65. data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +540 -0
  66. data/lib/orb/models/subscription_created_webhook_event.rb +82 -0
  67. data/lib/orb/models/subscription_edited_webhook_event.rb +134 -0
  68. data/lib/orb/models/subscription_ended_webhook_event.rb +82 -0
  69. data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +111 -0
  70. data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +655 -0
  71. data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +191 -0
  72. data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +214 -0
  73. data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +652 -0
  74. data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +105 -0
  75. data/lib/orb/models/subscription_plan_changed_webhook_event.rb +93 -0
  76. data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +106 -0
  77. data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +105 -0
  78. data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +541 -0
  79. data/lib/orb/models/subscription_started_webhook_event.rb +82 -0
  80. data/lib/orb/models/subscription_trial_ended_webhook_event.rb +82 -0
  81. data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +548 -0
  82. data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +236 -0
  83. data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +232 -0
  84. data/lib/orb/models/unwrap_webhook_event.rb +250 -0
  85. data/lib/orb/models/webhook_unwrap_params.rb +14 -0
  86. data/lib/orb/models.rb +180 -0
  87. data/lib/orb/resources/webhooks.rb +22 -0
  88. data/lib/orb/version.rb +1 -1
  89. data/lib/orb.rb +82 -0
  90. data/rbi/orb/client.rbi +3 -0
  91. data/rbi/orb/models/backfill_reflected_webhook_event.rbi +274 -0
  92. data/rbi/orb/models/backfill_reverted_webhook_event.rbi +271 -0
  93. data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +198 -0
  94. data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +1039 -0
  95. data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +1034 -0
  96. data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +315 -0
  97. data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +310 -0
  98. data/rbi/orb/models/credit_note_issued_webhook_event.rbi +98 -0
  99. data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +102 -0
  100. data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +339 -0
  101. data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +335 -0
  102. data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +437 -0
  103. data/rbi/orb/models/customer_created_webhook_event.rbi +128 -0
  104. data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +1091 -0
  105. data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +1096 -0
  106. data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +1091 -0
  107. data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +987 -0
  108. data/rbi/orb/models/customer_edited_webhook_event.rbi +599 -0
  109. data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +170 -0
  110. data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +165 -0
  111. data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +193 -0
  112. data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +132 -0
  113. data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +319 -0
  114. data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +312 -0
  115. data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +614 -0
  116. data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +144 -0
  117. data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +139 -0
  118. data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +139 -0
  119. data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +132 -0
  120. data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +331 -0
  121. data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +324 -0
  122. data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +329 -0
  123. data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +250 -0
  124. data/rbi/orb/models/invoice_edited_webhook_event.rbi +942 -0
  125. data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +251 -0
  126. data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +132 -0
  127. data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +1432 -0
  128. data/rbi/orb/models/invoice_issued_webhook_event.rbi +134 -0
  129. data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +165 -0
  130. data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +114 -0
  131. data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +157 -0
  132. data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +156 -0
  133. data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +175 -0
  134. data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +147 -0
  135. data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +147 -0
  136. data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +106 -0
  137. data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +167 -0
  138. data/rbi/orb/models/payment_method_created_webhook_event.rbi +259 -0
  139. data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +259 -0
  140. data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +196 -0
  141. data/rbi/orb/models/plan_version_created_webhook_event.rbi +190 -0
  142. data/rbi/orb/models/price_edited_webhook_event.rbi +235 -0
  143. data/rbi/orb/models/resource_event_test_webhook_event.rbi +116 -0
  144. data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +321 -0
  145. data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +316 -0
  146. data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +353 -0
  147. data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +346 -0
  148. data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +1232 -0
  149. data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +179 -0
  150. data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +183 -0
  151. data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +1034 -0
  152. data/rbi/orb/models/subscription_created_webhook_event.rbi +132 -0
  153. data/rbi/orb/models/subscription_edited_webhook_event.rbi +247 -0
  154. data/rbi/orb/models/subscription_ended_webhook_event.rbi +132 -0
  155. data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +206 -0
  156. data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +1262 -0
  157. data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +374 -0
  158. data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +421 -0
  159. data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +1265 -0
  160. data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +198 -0
  161. data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +169 -0
  162. data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +205 -0
  163. data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +199 -0
  164. data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +1035 -0
  165. data/rbi/orb/models/subscription_started_webhook_event.rbi +132 -0
  166. data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +136 -0
  167. data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +1041 -0
  168. data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +455 -0
  169. data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +449 -0
  170. data/rbi/orb/models/unwrap_webhook_event.rbi +99 -0
  171. data/rbi/orb/models/webhook_unwrap_params.rbi +25 -0
  172. data/rbi/orb/models.rbi +224 -0
  173. data/rbi/orb/resources/webhooks.rbi +103 -0
  174. data/sig/orb/client.rbs +2 -0
  175. data/sig/orb/models/backfill_reflected_webhook_event.rbs +130 -0
  176. data/sig/orb/models/backfill_reverted_webhook_event.rbs +130 -0
  177. data/sig/orb/models/billable_metric_edited_webhook_event.rbs +94 -0
  178. data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +412 -0
  179. data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +407 -0
  180. data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +147 -0
  181. data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +142 -0
  182. data/sig/orb/models/credit_note_issued_webhook_event.rbs +50 -0
  183. data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +50 -0
  184. data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +142 -0
  185. data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +137 -0
  186. data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +171 -0
  187. data/sig/orb/models/customer_created_webhook_event.rbs +50 -0
  188. data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +374 -0
  189. data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +379 -0
  190. data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +374 -0
  191. data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +364 -0
  192. data/sig/orb/models/customer_edited_webhook_event.rbs +139 -0
  193. data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +92 -0
  194. data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +87 -0
  195. data/sig/orb/models/event_unmatched_event_webhook_event.rbs +102 -0
  196. data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +55 -0
  197. data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +147 -0
  198. data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +142 -0
  199. data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +313 -0
  200. data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +73 -0
  201. data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +57 -0
  202. data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +57 -0
  203. data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +55 -0
  204. data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +171 -0
  205. data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +166 -0
  206. data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +156 -0
  207. data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +119 -0
  208. data/sig/orb/models/invoice_edited_webhook_event.rbs +388 -0
  209. data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +111 -0
  210. data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +60 -0
  211. data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +504 -0
  212. data/sig/orb/models/invoice_issued_webhook_event.rbs +60 -0
  213. data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +73 -0
  214. data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +50 -0
  215. data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +77 -0
  216. data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +71 -0
  217. data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +82 -0
  218. data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +69 -0
  219. data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +69 -0
  220. data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +50 -0
  221. data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +82 -0
  222. data/sig/orb/models/payment_method_created_webhook_event.rbs +112 -0
  223. data/sig/orb/models/payment_method_deleted_webhook_event.rbs +112 -0
  224. data/sig/orb/models/plan_default_version_set_webhook_event.rbs +94 -0
  225. data/sig/orb/models/plan_version_created_webhook_event.rbs +91 -0
  226. data/sig/orb/models/price_edited_webhook_event.rbs +77 -0
  227. data/sig/orb/models/resource_event_test_webhook_event.rbs +57 -0
  228. data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +147 -0
  229. data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +142 -0
  230. data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +147 -0
  231. data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +142 -0
  232. data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +444 -0
  233. data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +60 -0
  234. data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +60 -0
  235. data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +362 -0
  236. data/sig/orb/models/subscription_created_webhook_event.rbs +50 -0
  237. data/sig/orb/models/subscription_edited_webhook_event.rbs +109 -0
  238. data/sig/orb/models/subscription_ended_webhook_event.rbs +50 -0
  239. data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +82 -0
  240. data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +465 -0
  241. data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +158 -0
  242. data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +180 -0
  243. data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +460 -0
  244. data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +73 -0
  245. data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +60 -0
  246. data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +77 -0
  247. data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +77 -0
  248. data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +362 -0
  249. data/sig/orb/models/subscription_started_webhook_event.rbs +50 -0
  250. data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +50 -0
  251. data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +367 -0
  252. data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +205 -0
  253. data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +200 -0
  254. data/sig/orb/models/unwrap_webhook_event.rbs +90 -0
  255. data/sig/orb/models/webhook_unwrap_params.rbs +14 -0
  256. data/sig/orb/models.rbs +162 -0
  257. data/sig/orb/resources/webhooks.rbs +89 -0
  258. metadata +247 -1
@@ -0,0 +1,130 @@
1
+ module Orb
2
+ module Models
3
+ type backfill_reverted_webhook_event =
4
+ {
5
+ id: String,
6
+ backfill: Orb::BackfillRevertedWebhookEvent::Backfill,
7
+ created_at: Time,
8
+ properties: top,
9
+ type: Orb::Models::BackfillRevertedWebhookEvent::type_
10
+ }
11
+
12
+ class BackfillRevertedWebhookEvent < Orb::Internal::Type::BaseModel
13
+ attr_accessor id: String
14
+
15
+ attr_accessor backfill: Orb::BackfillRevertedWebhookEvent::Backfill
16
+
17
+ attr_accessor created_at: Time
18
+
19
+ attr_accessor properties: top
20
+
21
+ attr_accessor type: Orb::Models::BackfillRevertedWebhookEvent::type_
22
+
23
+ def initialize: (
24
+ id: String,
25
+ backfill: Orb::BackfillRevertedWebhookEvent::Backfill,
26
+ created_at: Time,
27
+ properties: top,
28
+ type: Orb::Models::BackfillRevertedWebhookEvent::type_
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ id: String,
33
+ backfill: Orb::BackfillRevertedWebhookEvent::Backfill,
34
+ created_at: Time,
35
+ properties: top,
36
+ type: Orb::Models::BackfillRevertedWebhookEvent::type_
37
+ }
38
+
39
+ type backfill =
40
+ {
41
+ id: String,
42
+ close_time: Time?,
43
+ created_at: Time,
44
+ customer_id: String?,
45
+ events_ingested: Integer,
46
+ replace_existing_events: bool,
47
+ reverted_at: Time?,
48
+ status: Orb::Models::BackfillRevertedWebhookEvent::Backfill::status,
49
+ timeframe_end: Time,
50
+ timeframe_start: Time,
51
+ deprecation_filter: String?
52
+ }
53
+
54
+ class Backfill < Orb::Internal::Type::BaseModel
55
+ attr_accessor id: String
56
+
57
+ attr_accessor close_time: Time?
58
+
59
+ attr_accessor created_at: Time
60
+
61
+ attr_accessor customer_id: String?
62
+
63
+ attr_accessor events_ingested: Integer
64
+
65
+ attr_accessor replace_existing_events: bool
66
+
67
+ attr_accessor reverted_at: Time?
68
+
69
+ attr_accessor status: Orb::Models::BackfillRevertedWebhookEvent::Backfill::status
70
+
71
+ attr_accessor timeframe_end: Time
72
+
73
+ attr_accessor timeframe_start: Time
74
+
75
+ attr_accessor deprecation_filter: String?
76
+
77
+ def initialize: (
78
+ id: String,
79
+ close_time: Time?,
80
+ created_at: Time,
81
+ customer_id: String?,
82
+ events_ingested: Integer,
83
+ replace_existing_events: bool,
84
+ reverted_at: Time?,
85
+ status: Orb::Models::BackfillRevertedWebhookEvent::Backfill::status,
86
+ timeframe_end: Time,
87
+ timeframe_start: Time,
88
+ ?deprecation_filter: String?
89
+ ) -> void
90
+
91
+ def to_hash: -> {
92
+ id: String,
93
+ close_time: Time?,
94
+ created_at: Time,
95
+ customer_id: String?,
96
+ events_ingested: Integer,
97
+ replace_existing_events: bool,
98
+ reverted_at: Time?,
99
+ status: Orb::Models::BackfillRevertedWebhookEvent::Backfill::status,
100
+ timeframe_end: Time,
101
+ timeframe_start: Time,
102
+ deprecation_filter: String?
103
+ }
104
+
105
+ type status = :pending | :reflected | :pending_revert | :reverted
106
+
107
+ module Status
108
+ extend Orb::Internal::Type::Enum
109
+
110
+ PENDING: :pending
111
+ REFLECTED: :reflected
112
+ PENDING_REVERT: :pending_revert
113
+ REVERTED: :reverted
114
+
115
+ def self?.values: -> ::Array[Orb::Models::BackfillRevertedWebhookEvent::Backfill::status]
116
+ end
117
+ end
118
+
119
+ type type_ = :"backfill.reverted"
120
+
121
+ module Type
122
+ extend Orb::Internal::Type::Enum
123
+
124
+ BACKFILL_REVERTED: :"backfill.reverted"
125
+
126
+ def self?.values: -> ::Array[Orb::Models::BackfillRevertedWebhookEvent::type_]
127
+ end
128
+ end
129
+ end
130
+ end
@@ -0,0 +1,94 @@
1
+ module Orb
2
+ module Models
3
+ type billable_metric_edited_webhook_event =
4
+ {
5
+ id: String,
6
+ billable_metric: Orb::BillableMetric,
7
+ created_at: Time,
8
+ properties: Orb::BillableMetricEditedWebhookEvent::Properties,
9
+ type: Orb::Models::BillableMetricEditedWebhookEvent::type_
10
+ }
11
+
12
+ class BillableMetricEditedWebhookEvent < Orb::Internal::Type::BaseModel
13
+ attr_accessor id: String
14
+
15
+ attr_accessor billable_metric: Orb::BillableMetric
16
+
17
+ attr_accessor created_at: Time
18
+
19
+ attr_accessor properties: Orb::BillableMetricEditedWebhookEvent::Properties
20
+
21
+ attr_accessor type: Orb::Models::BillableMetricEditedWebhookEvent::type_
22
+
23
+ def initialize: (
24
+ id: String,
25
+ billable_metric: Orb::BillableMetric,
26
+ created_at: Time,
27
+ properties: Orb::BillableMetricEditedWebhookEvent::Properties,
28
+ type: Orb::Models::BillableMetricEditedWebhookEvent::type_
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ id: String,
33
+ billable_metric: Orb::BillableMetric,
34
+ created_at: Time,
35
+ properties: Orb::BillableMetricEditedWebhookEvent::Properties,
36
+ type: Orb::Models::BillableMetricEditedWebhookEvent::type_
37
+ }
38
+
39
+ type properties =
40
+ {
41
+ previous_attributes: Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes
42
+ }
43
+
44
+ class Properties < Orb::Internal::Type::BaseModel
45
+ attr_accessor previous_attributes: Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes
46
+
47
+ def initialize: (
48
+ previous_attributes: Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes
49
+ ) -> void
50
+
51
+ def to_hash: -> {
52
+ previous_attributes: Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes
53
+ }
54
+
55
+ type previous_attributes =
56
+ {
57
+ description: String?,
58
+ metadata: ::Hash[Symbol, String]?,
59
+ name: String?
60
+ }
61
+
62
+ class PreviousAttributes < Orb::Internal::Type::BaseModel
63
+ attr_accessor description: String?
64
+
65
+ attr_accessor metadata: ::Hash[Symbol, String]?
66
+
67
+ attr_accessor name: String?
68
+
69
+ def initialize: (
70
+ ?description: String?,
71
+ ?metadata: ::Hash[Symbol, String]?,
72
+ ?name: String?
73
+ ) -> void
74
+
75
+ def to_hash: -> {
76
+ description: String?,
77
+ metadata: ::Hash[Symbol, String]?,
78
+ name: String?
79
+ }
80
+ end
81
+ end
82
+
83
+ type type_ = :"billable_metric.edited"
84
+
85
+ module Type
86
+ extend Orb::Internal::Type::Enum
87
+
88
+ BILLABLE_METRIC_EDITED: :"billable_metric.edited"
89
+
90
+ def self?.values: -> ::Array[Orb::Models::BillableMetricEditedWebhookEvent::type_]
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,412 @@
1
+ module Orb
2
+ module Models
3
+ type credit_block_accounting_sync_failed_webhook_event =
4
+ {
5
+ id: String,
6
+ accounting_sync_record: Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
7
+ block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block,
8
+ created_at: Time,
9
+ properties: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties,
10
+ type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::type_
11
+ }
12
+
13
+ class CreditBlockAccountingSyncFailedWebhookEvent < Orb::Internal::Type::BaseModel
14
+ attr_accessor id: String
15
+
16
+ attr_accessor accounting_sync_record: Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord
17
+
18
+ attr_accessor block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block
19
+
20
+ attr_accessor created_at: Time
21
+
22
+ attr_accessor properties: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties
23
+
24
+ attr_accessor type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::type_
25
+
26
+ def initialize: (
27
+ id: String,
28
+ accounting_sync_record: Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
29
+ block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block,
30
+ created_at: Time,
31
+ properties: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties,
32
+ type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::type_
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ id: String,
37
+ accounting_sync_record: Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
38
+ block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block,
39
+ created_at: Time,
40
+ properties: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties,
41
+ type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::type_
42
+ }
43
+
44
+ type accounting_sync_record =
45
+ {
46
+ id: String,
47
+ customer_id: String,
48
+ record_type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::record_type,
49
+ block_id: String?,
50
+ error_details: ::Hash[Symbol, top]?,
51
+ invoice_id: String?,
52
+ provider_customer_id: String?,
53
+ status: String?,
54
+ sync_action: String?
55
+ }
56
+
57
+ class AccountingSyncRecord < Orb::Internal::Type::BaseModel
58
+ attr_accessor id: String
59
+
60
+ attr_accessor customer_id: String
61
+
62
+ attr_accessor record_type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::record_type
63
+
64
+ attr_accessor block_id: String?
65
+
66
+ attr_accessor error_details: ::Hash[Symbol, top]?
67
+
68
+ attr_accessor invoice_id: String?
69
+
70
+ attr_accessor provider_customer_id: String?
71
+
72
+ attr_accessor status: String?
73
+
74
+ attr_accessor sync_action: String?
75
+
76
+ def initialize: (
77
+ id: String,
78
+ customer_id: String,
79
+ record_type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::record_type,
80
+ ?block_id: String?,
81
+ ?error_details: ::Hash[Symbol, top]?,
82
+ ?invoice_id: String?,
83
+ ?provider_customer_id: String?,
84
+ ?status: String?,
85
+ ?sync_action: String?
86
+ ) -> void
87
+
88
+ def to_hash: -> {
89
+ id: String,
90
+ customer_id: String,
91
+ record_type: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::record_type,
92
+ block_id: String?,
93
+ error_details: ::Hash[Symbol, top]?,
94
+ invoice_id: String?,
95
+ provider_customer_id: String?,
96
+ status: String?,
97
+ sync_action: String?
98
+ }
99
+
100
+ type record_type =
101
+ :customer
102
+ | :invoice
103
+ | :transaction
104
+ | :customer_balance_transaction
105
+ | :credit_note
106
+ | :subscription
107
+ | :sales_order
108
+ | :block
109
+
110
+ module RecordType
111
+ extend Orb::Internal::Type::Enum
112
+
113
+ CUSTOMER: :customer
114
+ INVOICE: :invoice
115
+ TRANSACTION: :transaction
116
+ CUSTOMER_BALANCE_TRANSACTION: :customer_balance_transaction
117
+ CREDIT_NOTE: :credit_note
118
+ SUBSCRIPTION: :subscription
119
+ SALES_ORDER: :sales_order
120
+ BLOCK: :block
121
+
122
+ def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::record_type]
123
+ end
124
+ end
125
+
126
+ type block =
127
+ {
128
+ id: String,
129
+ balance: String,
130
+ credit_block_source: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::credit_block_source,
131
+ effective_date: Time?,
132
+ expiry_date: Time?,
133
+ filters: ::Array[Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter],
134
+ maximum_initial_balance: String?,
135
+ metadata: ::Hash[Symbol, String],
136
+ per_unit_cost_basis: String?,
137
+ status: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::status,
138
+ credit_allocation: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation?,
139
+ credit_commitment: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditCommitment?
140
+ }
141
+
142
+ class Block < Orb::Internal::Type::BaseModel
143
+ attr_accessor id: String
144
+
145
+ attr_accessor balance: String
146
+
147
+ attr_accessor credit_block_source: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::credit_block_source
148
+
149
+ attr_accessor effective_date: Time?
150
+
151
+ attr_accessor expiry_date: Time?
152
+
153
+ attr_accessor filters: ::Array[Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter]
154
+
155
+ attr_accessor maximum_initial_balance: String?
156
+
157
+ attr_accessor metadata: ::Hash[Symbol, String]
158
+
159
+ attr_accessor per_unit_cost_basis: String?
160
+
161
+ attr_accessor status: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::status
162
+
163
+ attr_accessor credit_allocation: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation?
164
+
165
+ attr_accessor credit_commitment: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditCommitment?
166
+
167
+ def initialize: (
168
+ id: String,
169
+ balance: String,
170
+ credit_block_source: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::credit_block_source,
171
+ effective_date: Time?,
172
+ expiry_date: Time?,
173
+ filters: ::Array[Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter],
174
+ maximum_initial_balance: String?,
175
+ metadata: ::Hash[Symbol, String],
176
+ per_unit_cost_basis: String?,
177
+ status: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::status,
178
+ ?credit_allocation: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation?,
179
+ ?credit_commitment: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditCommitment?
180
+ ) -> void
181
+
182
+ def to_hash: -> {
183
+ id: String,
184
+ balance: String,
185
+ credit_block_source: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::credit_block_source,
186
+ effective_date: Time?,
187
+ expiry_date: Time?,
188
+ filters: ::Array[Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter],
189
+ maximum_initial_balance: String?,
190
+ metadata: ::Hash[Symbol, String],
191
+ per_unit_cost_basis: String?,
192
+ status: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::status,
193
+ credit_allocation: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation?,
194
+ credit_commitment: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditCommitment?
195
+ }
196
+
197
+ type credit_block_source = :allocation | :top_up | :commitment | :manual
198
+
199
+ module CreditBlockSource
200
+ extend Orb::Internal::Type::Enum
201
+
202
+ ALLOCATION: :allocation
203
+ TOP_UP: :top_up
204
+ COMMITMENT: :commitment
205
+ MANUAL: :manual
206
+
207
+ def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::credit_block_source]
208
+ end
209
+
210
+ type filter =
211
+ {
212
+ field: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::field,
213
+ operator: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::operator,
214
+ values: ::Array[String]
215
+ }
216
+
217
+ class Filter < Orb::Internal::Type::BaseModel
218
+ attr_accessor field: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::field
219
+
220
+ attr_accessor operator: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::operator
221
+
222
+ attr_accessor values: ::Array[String]
223
+
224
+ def initialize: (
225
+ field: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::field,
226
+ operator: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::operator,
227
+ values: ::Array[String]
228
+ ) -> void
229
+
230
+ def to_hash: -> {
231
+ field: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::field,
232
+ operator: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::operator,
233
+ values: ::Array[String]
234
+ }
235
+
236
+ type field =
237
+ :price_id | :item_id | :price_type | :currency | :pricing_unit_id
238
+
239
+ module Field
240
+ extend Orb::Internal::Type::Enum
241
+
242
+ PRICE_ID: :price_id
243
+ ITEM_ID: :item_id
244
+ PRICE_TYPE: :price_type
245
+ CURRENCY: :currency
246
+ PRICING_UNIT_ID: :pricing_unit_id
247
+
248
+ def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::field]
249
+ end
250
+
251
+ type operator = :includes | :excludes
252
+
253
+ module Operator
254
+ extend Orb::Internal::Type::Enum
255
+
256
+ INCLUDES: :includes
257
+ EXCLUDES: :excludes
258
+
259
+ def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::operator]
260
+ end
261
+ end
262
+
263
+ type status = :active | :pending_payment
264
+
265
+ module Status
266
+ extend Orb::Internal::Type::Enum
267
+
268
+ ACTIVE: :active
269
+ PENDING_PAYMENT: :pending_payment
270
+
271
+ def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::status]
272
+ end
273
+
274
+ type credit_allocation =
275
+ {
276
+ allows_rollover: bool,
277
+ currency: String,
278
+ custom_expiration: Orb::CustomExpiration?,
279
+ item_id: String,
280
+ filters: ::Array[Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter],
281
+ license_type_id: String?
282
+ }
283
+
284
+ class CreditAllocation < Orb::Internal::Type::BaseModel
285
+ attr_accessor allows_rollover: bool
286
+
287
+ attr_accessor currency: String
288
+
289
+ attr_accessor custom_expiration: Orb::CustomExpiration?
290
+
291
+ attr_accessor item_id: String
292
+
293
+ attr_reader filters: ::Array[Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter]?
294
+
295
+ def filters=: (
296
+ ::Array[Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter]
297
+ ) -> ::Array[Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter]
298
+
299
+ attr_accessor license_type_id: String?
300
+
301
+ def initialize: (
302
+ allows_rollover: bool,
303
+ currency: String,
304
+ custom_expiration: Orb::CustomExpiration?,
305
+ item_id: String,
306
+ ?filters: ::Array[Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter],
307
+ ?license_type_id: String?
308
+ ) -> void
309
+
310
+ def to_hash: -> {
311
+ allows_rollover: bool,
312
+ currency: String,
313
+ custom_expiration: Orb::CustomExpiration?,
314
+ item_id: String,
315
+ filters: ::Array[Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter],
316
+ license_type_id: String?
317
+ }
318
+
319
+ type filter =
320
+ {
321
+ field: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::field,
322
+ operator: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::operator,
323
+ values: ::Array[String]
324
+ }
325
+
326
+ class Filter < Orb::Internal::Type::BaseModel
327
+ attr_accessor field: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::field
328
+
329
+ attr_accessor operator: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::operator
330
+
331
+ attr_accessor values: ::Array[String]
332
+
333
+ def initialize: (
334
+ field: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::field,
335
+ operator: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::operator,
336
+ values: ::Array[String]
337
+ ) -> void
338
+
339
+ def to_hash: -> {
340
+ field: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::field,
341
+ operator: Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::operator,
342
+ values: ::Array[String]
343
+ }
344
+
345
+ type field =
346
+ :price_id | :item_id | :price_type | :currency | :pricing_unit_id
347
+
348
+ module Field
349
+ extend Orb::Internal::Type::Enum
350
+
351
+ PRICE_ID: :price_id
352
+ ITEM_ID: :item_id
353
+ PRICE_TYPE: :price_type
354
+ CURRENCY: :currency
355
+ PRICING_UNIT_ID: :pricing_unit_id
356
+
357
+ def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::field]
358
+ end
359
+
360
+ type operator = :includes | :excludes
361
+
362
+ module Operator
363
+ extend Orb::Internal::Type::Enum
364
+
365
+ INCLUDES: :includes
366
+ EXCLUDES: :excludes
367
+
368
+ def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::operator]
369
+ end
370
+ end
371
+ end
372
+
373
+ type credit_commitment = { id: String, subscription_id: String? }
374
+
375
+ class CreditCommitment < Orb::Internal::Type::BaseModel
376
+ attr_accessor id: String
377
+
378
+ attr_accessor subscription_id: String?
379
+
380
+ def initialize: (id: String, ?subscription_id: String?) -> void
381
+
382
+ def to_hash: -> { id: String, subscription_id: String? }
383
+ end
384
+ end
385
+
386
+ type properties = { connection_type: String, failure_reason: String }
387
+
388
+ class Properties < Orb::Internal::Type::BaseModel
389
+ attr_accessor connection_type: String
390
+
391
+ attr_accessor failure_reason: String
392
+
393
+ def initialize: (
394
+ connection_type: String,
395
+ failure_reason: String
396
+ ) -> void
397
+
398
+ def to_hash: -> { connection_type: String, failure_reason: String }
399
+ end
400
+
401
+ type type_ = :"credit_block.accounting_sync_failed"
402
+
403
+ module Type
404
+ extend Orb::Internal::Type::Enum
405
+
406
+ CREDIT_BLOCK_ACCOUNTING_SYNC_FAILED: :"credit_block.accounting_sync_failed"
407
+
408
+ def self?.values: -> ::Array[Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::type_]
409
+ end
410
+ end
411
+ end
412
+ end