stripe 15.0.0 → 15.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -0
  3. data/CHANGELOG.md +129 -44
  4. data/CONTRIBUTING.md +25 -0
  5. data/Gemfile +1 -1
  6. data/OPENAPI_VERSION +1 -1
  7. data/README.md +28 -55
  8. data/VERSION +1 -1
  9. data/lib/stripe/api_operations/nested_resource.rb +35 -35
  10. data/lib/stripe/api_requestor.rb +1 -1
  11. data/lib/stripe/api_version.rb +2 -1
  12. data/lib/stripe/connection_manager.rb +1 -3
  13. data/lib/stripe/event_types.rb +1 -0
  14. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
  15. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
  16. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
  17. data/lib/stripe/oauth.rb +1 -1
  18. data/lib/stripe/resources/account.rb +198 -28
  19. data/lib/stripe/resources/account_session.rb +176 -72
  20. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  21. data/lib/stripe/resources/balance.rb +42 -0
  22. data/lib/stripe/resources/balance_transaction.rb +2 -0
  23. data/lib/stripe/resources/bank_account.rb +2 -2
  24. data/lib/stripe/resources/billing_portal/session.rb +3 -3
  25. data/lib/stripe/resources/capability.rb +1 -1
  26. data/lib/stripe/resources/charge.rb +43 -20
  27. data/lib/stripe/resources/checkout/session.rb +120 -19
  28. data/lib/stripe/resources/confirmation_token.rb +119 -100
  29. data/lib/stripe/resources/country_spec.rb +1 -1
  30. data/lib/stripe/resources/coupon.rb +2 -3
  31. data/lib/stripe/resources/credit_note.rb +21 -18
  32. data/lib/stripe/resources/customer.rb +4 -6
  33. data/lib/stripe/resources/customer_session.rb +5 -5
  34. data/lib/stripe/resources/dispute.rb +2 -2
  35. data/lib/stripe/resources/event.rb +3 -1
  36. data/lib/stripe/resources/file.rb +1 -1
  37. data/lib/stripe/resources/funding_instructions.rb +1 -1
  38. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  39. data/lib/stripe/resources/identity/verification_session.rb +51 -11
  40. data/lib/stripe/resources/invoice.rb +146 -32
  41. data/lib/stripe/resources/invoice_item.rb +3 -7
  42. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  43. data/lib/stripe/resources/invoice_payment.rb +9 -2
  44. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  45. data/lib/stripe/resources/issuing/card.rb +1 -1
  46. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  47. data/lib/stripe/resources/login_link.rb +2 -1
  48. data/lib/stripe/resources/mandate.rb +3 -0
  49. data/lib/stripe/resources/payment_intent.rb +602 -325
  50. data/lib/stripe/resources/payment_method.rb +76 -117
  51. data/lib/stripe/resources/payment_method_configuration.rb +356 -2
  52. data/lib/stripe/resources/payment_method_domain.rb +15 -2
  53. data/lib/stripe/resources/payout.rb +4 -4
  54. data/lib/stripe/resources/person.rb +27 -3
  55. data/lib/stripe/resources/plan.rb +2 -3
  56. data/lib/stripe/resources/price.rb +1 -1
  57. data/lib/stripe/resources/product.rb +1 -2
  58. data/lib/stripe/resources/quote.rb +28 -3
  59. data/lib/stripe/resources/radar/value_list.rb +1 -2
  60. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  61. data/lib/stripe/resources/refund.rb +8 -1
  62. data/lib/stripe/resources/reversal.rb +1 -1
  63. data/lib/stripe/resources/review.rb +1 -1
  64. data/lib/stripe/resources/setup_attempt.rb +1 -1
  65. data/lib/stripe/resources/setup_intent.rb +414 -293
  66. data/lib/stripe/resources/source.rb +1 -1
  67. data/lib/stripe/resources/subscription.rb +149 -27
  68. data/lib/stripe/resources/subscription_item.rb +33 -0
  69. data/lib/stripe/resources/subscription_schedule.rb +141 -4
  70. data/lib/stripe/resources/tax/calculation.rb +6 -2
  71. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  72. data/lib/stripe/resources/tax/registration.rb +261 -1
  73. data/lib/stripe/resources/tax/transaction.rb +1 -1
  74. data/lib/stripe/resources/tax_id.rb +3 -4
  75. data/lib/stripe/resources/tax_rate.rb +2 -2
  76. data/lib/stripe/resources/terminal/configuration.rb +2 -2
  77. data/lib/stripe/resources/terminal/location.rb +2 -3
  78. data/lib/stripe/resources/terminal/reader.rb +426 -6
  79. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  80. data/lib/stripe/resources/token.rb +63 -2
  81. data/lib/stripe/resources/transfer.rb +1 -1
  82. data/lib/stripe/resources/treasury/financial_account.rb +5 -1
  83. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
  84. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
  85. data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
  86. data/lib/stripe/resources/v2/event.rb +2 -2
  87. data/lib/stripe/resources/v2/event_destination.rb +2 -2
  88. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  89. data/lib/stripe/resources.rb +1 -0
  90. data/lib/stripe/services/account_external_account_service.rb +3 -4
  91. data/lib/stripe/services/account_login_link_service.rb +1 -1
  92. data/lib/stripe/services/account_person_service.rb +85 -2
  93. data/lib/stripe/services/account_service.rb +169 -20
  94. data/lib/stripe/services/account_session_service.rb +115 -47
  95. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  96. data/lib/stripe/services/application_fee_service.rb +1 -1
  97. data/lib/stripe/services/apps_service.rb +1 -1
  98. data/lib/stripe/services/balance_service.rb +1 -1
  99. data/lib/stripe/services/billing/meter_service.rb +1 -1
  100. data/lib/stripe/services/billing_portal/session_service.rb +1 -1
  101. data/lib/stripe/services/billing_portal_service.rb +1 -1
  102. data/lib/stripe/services/billing_service.rb +1 -1
  103. data/lib/stripe/services/charge_service.rb +4 -4
  104. data/lib/stripe/services/checkout/session_service.rb +94 -15
  105. data/lib/stripe/services/checkout_service.rb +1 -1
  106. data/lib/stripe/services/climate_service.rb +1 -1
  107. data/lib/stripe/services/coupon_service.rb +1 -2
  108. data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
  109. data/lib/stripe/services/credit_note_service.rb +14 -15
  110. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  111. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  112. data/lib/stripe/services/customer_payment_method_service.rb +1 -1
  113. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  114. data/lib/stripe/services/customer_service.rb +5 -7
  115. data/lib/stripe/services/customer_session_service.rb +1 -1
  116. data/lib/stripe/services/customer_tax_id_service.rb +2 -3
  117. data/lib/stripe/services/dispute_service.rb +1 -1
  118. data/lib/stripe/services/entitlements_service.rb +1 -1
  119. data/lib/stripe/services/file_service.rb +1 -1
  120. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  121. data/lib/stripe/services/financial_connections_service.rb +1 -1
  122. data/lib/stripe/services/forwarding_service.rb +1 -1
  123. data/lib/stripe/services/identity/verification_session_service.rb +21 -5
  124. data/lib/stripe/services/identity_service.rb +1 -1
  125. data/lib/stripe/services/invoice_item_service.rb +1 -2
  126. data/lib/stripe/services/invoice_service.rb +122 -28
  127. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  128. data/lib/stripe/services/issuing/card_service.rb +1 -1
  129. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  130. data/lib/stripe/services/issuing_service.rb +1 -1
  131. data/lib/stripe/services/payment_intent_service.rb +563 -313
  132. data/lib/stripe/services/payment_link_service.rb +1 -1
  133. data/lib/stripe/services/payment_method_configuration_service.rb +254 -2
  134. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  135. data/lib/stripe/services/payment_method_service.rb +59 -105
  136. data/lib/stripe/services/payout_service.rb +2 -2
  137. data/lib/stripe/services/plan_service.rb +2 -3
  138. data/lib/stripe/services/price_service.rb +2 -2
  139. data/lib/stripe/services/product_feature_service.rb +1 -2
  140. data/lib/stripe/services/product_service.rb +3 -4
  141. data/lib/stripe/services/promotion_code_service.rb +1 -1
  142. data/lib/stripe/services/quote_service.rb +21 -4
  143. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  144. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  145. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  146. data/lib/stripe/services/radar_service.rb +1 -1
  147. data/lib/stripe/services/reporting_service.rb +1 -1
  148. data/lib/stripe/services/setup_intent_service.rb +403 -291
  149. data/lib/stripe/services/sigma_service.rb +1 -1
  150. data/lib/stripe/services/source_service.rb +2 -2
  151. data/lib/stripe/services/subscription_item_service.rb +26 -0
  152. data/lib/stripe/services/subscription_schedule_service.rb +106 -3
  153. data/lib/stripe/services/subscription_service.rb +121 -26
  154. data/lib/stripe/services/tax/calculation_service.rb +6 -2
  155. data/lib/stripe/services/tax/registration_service.rb +170 -1
  156. data/lib/stripe/services/tax/transaction_service.rb +1 -1
  157. data/lib/stripe/services/tax_id_service.rb +2 -3
  158. data/lib/stripe/services/tax_service.rb +1 -1
  159. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  160. data/lib/stripe/services/terminal/location_service.rb +2 -3
  161. data/lib/stripe/services/terminal/reader_service.rb +196 -2
  162. data/lib/stripe/services/terminal_service.rb +1 -1
  163. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +90 -91
  164. data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
  165. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  166. data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
  167. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  168. data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
  169. data/lib/stripe/services/test_helpers_service.rb +1 -1
  170. data/lib/stripe/services/token_service.rb +62 -1
  171. data/lib/stripe/services/transfer_service.rb +2 -2
  172. data/lib/stripe/services/treasury/financial_account_service.rb +6 -2
  173. data/lib/stripe/services/treasury_service.rb +1 -1
  174. data/lib/stripe/services/v1_services.rb +1 -1
  175. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  176. data/lib/stripe/services/v2/billing_service.rb +3 -3
  177. data/lib/stripe/services/v2/core/event_destination_service.rb +17 -23
  178. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  179. data/lib/stripe/services/v2/core_service.rb +1 -1
  180. data/lib/stripe/services/v2_services.rb +1 -1
  181. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  182. data/lib/stripe/version.rb +1 -1
  183. data/lib/stripe/webhook.rb +1 -1
  184. data/rbi/stripe/resources/account.rbi +190 -35
  185. data/rbi/stripe/resources/account_session.rbi +196 -77
  186. data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
  187. data/rbi/stripe/resources/balance.rbi +55 -0
  188. data/rbi/stripe/resources/balance_transaction.rbi +3 -0
  189. data/rbi/stripe/resources/bank_account.rbi +2 -2
  190. data/rbi/stripe/resources/billing/alert.rbi +2 -2
  191. data/rbi/stripe/resources/billing_portal/session.rbi +3 -3
  192. data/rbi/stripe/resources/capability.rbi +1 -1
  193. data/rbi/stripe/resources/charge.rbi +52 -20
  194. data/rbi/stripe/resources/checkout/session.rbi +133 -24
  195. data/rbi/stripe/resources/confirmation_token.rbi +140 -115
  196. data/rbi/stripe/resources/country_spec.rbi +1 -1
  197. data/rbi/stripe/resources/coupon.rbi +2 -4
  198. data/rbi/stripe/resources/credit_note.rbi +23 -18
  199. data/rbi/stripe/resources/customer.rbi +4 -8
  200. data/rbi/stripe/resources/customer_session.rbi +5 -5
  201. data/rbi/stripe/resources/dispute.rbi +2 -2
  202. data/rbi/stripe/resources/event.rbi +4 -1
  203. data/rbi/stripe/resources/file.rbi +1 -1
  204. data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
  205. data/rbi/stripe/resources/identity/verification_session.rbi +59 -12
  206. data/rbi/stripe/resources/invoice.rbi +149 -40
  207. data/rbi/stripe/resources/invoice_item.rbi +3 -8
  208. data/rbi/stripe/resources/invoice_line_item.rbi +2 -2
  209. data/rbi/stripe/resources/invoice_payment.rbi +9 -2
  210. data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
  211. data/rbi/stripe/resources/issuing/card.rbi +1 -1
  212. data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
  213. data/rbi/stripe/resources/login_link.rbi +2 -1
  214. data/rbi/stripe/resources/mandate.rbi +4 -0
  215. data/rbi/stripe/resources/payment_intent.rbi +637 -381
  216. data/rbi/stripe/resources/payment_method.rbi +81 -133
  217. data/rbi/stripe/resources/payment_method_configuration.rbi +400 -4
  218. data/rbi/stripe/resources/payment_method_domain.rbi +18 -2
  219. data/rbi/stripe/resources/payout.rbi +4 -4
  220. data/rbi/stripe/resources/person.rbi +33 -3
  221. data/rbi/stripe/resources/plan.rbi +2 -4
  222. data/rbi/stripe/resources/price.rbi +1 -1
  223. data/rbi/stripe/resources/product.rbi +1 -3
  224. data/rbi/stripe/resources/quote.rbi +25 -3
  225. data/rbi/stripe/resources/radar/value_list.rbi +1 -3
  226. data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
  227. data/rbi/stripe/resources/refund.rbi +8 -1
  228. data/rbi/stripe/resources/reversal.rbi +1 -1
  229. data/rbi/stripe/resources/review.rbi +1 -1
  230. data/rbi/stripe/resources/setup_attempt.rbi +1 -1
  231. data/rbi/stripe/resources/setup_intent.rbi +464 -346
  232. data/rbi/stripe/resources/source.rbi +1 -1
  233. data/rbi/stripe/resources/subscription.rbi +150 -34
  234. data/rbi/stripe/resources/subscription_item.rbi +36 -2
  235. data/rbi/stripe/resources/subscription_schedule.rbi +161 -11
  236. data/rbi/stripe/resources/tax/calculation.rbi +7 -3
  237. data/rbi/stripe/resources/tax/calculation_line_item.rbi +4 -1
  238. data/rbi/stripe/resources/tax/registration.rbi +249 -2
  239. data/rbi/stripe/resources/tax/transaction.rbi +1 -1
  240. data/rbi/stripe/resources/tax_id.rbi +3 -5
  241. data/rbi/stripe/resources/tax_rate.rbi +2 -2
  242. data/rbi/stripe/resources/terminal/configuration.rbi +2 -3
  243. data/rbi/stripe/resources/terminal/location.rbi +4 -6
  244. data/rbi/stripe/resources/terminal/reader.rbi +415 -8
  245. data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
  246. data/rbi/stripe/resources/token.rbi +70 -4
  247. data/rbi/stripe/resources/transfer.rbi +1 -1
  248. data/rbi/stripe/resources/treasury/financial_account.rbi +6 -2
  249. data/rbi/stripe/resources/v2/billing/meter_event.rbi +3 -3
  250. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +3 -3
  251. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +3 -3
  252. data/rbi/stripe/resources/v2/event.rbi +3 -3
  253. data/rbi/stripe/resources/v2/event_destination.rbi +3 -3
  254. data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
  255. data/rbi/stripe/services/account_external_account_service.rbi +3 -5
  256. data/rbi/stripe/services/account_login_link_service.rbi +1 -1
  257. data/rbi/stripe/services/account_person_service.rbi +93 -5
  258. data/rbi/stripe/services/account_service.rbi +166 -28
  259. data/rbi/stripe/services/account_session_service.rbi +126 -52
  260. data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
  261. data/rbi/stripe/services/balance_service.rbi +1 -1
  262. data/rbi/stripe/services/billing/alert_service.rbi +2 -2
  263. data/rbi/stripe/services/billing_portal/session_service.rbi +1 -1
  264. data/rbi/stripe/services/charge_service.rbi +4 -4
  265. data/rbi/stripe/services/checkout/session_service.rbi +104 -19
  266. data/rbi/stripe/services/coupon_service.rbi +1 -3
  267. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +3 -3
  268. data/rbi/stripe/services/credit_note_service.rbi +13 -14
  269. data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
  270. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
  271. data/rbi/stripe/services/customer_payment_method_service.rbi +1 -1
  272. data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
  273. data/rbi/stripe/services/customer_service.rbi +4 -8
  274. data/rbi/stripe/services/customer_session_service.rbi +1 -1
  275. data/rbi/stripe/services/customer_tax_id_service.rbi +2 -4
  276. data/rbi/stripe/services/dispute_service.rbi +1 -1
  277. data/rbi/stripe/services/file_service.rbi +1 -1
  278. data/rbi/stripe/services/identity/verification_session_service.rbi +22 -6
  279. data/rbi/stripe/services/invoice_item_service.rbi +1 -3
  280. data/rbi/stripe/services/invoice_service.rbi +126 -35
  281. data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
  282. data/rbi/stripe/services/issuing/card_service.rbi +1 -1
  283. data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
  284. data/rbi/stripe/services/payment_intent_service.rbi +599 -369
  285. data/rbi/stripe/services/payment_method_configuration_service.rbi +280 -4
  286. data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
  287. data/rbi/stripe/services/payment_method_service.rbi +62 -121
  288. data/rbi/stripe/services/payout_service.rbi +2 -2
  289. data/rbi/stripe/services/plan_service.rbi +2 -4
  290. data/rbi/stripe/services/price_service.rbi +2 -2
  291. data/rbi/stripe/services/product_feature_service.rbi +1 -3
  292. data/rbi/stripe/services/product_service.rbi +2 -4
  293. data/rbi/stripe/services/promotion_code_service.rbi +1 -1
  294. data/rbi/stripe/services/quote_service.rbi +16 -3
  295. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
  296. data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
  297. data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
  298. data/rbi/stripe/services/setup_intent_service.rbi +457 -344
  299. data/rbi/stripe/services/source_service.rbi +1 -1
  300. data/rbi/stripe/services/subscription_item_service.rbi +28 -2
  301. data/rbi/stripe/services/subscription_schedule_service.rbi +119 -10
  302. data/rbi/stripe/services/subscription_service.rbi +121 -33
  303. data/rbi/stripe/services/tax/calculation_service.rbi +6 -2
  304. data/rbi/stripe/services/tax/registration_service.rbi +171 -2
  305. data/rbi/stripe/services/tax_id_service.rbi +2 -4
  306. data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
  307. data/rbi/stripe/services/terminal/location_service.rbi +4 -6
  308. data/rbi/stripe/services/terminal/reader_service.rbi +200 -4
  309. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +106 -106
  310. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
  311. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
  312. data/rbi/stripe/services/token_service.rbi +71 -3
  313. data/rbi/stripe/services/transfer_service.rbi +1 -1
  314. data/rbi/stripe/services/treasury/financial_account_service.rbi +6 -2
  315. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
  316. data/rbi/stripe/services/v2/billing_service.rbi +1 -1
  317. data/rbi/stripe/services/v2/core/event_destination_service.rbi +14 -22
  318. data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
  319. data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
  320. metadata +5 -2
