orb-billing 1.44.0 → 1.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/orb/models/backfill_reflected_webhook_event.rb +24 -1
  5. data/lib/orb/models/backfill_reverted_webhook_event.rb +24 -1
  6. data/lib/orb/models/billable_metric_edited_webhook_event.rb +24 -1
  7. data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +27 -1
  8. data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +27 -1
  9. data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +24 -1
  10. data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +24 -1
  11. data/lib/orb/models/credit_note_issued_webhook_event.rb +24 -1
  12. data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +24 -1
  13. data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +24 -1
  14. data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +24 -1
  15. data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +24 -1
  16. data/lib/orb/models/customer_created_webhook_event.rb +24 -1
  17. data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +24 -1
  18. data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +24 -1
  19. data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +24 -1
  20. data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +24 -1
  21. data/lib/orb/models/customer_edited_webhook_event.rb +24 -1
  22. data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +27 -1
  23. data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +27 -1
  24. data/lib/orb/models/event_unmatched_event_webhook_event.rb +27 -1
  25. data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +27 -1
  26. data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +24 -1
  27. data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +24 -1
  28. data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +24 -1
  29. data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +27 -1
  30. data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +27 -1
  31. data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +28 -1
  32. data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +27 -1
  33. data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +24 -1
  34. data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +24 -1
  35. data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +24 -1
  36. data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +24 -1
  37. data/lib/orb/models/invoice_edited_webhook_event.rb +24 -1
  38. data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +27 -1
  39. data/lib/orb/models/invoice_issue_failed_webhook_event.rb +24 -1
  40. data/lib/orb/models/invoice_issued_summary_webhook_event.rb +27 -1
  41. data/lib/orb/models/invoice_issued_webhook_event.rb +24 -1
  42. data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +24 -1
  43. data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +24 -1
  44. data/lib/orb/models/invoice_payment_failed_webhook_event.rb +24 -1
  45. data/lib/orb/models/invoice_payment_processing_webhook_event.rb +24 -1
  46. data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +24 -1
  47. data/lib/orb/models/invoice_sync_failed_webhook_event.rb +24 -1
  48. data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +24 -1
  49. data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +24 -1
  50. data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +24 -1
  51. data/lib/orb/models/payment_method_created_webhook_event.rb +24 -1
  52. data/lib/orb/models/payment_method_deleted_webhook_event.rb +24 -1
  53. data/lib/orb/models/plan_created_webhook_event.rb +27 -1
  54. data/lib/orb/models/plan_default_version_set_webhook_event.rb +27 -1
  55. data/lib/orb/models/plan_edited_webhook_event.rb +24 -1
  56. data/lib/orb/models/plan_version_created_webhook_event.rb +27 -1
  57. data/lib/orb/models/price_edited_webhook_event.rb +24 -1
  58. data/lib/orb/models/resource_event_test_webhook_event.rb +27 -1
  59. data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +24 -1
  60. data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +24 -1
  61. data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +24 -1
  62. data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +24 -1
  63. data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +24 -1
  64. data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +24 -1
  65. data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +24 -1
  66. data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +24 -1
  67. data/lib/orb/models/subscription_created_webhook_event.rb +24 -1
  68. data/lib/orb/models/subscription_edited_webhook_event.rb +24 -1
  69. data/lib/orb/models/subscription_ended_webhook_event.rb +24 -1
  70. data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +24 -1
  71. data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +24 -1
  72. data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +25 -1
  73. data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +24 -1
  74. data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +25 -1
  75. data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +24 -1
  76. data/lib/orb/models/subscription_plan_changed_webhook_event.rb +24 -1
  77. data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +25 -1
  78. data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +24 -1
  79. data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +24 -1
  80. data/lib/orb/models/subscription_started_webhook_event.rb +24 -1
  81. data/lib/orb/models/subscription_trial_ended_webhook_event.rb +24 -1
  82. data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +24 -1
  83. data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +27 -1
  84. data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +27 -1
  85. data/lib/orb/models/webhooks/backfill_reflected_standard_webhook_event.rb +206 -0
  86. data/lib/orb/models/webhooks/backfill_reverted_standard_webhook_event.rb +206 -0
  87. data/lib/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rb +131 -0
  88. data/lib/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rb +537 -0
  89. data/lib/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rb +531 -0
  90. data/lib/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rb +188 -0
  91. data/lib/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rb +183 -0
  92. data/lib/orb/models/webhooks/credit_note_issued_standard_webhook_event.rb +90 -0
  93. data/lib/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rb +92 -0
  94. data/lib/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rb +198 -0
  95. data/lib/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rb +193 -0
  96. data/lib/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rb +240 -0
  97. data/lib/orb/models/webhooks/customer_created_standard_webhook_event.rb +106 -0
  98. data/lib/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rb +597 -0
  99. data/lib/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rb +603 -0
  100. data/lib/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rb +597 -0
  101. data/lib/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rb +509 -0
  102. data/lib/orb/models/webhooks/customer_edited_standard_webhook_event.rb +371 -0
  103. data/lib/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rb +130 -0
  104. data/lib/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rb +124 -0
  105. data/lib/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rb +134 -0
  106. data/lib/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rb +94 -0
  107. data/lib/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rb +972 -0
  108. data/lib/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rb +966 -0
  109. data/lib/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rb +367 -0
  110. data/lib/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rb +113 -0
  111. data/lib/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rb +101 -0
  112. data/lib/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rb +101 -0
  113. data/lib/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rb +95 -0
  114. data/lib/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rb +994 -0
  115. data/lib/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rb +988 -0
  116. data/lib/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rb +992 -0
  117. data/lib/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rb +942 -0
  118. data/lib/orb/models/webhooks/invoice_edited_standard_webhook_event.rb +1365 -0
  119. data/lib/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rb +151 -0
  120. data/lib/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rb +885 -0
  121. data/lib/orb/models/webhooks/invoice_issued_standard_webhook_event.rb +884 -0
  122. data/lib/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rb +887 -0
  123. data/lib/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rb +899 -0
  124. data/lib/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rb +876 -0
  125. data/lib/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rb +899 -0
  126. data/lib/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rb +893 -0
  127. data/lib/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rb +908 -0
  128. data/lib/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rb +890 -0
  129. data/lib/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rb +892 -0
  130. data/lib/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rb +875 -0
  131. data/lib/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rb +125 -0
  132. data/lib/orb/models/webhooks/payment_method_created_standard_webhook_event.rb +184 -0
  133. data/lib/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rb +184 -0
  134. data/lib/orb/models/webhooks/plan_created_standard_webhook_event.rb +119 -0
  135. data/lib/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rb +139 -0
  136. data/lib/orb/models/webhooks/plan_edited_standard_webhook_event.rb +159 -0
  137. data/lib/orb/models/webhooks/plan_version_created_standard_webhook_event.rb +138 -0
  138. data/lib/orb/models/webhooks/price_edited_standard_webhook_event.rb +132 -0
  139. data/lib/orb/models/webhooks/resource_event_test_standard_webhook_event.rb +92 -0
  140. data/lib/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rb +972 -0
  141. data/lib/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rb +967 -0
  142. data/lib/orb/models/webhooks/standard_unwrap_standard_params.rb +16 -0
  143. data/lib/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rb +322 -0
  144. data/lib/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rb +316 -0
  145. data/lib/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rb +667 -0
  146. data/lib/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rb +237 -0
  147. data/lib/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rb +237 -0
  148. data/lib/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rb +692 -0
  149. data/lib/orb/models/webhooks/subscription_created_standard_webhook_event.rb +221 -0
  150. data/lib/orb/models/webhooks/subscription_edited_standard_webhook_event.rb +273 -0
  151. data/lib/orb/models/webhooks/subscription_ended_standard_webhook_event.rb +219 -0
  152. data/lib/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rb +255 -0
  153. data/lib/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rb +693 -0
  154. data/lib/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rb +222 -0
  155. data/lib/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rb +244 -0
  156. data/lib/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rb +687 -0
  157. data/lib/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rb +249 -0
  158. data/lib/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rb +233 -0
  159. data/lib/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rb +250 -0
  160. data/lib/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rb +248 -0
  161. data/lib/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rb +693 -0
  162. data/lib/orb/models/webhooks/subscription_started_standard_webhook_event.rb +221 -0
  163. data/lib/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rb +222 -0
  164. data/lib/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rb +700 -0
  165. data/lib/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rb +270 -0
  166. data/lib/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rb +264 -0
  167. data/lib/orb/models/webhooks/unwrap_standard_webhook_event.rb +258 -0
  168. data/lib/orb/models.rb +2 -0
  169. data/lib/orb/resources/webhooks/standard.rb +24 -0
  170. data/lib/orb/resources/webhooks.rb +4 -0
  171. data/lib/orb/version.rb +1 -1
  172. data/lib/orb.rb +84 -0
  173. data/rbi/orb/models/backfill_reflected_webhook_event.rbi +47 -0
  174. data/rbi/orb/models/backfill_reverted_webhook_event.rbi +47 -0
  175. data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +49 -0
  176. data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +52 -0
  177. data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +52 -0
  178. data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +52 -0
  179. data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +52 -0
  180. data/rbi/orb/models/credit_note_issued_webhook_event.rbi +47 -0
  181. data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +49 -0
  182. data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +52 -0
  183. data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +52 -0
  184. data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +52 -0
  185. data/rbi/orb/models/customer_created_webhook_event.rbi +47 -0
  186. data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +52 -0
  187. data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +52 -0
  188. data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +52 -0
  189. data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +52 -0
  190. data/rbi/orb/models/customer_edited_webhook_event.rbi +47 -0
  191. data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +52 -0
  192. data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +52 -0
  193. data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +49 -0
  194. data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +52 -0
  195. data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +52 -0
  196. data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +52 -0
  197. data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +52 -0
  198. data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +52 -0
  199. data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +52 -0
  200. data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +52 -0
  201. data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +52 -0
  202. data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +52 -0
  203. data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +52 -0
  204. data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +52 -0
  205. data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +52 -0
  206. data/rbi/orb/models/invoice_edited_webhook_event.rbi +44 -0
  207. data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +52 -0
  208. data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +47 -0
  209. data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +49 -0
  210. data/rbi/orb/models/invoice_issued_webhook_event.rbi +44 -0
  211. data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +52 -0
  212. data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +52 -0
  213. data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +49 -0
  214. data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +52 -0
  215. data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +52 -0
  216. data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +47 -0
  217. data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +49 -0
  218. data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +49 -0
  219. data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +52 -0
  220. data/rbi/orb/models/payment_method_created_webhook_event.rbi +49 -0
  221. data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +49 -0
  222. data/rbi/orb/models/plan_created_webhook_event.rbi +42 -0
  223. data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +49 -0
  224. data/rbi/orb/models/plan_edited_webhook_event.rbi +42 -0
  225. data/rbi/orb/models/plan_version_created_webhook_event.rbi +47 -0
  226. data/rbi/orb/models/price_edited_webhook_event.rbi +42 -0
  227. data/rbi/orb/models/resource_event_test_webhook_event.rbi +47 -0
  228. data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +52 -0
  229. data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +52 -0
  230. data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +52 -0
  231. data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +52 -0
  232. data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +52 -0
  233. data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +52 -0
  234. data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +52 -0
  235. data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +52 -0
  236. data/rbi/orb/models/subscription_created_webhook_event.rbi +49 -0
  237. data/rbi/orb/models/subscription_edited_webhook_event.rbi +47 -0
  238. data/rbi/orb/models/subscription_ended_webhook_event.rbi +47 -0
  239. data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +52 -0
  240. data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +52 -0
  241. data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +52 -0
  242. data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +52 -0
  243. data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +52 -0
  244. data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +52 -0
  245. data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +52 -0
  246. data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +52 -0
  247. data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +52 -0
  248. data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +52 -0
  249. data/rbi/orb/models/subscription_started_webhook_event.rbi +49 -0
  250. data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +49 -0
  251. data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +52 -0
  252. data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +52 -0
  253. data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +52 -0
  254. data/rbi/orb/models/webhooks/backfill_reflected_standard_webhook_event.rbi +349 -0
  255. data/rbi/orb/models/webhooks/backfill_reverted_standard_webhook_event.rbi +347 -0
  256. data/rbi/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rbi +273 -0
  257. data/rbi/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbi +1106 -0
  258. data/rbi/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbi +1095 -0
  259. data/rbi/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rbi +377 -0
  260. data/rbi/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rbi +366 -0
  261. data/rbi/orb/models/webhooks/credit_note_issued_standard_webhook_event.rbi +166 -0
  262. data/rbi/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rbi +166 -0
  263. data/rbi/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rbi +403 -0
  264. data/rbi/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rbi +392 -0
  265. data/rbi/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rbi +493 -0
  266. data/rbi/orb/models/webhooks/customer_created_standard_webhook_event.rbi +198 -0
  267. data/rbi/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rbi +1151 -0
  268. data/rbi/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rbi +1158 -0
  269. data/rbi/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rbi +1151 -0
  270. data/rbi/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbi +1044 -0
  271. data/rbi/orb/models/webhooks/customer_edited_standard_webhook_event.rbi +678 -0
  272. data/rbi/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rbi +236 -0
  273. data/rbi/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rbi +230 -0
  274. data/rbi/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rbi +275 -0
  275. data/rbi/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rbi +192 -0
  276. data/rbi/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbi +1705 -0
  277. data/rbi/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbi +1694 -0
  278. data/rbi/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rbi +670 -0
  279. data/rbi/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rbi +210 -0
  280. data/rbi/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rbi +195 -0
  281. data/rbi/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rbi +195 -0
  282. data/rbi/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rbi +188 -0
  283. data/rbi/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbi +1713 -0
  284. data/rbi/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbi +1708 -0
  285. data/rbi/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbi +1713 -0
  286. data/rbi/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbi +1628 -0
  287. data/rbi/orb/models/webhooks/invoice_edited_standard_webhook_event.rbi +2337 -0
  288. data/rbi/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rbi +324 -0
  289. data/rbi/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbi +1529 -0
  290. data/rbi/orb/models/webhooks/invoice_issued_standard_webhook_event.rbi +1529 -0
  291. data/rbi/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbi +1534 -0
  292. data/rbi/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbi +1549 -0
  293. data/rbi/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbi +1494 -0
  294. data/rbi/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbi +1554 -0
  295. data/rbi/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbi +1547 -0
  296. data/rbi/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbi +1563 -0
  297. data/rbi/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbi +1542 -0
  298. data/rbi/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbi +1544 -0
  299. data/rbi/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbi +1494 -0
  300. data/rbi/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rbi +233 -0
  301. data/rbi/orb/models/webhooks/payment_method_created_standard_webhook_event.rbi +331 -0
  302. data/rbi/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rbi +331 -0
  303. data/rbi/orb/models/webhooks/plan_created_standard_webhook_event.rbi +216 -0
  304. data/rbi/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rbi +277 -0
  305. data/rbi/orb/models/webhooks/plan_edited_standard_webhook_event.rbi +337 -0
  306. data/rbi/orb/models/webhooks/plan_version_created_standard_webhook_event.rbi +271 -0
  307. data/rbi/orb/models/webhooks/price_edited_standard_webhook_event.rbi +311 -0
  308. data/rbi/orb/models/webhooks/resource_event_test_standard_webhook_event.rbi +191 -0
  309. data/rbi/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbi +1705 -0
  310. data/rbi/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbi +1694 -0
  311. data/rbi/orb/models/webhooks/standard_unwrap_standard_params.rbi +32 -0
  312. data/rbi/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbi +609 -0
  313. data/rbi/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbi +598 -0
  314. data/rbi/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rbi +1302 -0
  315. data/rbi/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbi +433 -0
  316. data/rbi/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbi +435 -0
  317. data/rbi/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbi +1298 -0
  318. data/rbi/orb/models/webhooks/subscription_created_standard_webhook_event.rbi +398 -0
  319. data/rbi/orb/models/webhooks/subscription_edited_standard_webhook_event.rbi +520 -0
  320. data/rbi/orb/models/webhooks/subscription_ended_standard_webhook_event.rbi +398 -0
  321. data/rbi/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbi +458 -0
  322. data/rbi/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rbi +1321 -0
  323. data/rbi/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rbi +428 -0
  324. data/rbi/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rbi +477 -0
  325. data/rbi/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rbi +1319 -0
  326. data/rbi/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbi +453 -0
  327. data/rbi/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbi +433 -0
  328. data/rbi/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbi +457 -0
  329. data/rbi/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbi +457 -0
  330. data/rbi/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbi +1299 -0
  331. data/rbi/orb/models/webhooks/subscription_started_standard_webhook_event.rbi +398 -0
  332. data/rbi/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbi +398 -0
  333. data/rbi/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbi +1305 -0
  334. data/rbi/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rbi +516 -0
  335. data/rbi/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbi +505 -0
  336. data/rbi/orb/models/webhooks/unwrap_standard_webhook_event.rbi +107 -0
  337. data/rbi/orb/models.rbi +2 -0
  338. data/rbi/orb/resources/webhooks/standard.rbi +107 -0
  339. data/rbi/orb/resources/webhooks.rbi +3 -0
  340. data/sig/orb/models/backfill_reflected_webhook_event.rbs +16 -0
  341. data/sig/orb/models/backfill_reverted_webhook_event.rbs +16 -0
  342. data/sig/orb/models/billable_metric_edited_webhook_event.rbs +16 -0
  343. data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +16 -0
  344. data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +16 -0
  345. data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +16 -0
  346. data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +16 -0
  347. data/sig/orb/models/credit_note_issued_webhook_event.rbs +16 -0
  348. data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +16 -0
  349. data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +16 -0
  350. data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +16 -0
  351. data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +16 -0
  352. data/sig/orb/models/customer_created_webhook_event.rbs +16 -0
  353. data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +16 -0
  354. data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +16 -0
  355. data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +16 -0
  356. data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +16 -0
  357. data/sig/orb/models/customer_edited_webhook_event.rbs +16 -0
  358. data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +16 -0
  359. data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +16 -0
  360. data/sig/orb/models/event_unmatched_event_webhook_event.rbs +16 -0
  361. data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +16 -0
  362. data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +16 -0
  363. data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +16 -0
  364. data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +16 -0
  365. data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +16 -0
  366. data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +16 -0
  367. data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +16 -0
  368. data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +16 -0
  369. data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +16 -0
  370. data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +16 -0
  371. data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +16 -0
  372. data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +16 -0
  373. data/sig/orb/models/invoice_edited_webhook_event.rbs +16 -0
  374. data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +16 -0
  375. data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +16 -0
  376. data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +16 -0
  377. data/sig/orb/models/invoice_issued_webhook_event.rbs +16 -0
  378. data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +16 -0
  379. data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +16 -0
  380. data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +16 -0
  381. data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +16 -0
  382. data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +16 -0
  383. data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +16 -0
  384. data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +16 -0
  385. data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +16 -0
  386. data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +16 -0
  387. data/sig/orb/models/payment_method_created_webhook_event.rbs +16 -0
  388. data/sig/orb/models/payment_method_deleted_webhook_event.rbs +16 -0
  389. data/sig/orb/models/plan_created_webhook_event.rbs +16 -0
  390. data/sig/orb/models/plan_default_version_set_webhook_event.rbs +16 -0
  391. data/sig/orb/models/plan_edited_webhook_event.rbs +16 -0
  392. data/sig/orb/models/plan_version_created_webhook_event.rbs +16 -0
  393. data/sig/orb/models/price_edited_webhook_event.rbs +16 -0
  394. data/sig/orb/models/resource_event_test_webhook_event.rbs +16 -0
  395. data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +16 -0
  396. data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +16 -0
  397. data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +16 -0
  398. data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +16 -0
  399. data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +16 -0
  400. data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +16 -0
  401. data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +16 -0
  402. data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +16 -0
  403. data/sig/orb/models/subscription_created_webhook_event.rbs +16 -0
  404. data/sig/orb/models/subscription_edited_webhook_event.rbs +16 -0
  405. data/sig/orb/models/subscription_ended_webhook_event.rbs +16 -0
  406. data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +16 -0
  407. data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +16 -0
  408. data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +16 -0
  409. data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +16 -0
  410. data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +16 -0
  411. data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +16 -0
  412. data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +16 -0
  413. data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +16 -0
  414. data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +16 -0
  415. data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +16 -0
  416. data/sig/orb/models/subscription_started_webhook_event.rbs +16 -0
  417. data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +16 -0
  418. data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +16 -0
  419. data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +16 -0
  420. data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +16 -0
  421. data/sig/orb/models/webhooks/backfill_reflected_standard_webhook_event.rbs +148 -0
  422. data/sig/orb/models/webhooks/backfill_reverted_standard_webhook_event.rbs +148 -0
  423. data/sig/orb/models/webhooks/billable_metric_edited_standard_webhook_event.rbs +112 -0
  424. data/sig/orb/models/webhooks/credit_block_accounting_sync_failed_standard_webhook_event.rbs +435 -0
  425. data/sig/orb/models/webhooks/credit_block_accounting_sync_succeeded_standard_webhook_event.rbs +430 -0
  426. data/sig/orb/models/webhooks/credit_note_accounting_sync_failed_standard_webhook_event.rbs +165 -0
  427. data/sig/orb/models/webhooks/credit_note_accounting_sync_succeeded_standard_webhook_event.rbs +160 -0
  428. data/sig/orb/models/webhooks/credit_note_issued_standard_webhook_event.rbs +68 -0
  429. data/sig/orb/models/webhooks/credit_note_marked_as_void_standard_webhook_event.rbs +68 -0
  430. data/sig/orb/models/webhooks/customer_accounting_sync_failed_standard_webhook_event.rbs +160 -0
  431. data/sig/orb/models/webhooks/customer_accounting_sync_succeeded_standard_webhook_event.rbs +155 -0
  432. data/sig/orb/models/webhooks/customer_balance_transaction_created_standard_webhook_event.rbs +189 -0
  433. data/sig/orb/models/webhooks/customer_created_standard_webhook_event.rbs +68 -0
  434. data/sig/orb/models/webhooks/customer_credit_balance_depleted_standard_webhook_event.rbs +396 -0
  435. data/sig/orb/models/webhooks/customer_credit_balance_dropped_standard_webhook_event.rbs +401 -0
  436. data/sig/orb/models/webhooks/customer_credit_balance_recovered_standard_webhook_event.rbs +396 -0
  437. data/sig/orb/models/webhooks/customer_credit_ledger_incremented_standard_webhook_event.rbs +386 -0
  438. data/sig/orb/models/webhooks/customer_edited_standard_webhook_event.rbs +157 -0
  439. data/sig/orb/models/webhooks/data_exports_transfer_error_standard_webhook_event.rbs +110 -0
  440. data/sig/orb/models/webhooks/data_exports_transfer_success_standard_webhook_event.rbs +105 -0
  441. data/sig/orb/models/webhooks/event_unmatched_event_standard_webhook_event.rbs +122 -0
  442. data/sig/orb/models/webhooks/ingestion_unmatched_customer_ids_standard_webhook_event.rbs +73 -0
  443. data/sig/orb/models/webhooks/invoice_accounting_sync_failed_standard_webhook_event.rbs +614 -0
  444. data/sig/orb/models/webhooks/invoice_accounting_sync_succeeded_standard_webhook_event.rbs +609 -0
  445. data/sig/orb/models/webhooks/invoice_automation_schedule_step_executed_standard_webhook_event.rbs +331 -0
  446. data/sig/orb/models/webhooks/invoice_cost_data_exported_standard_webhook_event.rbs +91 -0
  447. data/sig/orb/models/webhooks/invoice_due_date_recalculation_canceled_standard_webhook_event.rbs +75 -0
  448. data/sig/orb/models/webhooks/invoice_due_date_recalculation_completed_standard_webhook_event.rbs +75 -0
  449. data/sig/orb/models/webhooks/invoice_due_date_recalculation_started_standard_webhook_event.rbs +73 -0
  450. data/sig/orb/models/webhooks/invoice_dunning_schedule_created_standard_webhook_event.rbs +638 -0
  451. data/sig/orb/models/webhooks/invoice_dunning_schedule_ended_standard_webhook_event.rbs +633 -0
  452. data/sig/orb/models/webhooks/invoice_dunning_schedule_reset_standard_webhook_event.rbs +623 -0
  453. data/sig/orb/models/webhooks/invoice_dunning_schedule_step_executed_standard_webhook_event.rbs +586 -0
  454. data/sig/orb/models/webhooks/invoice_edited_standard_webhook_event.rbs +859 -0
  455. data/sig/orb/models/webhooks/invoice_invoice_date_elapsed_standard_webhook_event.rbs +129 -0
  456. data/sig/orb/models/webhooks/invoice_issue_failed_standard_webhook_event.rbs +527 -0
  457. data/sig/orb/models/webhooks/invoice_issued_standard_webhook_event.rbs +527 -0
  458. data/sig/orb/models/webhooks/invoice_issued_summary_standard_webhook_event.rbs +527 -0
  459. data/sig/orb/models/webhooks/invoice_manually_marked_as_paid_standard_webhook_event.rbs +540 -0
  460. data/sig/orb/models/webhooks/invoice_manually_marked_as_void_standard_webhook_event.rbs +517 -0
  461. data/sig/orb/models/webhooks/invoice_payment_failed_standard_webhook_event.rbs +544 -0
  462. data/sig/orb/models/webhooks/invoice_payment_processing_standard_webhook_event.rbs +538 -0
  463. data/sig/orb/models/webhooks/invoice_payment_succeeded_standard_webhook_event.rbs +549 -0
  464. data/sig/orb/models/webhooks/invoice_sync_failed_standard_webhook_event.rbs +536 -0
  465. data/sig/orb/models/webhooks/invoice_sync_succeeded_standard_webhook_event.rbs +536 -0
  466. data/sig/orb/models/webhooks/invoice_undo_mark_as_paid_standard_webhook_event.rbs +517 -0
  467. data/sig/orb/models/webhooks/metric_events_dropped_by_watermark_standard_webhook_event.rbs +100 -0
  468. data/sig/orb/models/webhooks/payment_method_created_standard_webhook_event.rbs +130 -0
  469. data/sig/orb/models/webhooks/payment_method_deleted_standard_webhook_event.rbs +130 -0
  470. data/sig/orb/models/webhooks/plan_created_standard_webhook_event.rbs +90 -0
  471. data/sig/orb/models/webhooks/plan_default_version_set_standard_webhook_event.rbs +112 -0
  472. data/sig/orb/models/webhooks/plan_edited_standard_webhook_event.rbs +134 -0
  473. data/sig/orb/models/webhooks/plan_version_created_standard_webhook_event.rbs +109 -0
  474. data/sig/orb/models/webhooks/price_edited_standard_webhook_event.rbs +95 -0
  475. data/sig/orb/models/webhooks/resource_event_test_standard_webhook_event.rbs +75 -0
  476. data/sig/orb/models/webhooks/sales_order_accounting_sync_failed_standard_webhook_event.rbs +614 -0
  477. data/sig/orb/models/webhooks/sales_order_accounting_sync_succeeded_standard_webhook_event.rbs +609 -0
  478. data/sig/orb/models/webhooks/standard_unwrap_standard_params.rbs +17 -0
  479. data/sig/orb/models/webhooks/subscription_accounting_sync_failed_standard_webhook_event.rbs +256 -0
  480. data/sig/orb/models/webhooks/subscription_accounting_sync_succeeded_standard_webhook_event.rbs +251 -0
  481. data/sig/orb/models/webhooks/subscription_alert_disabled_standard_webhook_event.rbs +466 -0
  482. data/sig/orb/models/webhooks/subscription_cancellation_scheduled_standard_webhook_event.rbs +169 -0
  483. data/sig/orb/models/webhooks/subscription_cancellation_unscheduled_standard_webhook_event.rbs +169 -0
  484. data/sig/orb/models/webhooks/subscription_cost_exceeded_standard_webhook_event.rbs +475 -0
  485. data/sig/orb/models/webhooks/subscription_created_standard_webhook_event.rbs +159 -0
  486. data/sig/orb/models/webhooks/subscription_edited_standard_webhook_event.rbs +218 -0
  487. data/sig/orb/models/webhooks/subscription_ended_standard_webhook_event.rbs +159 -0
  488. data/sig/orb/models/webhooks/subscription_fixed_fee_quantity_updated_standard_webhook_event.rbs +191 -0
  489. data/sig/orb/models/webhooks/subscription_grouped_cost_exceeded_standard_webhook_event.rbs +487 -0
  490. data/sig/orb/models/webhooks/subscription_invoicing_threshold_exceeded_standard_webhook_event.rbs +176 -0
  491. data/sig/orb/models/webhooks/subscription_license_allocation_reset_standard_webhook_event.rbs +198 -0
  492. data/sig/orb/models/webhooks/subscription_license_balance_threshold_reached_standard_webhook_event.rbs +482 -0
  493. data/sig/orb/models/webhooks/subscription_plan_change_scheduled_standard_webhook_event.rbs +182 -0
  494. data/sig/orb/models/webhooks/subscription_plan_changed_standard_webhook_event.rbs +169 -0
  495. data/sig/orb/models/webhooks/subscription_plan_version_change_scheduled_standard_webhook_event.rbs +186 -0
  496. data/sig/orb/models/webhooks/subscription_plan_version_changed_standard_webhook_event.rbs +186 -0
  497. data/sig/orb/models/webhooks/subscription_spend_exceeded_standard_webhook_event.rbs +475 -0
  498. data/sig/orb/models/webhooks/subscription_started_standard_webhook_event.rbs +159 -0
  499. data/sig/orb/models/webhooks/subscription_trial_ended_standard_webhook_event.rbs +159 -0
  500. data/sig/orb/models/webhooks/subscription_usage_exceeded_standard_webhook_event.rbs +480 -0
  501. data/sig/orb/models/webhooks/transaction_accounting_sync_failed_standard_webhook_event.rbs +223 -0
  502. data/sig/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbs +218 -0
  503. data/sig/orb/models/webhooks/unwrap_standard_webhook_event.rbs +94 -0
  504. data/sig/orb/models.rbs +2 -0
  505. data/sig/orb/resources/webhooks/standard.rbs +93 -0
  506. data/sig/orb/resources/webhooks.rbs +2 -0
  507. metadata +253 -1
