orb-billing 1.35.0 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/orb/client.rb +4 -0
  5. data/lib/orb/models/backfill_reflected_webhook_event.rb +180 -0
  6. data/lib/orb/models/backfill_reverted_webhook_event.rb +180 -0
  7. data/lib/orb/models/billable_metric_edited_webhook_event.rb +104 -0
  8. data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +499 -0
  9. data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +494 -0
  10. data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +161 -0
  11. data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +155 -0
  12. data/lib/orb/models/credit_note_issued_webhook_event.rb +65 -0
  13. data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +65 -0
  14. data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +171 -0
  15. data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +165 -0
  16. data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +212 -0
  17. data/lib/orb/models/customer_created_webhook_event.rb +81 -0
  18. data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +560 -0
  19. data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +566 -0
  20. data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +560 -0
  21. data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +474 -0
  22. data/lib/orb/models/customer_edited_webhook_event.rb +344 -0
  23. data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +100 -0
  24. data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +94 -0
  25. data/lib/orb/models/event_unmatched_event_webhook_event.rb +105 -0
  26. data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +64 -0
  27. data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +164 -0
  28. data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +158 -0
  29. data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +338 -0
  30. data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +83 -0
  31. data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +70 -0
  32. data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +70 -0
  33. data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +64 -0
  34. data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +186 -0
  35. data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +180 -0
  36. data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +184 -0
  37. data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +133 -0
  38. data/lib/orb/models/invoice_edited_webhook_event.rb +550 -0
  39. data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +120 -0
  40. data/lib/orb/models/invoice_issue_failed_webhook_event.rb +79 -0
  41. data/lib/orb/models/invoice_issued_summary_webhook_event.rb +841 -0
  42. data/lib/orb/models/invoice_issued_webhook_event.rb +79 -0
  43. data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +91 -0
  44. data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +68 -0
  45. data/lib/orb/models/invoice_payment_failed_webhook_event.rb +92 -0
  46. data/lib/orb/models/invoice_payment_processing_webhook_event.rb +85 -0
  47. data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +101 -0
  48. data/lib/orb/models/invoice_sync_failed_webhook_event.rb +85 -0
  49. data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +85 -0
  50. data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +68 -0
  51. data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +98 -0
  52. data/lib/orb/models/payment_method_created_webhook_event.rb +156 -0
  53. data/lib/orb/models/payment_method_deleted_webhook_event.rb +156 -0
  54. data/lib/orb/models/plan_default_version_set_webhook_event.rb +108 -0
  55. data/lib/orb/models/plan_version_created_webhook_event.rb +108 -0
  56. data/lib/orb/models/price_edited_webhook_event.rb +105 -0
  57. data/lib/orb/models/resource_event_test_webhook_event.rb +64 -0
  58. data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +164 -0
  59. data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +158 -0
  60. data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +178 -0
  61. data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +172 -0
  62. data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +624 -0
  63. data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +93 -0
  64. data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +93 -0
  65. data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +540 -0
  66. data/lib/orb/models/subscription_created_webhook_event.rb +82 -0
  67. data/lib/orb/models/subscription_edited_webhook_event.rb +134 -0
  68. data/lib/orb/models/subscription_ended_webhook_event.rb +82 -0
  69. data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +111 -0
  70. data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +655 -0
  71. data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +191 -0
  72. data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +214 -0
  73. data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +652 -0
  74. data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +105 -0
  75. data/lib/orb/models/subscription_plan_changed_webhook_event.rb +93 -0
  76. data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +106 -0
  77. data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +105 -0
  78. data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +541 -0
  79. data/lib/orb/models/subscription_started_webhook_event.rb +82 -0
  80. data/lib/orb/models/subscription_trial_ended_webhook_event.rb +82 -0
  81. data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +548 -0
  82. data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +236 -0
  83. data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +232 -0
  84. data/lib/orb/models/unwrap_webhook_event.rb +250 -0
  85. data/lib/orb/models/webhook_unwrap_params.rb +14 -0
  86. data/lib/orb/models.rb +180 -0
  87. data/lib/orb/resources/webhooks.rb +22 -0
  88. data/lib/orb/version.rb +1 -1
  89. data/lib/orb.rb +82 -0
  90. data/rbi/orb/client.rbi +3 -0
  91. data/rbi/orb/models/backfill_reflected_webhook_event.rbi +274 -0
  92. data/rbi/orb/models/backfill_reverted_webhook_event.rbi +271 -0
  93. data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +198 -0
  94. data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +1039 -0
  95. data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +1034 -0
  96. data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +315 -0
  97. data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +310 -0
  98. data/rbi/orb/models/credit_note_issued_webhook_event.rbi +98 -0
  99. data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +102 -0
  100. data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +339 -0
  101. data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +335 -0
  102. data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +437 -0
  103. data/rbi/orb/models/customer_created_webhook_event.rbi +128 -0
  104. data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +1091 -0
  105. data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +1096 -0
  106. data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +1091 -0
  107. data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +987 -0
  108. data/rbi/orb/models/customer_edited_webhook_event.rbi +599 -0
  109. data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +170 -0
  110. data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +165 -0
  111. data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +193 -0
  112. data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +132 -0
  113. data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +319 -0
  114. data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +312 -0
  115. data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +614 -0
  116. data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +144 -0
  117. data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +139 -0
  118. data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +139 -0
  119. data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +132 -0
  120. data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +331 -0
  121. data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +324 -0
  122. data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +329 -0
  123. data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +250 -0
  124. data/rbi/orb/models/invoice_edited_webhook_event.rbi +942 -0
  125. data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +251 -0
  126. data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +132 -0
  127. data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +1432 -0
  128. data/rbi/orb/models/invoice_issued_webhook_event.rbi +134 -0
  129. data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +165 -0
  130. data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +114 -0
  131. data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +157 -0
  132. data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +156 -0
  133. data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +175 -0
  134. data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +147 -0
  135. data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +147 -0
  136. data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +106 -0
  137. data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +167 -0
  138. data/rbi/orb/models/payment_method_created_webhook_event.rbi +259 -0
  139. data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +259 -0
  140. data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +196 -0
  141. data/rbi/orb/models/plan_version_created_webhook_event.rbi +190 -0
  142. data/rbi/orb/models/price_edited_webhook_event.rbi +235 -0
  143. data/rbi/orb/models/resource_event_test_webhook_event.rbi +116 -0
  144. data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +321 -0
  145. data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +316 -0
  146. data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +353 -0
  147. data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +346 -0
  148. data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +1232 -0
  149. data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +179 -0
  150. data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +183 -0
  151. data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +1034 -0
  152. data/rbi/orb/models/subscription_created_webhook_event.rbi +132 -0
  153. data/rbi/orb/models/subscription_edited_webhook_event.rbi +247 -0
  154. data/rbi/orb/models/subscription_ended_webhook_event.rbi +132 -0
  155. data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +206 -0
  156. data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +1262 -0
  157. data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +374 -0
  158. data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +421 -0
  159. data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +1265 -0
  160. data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +198 -0
  161. data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +169 -0
  162. data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +205 -0
  163. data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +199 -0
  164. data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +1035 -0
  165. data/rbi/orb/models/subscription_started_webhook_event.rbi +132 -0
  166. data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +136 -0
  167. data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +1041 -0
  168. data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +455 -0
  169. data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +449 -0
  170. data/rbi/orb/models/unwrap_webhook_event.rbi +99 -0
  171. data/rbi/orb/models/webhook_unwrap_params.rbi +25 -0
  172. data/rbi/orb/models.rbi +224 -0
  173. data/rbi/orb/resources/webhooks.rbi +103 -0
  174. data/sig/orb/client.rbs +2 -0
  175. data/sig/orb/models/backfill_reflected_webhook_event.rbs +130 -0
  176. data/sig/orb/models/backfill_reverted_webhook_event.rbs +130 -0
  177. data/sig/orb/models/billable_metric_edited_webhook_event.rbs +94 -0
  178. data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +412 -0
  179. data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +407 -0
  180. data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +147 -0
  181. data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +142 -0
  182. data/sig/orb/models/credit_note_issued_webhook_event.rbs +50 -0
  183. data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +50 -0
  184. data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +142 -0
  185. data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +137 -0
  186. data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +171 -0
  187. data/sig/orb/models/customer_created_webhook_event.rbs +50 -0
  188. data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +374 -0
  189. data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +379 -0
  190. data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +374 -0
  191. data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +364 -0
  192. data/sig/orb/models/customer_edited_webhook_event.rbs +139 -0
  193. data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +92 -0
  194. data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +87 -0
  195. data/sig/orb/models/event_unmatched_event_webhook_event.rbs +102 -0
  196. data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +55 -0
  197. data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +147 -0
  198. data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +142 -0
  199. data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +313 -0
  200. data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +73 -0
  201. data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +57 -0
  202. data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +57 -0
  203. data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +55 -0
  204. data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +171 -0
  205. data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +166 -0
  206. data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +156 -0
  207. data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +119 -0
  208. data/sig/orb/models/invoice_edited_webhook_event.rbs +388 -0
  209. data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +111 -0
  210. data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +60 -0
  211. data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +504 -0
  212. data/sig/orb/models/invoice_issued_webhook_event.rbs +60 -0
  213. data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +73 -0
  214. data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +50 -0
  215. data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +77 -0
  216. data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +71 -0
  217. data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +82 -0
  218. data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +69 -0
  219. data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +69 -0
  220. data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +50 -0
  221. data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +82 -0
  222. data/sig/orb/models/payment_method_created_webhook_event.rbs +112 -0
  223. data/sig/orb/models/payment_method_deleted_webhook_event.rbs +112 -0
  224. data/sig/orb/models/plan_default_version_set_webhook_event.rbs +94 -0
  225. data/sig/orb/models/plan_version_created_webhook_event.rbs +91 -0
  226. data/sig/orb/models/price_edited_webhook_event.rbs +77 -0
  227. data/sig/orb/models/resource_event_test_webhook_event.rbs +57 -0
  228. data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +147 -0
  229. data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +142 -0
  230. data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +147 -0
  231. data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +142 -0
  232. data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +444 -0
  233. data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +60 -0
  234. data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +60 -0
  235. data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +362 -0
  236. data/sig/orb/models/subscription_created_webhook_event.rbs +50 -0
  237. data/sig/orb/models/subscription_edited_webhook_event.rbs +109 -0
  238. data/sig/orb/models/subscription_ended_webhook_event.rbs +50 -0
  239. data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +82 -0
  240. data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +465 -0
  241. data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +158 -0
  242. data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +180 -0
  243. data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +460 -0
  244. data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +73 -0
  245. data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +60 -0
  246. data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +77 -0
  247. data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +77 -0
  248. data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +362 -0
  249. data/sig/orb/models/subscription_started_webhook_event.rbs +50 -0
  250. data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +50 -0
  251. data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +367 -0
  252. data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +205 -0
  253. data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +200 -0
  254. data/sig/orb/models/unwrap_webhook_event.rbs +90 -0
  255. data/sig/orb/models/webhook_unwrap_params.rbs +14 -0
  256. data/sig/orb/models.rbs +162 -0
  257. data/sig/orb/resources/webhooks.rbs +89 -0
  258. metadata +247 -1