@@ -98,6 +98,24 @@ module Stripe
98
98
  end
99
99
  end
100
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
+
101
119
  class Ba < Stripe::RequestParams
102
120
  # Type of registration to be created in `country`.
103
121
  attr_accessor :type
@@ -116,6 +134,15 @@ module Stripe
116
134
  end
117
135
  end
118
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
+
119
146
  class Be < Stripe::RequestParams
120
147
  class Standard < Stripe::RequestParams
121
148
  # Place of supply scheme used in an EU standard registration.
@@ -136,6 +163,15 @@ module Stripe
136
163
  end
137
164
  end
138
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
+
139
175
  class Bg < Stripe::RequestParams
140
176
  class Standard < Stripe::RequestParams
141
177
  # Place of supply scheme used in an EU standard registration.
@@ -165,6 +201,15 @@ module Stripe
165
201
  end
166
202
  end
167
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
+
168
213
  class Bs < Stripe::RequestParams
169
214
  # Type of registration to be created in `country`.
170
215
  attr_accessor :type
@@ -230,6 +275,15 @@ module Stripe
230
275
  end
231
276
  end
232
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
+
233
287
  class Co < Stripe::RequestParams
234
288
  # Type of registration to be created in `country`.
235
289
  attr_accessor :type
@@ -248,6 +302,15 @@ module Stripe
248
302
  end