@@ -0,0 +1,1529 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ module Webhooks
6
+ class InvoiceIssueFailedStandardWebhookEvent < Orb::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent,
11
+ Orb::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # The ID of this webhook event.
16
+ sig { returns(String) }
17
+ attr_accessor :id
18
+
19
+ # The time at which this event was created, to the second.
20
+ sig { returns(Time) }
21
+ attr_accessor :created_at
22
+
23
+ # #InvoiceApiResourceWithoutLineItems
24
+ sig do
25
+ returns(
26
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice
27
+ )
28
+ end
29
+ attr_reader :invoice
30
+
31
+ sig do
32
+ params(
33
+ invoice:
34
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::OrHash
35
+ ).void
36
+ end
37
+ attr_writer :invoice
38
+
39
+ # The serialization style this payload was rendered in, as configured on the
40
+ # endpoint.
41
+ sig do
42
+ returns(
43
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::PayloadStyle::TaggedSymbol
44
+ )
45
+ end
46
+ attr_accessor :payload_style
47
+
48
+ sig do
49
+ returns(
50
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Properties
51
+ )
52
+ end
53
+ attr_reader :properties
54
+
55
+ sig do
56
+ params(
57
+ properties:
58
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Properties::OrHash
59
+ ).void
60
+ end
61
+ attr_writer :properties
62
+
63
+ # The event this payload describes.
64
+ sig do
65
+ returns(
66
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Type::TaggedSymbol
67
+ )
68
+ end
69
+ attr_accessor :type
70
+
71
+ # Issued when an invoice issue attempt fails.
72
+ sig do
73
+ params(
74
+ id: String,
75
+ created_at: Time,
76
+ invoice:
77
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::OrHash,
78
+ payload_style:
79
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::PayloadStyle::OrSymbol,
80
+ properties:
81
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Properties::OrHash,
82
+ type:
83
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Type::OrSymbol
84
+ ).returns(T.attached_class)
85
+ end
86
+ def self.new(
87
+ # The ID of this webhook event.
88
+ id:,
89
+ # The time at which this event was created, to the second.
90
+ created_at:,
91
+ # #InvoiceApiResourceWithoutLineItems
92
+ invoice:,
93
+ # The serialization style this payload was rendered in, as configured on the
94
+ # endpoint.
95
+ payload_style:,
96
+ properties:,
97
+ # The event this payload describes.
98
+ type:
99
+ )
100
+ end
101
+
102
+ sig do
103
+ override.returns(
104
+ {
105
+ id: String,
106
+ created_at: Time,
107
+ invoice:
108
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice,
109
+ payload_style:
110
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::PayloadStyle::TaggedSymbol,
111
+ properties:
112
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Properties,
113
+ type:
114
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Type::TaggedSymbol
115
+ }
116
+ )
117
+ end
118
+ def to_hash
119
+ end
120
+
121
+ class Invoice < Orb::Internal::Type::BaseModel
122
+ OrHash =
123
+ T.type_alias do
124
+ T.any(
125
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice,
126
+ Orb::Internal::AnyHash
127
+ )
128
+ end
129
+
130
+ sig { returns(String) }
131
+ attr_accessor :id
132
+
133
+ # This is the final amount required to be charged to the customer and reflects the
134
+ # application of the customer balance to the `total` of the invoice.
135
+ sig { returns(String) }
136
+ attr_accessor :amount_due
137
+
138
+ sig do
139
+ returns(
140
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::AutoCollection
141
+ )
142
+ end
143
+ attr_reader :auto_collection
144
+
145
+ sig do
146
+ params(
147
+ auto_collection:
148
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::AutoCollection::OrHash
149
+ ).void
150
+ end
151
+ attr_writer :auto_collection
152
+
153
+ sig { returns(T.nilable(Orb::Address)) }
154
+ attr_reader :billing_address
155
+
156
+ sig { params(billing_address: T.nilable(Orb::Address::OrHash)).void }
157
+ attr_writer :billing_address
158
+
159
+ # The creation time of the resource in Orb.
160
+ sig { returns(Time) }
161
+ attr_accessor :created_at
162
+
163
+ # A list of credit notes associated with the invoice
164
+ sig do
165
+ returns(
166
+ T::Array[
167
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CreditNote
168
+ ]
169
+ )
170
+ end
171
+ attr_accessor :credit_notes
172
+
173
+ # An ISO 4217 currency string or `credits`
174
+ sig { returns(String) }
175
+ attr_accessor :currency
176
+
177
+ sig { returns(Orb::CustomerMinified) }
178
+ attr_reader :customer
179
+
180
+ sig { params(customer: Orb::CustomerMinified::OrHash).void }
181
+ attr_writer :customer
182
+
183
+ sig do
184
+ returns(
185
+ T::Array[
186
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction
187
+ ]
188
+ )
189
+ end
190
+ attr_accessor :customer_balance_transactions
191
+
192
+ # Tax IDs are commonly required to be displayed on customer invoices, which are
193
+ # added to the headers of invoices.
194
+ #
195
+ # ### Supported Tax ID Countries and Types
196
+ #
197
+ # | Country | Type | Description |
198
+ # | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
199
+ # | Albania | `al_tin` | Albania Tax Identification Number |
200
+ # | Andorra | `ad_nrt` | Andorran NRT Number |
201
+ # | Angola | `ao_tin` | Angola Tax Identification Number |
202
+ # | Argentina | `ar_cuit` | Argentinian Tax ID Number |
203
+ # | Armenia | `am_tin` | Armenia Tax Identification Number |
204
+ # | Aruba | `aw_tin` | Aruba Tax Identification Number |
205
+ # | Australia | `au_abn` | Australian Business Number (AU ABN) |
206
+ # | Australia | `au_arn` | Australian Taxation Office Reference Number |
207
+ # | Austria | `eu_vat` | European VAT Number |
208
+ # | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number |
209
+ # | Bahamas | `bs_tin` | Bahamas Tax Identification Number |
210
+ # | Bahrain | `bh_vat` | Bahraini VAT Number |
211
+ # | Bangladesh | `bd_bin` | Bangladesh Business Identification Number |
212
+ # | Barbados | `bb_tin` | Barbados Tax Identification Number |
213
+ # | Belarus | `by_tin` | Belarus TIN Number |
214
+ # | Belgium | `eu_vat` | European VAT Number |
215
+ # | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) |
216
+ # | Bolivia | `bo_tin` | Bolivian Tax ID |
217
+ # | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number |
218
+ # | Brazil | `br_cnpj` | Brazilian CNPJ Number |
219
+ # | Brazil | `br_cpf` | Brazilian CPF Number |
220
+ # | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
221
+ # | Bulgaria | `eu_vat` | European VAT Number |
222
+ # | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) |
223
+ # | Cambodia | `kh_tin` | Cambodia Tax Identification Number |
224
+ # | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) |
225
+ # | Canada | `ca_bn` | Canadian BN |
226
+ # | Canada | `ca_gst_hst` | Canadian GST/HST Number |
227
+ # | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
228
+ # | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
229
+ # | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
230
+ # | Canada | `ca_qst` | Canadian QST Number (Québec) |
231
+ # | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) |
232
+ # | Chile | `cl_tin` | Chilean TIN |
233
+ # | China | `cn_tin` | Chinese Tax ID |
234
+ # | Colombia | `co_nit` | Colombian NIT Number |
235
+ # | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) |
236
+ # | Costa Rica | `cr_tin` | Costa Rican Tax ID |
237
+ # | Croatia | `eu_vat` | European VAT Number |
238
+ # | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) |
239
+ # | Cyprus | `eu_vat` | European VAT Number |
240
+ # | Czech Republic | `eu_vat` | European VAT Number |
241
+ # | Denmark | `eu_vat` | European VAT Number |
242
+ # | Dominican Republic | `do_rcn` | Dominican RCN Number |
243
+ # | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
244
+ # | Egypt | `eg_tin` | Egyptian Tax Identification Number |
245
+ # | El Salvador | `sv_nit` | El Salvadorian NIT Number |
246
+ # | Estonia | `eu_vat` | European VAT Number |
247
+ # | Ethiopia | `et_tin` | Ethiopia Tax Identification Number |
248
+ # | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
249
+ # | Faroe Islands | `fo_vat` | Faroe Islands VAT Number |
250
+ # | Finland | `eu_vat` | European VAT Number |
251
+ # | France | `eu_vat` | European VAT Number |
252
+ # | Georgia | `ge_vat` | Georgian VAT |
253
+ # | Germany | `de_stn` | German Tax Number (Steuernummer) |
254
+ # | Germany | `eu_vat` | European VAT Number |
255
+ # | Gibraltar | `gi_tin` | Gibraltar Tax Identification Number |
256
+ # | Greece | `eu_vat` | European VAT Number |
257
+ # | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) |
258
+ # | Hong Kong | `hk_br` | Hong Kong BR Number |
259
+ # | Hungary | `eu_vat` | European VAT Number |
260
+ # | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
261
+ # | Iceland | `is_vat` | Icelandic VAT |
262
+ # | India | `in_gst` | Indian GST Number |
263
+ # | Indonesia | `id_npwp` | Indonesian NPWP Number |
264
+ # | Ireland | `eu_vat` | European VAT Number |
265
+ # | Israel | `il_vat` | Israel VAT |
266
+ # | Italy | `eu_vat` | European VAT Number |
267
+ # | Italy | `it_cf` | Italian Codice Fiscale Number |
268
+ # | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
269
+ # | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
270
+ # | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
271
+ # | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
272
+ # | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
273
+ # | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number |
274
+ # | Laos | `la_tin` | Laos Tax Identification Number |
275
+ # | Latvia | `eu_vat` | European VAT Number |
276
+ # | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
277
+ # | Liechtenstein | `li_vat` | Liechtenstein VAT Number |
278
+ # | Lithuania | `eu_vat` | European VAT Number |
279
+ # | Luxembourg | `eu_vat` | European VAT Number |
280
+ # | Malaysia | `my_frp` | Malaysian FRP Number |
281
+ # | Malaysia | `my_itn` | Malaysian ITN |
282
+ # | Malaysia | `my_sst` | Malaysian SST Number |
283
+ # | Malta | `eu_vat` | European VAT Number |
284
+ # | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) |
285
+ # | Mexico | `mx_rfc` | Mexican RFC Number |
286
+ # | Moldova | `md_vat` | Moldova VAT Number |
287
+ # | Montenegro | `me_pib` | Montenegro PIB Number |
288
+ # | Morocco | `ma_vat` | Morocco VAT Number |
289
+ # | Nepal | `np_pan` | Nepal PAN Number |
290
+ # | Netherlands | `eu_vat` | European VAT Number |
291
+ # | New Zealand | `nz_gst` | New Zealand GST Number |
292
+ # | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
293
+ # | North Macedonia | `mk_vat` | North Macedonia VAT Number |
294
+ # | Northern Ireland | `eu_vat` | Northern Ireland VAT Number |
295
+ # | Norway | `no_vat` | Norwegian VAT Number |
296
+ # | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
297
+ # | Oman | `om_vat` | Omani VAT Number |
298
+ # | Paraguay | `py_ruc` | Paraguayan RUC Number |
299
+ # | Peru | `pe_ruc` | Peruvian RUC Number |
300
+ # | Philippines | `ph_tin` | Philippines Tax Identification Number |
301
+ # | Poland | `eu_vat` | European VAT Number |
302
+ # | Poland | `pl_nip` | Polish Tax ID Number |
303
+ # | Portugal | `eu_vat` | European VAT Number |
304
+ # | Romania | `eu_vat` | European VAT Number |
305
+ # | Romania | `ro_tin` | Romanian Tax ID Number |
306
+ # | Russia | `ru_inn` | Russian INN |
307
+ # | Russia | `ru_kpp` | Russian KPP |
308
+ # | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
309
+ # | Senegal | `sn_ninea` | Senegal NINEA Number |
310
+ # | Serbia | `rs_pib` | Serbian PIB Number |
311
+ # | Singapore | `sg_gst` | Singaporean GST |
312
+ # | Singapore | `sg_uen` | Singaporean UEN |
313
+ # | Slovakia | `eu_vat` | European VAT Number |
314
+ # | Slovenia | `eu_vat` | European VAT Number |
315
+ # | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
316
+ # | South Africa | `za_vat` | South African VAT Number |
317
+ # | South Korea | `kr_brn` | Korean BRN |
318
+ # | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
319
+ # | Spain | `eu_vat` | European VAT Number |
320
+ # | Sri Lanka | `lk_vat` | Sri Lanka VAT Number |
321
+ # | Suriname | `sr_fin` | Suriname FIN Number |
322
+ # | Sweden | `eu_vat` | European VAT Number |
323
+ # | Switzerland | `ch_uid` | Switzerland UID Number |
324
+ # | Switzerland | `ch_vat` | Switzerland VAT Number |
325
+ # | Taiwan | `tw_vat` | Taiwanese VAT |
326
+ # | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number |
327
+ # | Tanzania | `tz_vat` | Tanzania VAT Number |
328
+ # | Thailand | `th_vat` | Thai VAT |
329
+ # | Turkey | `tr_tin` | Turkish Tax Identification Number |
330
+ # | Uganda | `ug_tin` | Uganda Tax Identification Number |
331
+ # | Ukraine | `ua_vat` | Ukrainian VAT |
332
+ # | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
333
+ # | United Kingdom | `gb_vat` | United Kingdom VAT Number |
334
+ # | United States | `us_ein` | United States EIN |
335
+ # | Uruguay | `uy_ruc` | Uruguayan RUC Number |
336
+ # | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
337
+ # | Uzbekistan | `uz_vat` | Uzbekistan VAT Number |
338
+ # | Venezuela | `ve_rif` | Venezuelan RIF Number |
339
+ # | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
340
+ # | Zambia | `zm_tin` | Zambia Tax Identification Number |
341
+ # | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number |
342
+ sig { returns(T.nilable(Orb::CustomerTaxID)) }
343
+ attr_reader :customer_tax_id
344
+
345
+ sig do
346
+ params(customer_tax_id: T.nilable(Orb::CustomerTaxID::OrHash)).void
347
+ end
348
+ attr_writer :customer_tax_id
349
+
350
+ # When the invoice payment is due. The due date is null if the invoice is not yet
351
+ # finalized.
352
+ sig { returns(T.nilable(Time)) }
353
+ attr_accessor :due_date
354
+
355
+ # If the invoice has a status of `draft`, this will be the time that the invoice
356
+ # will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is
357
+ # true, the invoice will automatically begin issuing at this time.
358
+ sig { returns(T.nilable(Time)) }
359
+ attr_accessor :eligible_to_issue_at
360
+
361
+ # A URL for the customer-facing invoice portal. This URL expires 60 days after the
362
+ # link is generated, or 30 days after the invoice's due date — whichever is later.
363
+ sig { returns(T.nilable(String)) }
364
+ attr_accessor :hosted_invoice_url
365
+
366
+ # The scheduled date of the invoice
367
+ sig { returns(Time) }
368
+ attr_accessor :invoice_date
369
+
370
+ # Automatically generated invoice number to help track and reconcile invoices.
371
+ # Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per
372
+ # account or customer.
373
+ sig { returns(String) }
374
+ attr_accessor :invoice_number
375
+
376
+ # The link to download the PDF representation of the `Invoice`.
377
+ sig { returns(T.nilable(String)) }
378
+ attr_accessor :invoice_pdf
379
+
380
+ sig do
381
+ returns(
382
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::InvoiceSource::TaggedSymbol
383
+ )
384
+ end
385
+ attr_accessor :invoice_source
386
+
387
+ # If the invoice failed to issue, this will be the last time it failed to issue
388
+ # (even if it is now in a different state.)
389
+ sig { returns(T.nilable(Time)) }
390
+ attr_accessor :issue_failed_at
391
+
392
+ # If the invoice has been issued, this will be the time it transitioned to
393
+ # `issued` (even if it is now in a different state.)
394
+ sig { returns(T.nilable(Time)) }
395
+ attr_accessor :issued_at
396
+
397
+ # Free-form text which is available on the invoice PDF and the Orb invoice portal.
398
+ sig { returns(T.nilable(String)) }
399
+ attr_accessor :memo
400
+
401
+ # User specified key-value pairs for the resource. If not present, this defaults
402
+ # to an empty dictionary. Individual keys can be removed by setting the value to
403
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
404
+ # `null`.
405
+ sig { returns(T::Hash[Symbol, String]) }
406
+ attr_accessor :metadata
407
+
408
+ # If the invoice has a status of `paid`, this gives a timestamp when the invoice
409
+ # was paid.
410
+ sig { returns(T.nilable(Time)) }
411
+ attr_accessor :paid_at
412
+
413
+ # A list of payment attempts associated with the invoice
414
+ sig do
415
+ returns(
416
+ T::Array[
417
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt
418
+ ]
419
+ )
420
+ end
421
+ attr_accessor :payment_attempts
422
+
423
+ # If payment was attempted on this invoice but failed, this will be the time of
424
+ # the most recent attempt.
425
+ sig { returns(T.nilable(Time)) }
426
+ attr_accessor :payment_failed_at
427
+
428
+ # When payment for this invoice was received. For an invoice manually marked as
429
+ # paid, this is the `payment_received_date` that was supplied. For an invoice paid
430
+ # through a payment provider, this is the settlement time reported by that
431
+ # provider. It is `null` for an invoice that became `paid` without a payment, such
432
+ # as a $0 invoice or one fully covered by credit notes. By contrast, `paid_at` is
433
+ # when the invoice reached the `paid` status in Orb.
434
+ sig { returns(T.nilable(Time)) }
435
+ attr_accessor :payment_received_at
436
+
437
+ # If payment was attempted on this invoice, this will be the start time of the
438
+ # most recent attempt. This field is especially useful for delayed-notification
439
+ # payment mechanisms (like bank transfers), where payment can take 3 days or more.
440
+ sig { returns(T.nilable(Time)) }
441
+ attr_accessor :payment_started_at
442
+
443
+ # If the invoice is in draft, this timestamp will reflect when the invoice is
444
+ # scheduled to be issued.
445
+ sig { returns(T.nilable(Time)) }
446
+ attr_accessor :scheduled_issue_at
447
+
448
+ sig { returns(T.nilable(Orb::Address)) }
449
+ attr_reader :shipping_address
450
+
451
+ sig { params(shipping_address: T.nilable(Orb::Address::OrHash)).void }
452
+ attr_writer :shipping_address
453
+
454
+ sig do
455
+ returns(
456
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::TaggedSymbol
457
+ )
458
+ end
459
+ attr_accessor :status
460
+
461
+ sig { returns(T.nilable(Orb::SubscriptionMinified)) }
462
+ attr_reader :subscription
463
+
464
+ sig do
465
+ params(
466
+ subscription: T.nilable(Orb::SubscriptionMinified::OrHash)
467
+ ).void
468
+ end
469
+ attr_writer :subscription
470
+
471
+ # If the invoice failed to sync, this will be the last time an external invoicing
472
+ # provider sync was attempted. This field will always be `null` for invoices using
473
+ # Orb Invoicing.
474
+ sig { returns(T.nilable(Time)) }
475
+ attr_accessor :sync_failed_at
476
+
477
+ # The total after any minimums and discounts have been applied.
478
+ sig { returns(String) }
479
+ attr_accessor :total
480
+
481
+ # If the invoice has a status of `void`, this gives a timestamp when the invoice
482
+ # was voided.
483
+ sig { returns(T.nilable(Time)) }
484
+ attr_accessor :voided_at
485
+
486
+ # This is true if the invoice will be automatically issued in the future, and
487
+ # false otherwise.
488
+ sig { returns(T::Boolean) }
489
+ attr_accessor :will_auto_issue
490
+
491
+ # #InvoiceApiResourceWithoutLineItems
492
+ sig do
493
+ params(
494
+ id: String,
495
+ amount_due: String,
496
+ auto_collection:
497
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::AutoCollection::OrHash,
498
+ billing_address: T.nilable(Orb::Address::OrHash),
499
+ created_at: Time,
500
+ credit_notes:
501
+ T::Array[
502
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CreditNote::OrHash
503
+ ],
504
+ currency: String,
505
+ customer: Orb::CustomerMinified::OrHash,
506
+ customer_balance_transactions:
507
+ T::Array[
508
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::OrHash
509
+ ],
510
+ customer_tax_id: T.nilable(Orb::CustomerTaxID::OrHash),
511
+ due_date: T.nilable(Time),
512
+ eligible_to_issue_at: T.nilable(Time),
513
+ hosted_invoice_url: T.nilable(String),
514
+ invoice_date: Time,
515
+ invoice_number: String,
516
+ invoice_pdf: T.nilable(String),
517
+ invoice_source:
518
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::InvoiceSource::OrSymbol,
519
+ issue_failed_at: T.nilable(Time),
520
+ issued_at: T.nilable(Time),
521
+ memo: T.nilable(String),
522
+ metadata: T::Hash[Symbol, String],
523
+ paid_at: T.nilable(Time),
524
+ payment_attempts:
525
+ T::Array[
526
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt::OrHash
527
+ ],
528
+ payment_failed_at: T.nilable(Time),
529
+ payment_received_at: T.nilable(Time),
530
+ payment_started_at: T.nilable(Time),
531
+ scheduled_issue_at: T.nilable(Time),
532
+ shipping_address: T.nilable(Orb::Address::OrHash),
533
+ status:
534
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::OrSymbol,
535
+ subscription: T.nilable(Orb::SubscriptionMinified::OrHash),
536
+ sync_failed_at: T.nilable(Time),
537
+ total: String,
538
+ voided_at: T.nilable(Time),
539
+ will_auto_issue: T::Boolean
540
+ ).returns(T.attached_class)
541
+ end
542
+ def self.new(
543
+ id:,
544
+ # This is the final amount required to be charged to the customer and reflects the
545
+ # application of the customer balance to the `total` of the invoice.
546
+ amount_due:,
547
+ auto_collection:,
548
+ billing_address:,
549
+ # The creation time of the resource in Orb.
550
+ created_at:,
551
+ # A list of credit notes associated with the invoice
552
+ credit_notes:,
553
+ # An ISO 4217 currency string or `credits`
554
+ currency:,
555
+ customer:,
556
+ customer_balance_transactions:,
557
+ # Tax IDs are commonly required to be displayed on customer invoices, which are
558
+ # added to the headers of invoices.
559
+ #
560
+ # ### Supported Tax ID Countries and Types
561
+ #
562
+ # | Country | Type | Description |
563
+ # | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
564
+ # | Albania | `al_tin` | Albania Tax Identification Number |
565
+ # | Andorra | `ad_nrt` | Andorran NRT Number |
566
+ # | Angola | `ao_tin` | Angola Tax Identification Number |
567
+ # | Argentina | `ar_cuit` | Argentinian Tax ID Number |
568
+ # | Armenia | `am_tin` | Armenia Tax Identification Number |
569
+ # | Aruba | `aw_tin` | Aruba Tax Identification Number |
570
+ # | Australia | `au_abn` | Australian Business Number (AU ABN) |
571
+ # | Australia | `au_arn` | Australian Taxation Office Reference Number |
572
+ # | Austria | `eu_vat` | European VAT Number |
573
+ # | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number |
574
+ # | Bahamas | `bs_tin` | Bahamas Tax Identification Number |
575
+ # | Bahrain | `bh_vat` | Bahraini VAT Number |
576
+ # | Bangladesh | `bd_bin` | Bangladesh Business Identification Number |
577
+ # | Barbados | `bb_tin` | Barbados Tax Identification Number |
578
+ # | Belarus | `by_tin` | Belarus TIN Number |
579
+ # | Belgium | `eu_vat` | European VAT Number |
580
+ # | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) |
581
+ # | Bolivia | `bo_tin` | Bolivian Tax ID |
582
+ # | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number |
583
+ # | Brazil | `br_cnpj` | Brazilian CNPJ Number |
584
+ # | Brazil | `br_cpf` | Brazilian CPF Number |
585
+ # | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
586
+ # | Bulgaria | `eu_vat` | European VAT Number |
587
+ # | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) |
588
+ # | Cambodia | `kh_tin` | Cambodia Tax Identification Number |
589
+ # | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) |
590
+ # | Canada | `ca_bn` | Canadian BN |
591
+ # | Canada | `ca_gst_hst` | Canadian GST/HST Number |
592
+ # | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
593
+ # | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
594
+ # | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
595
+ # | Canada | `ca_qst` | Canadian QST Number (Québec) |
596
+ # | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) |
597
+ # | Chile | `cl_tin` | Chilean TIN |
598
+ # | China | `cn_tin` | Chinese Tax ID |
599
+ # | Colombia | `co_nit` | Colombian NIT Number |
600
+ # | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) |
601
+ # | Costa Rica | `cr_tin` | Costa Rican Tax ID |
602
+ # | Croatia | `eu_vat` | European VAT Number |
603
+ # | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) |
604
+ # | Cyprus | `eu_vat` | European VAT Number |
605
+ # | Czech Republic | `eu_vat` | European VAT Number |
606
+ # | Denmark | `eu_vat` | European VAT Number |
607
+ # | Dominican Republic | `do_rcn` | Dominican RCN Number |
608
+ # | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
609
+ # | Egypt | `eg_tin` | Egyptian Tax Identification Number |
610
+ # | El Salvador | `sv_nit` | El Salvadorian NIT Number |
611
+ # | Estonia | `eu_vat` | European VAT Number |
612
+ # | Ethiopia | `et_tin` | Ethiopia Tax Identification Number |
613
+ # | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
614
+ # | Faroe Islands | `fo_vat` | Faroe Islands VAT Number |
615
+ # | Finland | `eu_vat` | European VAT Number |
616
+ # | France | `eu_vat` | European VAT Number |
617
+ # | Georgia | `ge_vat` | Georgian VAT |
618
+ # | Germany | `de_stn` | German Tax Number (Steuernummer) |
619
+ # | Germany | `eu_vat` | European VAT Number |
620
+ # | Gibraltar | `gi_tin` | Gibraltar Tax Identification Number |
621
+ # | Greece | `eu_vat` | European VAT Number |
622
+ # | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) |
623
+ # | Hong Kong | `hk_br` | Hong Kong BR Number |
624
+ # | Hungary | `eu_vat` | European VAT Number |
625
+ # | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
626
+ # | Iceland | `is_vat` | Icelandic VAT |
627
+ # | India | `in_gst` | Indian GST Number |
628
+ # | Indonesia | `id_npwp` | Indonesian NPWP Number |
629
+ # | Ireland | `eu_vat` | European VAT Number |
630
+ # | Israel | `il_vat` | Israel VAT |
631
+ # | Italy | `eu_vat` | European VAT Number |
632
+ # | Italy | `it_cf` | Italian Codice Fiscale Number |
633
+ # | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
634
+ # | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
635
+ # | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
636
+ # | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
637
+ # | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
638
+ # | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number |
639
+ # | Laos | `la_tin` | Laos Tax Identification Number |
640
+ # | Latvia | `eu_vat` | European VAT Number |
641
+ # | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
642
+ # | Liechtenstein | `li_vat` | Liechtenstein VAT Number |
643
+ # | Lithuania | `eu_vat` | European VAT Number |
644
+ # | Luxembourg | `eu_vat` | European VAT Number |
645
+ # | Malaysia | `my_frp` | Malaysian FRP Number |
646
+ # | Malaysia | `my_itn` | Malaysian ITN |
647
+ # | Malaysia | `my_sst` | Malaysian SST Number |
648
+ # | Malta | `eu_vat` | European VAT Number |
649
+ # | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) |
650
+ # | Mexico | `mx_rfc` | Mexican RFC Number |
651
+ # | Moldova | `md_vat` | Moldova VAT Number |
652
+ # | Montenegro | `me_pib` | Montenegro PIB Number |
653
+ # | Morocco | `ma_vat` | Morocco VAT Number |
654
+ # | Nepal | `np_pan` | Nepal PAN Number |
655
+ # | Netherlands | `eu_vat` | European VAT Number |
656
+ # | New Zealand | `nz_gst` | New Zealand GST Number |
657
+ # | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
658
+ # | North Macedonia | `mk_vat` | North Macedonia VAT Number |
659
+ # | Northern Ireland | `eu_vat` | Northern Ireland VAT Number |
660
+ # | Norway | `no_vat` | Norwegian VAT Number |
661
+ # | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
662
+ # | Oman | `om_vat` | Omani VAT Number |
663
+ # | Paraguay | `py_ruc` | Paraguayan RUC Number |
664
+ # | Peru | `pe_ruc` | Peruvian RUC Number |
665
+ # | Philippines | `ph_tin` | Philippines Tax Identification Number |
666
+ # | Poland | `eu_vat` | European VAT Number |
667
+ # | Poland | `pl_nip` | Polish Tax ID Number |
668
+ # | Portugal | `eu_vat` | European VAT Number |
669
+ # | Romania | `eu_vat` | European VAT Number |
670
+ # | Romania | `ro_tin` | Romanian Tax ID Number |
671
+ # | Russia | `ru_inn` | Russian INN |
672
+ # | Russia | `ru_kpp` | Russian KPP |
673
+ # | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
674
+ # | Senegal | `sn_ninea` | Senegal NINEA Number |
675
+ # | Serbia | `rs_pib` | Serbian PIB Number |
676
+ # | Singapore | `sg_gst` | Singaporean GST |
677
+ # | Singapore | `sg_uen` | Singaporean UEN |
678
+ # | Slovakia | `eu_vat` | European VAT Number |
679
+ # | Slovenia | `eu_vat` | European VAT Number |
680
+ # | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
681
+ # | South Africa | `za_vat` | South African VAT Number |
682
+ # | South Korea | `kr_brn` | Korean BRN |
683
+ # | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
684
+ # | Spain | `eu_vat` | European VAT Number |
685
+ # | Sri Lanka | `lk_vat` | Sri Lanka VAT Number |
686
+ # | Suriname | `sr_fin` | Suriname FIN Number |
687
+ # | Sweden | `eu_vat` | European VAT Number |
688
+ # | Switzerland | `ch_uid` | Switzerland UID Number |
689
+ # | Switzerland | `ch_vat` | Switzerland VAT Number |
690
+ # | Taiwan | `tw_vat` | Taiwanese VAT |
691
+ # | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number |
692
+ # | Tanzania | `tz_vat` | Tanzania VAT Number |
693
+ # | Thailand | `th_vat` | Thai VAT |
694
+ # | Turkey | `tr_tin` | Turkish Tax Identification Number |
695
+ # | Uganda | `ug_tin` | Uganda Tax Identification Number |
696
+ # | Ukraine | `ua_vat` | Ukrainian VAT |
697
+ # | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
698
+ # | United Kingdom | `gb_vat` | United Kingdom VAT Number |
699
+ # | United States | `us_ein` | United States EIN |
700
+ # | Uruguay | `uy_ruc` | Uruguayan RUC Number |
701
+ # | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
702
+ # | Uzbekistan | `uz_vat` | Uzbekistan VAT Number |
703
+ # | Venezuela | `ve_rif` | Venezuelan RIF Number |
704
+ # | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
705
+ # | Zambia | `zm_tin` | Zambia Tax Identification Number |
706
+ # | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number |
707
+ customer_tax_id:,
708
+ # When the invoice payment is due. The due date is null if the invoice is not yet
709
+ # finalized.
710
+ due_date:,
711
+ # If the invoice has a status of `draft`, this will be the time that the invoice
712
+ # will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is
713
+ # true, the invoice will automatically begin issuing at this time.
714
+ eligible_to_issue_at:,
715
+ # A URL for the customer-facing invoice portal. This URL expires 60 days after the
716
+ # link is generated, or 30 days after the invoice's due date — whichever is later.
717
+ hosted_invoice_url:,
718
+ # The scheduled date of the invoice
719
+ invoice_date:,
720
+ # Automatically generated invoice number to help track and reconcile invoices.
721
+ # Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per
722
+ # account or customer.
723
+ invoice_number:,
724
+ # The link to download the PDF representation of the `Invoice`.
725
+ invoice_pdf:,
726
+ invoice_source:,
727
+ # If the invoice failed to issue, this will be the last time it failed to issue
728
+ # (even if it is now in a different state.)
729
+ issue_failed_at:,
730
+ # If the invoice has been issued, this will be the time it transitioned to
731
+ # `issued` (even if it is now in a different state.)
732
+ issued_at:,
733
+ # Free-form text which is available on the invoice PDF and the Orb invoice portal.
734
+ memo:,
735
+ # User specified key-value pairs for the resource. If not present, this defaults
736
+ # to an empty dictionary. Individual keys can be removed by setting the value to
737
+ # `null`, and the entire metadata mapping can be cleared by setting `metadata` to
738
+ # `null`.
739
+ metadata:,
740
+ # If the invoice has a status of `paid`, this gives a timestamp when the invoice
741
+ # was paid.
742
+ paid_at:,
743
+ # A list of payment attempts associated with the invoice
744
+ payment_attempts:,
745
+ # If payment was attempted on this invoice but failed, this will be the time of
746
+ # the most recent attempt.
747
+ payment_failed_at:,
748
+ # When payment for this invoice was received. For an invoice manually marked as
749
+ # paid, this is the `payment_received_date` that was supplied. For an invoice paid
750
+ # through a payment provider, this is the settlement time reported by that
751
+ # provider. It is `null` for an invoice that became `paid` without a payment, such
752
+ # as a $0 invoice or one fully covered by credit notes. By contrast, `paid_at` is
753
+ # when the invoice reached the `paid` status in Orb.
754
+ payment_received_at:,
755
+ # If payment was attempted on this invoice, this will be the start time of the
756
+ # most recent attempt. This field is especially useful for delayed-notification
757
+ # payment mechanisms (like bank transfers), where payment can take 3 days or more.
758
+ payment_started_at:,
759
+ # If the invoice is in draft, this timestamp will reflect when the invoice is
760
+ # scheduled to be issued.
761
+ scheduled_issue_at:,
762
+ shipping_address:,
763
+ status:,
764
+ subscription:,
765
+ # If the invoice failed to sync, this will be the last time an external invoicing
766
+ # provider sync was attempted. This field will always be `null` for invoices using
767
+ # Orb Invoicing.
768
+ sync_failed_at:,
769
+ # The total after any minimums and discounts have been applied.
770
+ total:,
771
+ # If the invoice has a status of `void`, this gives a timestamp when the invoice
772
+ # was voided.
773
+ voided_at:,
774
+ # This is true if the invoice will be automatically issued in the future, and
775
+ # false otherwise.
776
+ will_auto_issue:
777
+ )
778
+ end
779
+
780
+ sig do
781
+ override.returns(
782
+ {
783
+ id: String,
784
+ amount_due: String,
785
+ auto_collection:
786
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::AutoCollection,
787
+ billing_address: T.nilable(Orb::Address),
788
+ created_at: Time,
789
+ credit_notes:
790
+ T::Array[
791
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CreditNote
792
+ ],
793
+ currency: String,
794
+ customer: Orb::CustomerMinified,
795
+ customer_balance_transactions:
796
+ T::Array[
797
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction
798
+ ],
799
+ customer_tax_id: T.nilable(Orb::CustomerTaxID),
800
+ due_date: T.nilable(Time),
801
+ eligible_to_issue_at: T.nilable(Time),
802
+ hosted_invoice_url: T.nilable(String),
803
+ invoice_date: Time,
804
+ invoice_number: String,
805
+ invoice_pdf: T.nilable(String),
806
+ invoice_source:
807
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::InvoiceSource::TaggedSymbol,
808
+ issue_failed_at: T.nilable(Time),
809
+ issued_at: T.nilable(Time),
810
+ memo: T.nilable(String),
811
+ metadata: T::Hash[Symbol, String],
812
+ paid_at: T.nilable(Time),
813
+ payment_attempts:
814
+ T::Array[
815
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt
816
+ ],
817
+ payment_failed_at: T.nilable(Time),
818
+ payment_received_at: T.nilable(Time),
819
+ payment_started_at: T.nilable(Time),
820
+ scheduled_issue_at: T.nilable(Time),
821
+ shipping_address: T.nilable(Orb::Address),
822
+ status:
823
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::TaggedSymbol,
824
+ subscription: T.nilable(Orb::SubscriptionMinified),
825
+ sync_failed_at: T.nilable(Time),
826
+ total: String,
827
+ voided_at: T.nilable(Time),
828
+ will_auto_issue: T::Boolean
829
+ }
830
+ )
831
+ end
832
+ def to_hash
833
+ end
834
+
835
+ class AutoCollection < Orb::Internal::Type::BaseModel
836
+ OrHash =
837
+ T.type_alias do
838
+ T.any(
839
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::AutoCollection,
840
+ Orb::Internal::AnyHash
841
+ )
842
+ end
843
+
844
+ # True only if auto-collection is enabled for this invoice.
845
+ sig { returns(T.nilable(T::Boolean)) }
846
+ attr_accessor :enabled
847
+
848
+ # If the invoice is scheduled for auto-collection, this field will reflect when
849
+ # the next attempt will occur. If dunning has been exhausted, or auto-collection
850
+ # is not enabled for this invoice, this field will be `null`.
851
+ sig { returns(T.nilable(Time)) }
852
+ attr_accessor :next_attempt_at
853
+
854
+ # Number of auto-collection payment attempts.
855
+ sig { returns(T.nilable(Integer)) }
856
+ attr_accessor :num_attempts
857
+
858
+ # If Orb has ever attempted payment auto-collection for this invoice, this field
859
+ # will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
860
+ # this can be used to tell whether the invoice is currently in dunning (that is,
861
+ # `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
862
+ # dunning has been exhausted (`previously_attempted_at` is non-null, but
863
+ # `next_attempt_at` is null).
864
+ sig { returns(T.nilable(Time)) }
865
+ attr_accessor :previously_attempted_at
866
+
867
+ sig do
868
+ params(
869
+ enabled: T.nilable(T::Boolean),
870
+ next_attempt_at: T.nilable(Time),
871
+ num_attempts: T.nilable(Integer),
872
+ previously_attempted_at: T.nilable(Time)
873
+ ).returns(T.attached_class)
874
+ end
875
+ def self.new(
876
+ # True only if auto-collection is enabled for this invoice.
877
+ enabled:,
878
+ # If the invoice is scheduled for auto-collection, this field will reflect when
879
+ # the next attempt will occur. If dunning has been exhausted, or auto-collection
880
+ # is not enabled for this invoice, this field will be `null`.
881
+ next_attempt_at:,
882
+ # Number of auto-collection payment attempts.
883
+ num_attempts:,
884
+ # If Orb has ever attempted payment auto-collection for this invoice, this field
885
+ # will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
886
+ # this can be used to tell whether the invoice is currently in dunning (that is,
887
+ # `previously_attempted_at` is non-null, and `next_attempt_at` is non-null), or if
888
+ # dunning has been exhausted (`previously_attempted_at` is non-null, but
889
+ # `next_attempt_at` is null).
890
+ previously_attempted_at:
891
+ )
892
+ end
893
+
894
+ sig do
895
+ override.returns(
896
+ {
897
+ enabled: T.nilable(T::Boolean),
898
+ next_attempt_at: T.nilable(Time),
899
+ num_attempts: T.nilable(Integer),
900
+ previously_attempted_at: T.nilable(Time)
901
+ }
902
+ )
903
+ end
904
+ def to_hash
905
+ end
906
+ end
907
+
908
+ class CreditNote < Orb::Internal::Type::BaseModel
909
+ OrHash =
910
+ T.type_alias do
911
+ T.any(
912
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CreditNote,
913
+ Orb::Internal::AnyHash
914
+ )
915
+ end
916
+
917
+ sig { returns(String) }
918
+ attr_accessor :id
919
+
920
+ sig { returns(String) }
921
+ attr_accessor :credit_note_number
922
+
923
+ # An optional memo supplied on the credit note.
924
+ sig { returns(T.nilable(String)) }
925
+ attr_accessor :memo
926
+
927
+ sig { returns(String) }
928
+ attr_accessor :reason
929
+
930
+ sig { returns(String) }
931
+ attr_accessor :total
932
+
933
+ sig { returns(String) }
934
+ attr_accessor :type
935
+
936
+ # If the credit note has a status of `void`, this gives a timestamp when the
937
+ # credit note was voided.
938
+ sig { returns(T.nilable(Time)) }
939
+ attr_accessor :voided_at
940
+
941
+ sig do
942
+ params(
943
+ id: String,
944
+ credit_note_number: String,
945
+ memo: T.nilable(String),
946
+ reason: String,
947
+ total: String,
948
+ type: String,
949
+ voided_at: T.nilable(Time)
950
+ ).returns(T.attached_class)
951
+ end
952
+ def self.new(
953
+ id:,
954
+ credit_note_number:,
955
+ # An optional memo supplied on the credit note.
956
+ memo:,
957
+ reason:,
958
+ total:,
959
+ type:,
960
+ # If the credit note has a status of `void`, this gives a timestamp when the
961
+ # credit note was voided.
962
+ voided_at:
963
+ )
964
+ end
965
+
966
+ sig do
967
+ override.returns(
968
+ {
969
+ id: String,
970
+ credit_note_number: String,
971
+ memo: T.nilable(String),
972
+ reason: String,
973
+ total: String,
974
+ type: String,
975
+ voided_at: T.nilable(Time)
976
+ }
977
+ )
978
+ end
979
+ def to_hash
980
+ end
981
+ end
982
+
983
+ class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel
984
+ OrHash =
985
+ T.type_alias do
986
+ T.any(
987
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction,
988
+ Orb::Internal::AnyHash
989
+ )
990
+ end
991
+
992
+ # A unique id for this transaction.
993
+ sig { returns(String) }
994
+ attr_accessor :id
995
+
996
+ sig do
997
+ returns(
998
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
999
+ )
1000
+ end
1001
+ attr_accessor :action
1002
+
1003
+ # The value of the amount changed in the transaction.
1004
+ sig { returns(String) }
1005
+ attr_accessor :amount
1006
+
1007
+ # The creation time of this transaction.
1008
+ sig { returns(Time) }
1009
+ attr_accessor :created_at
1010
+
1011
+ sig { returns(T.nilable(Orb::CreditNoteTiny)) }
1012
+ attr_reader :credit_note
1013
+
1014
+ sig do
1015
+ params(credit_note: T.nilable(Orb::CreditNoteTiny::OrHash)).void
1016
+ end
1017
+ attr_writer :credit_note
1018
+
1019
+ # An optional description provided for manual customer balance adjustments.
1020
+ sig { returns(T.nilable(String)) }
1021
+ attr_accessor :description
1022
+
1023
+ # The new value of the customer's balance prior to the transaction, in the
1024
+ # customer's currency.
1025
+ sig { returns(String) }
1026
+ attr_accessor :ending_balance
1027
+
1028
+ sig { returns(T.nilable(Orb::InvoiceTiny)) }
1029
+ attr_reader :invoice
1030
+
1031
+ sig { params(invoice: T.nilable(Orb::InvoiceTiny::OrHash)).void }
1032
+ attr_writer :invoice
1033
+
1034
+ # The original value of the customer's balance prior to the transaction, in the
1035
+ # customer's currency.
1036
+ sig { returns(String) }
1037
+ attr_accessor :starting_balance
1038
+
1039
+ sig do
1040
+ returns(
1041
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol
1042
+ )
1043
+ end
1044
+ attr_accessor :type
1045
+
1046
+ sig do
1047
+ params(
1048
+ id: String,
1049
+ action:
1050
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::OrSymbol,
1051
+ amount: String,
1052
+ created_at: Time,
1053
+ credit_note: T.nilable(Orb::CreditNoteTiny::OrHash),
1054
+ description: T.nilable(String),
1055
+ ending_balance: String,
1056
+ invoice: T.nilable(Orb::InvoiceTiny::OrHash),
1057
+ starting_balance: String,
1058
+ type:
1059
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Type::OrSymbol
1060
+ ).returns(T.attached_class)
1061
+ end
1062
+ def self.new(
1063
+ # A unique id for this transaction.
1064
+ id:,
1065
+ action:,
1066
+ # The value of the amount changed in the transaction.
1067
+ amount:,
1068
+ # The creation time of this transaction.
1069
+ created_at:,
1070
+ credit_note:,
1071
+ # An optional description provided for manual customer balance adjustments.
1072
+ description:,
1073
+ # The new value of the customer's balance prior to the transaction, in the
1074
+ # customer's currency.
1075
+ ending_balance:,
1076
+ invoice:,
1077
+ # The original value of the customer's balance prior to the transaction, in the
1078
+ # customer's currency.
1079
+ starting_balance:,
1080
+ type:
1081
+ )
1082
+ end
1083
+
1084
+ sig do
1085
+ override.returns(
1086
+ {
1087
+ id: String,
1088
+ action:
1089
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol,
1090
+ amount: String,
1091
+ created_at: Time,
1092
+ credit_note: T.nilable(Orb::CreditNoteTiny),
1093
+ description: T.nilable(String),
1094
+ ending_balance: String,
1095
+ invoice: T.nilable(Orb::InvoiceTiny),
1096
+ starting_balance: String,
1097
+ type:
1098
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol
1099
+ }
1100
+ )
1101
+ end
1102
+ def to_hash
1103
+ end
1104
+
1105
+ module Action
1106
+ extend Orb::Internal::Type::Enum
1107
+
1108
+ TaggedSymbol =
1109
+ T.type_alias do
1110
+ T.all(
1111
+ Symbol,
1112
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action
1113
+ )
1114
+ end
1115
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1116
+
1117
+ APPLIED_TO_INVOICE =
1118
+ T.let(
1119
+ :applied_to_invoice,
1120
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1121
+ )
1122
+ MANUAL_ADJUSTMENT =
1123
+ T.let(
1124
+ :manual_adjustment,
1125
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1126
+ )
1127
+ PRORATED_REFUND =
1128
+ T.let(
1129
+ :prorated_refund,
1130
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1131
+ )
1132
+ REVERT_PRORATED_REFUND =
1133
+ T.let(
1134
+ :revert_prorated_refund,
1135
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1136
+ )
1137
+ RETURN_FROM_VOIDING =
1138
+ T.let(
1139
+ :return_from_voiding,
1140
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1141
+ )
1142
+ CREDIT_NOTE_APPLIED =
1143
+ T.let(
1144
+ :credit_note_applied,
1145
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1146
+ )
1147
+ CREDIT_NOTE_VOIDED =
1148
+ T.let(
1149
+ :credit_note_voided,
1150
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1151
+ )
1152
+ OVERPAYMENT_REFUND =
1153
+ T.let(
1154
+ :overpayment_refund,
1155
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1156
+ )
1157
+ EXTERNAL_PAYMENT =
1158
+ T.let(
1159
+ :external_payment,
1160
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1161
+ )
1162
+ SMALL_INVOICE_CARRYOVER =
1163
+ T.let(
1164
+ :small_invoice_carryover,
1165
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1166
+ )
1167
+ PREPAID_COMMIT_CANCEL =
1168
+ T.let(
1169
+ :prepaid_commit_cancel,
1170
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1171
+ )
1172
+
1173
+ sig do
1174
+ override.returns(
1175
+ T::Array[
1176
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol
1177
+ ]
1178
+ )
1179
+ end
1180
+ def self.values
1181
+ end
1182
+ end
1183
+
1184
+ module Type
1185
+ extend Orb::Internal::Type::Enum
1186
+
1187
+ TaggedSymbol =
1188
+ T.type_alias do
1189
+ T.all(
1190
+ Symbol,
1191
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Type
1192
+ )
1193
+ end
1194
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1195
+
1196
+ INCREMENT =
1197
+ T.let(
1198
+ :increment,
1199
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol
1200
+ )
1201
+ DECREMENT =
1202
+ T.let(
1203
+ :decrement,
1204
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol
1205
+ )
1206
+
1207
+ sig do
1208
+ override.returns(
1209
+ T::Array[
1210
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol
1211
+ ]
1212
+ )
1213
+ end
1214
+ def self.values
1215
+ end
1216
+ end
1217
+ end
1218
+
1219
+ module InvoiceSource
1220
+ extend Orb::Internal::Type::Enum
1221
+
1222
+ TaggedSymbol =
1223
+ T.type_alias do
1224
+ T.all(
1225
+ Symbol,
1226
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::InvoiceSource
1227
+ )
1228
+ end
1229
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1230
+
1231
+ SUBSCRIPTION =
1232
+ T.let(
1233
+ :subscription,
1234
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::InvoiceSource::TaggedSymbol
1235
+ )
1236
+ PARTIAL =
1237
+ T.let(
1238
+ :partial,
1239
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::InvoiceSource::TaggedSymbol
1240
+ )
1241
+ ONE_OFF =
1242
+ T.let(
1243
+ :one_off,
1244
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::InvoiceSource::TaggedSymbol
1245
+ )
1246
+
1247
+ sig do
1248
+ override.returns(
1249
+ T::Array[
1250
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::InvoiceSource::TaggedSymbol
1251
+ ]
1252
+ )
1253
+ end
1254
+ def self.values
1255
+ end
1256
+ end
1257
+
1258
+ class PaymentAttempt < Orb::Internal::Type::BaseModel
1259
+ OrHash =
1260
+ T.type_alias do
1261
+ T.any(
1262
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt,
1263
+ Orb::Internal::AnyHash
1264
+ )
1265
+ end
1266
+
1267
+ # The ID of the payment attempt.
1268
+ sig { returns(String) }
1269
+ attr_accessor :id
1270
+
1271
+ # The amount of the payment attempt.
1272
+ sig { returns(String) }
1273
+ attr_accessor :amount
1274
+
1275
+ # The time at which the payment attempt was created.
1276
+ sig { returns(Time) }
1277
+ attr_accessor :created_at
1278
+
1279
+ # The payment provider that attempted to collect the payment.
1280
+ sig do
1281
+ returns(
1282
+ T.nilable(
1283
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol
1284
+ )
1285
+ )
1286
+ end
1287
+ attr_accessor :payment_provider
1288
+
1289
+ # The ID of the payment attempt in the payment provider.
1290
+ sig { returns(T.nilable(String)) }
1291
+ attr_accessor :payment_provider_id
1292
+
1293
+ # URL to the downloadable PDF version of the receipt. This field will be `null`
1294
+ # for payment attempts that did not succeed.
1295
+ sig { returns(T.nilable(String)) }
1296
+ attr_accessor :receipt_pdf
1297
+
1298
+ # Whether the payment attempt succeeded.
1299
+ sig { returns(T::Boolean) }
1300
+ attr_accessor :succeeded
1301
+
1302
+ sig do
1303
+ params(
1304
+ id: String,
1305
+ amount: String,
1306
+ created_at: Time,
1307
+ payment_provider:
1308
+ T.nilable(
1309
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt::PaymentProvider::OrSymbol
1310
+ ),
1311
+ payment_provider_id: T.nilable(String),
1312
+ receipt_pdf: T.nilable(String),
1313
+ succeeded: T::Boolean
1314
+ ).returns(T.attached_class)
1315
+ end
1316
+ def self.new(
1317
+ # The ID of the payment attempt.
1318
+ id:,
1319
+ # The amount of the payment attempt.
1320
+ amount:,
1321
+ # The time at which the payment attempt was created.
1322
+ created_at:,
1323
+ # The payment provider that attempted to collect the payment.
1324
+ payment_provider:,
1325
+ # The ID of the payment attempt in the payment provider.
1326
+ payment_provider_id:,
1327
+ # URL to the downloadable PDF version of the receipt. This field will be `null`
1328
+ # for payment attempts that did not succeed.
1329
+ receipt_pdf:,
1330
+ # Whether the payment attempt succeeded.
1331
+ succeeded:
1332
+ )
1333
+ end
1334
+
1335
+ sig do
1336
+ override.returns(
1337
+ {
1338
+ id: String,
1339
+ amount: String,
1340
+ created_at: Time,
1341
+ payment_provider:
1342
+ T.nilable(
1343
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol
1344
+ ),
1345
+ payment_provider_id: T.nilable(String),
1346
+ receipt_pdf: T.nilable(String),
1347
+ succeeded: T::Boolean
1348
+ }
1349
+ )
1350
+ end
1351
+ def to_hash
1352
+ end
1353
+
1354
+ # The payment provider that attempted to collect the payment.
1355
+ module PaymentProvider
1356
+ extend Orb::Internal::Type::Enum
1357
+
1358
+ TaggedSymbol =
1359
+ T.type_alias do
1360
+ T.all(
1361
+ Symbol,
1362
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt::PaymentProvider
1363
+ )
1364
+ end
1365
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1366
+
1367
+ STRIPE =
1368
+ T.let(
1369
+ :stripe,
1370
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol
1371
+ )
1372
+ ADYEN =
1373
+ T.let(
1374
+ :adyen,
1375
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol
1376
+ )
1377
+
1378
+ sig do
1379
+ override.returns(
1380
+ T::Array[
1381
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol
1382
+ ]
1383
+ )
1384
+ end
1385
+ def self.values
1386
+ end
1387
+ end
1388
+ end
1389
+
1390
+ module Status
1391
+ extend Orb::Internal::Type::Enum
1392
+
1393
+ TaggedSymbol =
1394
+ T.type_alias do
1395
+ T.all(
1396
+ Symbol,
1397
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status
1398
+ )
1399
+ end
1400
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1401
+
1402
+ ISSUED =
1403
+ T.let(
1404
+ :issued,
1405
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::TaggedSymbol
1406
+ )
1407
+ PAID =
1408
+ T.let(
1409
+ :paid,
1410
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::TaggedSymbol
1411
+ )
1412
+ SYNCED =
1413
+ T.let(
1414
+ :synced,
1415
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::TaggedSymbol
1416
+ )
1417
+ VOID =
1418
+ T.let(
1419
+ :void,
1420
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::TaggedSymbol
1421
+ )
1422
+ DRAFT =
1423
+ T.let(
1424
+ :draft,
1425
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::TaggedSymbol
1426
+ )
1427
+
1428
+ sig do
1429
+ override.returns(
1430
+ T::Array[
1431
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Invoice::Status::TaggedSymbol
1432
+ ]
1433
+ )
1434
+ end
1435
+ def self.values
1436
+ end
1437
+ end
1438
+ end
1439
+
1440
+ # The serialization style this payload was rendered in, as configured on the
1441
+ # endpoint.
1442
+ module PayloadStyle
1443
+ extend Orb::Internal::Type::Enum
1444
+
1445
+ TaggedSymbol =
1446
+ T.type_alias do
1447
+ T.all(
1448
+ Symbol,
1449
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::PayloadStyle
1450
+ )
1451
+ end
1452
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1453
+
1454
+ EXPANDED =
1455
+ T.let(
1456
+ :expanded,
1457
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::PayloadStyle::TaggedSymbol
1458
+ )
1459
+ STANDARD =
1460
+ T.let(
1461
+ :standard,
1462
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::PayloadStyle::TaggedSymbol
1463
+ )
1464
+
1465
+ sig do
1466
+ override.returns(
1467
+ T::Array[
1468
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::PayloadStyle::TaggedSymbol
1469
+ ]
1470
+ )
1471
+ end
1472
+ def self.values
1473
+ end
1474
+ end
1475
+
1476
+ class Properties < Orb::Internal::Type::BaseModel
1477
+ OrHash =
1478
+ T.type_alias do
1479
+ T.any(
1480
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Properties,
1481
+ Orb::Internal::AnyHash
1482
+ )
1483
+ end
1484
+
1485
+ sig { returns(T.nilable(String)) }
1486
+ attr_accessor :reason
1487
+
1488
+ sig { params(reason: T.nilable(String)).returns(T.attached_class) }
1489
+ def self.new(reason:)
1490
+ end
1491
+
1492
+ sig { override.returns({ reason: T.nilable(String) }) }
1493
+ def to_hash
1494
+ end
1495
+ end
1496
+
1497
+ # The event this payload describes.
1498
+ module Type
1499
+ extend Orb::Internal::Type::Enum
1500
+
1501
+ TaggedSymbol =
1502
+ T.type_alias do
1503
+ T.all(
1504
+ Symbol,
1505
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Type
1506
+ )
1507
+ end
1508
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1509
+
1510
+ INVOICE_ISSUE_FAILED =
1511
+ T.let(
1512
+ :"invoice.issue_failed",
1513
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Type::TaggedSymbol
1514
+ )
1515
+
1516
+ sig do
1517
+ override.returns(
1518
+ T::Array[
1519
+ Orb::Webhooks::InvoiceIssueFailedStandardWebhookEvent::Type::TaggedSymbol
1520
+ ]
1521
+ )
1522
+ end
1523
+ def self.values
1524
+ end
1525
+ end
1526
+ end
1527
+ end
1528
+ end
1529
+ end