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