249
303
  end
250
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
+
251
314
  class Cy < Stripe::RequestParams
252
315
  class Standard < Stripe::RequestParams
253
316
  # Place of supply scheme used in an EU standard registration.
@@ -386,6 +449,15 @@ module Stripe
386
449
  end
387
450
  end
388
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
+
389
461
  class Fi < Stripe::RequestParams
390
462
  class Standard < Stripe::RequestParams
391
463
  # Place of supply scheme used in an EU standard registration.
@@ -542,6 +614,15 @@ module Stripe
542
614
  end
543
615
  end
544
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
+
545
626
  class Is < Stripe::RequestParams
546
627
  # Type of registration to be created in `country`.
547
628
  attr_accessor :type
@@ -589,6 +670,15 @@ module Stripe
589
670
  end
590
671
  end
591
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
+
592
682
  class Kh < Stripe::RequestParams
593
683
  # Type of registration to be created in `country`.
594
684
  attr_accessor :type
@@ -616,6 +706,15 @@ module Stripe
616
706
  end
617
707
  end
618
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
+
619
718
  class Lt < Stripe::RequestParams
620
719
  class Standard < Stripe::RequestParams
621
720
  # Place of supply scheme used in an EU standard registration.
@@ -833,6 +932,15 @@ module Stripe
833
932
  end
