stripe 13.3.0.pre.beta.3 → 13.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 (220) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +650 -1402
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/object_types.rb +0 -32
  6. data/lib/stripe/resources/account.rb +2 -232
  7. data/lib/stripe/resources/account_link.rb +0 -9
  8. data/lib/stripe/resources/account_session.rb +0 -103
  9. data/lib/stripe/resources/apple_pay_domain.rb +2 -20
  10. data/lib/stripe/resources/application_fee.rb +2 -36
  11. data/lib/stripe/resources/application_fee_refund.rb +0 -17
  12. data/lib/stripe/resources/apps/secret.rb +2 -24
  13. data/lib/stripe/resources/balance.rb +0 -59
  14. data/lib/stripe/resources/balance_transaction.rb +2 -36
  15. data/lib/stripe/resources/bank_account.rb +3 -61
  16. data/lib/stripe/resources/billing/alert.rb +2 -23
  17. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
  18. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -50
  19. data/lib/stripe/resources/billing/credit_grant.rb +2 -46
  20. data/lib/stripe/resources/billing/meter.rb +2 -44
  21. data/lib/stripe/resources/billing/meter_event.rb +0 -15
  22. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
  23. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
  24. data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
  25. data/lib/stripe/resources/billing_portal/session.rb +0 -61
  26. data/lib/stripe/resources/capability.rb +0 -38
  27. data/lib/stripe/resources/card.rb +1 -77
  28. data/lib/stripe/resources/cash_balance.rb +0 -14
  29. data/lib/stripe/resources/charge.rb +2 -471
  30. data/lib/stripe/resources/checkout/session.rb +2 -498
  31. data/lib/stripe/resources/climate/order.rb +2 -57
  32. data/lib/stripe/resources/climate/product.rb +2 -26
  33. data/lib/stripe/resources/climate/supplier.rb +2 -20
  34. data/lib/stripe/resources/confirmation_token.rb +0 -297
  35. data/lib/stripe/resources/country_spec.rb +2 -29
  36. data/lib/stripe/resources/coupon.rb +2 -46
  37. data/lib/stripe/resources/credit_note.rb +2 -93
  38. data/lib/stripe/resources/credit_note_line_item.rb +0 -46
  39. data/lib/stripe/resources/customer.rb +2 -95
  40. data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
  41. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
  42. data/lib/stripe/resources/customer_session.rb +0 -34
  43. data/lib/stripe/resources/discount.rb +0 -29
  44. data/lib/stripe/resources/dispute.rb +2 -98
  45. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
  46. data/lib/stripe/resources/entitlements/feature.rb +2 -17
  47. data/lib/stripe/resources/ephemeral_key.rb +0 -13
  48. data/lib/stripe/resources/event.rb +2 -46
  49. data/lib/stripe/resources/exchange_rate.rb +2 -9
  50. data/lib/stripe/resources/file.rb +2 -25
  51. data/lib/stripe/resources/file_link.rb +2 -21
  52. data/lib/stripe/resources/financial_connections/account.rb +2 -89
  53. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
  54. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
  55. data/lib/stripe/resources/financial_connections/session.rb +0 -49
  56. data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
  57. data/lib/stripe/resources/forwarding/request.rb +2 -42
  58. data/lib/stripe/resources/funding_instructions.rb +0 -82
  59. data/lib/stripe/resources/identity/verification_report.rb +2 -94
  60. data/lib/stripe/resources/identity/verification_session.rb +2 -78
  61. data/lib/stripe/resources/invoice.rb +2 -420
  62. data/lib/stripe/resources/invoice_item.rb +2 -56
  63. data/lib/stripe/resources/invoice_line_item.rb +0 -83
  64. data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
  65. data/lib/stripe/resources/issuing/authorization.rb +2 -131
  66. data/lib/stripe/resources/issuing/card.rb +2 -88
  67. data/lib/stripe/resources/issuing/cardholder.rb +2 -78
  68. data/lib/stripe/resources/issuing/dispute.rb +2 -67
  69. data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
  70. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
  71. data/lib/stripe/resources/issuing/token.rb +2 -48
  72. data/lib/stripe/resources/issuing/transaction.rb +2 -108
  73. data/lib/stripe/resources/line_item.rb +0 -50
  74. data/lib/stripe/resources/login_link.rb +0 -7
  75. data/lib/stripe/resources/mandate.rb +0 -78
  76. data/lib/stripe/resources/payment_intent.rb +2 -714
  77. data/lib/stripe/resources/payment_link.rb +2 -200
  78. data/lib/stripe/resources/payment_method.rb +2 -370
  79. data/lib/stripe/resources/payment_method_configuration.rb +2 -432
  80. data/lib/stripe/resources/payment_method_domain.rb +2 -59
  81. data/lib/stripe/resources/payout.rb +2 -58
  82. data/lib/stripe/resources/person.rb +0 -128
  83. data/lib/stripe/resources/plan.rb +2 -54
  84. data/lib/stripe/resources/price.rb +2 -79
  85. data/lib/stripe/resources/product.rb +2 -62
  86. data/lib/stripe/resources/product_feature.rb +0 -12
  87. data/lib/stripe/resources/promotion_code.rb +2 -37
  88. data/lib/stripe/resources/quote.rb +2 -358
  89. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
  90. data/lib/stripe/resources/radar/value_list.rb +2 -25
  91. data/lib/stripe/resources/radar/value_list_item.rb +2 -19
  92. data/lib/stripe/resources/refund.rb +2 -132
  93. data/lib/stripe/resources/reporting/report_run.rb +2 -31
  94. data/lib/stripe/resources/reporting/report_type.rb +2 -21
  95. data/lib/stripe/resources/reversal.rb +0 -21
  96. data/lib/stripe/resources/review.rb +2 -38
  97. data/lib/stripe/resources/setup_attempt.rb +2 -103
  98. data/lib/stripe/resources/setup_intent.rb +2 -160
  99. data/lib/stripe/resources/shipping_rate.rb +2 -44
  100. data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
  101. data/lib/stripe/resources/source.rb +0 -197
  102. data/lib/stripe/resources/source_transaction.rb +0 -48
  103. data/lib/stripe/resources/subscription.rb +2 -216
  104. data/lib/stripe/resources/subscription_item.rb +2 -48
  105. data/lib/stripe/resources/subscription_schedule.rb +2 -175
  106. data/lib/stripe/resources/tax/calculation.rb +0 -72
  107. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
  108. data/lib/stripe/resources/tax/registration.rb +2 -381
  109. data/lib/stripe/resources/tax/settings.rb +0 -33
  110. data/lib/stripe/resources/tax/transaction.rb +0 -68
  111. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
  112. data/lib/stripe/resources/tax_code.rb +2 -11
  113. data/lib/stripe/resources/tax_id.rb +2 -32
  114. data/lib/stripe/resources/tax_rate.rb +2 -44
  115. data/lib/stripe/resources/terminal/configuration.rb +2 -109
  116. data/lib/stripe/resources/terminal/connection_token.rb +0 -7
  117. data/lib/stripe/resources/terminal/location.rb +2 -22
  118. data/lib/stripe/resources/terminal/reader.rb +2 -180
  119. data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
  120. data/lib/stripe/resources/token.rb +0 -29
  121. data/lib/stripe/resources/topup.rb +2 -35
  122. data/lib/stripe/resources/transfer.rb +2 -37
  123. data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
  124. data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
  125. data/lib/stripe/resources/treasury/financial_account.rb +2 -59
  126. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
  127. data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
  128. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
  129. data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
  130. data/lib/stripe/resources/treasury/received_credit.rb +2 -72
  131. data/lib/stripe/resources/treasury/received_debit.rb +2 -69
  132. data/lib/stripe/resources/treasury/transaction.rb +2 -44
  133. data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
  134. data/lib/stripe/resources/usage_record.rb +0 -13
  135. data/lib/stripe/resources/usage_record_summary.rb +0 -18
  136. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
  137. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
  138. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
  139. data/lib/stripe/resources/v2/event.rb +0 -21
  140. data/lib/stripe/resources/v2/event_destination.rb +0 -49
  141. data/lib/stripe/resources/webhook_endpoint.rb +2 -34
  142. data/lib/stripe/resources.rb +0 -31
  143. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  144. data/lib/stripe/services/financial_connections_service.rb +1 -2
  145. data/lib/stripe/services/invoice_service.rb +1 -44
  146. data/lib/stripe/services/issuing_service.rb +1 -5
  147. data/lib/stripe/services/payment_intent_service.rb +0 -37
  148. data/lib/stripe/services/quote_service.rb +1 -49
  149. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  150. data/lib/stripe/services/tax_service.rb +1 -3
  151. data/lib/stripe/services/terminal/reader_service.rb +0 -33
  152. data/lib/stripe/services/terminal_service.rb +1 -2
  153. data/lib/stripe/services/v1_services.rb +1 -8
  154. data/lib/stripe/services.rb +0 -25
  155. data/lib/stripe/stripe_client.rb +1 -1
  156. data/lib/stripe/stripe_configuration.rb +1 -3
  157. data/lib/stripe/stripe_object.rb +3 -8
  158. data/lib/stripe/util.rb +2 -8
  159. data/lib/stripe/version.rb +1 -1
  160. data/lib/stripe.rb +0 -45
  161. data/stripe.gemspec +1 -2
  162. metadata +4 -62
  163. data/lib/stripe/request_signing_authenticator.rb +0 -79
  164. data/lib/stripe/resources/account_notice.rb +0 -60
  165. data/lib/stripe/resources/application.rb +0 -20
  166. data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
  167. data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
  168. data/lib/stripe/resources/capital/financing_offer.rb +0 -94
  169. data/lib/stripe/resources/capital/financing_summary.rb +0 -32
  170. data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
  171. data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
  172. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
  173. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  174. data/lib/stripe/resources/financial_connections/institution.rb +0 -61
  175. data/lib/stripe/resources/gift_cards/card.rb +0 -96
  176. data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
  177. data/lib/stripe/resources/invoice_payment.rb +0 -46
  178. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
  179. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
  180. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
  181. data/lib/stripe/resources/issuing/settlement.rb +0 -49
  182. data/lib/stripe/resources/margin.rb +0 -56
  183. data/lib/stripe/resources/order.rb +0 -322
  184. data/lib/stripe/resources/payment_attempt_record.rb +0 -100
  185. data/lib/stripe/resources/payment_record.rb +0 -188
  186. data/lib/stripe/resources/quote_line.rb +0 -136
  187. data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
  188. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
  189. data/lib/stripe/resources/reserve_transaction.rb +0 -22
  190. data/lib/stripe/resources/source_mandate_notification.rb +0 -59
  191. data/lib/stripe/resources/tax/association.rb +0 -60
  192. data/lib/stripe/resources/tax/form.rb +0 -124
  193. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
  194. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
  195. data/lib/stripe/resources/v2/amount.rb +0 -9
  196. data/lib/stripe/services/account_notice_service.rb +0 -39
  197. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  198. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  199. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  200. data/lib/stripe/services/capital_service.rb +0 -15
  201. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  202. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  203. data/lib/stripe/services/gift_cards/card_service.rb +0 -63
  204. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
  205. data/lib/stripe/services/gift_cards_service.rb +0 -14
  206. data/lib/stripe/services/invoice_payment_service.rb +0 -28
  207. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  208. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  209. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  210. data/lib/stripe/services/margin_service.rb +0 -50
  211. data/lib/stripe/services/order_line_item_service.rb +0 -17
  212. data/lib/stripe/services/order_service.rb +0 -78
  213. data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
  214. data/lib/stripe/services/payment_record_service.rb +0 -78
  215. data/lib/stripe/services/quote_line_service.rb +0 -17
  216. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  217. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  218. data/lib/stripe/services/tax/association_service.rb +0 -19
  219. data/lib/stripe/services/tax/form_service.rb +0 -37
  220. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
