stripe 5.38.0 → 15.2.1

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 (708) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +742 -0
  3. data/CONTRIBUTING.md +25 -0
  4. data/Gemfile +12 -4
  5. data/Makefile +22 -0
  6. data/OPENAPI_VERSION +1 -0
  7. data/README.md +137 -27
  8. data/Rakefile +3 -6
  9. data/VERSION +1 -1
  10. data/examples/README.md +16 -0
  11. data/examples/example_template.rb +36 -0
  12. data/examples/meter_event_stream.rb +57 -0
  13. data/examples/thinevent_webhook_handler.rb +39 -0
  14. data/{bin → exe}/stripe-console +1 -1
  15. data/justfile +43 -0
  16. data/lib/data/ca-certificates.crt +1241 -1937
  17. data/lib/stripe/api_operations/create.rb +6 -2
  18. data/lib/stripe/api_operations/delete.rb +12 -7
  19. data/lib/stripe/api_operations/list.rb +6 -9
  20. data/lib/stripe/api_operations/nested_resource.rb +59 -31
  21. data/lib/stripe/api_operations/request.rb +30 -65
  22. data/lib/stripe/api_operations/save.rb +20 -10
  23. data/lib/stripe/api_operations/search.rb +21 -0
  24. data/lib/stripe/api_operations/singleton_save.rb +90 -0
  25. data/lib/stripe/api_requestor.rb +1136 -0
  26. data/lib/stripe/api_resource.rb +49 -34
  27. data/lib/stripe/api_resource_test_helpers.rb +53 -0
  28. data/lib/stripe/{resources/usage_record.rb → api_version.rb} +2 -2
  29. data/lib/stripe/connection_manager.rb +28 -11
  30. data/lib/stripe/errors.rb +11 -20
  31. data/lib/stripe/event_types.rb +15 -0
  32. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +23 -0
  33. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +13 -0
  34. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
  35. data/lib/stripe/instrumentation.rb +37 -15
  36. data/lib/stripe/list_object.rb +5 -3
  37. data/lib/stripe/multipart_encoder.rb +7 -7
  38. data/lib/stripe/oauth.rb +14 -21
  39. data/lib/stripe/object_types.rb +157 -91
  40. data/lib/stripe/request_options.rb +129 -0
  41. data/lib/stripe/request_params.rb +24 -0
  42. data/lib/stripe/resources/account.rb +4854 -30
  43. data/lib/stripe/resources/account_link.rb +66 -0
  44. data/lib/stripe/resources/account_session.rb +868 -0
  45. data/lib/stripe/resources/alipay_account.rb +1 -1
  46. data/lib/stripe/resources/apple_pay_domain.rb +91 -0
  47. data/lib/stripe/resources/application.rb +20 -0
  48. data/lib/stripe/resources/application_fee.rb +96 -2
  49. data/lib/stripe/resources/application_fee_refund.rb +26 -2
  50. data/lib/stripe/resources/apps/secret.rb +196 -0
  51. data/lib/stripe/resources/balance.rb +178 -0
  52. data/lib/stripe/resources/balance_transaction.rb +124 -0
  53. data/lib/stripe/resources/bank_account.rb +137 -6
  54. data/lib/stripe/resources/billing/alert.rb +222 -0
  55. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  56. data/lib/stripe/resources/billing/credit_balance_summary.rb +54 -0
  57. data/lib/stripe/resources/billing/credit_balance_transaction.rb +133 -0
  58. data/lib/stripe/resources/billing/credit_grant.rb +307 -0
  59. data/lib/stripe/resources/billing/meter.rb +254 -0
  60. data/lib/stripe/resources/billing/meter_event.rb +61 -0
  61. data/lib/stripe/resources/billing/meter_event_adjustment.rb +69 -0
  62. data/lib/stripe/resources/billing/meter_event_summary.rb +32 -0
  63. data/lib/stripe/resources/billing_portal/configuration.rb +587 -0
  64. data/lib/stripe/resources/billing_portal/session.rb +298 -0
  65. data/lib/stripe/resources/capability.rb +91 -2
  66. data/lib/stripe/resources/card.rb +111 -3
  67. data/lib/stripe/resources/cash_balance.rb +43 -0
  68. data/lib/stripe/resources/charge.rb +1682 -2
  69. data/lib/stripe/resources/checkout/session.rb +3666 -2
  70. data/lib/stripe/resources/climate/order.rb +234 -0
  71. data/lib/stripe/resources/climate/product.rb +74 -0
  72. data/lib/stripe/resources/climate/supplier.rb +71 -0
  73. data/lib/stripe/resources/confirmation_token.rb +1498 -0
  74. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  75. data/lib/stripe/resources/country_spec.rb +68 -0
  76. data/lib/stripe/resources/coupon.rb +236 -0
  77. data/lib/stripe/resources/credit_note.rb +709 -9
  78. data/lib/stripe/resources/credit_note_line_item.rb +71 -0
  79. data/lib/stripe/resources/customer.rb +1015 -16
  80. data/lib/stripe/resources/customer_balance_transaction.rb +38 -1
  81. data/lib/stripe/resources/customer_cash_balance_transaction.rb +124 -0
  82. data/lib/stripe/resources/customer_session.rb +188 -0
  83. data/lib/stripe/resources/discount.rb +37 -0
  84. data/lib/stripe/resources/dispute.rb +650 -2
  85. data/lib/stripe/resources/entitlements/active_entitlement.rb +63 -0
  86. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  87. data/lib/stripe/resources/entitlements/feature.rb +130 -0
  88. data/lib/stripe/resources/ephemeral_key.rb +44 -0
  89. data/lib/stripe/resources/event.rb +130 -0
  90. data/lib/stripe/resources/exchange_rate.rb +58 -0
  91. data/lib/stripe/resources/file.rb +139 -15
  92. data/lib/stripe/resources/file_link.rb +129 -0
  93. data/lib/stripe/resources/financial_connections/account.rb +363 -0
  94. data/lib/stripe/resources/financial_connections/account_owner.rb +31 -0
  95. data/lib/stripe/resources/financial_connections/account_ownership.rb +23 -0
  96. data/lib/stripe/resources/financial_connections/session.rb +121 -0
  97. data/lib/stripe/resources/financial_connections/transaction.rb +118 -0
  98. data/lib/stripe/resources/forwarding/request.rb +208 -0
  99. data/lib/stripe/resources/funding_instructions.rb +332 -0
  100. data/lib/stripe/resources/identity/verification_report.rb +287 -0
  101. data/lib/stripe/resources/identity/verification_session.rb +474 -4
  102. data/lib/stripe/resources/invoice.rb +3525 -17
  103. data/lib/stripe/resources/invoice_item.rb +453 -0
  104. data/lib/stripe/resources/invoice_line_item.rb +372 -1
  105. data/lib/stripe/resources/invoice_payment.rb +112 -0
  106. data/lib/stripe/resources/invoice_rendering_template.rb +120 -0
  107. data/lib/stripe/resources/issuing/authorization.rb +1313 -4
  108. data/lib/stripe/resources/issuing/card.rb +785 -4
  109. data/lib/stripe/resources/issuing/cardholder.rb +684 -0
  110. data/lib/stripe/resources/issuing/dispute.rb +828 -2
  111. data/lib/stripe/resources/issuing/personalization_design.rb +395 -0
  112. data/lib/stripe/resources/issuing/physical_bundle.rb +80 -0
  113. data/lib/stripe/resources/issuing/token.rb +198 -0
  114. data/lib/stripe/resources/issuing/transaction.rb +991 -0
  115. data/lib/stripe/resources/line_item.rb +51 -0
  116. data/lib/stripe/resources/login_link.rb +12 -0
  117. data/lib/stripe/resources/mandate.rb +146 -0
  118. data/lib/stripe/resources/payment_intent.rb +8876 -6
  119. data/lib/stripe/resources/payment_link.rb +1692 -0
  120. data/lib/stripe/resources/payment_method.rb +1570 -4
  121. data/lib/stripe/resources/payment_method_configuration.rb +3189 -0
  122. data/lib/stripe/resources/payment_method_domain.rb +236 -0
  123. data/lib/stripe/resources/payout.rb +271 -4
  124. data/lib/stripe/resources/person.rb +295 -1
  125. data/lib/stripe/resources/plan.rb +352 -0
  126. data/lib/stripe/resources/price.rb +642 -0
  127. data/lib/stripe/resources/product.rb +534 -0
  128. data/lib/stripe/resources/product_feature.rb +25 -0
  129. data/lib/stripe/resources/promotion_code.rb +237 -0
  130. data/lib/stripe/resources/quote.rb +1015 -38
  131. data/lib/stripe/resources/radar/early_fraud_warning.rb +85 -0
  132. data/lib/stripe/resources/radar/value_list.rb +171 -0
  133. data/lib/stripe/resources/radar/value_list_item.rb +131 -0
  134. data/lib/stripe/resources/refund.rb +494 -0
  135. data/lib/stripe/resources/reporting/report_run.rb +172 -0
  136. data/lib/stripe/resources/reporting/report_type.rb +48 -1
  137. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  138. data/lib/stripe/resources/reversal.rb +38 -2
  139. data/lib/stripe/resources/review.rb +122 -2
  140. data/lib/stripe/resources/setup_attempt.rb +380 -0
  141. data/lib/stripe/resources/setup_intent.rb +3432 -4
  142. data/lib/stripe/resources/shipping_rate.rb +287 -0
  143. data/lib/stripe/resources/sigma/scheduled_query_run.rb +62 -0
  144. data/lib/stripe/resources/source.rb +1250 -10
  145. data/lib/stripe/resources/source_mandate_notification.rb +66 -0
  146. data/lib/stripe/resources/source_transaction.rb +93 -0
  147. data/lib/stripe/resources/subscription.rb +1871 -3
  148. data/lib/stripe/resources/subscription_item.rb +399 -10
  149. data/lib/stripe/resources/subscription_schedule.rb +1455 -4
  150. data/lib/stripe/resources/tax/calculation.rb +430 -0
  151. data/lib/stripe/resources/tax/calculation_line_item.rb +71 -0
  152. data/lib/stripe/resources/tax/registration.rb +2667 -0
  153. data/lib/stripe/resources/tax/settings.rb +134 -0
  154. data/lib/stripe/resources/tax/transaction.rb +314 -0
  155. data/lib/stripe/resources/tax/transaction_line_item.rb +44 -0
  156. data/lib/stripe/resources/tax_code.rb +35 -0
  157. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  158. data/lib/stripe/resources/tax_id.rb +144 -11
  159. data/lib/stripe/resources/tax_rate.rb +217 -0
  160. data/lib/stripe/resources/terminal/configuration.rb +1328 -0
  161. data/lib/stripe/resources/terminal/connection_token.rb +34 -0
  162. data/lib/stripe/resources/terminal/location.rb +222 -0
  163. data/lib/stripe/resources/terminal/reader.rb +886 -0
  164. data/lib/stripe/resources/test_helpers/test_clock.rb +156 -0
  165. data/lib/stripe/resources/token.rb +1249 -0
  166. data/lib/stripe/resources/topup.rb +204 -2
  167. data/lib/stripe/resources/transfer.rb +173 -6
  168. data/lib/stripe/resources/treasury/credit_reversal.rb +120 -0
  169. data/lib/stripe/resources/treasury/debit_reversal.rb +131 -0
  170. data/lib/stripe/resources/treasury/financial_account.rb +833 -0
  171. data/lib/stripe/resources/treasury/financial_account_features.rb +204 -0
  172. data/lib/stripe/resources/treasury/inbound_transfer.rb +356 -0
  173. data/lib/stripe/resources/treasury/outbound_payment.rb +638 -0
  174. data/lib/stripe/resources/treasury/outbound_transfer.rb +493 -0
  175. data/lib/stripe/resources/treasury/received_credit.rb +284 -0
  176. data/lib/stripe/resources/treasury/received_debit.rb +243 -0
  177. data/lib/stripe/resources/treasury/transaction.rb +193 -0
  178. data/lib/stripe/resources/treasury/transaction_entry.rb +178 -0
  179. data/lib/stripe/resources/v2/amount.rb +9 -0
  180. data/lib/stripe/resources/v2/billing/meter_event.rb +34 -0
  181. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +36 -0
  182. data/lib/stripe/resources/v2/billing/meter_event_session.rb +29 -0
  183. data/lib/stripe/resources/v2/event.rb +41 -0
  184. data/lib/stripe/resources/v2/event_destination.rb +73 -0
  185. data/lib/stripe/resources/webhook_endpoint.rb +167 -0
  186. data/lib/stripe/resources.rb +70 -12
  187. data/lib/stripe/search_result_object.rb +89 -0
  188. data/lib/stripe/services/account_capability_service.rb +71 -0
  189. data/lib/stripe/services/account_external_account_service.rb +317 -0
  190. data/lib/stripe/services/account_link_service.rb +63 -0
  191. data/lib/stripe/services/account_login_link_service.rb +28 -0
  192. data/lib/stripe/services/account_person_service.rb +1019 -0
  193. data/lib/stripe/services/account_service.rb +4171 -0
  194. data/lib/stripe/services/account_session_service.rb +569 -0
  195. data/lib/stripe/services/apple_pay_domain_service.rb +100 -0
  196. data/lib/stripe/services/application_fee_refund_service.rb +114 -0
  197. data/lib/stripe/services/application_fee_service.rb +92 -0
  198. data/lib/stripe/services/apps/secret_service.rb +168 -0
  199. data/lib/stripe/services/apps_service.rb +13 -0
  200. data/lib/stripe/services/balance_service.rb +21 -0
  201. data/lib/stripe/services/balance_transaction_service.rb +101 -0
  202. data/lib/stripe/services/billing/alert_service.rb +187 -0
  203. data/lib/stripe/services/billing/credit_balance_summary_service.rb +67 -0
  204. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +70 -0
  205. data/lib/stripe/services/billing/credit_grant_service.rb +240 -0
  206. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +45 -0
  207. data/lib/stripe/services/billing/meter_event_service.rb +40 -0
  208. data/lib/stripe/services/billing/meter_event_summary_service.rb +58 -0
  209. data/lib/stripe/services/billing/meter_service.rb +211 -0
  210. data/lib/stripe/services/billing_portal/configuration_service.rb +496 -0
  211. data/lib/stripe/services/billing_portal/session_service.rb +192 -0
  212. data/lib/stripe/services/billing_portal_service.rb +14 -0
  213. data/lib/stripe/services/billing_service.rb +20 -0
  214. data/lib/stripe/services/charge_service.rb +471 -0
  215. data/lib/stripe/services/checkout/session_line_item_service.rb +37 -0
  216. data/lib/stripe/services/checkout/session_service.rb +2495 -0
  217. data/lib/stripe/services/checkout_service.rb +13 -0
  218. data/lib/stripe/services/climate/order_service.rb +170 -0
  219. data/lib/stripe/services/climate/product_service.rb +57 -0
  220. data/lib/stripe/services/climate/supplier_service.rb +57 -0
  221. data/lib/stripe/services/climate_service.rb +15 -0
  222. data/lib/stripe/services/confirmation_token_service.rb +26 -0
  223. data/lib/stripe/services/country_spec_service.rb +55 -0
  224. data/lib/stripe/services/coupon_service.rb +202 -0
  225. data/lib/stripe/services/credit_note_line_item_service.rb +35 -0
  226. data/lib/stripe/services/credit_note_preview_lines_service.rb +169 -0
  227. data/lib/stripe/services/credit_note_service.rb +457 -0
  228. data/lib/stripe/services/customer_balance_transaction_service.rb +113 -0
  229. data/lib/stripe/services/customer_cash_balance_service.rb +57 -0
  230. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +55 -0
  231. data/lib/stripe/services/customer_funding_instructions_service.rb +61 -0
  232. data/lib/stripe/services/customer_payment_method_service.rb +68 -0
  233. data/lib/stripe/services/customer_payment_source_service.rb +255 -0
  234. data/lib/stripe/services/customer_service.rb +664 -0
  235. data/lib/stripe/services/customer_session_service.rb +113 -0
  236. data/lib/stripe/services/customer_tax_id_service.rb +94 -0
  237. data/lib/stripe/services/dispute_service.rb +422 -0
  238. data/lib/stripe/services/entitlements/active_entitlement_service.rb +66 -0
  239. data/lib/stripe/services/entitlements/feature_service.rb +128 -0
  240. data/lib/stripe/services/entitlements_service.rb +14 -0
  241. data/lib/stripe/services/ephemeral_key_service.rb +64 -0
  242. data/lib/stripe/services/event_service.rb +87 -0
  243. data/lib/stripe/services/exchange_rate_service.rb +55 -0
  244. data/lib/stripe/services/file_link_service.rb +132 -0
  245. data/lib/stripe/services/file_service.rb +124 -0
  246. data/lib/stripe/services/financial_connections/account_owner_service.rb +46 -0
  247. data/lib/stripe/services/financial_connections/account_service.rb +177 -0
  248. data/lib/stripe/services/financial_connections/session_service.rb +98 -0
  249. data/lib/stripe/services/financial_connections/transaction_service.rb +100 -0
  250. data/lib/stripe/services/financial_connections_service.rb +15 -0
  251. data/lib/stripe/services/forwarding/request_service.rb +147 -0
  252. data/lib/stripe/services/forwarding_service.rb +13 -0
  253. data/lib/stripe/services/identity/verification_report_service.rb +95 -0
  254. data/lib/stripe/services/identity/verification_session_service.rb +337 -0
  255. data/lib/stripe/services/identity_service.rb +14 -0
  256. data/lib/stripe/services/invoice_item_service.rb +394 -0
  257. data/lib/stripe/services/invoice_line_item_service.rb +252 -0
  258. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  259. data/lib/stripe/services/invoice_rendering_template_service.rb +101 -0
  260. data/lib/stripe/services/invoice_service.rb +2900 -0
  261. data/lib/stripe/services/issuing/authorization_service.rb +169 -0
  262. data/lib/stripe/services/issuing/card_service.rb +507 -0
  263. data/lib/stripe/services/issuing/cardholder_service.rb +577 -0
  264. data/lib/stripe/services/issuing/dispute_service.rb +696 -0
  265. data/lib/stripe/services/issuing/personalization_design_service.rb +245 -0
  266. data/lib/stripe/services/issuing/physical_bundle_service.rb +70 -0
  267. data/lib/stripe/services/issuing/token_service.rb +114 -0
  268. data/lib/stripe/services/issuing/transaction_service.rb +118 -0
  269. data/lib/stripe/services/issuing_service.rb +20 -0
  270. data/lib/stripe/services/mandate_service.rb +26 -0
  271. data/lib/stripe/services/oauth_service.rb +63 -0
  272. data/lib/stripe/services/payment_intent_service.rb +7202 -0
  273. data/lib/stripe/services/payment_link_line_item_service.rb +35 -0
  274. data/lib/stripe/services/payment_link_service.rb +1333 -0
  275. data/lib/stripe/services/payment_method_configuration_service.rb +2306 -0
  276. data/lib/stripe/services/payment_method_domain_service.rb +142 -0
  277. data/lib/stripe/services/payment_method_service.rb +843 -0
  278. data/lib/stripe/services/payout_service.rb +225 -0
  279. data/lib/stripe/services/plan_service.rb +297 -0
  280. data/lib/stripe/services/price_service.rb +545 -0
  281. data/lib/stripe/services/product_feature_service.rb +91 -0
  282. data/lib/stripe/services/product_service.rb +494 -0
  283. data/lib/stripe/services/promotion_code_service.rb +228 -0
  284. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +35 -0
  285. data/lib/stripe/services/quote_line_item_service.rb +35 -0
  286. data/lib/stripe/services/quote_service.rb +703 -0
  287. data/lib/stripe/services/radar/early_fraud_warning_service.rb +93 -0
  288. data/lib/stripe/services/radar/value_list_item_service.rb +130 -0
  289. data/lib/stripe/services/radar/value_list_service.rb +165 -0
  290. data/lib/stripe/services/radar_service.rb +15 -0
  291. data/lib/stripe/services/refund_service.rb +200 -0
  292. data/lib/stripe/services/reporting/report_run_service.rb +147 -0
  293. data/lib/stripe/services/reporting/report_type_service.rb +48 -0
  294. data/lib/stripe/services/reporting_service.rb +14 -0
  295. data/lib/stripe/services/review_service.rb +89 -0
  296. data/lib/stripe/services/setup_attempt_service.rb +68 -0
  297. data/lib/stripe/services/setup_intent_service.rb +3107 -0
  298. data/lib/stripe/services/shipping_rate_service.rb +250 -0
  299. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +57 -0
  300. data/lib/stripe/services/sigma_service.rb +13 -0
  301. data/lib/stripe/services/source_service.rb +665 -0
  302. data/lib/stripe/services/source_transaction_service.rb +35 -0
  303. data/lib/stripe/services/subscription_item_service.rb +372 -0
  304. data/lib/stripe/services/subscription_schedule_service.rb +1224 -0
  305. data/lib/stripe/services/subscription_service.rb +1590 -0
  306. data/lib/stripe/services/tax/calculation_line_item_service.rb +37 -0
  307. data/lib/stripe/services/tax/calculation_service.rb +246 -0
  308. data/lib/stripe/services/tax/registration_service.rb +1774 -0
  309. data/lib/stripe/services/tax/settings_service.rb +104 -0
  310. data/lib/stripe/services/tax/transaction_line_item_service.rb +37 -0
  311. data/lib/stripe/services/tax/transaction_service.rb +159 -0
  312. data/lib/stripe/services/tax_code_service.rb +49 -0
  313. data/lib/stripe/services/tax_id_service.rb +116 -0
  314. data/lib/stripe/services/tax_rate_service.rb +193 -0
  315. data/lib/stripe/services/tax_service.rb +16 -0
  316. data/lib/stripe/services/terminal/configuration_service.rb +1059 -0
  317. data/lib/stripe/services/terminal/connection_token_service.rb +31 -0
  318. data/lib/stripe/services/terminal/location_service.rb +207 -0
  319. data/lib/stripe/services/terminal/reader_service.rb +488 -0
  320. data/lib/stripe/services/terminal_service.rb +16 -0
  321. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +655 -0
  322. data/lib/stripe/services/test_helpers/customer_service.rb +37 -0
  323. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +832 -0
  324. data/lib/stripe/services/test_helpers/issuing/card_service.rb +110 -0
  325. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +84 -0
  326. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +675 -0
  327. data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
  328. data/lib/stripe/services/test_helpers/refund_service.rb +28 -0
  329. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +108 -0
  330. data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
  331. data/lib/stripe/services/test_helpers/test_clock_service.rb +119 -0
  332. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +81 -0
  333. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +141 -0
  334. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +141 -0
  335. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +81 -0
  336. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +81 -0
  337. data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
  338. data/lib/stripe/services/test_helpers_service.rb +19 -0
  339. data/lib/stripe/services/token_service.rb +1224 -0
  340. data/lib/stripe/services/topup_service.rb +191 -0
  341. data/lib/stripe/services/transfer_reversal_service.rb +122 -0
  342. data/lib/stripe/services/transfer_service.rb +166 -0
  343. data/lib/stripe/services/treasury/credit_reversal_service.rb +100 -0
  344. data/lib/stripe/services/treasury/debit_reversal_service.rb +104 -0
  345. data/lib/stripe/services/treasury/financial_account_features_service.rb +196 -0
  346. data/lib/stripe/services/treasury/financial_account_service.rb +554 -0
  347. data/lib/stripe/services/treasury/inbound_transfer_service.rb +140 -0
  348. data/lib/stripe/services/treasury/outbound_payment_service.rb +310 -0
  349. data/lib/stripe/services/treasury/outbound_transfer_service.rb +176 -0
  350. data/lib/stripe/services/treasury/received_credit_service.rb +82 -0
  351. data/lib/stripe/services/treasury/received_debit_service.rb +70 -0
  352. data/lib/stripe/services/treasury/transaction_entry_service.rb +117 -0
  353. data/lib/stripe/services/treasury/transaction_service.rb +125 -0
  354. data/lib/stripe/services/treasury_service.rb +22 -0
  355. data/lib/stripe/services/v1_services.rb +90 -0
  356. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +44 -0
  357. data/lib/stripe/services/v2/billing/meter_event_service.rb +46 -0
  358. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +23 -0
  359. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +56 -0
  360. data/lib/stripe/services/v2/billing_service.rb +18 -0
  361. data/lib/stripe/services/v2/core/event_destination_service.rb +235 -0
  362. data/lib/stripe/services/v2/core/event_service.rb +48 -0
  363. data/lib/stripe/services/v2/core_service.rb +16 -0
  364. data/lib/stripe/services/v2_services.rb +14 -0
  365. data/lib/stripe/services/webhook_endpoint_service.rb +156 -0
  366. data/lib/stripe/services.rb +180 -0
  367. data/lib/stripe/singleton_api_resource.rb +3 -3
  368. data/lib/stripe/stripe_client.rb +56 -1021
  369. data/lib/stripe/stripe_configuration.rb +63 -42
  370. data/lib/stripe/stripe_object.rb +75 -39
  371. data/lib/stripe/stripe_response.rb +1 -3
  372. data/lib/stripe/stripe_service.rb +32 -0
  373. data/lib/stripe/thin_event.rb +37 -0
  374. data/lib/stripe/util.rb +161 -39
  375. data/lib/stripe/v2_list_object.rb +84 -0
  376. data/lib/stripe/version.rb +1 -1
  377. data/lib/stripe/webhook.rb +3 -2
  378. data/lib/stripe.rb +44 -1
  379. data/rbi/stripe/resources/account.rbi +4926 -0
  380. data/rbi/stripe/resources/account_link.rbi +74 -0
  381. data/rbi/stripe/resources/account_session.rbi +1013 -0
  382. data/rbi/stripe/resources/apple_pay_domain.rbi +88 -0
  383. data/rbi/stripe/resources/application.rbi +20 -0
  384. data/rbi/stripe/resources/application_fee.rbi +118 -0
  385. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  386. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  387. data/rbi/stripe/resources/balance.rbi +235 -0
  388. data/rbi/stripe/resources/balance_transaction.rbi +147 -0
  389. data/rbi/stripe/resources/bank_account.rbi +127 -0
  390. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  391. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  392. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  393. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  394. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  395. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  396. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  397. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  398. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  399. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  400. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  401. data/rbi/stripe/resources/capability.rbi +125 -0
  402. data/rbi/stripe/resources/card.rbi +125 -0
  403. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  404. data/rbi/stripe/resources/charge.rbi +2069 -0
  405. data/rbi/stripe/resources/checkout/session.rbi +4004 -0
  406. data/rbi/stripe/resources/climate/order.rbi +245 -0
  407. data/rbi/stripe/resources/climate/product.rbi +75 -0
  408. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  409. data/rbi/stripe/resources/confirmation_token.rbi +1807 -0
  410. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  411. data/rbi/stripe/resources/country_spec.rbi +85 -0
  412. data/rbi/stripe/resources/coupon.rbi +250 -0
  413. data/rbi/stripe/resources/credit_note.rbi +752 -0
  414. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  415. data/rbi/stripe/resources/customer.rbi +1005 -0
  416. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  417. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  418. data/rbi/stripe/resources/customer_session.rbi +200 -0
  419. data/rbi/stripe/resources/discount.rbi +53 -0
  420. data/rbi/stripe/resources/dispute.rbi +761 -0
  421. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  422. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  423. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  424. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  425. data/rbi/stripe/resources/event.rbi +149 -0
  426. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  427. data/rbi/stripe/resources/file.rbi +143 -0
  428. data/rbi/stripe/resources/file_link.rbi +141 -0
  429. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  430. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  431. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  432. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  433. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  434. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  435. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  436. data/rbi/stripe/resources/identity/verification_report.rbi +360 -0
  437. data/rbi/stripe/resources/identity/verification_session.rbi +526 -0
  438. data/rbi/stripe/resources/invoice.rbi +3812 -0
  439. data/rbi/stripe/resources/invoice_item.rbi +473 -0
  440. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  441. data/rbi/stripe/resources/invoice_payment.rbi +121 -0
  442. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  443. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  444. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  445. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  446. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  447. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  448. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  449. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  450. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  451. data/rbi/stripe/resources/line_item.rbi +72 -0
  452. data/rbi/stripe/resources/login_link.rbi +19 -0
  453. data/rbi/stripe/resources/mandate.rbi +187 -0
  454. data/rbi/stripe/resources/payment_intent.rbi +9647 -0
  455. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  456. data/rbi/stripe/resources/payment_method.rbi +1761 -0
  457. data/rbi/stripe/resources/payment_method_configuration.rbi +3550 -0
  458. data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
  459. data/rbi/stripe/resources/payout.rbi +300 -0
  460. data/rbi/stripe/resources/person.rbi +401 -0
  461. data/rbi/stripe/resources/plan.rbi +371 -0
  462. data/rbi/stripe/resources/price.rbi +694 -0
  463. data/rbi/stripe/resources/product.rbi +555 -0
  464. data/rbi/stripe/resources/product_feature.rbi +26 -0
  465. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  466. data/rbi/stripe/resources/quote.rbi +1126 -0
  467. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  468. data/rbi/stripe/resources/radar/value_list.rbi +168 -0
  469. data/rbi/stripe/resources/radar/value_list_item.rbi +129 -0
  470. data/rbi/stripe/resources/refund.rbi +523 -0
  471. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  472. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  473. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  474. data/rbi/stripe/resources/reversal.rbi +51 -0
  475. data/rbi/stripe/resources/review.rbi +154 -0
  476. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  477. data/rbi/stripe/resources/setup_intent.rbi +3655 -0
  478. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  479. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  480. data/rbi/stripe/resources/source.rbi +1496 -0
  481. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  482. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  483. data/rbi/stripe/resources/subscription.rbi +2027 -0
  484. data/rbi/stripe/resources/subscription_item.rbi +404 -0
  485. data/rbi/stripe/resources/subscription_schedule.rbi +1623 -0
  486. data/rbi/stripe/resources/tax/calculation.rbi +478 -0
  487. data/rbi/stripe/resources/tax/calculation_line_item.rbi +91 -0
  488. data/rbi/stripe/resources/tax/registration.rbi +2713 -0
  489. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  490. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  491. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  492. data/rbi/stripe/resources/tax_code.rbi +44 -0
  493. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  494. data/rbi/stripe/resources/tax_id.rbi +165 -0
  495. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  496. data/rbi/stripe/resources/terminal/configuration.rbi +1386 -0
  497. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  498. data/rbi/stripe/resources/terminal/location.rbi +222 -0
  499. data/rbi/stripe/resources/terminal/reader.rbi +847 -0
  500. data/rbi/stripe/resources/test_helpers/test_clock.rbi +132 -0
  501. data/rbi/stripe/resources/token.rbi +1283 -0
  502. data/rbi/stripe/resources/topup.rbi +222 -0
  503. data/rbi/stripe/resources/transfer.rbi +199 -0
  504. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  505. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  506. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  507. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  508. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  509. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  510. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  511. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  512. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  513. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  514. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  515. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  516. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  517. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  518. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  519. data/rbi/stripe/resources/v2/event.rbi +48 -0
  520. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  521. data/rbi/stripe/resources/webhook_endpoint.rbi +168 -0
  522. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  523. data/rbi/stripe/services/account_external_account_service.rbi +304 -0
  524. data/rbi/stripe/services/account_link_service.rbi +58 -0
  525. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  526. data/rbi/stripe/services/account_person_service.rbi +1011 -0
  527. data/rbi/stripe/services/account_service.rbi +4213 -0
  528. data/rbi/stripe/services/account_session_service.rbi +646 -0
  529. data/rbi/stripe/services/apple_pay_domain_service.rbi +76 -0
  530. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  531. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  532. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  533. data/{lib/stripe/resources/usage_record_summary.rb → rbi/stripe/services/apps_service.rbi} +4 -3
  534. data/rbi/stripe/services/balance_service.rbi +21 -0
  535. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  536. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  537. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  538. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  539. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  540. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  541. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  542. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  543. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  544. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  545. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  546. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  547. data/rbi/stripe/services/billing_service.rbi +15 -0
  548. data/rbi/stripe/services/charge_service.rbi +448 -0
  549. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  550. data/rbi/stripe/services/checkout/session_service.rbi +2614 -0
  551. data/rbi/stripe/services/checkout_service.rbi +9 -0
  552. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  553. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  554. data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
  555. data/rbi/stripe/services/climate_service.rbi +11 -0
  556. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  557. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  558. data/rbi/stripe/services/coupon_service.rbi +194 -0
  559. data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
  560. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  561. data/rbi/stripe/services/credit_note_service.rbi +415 -0
  562. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  563. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  564. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  565. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  566. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  567. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  568. data/rbi/stripe/services/customer_service.rbi +647 -0
  569. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  570. data/rbi/stripe/services/customer_tax_id_service.rbi +70 -0
  571. data/rbi/stripe/services/dispute_service.rbi +424 -0
  572. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  573. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  574. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  575. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  576. data/rbi/stripe/services/event_service.rbi +83 -0
  577. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  578. data/rbi/stripe/services/file_link_service.rbi +124 -0
  579. data/rbi/stripe/services/file_service.rbi +116 -0
  580. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  581. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  582. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  583. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  584. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  585. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  586. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  587. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  588. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  589. data/rbi/stripe/services/identity_service.rbi +10 -0
  590. data/rbi/stripe/services/invoice_item_service.rbi +366 -0
  591. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  592. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  593. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  594. data/rbi/stripe/services/invoice_service.rbi +2981 -0
  595. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  596. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  597. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  598. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  599. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  600. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  601. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  602. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  603. data/rbi/stripe/services/issuing_service.rbi +16 -0
  604. data/rbi/stripe/services/mandate_service.rbi +20 -0
  605. data/rbi/stripe/services/payment_intent_service.rbi +7659 -0
  606. data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
  607. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  608. data/rbi/stripe/services/payment_method_configuration_service.rbi +2487 -0
  609. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  610. data/rbi/stripe/services/payment_method_service.rbi +776 -0
  611. data/rbi/stripe/services/payout_service.rbi +205 -0
  612. data/rbi/stripe/services/plan_service.rbi +282 -0
  613. data/rbi/stripe/services/price_service.rbi +546 -0
  614. data/rbi/stripe/services/product_feature_service.rbi +67 -0
  615. data/rbi/stripe/services/product_service.rbi +477 -0
  616. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  617. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  618. data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
  619. data/rbi/stripe/services/quote_service.rbi +686 -0
  620. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  621. data/rbi/stripe/services/radar/value_list_item_service.rbi +109 -0
  622. data/rbi/stripe/services/radar/value_list_service.rbi +141 -0
  623. data/rbi/stripe/services/radar_service.rbi +11 -0
  624. data/rbi/stripe/services/refund_service.rbi +185 -0
  625. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  626. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  627. data/rbi/stripe/services/reporting_service.rbi +10 -0
  628. data/rbi/stripe/services/review_service.rbi +84 -0
  629. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  630. data/rbi/stripe/services/setup_intent_service.rbi +3391 -0
  631. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  632. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  633. data/rbi/stripe/services/sigma_service.rbi +9 -0
  634. data/rbi/stripe/services/source_service.rbi +663 -0
  635. data/rbi/stripe/services/source_transaction_service.rbi +31 -0
  636. data/rbi/stripe/services/subscription_item_service.rbi +350 -0
  637. data/rbi/stripe/services/subscription_schedule_service.rbi +1290 -0
  638. data/rbi/stripe/services/subscription_service.rbi +1648 -0
  639. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  640. data/rbi/stripe/services/tax/calculation_service.rbi +234 -0
  641. data/rbi/stripe/services/tax/registration_service.rbi +1845 -0
  642. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  643. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
  644. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  645. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  646. data/rbi/stripe/services/tax_id_service.rbi +110 -0
  647. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  648. data/rbi/stripe/services/tax_service.rbi +12 -0
  649. data/rbi/stripe/services/terminal/configuration_service.rbi +1118 -0
  650. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  651. data/rbi/stripe/services/terminal/location_service.rbi +182 -0
  652. data/rbi/stripe/services/terminal/reader_service.rbi +455 -0
  653. data/rbi/stripe/services/terminal_service.rbi +12 -0
  654. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +739 -0
  655. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  656. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  657. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  658. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  659. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  660. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  661. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  662. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +93 -0
  663. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  664. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +90 -0
  665. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  666. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  667. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  668. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  669. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  670. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  671. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  672. data/rbi/stripe/services/token_service.rbi +1257 -0
  673. data/rbi/stripe/services/topup_service.rbi +176 -0
  674. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  675. data/rbi/stripe/services/transfer_service.rbi +152 -0
  676. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  677. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  678. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  679. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  680. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  681. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  682. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  683. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  684. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  685. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  686. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  687. data/rbi/stripe/services/treasury_service.rbi +18 -0
  688. data/rbi/stripe/services/v1_services.rbi +77 -0
  689. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  690. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  691. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +18 -0
  692. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  693. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  694. data/rbi/stripe/services/v2/core/event_destination_service.rbi +192 -0
  695. data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
  696. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  697. data/rbi/stripe/services/v2_services.rbi +10 -0
  698. data/rbi/stripe/services/webhook_endpoint_service.rbi +129 -0
  699. data/stripe.gemspec +10 -7
  700. metadata +599 -18
  701. data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
  702. data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
  703. data/lib/stripe/resources/issuing/card_details.rb +0 -9
  704. data/lib/stripe/resources/order.rb +0 -33
  705. data/lib/stripe/resources/order_return.rb +0 -10
  706. data/lib/stripe/resources/recipient.rb +0 -14
  707. data/lib/stripe/resources/sku.rb +0 -13
  708. data/lib/stripe/resources/three_d_secure.rb +0 -14