834
933
  end
835
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
+
836
944
  class Pl < Stripe::RequestParams
837
945
  class Standard < Stripe::RequestParams
838
946
  # Place of supply scheme used in an EU standard registration.
@@ -1043,6 +1151,15 @@ module Stripe
1043
1151
  end
1044
1152
  end
1045
1153
 
1154
+ class Ua < 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
+
1046
1163
  class Ug < Stripe::RequestParams
1047
1164
  # Type of registration to be created in `country`.
1048
1165
  attr_accessor :type
@@ -1054,7 +1171,7 @@ module Stripe
1054
1171
 
1055
1172
  class Us < Stripe::RequestParams
1056
1173
  class LocalAmusementTax < Stripe::RequestParams
1057
- # 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), `64343` (River Grove), and `68081` (Schiller Park).
1174
+ # 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).
1058
1175
  attr_accessor :jurisdiction
1059
1176
 
1060
1177
  def initialize(jurisdiction: nil)
@@ -1181,16 +1298,26 @@ module Stripe
1181
1298
  attr_accessor :at
1182
1299
  # Options for the registration in AU.
1183
1300
  attr_accessor :au
1301
+ # Options for the registration in AW.
1302
+ attr_accessor :aw
1303
+ # Options for the registration in AZ.
1304
+ attr_accessor :az
1184
1305
  # Options for the registration in BA.