@@ -18,385 +18,6 @@ module Stripe
18
18
  "tax.registration"
19
19
  end
20
20
 
21
- class CountryOptions < Stripe::StripeObject
22
- class Ae < Stripe::StripeObject
23
- attr_reader :type
24
- end
25
-
26
- class At < Stripe::StripeObject
27
- class Standard < Stripe::StripeObject
28
- attr_reader :place_of_supply_scheme
29
- end
30
- attr_reader :standard, :type
31
- end
32
-
33
- class Au < Stripe::StripeObject
34
- attr_reader :type
35
- end
36
-
37
- class Be < Stripe::StripeObject
38
- class Standard < Stripe::StripeObject
39
- attr_reader :place_of_supply_scheme
40
- end
41
- attr_reader :standard, :type
42
- end
43
-
44
- class Bg < Stripe::StripeObject
45
- class Standard < Stripe::StripeObject
46
- attr_reader :place_of_supply_scheme
47
- end
48
- attr_reader :standard, :type
49
- end
50
-
51
- class Bh < Stripe::StripeObject
52
- attr_reader :type
53
- end
54
-
55
- class By < Stripe::StripeObject
56
- attr_reader :type
57
- end
58
-
59
- class Ca < Stripe::StripeObject
60
- class ProvinceStandard < Stripe::StripeObject
61
- attr_reader :province
62
- end
63
- attr_reader :province_standard, :type
64
- end
65
-
66
- class Ch < Stripe::StripeObject
67
- attr_reader :type
68
- end
69
-
70
- class Cl < Stripe::StripeObject
71
- attr_reader :type
72
- end
73
-
74
- class Co < Stripe::StripeObject
75
- attr_reader :type
76
- end
77
-
78
- class Cr < Stripe::StripeObject
79
- attr_reader :type
80
- end
81
-
82
- class Cy < Stripe::StripeObject
83
- class Standard < Stripe::StripeObject
84
- attr_reader :place_of_supply_scheme
85
- end
86
- attr_reader :standard, :type
87
- end
88
-
89
- class Cz < Stripe::StripeObject
90
- class Standard < Stripe::StripeObject
91
- attr_reader :place_of_supply_scheme
92
- end
93
- attr_reader :standard, :type
94
- end
95
-
96
- class De < Stripe::StripeObject
97
- class Standard < Stripe::StripeObject
98
- attr_reader :place_of_supply_scheme
99
- end
100
- attr_reader :standard, :type
101
- end
102
-
103
- class Dk < Stripe::StripeObject
104
- class Standard < Stripe::StripeObject
105
- attr_reader :place_of_supply_scheme
106
- end
107
- attr_reader :standard, :type
108
- end
109
-
110
- class Ec < Stripe::StripeObject
111
- attr_reader :type
112
- end
113
-
114
- class Ee < Stripe::StripeObject
115
- class Standard < Stripe::StripeObject
116
- attr_reader :place_of_supply_scheme
117
- end
118
- attr_reader :standard, :type
119
- end
120
-
121
- class Eg < Stripe::StripeObject
122
- attr_reader :type
123
- end
124
-
125
- class Es < Stripe::StripeObject
126
- class Standard < Stripe::StripeObject
127
- attr_reader :place_of_supply_scheme
128
- end
129
- attr_reader :standard, :type
130
- end
131
-
132
- class Fi < Stripe::StripeObject
133
- class Standard < Stripe::StripeObject
134
- attr_reader :place_of_supply_scheme
135
- end
136
- attr_reader :standard, :type
137
- end
138
-
139
- class Fr < Stripe::StripeObject
140
- class Standard < Stripe::StripeObject
141
- attr_reader :place_of_supply_scheme
142
- end
143
- attr_reader :standard, :type
144
- end
145
-
146
- class Gb < Stripe::StripeObject
147
- attr_reader :type
148
- end
149
-
150
- class Ge < Stripe::StripeObject
151
- attr_reader :type
152
- end
153
-
154
- class Gr < Stripe::StripeObject
155
- class Standard < Stripe::StripeObject
156
- attr_reader :place_of_supply_scheme
157
- end
158
- attr_reader :standard, :type
159
- end
160
-
161
- class Hr < Stripe::StripeObject
162
- class Standard < Stripe::StripeObject
163
- attr_reader :place_of_supply_scheme
164
- end
165
- attr_reader :standard, :type
166
- end
167
-
168
- class Hu < Stripe::StripeObject
169
- class Standard < Stripe::StripeObject
170
- attr_reader :place_of_supply_scheme
171
- end
172
- attr_reader :standard, :type
173
- end
174
-
175
- class Id < Stripe::StripeObject
176
- attr_reader :type
177
- end
178
-
179
- class Ie < Stripe::StripeObject
180
- class Standard < Stripe::StripeObject
181
- attr_reader :place_of_supply_scheme
182
- end
183
- attr_reader :standard, :type
184
- end
185
-
186
- class Is < Stripe::StripeObject
187
- attr_reader :type
188
- end
189
-
190
- class It < Stripe::StripeObject
191
- class Standard < Stripe::StripeObject
192
- attr_reader :place_of_supply_scheme
193
- end
194
- attr_reader :standard, :type
195
- end
196
-
197
- class Jp < Stripe::StripeObject
198
- attr_reader :type
199
- end
200
-
201
- class Ke < Stripe::StripeObject
202
- attr_reader :type
203
- end
204
-
205
- class Kr < Stripe::StripeObject
206
- attr_reader :type
207
- end
208
-
209
- class Kz < Stripe::StripeObject
210
- attr_reader :type
211
- end
212
-
213
- class Lt < Stripe::StripeObject
214
- class Standard < Stripe::StripeObject
215
- attr_reader :place_of_supply_scheme
216
- end
217
- attr_reader :standard, :type
218
- end
219
-
220
- class Lu < Stripe::StripeObject
221
- class Standard < Stripe::StripeObject
222
- attr_reader :place_of_supply_scheme
223
- end
224
- attr_reader :standard, :type
225
- end
226
-
227
- class Lv < Stripe::StripeObject
228
- class Standard < Stripe::StripeObject
229
- attr_reader :place_of_supply_scheme
230
- end
231
- attr_reader :standard, :type
232
- end
233
-
234
- class Ma < Stripe::StripeObject
235
- attr_reader :type
236
- end
237
-
238
- class Md < Stripe::StripeObject
239
- attr_reader :type
240
- end
241
-
242
- class Mt < Stripe::StripeObject
243
- class Standard < Stripe::StripeObject
244
- attr_reader :place_of_supply_scheme
245
- end
246
- attr_reader :standard, :type
247
- end
248
-
249
- class Mx < Stripe::StripeObject
250
- attr_reader :type
251
- end
252
-
253
- class My < Stripe::StripeObject
254
- attr_reader :type
255
- end
256
-
257
- class Ng < Stripe::StripeObject
258
- attr_reader :type
259
- end
260
-
261
- class Nl < Stripe::StripeObject
262
- class Standard < Stripe::StripeObject
263
- attr_reader :place_of_supply_scheme
264
- end
265
- attr_reader :standard, :type
266
- end
267
-
268
- class No < Stripe::StripeObject
269
- attr_reader :type
270
- end
271
-
272
- class Nz < Stripe::StripeObject
273
- attr_reader :type
274
- end
275
-
276
- class Om < Stripe::StripeObject
277
- attr_reader :type
278
- end
279
-
280
- class Pl < Stripe::StripeObject
281
- class Standard < Stripe::StripeObject
282
- attr_reader :place_of_supply_scheme
283
- end
284
- attr_reader :standard, :type
285
- end
286
-
287
- class Pt < Stripe::StripeObject
288
- class Standard < Stripe::StripeObject
289
- attr_reader :place_of_supply_scheme
290
- end
291
- attr_reader :standard, :type
292
- end
293
-
294
- class Ro < Stripe::StripeObject
295
- class Standard < Stripe::StripeObject
296
- attr_reader :place_of_supply_scheme
297
- end
298
- attr_reader :standard, :type
299
- end
300
-
301
- class Rs < Stripe::StripeObject
302
- attr_reader :type
303
- end
304
-
305
- class Ru < Stripe::StripeObject
306
- attr_reader :type
307
- end
308
-
309
- class Sa < Stripe::StripeObject
310
- attr_reader :type
311
- end
312
-
313
- class Se < Stripe::StripeObject
314
- class Standard < Stripe::StripeObject
315
- attr_reader :place_of_supply_scheme
316
- end
317
- attr_reader :standard, :type
318
- end
319
-
320
- class Sg < Stripe::StripeObject
321
- attr_reader :type
322
- end
323
-
324
- class Si < Stripe::StripeObject
325
- class Standard < Stripe::StripeObject
326
- attr_reader :place_of_supply_scheme
327
- end
328
- attr_reader :standard, :type
329
- end
330
-
331
- class Sk < Stripe::StripeObject
332
- class Standard < Stripe::StripeObject
333
- attr_reader :place_of_supply_scheme
334
- end
335
- attr_reader :standard, :type
336
- end
337
-
338
- class Th < Stripe::StripeObject
339
- attr_reader :type
340
- end
341
-
342
- class Tr < Stripe::StripeObject
343
- attr_reader :type
344
- end
345
-
346
- class Tz < Stripe::StripeObject
347
- attr_reader :type
348
- end
349
-
350
- class Us < Stripe::StripeObject
351
- class LocalAmusementTax < Stripe::StripeObject
352
- attr_reader :jurisdiction
353
- end
354
-
355
- class LocalLeaseTax < Stripe::StripeObject
356
- attr_reader :jurisdiction
357
- end
358
-
359
- class StateSalesTax < Stripe::StripeObject
360
- class Election < Stripe::StripeObject
361
- attr_reader :jurisdiction, :type
362
- end
363
- attr_reader :elections
364
- end
365
- attr_reader :local_amusement_tax, :local_lease_tax, :state, :state_sales_tax, :type
366
- end
367
-
368
- class Uz < Stripe::StripeObject
369
- attr_reader :type
370
- end
371
-
372
- class Vn < Stripe::StripeObject
373
- attr_reader :type
374
- end
375
-
376
- class Za < Stripe::StripeObject
377
- attr_reader :type
378
- end
379
- attr_reader :ae, :at, :au, :be, :bg, :bh, :by, :ca, :ch, :cl, :co, :cr, :cy, :cz, :de, :dk, :ec, :ee, :eg, :es, :fi, :fr, :gb, :ge, :gr, :hr, :hu, :id, :ie, :is, :it, :jp, :ke, :kr, :kz, :lt, :lu, :lv, :ma, :md, :mt, :mx, :my, :ng, :nl, :no, :nz, :om, :pl, :pt, :ro, :rs, :ru, :sa, :se, :sg, :si, :sk, :th, :tr, :tz, :us, :uz, :vn, :za
380
- end
381
- # Time at which the registration becomes active. Measured in seconds since the Unix epoch.
382
- attr_reader :active_from
383
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
384
- attr_reader :country
385
- # Attribute for field country_options
386
- attr_reader :country_options
387
- # Time at which the object was created. Measured in seconds since the Unix epoch.
388
- attr_reader :created
389
- # If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. Measured in seconds since the Unix epoch.
390
- attr_reader :expires_at
391
- # Unique identifier for the object.
392
- attr_reader :id
393
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
394
- attr_reader :livemode
395
- # String representing the object's type. Objects of the same type share the same value.
396
- attr_reader :object
397
- # The status of the registration. This field is present for convenience and can be deduced from `active_from` and `expires_at`.
398
- attr_reader :status
399
-
400
21
  # Creates a new Tax Registration object.
