stripe 13.2.0 → 13.3.0.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1396 -645
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +32 -0
- data/lib/stripe/request_signing_authenticator.rb +79 -0
- data/lib/stripe/resources/account.rb +230 -0
- data/lib/stripe/resources/account_link.rb +9 -0
- data/lib/stripe/resources/account_notice.rb +60 -0
- data/lib/stripe/resources/account_session.rb +103 -0
- data/lib/stripe/resources/apple_pay_domain.rb +13 -0
- data/lib/stripe/resources/application.rb +20 -0
- data/lib/stripe/resources/application_fee.rb +34 -0
- data/lib/stripe/resources/application_fee_refund.rb +17 -0
- data/lib/stripe/resources/apps/secret.rb +22 -0
- data/lib/stripe/resources/balance.rb +59 -0
- data/lib/stripe/resources/balance_transaction.rb +34 -0
- data/lib/stripe/resources/bank_account.rb +60 -2
- data/lib/stripe/resources/billing/alert.rb +21 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +25 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +45 -1
- data/lib/stripe/resources/billing/credit_grant.rb +46 -2
- data/lib/stripe/resources/billing/meter.rb +49 -7
- data/lib/stripe/resources/billing/meter_error_report.rb +44 -0
- data/lib/stripe/resources/billing/meter_event.rb +17 -3
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +17 -1
- data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +70 -0
- data/lib/stripe/resources/billing_portal/session.rb +61 -0
- data/lib/stripe/resources/capability.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +94 -0
- data/lib/stripe/resources/capital/financing_summary.rb +32 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +56 -0
- data/lib/stripe/resources/card.rb +72 -0
- data/lib/stripe/resources/cash_balance.rb +14 -0
- data/lib/stripe/resources/charge.rb +469 -0
- data/lib/stripe/resources/checkout/session.rb +496 -0
- data/lib/stripe/resources/climate/order.rb +55 -0
- data/lib/stripe/resources/climate/product.rb +24 -0
- data/lib/stripe/resources/climate/supplier.rb +18 -0
- data/lib/stripe/resources/confirmation_token.rb +297 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
- data/lib/stripe/resources/country_spec.rb +27 -0
- data/lib/stripe/resources/coupon.rb +44 -0
- data/lib/stripe/resources/credit_note.rb +91 -0
- data/lib/stripe/resources/credit_note_line_item.rb +46 -0
- data/lib/stripe/resources/customer.rb +93 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +27 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +72 -0
- data/lib/stripe/resources/customer_session.rb +34 -0
- data/lib/stripe/resources/discount.rb +29 -0
- data/lib/stripe/resources/dispute.rb +88 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +11 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
- data/lib/stripe/resources/entitlements/feature.rb +15 -0
- data/lib/stripe/resources/ephemeral_key.rb +13 -0
- data/lib/stripe/resources/event.rb +44 -0
- data/lib/stripe/resources/exchange_rate.rb +7 -0
- data/lib/stripe/resources/file.rb +23 -0
- data/lib/stripe/resources/file_link.rb +19 -0
- data/lib/stripe/resources/financial_connections/account.rb +87 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
- data/lib/stripe/resources/financial_connections/institution.rb +61 -0
- data/lib/stripe/resources/financial_connections/session.rb +49 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +28 -0
- data/lib/stripe/resources/forwarding/request.rb +40 -0
- data/lib/stripe/resources/funding_instructions.rb +82 -0
- data/lib/stripe/resources/gift_cards/card.rb +96 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +132 -0
- data/lib/stripe/resources/identity/verification_report.rb +92 -0
- data/lib/stripe/resources/identity/verification_session.rb +76 -0
- data/lib/stripe/resources/invoice.rb +418 -0
- data/lib/stripe/resources/invoice_item.rb +54 -0
- data/lib/stripe/resources/invoice_line_item.rb +83 -0
- data/lib/stripe/resources/invoice_payment.rb +46 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +17 -0
- data/lib/stripe/resources/issuing/authorization.rb +129 -0
- data/lib/stripe/resources/issuing/card.rb +86 -0
- data/lib/stripe/resources/issuing/cardholder.rb +76 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +145 -0
- data/lib/stripe/resources/issuing/dispute.rb +65 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +49 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +43 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +38 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +18 -0
- data/lib/stripe/resources/issuing/settlement.rb +49 -0
- data/lib/stripe/resources/issuing/token.rb +46 -0
- data/lib/stripe/resources/issuing/transaction.rb +106 -0
- data/lib/stripe/resources/line_item.rb +50 -0
- data/lib/stripe/resources/login_link.rb +7 -0
- data/lib/stripe/resources/mandate.rb +78 -0
- data/lib/stripe/resources/margin.rb +56 -0
- data/lib/stripe/resources/order.rb +322 -0
- data/lib/stripe/resources/payment_attempt_record.rb +100 -0
- data/lib/stripe/resources/payment_intent.rb +712 -0
- data/lib/stripe/resources/payment_link.rb +198 -0
- data/lib/stripe/resources/payment_method.rb +368 -0
- data/lib/stripe/resources/payment_method_configuration.rb +430 -0
- data/lib/stripe/resources/payment_method_domain.rb +57 -0
- data/lib/stripe/resources/payment_record.rb +194 -0
- data/lib/stripe/resources/payout.rb +56 -0
- data/lib/stripe/resources/person.rb +128 -0
- data/lib/stripe/resources/plan.rb +52 -0
- data/lib/stripe/resources/price.rb +77 -0
- data/lib/stripe/resources/product.rb +60 -0
- data/lib/stripe/resources/product_feature.rb +12 -0
- data/lib/stripe/resources/promotion_code.rb +35 -0
- data/lib/stripe/resources/quote.rb +356 -0
- data/lib/stripe/resources/quote_line.rb +136 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +374 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +170 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +17 -0
- data/lib/stripe/resources/radar/value_list.rb +23 -0
- data/lib/stripe/resources/radar/value_list_item.rb +17 -0
- data/lib/stripe/resources/refund.rb +130 -0
- data/lib/stripe/resources/reporting/report_run.rb +29 -0
- data/lib/stripe/resources/reporting/report_type.rb +19 -0
- data/lib/stripe/resources/reserve_transaction.rb +22 -0
- data/lib/stripe/resources/reversal.rb +21 -0
- data/lib/stripe/resources/review.rb +36 -0
- data/lib/stripe/resources/setup_attempt.rb +101 -0
- data/lib/stripe/resources/setup_intent.rb +158 -0
- data/lib/stripe/resources/shipping_rate.rb +42 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +26 -0
- data/lib/stripe/resources/source.rb +195 -0
- data/lib/stripe/resources/source_mandate_notification.rb +59 -0
- data/lib/stripe/resources/source_transaction.rb +48 -0
- data/lib/stripe/resources/subscription.rb +214 -0
- data/lib/stripe/resources/subscription_item.rb +46 -0
- data/lib/stripe/resources/subscription_schedule.rb +173 -0
- data/lib/stripe/resources/tax/association.rb +60 -0
- data/lib/stripe/resources/tax/calculation.rb +72 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +33 -0
- data/lib/stripe/resources/tax/form.rb +124 -0
- data/lib/stripe/resources/tax/registration.rb +379 -0
- data/lib/stripe/resources/tax/settings.rb +33 -0
- data/lib/stripe/resources/tax/transaction.rb +68 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +30 -0
- data/lib/stripe/resources/tax_code.rb +9 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
- data/lib/stripe/resources/tax_id.rb +30 -0
- data/lib/stripe/resources/tax_rate.rb +42 -0
- data/lib/stripe/resources/terminal/configuration.rb +107 -0
- data/lib/stripe/resources/terminal/connection_token.rb +7 -0
- data/lib/stripe/resources/terminal/location.rb +20 -0
- data/lib/stripe/resources/terminal/reader.rb +178 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +30 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +27 -0
- data/lib/stripe/resources/token.rb +29 -0
- data/lib/stripe/resources/topup.rb +33 -0
- data/lib/stripe/resources/transfer.rb +35 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +32 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +38 -0
- data/lib/stripe/resources/treasury/financial_account.rb +57 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +91 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +66 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +85 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +82 -0
- data/lib/stripe/resources/treasury/received_credit.rb +70 -0
- data/lib/stripe/resources/treasury/received_debit.rb +67 -0
- data/lib/stripe/resources/treasury/transaction.rb +42 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +34 -0
- data/lib/stripe/resources/usage_record.rb +13 -0
- data/lib/stripe/resources/usage_record_summary.rb +18 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +20 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
- data/lib/stripe/resources/v2/event.rb +21 -0
- data/lib/stripe/resources/v2/event_destination.rb +49 -0
- data/lib/stripe/resources/webhook_endpoint.rb +27 -0
- data/lib/stripe/resources.rb +31 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -1
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/billing/credit_grant_service.rb +3 -3
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +1 -1
- data/lib/stripe/services/billing/meter_event_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +5 -5
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/gift_cards/card_service.rb +63 -0
- data/lib/stripe/services/gift_cards/transaction_service.rb +74 -0
- data/lib/stripe/services/gift_cards_service.rb +14 -0
- data/lib/stripe/services/invoice_payment_service.rb +28 -0
- data/lib/stripe/services/invoice_service.rb +44 -1
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_record_service.rb +78 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_service.rb +33 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +8 -1
- data/lib/stripe/services.rb +25 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +5 -0
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +45 -0
- data/stripe.gemspec +2 -1
- metadata +62 -4
@@ -18,6 +18,385 @@ 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
|
+
|
21
400
|
# Creates a new Tax Registration object.
|
22
401
|
def self.create(params = {}, opts = {})
|
23
402
|
request_stripe_object(
|
@@ -8,10 +8,43 @@ 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
|
+
|
11
12
|
OBJECT_NAME = "tax.settings"
|
12
13
|
def self.object_name
|
13
14
|
"tax.settings"
|
14
15
|
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
|
15
48
|
end
|
16
49
|
end
|
17
50
|
end
|
@@ -12,6 +12,74 @@ 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
|
+
|
15
83
|
# Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days.
|
16
84
|
def self.create_from_calculation(params = {}, opts = {})
|
17
85
|
request_stripe_object(
|
@@ -8,6 +8,36 @@ 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
|
11
41
|
end
|
12
42
|
end
|
13
43
|
end
|
@@ -11,6 +11,15 @@ 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
|
+
|
14
23
|
# 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.
|
15
24
|
def self.list(filters = {}, opts = {})
|
16
25
|
request_stripe_object(method: :get, path: "/v1/tax_codes", params: filters, opts: opts)
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class TaxDeductedAtSource < APIResource
|
6
|
+
OBJECT_NAME = "tax_deducted_at_source"
|
7
|
+
def self.object_name
|
8
|
+
"tax_deducted_at_source"
|
9
|
+
end
|
10
|
+
|
11
|
+
# Unique identifier for the object.
|
12
|
+
attr_reader :id
|
13
|
+
# String representing the object's type. Objects of the same type share the same value.
|
14
|
+
attr_reader :object
|
15
|
+
# The end of the invoicing period. This TDS applies to Stripe fees collected during this invoicing period.
|
16
|
+
attr_reader :period_end
|
17
|
+
# The start of the invoicing period. This TDS applies to Stripe fees collected during this invoicing period.
|
18
|
+
attr_reader :period_start
|
19
|
+
# The TAN that was supplied to Stripe when TDS was assessed
|
20
|
+
attr_reader :tax_deduction_account_number
|
21
|
+
end
|
22
|
+
end
|
@@ -16,6 +16,36 @@ 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`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `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`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. 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
|
+
|
19
49
|
# Creates a new account or customer tax_id object.
|
20
50
|
def self.create(params = {}, opts = {})
|
21
51
|
request_stripe_object(method: :post, path: "/v1/tax_ids", params: params, opts: opts)
|
@@ -15,6 +15,48 @@ 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
|
+
|
18
60
|
# Creates a new tax rate.
|
19
61
|
def self.create(params = {}, opts = {})
|
20
62
|
request_stripe_object(method: :post, path: "/v1/tax_rates", params: params, opts: opts)
|