1185
1306
  attr_accessor :ba
1186
1307
  # Options for the registration in BB.
1187
1308
  attr_accessor :bb
1309
+ # Options for the registration in BD.
1310
+ attr_accessor :bd
1188
1311
  # Options for the registration in BE.
1189
1312
  attr_accessor :be
1313
+ # Options for the registration in BF.
1314
+ attr_accessor :bf
1190
1315
  # Options for the registration in BG.
1191
1316
  attr_accessor :bg
1192
1317
  # Options for the registration in BH.
1193
1318
  attr_accessor :bh
1319
+ # Options for the registration in BJ.
1320
+ attr_accessor :bj
1194
1321
  # Options for the registration in BS.
1195
1322
  attr_accessor :bs
1196
1323
  # Options for the registration in BY.
@@ -1203,10 +1330,14 @@ module Stripe
1203
1330
  attr_accessor :ch
1204
1331
  # Options for the registration in CL.
1205
1332
  attr_accessor :cl
1333
+ # Options for the registration in CM.
1334
+ attr_accessor :cm
1206
1335
  # Options for the registration in CO.
1207
1336
  attr_accessor :co
1208
1337
  # Options for the registration in CR.
1209
1338
  attr_accessor :cr
1339
+ # Options for the registration in CV.
1340
+ attr_accessor :cv
1210
1341
  # Options for the registration in CY.