401
22
  def self.create(params = {}, opts = {})
402
23
  request_stripe_object(
@@ -408,11 +29,11 @@ module Stripe
408
29
  end
409
30
 
410
31
  # Returns a list of Tax Registration objects.
411
- def self.list(filters = {}, opts = {})
32
+ def self.list(params = {}, opts = {})
412
33
  request_stripe_object(
413
34
  method: :get,
414
35
  path: "/v1/tax/registrations",
415
- params: filters,
36
+ params: params,
416
37
  opts: opts
417
38
  )
418
39
  end
@@ -8,43 +8,10 @@ module Stripe
8
8
  # Related guide: [Using the Settings API](https://stripe.com/docs/tax/settings-api)
9
9
  class Settings < SingletonAPIResource
10
10
  include Stripe::APIOperations::SingletonSave
11
-
12
11
  OBJECT_NAME = "tax.settings"
13
12
  def self.object_name
14
13
  "tax.settings"
15
14
  end
16
-
17
- class Defaults < Stripe::StripeObject
18
- attr_reader :tax_behavior, :tax_code
19
- end
20
-
21
- class HeadOffice < Stripe::StripeObject
22
- class Address < Stripe::StripeObject
23
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
24
- end
25
- attr_reader :address
26
- end
27
-
28
- class StatusDetails < Stripe::StripeObject
29
- class Active < Stripe::StripeObject; end
30
-
31
- class Pending < Stripe::StripeObject
32
- attr_reader :missing_fields
33
- end
34
- attr_reader :active, :pending
35
- end
36
- # Attribute for field defaults
37
- attr_reader :defaults
38
- # The place where your business is located.
39
- attr_reader :head_office
40
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
41
- attr_reader :livemode
42
- # String representing the object's type. Objects of the same type share the same value.
43
- attr_reader :object
44
- # The status of the Tax `Settings`.
45
- attr_reader :status
46
- # Attribute for field status_details
47
- attr_reader :status_details
48
15
  end
49
16
  end
50
17
  end
@@ -12,74 +12,6 @@ module Stripe
12
12
  "tax.transaction"
13
13
  end
14
14
 
15
- class CustomerDetails < Stripe::StripeObject
16
- class Address < Stripe::StripeObject
17
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
18
- end
19
-
20
- class TaxId < Stripe::StripeObject
21
- attr_reader :type, :value
22
- end
23
- attr_reader :address, :address_source, :ip_address, :tax_ids, :taxability_override
24
- end
25
-
26
- class Reversal < Stripe::StripeObject
27
- attr_reader :original_transaction
28
- end
29
-
30
- class ShipFromDetails < Stripe::StripeObject
31
- class Address < Stripe::StripeObject
32
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
33
- end
34
- attr_reader :address
35
- end
36
-
37
- class ShippingCost < Stripe::StripeObject
38
- class TaxBreakdown < Stripe::StripeObject
39
- class Jurisdiction < Stripe::StripeObject
40
- attr_reader :country, :display_name, :level, :state
41
- end
42
-
43
- class TaxRateDetails < Stripe::StripeObject
44
- attr_reader :display_name, :percentage_decimal, :tax_type
45
- end
46
- attr_reader :amount, :jurisdiction, :sourcing, :tax_rate_details, :taxability_reason, :taxable_amount
47
- end
48
- attr_reader :amount, :amount_tax, :shipping_rate, :tax_behavior, :tax_breakdown, :tax_code
49
- end
50
- # Time at which the object was created. Measured in seconds since the Unix epoch.
51
- attr_reader :created
52
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
53
- attr_reader :currency
54
- # The ID of an existing [Customer](https://stripe.com/docs/api/customers/object) used for the resource.
55
- attr_reader :customer
56
- # Attribute for field customer_details
57
- attr_reader :customer_details
58
- # Unique identifier for the transaction.
59
- attr_reader :id
60
- # The tax collected or refunded, by line item.
61
- attr_reader :line_items
62
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
63
- attr_reader :livemode
64
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
65
- attr_reader :metadata
66
- # String representing the object's type. Objects of the same type share the same value.
67
- attr_reader :object
68
- # The Unix timestamp representing when the tax liability is assumed or reduced.
69
- attr_reader :posted_at
70
- # A custom unique identifier, such as 'myOrder_123'.
71
- attr_reader :reference
72
- # If `type=reversal`, contains information about what was reversed.
73
- attr_reader :reversal
74
- # The details of the ship from location, such as the address.
75
- attr_reader :ship_from_details
76
- # The shipping cost details for the transaction.
77
- attr_reader :shipping_cost
78
- # Timestamp of date at which the tax rules and rates in effect applies for the calculation.
79
- attr_reader :tax_date
80
- # If `reversal`, this transaction reverses an earlier transaction.
81
- attr_reader :type
82
-
83
15
  # Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days.
84
16
  def self.create_from_calculation(params = {}, opts = {})
85
17
  request_stripe_object(
@@ -8,36 +8,6 @@ module Stripe
8
8
  def self.object_name
9
9
  "tax.transaction_line_item"
10
10
  end
11
-
12
- class Reversal < Stripe::StripeObject
13
- attr_reader :original_line_item
14
- end
15
- # The line item amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
16
- attr_reader :amount
17
- # The amount of tax calculated for this line item, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
18
- attr_reader :amount_tax
19
- # Unique identifier for the object.
20
- attr_reader :id
21
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
22
- attr_reader :livemode
23
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
24
- attr_reader :metadata
25
- # String representing the object's type. Objects of the same type share the same value.
26
- attr_reader :object
27
- # The ID of an existing [Product](https://stripe.com/docs/api/products/object).
28
- attr_reader :product
29
- # The number of units of the item being purchased. For reversals, this is the quantity reversed.
30
- attr_reader :quantity
31
- # A custom identifier for this line item in the transaction.
32
- attr_reader :reference
33
- # If `type=reversal`, contains information about what was reversed.
34
- attr_reader :reversal
35
- # Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes.
36
- attr_reader :tax_behavior
37
- # The [tax code](https://stripe.com/docs/tax/tax-categories) ID used for this resource.
38
- attr_reader :tax_code
39
- # If `reversal`, this line item reverses an earlier transaction.
40
- attr_reader :type
41
11
  end
42
12
  end
43
13
  end
@@ -11,18 +11,9 @@ module Stripe
11
11
  "tax_code"
12
12
  end
13
13
 
14
- # A detailed description of which types of products the tax code represents.
15
- attr_reader :description
16
- # Unique identifier for the object.
17
- attr_reader :id
18
- # A short name for the tax code.
19
- attr_reader :name
20
- # String representing the object's type. Objects of the same type share the same value.
21
- attr_reader :object
22
-
23
14
  # A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations.
24
- def self.list(filters = {}, opts = {})
25
- request_stripe_object(method: :get, path: "/v1/tax_codes", params: filters, opts: opts)
15
+ def self.list(params = {}, opts = {})
16
+ request_stripe_object(method: :get, path: "/v1/tax_codes", params: params, opts: opts)
26
17
  end
27
18
  end
28
19
  end
@@ -16,36 +16,6 @@ module Stripe
16
16
  "tax_id"
17
17
  end
18
18
 
19
- class Owner < Stripe::StripeObject
20
- attr_reader :account, :application, :customer, :type
21
- end
22
-
23
- class Verification < Stripe::StripeObject
24
- attr_reader :status, :verified_address, :verified_name
25
- end
26
- # Two-letter ISO code representing the country of the tax ID.
27
- attr_reader :country
28
- # Time at which the object was created. Measured in seconds since the Unix epoch.
29
- attr_reader :created
30
- # ID of the customer.
31
- attr_reader :customer
32
- # Unique identifier for the object.
33
- attr_reader :id
34
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
35
- attr_reader :livemode
36
- # String representing the object's type. Objects of the same type share the same value.
37
- attr_reader :object
38
- # The account or customer the tax ID belongs to.
39
- attr_reader :owner
40
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `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`. Note that some legacy tax IDs have type `unknown`
41
- attr_reader :type
42
- # Value of the tax ID.
43
- attr_reader :value
44
- # Tax ID verification information.
45
- attr_reader :verification
46
- # Always true for a deleted object
47
- attr_reader :deleted
48
-
49
19
  # Creates a new account or customer tax_id object.
50
20
  def self.create(params = {}, opts = {})
51
21
  request_stripe_object(method: :post, path: "/v1/tax_ids", params: params, opts: opts)
@@ -72,8 +42,8 @@ module Stripe
72
42
  end
73
43
 
74
44
  # Returns a list of tax IDs.
75
- def self.list(filters = {}, opts = {})
76
- request_stripe_object(method: :get, path: "/v1/tax_ids", params: filters, opts: opts)
45
+ def self.list(params = {}, opts = {})
46
+ request_stripe_object(method: :get, path: "/v1/tax_ids", params: params, opts: opts)
77
47
  end
78
48
  end
79
49
  end
@@ -15,56 +15,14 @@ module Stripe
15
15
  "tax_rate"
16
16
  end
17
17
 
18
- class FlatAmount < Stripe::StripeObject
19
- attr_reader :amount, :currency
20
- end
21
- # Defaults to `true`. When set to `false`, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
22
- attr_reader :active
23
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
24
- attr_reader :country
25
- # Time at which the object was created. Measured in seconds since the Unix epoch.
26
- attr_reader :created
27
- # An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
28
- attr_reader :description
29
- # The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
30
- attr_reader :display_name
31
- # Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true,
32
- # this percentage reflects the rate actually used to calculate tax based on the product's taxability
33
- # and whether the user is registered to collect taxes in the corresponding jurisdiction.
34
- attr_reader :effective_percentage
35
- # The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate.
36
- attr_reader :flat_amount
37
- # Unique identifier for the object.
38
- attr_reader :id
39
- # This specifies if the tax rate is inclusive or exclusive.
40
- attr_reader :inclusive
41
- # The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
42
- attr_reader :jurisdiction
43
- # The level of the jurisdiction that imposes this tax rate. Will be `null` for manually defined tax rates.
44
- attr_reader :jurisdiction_level
45
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
46
- attr_reader :livemode
47
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
48
- attr_reader :metadata
49
- # String representing the object's type. Objects of the same type share the same value.
50
- attr_reader :object
51
- # Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
52
- attr_reader :percentage
53
- # Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location.
54
- attr_reader :rate_type
55
- # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States.
56
- attr_reader :state
57
- # The high-level tax type, such as `vat` or `sales_tax`.
58
- attr_reader :tax_type
59
-
60
18
  # Creates a new tax rate.
61
19
  def self.create(params = {}, opts = {})
62
20
  request_stripe_object(method: :post, path: "/v1/tax_rates", params: params, opts: opts)
63
21
  end
64
22
 
65
23
  # Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.
66
- def self.list(filters = {}, opts = {})
67
- request_stripe_object(method: :get, path: "/v1/tax_rates", params: filters, opts: opts)
24
+ def self.list(params = {}, opts = {})
25
+ request_stripe_object(method: :get, path: "/v1/tax_rates", params: params, opts: opts)
68
26
  end
69
27
 
70
28
  # Updates an existing tax rate.