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,1774 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Tax
6
+ class RegistrationService < StripeService
7
+ class ListParams < Stripe::RequestParams
8
+ # 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.
9
+ attr_accessor :ending_before
10
+ # Specifies which fields in the response should be expanded.
11
+ attr_accessor :expand
12
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
13
+ attr_accessor :limit
14
+ # 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.
15
+ attr_accessor :starting_after
16
+ # The status of the Tax Registration.
17
+ attr_accessor :status
18
+
19
+ def initialize(
20
+ ending_before: nil,
21
+ expand: nil,
22
+ limit: nil,
23
+ starting_after: nil,
24
+ status: nil
25
+ )
26
+ @ending_before = ending_before
27
+ @expand = expand
28
+ @limit = limit
29
+ @starting_after = starting_after
30
+ @status = status
31
+ end
32
+ end
33
+
34
+ class CreateParams < Stripe::RequestParams
35
+ class CountryOptions < Stripe::RequestParams
36
+ class Ae < Stripe::RequestParams
37
+ # Type of registration to be created in `country`.
38
+ attr_accessor :type
39
+
40
+ def initialize(type: nil)
41
+ @type = type
42
+ end
43
+ end
44
+
45
+ class Al < Stripe::RequestParams
46
+ # Type of registration to be created in `country`.
47
+ attr_accessor :type
48
+
49
+ def initialize(type: nil)
50
+ @type = type
51
+ end
52
+ end
53
+
54
+ class Am < Stripe::RequestParams
55
+ # Type of registration to be created in `country`.
56
+ attr_accessor :type
57
+
58
+ def initialize(type: nil)
59
+ @type = type
60
+ end
61
+ end
62
+
63
+ class Ao < Stripe::RequestParams
64
+ # Type of registration to be created in `country`.
65
+ attr_accessor :type
66
+
67
+ def initialize(type: nil)
68
+ @type = type
69
+ end
70
+ end
71
+
72
+ class At < Stripe::RequestParams
73
+ class Standard < Stripe::RequestParams
74
+ # Place of supply scheme used in an EU standard registration.
75
+ attr_accessor :place_of_supply_scheme
76
+
77
+ def initialize(place_of_supply_scheme: nil)
78
+ @place_of_supply_scheme = place_of_supply_scheme
79
+ end
80
+ end
81
+ # Options for the standard registration.
82
+ attr_accessor :standard
83
+ # Type of registration to be created in an EU country.
84
+ attr_accessor :type
85
+
86
+ def initialize(standard: nil, type: nil)
87
+ @standard = standard
88
+ @type = type
89
+ end
90
+ end
91
+
92
+ class Au < Stripe::RequestParams
93
+ # Type of registration to be created in `country`.
94
+ attr_accessor :type
95
+
96
+ def initialize(type: nil)
97
+ @type = type
98
+ end
99
+ end
100
+
101
+ class Aw < Stripe::RequestParams
102
+ # Type of registration to be created in `country`.
103
+ attr_accessor :type
104
+
105
+ def initialize(type: nil)
106
+ @type = type
107
+ end
108
+ end
109
+
110
+ class Az < Stripe::RequestParams
111
+ # Type of registration to be created in `country`.
112
+ attr_accessor :type
113
+
114
+ def initialize(type: nil)
115
+ @type = type
116
+ end
117
+ end
118
+
119
+ class Ba < Stripe::RequestParams
120
+ # Type of registration to be created in `country`.
121
+ attr_accessor :type
122
+
123
+ def initialize(type: nil)
124
+ @type = type
125
+ end
126
+ end
127
+
128
+ class Bb < Stripe::RequestParams
129
+ # Type of registration to be created in `country`.
130
+ attr_accessor :type
131
+
132
+ def initialize(type: nil)
133
+ @type = type
134
+ end
135
+ end
136
+
137
+ class Bd < Stripe::RequestParams
138
+ # Type of registration to be created in `country`.
139
+ attr_accessor :type
140
+
141
+ def initialize(type: nil)
142
+ @type = type
143
+ end
144
+ end
145
+
146
+ class Be < Stripe::RequestParams
147
+ class Standard < Stripe::RequestParams
148
+ # Place of supply scheme used in an EU standard registration.
149
+ attr_accessor :place_of_supply_scheme
150
+
151
+ def initialize(place_of_supply_scheme: nil)
152
+ @place_of_supply_scheme = place_of_supply_scheme
153
+ end
154
+ end
155
+ # Options for the standard registration.
156
+ attr_accessor :standard
157
+ # Type of registration to be created in an EU country.
158
+ attr_accessor :type
159
+
160
+ def initialize(standard: nil, type: nil)
161
+ @standard = standard
162
+ @type = type
163
+ end
164
+ end
165
+
166
+ class Bf < Stripe::RequestParams
167
+ # Type of registration to be created in `country`.
168
+ attr_accessor :type
169
+
170
+ def initialize(type: nil)
171
+ @type = type
172
+ end
173
+ end
174
+
175
+ class Bg < Stripe::RequestParams
176
+ class Standard < Stripe::RequestParams
177
+ # Place of supply scheme used in an EU standard registration.
178
+ attr_accessor :place_of_supply_scheme
179
+
180
+ def initialize(place_of_supply_scheme: nil)
181
+ @place_of_supply_scheme = place_of_supply_scheme
182
+ end
183
+ end
184
+ # Options for the standard registration.
185
+ attr_accessor :standard
186
+ # Type of registration to be created in an EU country.
187
+ attr_accessor :type
188
+
189
+ def initialize(standard: nil, type: nil)
190
+ @standard = standard
191
+ @type = type
192
+ end
193
+ end
194
+
195
+ class Bh < Stripe::RequestParams
196
+ # Type of registration to be created in `country`.
197
+ attr_accessor :type
198
+
199
+ def initialize(type: nil)
200
+ @type = type
201
+ end
202
+ end
203
+
204
+ class Bj < Stripe::RequestParams
205
+ # Type of registration to be created in `country`.
206
+ attr_accessor :type
207
+
208
+ def initialize(type: nil)
209
+ @type = type
210
+ end
211
+ end
212
+
213
+ class Bs < Stripe::RequestParams
214
+ # Type of registration to be created in `country`.
215
+ attr_accessor :type
216
+
217
+ def initialize(type: nil)
218
+ @type = type
219
+ end
220
+ end
221
+
222
+ class By < Stripe::RequestParams
223
+ # Type of registration to be created in `country`.
224
+ attr_accessor :type
225
+
226
+ def initialize(type: nil)
227
+ @type = type
228
+ end
229
+ end
230
+
231
+ class Ca < Stripe::RequestParams
232
+ class ProvinceStandard < Stripe::RequestParams
233
+ # Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
234
+ attr_accessor :province
235
+
236
+ def initialize(province: nil)
237
+ @province = province
238
+ end
239
+ end
240
+ # Options for the provincial tax registration.
241
+ attr_accessor :province_standard
242
+ # Type of registration to be created in Canada.
243
+ attr_accessor :type
244
+
245
+ def initialize(province_standard: nil, type: nil)
246
+ @province_standard = province_standard
247
+ @type = type
248
+ end
249
+ end
250
+
251
+ class Cd < Stripe::RequestParams
252
+ # Type of registration to be created in `country`.
253
+ attr_accessor :type
254
+
255
+ def initialize(type: nil)
256
+ @type = type
257
+ end
258
+ end
259
+
260
+ class Ch < Stripe::RequestParams
261
+ # Type of registration to be created in `country`.
262
+ attr_accessor :type
263
+
264
+ def initialize(type: nil)
265
+ @type = type
266
+ end
267
+ end
268
+
269
+ class Cl < Stripe::RequestParams
270
+ # Type of registration to be created in `country`.
271
+ attr_accessor :type
272
+
273
+ def initialize(type: nil)
274
+ @type = type
275
+ end
276
+ end
277
+
278
+ class Cm < Stripe::RequestParams
279
+ # Type of registration to be created in `country`.
280
+ attr_accessor :type
281
+
282
+ def initialize(type: nil)
283
+ @type = type
284
+ end
285
+ end
286
+
287
+ class Co < Stripe::RequestParams
288
+ # Type of registration to be created in `country`.
289
+ attr_accessor :type
290
+
291
+ def initialize(type: nil)
292
+ @type = type
293
+ end
294
+ end
295
+
296
+ class Cr < Stripe::RequestParams
297
+ # Type of registration to be created in `country`.
298
+ attr_accessor :type
299
+
300
+ def initialize(type: nil)
301
+ @type = type
302
+ end
303
+ end
304
+
305
+ class Cv < Stripe::RequestParams
306
+ # Type of registration to be created in `country`.
307
+ attr_accessor :type
308
+
309
+ def initialize(type: nil)
310
+ @type = type
311
+ end
312
+ end
313
+
314
+ class Cy < Stripe::RequestParams
315
+ class Standard < Stripe::RequestParams
316
+ # Place of supply scheme used in an EU standard registration.
317
+ attr_accessor :place_of_supply_scheme
318
+
319
+ def initialize(place_of_supply_scheme: nil)
320
+ @place_of_supply_scheme = place_of_supply_scheme
321
+ end
322
+ end
323
+ # Options for the standard registration.
324
+ attr_accessor :standard
325
+ # Type of registration to be created in an EU country.
326
+ attr_accessor :type
327
+
328
+ def initialize(standard: nil, type: nil)
329
+ @standard = standard
330
+ @type = type
331
+ end
332
+ end
333
+
334
+ class Cz < Stripe::RequestParams
335
+ class Standard < Stripe::RequestParams
336
+ # Place of supply scheme used in an EU standard registration.
337
+ attr_accessor :place_of_supply_scheme
338
+
339
+ def initialize(place_of_supply_scheme: nil)
340
+ @place_of_supply_scheme = place_of_supply_scheme
341
+ end
342
+ end
343
+ # Options for the standard registration.
344
+ attr_accessor :standard
345
+ # Type of registration to be created in an EU country.
346
+ attr_accessor :type
347
+
348
+ def initialize(standard: nil, type: nil)
349
+ @standard = standard
350
+ @type = type
351
+ end
352
+ end
353
+
354
+ class De < Stripe::RequestParams
355
+ class Standard < Stripe::RequestParams
356
+ # Place of supply scheme used in an EU standard registration.
357
+ attr_accessor :place_of_supply_scheme
358
+
359
+ def initialize(place_of_supply_scheme: nil)
360
+ @place_of_supply_scheme = place_of_supply_scheme
361
+ end
362
+ end
363
+ # Options for the standard registration.
364
+ attr_accessor :standard
365
+ # Type of registration to be created in an EU country.
366
+ attr_accessor :type
367
+
368
+ def initialize(standard: nil, type: nil)
369
+ @standard = standard
370
+ @type = type
371
+ end
372
+ end
373
+
374
+ class Dk < Stripe::RequestParams
375
+ class Standard < Stripe::RequestParams
376
+ # Place of supply scheme used in an EU standard registration.
377
+ attr_accessor :place_of_supply_scheme
378
+
379
+ def initialize(place_of_supply_scheme: nil)
380
+ @place_of_supply_scheme = place_of_supply_scheme
381
+ end
382
+ end
383
+ # Options for the standard registration.
384
+ attr_accessor :standard
385
+ # Type of registration to be created in an EU country.
386
+ attr_accessor :type
387
+
388
+ def initialize(standard: nil, type: nil)
389
+ @standard = standard
390
+ @type = type
391
+ end
392
+ end
393
+
394
+ class Ec < Stripe::RequestParams
395
+ # Type of registration to be created in `country`.
396
+ attr_accessor :type
397
+
398
+ def initialize(type: nil)
399
+ @type = type
400
+ end
401
+ end
402
+
403
+ class Ee < Stripe::RequestParams
404
+ class Standard < Stripe::RequestParams
405
+ # Place of supply scheme used in an EU standard registration.
406
+ attr_accessor :place_of_supply_scheme
407
+
408
+ def initialize(place_of_supply_scheme: nil)
409
+ @place_of_supply_scheme = place_of_supply_scheme
410
+ end
411
+ end
412
+ # Options for the standard registration.
413
+ attr_accessor :standard
414
+ # Type of registration to be created in an EU country.
415
+ attr_accessor :type
416
+
417
+ def initialize(standard: nil, type: nil)
418
+ @standard = standard
419
+ @type = type
420
+ end
421
+ end
422
+
423
+ class Eg < Stripe::RequestParams
424
+ # Type of registration to be created in `country`.
425
+ attr_accessor :type
426
+
427
+ def initialize(type: nil)
428
+ @type = type
429
+ end
430
+ end
431
+
432
+ class Es < Stripe::RequestParams
433
+ class Standard < Stripe::RequestParams
434
+ # Place of supply scheme used in an EU standard registration.
435
+ attr_accessor :place_of_supply_scheme
436
+
437
+ def initialize(place_of_supply_scheme: nil)
438
+ @place_of_supply_scheme = place_of_supply_scheme
439
+ end
440
+ end
441
+ # Options for the standard registration.
442
+ attr_accessor :standard
443
+ # Type of registration to be created in an EU country.
444
+ attr_accessor :type
445
+
446
+ def initialize(standard: nil, type: nil)
447
+ @standard = standard
448
+ @type = type
449
+ end
450
+ end
451
+
452
+ class Et < Stripe::RequestParams
453
+ # Type of registration to be created in `country`.
454
+ attr_accessor :type
455
+
456
+ def initialize(type: nil)
457
+ @type = type
458
+ end
459
+ end
460
+
461
+ class Fi < Stripe::RequestParams
462
+ class Standard < Stripe::RequestParams
463
+ # Place of supply scheme used in an EU standard registration.
464
+ attr_accessor :place_of_supply_scheme
465
+
466
+ def initialize(place_of_supply_scheme: nil)
467
+ @place_of_supply_scheme = place_of_supply_scheme
468
+ end
469
+ end
470
+ # Options for the standard registration.
471
+ attr_accessor :standard
472
+ # Type of registration to be created in an EU country.
473
+ attr_accessor :type
474
+
475
+ def initialize(standard: nil, type: nil)
476
+ @standard = standard
477
+ @type = type
478
+ end
479
+ end
480
+
481
+ class Fr < Stripe::RequestParams
482
+ class Standard < Stripe::RequestParams
483
+ # Place of supply scheme used in an EU standard registration.
484
+ attr_accessor :place_of_supply_scheme
485
+
486
+ def initialize(place_of_supply_scheme: nil)
487
+ @place_of_supply_scheme = place_of_supply_scheme
488
+ end
489
+ end
490
+ # Options for the standard registration.
491
+ attr_accessor :standard
492
+ # Type of registration to be created in an EU country.
493
+ attr_accessor :type
494
+
495
+ def initialize(standard: nil, type: nil)
496
+ @standard = standard
497
+ @type = type
498
+ end
499
+ end
500
+
501
+ class Gb < Stripe::RequestParams
502
+ # Type of registration to be created in `country`.
503
+ attr_accessor :type
504
+
505
+ def initialize(type: nil)
506
+ @type = type
507
+ end
508
+ end
509
+
510
+ class Ge < Stripe::RequestParams
511
+ # Type of registration to be created in `country`.
512
+ attr_accessor :type
513
+
514
+ def initialize(type: nil)
515
+ @type = type
516
+ end
517
+ end
518
+
519
+ class Gn < Stripe::RequestParams
520
+ # Type of registration to be created in `country`.
521
+ attr_accessor :type
522
+
523
+ def initialize(type: nil)
524
+ @type = type
525
+ end
526
+ end
527
+
528
+ class Gr < Stripe::RequestParams
529
+ class Standard < Stripe::RequestParams
530
+ # Place of supply scheme used in an EU standard registration.
531
+ attr_accessor :place_of_supply_scheme
532
+
533
+ def initialize(place_of_supply_scheme: nil)
534
+ @place_of_supply_scheme = place_of_supply_scheme
535
+ end
536
+ end
537
+ # Options for the standard registration.
538
+ attr_accessor :standard
539
+ # Type of registration to be created in an EU country.
540
+ attr_accessor :type
541
+
542
+ def initialize(standard: nil, type: nil)
543
+ @standard = standard
544
+ @type = type
545
+ end
546
+ end
547
+
548
+ class Hr < Stripe::RequestParams
549
+ class Standard < Stripe::RequestParams
550
+ # Place of supply scheme used in an EU standard registration.
551
+ attr_accessor :place_of_supply_scheme
552
+
553
+ def initialize(place_of_supply_scheme: nil)
554
+ @place_of_supply_scheme = place_of_supply_scheme
555
+ end
556
+ end
557
+ # Options for the standard registration.
558
+ attr_accessor :standard
559
+ # Type of registration to be created in an EU country.
560
+ attr_accessor :type
561
+
562
+ def initialize(standard: nil, type: nil)
563
+ @standard = standard
564
+ @type = type
565
+ end
566
+ end
567
+
568
+ class Hu < Stripe::RequestParams
569
+ class Standard < Stripe::RequestParams
570
+ # Place of supply scheme used in an EU standard registration.
571
+ attr_accessor :place_of_supply_scheme
572
+
573
+ def initialize(place_of_supply_scheme: nil)
574
+ @place_of_supply_scheme = place_of_supply_scheme
575
+ end
576
+ end
577
+ # Options for the standard registration.
578
+ attr_accessor :standard
579
+ # Type of registration to be created in an EU country.
580
+ attr_accessor :type
581
+
582
+ def initialize(standard: nil, type: nil)
583
+ @standard = standard
584
+ @type = type
585
+ end
586
+ end
587
+
588
+ class Id < Stripe::RequestParams
589
+ # Type of registration to be created in `country`.
590
+ attr_accessor :type
591
+
592
+ def initialize(type: nil)
593
+ @type = type
594
+ end
595
+ end
596
+
597
+ class Ie < Stripe::RequestParams
598
+ class Standard < Stripe::RequestParams
599
+ # Place of supply scheme used in an EU standard registration.
600
+ attr_accessor :place_of_supply_scheme
601
+
602
+ def initialize(place_of_supply_scheme: nil)
603
+ @place_of_supply_scheme = place_of_supply_scheme
604
+ end
605
+ end
606
+ # Options for the standard registration.
607
+ attr_accessor :standard
608
+ # Type of registration to be created in an EU country.
609
+ attr_accessor :type
610
+
611
+ def initialize(standard: nil, type: nil)
612
+ @standard = standard
613
+ @type = type
614
+ end
615
+ end
616
+
617
+ class In < Stripe::RequestParams
618
+ # Type of registration to be created in `country`.
619
+ attr_accessor :type
620
+
621
+ def initialize(type: nil)
622
+ @type = type
623
+ end
624
+ end
625
+
626
+ class Is < Stripe::RequestParams
627
+ # Type of registration to be created in `country`.
628
+ attr_accessor :type
629
+
630
+ def initialize(type: nil)
631
+ @type = type
632
+ end
633
+ end
634
+
635
+ class It < Stripe::RequestParams
636
+ class Standard < Stripe::RequestParams
637
+ # Place of supply scheme used in an EU standard registration.
638
+ attr_accessor :place_of_supply_scheme
639
+
640
+ def initialize(place_of_supply_scheme: nil)
641
+ @place_of_supply_scheme = place_of_supply_scheme
642
+ end
643
+ end
644
+ # Options for the standard registration.
645
+ attr_accessor :standard
646
+ # Type of registration to be created in an EU country.
647
+ attr_accessor :type
648
+
649
+ def initialize(standard: nil, type: nil)
650
+ @standard = standard
651
+ @type = type
652
+ end
653
+ end
654
+
655
+ class Jp < Stripe::RequestParams
656
+ # Type of registration to be created in `country`.
657
+ attr_accessor :type
658
+
659
+ def initialize(type: nil)
660
+ @type = type
661
+ end
662
+ end
663
+
664
+ class Ke < Stripe::RequestParams
665
+ # Type of registration to be created in `country`.
666
+ attr_accessor :type
667
+
668
+ def initialize(type: nil)
669
+ @type = type
670
+ end
671
+ end
672
+
673
+ class Kg < Stripe::RequestParams
674
+ # Type of registration to be created in `country`.
675
+ attr_accessor :type
676
+
677
+ def initialize(type: nil)
678
+ @type = type
679
+ end
680
+ end
681
+
682
+ class Kh < Stripe::RequestParams
683
+ # Type of registration to be created in `country`.
684
+ attr_accessor :type
685
+
686
+ def initialize(type: nil)
687
+ @type = type
688
+ end
689
+ end
690
+
691
+ class Kr < Stripe::RequestParams
692
+ # Type of registration to be created in `country`.
693
+ attr_accessor :type
694
+
695
+ def initialize(type: nil)
696
+ @type = type
697
+ end
698
+ end
699
+
700
+ class Kz < Stripe::RequestParams
701
+ # Type of registration to be created in `country`.
702
+ attr_accessor :type
703
+
704
+ def initialize(type: nil)
705
+ @type = type
706
+ end
707
+ end
708
+
709
+ class La < Stripe::RequestParams
710
+ # Type of registration to be created in `country`.
711
+ attr_accessor :type
712
+
713
+ def initialize(type: nil)
714
+ @type = type
715
+ end
716
+ end
717
+
718
+ class Lt < Stripe::RequestParams
719
+ class Standard < Stripe::RequestParams
720
+ # Place of supply scheme used in an EU standard registration.
721
+ attr_accessor :place_of_supply_scheme
722
+
723
+ def initialize(place_of_supply_scheme: nil)
724
+ @place_of_supply_scheme = place_of_supply_scheme
725
+ end
726
+ end
727
+ # Options for the standard registration.
728
+ attr_accessor :standard
729
+ # Type of registration to be created in an EU country.
730
+ attr_accessor :type
731
+
732
+ def initialize(standard: nil, type: nil)
733
+ @standard = standard
734
+ @type = type
735
+ end
736
+ end
737
+
738
+ class Lu < Stripe::RequestParams
739
+ class Standard < Stripe::RequestParams
740
+ # Place of supply scheme used in an EU standard registration.
741
+ attr_accessor :place_of_supply_scheme
742
+
743
+ def initialize(place_of_supply_scheme: nil)
744
+ @place_of_supply_scheme = place_of_supply_scheme
745
+ end
746
+ end
747
+ # Options for the standard registration.
748
+ attr_accessor :standard
749
+ # Type of registration to be created in an EU country.
750
+ attr_accessor :type
751
+
752
+ def initialize(standard: nil, type: nil)
753
+ @standard = standard
754
+ @type = type
755
+ end
756
+ end
757
+
758
+ class Lv < Stripe::RequestParams
759
+ class Standard < Stripe::RequestParams
760
+ # Place of supply scheme used in an EU standard registration.
761
+ attr_accessor :place_of_supply_scheme
762
+
763
+ def initialize(place_of_supply_scheme: nil)
764
+ @place_of_supply_scheme = place_of_supply_scheme
765
+ end
766
+ end
767
+ # Options for the standard registration.
768
+ attr_accessor :standard
769
+ # Type of registration to be created in an EU country.
770
+ attr_accessor :type
771
+
772
+ def initialize(standard: nil, type: nil)
773
+ @standard = standard
774
+ @type = type
775
+ end
776
+ end
777
+
778
+ class Ma < Stripe::RequestParams
779
+ # Type of registration to be created in `country`.
780
+ attr_accessor :type
781
+
782
+ def initialize(type: nil)
783
+ @type = type
784
+ end
785
+ end
786
+
787
+ class Md < Stripe::RequestParams
788
+ # Type of registration to be created in `country`.
789
+ attr_accessor :type
790
+
791
+ def initialize(type: nil)
792
+ @type = type
793
+ end
794
+ end
795
+
796
+ class Me < Stripe::RequestParams
797
+ # Type of registration to be created in `country`.
798
+ attr_accessor :type
799
+
800
+ def initialize(type: nil)
801
+ @type = type
802
+ end
803
+ end
804
+
805
+ class Mk < Stripe::RequestParams
806
+ # Type of registration to be created in `country`.
807
+ attr_accessor :type
808
+
809
+ def initialize(type: nil)
810
+ @type = type
811
+ end
812
+ end
813
+
814
+ class Mr < Stripe::RequestParams
815
+ # Type of registration to be created in `country`.
816
+ attr_accessor :type
817
+
818
+ def initialize(type: nil)
819
+ @type = type
820
+ end
821
+ end
822
+
823
+ class Mt < Stripe::RequestParams
824
+ class Standard < Stripe::RequestParams
825
+ # Place of supply scheme used in an EU standard registration.
826
+ attr_accessor :place_of_supply_scheme
827
+
828
+ def initialize(place_of_supply_scheme: nil)
829
+ @place_of_supply_scheme = place_of_supply_scheme
830
+ end
831
+ end
832
+ # Options for the standard registration.
833
+ attr_accessor :standard
834
+ # Type of registration to be created in an EU country.
835
+ attr_accessor :type
836
+
837
+ def initialize(standard: nil, type: nil)
838
+ @standard = standard
839
+ @type = type
840
+ end
841
+ end
842
+
843
+ class Mx < Stripe::RequestParams
844
+ # Type of registration to be created in `country`.
845
+ attr_accessor :type
846
+
847
+ def initialize(type: nil)
848
+ @type = type
849
+ end
850
+ end
851
+
852
+ class My < Stripe::RequestParams
853
+ # Type of registration to be created in `country`.
854
+ attr_accessor :type
855
+
856
+ def initialize(type: nil)
857
+ @type = type
858
+ end
859
+ end
860
+
861
+ class Ng < Stripe::RequestParams
862
+ # Type of registration to be created in `country`.
863
+ attr_accessor :type
864
+
865
+ def initialize(type: nil)
866
+ @type = type
867
+ end
868
+ end
869
+
870
+ class Nl < Stripe::RequestParams
871
+ class Standard < Stripe::RequestParams
872
+ # Place of supply scheme used in an EU standard registration.
873
+ attr_accessor :place_of_supply_scheme
874
+
875
+ def initialize(place_of_supply_scheme: nil)
876
+ @place_of_supply_scheme = place_of_supply_scheme
877
+ end
878
+ end
879
+ # Options for the standard registration.
880
+ attr_accessor :standard
881
+ # Type of registration to be created in an EU country.
882
+ attr_accessor :type
883
+
884
+ def initialize(standard: nil, type: nil)
885
+ @standard = standard
886
+ @type = type
887
+ end
888
+ end
889
+
890
+ class No < Stripe::RequestParams
891
+ # Type of registration to be created in `country`.
892
+ attr_accessor :type
893
+
894
+ def initialize(type: nil)
895
+ @type = type
896
+ end
897
+ end
898
+
899
+ class Np < Stripe::RequestParams
900
+ # Type of registration to be created in `country`.
901
+ attr_accessor :type
902
+
903
+ def initialize(type: nil)
904
+ @type = type
905
+ end
906
+ end
907
+
908
+ class Nz < Stripe::RequestParams
909
+ # Type of registration to be created in `country`.
910
+ attr_accessor :type
911
+
912
+ def initialize(type: nil)
913
+ @type = type
914
+ end
915
+ end
916
+
917
+ class Om < Stripe::RequestParams
918
+ # Type of registration to be created in `country`.
919
+ attr_accessor :type
920
+
921
+ def initialize(type: nil)
922
+ @type = type
923
+ end
924
+ end
925
+
926
+ class Pe < Stripe::RequestParams
927
+ # Type of registration to be created in `country`.
928
+ attr_accessor :type
929
+
930
+ def initialize(type: nil)
931
+ @type = type
932
+ end
933
+ end
934
+
935
+ class Ph < Stripe::RequestParams
936
+ # Type of registration to be created in `country`.
937
+ attr_accessor :type
938
+
939
+ def initialize(type: nil)
940
+ @type = type
941
+ end
942
+ end
943
+
944
+ class Pl < Stripe::RequestParams
945
+ class Standard < Stripe::RequestParams
946
+ # Place of supply scheme used in an EU standard registration.
947
+ attr_accessor :place_of_supply_scheme
948
+
949
+ def initialize(place_of_supply_scheme: nil)
950
+ @place_of_supply_scheme = place_of_supply_scheme
951
+ end
952
+ end
953
+ # Options for the standard registration.
954
+ attr_accessor :standard
955
+ # Type of registration to be created in an EU country.
956
+ attr_accessor :type
957
+
958
+ def initialize(standard: nil, type: nil)
959
+ @standard = standard
960
+ @type = type
961
+ end
962
+ end
963
+
964
+ class Pt < Stripe::RequestParams
965
+ class Standard < Stripe::RequestParams
966
+ # Place of supply scheme used in an EU standard registration.
967
+ attr_accessor :place_of_supply_scheme
968
+
969
+ def initialize(place_of_supply_scheme: nil)
970
+ @place_of_supply_scheme = place_of_supply_scheme
971
+ end
972
+ end
973
+ # Options for the standard registration.
974
+ attr_accessor :standard
975
+ # Type of registration to be created in an EU country.
976
+ attr_accessor :type
977
+
978
+ def initialize(standard: nil, type: nil)
979
+ @standard = standard
980
+ @type = type
981
+ end
982
+ end
983
+
984
+ class Ro < Stripe::RequestParams
985
+ class Standard < Stripe::RequestParams
986
+ # Place of supply scheme used in an EU standard registration.
987
+ attr_accessor :place_of_supply_scheme
988
+
989
+ def initialize(place_of_supply_scheme: nil)
990
+ @place_of_supply_scheme = place_of_supply_scheme
991
+ end
992
+ end
993
+ # Options for the standard registration.
994
+ attr_accessor :standard
995
+ # Type of registration to be created in an EU country.
996
+ attr_accessor :type
997
+
998
+ def initialize(standard: nil, type: nil)
999
+ @standard = standard
1000
+ @type = type
1001
+ end
1002
+ end
1003
+
1004
+ class Rs < Stripe::RequestParams
1005
+ # Type of registration to be created in `country`.
1006
+ attr_accessor :type
1007
+
1008
+ def initialize(type: nil)
1009
+ @type = type
1010
+ end
1011
+ end
1012
+
1013
+ class Ru < Stripe::RequestParams
1014
+ # Type of registration to be created in `country`.
1015
+ attr_accessor :type
1016
+
1017
+ def initialize(type: nil)
1018
+ @type = type
1019
+ end
1020
+ end
1021
+
1022
+ class Sa < Stripe::RequestParams
1023
+ # Type of registration to be created in `country`.
1024
+ attr_accessor :type
1025
+
1026
+ def initialize(type: nil)
1027
+ @type = type
1028
+ end
1029
+ end
1030
+
1031
+ class Se < Stripe::RequestParams
1032
+ class Standard < Stripe::RequestParams
1033
+ # Place of supply scheme used in an EU standard registration.
1034
+ attr_accessor :place_of_supply_scheme
1035
+
1036
+ def initialize(place_of_supply_scheme: nil)
1037
+ @place_of_supply_scheme = place_of_supply_scheme
1038
+ end
1039
+ end
1040
+ # Options for the standard registration.
1041
+ attr_accessor :standard
1042
+ # Type of registration to be created in an EU country.
1043
+ attr_accessor :type
1044
+
1045
+ def initialize(standard: nil, type: nil)
1046
+ @standard = standard
1047
+ @type = type
1048
+ end
1049
+ end
1050
+
1051
+ class Sg < Stripe::RequestParams
1052
+ # Type of registration to be created in `country`.
1053
+ attr_accessor :type
1054
+
1055
+ def initialize(type: nil)
1056
+ @type = type
1057
+ end
1058
+ end
1059
+
1060
+ class Si < Stripe::RequestParams
1061
+ class Standard < Stripe::RequestParams
1062
+ # Place of supply scheme used in an EU standard registration.
1063
+ attr_accessor :place_of_supply_scheme
1064
+
1065
+ def initialize(place_of_supply_scheme: nil)
1066
+ @place_of_supply_scheme = place_of_supply_scheme
1067
+ end
1068
+ end
1069
+ # Options for the standard registration.
1070
+ attr_accessor :standard
1071
+ # Type of registration to be created in an EU country.
1072
+ attr_accessor :type
1073
+
1074
+ def initialize(standard: nil, type: nil)
1075
+ @standard = standard
1076
+ @type = type
1077
+ end
1078
+ end
1079
+
1080
+ class Sk < Stripe::RequestParams
1081
+ class Standard < Stripe::RequestParams
1082
+ # Place of supply scheme used in an EU standard registration.
1083
+ attr_accessor :place_of_supply_scheme
1084
+
1085
+ def initialize(place_of_supply_scheme: nil)
1086
+ @place_of_supply_scheme = place_of_supply_scheme
1087
+ end
1088
+ end
1089
+ # Options for the standard registration.
1090
+ attr_accessor :standard
1091
+ # Type of registration to be created in an EU country.
1092
+ attr_accessor :type
1093
+
1094
+ def initialize(standard: nil, type: nil)
1095
+ @standard = standard
1096
+ @type = type
1097
+ end
1098
+ end
1099
+
1100
+ class Sn < Stripe::RequestParams
1101
+ # Type of registration to be created in `country`.
1102
+ attr_accessor :type
1103
+
1104
+ def initialize(type: nil)
1105
+ @type = type
1106
+ end
1107
+ end
1108
+
1109
+ class Sr < Stripe::RequestParams
1110
+ # Type of registration to be created in `country`.
1111
+ attr_accessor :type
1112
+
1113
+ def initialize(type: nil)
1114
+ @type = type
1115
+ end
1116
+ end
1117
+
1118
+ class Th < Stripe::RequestParams
1119
+ # Type of registration to be created in `country`.
1120
+ attr_accessor :type
1121
+
1122
+ def initialize(type: nil)
1123
+ @type = type
1124
+ end
1125
+ end
1126
+
1127
+ class Tj < Stripe::RequestParams
1128
+ # Type of registration to be created in `country`.
1129
+ attr_accessor :type
1130
+
1131
+ def initialize(type: nil)
1132
+ @type = type
1133
+ end
1134
+ end
1135
+
1136
+ class Tr < Stripe::RequestParams
1137
+ # Type of registration to be created in `country`.
1138
+ attr_accessor :type
1139
+
1140
+ def initialize(type: nil)
1141
+ @type = type
1142
+ end
1143
+ end
1144
+
1145
+ class Tz < Stripe::RequestParams
1146
+ # Type of registration to be created in `country`.
1147
+ attr_accessor :type
1148
+
1149
+ def initialize(type: nil)
1150
+ @type = type
1151
+ end
1152
+ end
1153
+
1154
+ class Ug < Stripe::RequestParams
1155
+ # Type of registration to be created in `country`.
1156
+ attr_accessor :type
1157
+
1158
+ def initialize(type: nil)
1159
+ @type = type
1160
+ end
1161
+ end
1162
+
1163
+ class Us < Stripe::RequestParams
1164
+ class LocalAmusementTax < Stripe::RequestParams
1165
+ # 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).
1166
+ attr_accessor :jurisdiction
1167
+
1168
+ def initialize(jurisdiction: nil)
1169
+ @jurisdiction = jurisdiction
1170
+ end
1171
+ end
1172
+
1173
+ class LocalLeaseTax < Stripe::RequestParams
1174
+ # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago).
1175
+ attr_accessor :jurisdiction
1176
+
1177
+ def initialize(jurisdiction: nil)
1178
+ @jurisdiction = jurisdiction
1179
+ end
1180
+ end
1181
+
1182
+ class StateSalesTax < Stripe::RequestParams
1183
+ class Election < Stripe::RequestParams
1184
+ # 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).
1185
+ attr_accessor :jurisdiction
1186
+ # The type of the election for the state sales tax registration.
1187
+ attr_accessor :type
1188
+
1189
+ def initialize(jurisdiction: nil, type: nil)
1190
+ @jurisdiction = jurisdiction
1191
+ @type = type
1192
+ end
1193
+ end
1194
+ # Elections for the state sales tax registration.
1195
+ attr_accessor :elections
1196
+
1197
+ def initialize(elections: nil)
1198
+ @elections = elections
1199
+ end
1200
+ end
1201
+ # Options for the local amusement tax registration.
1202
+ attr_accessor :local_amusement_tax
1203
+ # Options for the local lease tax registration.
1204
+ attr_accessor :local_lease_tax
1205
+ # Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1206
+ attr_accessor :state
1207
+ # Options for the state sales tax registration.
1208
+ attr_accessor :state_sales_tax
1209
+ # Type of registration to be created in the US.
1210
+ attr_accessor :type
1211
+
1212
+ def initialize(
1213
+ local_amusement_tax: nil,
1214
+ local_lease_tax: nil,
1215
+ state: nil,
1216
+ state_sales_tax: nil,
1217
+ type: nil
1218
+ )
1219
+ @local_amusement_tax = local_amusement_tax
1220
+ @local_lease_tax = local_lease_tax
1221
+ @state = state
1222
+ @state_sales_tax = state_sales_tax
1223
+ @type = type
1224
+ end
1225
+ end
1226
+
1227
+ class Uy < Stripe::RequestParams
1228
+ # Type of registration to be created in `country`.
1229
+ attr_accessor :type
1230
+
1231
+ def initialize(type: nil)
1232
+ @type = type
1233
+ end
1234
+ end
1235
+
1236
+ class Uz < Stripe::RequestParams
1237
+ # Type of registration to be created in `country`.
1238
+ attr_accessor :type
1239
+
1240
+ def initialize(type: nil)
1241
+ @type = type
1242
+ end
1243
+ end
1244
+
1245
+ class Vn < Stripe::RequestParams
1246
+ # Type of registration to be created in `country`.
1247
+ attr_accessor :type
1248
+
1249
+ def initialize(type: nil)
1250
+ @type = type
1251
+ end
1252
+ end
1253
+
1254
+ class Za < Stripe::RequestParams
1255
+ # Type of registration to be created in `country`.
1256
+ attr_accessor :type
1257
+
1258
+ def initialize(type: nil)
1259
+ @type = type
1260
+ end
1261
+ end
1262
+
1263
+ class Zm < Stripe::RequestParams
1264
+ # Type of registration to be created in `country`.
1265
+ attr_accessor :type
1266
+
1267
+ def initialize(type: nil)
1268
+ @type = type
1269
+ end
1270
+ end
1271
+
1272
+ class Zw < Stripe::RequestParams
1273
+ # Type of registration to be created in `country`.
1274
+ attr_accessor :type
1275
+
1276
+ def initialize(type: nil)
1277
+ @type = type
1278
+ end
1279
+ end
1280
+ # Options for the registration in AE.
1281
+ attr_accessor :ae
1282
+ # Options for the registration in AL.
1283
+ attr_accessor :al
1284
+ # Options for the registration in AM.
1285
+ attr_accessor :am
1286
+ # Options for the registration in AO.
1287
+ attr_accessor :ao
1288
+ # Options for the registration in AT.
1289
+ attr_accessor :at
1290
+ # Options for the registration in AU.
1291
+ attr_accessor :au
1292
+ # Options for the registration in AW.
1293
+ attr_accessor :aw
1294
+ # Options for the registration in AZ.
1295
+ attr_accessor :az
1296
+ # Options for the registration in BA.
1297
+ attr_accessor :ba
1298
+ # Options for the registration in BB.
1299
+ attr_accessor :bb
1300
+ # Options for the registration in BD.
1301
+ attr_accessor :bd
1302
+ # Options for the registration in BE.
1303
+ attr_accessor :be
1304
+ # Options for the registration in BF.
1305
+ attr_accessor :bf
1306
+ # Options for the registration in BG.
1307
+ attr_accessor :bg
1308
+ # Options for the registration in BH.
1309
+ attr_accessor :bh
1310
+ # Options for the registration in BJ.
1311
+ attr_accessor :bj
1312
+ # Options for the registration in BS.
1313
+ attr_accessor :bs
1314
+ # Options for the registration in BY.
1315
+ attr_accessor :by
1316
+ # Options for the registration in CA.
1317
+ attr_accessor :ca
1318
+ # Options for the registration in CD.
1319
+ attr_accessor :cd
1320
+ # Options for the registration in CH.
1321
+ attr_accessor :ch
1322
+ # Options for the registration in CL.
1323
+ attr_accessor :cl
1324
+ # Options for the registration in CM.
1325
+ attr_accessor :cm
1326
+ # Options for the registration in CO.
1327
+ attr_accessor :co
1328
+ # Options for the registration in CR.
1329
+ attr_accessor :cr
1330
+ # Options for the registration in CV.
1331
+ attr_accessor :cv
1332
+ # Options for the registration in CY.
1333
+ attr_accessor :cy
1334
+ # Options for the registration in CZ.
1335
+ attr_accessor :cz
1336
+ # Options for the registration in DE.
1337
+ attr_accessor :de
1338
+ # Options for the registration in DK.
1339
+ attr_accessor :dk
1340
+ # Options for the registration in EC.
1341
+ attr_accessor :ec
1342
+ # Options for the registration in EE.
1343
+ attr_accessor :ee
1344
+ # Options for the registration in EG.
1345
+ attr_accessor :eg
1346
+ # Options for the registration in ES.
1347
+ attr_accessor :es
1348
+ # Options for the registration in ET.
1349
+ attr_accessor :et
1350
+ # Options for the registration in FI.
1351
+ attr_accessor :fi
1352
+ # Options for the registration in FR.
1353
+ attr_accessor :fr
1354
+ # Options for the registration in GB.
1355
+ attr_accessor :gb
1356
+ # Options for the registration in GE.
1357
+ attr_accessor :ge
1358
+ # Options for the registration in GN.
1359
+ attr_accessor :gn
1360
+ # Options for the registration in GR.
1361
+ attr_accessor :gr
1362
+ # Options for the registration in HR.
1363
+ attr_accessor :hr
1364
+ # Options for the registration in HU.
1365
+ attr_accessor :hu
1366
+ # Options for the registration in ID.
1367
+ attr_accessor :id
1368
+ # Options for the registration in IE.
1369
+ attr_accessor :ie
1370
+ # Options for the registration in IN.
1371
+ attr_accessor :in
1372
+ # Options for the registration in IS.
1373
+ attr_accessor :is
1374
+ # Options for the registration in IT.
1375
+ attr_accessor :it
1376
+ # Options for the registration in JP.
1377
+ attr_accessor :jp
1378
+ # Options for the registration in KE.
1379
+ attr_accessor :ke
1380
+ # Options for the registration in KG.
1381
+ attr_accessor :kg
1382
+ # Options for the registration in KH.
1383
+ attr_accessor :kh
1384
+ # Options for the registration in KR.
1385
+ attr_accessor :kr
1386
+ # Options for the registration in KZ.
1387
+ attr_accessor :kz
1388
+ # Options for the registration in LA.
1389
+ attr_accessor :la
1390
+ # Options for the registration in LT.
1391
+ attr_accessor :lt
1392
+ # Options for the registration in LU.
1393
+ attr_accessor :lu
1394
+ # Options for the registration in LV.
1395
+ attr_accessor :lv
1396
+ # Options for the registration in MA.
1397
+ attr_accessor :ma
1398
+ # Options for the registration in MD.
1399
+ attr_accessor :md
1400
+ # Options for the registration in ME.
1401
+ attr_accessor :me
1402
+ # Options for the registration in MK.
1403
+ attr_accessor :mk
1404
+ # Options for the registration in MR.
1405
+ attr_accessor :mr
1406
+ # Options for the registration in MT.
1407
+ attr_accessor :mt
1408
+ # Options for the registration in MX.
1409
+ attr_accessor :mx
1410
+ # Options for the registration in MY.
1411
+ attr_accessor :my
1412
+ # Options for the registration in NG.
1413
+ attr_accessor :ng
1414
+ # Options for the registration in NL.
1415
+ attr_accessor :nl
1416
+ # Options for the registration in NO.
1417
+ attr_accessor :no
1418
+ # Options for the registration in NP.
1419
+ attr_accessor :np
1420
+ # Options for the registration in NZ.
1421
+ attr_accessor :nz
1422
+ # Options for the registration in OM.
1423
+ attr_accessor :om
1424
+ # Options for the registration in PE.
1425
+ attr_accessor :pe
1426
+ # Options for the registration in PH.
1427
+ attr_accessor :ph
1428
+ # Options for the registration in PL.
1429
+ attr_accessor :pl
1430
+ # Options for the registration in PT.
1431
+ attr_accessor :pt
1432
+ # Options for the registration in RO.
1433
+ attr_accessor :ro
1434
+ # Options for the registration in RS.
1435
+ attr_accessor :rs
1436
+ # Options for the registration in RU.
1437
+ attr_accessor :ru
1438
+ # Options for the registration in SA.
1439
+ attr_accessor :sa
1440
+ # Options for the registration in SE.
1441
+ attr_accessor :se
1442
+ # Options for the registration in SG.
1443
+ attr_accessor :sg
1444
+ # Options for the registration in SI.
1445
+ attr_accessor :si
1446
+ # Options for the registration in SK.
1447
+ attr_accessor :sk
1448
+ # Options for the registration in SN.
1449
+ attr_accessor :sn
1450
+ # Options for the registration in SR.
1451
+ attr_accessor :sr
1452
+ # Options for the registration in TH.
1453
+ attr_accessor :th
1454
+ # Options for the registration in TJ.
1455
+ attr_accessor :tj
1456
+ # Options for the registration in TR.
1457
+ attr_accessor :tr
1458
+ # Options for the registration in TZ.
1459
+ attr_accessor :tz
1460
+ # Options for the registration in UG.
1461
+ attr_accessor :ug
1462
+ # Options for the registration in US.
1463
+ attr_accessor :us
1464
+ # Options for the registration in UY.
1465
+ attr_accessor :uy
1466
+ # Options for the registration in UZ.
1467
+ attr_accessor :uz
1468
+ # Options for the registration in VN.
1469
+ attr_accessor :vn
1470
+ # Options for the registration in ZA.
1471
+ attr_accessor :za
1472
+ # Options for the registration in ZM.
1473
+ attr_accessor :zm
1474
+ # Options for the registration in ZW.
1475
+ attr_accessor :zw
1476
+
1477
+ def initialize(
1478
+ ae: nil,
1479
+ al: nil,
1480
+ am: nil,
1481
+ ao: nil,
1482
+ at: nil,
1483
+ au: nil,
1484
+ aw: nil,
1485
+ az: nil,
1486
+ ba: nil,
1487
+ bb: nil,
1488
+ bd: nil,
1489
+ be: nil,
1490
+ bf: nil,
1491
+ bg: nil,
1492
+ bh: nil,
1493
+ bj: nil,
1494
+ bs: nil,
1495
+ by: nil,
1496
+ ca: nil,
1497
+ cd: nil,
1498
+ ch: nil,
1499
+ cl: nil,
1500
+ cm: nil,
1501
+ co: nil,
1502
+ cr: nil,
1503
+ cv: nil,
1504
+ cy: nil,
1505
+ cz: nil,
1506
+ de: nil,
1507
+ dk: nil,
1508
+ ec: nil,
1509
+ ee: nil,
1510
+ eg: nil,
1511
+ es: nil,
1512
+ et: nil,
1513
+ fi: nil,
1514
+ fr: nil,
1515
+ gb: nil,
1516
+ ge: nil,
1517
+ gn: nil,
1518
+ gr: nil,
1519
+ hr: nil,
1520
+ hu: nil,
1521
+ id: nil,
1522
+ ie: nil,
1523
+ in_: nil,
1524
+ is: nil,
1525
+ it: nil,
1526
+ jp: nil,
1527
+ ke: nil,
1528
+ kg: nil,
1529
+ kh: nil,
1530
+ kr: nil,
1531
+ kz: nil,
1532
+ la: nil,
1533
+ lt: nil,
1534
+ lu: nil,
1535
+ lv: nil,
1536
+ ma: nil,
1537
+ md: nil,
1538
+ me: nil,
1539
+ mk: nil,
1540
+ mr: nil,
1541
+ mt: nil,
1542
+ mx: nil,
1543
+ my: nil,
1544
+ ng: nil,
1545
+ nl: nil,
1546
+ no: nil,
1547
+ np: nil,
1548
+ nz: nil,
1549
+ om: nil,
1550
+ pe: nil,
1551
+ ph: nil,
1552
+ pl: nil,
1553
+ pt: nil,
1554
+ ro: nil,
1555
+ rs: nil,
1556
+ ru: nil,
1557
+ sa: nil,
1558
+ se: nil,
1559
+ sg: nil,
1560
+ si: nil,
1561
+ sk: nil,
1562
+ sn: nil,
1563
+ sr: nil,
1564
+ th: nil,
1565
+ tj: nil,
1566
+ tr: nil,
1567
+ tz: nil,
1568
+ ug: nil,
1569
+ us: nil,
1570
+ uy: nil,
1571
+ uz: nil,
1572
+ vn: nil,
1573
+ za: nil,
1574
+ zm: nil,
1575
+ zw: nil
1576
+ )
1577
+ @ae = ae
1578
+ @al = al
1579
+ @am = am
1580
+ @ao = ao
1581
+ @at = at
1582
+ @au = au
1583
+ @aw = aw
1584
+ @az = az
1585
+ @ba = ba
1586
+ @bb = bb
1587
+ @bd = bd
1588
+ @be = be
1589
+ @bf = bf
1590
+ @bg = bg
1591
+ @bh = bh
1592
+ @bj = bj
1593
+ @bs = bs
1594
+ @by = by
1595
+ @ca = ca
1596
+ @cd = cd
1597
+ @ch = ch
1598
+ @cl = cl
1599
+ @cm = cm
1600
+ @co = co
1601
+ @cr = cr
1602
+ @cv = cv
1603
+ @cy = cy
1604
+ @cz = cz
1605
+ @de = de
1606
+ @dk = dk
1607
+ @ec = ec
1608
+ @ee = ee
1609
+ @eg = eg
1610
+ @es = es
1611
+ @et = et
1612
+ @fi = fi
1613
+ @fr = fr
1614
+ @gb = gb
1615
+ @ge = ge
1616
+ @gn = gn
1617
+ @gr = gr
1618
+ @hr = hr
1619
+ @hu = hu
1620
+ @id = id
1621
+ @ie = ie
1622
+ @in = in_
1623
+ @is = is
1624
+ @it = it
1625
+ @jp = jp
1626
+ @ke = ke
1627
+ @kg = kg
1628
+ @kh = kh
1629
+ @kr = kr
1630
+ @kz = kz
1631
+ @la = la
1632
+ @lt = lt
1633
+ @lu = lu
1634
+ @lv = lv
1635
+ @ma = ma
1636
+ @md = md
1637
+ @me = me
1638
+ @mk = mk
1639
+ @mr = mr
1640
+ @mt = mt
1641
+ @mx = mx
1642
+ @my = my
1643
+ @ng = ng
1644
+ @nl = nl
1645
+ @no = no
1646
+ @np = np
1647
+ @nz = nz
1648
+ @om = om
1649
+ @pe = pe
1650
+ @ph = ph
1651
+ @pl = pl
1652
+ @pt = pt
1653
+ @ro = ro
1654
+ @rs = rs
1655
+ @ru = ru
1656
+ @sa = sa
1657
+ @se = se
1658
+ @sg = sg
1659
+ @si = si
1660
+ @sk = sk
1661
+ @sn = sn
1662
+ @sr = sr
1663
+ @th = th
1664
+ @tj = tj
1665
+ @tr = tr
1666
+ @tz = tz
1667
+ @ug = ug
1668
+ @us = us
1669
+ @uy = uy
1670
+ @uz = uz
1671
+ @vn = vn
1672
+ @za = za
1673
+ @zm = zm
1674
+ @zw = zw
1675
+ end
1676
+ end
1677
+ # 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.
1678
+ attr_accessor :active_from
1679
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1680
+ attr_accessor :country
1681
+ # Specific options for a registration in the specified `country`.
1682
+ attr_accessor :country_options
1683
+ # Specifies which fields in the response should be expanded.
1684
+ attr_accessor :expand
1685
+ # 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.
1686
+ attr_accessor :expires_at
1687
+
1688
+ def initialize(
1689
+ active_from: nil,
1690
+ country: nil,
1691
+ country_options: nil,
1692
+ expand: nil,
1693
+ expires_at: nil
1694
+ )
1695
+ @active_from = active_from
1696
+ @country = country
1697
+ @country_options = country_options
1698
+ @expand = expand
1699
+ @expires_at = expires_at
1700
+ end
1701
+ end
1702
+
1703
+ class RetrieveParams < Stripe::RequestParams
1704
+ # Specifies which fields in the response should be expanded.
1705
+ attr_accessor :expand
1706
+
1707
+ def initialize(expand: nil)
1708
+ @expand = expand
1709
+ end
1710
+ end
1711
+
1712
+ class UpdateParams < Stripe::RequestParams
1713
+ # 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.
1714
+ attr_accessor :active_from
1715
+ # Specifies which fields in the response should be expanded.
1716
+ attr_accessor :expand
1717
+ # 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.
1718
+ attr_accessor :expires_at
1719
+
1720
+ def initialize(active_from: nil, expand: nil, expires_at: nil)
1721
+ @active_from = active_from
1722
+ @expand = expand
1723
+ @expires_at = expires_at
1724
+ end
1725
+ end
1726
+
1727
+ # Creates a new Tax Registration object.
1728
+ def create(params = {}, opts = {})
1729
+ request(
1730
+ method: :post,
1731
+ path: "/v1/tax/registrations",
1732
+ params: params,
1733
+ opts: opts,
1734
+ base_address: :api
1735
+ )
1736
+ end
1737
+
1738
+ # Returns a list of Tax Registration objects.
1739
+ def list(params = {}, opts = {})
1740
+ request(
1741
+ method: :get,
1742
+ path: "/v1/tax/registrations",
1743
+ params: params,
1744
+ opts: opts,
1745
+ base_address: :api
1746
+ )
1747
+ end
1748
+
1749
+ # Returns a Tax Registration object.
1750
+ def retrieve(id, params = {}, opts = {})
1751
+ request(
1752
+ method: :get,
1753
+ path: format("/v1/tax/registrations/%<id>s", { id: CGI.escape(id) }),
1754
+ params: params,
1755
+ opts: opts,
1756
+ base_address: :api
1757
+ )
1758
+ end
1759
+
1760
+ # Updates an existing Tax Registration object.
1761
+ #
1762
+ # 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.
1763
+ def update(id, params = {}, opts = {})
1764
+ request(
1765
+ method: :post,
1766
+ path: format("/v1/tax/registrations/%<id>s", { id: CGI.escape(id) }),
1767
+ params: params,
1768
+ opts: opts,
1769
+ base_address: :api
1770
+ )
1771
+ end
1772
+ end
1773
+ end
1774
+ end