1211
1342
  attr_accessor :cy
1212
1343
  # Options for the registration in CZ.
@@ -1223,6 +1354,8 @@ module Stripe
1223
1354
  attr_accessor :eg
1224
1355
  # Options for the registration in ES.
1225
1356
  attr_accessor :es
1357
+ # Options for the registration in ET.
1358
+ attr_accessor :et
1226
1359
  # Options for the registration in FI.
1227
1360
  attr_accessor :fi
1228
1361
  # Options for the registration in FR.
@@ -1243,6 +1376,8 @@ module Stripe
1243
1376
  attr_accessor :id
1244
1377
  # Options for the registration in IE.
1245
1378
  attr_accessor :ie
1379
+ # Options for the registration in IN.
1380
+ attr_accessor :in
1246
1381
  # Options for the registration in IS.
1247
1382
  attr_accessor :is
1248
1383
  # Options for the registration in IT.
@@ -1251,12 +1386,16 @@ module Stripe
1251
1386
  attr_accessor :jp
1252
1387
  # Options for the registration in KE.
1253
1388
  attr_accessor :ke
1389
+ # Options for the registration in KG.
1390
+ attr_accessor :kg
1254
1391
  # Options for the registration in KH.
1255
1392
  attr_accessor :kh
1256
1393
  # Options for the registration in KR.
