orb-billing 1.35.0 → 1.37.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 +35 -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,1039 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ class CreditBlockAccountingSyncFailedWebhookEvent < Orb::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent,
10
+ Orb::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The ID of this webhook event.
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ sig do
19
+ returns(
20
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord
21
+ )
22
+ end
23
+ attr_reader :accounting_sync_record
24
+
25
+ sig do
26
+ params(
27
+ accounting_sync_record:
28
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::OrHash
29
+ ).void
30
+ end
31
+ attr_writer :accounting_sync_record
32
+
33
+ # The Credit Block resource models prepaid credits within Orb.
34
+ sig { returns(Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block) }
35
+ attr_reader :block
36
+
37
+ sig do
38
+ params(
39
+ block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::OrHash
40
+ ).void
41
+ end
42
+ attr_writer :block
43
+
44
+ # The time at which this event was created, to the second.
45
+ sig { returns(Time) }
46
+ attr_accessor :created_at
47
+
48
+ sig do
49
+ returns(Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties)
50
+ end
51
+ attr_reader :properties
52
+
53
+ sig do
54
+ params(
55
+ properties:
56
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties::OrHash
57
+ ).void
58
+ end
59
+ attr_writer :properties
60
+
61
+ # The event this payload describes.
62
+ sig do
63
+ returns(
64
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Type::TaggedSymbol
65
+ )
66
+ end
67
+ attr_accessor :type
68
+
69
+ # Issued when a credit block accounting sync fails.
70
+ sig do
71
+ params(
72
+ id: String,
73
+ accounting_sync_record:
74
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::OrHash,
75
+ block:
76
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::OrHash,
77
+ created_at: Time,
78
+ properties:
79
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties::OrHash,
80
+ type: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Type::OrSymbol
81
+ ).returns(T.attached_class)
82
+ end
83
+ def self.new(
84
+ # The ID of this webhook event.
85
+ id:,
86
+ accounting_sync_record:,
87
+ # The Credit Block resource models prepaid credits within Orb.
88
+ block:,
89
+ # The time at which this event was created, to the second.
90
+ created_at:,
91
+ properties:,
92
+ # The event this payload describes.
93
+ type:
94
+ )
95
+ end
96
+
97
+ sig do
98
+ override.returns(
99
+ {
100
+ id: String,
101
+ accounting_sync_record:
102
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
103
+ block: Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block,
104
+ created_at: Time,
105
+ properties:
106
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties,
107
+ type:
108
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Type::TaggedSymbol
109
+ }
110
+ )
111
+ end
112
+ def to_hash
113
+ end
114
+
115
+ class AccountingSyncRecord < Orb::Internal::Type::BaseModel
116
+ OrHash =
117
+ T.type_alias do
118
+ T.any(
119
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
120
+ Orb::Internal::AnyHash
121
+ )
122
+ end
123
+
124
+ sig { returns(String) }
125
+ attr_accessor :id
126
+
127
+ sig { returns(String) }
128
+ attr_accessor :customer_id
129
+
130
+ sig do
131
+ returns(
132
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol
133
+ )
134
+ end
135
+ attr_accessor :record_type
136
+
137
+ sig { returns(T.nilable(String)) }
138
+ attr_accessor :block_id
139
+
140
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
141
+ attr_accessor :error_details
142
+
143
+ sig { returns(T.nilable(String)) }
144
+ attr_accessor :invoice_id
145
+
146
+ sig { returns(T.nilable(String)) }
147
+ attr_accessor :provider_customer_id
148
+
149
+ sig { returns(T.nilable(String)) }
150
+ attr_accessor :status
151
+
152
+ sig { returns(T.nilable(String)) }
153
+ attr_accessor :sync_action
154
+
155
+ sig do
156
+ params(
157
+ id: String,
158
+ customer_id: String,
159
+ record_type:
160
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::OrSymbol,
161
+ block_id: T.nilable(String),
162
+ error_details: T.nilable(T::Hash[Symbol, T.anything]),
163
+ invoice_id: T.nilable(String),
164
+ provider_customer_id: T.nilable(String),
165
+ status: T.nilable(String),
166
+ sync_action: T.nilable(String)
167
+ ).returns(T.attached_class)
168
+ end
169
+ def self.new(
170
+ id:,
171
+ customer_id:,
172
+ record_type:,
173
+ block_id: nil,
174
+ error_details: nil,
175
+ invoice_id: nil,
176
+ provider_customer_id: nil,
177
+ status: nil,
178
+ sync_action: nil
179
+ )
180
+ end
181
+
182
+ sig do
183
+ override.returns(
184
+ {
185
+ id: String,
186
+ customer_id: String,
187
+ record_type:
188
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol,
189
+ block_id: T.nilable(String),
190
+ error_details: T.nilable(T::Hash[Symbol, T.anything]),
191
+ invoice_id: T.nilable(String),
192
+ provider_customer_id: T.nilable(String),
193
+ status: T.nilable(String),
194
+ sync_action: T.nilable(String)
195
+ }
196
+ )
197
+ end
198
+ def to_hash
199
+ end
200
+
201
+ module RecordType
202
+ extend Orb::Internal::Type::Enum
203
+
204
+ TaggedSymbol =
205
+ T.type_alias do
206
+ T.all(
207
+ Symbol,
208
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType
209
+ )
210
+ end
211
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
212
+
213
+ CUSTOMER =
214
+ T.let(
215
+ :customer,
216
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol
217
+ )
218
+ INVOICE =
219
+ T.let(
220
+ :invoice,
221
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol
222
+ )
223
+ TRANSACTION =
224
+ T.let(
225
+ :transaction,
226
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol
227
+ )
228
+ CUSTOMER_BALANCE_TRANSACTION =
229
+ T.let(
230
+ :customer_balance_transaction,
231
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol
232
+ )
233
+ CREDIT_NOTE =
234
+ T.let(
235
+ :credit_note,
236
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol
237
+ )
238
+ SUBSCRIPTION =
239
+ T.let(
240
+ :subscription,
241
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol
242
+ )
243
+ SALES_ORDER =
244
+ T.let(
245
+ :sales_order,
246
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol
247
+ )
248
+ BLOCK =
249
+ T.let(
250
+ :block,
251
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol
252
+ )
253
+
254
+ sig do
255
+ override.returns(
256
+ T::Array[
257
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::AccountingSyncRecord::RecordType::TaggedSymbol
258
+ ]
259
+ )
260
+ end
261
+ def self.values
262
+ end
263
+ end
264
+ end
265
+
266
+ class Block < Orb::Internal::Type::BaseModel
267
+ OrHash =
268
+ T.type_alias do
269
+ T.any(
270
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block,
271
+ Orb::Internal::AnyHash
272
+ )
273
+ end
274
+
275
+ sig { returns(String) }
276
+ attr_accessor :id
277
+
278
+ sig { returns(String) }
279
+ attr_accessor :balance
280
+
281
+ # How this credit block was created: `allocation` (a subscription's recurring
282
+ # credit allocation), `top_up` (an automatic balance-threshold top-up),
283
+ # `commitment` (a subscription commitment true-up rolled forward as credit), or
284
+ # `manual` (a manual credit ledger increment, including credits voided or expired
285
+ # off another block).
286
+ sig do
287
+ returns(
288
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditBlockSource::TaggedSymbol
289
+ )
290
+ end
291
+ attr_accessor :credit_block_source
292
+
293
+ sig { returns(T.nilable(Time)) }
294
+ attr_accessor :effective_date
295
+
296
+ sig { returns(T.nilable(Time)) }
297
+ attr_accessor :expiry_date
298
+
299
+ sig do
300
+ returns(
301
+ T::Array[
302
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter
303
+ ]
304
+ )
305
+ end
306
+ attr_accessor :filters
307
+
308
+ sig { returns(T.nilable(String)) }
309
+ attr_accessor :maximum_initial_balance
310
+
311
+ # User specified key-value pairs for the resource. If not present, this defaults
312
+ # to an empty dictionary. Individual keys can be removed by setting the value to
313
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
314
+ # `null`.
315
+ sig { returns(T::Hash[Symbol, String]) }
316
+ attr_accessor :metadata
317
+
318
+ sig { returns(T.nilable(String)) }
319
+ attr_accessor :per_unit_cost_basis
320
+
321
+ sig do
322
+ returns(
323
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status::TaggedSymbol
324
+ )
325
+ end
326
+ attr_accessor :status
327
+
328
+ # The credit allocation that funded a block. Extends the allocation resource
329
+ # serialized on prices with the catalog-item attribution of the funding price.
330
+ sig do
331
+ returns(
332
+ T.nilable(
333
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation
334
+ )
335
+ )
336
+ end
337
+ attr_reader :credit_allocation
338
+
339
+ sig do
340
+ params(
341
+ credit_allocation:
342
+ T.nilable(
343
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::OrHash
344
+ )
345
+ ).void
346
+ end
347
+ attr_writer :credit_allocation
348
+
349
+ # The subscription commitment whose true-up rolled forward into this credit block.
350
+ # Present only when `credit_block_source` is `commitment`.
351
+ sig do
352
+ returns(
353
+ T.nilable(
354
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditCommitment
355
+ )
356
+ )
357
+ end
358
+ attr_reader :credit_commitment
359
+
360
+ sig do
361
+ params(
362
+ credit_commitment:
363
+ T.nilable(
364
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditCommitment::OrHash
365
+ )
366
+ ).void
367
+ end
368
+ attr_writer :credit_commitment
369
+
370
+ # The Credit Block resource models prepaid credits within Orb.
371
+ sig do
372
+ params(
373
+ id: String,
374
+ balance: String,
375
+ credit_block_source:
376
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditBlockSource::OrSymbol,
377
+ effective_date: T.nilable(Time),
378
+ expiry_date: T.nilable(Time),
379
+ filters:
380
+ T::Array[
381
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::OrHash
382
+ ],
383
+ maximum_initial_balance: T.nilable(String),
384
+ metadata: T::Hash[Symbol, String],
385
+ per_unit_cost_basis: T.nilable(String),
386
+ status:
387
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status::OrSymbol,
388
+ credit_allocation:
389
+ T.nilable(
390
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::OrHash
391
+ ),
392
+ credit_commitment:
393
+ T.nilable(
394
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditCommitment::OrHash
395
+ )
396
+ ).returns(T.attached_class)
397
+ end
398
+ def self.new(
399
+ id:,
400
+ balance:,
401
+ # How this credit block was created: `allocation` (a subscription's recurring
402
+ # credit allocation), `top_up` (an automatic balance-threshold top-up),
403
+ # `commitment` (a subscription commitment true-up rolled forward as credit), or
404
+ # `manual` (a manual credit ledger increment, including credits voided or expired
405
+ # off another block).
406
+ credit_block_source:,
407
+ effective_date:,
408
+ expiry_date:,
409
+ filters:,
410
+ maximum_initial_balance:,
411
+ # User specified key-value pairs for the resource. If not present, this defaults
412
+ # to an empty dictionary. Individual keys can be removed by setting the value to
413
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
414
+ # `null`.
415
+ metadata:,
416
+ per_unit_cost_basis:,
417
+ status:,
418
+ # The credit allocation that funded a block. Extends the allocation resource
419
+ # serialized on prices with the catalog-item attribution of the funding price.
420
+ credit_allocation: nil,
421
+ # The subscription commitment whose true-up rolled forward into this credit block.
422
+ # Present only when `credit_block_source` is `commitment`.
423
+ credit_commitment: nil
424
+ )
425
+ end
426
+
427
+ sig do
428
+ override.returns(
429
+ {
430
+ id: String,
431
+ balance: String,
432
+ credit_block_source:
433
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditBlockSource::TaggedSymbol,
434
+ effective_date: T.nilable(Time),
435
+ expiry_date: T.nilable(Time),
436
+ filters:
437
+ T::Array[
438
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter
439
+ ],
440
+ maximum_initial_balance: T.nilable(String),
441
+ metadata: T::Hash[Symbol, String],
442
+ per_unit_cost_basis: T.nilable(String),
443
+ status:
444
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status::TaggedSymbol,
445
+ credit_allocation:
446
+ T.nilable(
447
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation
448
+ ),
449
+ credit_commitment:
450
+ T.nilable(
451
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditCommitment
452
+ )
453
+ }
454
+ )
455
+ end
456
+ def to_hash
457
+ end
458
+
459
+ # How this credit block was created: `allocation` (a subscription's recurring
460
+ # credit allocation), `top_up` (an automatic balance-threshold top-up),
461
+ # `commitment` (a subscription commitment true-up rolled forward as credit), or
462
+ # `manual` (a manual credit ledger increment, including credits voided or expired
463
+ # off another block).
464
+ module CreditBlockSource
465
+ extend Orb::Internal::Type::Enum
466
+
467
+ TaggedSymbol =
468
+ T.type_alias do
469
+ T.all(
470
+ Symbol,
471
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditBlockSource
472
+ )
473
+ end
474
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
475
+
476
+ ALLOCATION =
477
+ T.let(
478
+ :allocation,
479
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditBlockSource::TaggedSymbol
480
+ )
481
+ TOP_UP =
482
+ T.let(
483
+ :top_up,
484
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditBlockSource::TaggedSymbol
485
+ )
486
+ COMMITMENT =
487
+ T.let(
488
+ :commitment,
489
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditBlockSource::TaggedSymbol
490
+ )
491
+ MANUAL =
492
+ T.let(
493
+ :manual,
494
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditBlockSource::TaggedSymbol
495
+ )
496
+
497
+ sig do
498
+ override.returns(
499
+ T::Array[
500
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditBlockSource::TaggedSymbol
501
+ ]
502
+ )
503
+ end
504
+ def self.values
505
+ end
506
+ end
507
+
508
+ class Filter < Orb::Internal::Type::BaseModel
509
+ OrHash =
510
+ T.type_alias do
511
+ T.any(
512
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter,
513
+ Orb::Internal::AnyHash
514
+ )
515
+ end
516
+
517
+ # The property of the price to filter on.
518
+ sig do
519
+ returns(
520
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Field::TaggedSymbol
521
+ )
522
+ end
523
+ attr_accessor :field
524
+
525
+ # Should prices that match the filter be included or excluded.
526
+ sig do
527
+ returns(
528
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Operator::TaggedSymbol
529
+ )
530
+ end
531
+ attr_accessor :operator
532
+
533
+ # The IDs or values that match this filter.
534
+ sig { returns(T::Array[String]) }
535
+ attr_accessor :values
536
+
537
+ sig do
538
+ params(
539
+ field:
540
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Field::OrSymbol,
541
+ operator:
542
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Operator::OrSymbol,
543
+ values: T::Array[String]
544
+ ).returns(T.attached_class)
545
+ end
546
+ def self.new(
547
+ # The property of the price to filter on.
548
+ field:,
549
+ # Should prices that match the filter be included or excluded.
550
+ operator:,
551
+ # The IDs or values that match this filter.
552
+ values:
553
+ )
554
+ end
555
+
556
+ sig do
557
+ override.returns(
558
+ {
559
+ field:
560
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Field::TaggedSymbol,
561
+ operator:
562
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Operator::TaggedSymbol,
563
+ values: T::Array[String]
564
+ }
565
+ )
566
+ end
567
+ def to_hash
568
+ end
569
+
570
+ # The property of the price to filter on.
571
+ module Field
572
+ extend Orb::Internal::Type::Enum
573
+
574
+ TaggedSymbol =
575
+ T.type_alias do
576
+ T.all(
577
+ Symbol,
578
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Field
579
+ )
580
+ end
581
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
582
+
583
+ PRICE_ID =
584
+ T.let(
585
+ :price_id,
586
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Field::TaggedSymbol
587
+ )
588
+ ITEM_ID =
589
+ T.let(
590
+ :item_id,
591
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Field::TaggedSymbol
592
+ )
593
+ PRICE_TYPE =
594
+ T.let(
595
+ :price_type,
596
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Field::TaggedSymbol
597
+ )
598
+ CURRENCY =
599
+ T.let(
600
+ :currency,
601
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Field::TaggedSymbol
602
+ )
603
+ PRICING_UNIT_ID =
604
+ T.let(
605
+ :pricing_unit_id,
606
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Field::TaggedSymbol
607
+ )
608
+
609
+ sig do
610
+ override.returns(
611
+ T::Array[
612
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Field::TaggedSymbol
613
+ ]
614
+ )
615
+ end
616
+ def self.values
617
+ end
618
+ end
619
+
620
+ # Should prices that match the filter be included or excluded.
621
+ module Operator
622
+ extend Orb::Internal::Type::Enum
623
+
624
+ TaggedSymbol =
625
+ T.type_alias do
626
+ T.all(
627
+ Symbol,
628
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Operator
629
+ )
630
+ end
631
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
632
+
633
+ INCLUDES =
634
+ T.let(
635
+ :includes,
636
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Operator::TaggedSymbol
637
+ )
638
+ EXCLUDES =
639
+ T.let(
640
+ :excludes,
641
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Operator::TaggedSymbol
642
+ )
643
+
644
+ sig do
645
+ override.returns(
646
+ T::Array[
647
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Filter::Operator::TaggedSymbol
648
+ ]
649
+ )
650
+ end
651
+ def self.values
652
+ end
653
+ end
654
+ end
655
+
656
+ module Status
657
+ extend Orb::Internal::Type::Enum
658
+
659
+ TaggedSymbol =
660
+ T.type_alias do
661
+ T.all(
662
+ Symbol,
663
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status
664
+ )
665
+ end
666
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
667
+
668
+ ACTIVE =
669
+ T.let(
670
+ :active,
671
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status::TaggedSymbol
672
+ )
673
+ PENDING_PAYMENT =
674
+ T.let(
675
+ :pending_payment,
676
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status::TaggedSymbol
677
+ )
678
+
679
+ sig do
680
+ override.returns(
681
+ T::Array[
682
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::Status::TaggedSymbol
683
+ ]
684
+ )
685
+ end
686
+ def self.values
687
+ end
688
+ end
689
+
690
+ class CreditAllocation < Orb::Internal::Type::BaseModel
691
+ OrHash =
692
+ T.type_alias do
693
+ T.any(
694
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation,
695
+ Orb::Internal::AnyHash
696
+ )
697
+ end
698
+
699
+ sig { returns(T::Boolean) }
700
+ attr_accessor :allows_rollover
701
+
702
+ sig { returns(String) }
703
+ attr_accessor :currency
704
+
705
+ sig { returns(T.nilable(Orb::CustomExpiration)) }
706
+ attr_reader :custom_expiration
707
+
708
+ sig do
709
+ params(
710
+ custom_expiration: T.nilable(Orb::CustomExpiration::OrHash)
711
+ ).void
712
+ end
713
+ attr_writer :custom_expiration
714
+
715
+ # The ID of the catalog item this block was allocated from, derived from the
716
+ # allocation's price.
717
+ sig { returns(String) }
718
+ attr_accessor :item_id
719
+
720
+ sig do
721
+ returns(
722
+ T.nilable(
723
+ T::Array[
724
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter
725
+ ]
726
+ )
727
+ )
728
+ end
729
+ attr_reader :filters
730
+
731
+ sig do
732
+ params(
733
+ filters:
734
+ T::Array[
735
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::OrHash
736
+ ]
737
+ ).void
738
+ end
739
+ attr_writer :filters
740
+
741
+ sig { returns(T.nilable(String)) }
742
+ attr_accessor :license_type_id
743
+
744
+ # The credit allocation that funded a block. Extends the allocation resource
745
+ # serialized on prices with the catalog-item attribution of the funding price.
746
+ sig do
747
+ params(
748
+ allows_rollover: T::Boolean,
749
+ currency: String,
750
+ custom_expiration: T.nilable(Orb::CustomExpiration::OrHash),
751
+ item_id: String,
752
+ filters:
753
+ T::Array[
754
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::OrHash
755
+ ],
756
+ license_type_id: T.nilable(String)
757
+ ).returns(T.attached_class)
758
+ end
759
+ def self.new(
760
+ allows_rollover:,
761
+ currency:,
762
+ custom_expiration:,
763
+ # The ID of the catalog item this block was allocated from, derived from the
764
+ # allocation's price.
765
+ item_id:,
766
+ filters: nil,
767
+ license_type_id: nil
768
+ )
769
+ end
770
+
771
+ sig do
772
+ override.returns(
773
+ {
774
+ allows_rollover: T::Boolean,
775
+ currency: String,
776
+ custom_expiration: T.nilable(Orb::CustomExpiration),
777
+ item_id: String,
778
+ filters:
779
+ T::Array[
780
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter
781
+ ],
782
+ license_type_id: T.nilable(String)
783
+ }
784
+ )
785
+ end
786
+ def to_hash
787
+ end
788
+
789
+ class Filter < Orb::Internal::Type::BaseModel
790
+ OrHash =
791
+ T.type_alias do
792
+ T.any(
793
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter,
794
+ Orb::Internal::AnyHash
795
+ )
796
+ end
797
+
798
+ # The property of the price to filter on.
799
+ sig do
800
+ returns(
801
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Field::TaggedSymbol
802
+ )
803
+ end
804
+ attr_accessor :field
805
+
806
+ # Should prices that match the filter be included or excluded.
807
+ sig do
808
+ returns(
809
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Operator::TaggedSymbol
810
+ )
811
+ end
812
+ attr_accessor :operator
813
+
814
+ # The IDs or values that match this filter.
815
+ sig { returns(T::Array[String]) }
816
+ attr_accessor :values
817
+
818
+ sig do
819
+ params(
820
+ field:
821
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Field::OrSymbol,
822
+ operator:
823
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Operator::OrSymbol,
824
+ values: T::Array[String]
825
+ ).returns(T.attached_class)
826
+ end
827
+ def self.new(
828
+ # The property of the price to filter on.
829
+ field:,
830
+ # Should prices that match the filter be included or excluded.
831
+ operator:,
832
+ # The IDs or values that match this filter.
833
+ values:
834
+ )
835
+ end
836
+
837
+ sig do
838
+ override.returns(
839
+ {
840
+ field:
841
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Field::TaggedSymbol,
842
+ operator:
843
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Operator::TaggedSymbol,
844
+ values: T::Array[String]
845
+ }
846
+ )
847
+ end
848
+ def to_hash
849
+ end
850
+
851
+ # The property of the price to filter on.
852
+ module Field
853
+ extend Orb::Internal::Type::Enum
854
+
855
+ TaggedSymbol =
856
+ T.type_alias do
857
+ T.all(
858
+ Symbol,
859
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Field
860
+ )
861
+ end
862
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
863
+
864
+ PRICE_ID =
865
+ T.let(
866
+ :price_id,
867
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Field::TaggedSymbol
868
+ )
869
+ ITEM_ID =
870
+ T.let(
871
+ :item_id,
872
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Field::TaggedSymbol
873
+ )
874
+ PRICE_TYPE =
875
+ T.let(
876
+ :price_type,
877
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Field::TaggedSymbol
878
+ )
879
+ CURRENCY =
880
+ T.let(
881
+ :currency,
882
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Field::TaggedSymbol
883
+ )
884
+ PRICING_UNIT_ID =
885
+ T.let(
886
+ :pricing_unit_id,
887
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Field::TaggedSymbol
888
+ )
889
+
890
+ sig do
891
+ override.returns(
892
+ T::Array[
893
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Field::TaggedSymbol
894
+ ]
895
+ )
896
+ end
897
+ def self.values
898
+ end
899
+ end
900
+
901
+ # Should prices that match the filter be included or excluded.
902
+ module Operator
903
+ extend Orb::Internal::Type::Enum
904
+
905
+ TaggedSymbol =
906
+ T.type_alias do
907
+ T.all(
908
+ Symbol,
909
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Operator
910
+ )
911
+ end
912
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
913
+
914
+ INCLUDES =
915
+ T.let(
916
+ :includes,
917
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Operator::TaggedSymbol
918
+ )
919
+ EXCLUDES =
920
+ T.let(
921
+ :excludes,
922
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Operator::TaggedSymbol
923
+ )
924
+
925
+ sig do
926
+ override.returns(
927
+ T::Array[
928
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditAllocation::Filter::Operator::TaggedSymbol
929
+ ]
930
+ )
931
+ end
932
+ def self.values
933
+ end
934
+ end
935
+ end
936
+ end
937
+
938
+ class CreditCommitment < Orb::Internal::Type::BaseModel
939
+ OrHash =
940
+ T.type_alias do
941
+ T.any(
942
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Block::CreditCommitment,
943
+ Orb::Internal::AnyHash
944
+ )
945
+ end
946
+
947
+ # The ID of the subscription commitment this block was rolled forward from.
948
+ sig { returns(String) }
949
+ attr_accessor :id
950
+
951
+ # The subscription the commitment belongs to.
952
+ sig { returns(T.nilable(String)) }
953
+ attr_accessor :subscription_id
954
+
955
+ # The subscription commitment whose true-up rolled forward into this credit block.
956
+ # Present only when `credit_block_source` is `commitment`.
957
+ sig do
958
+ params(id: String, subscription_id: T.nilable(String)).returns(
959
+ T.attached_class
960
+ )
961
+ end
962
+ def self.new(
963
+ # The ID of the subscription commitment this block was rolled forward from.
964
+ id:,
965
+ # The subscription the commitment belongs to.
966
+ subscription_id: nil
967
+ )
968
+ end
969
+
970
+ sig do
971
+ override.returns({ id: String, subscription_id: T.nilable(String) })
972
+ end
973
+ def to_hash
974
+ end
975
+ end
976
+ end
977
+
978
+ class Properties < Orb::Internal::Type::BaseModel
979
+ OrHash =
980
+ T.type_alias do
981
+ T.any(
982
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Properties,
983
+ Orb::Internal::AnyHash
984
+ )
985
+ end
986
+
987
+ sig { returns(String) }
988
+ attr_accessor :connection_type
989
+
990
+ sig { returns(String) }
991
+ attr_accessor :failure_reason
992
+
993
+ sig do
994
+ params(connection_type: String, failure_reason: String).returns(
995
+ T.attached_class
996
+ )
997
+ end
998
+ def self.new(connection_type:, failure_reason:)
999
+ end
1000
+
1001
+ sig do
1002
+ override.returns({ connection_type: String, failure_reason: String })
1003
+ end
1004
+ def to_hash
1005
+ end
1006
+ end
1007
+
1008
+ # The event this payload describes.
1009
+ module Type
1010
+ extend Orb::Internal::Type::Enum
1011
+
1012
+ TaggedSymbol =
1013
+ T.type_alias do
1014
+ T.all(
1015
+ Symbol,
1016
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Type
1017
+ )
1018
+ end
1019
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1020
+
1021
+ CREDIT_BLOCK_ACCOUNTING_SYNC_FAILED =
1022
+ T.let(
1023
+ :"credit_block.accounting_sync_failed",
1024
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Type::TaggedSymbol
1025
+ )
1026
+
1027
+ sig do
1028
+ override.returns(
1029
+ T::Array[
1030
+ Orb::CreditBlockAccountingSyncFailedWebhookEvent::Type::TaggedSymbol
1031
+ ]
1032
+ )
1033
+ end
1034
+ def self.values
1035
+ end
1036
+ end
1037
+ end
1038
+ end
1039
+ end