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