1257
1394
  attr_accessor :kr
1258
1395
  # Options for the registration in KZ.
1259
1396
  attr_accessor :kz
1397
+ # Options for the registration in LA.
1398
+ attr_accessor :la
1260
1399
  # Options for the registration in LT.
1261
1400
  attr_accessor :lt
1262
1401
  # Options for the registration in LU.
@@ -1293,6 +1432,8 @@ module Stripe
1293
1432
  attr_accessor :om
1294
1433
  # Options for the registration in PE.
1295
1434
  attr_accessor :pe
1435
+ # Options for the registration in PH.
1436
+ attr_accessor :ph
1296
1437
  # Options for the registration in PL.
1297
1438
  attr_accessor :pl
1298
1439
  # Options for the registration in PT.
@@ -1325,6 +1466,8 @@ module Stripe
1325
1466
  attr_accessor :tr
1326
1467
  # Options for the registration in TZ.
1327
1468
  attr_accessor :tz
1469
+ # Options for the registration in UA.
1470
+ attr_accessor :ua
1328
1471
  # Options for the registration in UG.
1329
1472
  attr_accessor :ug
1330
1473
  # Options for the registration in US.
@@ -1349,19 +1492,26 @@ module Stripe
1349
1492
  ao: nil,
1350
1493
  at: nil,
1351
1494
  au: nil,
1495
+ aw: nil,
1496
+ az: nil,
1352
1497
  ba: nil,
1353
1498
  bb: nil,
1499
+ bd: nil,
1354
1500
  be: nil,
1501
+ bf: nil,
1355
1502
  bg: nil,
1356
1503
  bh: nil,
1504
+ bj: nil,
1357
1505
  bs: nil,
1358
1506
  by: nil,
1359
1507
  ca: nil,
1360
1508
  cd: nil,
1361
1509
  ch: nil,
1362
1510
  cl: nil,
1511
+ cm: nil,
1363
1512
  co: nil,
1364
1513
  cr: nil,
1514
+ cv: nil,
1365
1515
  cy: nil,
1366
1516
  cz: nil,
1367
1517
  de: nil,
@@ -1370,6 +1520,7 @@ module Stripe
1370
1520
  ee: nil,
1371
1521
  eg: nil,
1372
1522
  es: nil,
1523
+ et: nil,
1373
1524
  fi: nil,
1374
1525
  fr: nil,
1375
1526
  gb: nil,
@@ -1380,13 +1531,16 @@ module Stripe
1380
1531
  hu: nil,
1381
1532
  id: nil,
1382
1533
  ie: nil,
1534
+ in_: nil,
1383
1535
  is: nil,
1384
1536
  it: nil,
1385
1537
  jp: nil,
1386
1538
  ke: nil,
1539
+ kg: nil,
1387
1540
  kh: nil,
1388
1541
  kr: nil,
1389
1542
  kz: nil,
1543
+ la: nil,
1390
1544
  lt: nil,
1391
1545
  lu: nil,
1392
1546
  lv: nil,
@@ -1405,6 +1559,7 @@ module Stripe
1405
1559
  nz: nil,
1406
1560
  om: nil,
1407
1561
  pe: nil,
1562
+ ph: nil,
1408
1563
  pl: nil,
1409
1564
  pt: nil,
1410
1565
  ro: nil,
@@ -1421,6 +1576,7 @@ module Stripe
1421
1576
  tj: nil,
1422
1577
  tr: nil,
1423
1578
  tz: nil,
1579
+ ua: nil,
1424
1580
  ug: nil,
1425
1581
  us: nil,
1426
1582
  uy: nil,
@@ -1436,19 +1592,26 @@ module Stripe
1436
1592
  @ao = ao
1437
1593
  @at = at
1438
1594
  @au = au
1595
+ @aw = aw
1596
+ @az = az
1439
1597
  @ba = ba
1440
1598
  @bb = bb
1599
+ @bd = bd
1441
1600
  @be = be
1601
+ @bf = bf
1442
1602
  @bg = bg
1443
1603
  @bh = bh
1604
+ @bj = bj
1444
1605
  @bs = bs