@@ -0,0 +1,2667 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Tax
6
+ # A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/docs/tax).
7
+ #
8
+ # Stripe doesn't register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/docs/tax/registering).
9
+ #
10
+ # Related guide: [Using the Registrations API](https://stripe.com/docs/tax/registrations-api)
11
+ class Registration < APIResource
12
+ extend Stripe::APIOperations::Create
13
+ extend Stripe::APIOperations::List
14
+ include Stripe::APIOperations::Save
15
+
16
+ OBJECT_NAME = "tax.registration"
17
+ def self.object_name
18
+ "tax.registration"
19
+ end
20
+
21
+ class CountryOptions < Stripe::StripeObject
22
+ class Ae < Stripe::StripeObject
23
+ # Type of registration in `country`.
24
+ attr_reader :type
25
+ end
26
+
27
+ class Al < Stripe::StripeObject
28
+ # Type of registration in `country`.
29
+ attr_reader :type
30
+ end
31
+
32
+ class Am < Stripe::StripeObject
33
+ # Type of registration in `country`.
34
+ attr_reader :type
35
+ end
36
+
37
+ class Ao < Stripe::StripeObject
38
+ # Type of registration in `country`.
39
+ attr_reader :type
40
+ end
41
+
42
+ class At < Stripe::StripeObject
43
+ class Standard < Stripe::StripeObject
44
+ # Place of supply scheme used in an EU standard registration.
45
+ attr_reader :place_of_supply_scheme
46
+ end
47
+ # Attribute for field standard
48
+ attr_reader :standard
49
+ # Type of registration in an EU country.
50
+ attr_reader :type
51
+ end
52
+
53
+ class Au < Stripe::StripeObject
54
+ # Type of registration in `country`.
55
+ attr_reader :type
56
+ end
57
+
58
+ class Aw < Stripe::StripeObject
59
+ # Type of registration in `country`.
60
+ attr_reader :type
61
+ end
62
+
63
+ class Az < Stripe::StripeObject
64
+ # Type of registration in `country`.
65
+ attr_reader :type
66
+ end
67
+
68
+ class Ba < Stripe::StripeObject
69
+ # Type of registration in `country`.
70
+ attr_reader :type
71
+ end
72
+
73
+ class Bb < Stripe::StripeObject
74
+ # Type of registration in `country`.
75
+ attr_reader :type
76
+ end
77
+
78
+ class Bd < Stripe::StripeObject
79
+ # Type of registration in `country`.
80
+ attr_reader :type
81
+ end
82
+
83
+ class Be < Stripe::StripeObject
84
+ class Standard < Stripe::StripeObject
85
+ # Place of supply scheme used in an EU standard registration.
86
+ attr_reader :place_of_supply_scheme
87
+ end
88
+ # Attribute for field standard
89
+ attr_reader :standard
90
+ # Type of registration in an EU country.
91
+ attr_reader :type
92
+ end
93
+
94
+ class Bf < Stripe::StripeObject
95
+ # Type of registration in `country`.
96
+ attr_reader :type
97
+ end
98
+
99
+ class Bg < Stripe::StripeObject
100
+ class Standard < Stripe::StripeObject
101
+ # Place of supply scheme used in an EU standard registration.
102
+ attr_reader :place_of_supply_scheme
103
+ end
104
+ # Attribute for field standard
105
+ attr_reader :standard
106
+ # Type of registration in an EU country.
107
+ attr_reader :type
108
+ end
109
+
110
+ class Bh < Stripe::StripeObject
111
+ # Type of registration in `country`.
112
+ attr_reader :type
113
+ end
114
+
115
+ class Bj < Stripe::StripeObject
116
+ # Type of registration in `country`.
117
+ attr_reader :type
118
+ end
119
+
120
+ class Bs < Stripe::StripeObject
121
+ # Type of registration in `country`.
122
+ attr_reader :type
123
+ end
124
+
125
+ class By < Stripe::StripeObject
126
+ # Type of registration in `country`.
127
+ attr_reader :type
128
+ end
129
+
130
+ class Ca < Stripe::StripeObject
131
+ class ProvinceStandard < Stripe::StripeObject
132
+ # Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
133
+ attr_reader :province
134
+ end
135
+ # Attribute for field province_standard
136
+ attr_reader :province_standard
137
+ # Type of registration in Canada.
138
+ attr_reader :type
139
+ end
140
+
141
+ class Cd < Stripe::StripeObject
142
+ # Type of registration in `country`.
143
+ attr_reader :type
144
+ end
145
+
146
+ class Ch < Stripe::StripeObject
147
+ # Type of registration in `country`.
148
+ attr_reader :type
149
+ end
150
+
151
+ class Cl < Stripe::StripeObject
152
+ # Type of registration in `country`.
153
+ attr_reader :type
154
+ end
155
+
156
+ class Cm < Stripe::StripeObject
157
+ # Type of registration in `country`.
158
+ attr_reader :type
159
+ end
160
+
161
+ class Co < Stripe::StripeObject
162
+ # Type of registration in `country`.
163
+ attr_reader :type
164
+ end
165
+
166
+ class Cr < Stripe::StripeObject
167
+ # Type of registration in `country`.
168
+ attr_reader :type
169
+ end
170
+
171
+ class Cv < Stripe::StripeObject
172
+ # Type of registration in `country`.
173
+ attr_reader :type
174
+ end
175
+
176
+ class Cy < Stripe::StripeObject
177
+ class Standard < Stripe::StripeObject
178
+ # Place of supply scheme used in an EU standard registration.
179
+ attr_reader :place_of_supply_scheme
180
+ end
181
+ # Attribute for field standard
182
+ attr_reader :standard
183
+ # Type of registration in an EU country.
184
+ attr_reader :type
185
+ end
186
+
187
+ class Cz < Stripe::StripeObject
188
+ class Standard < Stripe::StripeObject
189
+ # Place of supply scheme used in an EU standard registration.
190
+ attr_reader :place_of_supply_scheme
191
+ end
192
+ # Attribute for field standard
193
+ attr_reader :standard
194
+ # Type of registration in an EU country.
195
+ attr_reader :type
196
+ end
197
+
198
+ class De < Stripe::StripeObject
199
+ class Standard < Stripe::StripeObject
200
+ # Place of supply scheme used in an EU standard registration.
201
+ attr_reader :place_of_supply_scheme
202
+ end
203
+ # Attribute for field standard
204
+ attr_reader :standard
205
+ # Type of registration in an EU country.
206
+ attr_reader :type
207
+ end
208
+
209
+ class Dk < Stripe::StripeObject
210
+ class Standard < Stripe::StripeObject
211
+ # Place of supply scheme used in an EU standard registration.
212
+ attr_reader :place_of_supply_scheme
213
+ end
214
+ # Attribute for field standard
215
+ attr_reader :standard
216
+ # Type of registration in an EU country.
217
+ attr_reader :type
218
+ end
219
+
220
+ class Ec < Stripe::StripeObject
221
+ # Type of registration in `country`.
222
+ attr_reader :type
223
+ end
224
+
225
+ class Ee < Stripe::StripeObject
226
+ class Standard < Stripe::StripeObject
227
+ # Place of supply scheme used in an EU standard registration.
228
+ attr_reader :place_of_supply_scheme
229
+ end
230
+ # Attribute for field standard
231
+ attr_reader :standard
232
+ # Type of registration in an EU country.
233
+ attr_reader :type
234
+ end
235
+
236
+ class Eg < Stripe::StripeObject
237
+ # Type of registration in `country`.
238
+ attr_reader :type
239
+ end
240
+
241
+ class Es < Stripe::StripeObject
242
+ class Standard < Stripe::StripeObject
243
+ # Place of supply scheme used in an EU standard registration.
244
+ attr_reader :place_of_supply_scheme
245
+ end
246
+ # Attribute for field standard
247
+ attr_reader :standard
248
+ # Type of registration in an EU country.
249
+ attr_reader :type
250
+ end
251
+
252
+ class Et < Stripe::StripeObject
253
+ # Type of registration in `country`.
254
+ attr_reader :type
255
+ end
256
+
257
+ class Fi < Stripe::StripeObject
258
+ class Standard < Stripe::StripeObject
259
+ # Place of supply scheme used in an EU standard registration.
260
+ attr_reader :place_of_supply_scheme
261
+ end
262
+ # Attribute for field standard
263
+ attr_reader :standard
264
+ # Type of registration in an EU country.
265
+ attr_reader :type
266
+ end
267
+
268
+ class Fr < Stripe::StripeObject
269
+ class Standard < Stripe::StripeObject
270
+ # Place of supply scheme used in an EU standard registration.
271
+ attr_reader :place_of_supply_scheme
272
+ end
273
+ # Attribute for field standard
274
+ attr_reader :standard
275
+ # Type of registration in an EU country.
276
+ attr_reader :type
277
+ end
278
+
279
+ class Gb < Stripe::StripeObject
280
+ # Type of registration in `country`.
281
+ attr_reader :type
282
+ end
283
+
284
+ class Ge < Stripe::StripeObject
285
+ # Type of registration in `country`.
286
+ attr_reader :type
287
+ end
288
+
289
+ class Gn < Stripe::StripeObject
290
+ # Type of registration in `country`.
291
+ attr_reader :type
292
+ end
293
+
294
+ class Gr < Stripe::StripeObject
295
+ class Standard < Stripe::StripeObject
296
+ # Place of supply scheme used in an EU standard registration.
297
+ attr_reader :place_of_supply_scheme
298
+ end
299
+ # Attribute for field standard
300
+ attr_reader :standard
301
+ # Type of registration in an EU country.
302
+ attr_reader :type
303
+ end
304
+
305
+ class Hr < Stripe::StripeObject
306
+ class Standard < Stripe::StripeObject
307
+ # Place of supply scheme used in an EU standard registration.
308
+ attr_reader :place_of_supply_scheme
309
+ end
310
+ # Attribute for field standard
311
+ attr_reader :standard
312
+ # Type of registration in an EU country.
313
+ attr_reader :type
314
+ end
315
+
316
+ class Hu < Stripe::StripeObject
317
+ class Standard < Stripe::StripeObject
318
+ # Place of supply scheme used in an EU standard registration.
319
+ attr_reader :place_of_supply_scheme
320
+ end
321
+ # Attribute for field standard
322
+ attr_reader :standard
323
+ # Type of registration in an EU country.
324
+ attr_reader :type
325
+ end
326
+
327
+ class Id < Stripe::StripeObject
328
+ # Type of registration in `country`.
329
+ attr_reader :type
330
+ end
331
+
332
+ class Ie < Stripe::StripeObject
333
+ class Standard < Stripe::StripeObject
334
+ # Place of supply scheme used in an EU standard registration.
335
+ attr_reader :place_of_supply_scheme
336
+ end
337
+ # Attribute for field standard
338
+ attr_reader :standard
339
+ # Type of registration in an EU country.
340
+ attr_reader :type
341
+ end
342
+
343
+ class In < Stripe::StripeObject
344
+ # Type of registration in `country`.
345
+ attr_reader :type
346
+ end
347
+
348
+ class Is < Stripe::StripeObject
349
+ # Type of registration in `country`.
350
+ attr_reader :type
351
+ end
352
+
353
+ class It < Stripe::StripeObject
354
+ class Standard < Stripe::StripeObject
355
+ # Place of supply scheme used in an EU standard registration.
356
+ attr_reader :place_of_supply_scheme
357
+ end
358
+ # Attribute for field standard
359
+ attr_reader :standard
360
+ # Type of registration in an EU country.
361
+ attr_reader :type
362
+ end
363
+
364
+ class Jp < Stripe::StripeObject
365
+ # Type of registration in `country`.
366
+ attr_reader :type
367
+ end
368
+
369
+ class Ke < Stripe::StripeObject
370
+ # Type of registration in `country`.
371
+ attr_reader :type
372
+ end
373
+
374
+ class Kg < Stripe::StripeObject
375
+ # Type of registration in `country`.
376
+ attr_reader :type
377
+ end
378
+
379
+ class Kh < Stripe::StripeObject
380
+ # Type of registration in `country`.
381
+ attr_reader :type
382
+ end
383
+
384
+ class Kr < Stripe::StripeObject
385
+ # Type of registration in `country`.
386
+ attr_reader :type
387
+ end
388
+
389
+ class Kz < Stripe::StripeObject
390
+ # Type of registration in `country`.
391
+ attr_reader :type
392
+ end
393
+
394
+ class La < Stripe::StripeObject
395
+ # Type of registration in `country`.
396
+ attr_reader :type
397
+ end
398
+
399
+ class Lt < Stripe::StripeObject
400
+ class Standard < Stripe::StripeObject
401
+ # Place of supply scheme used in an EU standard registration.
402
+ attr_reader :place_of_supply_scheme
403
+ end
404
+ # Attribute for field standard
405
+ attr_reader :standard
406
+ # Type of registration in an EU country.
407
+ attr_reader :type
408
+ end
409
+
410
+ class Lu < Stripe::StripeObject
411
+ class Standard < Stripe::StripeObject
412
+ # Place of supply scheme used in an EU standard registration.
413
+ attr_reader :place_of_supply_scheme
414
+ end
415
+ # Attribute for field standard
416
+ attr_reader :standard
417
+ # Type of registration in an EU country.
418
+ attr_reader :type
419
+ end
420
+
421
+ class Lv < Stripe::StripeObject
422
+ class Standard < Stripe::StripeObject
423
+ # Place of supply scheme used in an EU standard registration.
424
+ attr_reader :place_of_supply_scheme
425
+ end
426
+ # Attribute for field standard
427
+ attr_reader :standard
428
+ # Type of registration in an EU country.
429
+ attr_reader :type
430
+ end
431
+
432
+ class Ma < Stripe::StripeObject
433
+ # Type of registration in `country`.
434
+ attr_reader :type
435
+ end
436
+
437
+ class Md < Stripe::StripeObject
438
+ # Type of registration in `country`.
439
+ attr_reader :type
440
+ end
441
+
442
+ class Me < Stripe::StripeObject
443
+ # Type of registration in `country`.
444
+ attr_reader :type
445
+ end
446
+
447
+ class Mk < Stripe::StripeObject
448
+ # Type of registration in `country`.
449
+ attr_reader :type
450
+ end
451
+
452
+ class Mr < Stripe::StripeObject
453
+ # Type of registration in `country`.
454
+ attr_reader :type
455
+ end
456
+
457
+ class Mt < Stripe::StripeObject
458
+ class Standard < Stripe::StripeObject
459
+ # Place of supply scheme used in an EU standard registration.
460
+ attr_reader :place_of_supply_scheme
461
+ end
462
+ # Attribute for field standard
463
+ attr_reader :standard
464
+ # Type of registration in an EU country.
465
+ attr_reader :type
466
+ end
467
+
468
+ class Mx < Stripe::StripeObject
469
+ # Type of registration in `country`.
470
+ attr_reader :type
471
+ end
472
+
473
+ class My < Stripe::StripeObject
474
+ # Type of registration in `country`.
475
+ attr_reader :type
476
+ end
477
+
478
+ class Ng < Stripe::StripeObject
479
+ # Type of registration in `country`.
480
+ attr_reader :type
481
+ end
482
+
483
+ class Nl < Stripe::StripeObject
484
+ class Standard < Stripe::StripeObject
485
+ # Place of supply scheme used in an EU standard registration.
486
+ attr_reader :place_of_supply_scheme
487
+ end
488
+ # Attribute for field standard
489
+ attr_reader :standard
490
+ # Type of registration in an EU country.
491
+ attr_reader :type
492
+ end
493
+
494
+ class No < Stripe::StripeObject
495
+ # Type of registration in `country`.
496
+ attr_reader :type
497
+ end
498
+
499
+ class Np < Stripe::StripeObject
500
+ # Type of registration in `country`.
501
+ attr_reader :type
502
+ end
503
+
504
+ class Nz < Stripe::StripeObject
505
+ # Type of registration in `country`.
506
+ attr_reader :type
507
+ end
508
+
509
+ class Om < Stripe::StripeObject
510
+ # Type of registration in `country`.
511
+ attr_reader :type
512
+ end
513
+
514
+ class Pe < Stripe::StripeObject
515
+ # Type of registration in `country`.
516
+ attr_reader :type
517
+ end
518
+
519
+ class Ph < Stripe::StripeObject
520
+ # Type of registration in `country`.
521
+ attr_reader :type
522
+ end
523
+
524
+ class Pl < Stripe::StripeObject
525
+ class Standard < Stripe::StripeObject
526
+ # Place of supply scheme used in an EU standard registration.
527
+ attr_reader :place_of_supply_scheme
528
+ end
529
+ # Attribute for field standard
530
+ attr_reader :standard
531
+ # Type of registration in an EU country.
532
+ attr_reader :type
533
+ end
534
+
535
+ class Pt < Stripe::StripeObject
536
+ class Standard < Stripe::StripeObject
537
+ # Place of supply scheme used in an EU standard registration.
538
+ attr_reader :place_of_supply_scheme
539
+ end
540
+ # Attribute for field standard
541
+ attr_reader :standard
542
+ # Type of registration in an EU country.
543
+ attr_reader :type
544
+ end
545
+
546
+ class Ro < Stripe::StripeObject
547
+ class Standard < Stripe::StripeObject
548
+ # Place of supply scheme used in an EU standard registration.
549
+ attr_reader :place_of_supply_scheme
550
+ end
551
+ # Attribute for field standard
552
+ attr_reader :standard
553
+ # Type of registration in an EU country.
554
+ attr_reader :type
555
+ end
556
+
557
+ class Rs < Stripe::StripeObject
558
+ # Type of registration in `country`.
559
+ attr_reader :type
560
+ end
561
+
562
+ class Ru < Stripe::StripeObject
563
+ # Type of registration in `country`.
564
+ attr_reader :type
565
+ end
566
+
567
+ class Sa < Stripe::StripeObject
568
+ # Type of registration in `country`.
569
+ attr_reader :type
570
+ end
571
+
572
+ class Se < Stripe::StripeObject
573
+ class Standard < Stripe::StripeObject
574
+ # Place of supply scheme used in an EU standard registration.
575
+ attr_reader :place_of_supply_scheme
576
+ end
577
+ # Attribute for field standard
578
+ attr_reader :standard
579
+ # Type of registration in an EU country.
580
+ attr_reader :type
581
+ end
582
+
583
+ class Sg < Stripe::StripeObject
584
+ # Type of registration in `country`.
585
+ attr_reader :type
586
+ end
587
+
588
+ class Si < Stripe::StripeObject
589
+ class Standard < Stripe::StripeObject
590
+ # Place of supply scheme used in an EU standard registration.
591
+ attr_reader :place_of_supply_scheme
592
+ end
593
+ # Attribute for field standard
594
+ attr_reader :standard
595
+ # Type of registration in an EU country.
596
+ attr_reader :type
597
+ end
598
+
599
+ class Sk < Stripe::StripeObject
600
+ class Standard < Stripe::StripeObject
601
+ # Place of supply scheme used in an EU standard registration.
602
+ attr_reader :place_of_supply_scheme
603
+ end
604
+ # Attribute for field standard
605
+ attr_reader :standard
606
+ # Type of registration in an EU country.
607
+ attr_reader :type
608
+ end
609
+
610
+ class Sn < Stripe::StripeObject
611
+ # Type of registration in `country`.
612
+ attr_reader :type
613
+ end
614
+
615
+ class Sr < Stripe::StripeObject
616
+ # Type of registration in `country`.
617
+ attr_reader :type
618
+ end
619
+
620
+ class Th < Stripe::StripeObject
621
+ # Type of registration in `country`.
622
+ attr_reader :type
623
+ end
624
+
625
+ class Tj < Stripe::StripeObject
626
+ # Type of registration in `country`.
627
+ attr_reader :type
628
+ end
629
+
630
+ class Tr < Stripe::StripeObject
631
+ # Type of registration in `country`.
632
+ attr_reader :type
633
+ end
634
+
635
+ class Tz < Stripe::StripeObject
636
+ # Type of registration in `country`.
637
+ attr_reader :type
638
+ end
639
+
640
+ class Ug < Stripe::StripeObject
641
+ # Type of registration in `country`.
642
+ attr_reader :type
643
+ end
644
+
645
+ class Us < Stripe::StripeObject
646
+ class LocalAmusementTax < Stripe::StripeObject
647
+ # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction.
648
+ attr_reader :jurisdiction
649
+ end
650
+
651
+ class LocalLeaseTax < Stripe::StripeObject
652
+ # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction.
653
+ attr_reader :jurisdiction
654
+ end
655
+
656
+ class StateSalesTax < Stripe::StripeObject
657
+ class Election < Stripe::StripeObject
658
+ # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction.
659
+ attr_reader :jurisdiction
660
+ # The type of the election for the state sales tax registration.
661
+ attr_reader :type
662
+ end
663
+ # Elections for the state sales tax registration.
664
+ attr_reader :elections
665
+ end
666
+ # Attribute for field local_amusement_tax
667
+ attr_reader :local_amusement_tax
668
+ # Attribute for field local_lease_tax
669
+ attr_reader :local_lease_tax
670
+ # Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
671
+ attr_reader :state
672
+ # Attribute for field state_sales_tax
673
+ attr_reader :state_sales_tax
674
+ # Type of registration in the US.
675
+ attr_reader :type
676
+ end
677
+
678
+ class Uy < Stripe::StripeObject
679
+ # Type of registration in `country`.
680
+ attr_reader :type
681
+ end
682
+
683
+ class Uz < Stripe::StripeObject
684
+ # Type of registration in `country`.
685
+ attr_reader :type
686
+ end
687
+
688
+ class Vn < Stripe::StripeObject
689
+ # Type of registration in `country`.
690
+ attr_reader :type
691
+ end
692
+
693
+ class Za < Stripe::StripeObject
694
+ # Type of registration in `country`.
695
+ attr_reader :type
696
+ end
697
+
698
+ class Zm < Stripe::StripeObject
699
+ # Type of registration in `country`.
700
+ attr_reader :type
701
+ end
702
+
703
+ class Zw < Stripe::StripeObject
704
+ # Type of registration in `country`.
705
+ attr_reader :type
706
+ end
707
+ # Attribute for field ae
708
+ attr_reader :ae
709
+ # Attribute for field al
710
+ attr_reader :al
711
+ # Attribute for field am
712
+ attr_reader :am
713
+ # Attribute for field ao
714
+ attr_reader :ao
715
+ # Attribute for field at
716
+ attr_reader :at
717
+ # Attribute for field au
718
+ attr_reader :au
719
+ # Attribute for field aw
720
+ attr_reader :aw
721
+ # Attribute for field az
722
+ attr_reader :az
723
+ # Attribute for field ba
724
+ attr_reader :ba
725
+ # Attribute for field bb
726
+ attr_reader :bb
727
+ # Attribute for field bd
728
+ attr_reader :bd
729
+ # Attribute for field be
730
+ attr_reader :be
731
+ # Attribute for field bf
732
+ attr_reader :bf
733
+ # Attribute for field bg
734
+ attr_reader :bg
735
+ # Attribute for field bh
736
+ attr_reader :bh
737
+ # Attribute for field bj
738
+ attr_reader :bj
739
+ # Attribute for field bs
740
+ attr_reader :bs
741
+ # Attribute for field by
742
+ attr_reader :by
743
+ # Attribute for field ca
744
+ attr_reader :ca
745
+ # Attribute for field cd
746
+ attr_reader :cd
747
+ # Attribute for field ch
748
+ attr_reader :ch
749
+ # Attribute for field cl
750
+ attr_reader :cl
751
+ # Attribute for field cm
752
+ attr_reader :cm
753
+ # Attribute for field co
754
+ attr_reader :co
755
+ # Attribute for field cr
756
+ attr_reader :cr
757
+ # Attribute for field cv
758
+ attr_reader :cv
759
+ # Attribute for field cy
760
+ attr_reader :cy
761
+ # Attribute for field cz
762
+ attr_reader :cz
763
+ # Attribute for field de
764
+ attr_reader :de
765
+ # Attribute for field dk
766
+ attr_reader :dk
767
+ # Attribute for field ec
768
+ attr_reader :ec
769
+ # Attribute for field ee
770
+ attr_reader :ee
771
+ # Attribute for field eg
772
+ attr_reader :eg
773
+ # Attribute for field es
774
+ attr_reader :es
775
+ # Attribute for field et
776
+ attr_reader :et
777
+ # Attribute for field fi
778
+ attr_reader :fi
779
+ # Attribute for field fr
780
+ attr_reader :fr
781
+ # Attribute for field gb
782
+ attr_reader :gb
783
+ # Attribute for field ge
784
+ attr_reader :ge
785
+ # Attribute for field gn
786
+ attr_reader :gn
787
+ # Attribute for field gr
788
+ attr_reader :gr
789
+ # Attribute for field hr
790
+ attr_reader :hr
791
+ # Attribute for field hu
792
+ attr_reader :hu
793
+ # Attribute for field id
794
+ attr_reader :id
795
+ # Attribute for field ie
796
+ attr_reader :ie
797
+ # Attribute for field in
798
+ attr_reader :in
799
+ # Attribute for field is
800
+ attr_reader :is
801
+ # Attribute for field it
802
+ attr_reader :it
803
+ # Attribute for field jp
804
+ attr_reader :jp
805
+ # Attribute for field ke
806
+ attr_reader :ke
807
+ # Attribute for field kg
808
+ attr_reader :kg
809
+ # Attribute for field kh
810
+ attr_reader :kh
811
+ # Attribute for field kr
812
+ attr_reader :kr
813
+ # Attribute for field kz
814
+ attr_reader :kz
815
+ # Attribute for field la
816
+ attr_reader :la
817
+ # Attribute for field lt
818
+ attr_reader :lt
819
+ # Attribute for field lu
820
+ attr_reader :lu
821
+ # Attribute for field lv
822
+ attr_reader :lv
823
+ # Attribute for field ma
824
+ attr_reader :ma
825
+ # Attribute for field md
826
+ attr_reader :md
827
+ # Attribute for field me
828
+ attr_reader :me
829
+ # Attribute for field mk
830
+ attr_reader :mk
831
+ # Attribute for field mr
832
+ attr_reader :mr
833
+ # Attribute for field mt
834
+ attr_reader :mt
835
+ # Attribute for field mx
836
+ attr_reader :mx
837
+ # Attribute for field my
838
+ attr_reader :my
839
+ # Attribute for field ng
840
+ attr_reader :ng
841
+ # Attribute for field nl
842
+ attr_reader :nl
843
+ # Attribute for field no
844
+ attr_reader :no
845
+ # Attribute for field np
846
+ attr_reader :np
847
+ # Attribute for field nz
848
+ attr_reader :nz
849
+ # Attribute for field om
850
+ attr_reader :om
851
+ # Attribute for field pe
852
+ attr_reader :pe
853
+ # Attribute for field ph
854
+ attr_reader :ph
855
+ # Attribute for field pl
856
+ attr_reader :pl
857
+ # Attribute for field pt
858
+ attr_reader :pt
859
+ # Attribute for field ro
860
+ attr_reader :ro
861
+ # Attribute for field rs
862
+ attr_reader :rs
863
+ # Attribute for field ru
864
+ attr_reader :ru
865
+ # Attribute for field sa
866
+ attr_reader :sa
867
+ # Attribute for field se
868
+ attr_reader :se
869
+ # Attribute for field sg
870
+ attr_reader :sg
871
+ # Attribute for field si
872
+ attr_reader :si
873
+ # Attribute for field sk
874
+ attr_reader :sk
875
+ # Attribute for field sn
876
+ attr_reader :sn
877
+ # Attribute for field sr
878
+ attr_reader :sr
879
+ # Attribute for field th
880
+ attr_reader :th
881
+ # Attribute for field tj
882
+ attr_reader :tj
883
+ # Attribute for field tr
884
+ attr_reader :tr
885
+ # Attribute for field tz
886
+ attr_reader :tz
887
+ # Attribute for field ug
888
+ attr_reader :ug
889
+ # Attribute for field us
890
+ attr_reader :us
891
+ # Attribute for field uy
892
+ attr_reader :uy
893
+ # Attribute for field uz
894
+ attr_reader :uz
895
+ # Attribute for field vn
896
+ attr_reader :vn
897
+ # Attribute for field za
898
+ attr_reader :za
899
+ # Attribute for field zm
900
+ attr_reader :zm
901
+ # Attribute for field zw
902
+ attr_reader :zw
903
+ end
904
+
905
+ class ListParams < Stripe::RequestParams
906
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
907
+ attr_accessor :ending_before
908
+ # Specifies which fields in the response should be expanded.
909
+ attr_accessor :expand
910
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
911
+ attr_accessor :limit
912
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
913
+ attr_accessor :starting_after
914
+ # The status of the Tax Registration.
915
+ attr_accessor :status
916
+
917
+ def initialize(
918
+ ending_before: nil,
919
+ expand: nil,
920
+ limit: nil,
921
+ starting_after: nil,
922
+ status: nil
923
+ )
924
+ @ending_before = ending_before
925
+ @expand = expand
926
+ @limit = limit
927
+ @starting_after = starting_after
928
+ @status = status
929
+ end
930
+ end
931
+
932
+ class CreateParams < Stripe::RequestParams
933
+ class CountryOptions < Stripe::RequestParams
934
+ class Ae < Stripe::RequestParams
935
+ # Type of registration to be created in `country`.
936
+ attr_accessor :type
937
+
938
+ def initialize(type: nil)
939
+ @type = type
940
+ end
941
+ end
942
+
943
+ class Al < Stripe::RequestParams
944
+ # Type of registration to be created in `country`.
945
+ attr_accessor :type
946
+
947
+ def initialize(type: nil)
948
+ @type = type
949
+ end
950
+ end
951
+
952
+ class Am < Stripe::RequestParams
953
+ # Type of registration to be created in `country`.
954
+ attr_accessor :type
955
+
956
+ def initialize(type: nil)
957
+ @type = type
958
+ end
959
+ end
960
+
961
+ class Ao < Stripe::RequestParams
962
+ # Type of registration to be created in `country`.
963
+ attr_accessor :type
964
+
965
+ def initialize(type: nil)
966
+ @type = type
967
+ end
968
+ end
969
+
970
+ class At < Stripe::RequestParams
971
+ class Standard < Stripe::RequestParams
972
+ # Place of supply scheme used in an EU standard registration.
973
+ attr_accessor :place_of_supply_scheme
974
+
975
+ def initialize(place_of_supply_scheme: nil)
976
+ @place_of_supply_scheme = place_of_supply_scheme
977
+ end
978
+ end
979
+ # Options for the standard registration.
980
+ attr_accessor :standard
981
+ # Type of registration to be created in an EU country.
982
+ attr_accessor :type
983
+
984
+ def initialize(standard: nil, type: nil)
985
+ @standard = standard
986
+ @type = type
987
+ end
988
+ end
989
+
990
+ class Au < Stripe::RequestParams
991
+ # Type of registration to be created in `country`.
992
+ attr_accessor :type
993
+
994
+ def initialize(type: nil)
995
+ @type = type
996
+ end
997
+ end
998
+
999
+ class Aw < Stripe::RequestParams
1000
+ # Type of registration to be created in `country`.
1001
+ attr_accessor :type
1002
+
1003
+ def initialize(type: nil)
1004
+ @type = type
1005
+ end
1006
+ end
1007
+
1008
+ class Az < Stripe::RequestParams
1009
+ # Type of registration to be created in `country`.
1010
+ attr_accessor :type
1011
+
1012
+ def initialize(type: nil)
1013
+ @type = type
1014
+ end
1015
+ end
1016
+
1017
+ class Ba < Stripe::RequestParams
1018
+ # Type of registration to be created in `country`.
1019
+ attr_accessor :type
1020
+
1021
+ def initialize(type: nil)
1022
+ @type = type
1023
+ end
1024
+ end
1025
+
1026
+ class Bb < Stripe::RequestParams
1027
+ # Type of registration to be created in `country`.
1028
+ attr_accessor :type
1029
+
1030
+ def initialize(type: nil)
1031
+ @type = type
1032
+ end
1033
+ end
1034
+
1035
+ class Bd < Stripe::RequestParams
1036
+ # Type of registration to be created in `country`.
1037
+ attr_accessor :type
1038
+
1039
+ def initialize(type: nil)
1040
+ @type = type
1041
+ end
1042
+ end
1043
+
1044
+ class Be < Stripe::RequestParams
1045
+ class Standard < Stripe::RequestParams
1046
+ # Place of supply scheme used in an EU standard registration.
1047
+ attr_accessor :place_of_supply_scheme
1048
+
1049
+ def initialize(place_of_supply_scheme: nil)
1050
+ @place_of_supply_scheme = place_of_supply_scheme
1051
+ end
1052
+ end
1053
+ # Options for the standard registration.
1054
+ attr_accessor :standard
1055
+ # Type of registration to be created in an EU country.
1056
+ attr_accessor :type
1057
+
1058
+ def initialize(standard: nil, type: nil)
1059
+ @standard = standard
1060
+ @type = type
1061
+ end
1062
+ end
1063
+
1064
+ class Bf < Stripe::RequestParams
1065
+ # Type of registration to be created in `country`.
1066
+ attr_accessor :type
1067
+
1068
+ def initialize(type: nil)
1069
+ @type = type
1070
+ end
1071
+ end
1072
+
1073
+ class Bg < Stripe::RequestParams
1074
+ class Standard < Stripe::RequestParams
1075
+ # Place of supply scheme used in an EU standard registration.
1076
+ attr_accessor :place_of_supply_scheme
1077
+
1078
+ def initialize(place_of_supply_scheme: nil)
1079
+ @place_of_supply_scheme = place_of_supply_scheme
1080
+ end
1081
+ end
1082
+ # Options for the standard registration.
1083
+ attr_accessor :standard
1084
+ # Type of registration to be created in an EU country.
1085
+ attr_accessor :type
1086
+
1087
+ def initialize(standard: nil, type: nil)
1088
+ @standard = standard
1089
+ @type = type
1090
+ end
1091
+ end
1092
+
1093
+ class Bh < Stripe::RequestParams
1094
+ # Type of registration to be created in `country`.
1095
+ attr_accessor :type
1096
+
1097
+ def initialize(type: nil)
1098
+ @type = type
1099
+ end
1100
+ end
1101
+
1102
+ class Bj < Stripe::RequestParams
1103
+ # Type of registration to be created in `country`.
1104
+ attr_accessor :type
1105
+
1106
+ def initialize(type: nil)
1107
+ @type = type
1108
+ end
1109
+ end
1110
+
1111
+ class Bs < Stripe::RequestParams
1112
+ # Type of registration to be created in `country`.
1113
+ attr_accessor :type
1114
+
1115
+ def initialize(type: nil)
1116
+ @type = type
1117
+ end
1118
+ end
1119
+
1120
+ class By < Stripe::RequestParams
1121
+ # Type of registration to be created in `country`.
1122
+ attr_accessor :type
1123
+
1124
+ def initialize(type: nil)
1125
+ @type = type
1126
+ end
1127
+ end
1128
+
1129
+ class Ca < Stripe::RequestParams
1130
+ class ProvinceStandard < Stripe::RequestParams
1131
+ # Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1132
+ attr_accessor :province
1133
+
1134
+ def initialize(province: nil)
1135
+ @province = province
1136
+ end
1137
+ end
1138
+ # Options for the provincial tax registration.
1139
+ attr_accessor :province_standard
1140
+ # Type of registration to be created in Canada.
1141
+ attr_accessor :type
1142
+
1143
+ def initialize(province_standard: nil, type: nil)
1144
+ @province_standard = province_standard
1145
+ @type = type
1146
+ end
1147
+ end
1148
+
1149
+ class Cd < Stripe::RequestParams
1150
+ # Type of registration to be created in `country`.
1151
+ attr_accessor :type
1152
+
1153
+ def initialize(type: nil)
1154
+ @type = type
1155
+ end
1156
+ end
1157
+
1158
+ class Ch < Stripe::RequestParams
1159
+ # Type of registration to be created in `country`.
1160
+ attr_accessor :type
1161
+
1162
+ def initialize(type: nil)
1163
+ @type = type
1164
+ end
1165
+ end
1166
+
1167
+ class Cl < Stripe::RequestParams
1168
+ # Type of registration to be created in `country`.
1169
+ attr_accessor :type
1170
+
1171
+ def initialize(type: nil)
1172
+ @type = type
1173
+ end
1174
+ end
1175
+
1176
+ class Cm < Stripe::RequestParams
1177
+ # Type of registration to be created in `country`.
1178
+ attr_accessor :type
1179
+
1180
+ def initialize(type: nil)
1181
+ @type = type
1182
+ end
1183
+ end
1184
+
1185
+ class Co < Stripe::RequestParams
1186
+ # Type of registration to be created in `country`.
1187
+ attr_accessor :type
1188
+
1189
+ def initialize(type: nil)
1190
+ @type = type
1191
+ end
1192
+ end
1193
+
1194
+ class Cr < Stripe::RequestParams
1195
+ # Type of registration to be created in `country`.
1196
+ attr_accessor :type
1197
+
1198
+ def initialize(type: nil)
1199
+ @type = type
1200
+ end
1201
+ end
1202
+
1203
+ class Cv < Stripe::RequestParams
1204
+ # Type of registration to be created in `country`.
1205
+ attr_accessor :type
1206
+
1207
+ def initialize(type: nil)
1208
+ @type = type
1209
+ end
1210
+ end
1211
+
1212
+ class Cy < Stripe::RequestParams
1213
+ class Standard < Stripe::RequestParams
1214
+ # Place of supply scheme used in an EU standard registration.
1215
+ attr_accessor :place_of_supply_scheme
1216
+
1217
+ def initialize(place_of_supply_scheme: nil)
1218
+ @place_of_supply_scheme = place_of_supply_scheme
1219
+ end
1220
+ end
1221
+ # Options for the standard registration.
1222
+ attr_accessor :standard
1223
+ # Type of registration to be created in an EU country.
1224
+ attr_accessor :type
1225
+
1226
+ def initialize(standard: nil, type: nil)
1227
+ @standard = standard
1228
+ @type = type
1229
+ end
1230
+ end
1231
+
1232
+ class Cz < Stripe::RequestParams
1233
+ class Standard < Stripe::RequestParams
1234
+ # Place of supply scheme used in an EU standard registration.
1235
+ attr_accessor :place_of_supply_scheme
1236
+
1237
+ def initialize(place_of_supply_scheme: nil)
1238
+ @place_of_supply_scheme = place_of_supply_scheme
1239
+ end
1240
+ end
1241
+ # Options for the standard registration.
1242
+ attr_accessor :standard
1243
+ # Type of registration to be created in an EU country.
1244
+ attr_accessor :type
1245
+
1246
+ def initialize(standard: nil, type: nil)
1247
+ @standard = standard
1248
+ @type = type
1249
+ end
1250
+ end
1251
+
1252
+ class De < Stripe::RequestParams
1253
+ class Standard < Stripe::RequestParams
1254
+ # Place of supply scheme used in an EU standard registration.
1255
+ attr_accessor :place_of_supply_scheme
1256
+
1257
+ def initialize(place_of_supply_scheme: nil)
1258
+ @place_of_supply_scheme = place_of_supply_scheme
1259
+ end
1260
+ end
1261
+ # Options for the standard registration.
1262
+ attr_accessor :standard
1263
+ # Type of registration to be created in an EU country.
1264
+ attr_accessor :type
1265
+
1266
+ def initialize(standard: nil, type: nil)
1267
+ @standard = standard
1268
+ @type = type
1269
+ end
1270
+ end
1271
+
1272
+ class Dk < Stripe::RequestParams
1273
+ class Standard < Stripe::RequestParams
1274
+ # Place of supply scheme used in an EU standard registration.
1275
+ attr_accessor :place_of_supply_scheme
1276
+
1277
+ def initialize(place_of_supply_scheme: nil)
1278
+ @place_of_supply_scheme = place_of_supply_scheme
1279
+ end
1280
+ end
1281
+ # Options for the standard registration.
1282
+ attr_accessor :standard
1283
+ # Type of registration to be created in an EU country.
1284
+ attr_accessor :type
1285
+
1286
+ def initialize(standard: nil, type: nil)
1287
+ @standard = standard
1288
+ @type = type
1289
+ end
1290
+ end
1291
+
1292
+ class Ec < Stripe::RequestParams
1293
+ # Type of registration to be created in `country`.
1294
+ attr_accessor :type
1295
+
1296
+ def initialize(type: nil)
1297
+ @type = type
1298
+ end
1299
+ end
1300
+
1301
+ class Ee < Stripe::RequestParams
1302
+ class Standard < Stripe::RequestParams
1303
+ # Place of supply scheme used in an EU standard registration.
1304
+ attr_accessor :place_of_supply_scheme
1305
+
1306
+ def initialize(place_of_supply_scheme: nil)
1307
+ @place_of_supply_scheme = place_of_supply_scheme
1308
+ end
1309
+ end
1310
+ # Options for the standard registration.
1311
+ attr_accessor :standard
1312
+ # Type of registration to be created in an EU country.
1313
+ attr_accessor :type
1314
+
1315
+ def initialize(standard: nil, type: nil)
1316
+ @standard = standard
1317
+ @type = type
1318
+ end
1319
+ end
1320
+
1321
+ class Eg < Stripe::RequestParams
1322
+ # Type of registration to be created in `country`.
1323
+ attr_accessor :type
1324
+
1325
+ def initialize(type: nil)
1326
+ @type = type
1327
+ end
1328
+ end
1329
+
1330
+ class Es < Stripe::RequestParams
1331
+ class Standard < Stripe::RequestParams
1332
+ # Place of supply scheme used in an EU standard registration.
1333
+ attr_accessor :place_of_supply_scheme
1334
+
1335
+ def initialize(place_of_supply_scheme: nil)
1336
+ @place_of_supply_scheme = place_of_supply_scheme
1337
+ end
1338
+ end
1339
+ # Options for the standard registration.
1340
+ attr_accessor :standard
1341
+ # Type of registration to be created in an EU country.
1342
+ attr_accessor :type
1343
+
1344
+ def initialize(standard: nil, type: nil)
1345
+ @standard = standard
1346
+ @type = type
1347
+ end
1348
+ end
1349
+
1350
+ class Et < Stripe::RequestParams
1351
+ # Type of registration to be created in `country`.
1352
+ attr_accessor :type
1353
+
1354
+ def initialize(type: nil)
1355
+ @type = type
1356
+ end
1357
+ end
1358
+
1359
+ class Fi < Stripe::RequestParams
1360
+ class Standard < Stripe::RequestParams
1361
+ # Place of supply scheme used in an EU standard registration.
1362
+ attr_accessor :place_of_supply_scheme
1363
+
1364
+ def initialize(place_of_supply_scheme: nil)
1365
+ @place_of_supply_scheme = place_of_supply_scheme
1366
+ end
1367
+ end
1368
+ # Options for the standard registration.
1369
+ attr_accessor :standard
1370
+ # Type of registration to be created in an EU country.
1371
+ attr_accessor :type
1372
+
1373
+ def initialize(standard: nil, type: nil)
1374
+ @standard = standard
1375
+ @type = type
1376
+ end
1377
+ end
1378
+
1379
+ class Fr < Stripe::RequestParams
1380
+ class Standard < Stripe::RequestParams
1381
+ # Place of supply scheme used in an EU standard registration.
1382
+ attr_accessor :place_of_supply_scheme
1383
+
1384
+ def initialize(place_of_supply_scheme: nil)
1385
+ @place_of_supply_scheme = place_of_supply_scheme
1386
+ end
1387
+ end
1388
+ # Options for the standard registration.
1389
+ attr_accessor :standard
1390
+ # Type of registration to be created in an EU country.
1391
+ attr_accessor :type
1392
+
1393
+ def initialize(standard: nil, type: nil)
1394
+ @standard = standard
1395
+ @type = type
1396
+ end
1397
+ end
1398
+
1399
+ class Gb < Stripe::RequestParams
1400
+ # Type of registration to be created in `country`.
1401
+ attr_accessor :type
1402
+
1403
+ def initialize(type: nil)
1404
+ @type = type
1405
+ end
1406
+ end
1407
+
1408
+ class Ge < Stripe::RequestParams
1409
+ # Type of registration to be created in `country`.
1410
+ attr_accessor :type
1411
+
1412
+ def initialize(type: nil)
1413
+ @type = type
1414
+ end
1415
+ end
1416
+
1417
+ class Gn < Stripe::RequestParams
1418
+ # Type of registration to be created in `country`.
1419
+ attr_accessor :type
1420
+
1421
+ def initialize(type: nil)
1422
+ @type = type
1423
+ end
1424
+ end
1425
+
1426
+ class Gr < Stripe::RequestParams
1427
+ class Standard < Stripe::RequestParams
1428
+ # Place of supply scheme used in an EU standard registration.
1429
+ attr_accessor :place_of_supply_scheme
1430
+
1431
+ def initialize(place_of_supply_scheme: nil)
1432
+ @place_of_supply_scheme = place_of_supply_scheme
1433
+ end
1434
+ end
1435
+ # Options for the standard registration.
1436
+ attr_accessor :standard
1437
+ # Type of registration to be created in an EU country.
1438
+ attr_accessor :type
1439
+
1440
+ def initialize(standard: nil, type: nil)
1441
+ @standard = standard
1442
+ @type = type
1443
+ end
1444
+ end
1445
+
1446
+ class Hr < Stripe::RequestParams
1447
+ class Standard < Stripe::RequestParams
1448
+ # Place of supply scheme used in an EU standard registration.
1449
+ attr_accessor :place_of_supply_scheme
1450
+
1451
+ def initialize(place_of_supply_scheme: nil)
1452
+ @place_of_supply_scheme = place_of_supply_scheme
1453
+ end
1454
+ end
1455
+ # Options for the standard registration.
1456
+ attr_accessor :standard
1457
+ # Type of registration to be created in an EU country.
1458
+ attr_accessor :type
1459
+
1460
+ def initialize(standard: nil, type: nil)
1461
+ @standard = standard
1462
+ @type = type
1463
+ end
1464
+ end
1465
+
1466
+ class Hu < Stripe::RequestParams
1467
+ class Standard < Stripe::RequestParams
1468
+ # Place of supply scheme used in an EU standard registration.
1469
+ attr_accessor :place_of_supply_scheme
1470
+
1471
+ def initialize(place_of_supply_scheme: nil)
1472
+ @place_of_supply_scheme = place_of_supply_scheme
1473
+ end
1474
+ end
1475
+ # Options for the standard registration.
1476
+ attr_accessor :standard
1477
+ # Type of registration to be created in an EU country.
1478
+ attr_accessor :type
1479
+
1480
+ def initialize(standard: nil, type: nil)
1481
+ @standard = standard
1482
+ @type = type
1483
+ end
1484
+ end
1485
+
1486
+ class Id < Stripe::RequestParams
1487
+ # Type of registration to be created in `country`.
1488
+ attr_accessor :type
1489
+
1490
+ def initialize(type: nil)
1491
+ @type = type
1492
+ end
1493
+ end
1494
+
1495
+ class Ie < Stripe::RequestParams
1496
+ class Standard < Stripe::RequestParams
1497
+ # Place of supply scheme used in an EU standard registration.
1498
+ attr_accessor :place_of_supply_scheme
1499
+
1500
+ def initialize(place_of_supply_scheme: nil)
1501
+ @place_of_supply_scheme = place_of_supply_scheme
1502
+ end
1503
+ end
1504
+ # Options for the standard registration.
1505
+ attr_accessor :standard
1506
+ # Type of registration to be created in an EU country.
1507
+ attr_accessor :type
1508
+
1509
+ def initialize(standard: nil, type: nil)
1510
+ @standard = standard
1511
+ @type = type
1512
+ end
1513
+ end
1514
+
1515
+ class In < Stripe::RequestParams
1516
+ # Type of registration to be created in `country`.
1517
+ attr_accessor :type
1518
+
1519
+ def initialize(type: nil)
1520
+ @type = type
1521
+ end
1522
+ end
1523
+
1524
+ class Is < Stripe::RequestParams
1525
+ # Type of registration to be created in `country`.
1526
+ attr_accessor :type
1527
+
1528
+ def initialize(type: nil)
1529
+ @type = type
1530
+ end
1531
+ end
1532
+
1533
+ class It < Stripe::RequestParams
1534
+ class Standard < Stripe::RequestParams
1535
+ # Place of supply scheme used in an EU standard registration.
1536
+ attr_accessor :place_of_supply_scheme
1537
+
1538
+ def initialize(place_of_supply_scheme: nil)
1539
+ @place_of_supply_scheme = place_of_supply_scheme
1540
+ end
1541
+ end
1542
+ # Options for the standard registration.
1543
+ attr_accessor :standard
1544
+ # Type of registration to be created in an EU country.
1545
+ attr_accessor :type
1546
+
1547
+ def initialize(standard: nil, type: nil)
1548
+ @standard = standard
1549
+ @type = type
1550
+ end
1551
+ end
1552
+
1553
+ class Jp < Stripe::RequestParams
1554
+ # Type of registration to be created in `country`.
1555
+ attr_accessor :type
1556
+
1557
+ def initialize(type: nil)
1558
+ @type = type
1559
+ end
1560
+ end
1561
+
1562
+ class Ke < Stripe::RequestParams
1563
+ # Type of registration to be created in `country`.
1564
+ attr_accessor :type
1565
+
1566
+ def initialize(type: nil)
1567
+ @type = type
1568
+ end
1569
+ end
1570
+
1571
+ class Kg < Stripe::RequestParams
1572
+ # Type of registration to be created in `country`.
1573
+ attr_accessor :type
1574
+
1575
+ def initialize(type: nil)
1576
+ @type = type
1577
+ end
1578
+ end
1579
+
1580
+ class Kh < Stripe::RequestParams
1581
+ # Type of registration to be created in `country`.
1582
+ attr_accessor :type
1583
+
1584
+ def initialize(type: nil)
1585
+ @type = type
1586
+ end
1587
+ end
1588
+
1589
+ class Kr < Stripe::RequestParams
1590
+ # Type of registration to be created in `country`.
1591
+ attr_accessor :type
1592
+
1593
+ def initialize(type: nil)
1594
+ @type = type
1595
+ end
1596
+ end
1597
+
1598
+ class Kz < Stripe::RequestParams
1599
+ # Type of registration to be created in `country`.
1600
+ attr_accessor :type
1601
+
1602
+ def initialize(type: nil)
1603
+ @type = type
1604
+ end
1605
+ end
1606
+
1607
+ class La < Stripe::RequestParams
1608
+ # Type of registration to be created in `country`.
1609
+ attr_accessor :type
1610
+
1611
+ def initialize(type: nil)
1612
+ @type = type
1613
+ end
1614
+ end
1615
+
1616
+ class Lt < Stripe::RequestParams
1617
+ class Standard < Stripe::RequestParams
1618
+ # Place of supply scheme used in an EU standard registration.
1619
+ attr_accessor :place_of_supply_scheme
1620
+
1621
+ def initialize(place_of_supply_scheme: nil)
1622
+ @place_of_supply_scheme = place_of_supply_scheme
1623
+ end
1624
+ end
1625
+ # Options for the standard registration.
1626
+ attr_accessor :standard
1627
+ # Type of registration to be created in an EU country.
1628
+ attr_accessor :type
1629
+
1630
+ def initialize(standard: nil, type: nil)
1631
+ @standard = standard
1632
+ @type = type
1633
+ end
1634
+ end
1635
+
1636
+ class Lu < Stripe::RequestParams
1637
+ class Standard < Stripe::RequestParams
1638
+ # Place of supply scheme used in an EU standard registration.
1639
+ attr_accessor :place_of_supply_scheme
1640
+
1641
+ def initialize(place_of_supply_scheme: nil)
1642
+ @place_of_supply_scheme = place_of_supply_scheme
1643
+ end
1644
+ end
1645
+ # Options for the standard registration.
1646
+ attr_accessor :standard
1647
+ # Type of registration to be created in an EU country.
1648
+ attr_accessor :type
1649
+
1650
+ def initialize(standard: nil, type: nil)
1651
+ @standard = standard
1652
+ @type = type
1653
+ end
1654
+ end
1655
+
1656
+ class Lv < Stripe::RequestParams
1657
+ class Standard < Stripe::RequestParams
1658
+ # Place of supply scheme used in an EU standard registration.
1659
+ attr_accessor :place_of_supply_scheme
1660
+
1661
+ def initialize(place_of_supply_scheme: nil)
1662
+ @place_of_supply_scheme = place_of_supply_scheme
1663
+ end
1664
+ end
1665
+ # Options for the standard registration.
1666
+ attr_accessor :standard
1667
+ # Type of registration to be created in an EU country.
1668
+ attr_accessor :type
1669
+
1670
+ def initialize(standard: nil, type: nil)
1671
+ @standard = standard
1672
+ @type = type
1673
+ end
1674
+ end
1675
+
1676
+ class Ma < Stripe::RequestParams
1677
+ # Type of registration to be created in `country`.
1678
+ attr_accessor :type
1679
+
1680
+ def initialize(type: nil)
1681
+ @type = type
1682
+ end
1683
+ end
1684
+
1685
+ class Md < Stripe::RequestParams
1686
+ # Type of registration to be created in `country`.
1687
+ attr_accessor :type
1688
+
1689
+ def initialize(type: nil)
1690
+ @type = type
1691
+ end
1692
+ end
1693
+
1694
+ class Me < Stripe::RequestParams
1695
+ # Type of registration to be created in `country`.
1696
+ attr_accessor :type
1697
+
1698
+ def initialize(type: nil)
1699
+ @type = type
1700
+ end
1701
+ end
1702
+
1703
+ class Mk < Stripe::RequestParams
1704
+ # Type of registration to be created in `country`.
1705
+ attr_accessor :type
1706
+
1707
+ def initialize(type: nil)
1708
+ @type = type
1709
+ end
1710
+ end
1711
+
1712
+ class Mr < Stripe::RequestParams
1713
+ # Type of registration to be created in `country`.
1714
+ attr_accessor :type
1715
+
1716
+ def initialize(type: nil)
1717
+ @type = type
1718
+ end
1719
+ end
1720
+
1721
+ class Mt < Stripe::RequestParams
1722
+ class Standard < Stripe::RequestParams
1723
+ # Place of supply scheme used in an EU standard registration.
1724
+ attr_accessor :place_of_supply_scheme
1725
+
1726
+ def initialize(place_of_supply_scheme: nil)
1727
+ @place_of_supply_scheme = place_of_supply_scheme
1728
+ end
1729
+ end
1730
+ # Options for the standard registration.
1731
+ attr_accessor :standard
1732
+ # Type of registration to be created in an EU country.
1733
+ attr_accessor :type
1734
+
1735
+ def initialize(standard: nil, type: nil)
1736
+ @standard = standard
1737
+ @type = type
1738
+ end
1739
+ end
1740
+
1741
+ class Mx < Stripe::RequestParams
1742
+ # Type of registration to be created in `country`.
1743
+ attr_accessor :type
1744
+
1745
+ def initialize(type: nil)
1746
+ @type = type
1747
+ end
1748
+ end
1749
+
1750
+ class My < Stripe::RequestParams
1751
+ # Type of registration to be created in `country`.
1752
+ attr_accessor :type
1753
+
1754
+ def initialize(type: nil)
1755
+ @type = type
1756
+ end
1757
+ end
1758
+
1759
+ class Ng < Stripe::RequestParams
1760
+ # Type of registration to be created in `country`.
1761
+ attr_accessor :type
1762
+
1763
+ def initialize(type: nil)
1764
+ @type = type
1765
+ end
1766
+ end
1767
+
1768
+ class Nl < Stripe::RequestParams
1769
+ class Standard < Stripe::RequestParams
1770
+ # Place of supply scheme used in an EU standard registration.
1771
+ attr_accessor :place_of_supply_scheme
1772
+
1773
+ def initialize(place_of_supply_scheme: nil)
1774
+ @place_of_supply_scheme = place_of_supply_scheme
1775
+ end
1776
+ end
1777
+ # Options for the standard registration.
1778
+ attr_accessor :standard
1779
+ # Type of registration to be created in an EU country.
1780
+ attr_accessor :type
1781
+
1782
+ def initialize(standard: nil, type: nil)
1783
+ @standard = standard
1784
+ @type = type
1785
+ end
1786
+ end
1787
+
1788
+ class No < Stripe::RequestParams
1789
+ # Type of registration to be created in `country`.
1790
+ attr_accessor :type
1791
+
1792
+ def initialize(type: nil)
1793
+ @type = type
1794
+ end
1795
+ end
1796
+
1797
+ class Np < Stripe::RequestParams
1798
+ # Type of registration to be created in `country`.
1799
+ attr_accessor :type
1800
+
1801
+ def initialize(type: nil)
1802
+ @type = type
1803
+ end
1804
+ end
1805
+
1806
+ class Nz < Stripe::RequestParams
1807
+ # Type of registration to be created in `country`.
1808
+ attr_accessor :type
1809
+
1810
+ def initialize(type: nil)
1811
+ @type = type
1812
+ end
1813
+ end
1814
+
1815
+ class Om < Stripe::RequestParams
1816
+ # Type of registration to be created in `country`.
1817
+ attr_accessor :type
1818
+
1819
+ def initialize(type: nil)
1820
+ @type = type
1821
+ end
1822
+ end
1823
+
1824
+ class Pe < Stripe::RequestParams
1825
+ # Type of registration to be created in `country`.
1826
+ attr_accessor :type
1827
+
1828
+ def initialize(type: nil)
1829
+ @type = type
1830
+ end
1831
+ end
1832
+
1833
+ class Ph < Stripe::RequestParams
1834
+ # Type of registration to be created in `country`.
1835
+ attr_accessor :type
1836
+
1837
+ def initialize(type: nil)
1838
+ @type = type
1839
+ end
1840
+ end
1841
+
1842
+ class Pl < Stripe::RequestParams
1843
+ class Standard < Stripe::RequestParams
1844
+ # Place of supply scheme used in an EU standard registration.
1845
+ attr_accessor :place_of_supply_scheme
1846
+
1847
+ def initialize(place_of_supply_scheme: nil)
1848
+ @place_of_supply_scheme = place_of_supply_scheme
1849
+ end
1850
+ end
1851
+ # Options for the standard registration.
1852
+ attr_accessor :standard
1853
+ # Type of registration to be created in an EU country.
1854
+ attr_accessor :type
1855
+
1856
+ def initialize(standard: nil, type: nil)
1857
+ @standard = standard
1858
+ @type = type
1859
+ end
1860
+ end
1861
+
1862
+ class Pt < Stripe::RequestParams
1863
+ class Standard < Stripe::RequestParams
1864
+ # Place of supply scheme used in an EU standard registration.
1865
+ attr_accessor :place_of_supply_scheme
1866
+
1867
+ def initialize(place_of_supply_scheme: nil)
1868
+ @place_of_supply_scheme = place_of_supply_scheme
1869
+ end
1870
+ end
1871
+ # Options for the standard registration.
1872
+ attr_accessor :standard
1873
+ # Type of registration to be created in an EU country.
1874
+ attr_accessor :type
1875
+
1876
+ def initialize(standard: nil, type: nil)
1877
+ @standard = standard
1878
+ @type = type
1879
+ end
1880
+ end
1881
+
1882
+ class Ro < Stripe::RequestParams
1883
+ class Standard < Stripe::RequestParams
1884
+ # Place of supply scheme used in an EU standard registration.
1885
+ attr_accessor :place_of_supply_scheme
1886
+
1887
+ def initialize(place_of_supply_scheme: nil)
1888
+ @place_of_supply_scheme = place_of_supply_scheme
1889
+ end
1890
+ end
1891
+ # Options for the standard registration.
1892
+ attr_accessor :standard
1893
+ # Type of registration to be created in an EU country.
1894
+ attr_accessor :type
1895
+
1896
+ def initialize(standard: nil, type: nil)
1897
+ @standard = standard
1898
+ @type = type
1899
+ end
1900
+ end
1901
+
1902
+ class Rs < Stripe::RequestParams
1903
+ # Type of registration to be created in `country`.
1904
+ attr_accessor :type
1905
+
1906
+ def initialize(type: nil)
1907
+ @type = type
1908
+ end
1909
+ end
1910
+
1911
+ class Ru < Stripe::RequestParams
1912
+ # Type of registration to be created in `country`.
1913
+ attr_accessor :type
1914
+
1915
+ def initialize(type: nil)
1916
+ @type = type
1917
+ end
1918
+ end
1919
+
1920
+ class Sa < Stripe::RequestParams
1921
+ # Type of registration to be created in `country`.
1922
+ attr_accessor :type
1923
+
1924
+ def initialize(type: nil)
1925
+ @type = type
1926
+ end
1927
+ end
1928
+
1929
+ class Se < Stripe::RequestParams
1930
+ class Standard < Stripe::RequestParams
1931
+ # Place of supply scheme used in an EU standard registration.
1932
+ attr_accessor :place_of_supply_scheme
1933
+
1934
+ def initialize(place_of_supply_scheme: nil)
1935
+ @place_of_supply_scheme = place_of_supply_scheme
1936
+ end
1937
+ end
1938
+ # Options for the standard registration.
1939
+ attr_accessor :standard
1940
+ # Type of registration to be created in an EU country.
1941
+ attr_accessor :type
1942
+
1943
+ def initialize(standard: nil, type: nil)
1944
+ @standard = standard
1945
+ @type = type
1946
+ end
1947
+ end
1948
+
1949
+ class Sg < Stripe::RequestParams
1950
+ # Type of registration to be created in `country`.
1951
+ attr_accessor :type
1952
+
1953
+ def initialize(type: nil)
1954
+ @type = type
1955
+ end
1956
+ end
1957
+
1958
+ class Si < Stripe::RequestParams
1959
+ class Standard < Stripe::RequestParams
1960
+ # Place of supply scheme used in an EU standard registration.
1961
+ attr_accessor :place_of_supply_scheme
1962
+
1963
+ def initialize(place_of_supply_scheme: nil)
1964
+ @place_of_supply_scheme = place_of_supply_scheme
1965
+ end
1966
+ end
1967
+ # Options for the standard registration.
1968
+ attr_accessor :standard
1969
+ # Type of registration to be created in an EU country.
1970
+ attr_accessor :type
1971
+
1972
+ def initialize(standard: nil, type: nil)
1973
+ @standard = standard
1974
+ @type = type
1975
+ end
1976
+ end
1977
+
1978
+ class Sk < Stripe::RequestParams
1979
+ class Standard < Stripe::RequestParams
1980
+ # Place of supply scheme used in an EU standard registration.
1981
+ attr_accessor :place_of_supply_scheme
1982
+
1983
+ def initialize(place_of_supply_scheme: nil)
1984
+ @place_of_supply_scheme = place_of_supply_scheme
1985
+ end
1986
+ end
1987
+ # Options for the standard registration.
1988
+ attr_accessor :standard
1989
+ # Type of registration to be created in an EU country.
1990
+ attr_accessor :type
1991
+
1992
+ def initialize(standard: nil, type: nil)
1993
+ @standard = standard
1994
+ @type = type
1995
+ end
1996
+ end
1997
+
1998
+ class Sn < Stripe::RequestParams
1999
+ # Type of registration to be created in `country`.
2000
+ attr_accessor :type
2001
+
2002
+ def initialize(type: nil)
2003
+ @type = type
2004
+ end
2005
+ end
2006
+
2007
+ class Sr < Stripe::RequestParams
2008
+ # Type of registration to be created in `country`.
2009
+ attr_accessor :type
2010
+
2011
+ def initialize(type: nil)
2012
+ @type = type
2013
+ end
2014
+ end
2015
+
2016
+ class Th < Stripe::RequestParams
2017
+ # Type of registration to be created in `country`.
2018
+ attr_accessor :type
2019
+
2020
+ def initialize(type: nil)
2021
+ @type = type
2022
+ end
2023
+ end
2024
+
2025
+ class Tj < Stripe::RequestParams
2026
+ # Type of registration to be created in `country`.
2027
+ attr_accessor :type
2028
+
2029
+ def initialize(type: nil)
2030
+ @type = type
2031
+ end
2032
+ end
2033
+
2034
+ class Tr < Stripe::RequestParams
2035
+ # Type of registration to be created in `country`.
2036
+ attr_accessor :type
2037
+
2038
+ def initialize(type: nil)
2039
+ @type = type
2040
+ end
2041
+ end
2042
+
2043
+ class Tz < Stripe::RequestParams
2044
+ # Type of registration to be created in `country`.
2045
+ attr_accessor :type
2046
+
2047
+ def initialize(type: nil)
2048
+ @type = type
2049
+ end
2050
+ end
2051
+
2052
+ class Ug < Stripe::RequestParams
2053
+ # Type of registration to be created in `country`.
2054
+ attr_accessor :type
2055
+
2056
+ def initialize(type: nil)
2057
+ @type = type
2058
+ end
2059
+ end
2060
+
2061
+ class Us < Stripe::RequestParams
2062
+ class LocalAmusementTax < Stripe::RequestParams
2063
+ # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), and `68081` (Schiller Park).
2064
+ attr_accessor :jurisdiction
2065
+
2066
+ def initialize(jurisdiction: nil)
2067
+ @jurisdiction = jurisdiction
2068
+ end
2069
+ end
2070
+
2071
+ class LocalLeaseTax < Stripe::RequestParams
2072
+ # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago).
2073
+ attr_accessor :jurisdiction
2074
+
2075
+ def initialize(jurisdiction: nil)
2076
+ @jurisdiction = jurisdiction
2077
+ end
2078
+ end
2079
+
2080
+ class StateSalesTax < Stripe::RequestParams
2081
+ class Election < Stripe::RequestParams
2082
+ # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `003` (Allegheny County) and `60000` (Philadelphia City).
2083
+ attr_accessor :jurisdiction
2084
+ # The type of the election for the state sales tax registration.
2085
+ attr_accessor :type
2086
+
2087
+ def initialize(jurisdiction: nil, type: nil)
2088
+ @jurisdiction = jurisdiction
2089
+ @type = type
2090
+ end
2091
+ end
2092
+ # Elections for the state sales tax registration.
2093
+ attr_accessor :elections
2094
+
2095
+ def initialize(elections: nil)
2096
+ @elections = elections
2097
+ end
2098
+ end
2099
+ # Options for the local amusement tax registration.
2100
+ attr_accessor :local_amusement_tax
2101
+ # Options for the local lease tax registration.
2102
+ attr_accessor :local_lease_tax
2103
+ # Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2104
+ attr_accessor :state
2105
+ # Options for the state sales tax registration.
2106
+ attr_accessor :state_sales_tax
2107
+ # Type of registration to be created in the US.
2108
+ attr_accessor :type
2109
+
2110
+ def initialize(
2111
+ local_amusement_tax: nil,
2112
+ local_lease_tax: nil,
2113
+ state: nil,
2114
+ state_sales_tax: nil,
2115
+ type: nil
2116
+ )
2117
+ @local_amusement_tax = local_amusement_tax
2118
+ @local_lease_tax = local_lease_tax
2119
+ @state = state
2120
+ @state_sales_tax = state_sales_tax
2121
+ @type = type
2122
+ end
2123
+ end
2124
+
2125
+ class Uy < Stripe::RequestParams
2126
+ # Type of registration to be created in `country`.
2127
+ attr_accessor :type
2128
+
2129
+ def initialize(type: nil)
2130
+ @type = type
2131
+ end
2132
+ end
2133
+
2134
+ class Uz < Stripe::RequestParams
2135
+ # Type of registration to be created in `country`.
2136
+ attr_accessor :type
2137
+
2138
+ def initialize(type: nil)
2139
+ @type = type
2140
+ end
2141
+ end
2142
+
2143
+ class Vn < Stripe::RequestParams
2144
+ # Type of registration to be created in `country`.
2145
+ attr_accessor :type
2146
+
2147
+ def initialize(type: nil)
2148
+ @type = type
2149
+ end
2150
+ end
2151
+
2152
+ class Za < Stripe::RequestParams
2153
+ # Type of registration to be created in `country`.
2154
+ attr_accessor :type
2155
+
2156
+ def initialize(type: nil)
2157
+ @type = type
2158
+ end
2159
+ end
2160
+
2161
+ class Zm < Stripe::RequestParams
2162
+ # Type of registration to be created in `country`.
2163
+ attr_accessor :type
2164
+
2165
+ def initialize(type: nil)
2166
+ @type = type
2167
+ end
2168
+ end
2169
+
2170
+ class Zw < Stripe::RequestParams
2171
+ # Type of registration to be created in `country`.
2172
+ attr_accessor :type
2173
+
2174
+ def initialize(type: nil)
2175
+ @type = type
2176
+ end
2177
+ end
2178
+ # Options for the registration in AE.
2179
+ attr_accessor :ae
2180
+ # Options for the registration in AL.
2181
+ attr_accessor :al
2182
+ # Options for the registration in AM.
2183
+ attr_accessor :am
2184
+ # Options for the registration in AO.
2185
+ attr_accessor :ao
2186
+ # Options for the registration in AT.
2187
+ attr_accessor :at
2188
+ # Options for the registration in AU.
2189
+ attr_accessor :au
2190
+ # Options for the registration in AW.
2191
+ attr_accessor :aw
2192
+ # Options for the registration in AZ.
2193
+ attr_accessor :az
2194
+ # Options for the registration in BA.
2195
+ attr_accessor :ba
2196
+ # Options for the registration in BB.
2197
+ attr_accessor :bb
2198
+ # Options for the registration in BD.
2199
+ attr_accessor :bd
2200
+ # Options for the registration in BE.
2201
+ attr_accessor :be
2202
+ # Options for the registration in BF.
2203
+ attr_accessor :bf
2204
+ # Options for the registration in BG.
2205
+ attr_accessor :bg
2206
+ # Options for the registration in BH.
2207
+ attr_accessor :bh
2208
+ # Options for the registration in BJ.
2209
+ attr_accessor :bj
2210
+ # Options for the registration in BS.
2211
+ attr_accessor :bs
2212
+ # Options for the registration in BY.
2213
+ attr_accessor :by
2214
+ # Options for the registration in CA.
2215
+ attr_accessor :ca
2216
+ # Options for the registration in CD.
2217
+ attr_accessor :cd
2218
+ # Options for the registration in CH.
2219
+ attr_accessor :ch
2220
+ # Options for the registration in CL.
2221
+ attr_accessor :cl
2222
+ # Options for the registration in CM.
2223
+ attr_accessor :cm
2224
+ # Options for the registration in CO.
2225
+ attr_accessor :co
2226
+ # Options for the registration in CR.
2227
+ attr_accessor :cr
2228
+ # Options for the registration in CV.
2229
+ attr_accessor :cv
2230
+ # Options for the registration in CY.
2231
+ attr_accessor :cy
2232
+ # Options for the registration in CZ.
2233
+ attr_accessor :cz
2234
+ # Options for the registration in DE.
2235
+ attr_accessor :de
2236
+ # Options for the registration in DK.
2237
+ attr_accessor :dk
2238
+ # Options for the registration in EC.
2239
+ attr_accessor :ec
2240
+ # Options for the registration in EE.
2241
+ attr_accessor :ee
2242
+ # Options for the registration in EG.
2243
+ attr_accessor :eg
2244
+ # Options for the registration in ES.
2245
+ attr_accessor :es
2246
+ # Options for the registration in ET.
2247
+ attr_accessor :et
2248
+ # Options for the registration in FI.
2249
+ attr_accessor :fi
2250
+ # Options for the registration in FR.
2251
+ attr_accessor :fr
2252
+ # Options for the registration in GB.
2253
+ attr_accessor :gb
2254
+ # Options for the registration in GE.
2255
+ attr_accessor :ge
2256
+ # Options for the registration in GN.
2257
+ attr_accessor :gn
2258
+ # Options for the registration in GR.
2259
+ attr_accessor :gr
2260
+ # Options for the registration in HR.
2261
+ attr_accessor :hr
2262
+ # Options for the registration in HU.
2263
+ attr_accessor :hu
2264
+ # Options for the registration in ID.
2265
+ attr_accessor :id
2266
+ # Options for the registration in IE.
2267
+ attr_accessor :ie
2268
+ # Options for the registration in IN.
2269
+ attr_accessor :in
2270
+ # Options for the registration in IS.
2271
+ attr_accessor :is
2272
+ # Options for the registration in IT.
2273
+ attr_accessor :it
2274
+ # Options for the registration in JP.
2275
+ attr_accessor :jp
2276
+ # Options for the registration in KE.
2277
+ attr_accessor :ke
2278
+ # Options for the registration in KG.
2279
+ attr_accessor :kg
2280
+ # Options for the registration in KH.
2281
+ attr_accessor :kh
2282
+ # Options for the registration in KR.
2283
+ attr_accessor :kr
2284
+ # Options for the registration in KZ.
2285
+ attr_accessor :kz
2286
+ # Options for the registration in LA.
2287
+ attr_accessor :la
2288
+ # Options for the registration in LT.
2289
+ attr_accessor :lt
2290
+ # Options for the registration in LU.
2291
+ attr_accessor :lu
2292
+ # Options for the registration in LV.
2293
+ attr_accessor :lv
2294
+ # Options for the registration in MA.
2295
+ attr_accessor :ma
2296
+ # Options for the registration in MD.
2297
+ attr_accessor :md
2298
+ # Options for the registration in ME.
2299
+ attr_accessor :me
2300
+ # Options for the registration in MK.
2301
+ attr_accessor :mk
2302
+ # Options for the registration in MR.
2303
+ attr_accessor :mr
2304
+ # Options for the registration in MT.
2305
+ attr_accessor :mt
2306
+ # Options for the registration in MX.
2307
+ attr_accessor :mx
2308
+ # Options for the registration in MY.
2309
+ attr_accessor :my
2310
+ # Options for the registration in NG.
2311
+ attr_accessor :ng
2312
+ # Options for the registration in NL.
2313
+ attr_accessor :nl
2314
+ # Options for the registration in NO.
2315
+ attr_accessor :no
2316
+ # Options for the registration in NP.
2317
+ attr_accessor :np
2318
+ # Options for the registration in NZ.
2319
+ attr_accessor :nz
2320
+ # Options for the registration in OM.
2321
+ attr_accessor :om
2322
+ # Options for the registration in PE.
2323
+ attr_accessor :pe
2324
+ # Options for the registration in PH.
2325
+ attr_accessor :ph
2326
+ # Options for the registration in PL.
2327
+ attr_accessor :pl
2328
+ # Options for the registration in PT.
2329
+ attr_accessor :pt
2330
+ # Options for the registration in RO.
2331
+ attr_accessor :ro
2332
+ # Options for the registration in RS.
2333
+ attr_accessor :rs
2334
+ # Options for the registration in RU.
2335
+ attr_accessor :ru
2336
+ # Options for the registration in SA.
2337
+ attr_accessor :sa
2338
+ # Options for the registration in SE.
2339
+ attr_accessor :se
2340
+ # Options for the registration in SG.
2341
+ attr_accessor :sg
2342
+ # Options for the registration in SI.
2343
+ attr_accessor :si
2344
+ # Options for the registration in SK.
2345
+ attr_accessor :sk
2346
+ # Options for the registration in SN.
2347
+ attr_accessor :sn
2348
+ # Options for the registration in SR.
2349
+ attr_accessor :sr
2350
+ # Options for the registration in TH.
2351
+ attr_accessor :th
2352
+ # Options for the registration in TJ.
2353
+ attr_accessor :tj
2354
+ # Options for the registration in TR.
2355
+ attr_accessor :tr
2356
+ # Options for the registration in TZ.
2357
+ attr_accessor :tz
2358
+ # Options for the registration in UG.
2359
+ attr_accessor :ug
2360
+ # Options for the registration in US.
2361
+ attr_accessor :us
2362
+ # Options for the registration in UY.
2363
+ attr_accessor :uy
2364
+ # Options for the registration in UZ.
2365
+ attr_accessor :uz
2366
+ # Options for the registration in VN.
2367
+ attr_accessor :vn
2368
+ # Options for the registration in ZA.
2369
+ attr_accessor :za
2370
+ # Options for the registration in ZM.
2371
+ attr_accessor :zm
2372
+ # Options for the registration in ZW.
2373
+ attr_accessor :zw
2374
+
2375
+ def initialize(
2376
+ ae: nil,
2377
+ al: nil,
2378
+ am: nil,
2379
+ ao: nil,
2380
+ at: nil,
2381
+ au: nil,
2382
+ aw: nil,
2383
+ az: nil,
2384
+ ba: nil,
2385
+ bb: nil,
2386
+ bd: nil,
2387
+ be: nil,
2388
+ bf: nil,
2389
+ bg: nil,
2390
+ bh: nil,
2391
+ bj: nil,
2392
+ bs: nil,
2393
+ by: nil,
2394
+ ca: nil,
2395
+ cd: nil,
2396
+ ch: nil,
2397
+ cl: nil,
2398
+ cm: nil,
2399
+ co: nil,
2400
+ cr: nil,
2401
+ cv: nil,
2402
+ cy: nil,
2403
+ cz: nil,
2404
+ de: nil,
2405
+ dk: nil,
2406
+ ec: nil,
2407
+ ee: nil,
2408
+ eg: nil,
2409
+ es: nil,
2410
+ et: nil,
2411
+ fi: nil,
2412
+ fr: nil,
2413
+ gb: nil,
2414
+ ge: nil,
2415
+ gn: nil,
2416
+ gr: nil,
2417
+ hr: nil,
2418
+ hu: nil,
2419
+ id: nil,
2420
+ ie: nil,
2421
+ in_: nil,
2422
+ is: nil,
2423
+ it: nil,
2424
+ jp: nil,
2425
+ ke: nil,
2426
+ kg: nil,
2427
+ kh: nil,
2428
+ kr: nil,
2429
+ kz: nil,
2430
+ la: nil,
2431
+ lt: nil,
2432
+ lu: nil,
2433
+ lv: nil,
2434
+ ma: nil,
2435
+ md: nil,
2436
+ me: nil,
2437
+ mk: nil,
2438
+ mr: nil,
2439
+ mt: nil,
2440
+ mx: nil,
2441
+ my: nil,
2442
+ ng: nil,
2443
+ nl: nil,
2444
+ no: nil,
2445
+ np: nil,
2446
+ nz: nil,
2447
+ om: nil,
2448
+ pe: nil,
2449
+ ph: nil,
2450
+ pl: nil,
2451
+ pt: nil,
2452
+ ro: nil,
2453
+ rs: nil,
2454
+ ru: nil,
2455
+ sa: nil,
2456
+ se: nil,
2457
+ sg: nil,
2458
+ si: nil,
2459
+ sk: nil,
2460
+ sn: nil,
2461
+ sr: nil,
2462
+ th: nil,
2463
+ tj: nil,
2464
+ tr: nil,
2465
+ tz: nil,
2466
+ ug: nil,
2467
+ us: nil,
2468
+ uy: nil,
2469
+ uz: nil,
2470
+ vn: nil,
2471
+ za: nil,
2472
+ zm: nil,
2473
+ zw: nil
2474
+ )
2475
+ @ae = ae
2476
+ @al = al
2477
+ @am = am
2478
+ @ao = ao
2479
+ @at = at
2480
+ @au = au
2481
+ @aw = aw
2482
+ @az = az
2483
+ @ba = ba
2484
+ @bb = bb
2485
+ @bd = bd
2486
+ @be = be
2487
+ @bf = bf
2488
+ @bg = bg
2489
+ @bh = bh
2490
+ @bj = bj
2491
+ @bs = bs
2492
+ @by = by
2493
+ @ca = ca
2494
+ @cd = cd
2495
+ @ch = ch
2496
+ @cl = cl
2497
+ @cm = cm
2498
+ @co = co
2499
+ @cr = cr
2500
+ @cv = cv
2501
+ @cy = cy
2502
+ @cz = cz
2503
+ @de = de
2504
+ @dk = dk
2505
+ @ec = ec
2506
+ @ee = ee
2507
+ @eg = eg
2508
+ @es = es
2509
+ @et = et
2510
+ @fi = fi
2511
+ @fr = fr
2512
+ @gb = gb
2513
+ @ge = ge
2514
+ @gn = gn
2515
+ @gr = gr
2516
+ @hr = hr
2517
+ @hu = hu
2518
+ @id = id
2519
+ @ie = ie
2520
+ @in = in_
2521
+ @is = is
2522
+ @it = it
2523
+ @jp = jp
2524
+ @ke = ke
2525
+ @kg = kg
2526
+ @kh = kh
2527
+ @kr = kr
2528
+ @kz = kz
2529
+ @la = la
2530
+ @lt = lt
2531
+ @lu = lu
2532
+ @lv = lv
2533
+ @ma = ma
2534
+ @md = md
2535
+ @me = me
2536
+ @mk = mk
2537
+ @mr = mr
2538
+ @mt = mt
2539
+ @mx = mx
2540
+ @my = my
2541
+ @ng = ng
2542
+ @nl = nl
2543
+ @no = no
2544
+ @np = np
2545
+ @nz = nz
2546
+ @om = om
2547
+ @pe = pe
2548
+ @ph = ph
2549
+ @pl = pl
2550
+ @pt = pt
2551
+ @ro = ro
2552
+ @rs = rs
2553
+ @ru = ru
2554
+ @sa = sa
2555
+ @se = se
2556
+ @sg = sg
2557
+ @si = si
2558
+ @sk = sk
2559
+ @sn = sn
2560
+ @sr = sr
2561
+ @th = th
2562
+ @tj = tj
2563
+ @tr = tr
2564
+ @tz = tz
2565
+ @ug = ug
2566
+ @us = us
2567
+ @uy = uy
2568
+ @uz = uz
2569
+ @vn = vn
2570
+ @za = za
2571
+ @zm = zm
2572
+ @zw = zw
2573
+ end
2574
+ end
2575
+ # Time at which the Tax Registration becomes active. It can be either `now` to indicate the current time, or a future timestamp measured in seconds since the Unix epoch.
2576
+ attr_accessor :active_from
2577
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2578
+ attr_accessor :country
2579
+ # Specific options for a registration in the specified `country`.
2580
+ attr_accessor :country_options
2581
+ # Specifies which fields in the response should be expanded.
2582
+ attr_accessor :expand
2583
+ # If set, the Tax Registration stops being active at this time. If not set, the Tax Registration will be active indefinitely. Timestamp measured in seconds since the Unix epoch.
2584
+ attr_accessor :expires_at
2585
+
2586
+ def initialize(
2587
+ active_from: nil,
2588
+ country: nil,
2589
+ country_options: nil,
2590
+ expand: nil,
2591
+ expires_at: nil
2592
+ )
2593
+ @active_from = active_from
2594
+ @country = country
2595
+ @country_options = country_options
2596
+ @expand = expand
2597
+ @expires_at = expires_at
2598
+ end
2599
+ end
2600
+
2601
+ class UpdateParams < Stripe::RequestParams
2602
+ # Time at which the registration becomes active. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch.
2603
+ attr_accessor :active_from
2604
+ # Specifies which fields in the response should be expanded.
2605
+ attr_accessor :expand
2606
+ # If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch.
2607
+ attr_accessor :expires_at
2608
+
2609
+ def initialize(active_from: nil, expand: nil, expires_at: nil)
2610
+ @active_from = active_from
2611
+ @expand = expand
2612
+ @expires_at = expires_at
2613
+ end
2614
+ end
2615
+ # Time at which the registration becomes active. Measured in seconds since the Unix epoch.
2616
+ attr_reader :active_from
2617
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2618
+ attr_reader :country
2619
+ # Attribute for field country_options
2620
+ attr_reader :country_options
2621
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
2622
+ attr_reader :created
2623
+ # If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. Measured in seconds since the Unix epoch.
2624
+ attr_reader :expires_at
2625
+ # Unique identifier for the object.
2626
+ attr_reader :id
2627
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
2628
+ attr_reader :livemode
2629
+ # String representing the object's type. Objects of the same type share the same value.
2630
+ attr_reader :object
2631
+ # The status of the registration. This field is present for convenience and can be deduced from `active_from` and `expires_at`.
2632
+ attr_reader :status
2633
+
2634
+ # Creates a new Tax Registration object.
2635
+ def self.create(params = {}, opts = {})
2636
+ request_stripe_object(
2637
+ method: :post,
2638
+ path: "/v1/tax/registrations",
2639
+ params: params,
2640
+ opts: opts
2641
+ )
2642
+ end
2643
+
2644
+ # Returns a list of Tax Registration objects.
2645
+ def self.list(params = {}, opts = {})
2646
+ request_stripe_object(
2647
+ method: :get,
2648
+ path: "/v1/tax/registrations",
2649
+ params: params,
2650
+ opts: opts
2651
+ )
2652
+ end
2653
+
2654
+ # Updates an existing Tax Registration object.
2655
+ #
2656
+ # A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at.
2657
+ def self.update(id, params = {}, opts = {})
2658
+ request_stripe_object(
2659
+ method: :post,
2660
+ path: format("/v1/tax/registrations/%<id>s", { id: CGI.escape(id) }),
2661
+ params: params,
2662
+ opts: opts
2663
+ )
2664
+ end
2665
+ end
2666
+ end
2667
+ end