@@ -0,0 +1,599 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ class CustomerEditedWebhookEvent < Orb::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Orb::CustomerEditedWebhookEvent, Orb::Internal::AnyHash)
9
+ end
10
+
11
+ # The ID of this webhook event.
12
+ sig { returns(String) }
13
+ attr_accessor :id
14
+
15
+ # The time at which this event was created, to the second.
16
+ sig { returns(Time) }
17
+ attr_accessor :created_at
18
+
19
+ # A customer is a buyer of your products, and the other party to the billing
20
+ # relationship.
21
+ #
22
+ # In Orb, customers are assigned system generated identifiers automatically, but
23
+ # it's often desirable to have these match existing identifiers in your system. To
24
+ # avoid having to denormalize Orb ID information, you can pass in an
25
+ # `external_customer_id` with your own identifier. See
26
+ # [Customer ID Aliases](/events-and-metrics/customer-aliases) for further
27
+ # information about how these aliases work in Orb.
28
+ #
29
+ # In addition to having an identifier in your system, a customer may exist in a
30
+ # payment provider solution like Stripe. Use the `payment_provider_id` and the
31
+ # `payment_provider` enum field to express this mapping.
32
+ #
33
+ # A customer also has a timezone (from the standard
34
+ # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
35
+ # your account's timezone. See [Timezone localization](/essentials/timezones) for
36
+ # information on what this timezone parameter influences within Orb.
37
+ sig { returns(Orb::Customer) }
38
+ attr_reader :customer
39
+
40
+ sig { params(customer: Orb::Customer::OrHash).void }
41
+ attr_writer :customer
42
+
43
+ sig { returns(Orb::CustomerEditedWebhookEvent::Properties) }
44
+ attr_reader :properties
45
+
46
+ sig do
47
+ params(
48
+ properties: Orb::CustomerEditedWebhookEvent::Properties::OrHash
49
+ ).void
50
+ end
51
+ attr_writer :properties
52
+
53
+ # The event this payload describes.
54
+ sig { returns(Orb::CustomerEditedWebhookEvent::Type::TaggedSymbol) }
55
+ attr_accessor :type
56
+
57
+ # Issued when a customer is updated.
58
+ sig do
59
+ params(
60
+ id: String,
61
+ created_at: Time,
62
+ customer: Orb::Customer::OrHash,
63
+ properties: Orb::CustomerEditedWebhookEvent::Properties::OrHash,
64
+ type: Orb::CustomerEditedWebhookEvent::Type::OrSymbol
65
+ ).returns(T.attached_class)
66
+ end
67
+ def self.new(
68
+ # The ID of this webhook event.
69
+ id:,
70
+ # The time at which this event was created, to the second.
71
+ created_at:,
72
+ # A customer is a buyer of your products, and the other party to the billing
73
+ # relationship.
74
+ #
75
+ # In Orb, customers are assigned system generated identifiers automatically, but
76
+ # it's often desirable to have these match existing identifiers in your system. To
77
+ # avoid having to denormalize Orb ID information, you can pass in an
78
+ # `external_customer_id` with your own identifier. See
79
+ # [Customer ID Aliases](/events-and-metrics/customer-aliases) for further
80
+ # information about how these aliases work in Orb.
81
+ #
82
+ # In addition to having an identifier in your system, a customer may exist in a
83
+ # payment provider solution like Stripe. Use the `payment_provider_id` and the
84
+ # `payment_provider` enum field to express this mapping.
85
+ #
86
+ # A customer also has a timezone (from the standard
87
+ # [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
88
+ # your account's timezone. See [Timezone localization](/essentials/timezones) for
89
+ # information on what this timezone parameter influences within Orb.
90
+ customer:,
91
+ properties:,
92
+ # The event this payload describes.
93
+ type:
94
+ )
95
+ end
96
+
97
+ sig do
98
+ override.returns(
99
+ {
100
+ id: String,
101
+ created_at: Time,
102
+ customer: Orb::Customer,
103
+ properties: Orb::CustomerEditedWebhookEvent::Properties,
104
+ type: Orb::CustomerEditedWebhookEvent::Type::TaggedSymbol
105
+ }
106
+ )
107
+ end
108
+ def to_hash
109
+ end
110
+
111
+ class Properties < Orb::Internal::Type::BaseModel
112
+ OrHash =
113
+ T.type_alias do
114
+ T.any(
115
+ Orb::CustomerEditedWebhookEvent::Properties,
116
+ Orb::Internal::AnyHash
117
+ )
118
+ end
119
+
120
+ # metadata values are non-null on the wire (deleting a key removes it from
121
+ # storage); the Optional[str] values only exist on the new half of a metadata
122
+ # FieldChange.
123
+ sig do
124
+ returns(
125
+ Orb::CustomerEditedWebhookEvent::Properties::PreviousAttributes
126
+ )
127
+ end
128
+ attr_reader :previous_attributes
129
+
130
+ sig do
131
+ params(
132
+ previous_attributes:
133
+ Orb::CustomerEditedWebhookEvent::Properties::PreviousAttributes::OrHash
134
+ ).void
135
+ end
136
+ attr_writer :previous_attributes
137
+
138
+ sig do
139
+ params(
140
+ previous_attributes:
141
+ Orb::CustomerEditedWebhookEvent::Properties::PreviousAttributes::OrHash
142
+ ).returns(T.attached_class)
143
+ end
144
+ def self.new(
145
+ # metadata values are non-null on the wire (deleting a key removes it from
146
+ # storage); the Optional[str] values only exist on the new half of a metadata
147
+ # FieldChange.
148
+ previous_attributes:
149
+ )
150
+ end
151
+
152
+ sig do
153
+ override.returns(
154
+ {
155
+ previous_attributes:
156
+ Orb::CustomerEditedWebhookEvent::Properties::PreviousAttributes
157
+ }
158
+ )
159
+ end
160
+ def to_hash
161
+ end
162
+
163
+ class PreviousAttributes < Orb::Internal::Type::BaseModel
164
+ OrHash =
165
+ T.type_alias do
166
+ T.any(
167
+ Orb::CustomerEditedWebhookEvent::Properties::PreviousAttributes,
168
+ Orb::Internal::AnyHash
169
+ )
170
+ end
171
+
172
+ sig { returns(T.nilable(T::Boolean)) }
173
+ attr_accessor :auto_collection
174
+
175
+ sig { returns(T.nilable(Orb::Address)) }
176
+ attr_reader :billing_address
177
+
178
+ sig { params(billing_address: T.nilable(Orb::Address::OrHash)).void }
179
+ attr_writer :billing_address
180
+
181
+ sig { returns(T.nilable(String)) }
182
+ attr_accessor :default_payment_method_id
183
+
184
+ sig { returns(T.nilable(String)) }
185
+ attr_accessor :email
186
+
187
+ sig { returns(T.nilable(T::Boolean)) }
188
+ attr_accessor :email_delivery
189
+
190
+ sig { returns(T.nilable(String)) }
191
+ attr_accessor :external_customer_id
192
+
193
+ sig { returns(T.nilable(T::Hash[Symbol, String])) }
194
+ attr_accessor :metadata
195
+
196
+ sig { returns(T.nilable(String)) }
197
+ attr_accessor :name
198
+
199
+ sig { returns(T.nilable(String)) }
200
+ attr_accessor :payment_provider
201
+
202
+ sig { returns(T.nilable(String)) }
203
+ attr_accessor :payment_provider_id
204
+
205
+ sig { returns(T.nilable(Orb::Address)) }
206
+ attr_reader :shipping_address
207
+
208
+ sig { params(shipping_address: T.nilable(Orb::Address::OrHash)).void }
209
+ attr_writer :shipping_address
210
+
211
+ # Tax IDs are commonly required to be displayed on customer invoices, which are
212
+ # added to the headers of invoices.
213
+ #
214
+ # ### Supported Tax ID Countries and Types
215
+ #
216
+ # | Country | Type | Description |
217
+ # | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
218
+ # | Albania | `al_tin` | Albania Tax Identification Number |
219
+ # | Andorra | `ad_nrt` | Andorran NRT Number |
220
+ # | Angola | `ao_tin` | Angola Tax Identification Number |
221
+ # | Argentina | `ar_cuit` | Argentinian Tax ID Number |
222
+ # | Armenia | `am_tin` | Armenia Tax Identification Number |
223
+ # | Aruba | `aw_tin` | Aruba Tax Identification Number |
224
+ # | Australia | `au_abn` | Australian Business Number (AU ABN) |
225
+ # | Australia | `au_arn` | Australian Taxation Office Reference Number |
226
+ # | Austria | `eu_vat` | European VAT Number |
227
+ # | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number |
228
+ # | Bahamas | `bs_tin` | Bahamas Tax Identification Number |
229
+ # | Bahrain | `bh_vat` | Bahraini VAT Number |
230
+ # | Bangladesh | `bd_bin` | Bangladesh Business Identification Number |
231
+ # | Barbados | `bb_tin` | Barbados Tax Identification Number |
232
+ # | Belarus | `by_tin` | Belarus TIN Number |
233
+ # | Belgium | `eu_vat` | European VAT Number |
234
+ # | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) |
235
+ # | Bolivia | `bo_tin` | Bolivian Tax ID |
236
+ # | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number |
237
+ # | Brazil | `br_cnpj` | Brazilian CNPJ Number |
238
+ # | Brazil | `br_cpf` | Brazilian CPF Number |
239
+ # | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
240
+ # | Bulgaria | `eu_vat` | European VAT Number |
241
+ # | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) |
242
+ # | Cambodia | `kh_tin` | Cambodia Tax Identification Number |
243
+ # | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) |
244
+ # | Canada | `ca_bn` | Canadian BN |
245
+ # | Canada | `ca_gst_hst` | Canadian GST/HST Number |
246
+ # | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
247
+ # | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
248
+ # | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
249
+ # | Canada | `ca_qst` | Canadian QST Number (Québec) |
250
+ # | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) |
251
+ # | Chile | `cl_tin` | Chilean TIN |
252
+ # | China | `cn_tin` | Chinese Tax ID |
253
+ # | Colombia | `co_nit` | Colombian NIT Number |
254
+ # | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) |
255
+ # | Costa Rica | `cr_tin` | Costa Rican Tax ID |
256
+ # | Croatia | `eu_vat` | European VAT Number |
257
+ # | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) |
258
+ # | Cyprus | `eu_vat` | European VAT Number |
259
+ # | Czech Republic | `eu_vat` | European VAT Number |
260
+ # | Denmark | `eu_vat` | European VAT Number |
261
+ # | Dominican Republic | `do_rcn` | Dominican RCN Number |
262
+ # | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
263
+ # | Egypt | `eg_tin` | Egyptian Tax Identification Number |
264
+ # | El Salvador | `sv_nit` | El Salvadorian NIT Number |
265
+ # | Estonia | `eu_vat` | European VAT Number |
266
+ # | Ethiopia | `et_tin` | Ethiopia Tax Identification Number |
267
+ # | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
268
+ # | Faroe Islands | `fo_vat` | Faroe Islands VAT Number |
269
+ # | Finland | `eu_vat` | European VAT Number |
270
+ # | France | `eu_vat` | European VAT Number |
271
+ # | Georgia | `ge_vat` | Georgian VAT |
272
+ # | Germany | `de_stn` | German Tax Number (Steuernummer) |
273
+ # | Germany | `eu_vat` | European VAT Number |
274
+ # | Gibraltar | `gi_tin` | Gibraltar Tax Identification Number |
275
+ # | Greece | `eu_vat` | European VAT Number |
276
+ # | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) |
277
+ # | Hong Kong | `hk_br` | Hong Kong BR Number |
278
+ # | Hungary | `eu_vat` | European VAT Number |
279
+ # | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
280
+ # | Iceland | `is_vat` | Icelandic VAT |
281
+ # | India | `in_gst` | Indian GST Number |
282
+ # | Indonesia | `id_npwp` | Indonesian NPWP Number |
283
+ # | Ireland | `eu_vat` | European VAT Number |
284
+ # | Israel | `il_vat` | Israel VAT |
285
+ # | Italy | `eu_vat` | European VAT Number |
286
+ # | Italy | `it_cf` | Italian Codice Fiscale Number |
287
+ # | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
288
+ # | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
289
+ # | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
290
+ # | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
291
+ # | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
292
+ # | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number |
293
+ # | Laos | `la_tin` | Laos Tax Identification Number |
294
+ # | Latvia | `eu_vat` | European VAT Number |
295
+ # | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
296
+ # | Liechtenstein | `li_vat` | Liechtenstein VAT Number |
297
+ # | Lithuania | `eu_vat` | European VAT Number |
298
+ # | Luxembourg | `eu_vat` | European VAT Number |
299
+ # | Malaysia | `my_frp` | Malaysian FRP Number |
300
+ # | Malaysia | `my_itn` | Malaysian ITN |
301
+ # | Malaysia | `my_sst` | Malaysian SST Number |
302
+ # | Malta | `eu_vat` | European VAT Number |
303
+ # | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) |
304
+ # | Mexico | `mx_rfc` | Mexican RFC Number |
305
+ # | Moldova | `md_vat` | Moldova VAT Number |
306
+ # | Montenegro | `me_pib` | Montenegro PIB Number |
307
+ # | Morocco | `ma_vat` | Morocco VAT Number |
308
+ # | Nepal | `np_pan` | Nepal PAN Number |
309
+ # | Netherlands | `eu_vat` | European VAT Number |
310
+ # | New Zealand | `nz_gst` | New Zealand GST Number |
311
+ # | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
312
+ # | North Macedonia | `mk_vat` | North Macedonia VAT Number |
313
+ # | Northern Ireland | `eu_vat` | Northern Ireland VAT Number |
314
+ # | Norway | `no_vat` | Norwegian VAT Number |
315
+ # | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
316
+ # | Oman | `om_vat` | Omani VAT Number |
317
+ # | Paraguay | `py_ruc` | Paraguayan RUC Number |
318
+ # | Peru | `pe_ruc` | Peruvian RUC Number |
319
+ # | Philippines | `ph_tin` | Philippines Tax Identification Number |
320
+ # | Poland | `eu_vat` | European VAT Number |
321
+ # | Poland | `pl_nip` | Polish Tax ID Number |
322
+ # | Portugal | `eu_vat` | European VAT Number |
323
+ # | Romania | `eu_vat` | European VAT Number |
324
+ # | Romania | `ro_tin` | Romanian Tax ID Number |
325
+ # | Russia | `ru_inn` | Russian INN |
326
+ # | Russia | `ru_kpp` | Russian KPP |
327
+ # | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
328
+ # | Senegal | `sn_ninea` | Senegal NINEA Number |
329
+ # | Serbia | `rs_pib` | Serbian PIB Number |
330
+ # | Singapore | `sg_gst` | Singaporean GST |
331
+ # | Singapore | `sg_uen` | Singaporean UEN |
332
+ # | Slovakia | `eu_vat` | European VAT Number |
333
+ # | Slovenia | `eu_vat` | European VAT Number |
334
+ # | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
335
+ # | South Africa | `za_vat` | South African VAT Number |
336
+ # | South Korea | `kr_brn` | Korean BRN |
337
+ # | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
338
+ # | Spain | `eu_vat` | European VAT Number |
339
+ # | Sri Lanka | `lk_vat` | Sri Lanka VAT Number |
340
+ # | Suriname | `sr_fin` | Suriname FIN Number |
341
+ # | Sweden | `eu_vat` | European VAT Number |
342
+ # | Switzerland | `ch_uid` | Switzerland UID Number |
343
+ # | Switzerland | `ch_vat` | Switzerland VAT Number |
344
+ # | Taiwan | `tw_vat` | Taiwanese VAT |
345
+ # | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number |
346
+ # | Tanzania | `tz_vat` | Tanzania VAT Number |
347
+ # | Thailand | `th_vat` | Thai VAT |
348
+ # | Turkey | `tr_tin` | Turkish Tax Identification Number |
349
+ # | Uganda | `ug_tin` | Uganda Tax Identification Number |
350
+ # | Ukraine | `ua_vat` | Ukrainian VAT |
351
+ # | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
352
+ # | United Kingdom | `gb_vat` | United Kingdom VAT Number |
353
+ # | United States | `us_ein` | United States EIN |
354
+ # | Uruguay | `uy_ruc` | Uruguayan RUC Number |
355
+ # | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
356
+ # | Uzbekistan | `uz_vat` | Uzbekistan VAT Number |
357
+ # | Venezuela | `ve_rif` | Venezuelan RIF Number |
358
+ # | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
359
+ # | Zambia | `zm_tin` | Zambia Tax Identification Number |
360
+ # | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number |
361
+ sig { returns(T.nilable(Orb::CustomerTaxID)) }
362
+ attr_reader :tax_id
363
+
364
+ sig { params(tax_id: T.nilable(Orb::CustomerTaxID::OrHash)).void }
365
+ attr_writer :tax_id
366
+
367
+ # metadata values are non-null on the wire (deleting a key removes it from
368
+ # storage); the Optional[str] values only exist on the new half of a metadata
369
+ # FieldChange.
370
+ sig do
371
+ params(
372
+ auto_collection: T.nilable(T::Boolean),
373
+ billing_address: T.nilable(Orb::Address::OrHash),
374
+ default_payment_method_id: T.nilable(String),
375
+ email: T.nilable(String),
376
+ email_delivery: T.nilable(T::Boolean),
377
+ external_customer_id: T.nilable(String),
378
+ metadata: T.nilable(T::Hash[Symbol, String]),
379
+ name: T.nilable(String),
380
+ payment_provider: T.nilable(String),
381
+ payment_provider_id: T.nilable(String),
382
+ shipping_address: T.nilable(Orb::Address::OrHash),
383
+ tax_id: T.nilable(Orb::CustomerTaxID::OrHash)
384
+ ).returns(T.attached_class)
385
+ end
386
+ def self.new(
387
+ auto_collection: nil,
388
+ billing_address: nil,
389
+ default_payment_method_id: nil,
390
+ email: nil,
391
+ email_delivery: nil,
392
+ external_customer_id: nil,
393
+ metadata: nil,
394
+ name: nil,
395
+ payment_provider: nil,
396
+ payment_provider_id: nil,
397
+ shipping_address: nil,
398
+ # Tax IDs are commonly required to be displayed on customer invoices, which are
399
+ # added to the headers of invoices.
400
+ #
401
+ # ### Supported Tax ID Countries and Types
402
+ #
403
+ # | Country | Type | Description |
404
+ # | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
405
+ # | Albania | `al_tin` | Albania Tax Identification Number |
406
+ # | Andorra | `ad_nrt` | Andorran NRT Number |
407
+ # | Angola | `ao_tin` | Angola Tax Identification Number |
408
+ # | Argentina | `ar_cuit` | Argentinian Tax ID Number |
409
+ # | Armenia | `am_tin` | Armenia Tax Identification Number |
410
+ # | Aruba | `aw_tin` | Aruba Tax Identification Number |
411
+ # | Australia | `au_abn` | Australian Business Number (AU ABN) |
412
+ # | Australia | `au_arn` | Australian Taxation Office Reference Number |
413
+ # | Austria | `eu_vat` | European VAT Number |
414
+ # | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number |
415
+ # | Bahamas | `bs_tin` | Bahamas Tax Identification Number |
416
+ # | Bahrain | `bh_vat` | Bahraini VAT Number |
417
+ # | Bangladesh | `bd_bin` | Bangladesh Business Identification Number |
418
+ # | Barbados | `bb_tin` | Barbados Tax Identification Number |
419
+ # | Belarus | `by_tin` | Belarus TIN Number |
420
+ # | Belgium | `eu_vat` | European VAT Number |
421
+ # | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) |
422
+ # | Bolivia | `bo_tin` | Bolivian Tax ID |
423
+ # | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number |
424
+ # | Brazil | `br_cnpj` | Brazilian CNPJ Number |
425
+ # | Brazil | `br_cpf` | Brazilian CPF Number |
426
+ # | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
427
+ # | Bulgaria | `eu_vat` | European VAT Number |
428
+ # | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) |
429
+ # | Cambodia | `kh_tin` | Cambodia Tax Identification Number |
430
+ # | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) |
431
+ # | Canada | `ca_bn` | Canadian BN |
432
+ # | Canada | `ca_gst_hst` | Canadian GST/HST Number |
433
+ # | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
434
+ # | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
435
+ # | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
436
+ # | Canada | `ca_qst` | Canadian QST Number (Québec) |
437
+ # | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) |
438
+ # | Chile | `cl_tin` | Chilean TIN |
439
+ # | China | `cn_tin` | Chinese Tax ID |
440
+ # | Colombia | `co_nit` | Colombian NIT Number |
441
+ # | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) |
442
+ # | Costa Rica | `cr_tin` | Costa Rican Tax ID |
443
+ # | Croatia | `eu_vat` | European VAT Number |
444
+ # | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) |
445
+ # | Cyprus | `eu_vat` | European VAT Number |
446
+ # | Czech Republic | `eu_vat` | European VAT Number |
447
+ # | Denmark | `eu_vat` | European VAT Number |
448
+ # | Dominican Republic | `do_rcn` | Dominican RCN Number |
449
+ # | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
450
+ # | Egypt | `eg_tin` | Egyptian Tax Identification Number |
451
+ # | El Salvador | `sv_nit` | El Salvadorian NIT Number |
452
+ # | Estonia | `eu_vat` | European VAT Number |
453
+ # | Ethiopia | `et_tin` | Ethiopia Tax Identification Number |
454
+ # | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
455
+ # | Faroe Islands | `fo_vat` | Faroe Islands VAT Number |
456
+ # | Finland | `eu_vat` | European VAT Number |
457
+ # | France | `eu_vat` | European VAT Number |
458
+ # | Georgia | `ge_vat` | Georgian VAT |
459
+ # | Germany | `de_stn` | German Tax Number (Steuernummer) |
460
+ # | Germany | `eu_vat` | European VAT Number |
461
+ # | Gibraltar | `gi_tin` | Gibraltar Tax Identification Number |
462
+ # | Greece | `eu_vat` | European VAT Number |
463
+ # | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) |
464
+ # | Hong Kong | `hk_br` | Hong Kong BR Number |
465
+ # | Hungary | `eu_vat` | European VAT Number |
466
+ # | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
467
+ # | Iceland | `is_vat` | Icelandic VAT |
468
+ # | India | `in_gst` | Indian GST Number |
469
+ # | Indonesia | `id_npwp` | Indonesian NPWP Number |
470
+ # | Ireland | `eu_vat` | European VAT Number |
471
+ # | Israel | `il_vat` | Israel VAT |
472
+ # | Italy | `eu_vat` | European VAT Number |
473
+ # | Italy | `it_cf` | Italian Codice Fiscale Number |
474
+ # | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
475
+ # | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
476
+ # | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
477
+ # | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
478
+ # | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
479
+ # | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number |
480
+ # | Laos | `la_tin` | Laos Tax Identification Number |
481
+ # | Latvia | `eu_vat` | European VAT Number |
482
+ # | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
483
+ # | Liechtenstein | `li_vat` | Liechtenstein VAT Number |
484
+ # | Lithuania | `eu_vat` | European VAT Number |
485
+ # | Luxembourg | `eu_vat` | European VAT Number |
486
+ # | Malaysia | `my_frp` | Malaysian FRP Number |
487
+ # | Malaysia | `my_itn` | Malaysian ITN |
488
+ # | Malaysia | `my_sst` | Malaysian SST Number |
489
+ # | Malta | `eu_vat` | European VAT Number |
490
+ # | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) |
491
+ # | Mexico | `mx_rfc` | Mexican RFC Number |
492
+ # | Moldova | `md_vat` | Moldova VAT Number |
493
+ # | Montenegro | `me_pib` | Montenegro PIB Number |
494
+ # | Morocco | `ma_vat` | Morocco VAT Number |
495
+ # | Nepal | `np_pan` | Nepal PAN Number |
496
+ # | Netherlands | `eu_vat` | European VAT Number |
497
+ # | New Zealand | `nz_gst` | New Zealand GST Number |
498
+ # | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
499
+ # | North Macedonia | `mk_vat` | North Macedonia VAT Number |
500
+ # | Northern Ireland | `eu_vat` | Northern Ireland VAT Number |
501
+ # | Norway | `no_vat` | Norwegian VAT Number |
502
+ # | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
503
+ # | Oman | `om_vat` | Omani VAT Number |
504
+ # | Paraguay | `py_ruc` | Paraguayan RUC Number |
505
+ # | Peru | `pe_ruc` | Peruvian RUC Number |
506
+ # | Philippines | `ph_tin` | Philippines Tax Identification Number |
507
+ # | Poland | `eu_vat` | European VAT Number |
508
+ # | Poland | `pl_nip` | Polish Tax ID Number |
509
+ # | Portugal | `eu_vat` | European VAT Number |
510
+ # | Romania | `eu_vat` | European VAT Number |
511
+ # | Romania | `ro_tin` | Romanian Tax ID Number |
512
+ # | Russia | `ru_inn` | Russian INN |
513
+ # | Russia | `ru_kpp` | Russian KPP |
514
+ # | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
515
+ # | Senegal | `sn_ninea` | Senegal NINEA Number |
516
+ # | Serbia | `rs_pib` | Serbian PIB Number |
517
+ # | Singapore | `sg_gst` | Singaporean GST |
518
+ # | Singapore | `sg_uen` | Singaporean UEN |
519
+ # | Slovakia | `eu_vat` | European VAT Number |
520
+ # | Slovenia | `eu_vat` | European VAT Number |
521
+ # | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
522
+ # | South Africa | `za_vat` | South African VAT Number |
523
+ # | South Korea | `kr_brn` | Korean BRN |
524
+ # | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
525
+ # | Spain | `eu_vat` | European VAT Number |
526
+ # | Sri Lanka | `lk_vat` | Sri Lanka VAT Number |
527
+ # | Suriname | `sr_fin` | Suriname FIN Number |
528
+ # | Sweden | `eu_vat` | European VAT Number |
529
+ # | Switzerland | `ch_uid` | Switzerland UID Number |
530
+ # | Switzerland | `ch_vat` | Switzerland VAT Number |
531
+ # | Taiwan | `tw_vat` | Taiwanese VAT |
532
+ # | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number |
533
+ # | Tanzania | `tz_vat` | Tanzania VAT Number |
534
+ # | Thailand | `th_vat` | Thai VAT |
535
+ # | Turkey | `tr_tin` | Turkish Tax Identification Number |
536
+ # | Uganda | `ug_tin` | Uganda Tax Identification Number |
537
+ # | Ukraine | `ua_vat` | Ukrainian VAT |
538
+ # | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
539
+ # | United Kingdom | `gb_vat` | United Kingdom VAT Number |
540
+ # | United States | `us_ein` | United States EIN |
541
+ # | Uruguay | `uy_ruc` | Uruguayan RUC Number |
542
+ # | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
543
+ # | Uzbekistan | `uz_vat` | Uzbekistan VAT Number |
544
+ # | Venezuela | `ve_rif` | Venezuelan RIF Number |
545
+ # | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
546
+ # | Zambia | `zm_tin` | Zambia Tax Identification Number |
547
+ # | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number |
548
+ tax_id: nil
549
+ )
550
+ end
551
+
552
+ sig do
553
+ override.returns(
554
+ {
555
+ auto_collection: T.nilable(T::Boolean),
556
+ billing_address: T.nilable(Orb::Address),
557
+ default_payment_method_id: T.nilable(String),
558
+ email: T.nilable(String),
559
+ email_delivery: T.nilable(T::Boolean),
560
+ external_customer_id: T.nilable(String),
561
+ metadata: T.nilable(T::Hash[Symbol, String]),
562
+ name: T.nilable(String),
563
+ payment_provider: T.nilable(String),
564
+ payment_provider_id: T.nilable(String),
565
+ shipping_address: T.nilable(Orb::Address),
566
+ tax_id: T.nilable(Orb::CustomerTaxID)
567
+ }
568
+ )
569
+ end
570
+ def to_hash
571
+ end
572
+ end
573
+ end
574
+
575
+ # The event this payload describes.
576
+ module Type
577
+ extend Orb::Internal::Type::Enum
578
+
579
+ TaggedSymbol =
580
+ T.type_alias { T.all(Symbol, Orb::CustomerEditedWebhookEvent::Type) }
581
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
582
+
583
+ CUSTOMER_EDITED =
584
+ T.let(
585
+ :"customer.edited",
586
+ Orb::CustomerEditedWebhookEvent::Type::TaggedSymbol
587
+ )
588
+
589
+ sig do
590
+ override.returns(
591
+ T::Array[Orb::CustomerEditedWebhookEvent::Type::TaggedSymbol]
592
+ )
593
+ end
594
+ def self.values
595
+ end
596
+ end
597
+ end
598
+ end
599
+ end