1445
1606
  @by = by
1446
1607
  @ca = ca
1447
1608
  @cd = cd
1448
1609
  @ch = ch
1449
1610
  @cl = cl
1611
+ @cm = cm
1450
1612
  @co = co
1451
1613
  @cr = cr
1614
+ @cv = cv
1452
1615
  @cy = cy
1453
1616
  @cz = cz
1454
1617
  @de = de
@@ -1457,6 +1620,7 @@ module Stripe
1457
1620
  @ee = ee
1458
1621
  @eg = eg
1459
1622
  @es = es
1623
+ @et = et
1460
1624
  @fi = fi
1461
1625
  @fr = fr
1462
1626
  @gb = gb
@@ -1467,13 +1631,16 @@ module Stripe
1467
1631
  @hu = hu
1468
1632
  @id = id
1469
1633
  @ie = ie
1634
+ @in = in_
1470
1635
  @is = is
1471
1636
  @it = it
1472
1637
  @jp = jp
1473
1638
  @ke = ke
1639
+ @kg = kg
1474
1640
  @kh = kh
1475
1641
  @kr = kr
1476
1642
  @kz = kz
1643
+ @la = la
1477
1644
  @lt = lt
1478
1645
  @lu = lu
1479
1646
  @lv = lv
@@ -1492,6 +1659,7 @@ module Stripe
1492
1659
  @nz = nz
1493
1660
  @om = om
1494
1661
  @pe = pe
1662
+ @ph = ph
1495
1663
  @pl = pl
1496
1664
  @pt = pt
1497
1665
  @ro = ro
@@ -1508,6 +1676,7 @@ module Stripe
1508
1676
  @tj = tj
1509
1677
  @tr = tr
1510
1678
  @tz = tz
1679
+ @ua = ua
1511
1680
  @ug = ug
1512
1681
  @us = us
1513
1682
  @uy = uy
@@ -7,7 +7,7 @@ module Stripe
7
7
  attr_reader :line_items
8
8
 
9
9
  def initialize(requestor)
10
- super(requestor)
10
+ super
11
11
  @line_items = Stripe::Tax::TransactionLineItemService.new(@requestor)
12
12
  end
13
13
 
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class TaxIdService < StripeService
6
- class DeleteParams < Stripe::RequestParams
7
- end
6
+ class DeleteParams < Stripe::RequestParams; end
8
7
 
9
8
  class RetrieveParams < Stripe::RequestParams
10
9
  # Specifies which fields in the response should be expanded.
@@ -69,7 +68,7 @@ module Stripe
69
68
  attr_accessor :expand
70
69
  # The account or customer the tax ID belongs to. Defaults to `owner[type]=self`.
71
70
  attr_accessor :owner
72
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
71
+ # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
73
72
  attr_accessor :type
74
73
  # Value of the tax ID.
75
74
  attr_accessor :value
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :calculations, :registrations, :settings, :transactions
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @calculations = Stripe::Tax::CalculationService.new(@requestor)
11
11
  @registrations = Stripe::Tax::RegistrationService.new(@requestor)
12
12
  @settings = Stripe::Tax::SettingsService.new(@requestor)
@@ -4,8 +4,7 @@
4
4
  module Stripe
5
5
  module Terminal
6
6
  class ConfigurationService < StripeService
7
- class DeleteParams < Stripe::RequestParams
8
- end
7
+ class DeleteParams < Stripe::RequestParams; end
9
8
 
10
9
  class RetrieveParams < Stripe::RequestParams
11
10
  # Specifies which fields in the response should be expanded.
@@ -4,8 +4,7 @@
4
4
  module Stripe
5
5
  module Terminal
6
6
  class LocationService < StripeService
7
- class DeleteParams < Stripe::RequestParams
8
- end
7
+ class DeleteParams < Stripe::RequestParams; end
9
8
 
10
9
  class RetrieveParams < Stripe::RequestParams
11
10
  # Specifies which fields in the response should be expanded.
@@ -149,7 +148,7 @@ module Stripe
149
148
  end
150
149
 
151
150
  # Creates a new Location object.
152
- # For further details, including which address fields are required in each country, see the [Manage locations](https://stripe.com/docs/terminal/fleet/locations) guide.
151
+ # For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide.
153
152
  def create(params = {}, opts = {})
154
153
  request(
155
154
  method: :post,