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
@@ -27,6 +27,502 @@ module Stripe
|
|
27
27
|
"checkout.session"
|
28
28
|
end
|
29
29
|
|
30
|
+
class AdaptivePricing < Stripe::StripeObject
|
31
|
+
attr_reader :enabled
|
32
|
+
end
|
33
|
+
|
34
|
+
class AfterExpiration < Stripe::StripeObject
|
35
|
+
class Recovery < Stripe::StripeObject
|
36
|
+
attr_reader :allow_promotion_codes, :enabled, :expires_at, :url
|
37
|
+
end
|
38
|
+
attr_reader :recovery
|
39
|
+
end
|
40
|
+
|
41
|
+
class AutomaticTax < Stripe::StripeObject
|
42
|
+
class Liability < Stripe::StripeObject
|
43
|
+
attr_reader :account, :type
|
44
|
+
end
|
45
|
+
attr_reader :enabled, :liability, :status
|
46
|
+
end
|
47
|
+
|
48
|
+
class CollectedInformation < Stripe::StripeObject
|
49
|
+
class ShippingDetails < Stripe::StripeObject
|
50
|
+
class Address < Stripe::StripeObject
|
51
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
52
|
+
end
|
53
|
+
attr_reader :address, :carrier, :name, :phone, :tracking_number
|
54
|
+
end
|
55
|
+
|
56
|
+
class TaxId < Stripe::StripeObject
|
57
|
+
attr_reader :type, :value
|
58
|
+
end
|
59
|
+
attr_reader :business_name, :email, :phone, :shipping_details, :tax_ids
|
60
|
+
end
|
61
|
+
|
62
|
+
class Consent < Stripe::StripeObject
|
63
|
+
attr_reader :promotions, :terms_of_service
|
64
|
+
end
|
65
|
+
|
66
|
+
class ConsentCollection < Stripe::StripeObject
|
67
|
+
class PaymentMethodReuseAgreement < Stripe::StripeObject
|
68
|
+
attr_reader :position
|
69
|
+
end
|
70
|
+
attr_reader :payment_method_reuse_agreement, :promotions, :terms_of_service
|
71
|
+
end
|
72
|
+
|
73
|
+
class CurrencyConversion < Stripe::StripeObject
|
74
|
+
attr_reader :amount_subtotal, :amount_total, :fx_rate, :source_currency
|
75
|
+
end
|
76
|
+
|
77
|
+
class CustomField < Stripe::StripeObject
|
78
|
+
class Dropdown < Stripe::StripeObject
|
79
|
+
class Option < Stripe::StripeObject
|
80
|
+
attr_reader :label, :value
|
81
|
+
end
|
82
|
+
attr_reader :default_value, :options, :value
|
83
|
+
end
|
84
|
+
|
85
|
+
class Label < Stripe::StripeObject
|
86
|
+
attr_reader :custom, :type
|
87
|
+
end
|
88
|
+
|
89
|
+
class Numeric < Stripe::StripeObject
|
90
|
+
attr_reader :default_value, :maximum_length, :minimum_length, :value
|
91
|
+
end
|
92
|
+
|
93
|
+
class Text < Stripe::StripeObject
|
94
|
+
attr_reader :default_value, :maximum_length, :minimum_length, :value
|
95
|
+
end
|
96
|
+
attr_reader :dropdown, :key, :label, :numeric, :optional, :text, :type
|
97
|
+
end
|
98
|
+
|
99
|
+
class CustomText < Stripe::StripeObject
|
100
|
+
class AfterSubmit < Stripe::StripeObject
|
101
|
+
attr_reader :message
|
102
|
+
end
|
103
|
+
|
104
|
+
class ShippingAddress < Stripe::StripeObject
|
105
|
+
attr_reader :message
|
106
|
+
end
|
107
|
+
|
108
|
+
class Submit < Stripe::StripeObject
|
109
|
+
attr_reader :message
|
110
|
+
end
|
111
|
+
|
112
|
+
class TermsOfServiceAcceptance < Stripe::StripeObject
|
113
|
+
attr_reader :message
|
114
|
+
end
|
115
|
+
attr_reader :after_submit, :shipping_address, :submit, :terms_of_service_acceptance
|
116
|
+
end
|
117
|
+
|
118
|
+
class CustomerDetails < Stripe::StripeObject
|
119
|
+
class Address < Stripe::StripeObject
|
120
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
121
|
+
end
|
122
|
+
|
123
|
+
class TaxId < Stripe::StripeObject
|
124
|
+
attr_reader :type, :value
|
125
|
+
end
|
126
|
+
attr_reader :address, :email, :name, :phone, :tax_exempt, :tax_ids
|
127
|
+
end
|
128
|
+
|
129
|
+
class InvoiceCreation < Stripe::StripeObject
|
130
|
+
class InvoiceData < Stripe::StripeObject
|
131
|
+
class CustomField < Stripe::StripeObject
|
132
|
+
attr_reader :name, :value
|
133
|
+
end
|
134
|
+
|
135
|
+
class Issuer < Stripe::StripeObject
|
136
|
+
attr_reader :account, :type
|
137
|
+
end
|
138
|
+
|
139
|
+
class RenderingOptions < Stripe::StripeObject
|
140
|
+
attr_reader :amount_tax_display
|
141
|
+
end
|
142
|
+
attr_reader :account_tax_ids, :custom_fields, :description, :footer, :issuer, :metadata, :rendering_options
|
143
|
+
end
|
144
|
+
attr_reader :enabled, :invoice_data
|
145
|
+
end
|
146
|
+
|
147
|
+
class PaymentMethodConfigurationDetails < Stripe::StripeObject
|
148
|
+
attr_reader :id, :parent
|
149
|
+
end
|
150
|
+
|
151
|
+
class PaymentMethodOptions < Stripe::StripeObject
|
152
|
+
class AcssDebit < Stripe::StripeObject
|
153
|
+
class MandateOptions < Stripe::StripeObject
|
154
|
+
attr_reader :custom_mandate_url, :default_for, :interval_description, :payment_schedule, :transaction_type
|
155
|
+
end
|
156
|
+
attr_reader :currency, :mandate_options, :setup_future_usage, :verification_method
|
157
|
+
end
|
158
|
+
|
159
|
+
class Affirm < Stripe::StripeObject
|
160
|
+
attr_reader :setup_future_usage
|
161
|
+
end
|
162
|
+
|
163
|
+
class AfterpayClearpay < Stripe::StripeObject
|
164
|
+
attr_reader :setup_future_usage
|
165
|
+
end
|
166
|
+
|
167
|
+
class Alipay < Stripe::StripeObject
|
168
|
+
attr_reader :setup_future_usage
|
169
|
+
end
|
170
|
+
|
171
|
+
class AmazonPay < Stripe::StripeObject
|
172
|
+
attr_reader :setup_future_usage
|
173
|
+
end
|
174
|
+
|
175
|
+
class AuBecsDebit < Stripe::StripeObject
|
176
|
+
attr_reader :setup_future_usage
|
177
|
+
end
|
178
|
+
|
179
|
+
class BacsDebit < Stripe::StripeObject
|
180
|
+
class MandateOptions < Stripe::StripeObject
|
181
|
+
attr_reader :reference_prefix
|
182
|
+
end
|
183
|
+
attr_reader :mandate_options, :setup_future_usage
|
184
|
+
end
|
185
|
+
|
186
|
+
class Bancontact < Stripe::StripeObject
|
187
|
+
attr_reader :setup_future_usage
|
188
|
+
end
|
189
|
+
|
190
|
+
class Boleto < Stripe::StripeObject
|
191
|
+
attr_reader :expires_after_days, :setup_future_usage
|
192
|
+
end
|
193
|
+
|
194
|
+
class Card < Stripe::StripeObject
|
195
|
+
class Installments < Stripe::StripeObject
|
196
|
+
attr_reader :enabled
|
197
|
+
end
|
198
|
+
attr_reader :installments, :request_decremental_authorization, :request_extended_authorization, :request_incremental_authorization, :request_multicapture, :request_overcapture, :request_three_d_secure, :setup_future_usage, :statement_descriptor_suffix_kana, :statement_descriptor_suffix_kanji
|
199
|
+
end
|
200
|
+
|
201
|
+
class Cashapp < Stripe::StripeObject
|
202
|
+
attr_reader :setup_future_usage
|
203
|
+
end
|
204
|
+
|
205
|
+
class CustomerBalance < Stripe::StripeObject
|
206
|
+
class BankTransfer < Stripe::StripeObject
|
207
|
+
class EuBankTransfer < Stripe::StripeObject
|
208
|
+
attr_reader :country
|
209
|
+
end
|
210
|
+
attr_reader :eu_bank_transfer, :requested_address_types, :type
|
211
|
+
end
|
212
|
+
attr_reader :bank_transfer, :funding_type, :setup_future_usage
|
213
|
+
end
|
214
|
+
|
215
|
+
class Eps < Stripe::StripeObject
|
216
|
+
attr_reader :setup_future_usage
|
217
|
+
end
|
218
|
+
|
219
|
+
class Fpx < Stripe::StripeObject
|
220
|
+
attr_reader :setup_future_usage
|
221
|
+
end
|
222
|
+
|
223
|
+
class Giropay < Stripe::StripeObject
|
224
|
+
attr_reader :setup_future_usage
|
225
|
+
end
|
226
|
+
|
227
|
+
class Grabpay < Stripe::StripeObject
|
228
|
+
attr_reader :setup_future_usage
|
229
|
+
end
|
230
|
+
|
231
|
+
class Ideal < Stripe::StripeObject
|
232
|
+
attr_reader :setup_future_usage
|
233
|
+
end
|
234
|
+
|
235
|
+
class KakaoPay < Stripe::StripeObject
|
236
|
+
attr_reader :capture_method, :setup_future_usage
|
237
|
+
end
|
238
|
+
|
239
|
+
class Klarna < Stripe::StripeObject
|
240
|
+
attr_reader :setup_future_usage
|
241
|
+
end
|
242
|
+
|
243
|
+
class Konbini < Stripe::StripeObject
|
244
|
+
attr_reader :expires_after_days, :setup_future_usage
|
245
|
+
end
|
246
|
+
|
247
|
+
class KrCard < Stripe::StripeObject
|
248
|
+
attr_reader :capture_method, :setup_future_usage
|
249
|
+
end
|
250
|
+
|
251
|
+
class Link < Stripe::StripeObject
|
252
|
+
attr_reader :setup_future_usage
|
253
|
+
end
|
254
|
+
|
255
|
+
class Mobilepay < Stripe::StripeObject
|
256
|
+
attr_reader :setup_future_usage
|
257
|
+
end
|
258
|
+
|
259
|
+
class Multibanco < Stripe::StripeObject
|
260
|
+
attr_reader :setup_future_usage
|
261
|
+
end
|
262
|
+
|
263
|
+
class NaverPay < Stripe::StripeObject
|
264
|
+
attr_reader :capture_method
|
265
|
+
end
|
266
|
+
|
267
|
+
class Oxxo < Stripe::StripeObject
|
268
|
+
attr_reader :expires_after_days, :setup_future_usage
|
269
|
+
end
|
270
|
+
|
271
|
+
class P24 < Stripe::StripeObject
|
272
|
+
attr_reader :setup_future_usage
|
273
|
+
end
|
274
|
+
|
275
|
+
class Payco < Stripe::StripeObject
|
276
|
+
attr_reader :capture_method
|
277
|
+
end
|
278
|
+
|
279
|
+
class Paynow < Stripe::StripeObject
|
280
|
+
attr_reader :setup_future_usage
|
281
|
+
end
|
282
|
+
|
283
|
+
class Paypal < Stripe::StripeObject
|
284
|
+
attr_reader :capture_method, :preferred_locale, :reference, :setup_future_usage, :subsellers
|
285
|
+
end
|
286
|
+
|
287
|
+
class Payto < Stripe::StripeObject
|
288
|
+
class MandateOptions < Stripe::StripeObject
|
289
|
+
attr_reader :amount, :amount_type, :end_date, :payment_schedule, :payments_per_period, :purpose, :start_date
|
290
|
+
end
|
291
|
+
attr_reader :mandate_options, :setup_future_usage
|
292
|
+
end
|
293
|
+
|
294
|
+
class Pix < Stripe::StripeObject
|
295
|
+
attr_reader :expires_after_seconds
|
296
|
+
end
|
297
|
+
|
298
|
+
class RevolutPay < Stripe::StripeObject
|
299
|
+
attr_reader :setup_future_usage
|
300
|
+
end
|
301
|
+
|
302
|
+
class SamsungPay < Stripe::StripeObject
|
303
|
+
attr_reader :capture_method
|
304
|
+
end
|
305
|
+
|
306
|
+
class SepaDebit < Stripe::StripeObject
|
307
|
+
class MandateOptions < Stripe::StripeObject
|
308
|
+
attr_reader :reference_prefix
|
309
|
+
end
|
310
|
+
attr_reader :mandate_options, :setup_future_usage
|
311
|
+
end
|
312
|
+
|
313
|
+
class Sofort < Stripe::StripeObject
|
314
|
+
attr_reader :setup_future_usage
|
315
|
+
end
|
316
|
+
|
317
|
+
class Swish < Stripe::StripeObject
|
318
|
+
attr_reader :reference
|
319
|
+
end
|
320
|
+
|
321
|
+
class UsBankAccount < Stripe::StripeObject
|
322
|
+
class FinancialConnections < Stripe::StripeObject
|
323
|
+
class Filters < Stripe::StripeObject
|
324
|
+
attr_reader :account_subcategories, :institution
|
325
|
+
end
|
326
|
+
|
327
|
+
class ManualEntry < Stripe::StripeObject
|
328
|
+
attr_reader :mode
|
329
|
+
end
|
330
|
+
attr_reader :filters, :manual_entry, :permissions, :prefetch, :return_url
|
331
|
+
end
|
332
|
+
attr_reader :financial_connections, :setup_future_usage, :verification_method
|
333
|
+
end
|
334
|
+
attr_reader :acss_debit, :affirm, :afterpay_clearpay, :alipay, :amazon_pay, :au_becs_debit, :bacs_debit, :bancontact, :boleto, :card, :cashapp, :customer_balance, :eps, :fpx, :giropay, :grabpay, :ideal, :kakao_pay, :klarna, :konbini, :kr_card, :link, :mobilepay, :multibanco, :naver_pay, :oxxo, :p24, :payco, :paynow, :paypal, :payto, :pix, :revolut_pay, :samsung_pay, :sepa_debit, :sofort, :swish, :us_bank_account
|
335
|
+
end
|
336
|
+
|
337
|
+
class Permissions < Stripe::StripeObject
|
338
|
+
class Update < Stripe::StripeObject
|
339
|
+
attr_reader :line_items, :shipping_details
|
340
|
+
end
|
341
|
+
attr_reader :update
|
342
|
+
end
|
343
|
+
|
344
|
+
class PhoneNumberCollection < Stripe::StripeObject
|
345
|
+
attr_reader :enabled
|
346
|
+
end
|
347
|
+
|
348
|
+
class SavedPaymentMethodOptions < Stripe::StripeObject
|
349
|
+
attr_reader :allow_redisplay_filters, :payment_method_remove, :payment_method_save
|
350
|
+
end
|
351
|
+
|
352
|
+
class ShippingAddressCollection < Stripe::StripeObject
|
353
|
+
attr_reader :allowed_countries
|
354
|
+
end
|
355
|
+
|
356
|
+
class ShippingCost < Stripe::StripeObject
|
357
|
+
class Tax < Stripe::StripeObject
|
358
|
+
attr_reader :amount, :rate, :taxability_reason, :taxable_amount
|
359
|
+
end
|
360
|
+
attr_reader :amount_subtotal, :amount_tax, :amount_total, :shipping_rate, :taxes
|
361
|
+
end
|
362
|
+
|
363
|
+
class ShippingDetails < Stripe::StripeObject
|
364
|
+
class Address < Stripe::StripeObject
|
365
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
366
|
+
end
|
367
|
+
attr_reader :address, :carrier, :name, :phone, :tracking_number
|
368
|
+
end
|
369
|
+
|
370
|
+
class ShippingOption < Stripe::StripeObject
|
371
|
+
attr_reader :shipping_amount, :shipping_rate
|
372
|
+
end
|
373
|
+
|
374
|
+
class TaxIdCollection < Stripe::StripeObject
|
375
|
+
attr_reader :enabled, :required
|
376
|
+
end
|
377
|
+
|
378
|
+
class TotalDetails < Stripe::StripeObject
|
379
|
+
class Breakdown < Stripe::StripeObject
|
380
|
+
class Discount < Stripe::StripeObject
|
381
|
+
attr_reader :amount, :discount
|
382
|
+
end
|
383
|
+
|
384
|
+
class Tax < Stripe::StripeObject
|
385
|
+
attr_reader :amount, :rate, :taxability_reason, :taxable_amount
|
386
|
+
end
|
387
|
+
attr_reader :discounts, :taxes
|
388
|
+
end
|
389
|
+
attr_reader :amount_discount, :amount_shipping, :amount_tax, :breakdown
|
390
|
+
end
|
391
|
+
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
|
392
|
+
attr_reader :adaptive_pricing
|
393
|
+
# When set, provides configuration for actions to take if this Checkout Session expires.
|
394
|
+
attr_reader :after_expiration
|
395
|
+
# Enables user redeemable promotion codes.
|
396
|
+
attr_reader :allow_promotion_codes
|
397
|
+
# Total of all items before discounts or taxes are applied.
|
398
|
+
attr_reader :amount_subtotal
|
399
|
+
# Total of all items after discounts and taxes are applied.
|
400
|
+
attr_reader :amount_total
|
401
|
+
# Attribute for field automatic_tax
|
402
|
+
attr_reader :automatic_tax
|
403
|
+
# Describes whether Checkout should collect the customer's billing address. Defaults to `auto`.
|
404
|
+
attr_reader :billing_address_collection
|
405
|
+
# If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website.
|
406
|
+
attr_reader :cancel_url
|
407
|
+
# A unique string to reference the Checkout Session. This can be a
|
408
|
+
# customer ID, a cart ID, or similar, and can be used to reconcile the
|
409
|
+
# Session with your internal systems.
|
410
|
+
attr_reader :client_reference_id
|
411
|
+
# The client secret of the Session. Use this with [initCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
|
412
|
+
attr_reader :client_secret
|
413
|
+
# Information about the customer collected within the Checkout Session.
|
414
|
+
attr_reader :collected_information
|
415
|
+
# Results of `consent_collection` for this session.
|
416
|
+
attr_reader :consent
|
417
|
+
# When set, provides configuration for the Checkout Session to gather active consent from customers.
|
418
|
+
attr_reader :consent_collection
|
419
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
420
|
+
attr_reader :created
|
421
|
+
# 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).
|
422
|
+
attr_reader :currency
|
423
|
+
# Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions
|
424
|
+
attr_reader :currency_conversion
|
425
|
+
# Collect additional information from your customer using custom fields. Up to 3 fields are supported.
|
426
|
+
attr_reader :custom_fields
|
427
|
+
# Attribute for field custom_text
|
428
|
+
attr_reader :custom_text
|
429
|
+
# The ID of the customer for this Session.
|
430
|
+
# For Checkout Sessions in `subscription` mode or Checkout Sessions with `customer_creation` set as `always` in `payment` mode, Checkout
|
431
|
+
# will create a new customer object based on information provided
|
432
|
+
# during the payment flow unless an existing customer was provided when
|
433
|
+
# the Session was created.
|
434
|
+
attr_reader :customer
|
435
|
+
# Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
|
436
|
+
attr_reader :customer_creation
|
437
|
+
# The customer details including the customer's tax exempt status and the customer's tax IDs. Customer's address details are not present on Sessions in `setup` mode.
|
438
|
+
attr_reader :customer_details
|
439
|
+
# If provided, this value will be used when the Customer object is created.
|
440
|
+
# If not provided, customers will be asked to enter their email address.
|
441
|
+
# Use this parameter to prefill customer data if you already have an email
|
442
|
+
# on file. To access information about the customer once the payment flow is
|
443
|
+
# complete, use the `customer` attribute.
|
444
|
+
attr_reader :customer_email
|
445
|
+
# The timestamp at which the Checkout Session will expire.
|
446
|
+
attr_reader :expires_at
|
447
|
+
# Unique identifier for the object.
|
448
|
+
attr_reader :id
|
449
|
+
# ID of the invoice created by the Checkout Session, if it exists.
|
450
|
+
attr_reader :invoice
|
451
|
+
# Details on the state of invoice creation for the Checkout Session.
|
452
|
+
attr_reader :invoice_creation
|
453
|
+
# The line items purchased by the customer.
|
454
|
+
attr_reader :line_items
|
455
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
456
|
+
attr_reader :livemode
|
457
|
+
# The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
|
458
|
+
attr_reader :locale
|
459
|
+
# 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.
|
460
|
+
attr_reader :metadata
|
461
|
+
# The mode of the Checkout Session.
|
462
|
+
attr_reader :mode
|
463
|
+
# String representing the object's type. Objects of the same type share the same value.
|
464
|
+
attr_reader :object
|
465
|
+
# The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
466
|
+
attr_reader :payment_intent
|
467
|
+
# The ID of the Payment Link that created this Session.
|
468
|
+
attr_reader :payment_link
|
469
|
+
# Configure whether a Checkout Session should collect a payment method. Defaults to `always`.
|
470
|
+
attr_reader :payment_method_collection
|
471
|
+
# Information about the payment method configuration used for this Checkout session if using dynamic payment methods.
|
472
|
+
attr_reader :payment_method_configuration_details
|
473
|
+
# Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.
|
474
|
+
attr_reader :payment_method_options
|
475
|
+
# A list of the types of payment methods (e.g. card) this Checkout
|
476
|
+
# Session is allowed to accept.
|
477
|
+
attr_reader :payment_method_types
|
478
|
+
# The payment status of the Checkout Session, one of `paid`, `unpaid`, or `no_payment_required`.
|
479
|
+
# You can use this value to decide when to fulfill your customer's order.
|
480
|
+
attr_reader :payment_status
|
481
|
+
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
|
482
|
+
#
|
483
|
+
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
|
484
|
+
attr_reader :permissions
|
485
|
+
# Attribute for field phone_number_collection
|
486
|
+
attr_reader :phone_number_collection
|
487
|
+
# The ID of the original expired Checkout Session that triggered the recovery flow.
|
488
|
+
attr_reader :recovered_from
|
489
|
+
# This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
|
490
|
+
attr_reader :redirect_on_completion
|
491
|
+
# Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
492
|
+
attr_reader :return_url
|
493
|
+
# Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
|
494
|
+
attr_reader :saved_payment_method_options
|
495
|
+
# The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
496
|
+
attr_reader :setup_intent
|
497
|
+
# When set, provides configuration for Checkout to collect a shipping address from a customer.
|
498
|
+
attr_reader :shipping_address_collection
|
499
|
+
# The details of the customer cost of shipping, including the customer chosen ShippingRate.
|
500
|
+
attr_reader :shipping_cost
|
501
|
+
# Shipping information for this Checkout Session.
|
502
|
+
attr_reader :shipping_details
|
503
|
+
# The shipping rate options applied to this Session.
|
504
|
+
attr_reader :shipping_options
|
505
|
+
# The status of the Checkout Session, one of `open`, `complete`, or `expired`.
|
506
|
+
attr_reader :status
|
507
|
+
# Describes the type of transaction being performed by Checkout in order to customize
|
508
|
+
# relevant text on the page, such as the submit button. `submit_type` can only be
|
509
|
+
# specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
|
510
|
+
attr_reader :submit_type
|
511
|
+
# The ID of the subscription for Checkout Sessions in `subscription` mode.
|
512
|
+
attr_reader :subscription
|
513
|
+
# The URL the customer will be directed to after the payment or
|
514
|
+
# subscription creation is successful.
|
515
|
+
attr_reader :success_url
|
516
|
+
# Attribute for field tax_id_collection
|
517
|
+
attr_reader :tax_id_collection
|
518
|
+
# Tax and discount details for the computed total amount.
|
519
|
+
attr_reader :total_details
|
520
|
+
# The UI mode of the Session. Defaults to `hosted`.
|
521
|
+
attr_reader :ui_mode
|
522
|
+
# The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
|
523
|
+
# This value is only present when the session is active.
|
524
|
+
attr_reader :url
|
525
|
+
|
30
526
|
# Creates a Session object.
|
31
527
|
def self.create(params = {}, opts = {})
|
32
528
|
request_stripe_object(
|
@@ -15,6 +15,61 @@ module Stripe
|
|
15
15
|
"climate.order"
|
16
16
|
end
|
17
17
|
|
18
|
+
class Beneficiary < Stripe::StripeObject
|
19
|
+
attr_reader :public_name
|
20
|
+
end
|
21
|
+
|
22
|
+
class DeliveryDetail < Stripe::StripeObject
|
23
|
+
class Location < Stripe::StripeObject
|
24
|
+
attr_reader :city, :country, :latitude, :longitude, :region
|
25
|
+
end
|
26
|
+
attr_reader :delivered_at, :location, :metric_tons, :registry_url, :supplier
|
27
|
+
end
|
28
|
+
# Total amount of [Frontier](https://frontierclimate.com/)'s service fees in the currency's smallest unit.
|
29
|
+
attr_reader :amount_fees
|
30
|
+
# Total amount of the carbon removal in the currency's smallest unit.
|
31
|
+
attr_reader :amount_subtotal
|
32
|
+
# Total amount of the order including fees in the currency's smallest unit.
|
33
|
+
attr_reader :amount_total
|
34
|
+
# Attribute for field beneficiary
|
35
|
+
attr_reader :beneficiary
|
36
|
+
# Time at which the order was canceled. Measured in seconds since the Unix epoch.
|
37
|
+
attr_reader :canceled_at
|
38
|
+
# Reason for the cancellation of this order.
|
39
|
+
attr_reader :cancellation_reason
|
40
|
+
# For delivered orders, a URL to a delivery certificate for the order.
|
41
|
+
attr_reader :certificate
|
42
|
+
# Time at which the order was confirmed. Measured in seconds since the Unix epoch.
|
43
|
+
attr_reader :confirmed_at
|
44
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
45
|
+
attr_reader :created
|
46
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase, representing the currency for this order.
|
47
|
+
attr_reader :currency
|
48
|
+
# Time at which the order's expected_delivery_year was delayed. Measured in seconds since the Unix epoch.
|
49
|
+
attr_reader :delayed_at
|
50
|
+
# Time at which the order was delivered. Measured in seconds since the Unix epoch.
|
51
|
+
attr_reader :delivered_at
|
52
|
+
# Details about the delivery of carbon removal for this order.
|
53
|
+
attr_reader :delivery_details
|
54
|
+
# The year this order is expected to be delivered.
|
55
|
+
attr_reader :expected_delivery_year
|
56
|
+
# Unique identifier for the object.
|
57
|
+
attr_reader :id
|
58
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
59
|
+
attr_reader :livemode
|
60
|
+
# 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.
|
61
|
+
attr_reader :metadata
|
62
|
+
# Quantity of carbon removal that is included in this order.
|
63
|
+
attr_reader :metric_tons
|
64
|
+
# String representing the object's type. Objects of the same type share the same value.
|
65
|
+
attr_reader :object
|
66
|
+
# Unique ID for the Climate `Product` this order is purchasing.
|
67
|
+
attr_reader :product
|
68
|
+
# Time at which the order's product was substituted for a different product. Measured in seconds since the Unix epoch.
|
69
|
+
attr_reader :product_substituted_at
|
70
|
+
# The current status of this order.
|
71
|
+
attr_reader :status
|
72
|
+
|
18
73
|
# Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the
|
19
74
|
# reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier
|
20
75
|
# might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe
|
@@ -13,6 +13,30 @@ module Stripe
|
|
13
13
|
"climate.product"
|
14
14
|
end
|
15
15
|
|
16
|
+
class CurrentPricesPerMetricTon < Stripe::StripeObject
|
17
|
+
attr_reader :amount_fees, :amount_subtotal, :amount_total
|
18
|
+
end
|
19
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
20
|
+
attr_reader :created
|
21
|
+
# Current prices for a metric ton of carbon removal in a currency's smallest unit.
|
22
|
+
attr_reader :current_prices_per_metric_ton
|
23
|
+
# The year in which the carbon removal is expected to be delivered.
|
24
|
+
attr_reader :delivery_year
|
25
|
+
# Unique identifier for the object. For convenience, Climate product IDs are human-readable strings
|
26
|
+
# that start with `climsku_`. See [carbon removal inventory](https://stripe.com/docs/climate/orders/carbon-removal-inventory)
|
27
|
+
# for a list of available carbon removal products.
|
28
|
+
attr_reader :id
|
29
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
30
|
+
attr_reader :livemode
|
31
|
+
# The quantity of metric tons available for reservation.
|
32
|
+
attr_reader :metric_tons_available
|
33
|
+
# The Climate product's name.
|
34
|
+
attr_reader :name
|
35
|
+
# String representing the object's type. Objects of the same type share the same value.
|
36
|
+
attr_reader :object
|
37
|
+
# The carbon removal suppliers that fulfill orders for this Climate product.
|
38
|
+
attr_reader :suppliers
|
39
|
+
|
16
40
|
# Lists all available Climate product objects.
|
17
41
|
def self.list(filters = {}, opts = {})
|
18
42
|
request_stripe_object(
|
@@ -12,6 +12,24 @@ module Stripe
|
|
12
12
|
"climate.supplier"
|
13
13
|
end
|
14
14
|
|
15
|
+
class Location < Stripe::StripeObject
|
16
|
+
attr_reader :city, :country, :latitude, :longitude, :region
|
17
|
+
end
|
18
|
+
# Unique identifier for the object.
|
19
|
+
attr_reader :id
|
20
|
+
# Link to a webpage to learn more about the supplier.
|
21
|
+
attr_reader :info_url
|
22
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
23
|
+
attr_reader :livemode
|
24
|
+
# The locations in which this supplier operates.
|
25
|
+
attr_reader :locations
|
26
|
+
# Name of this carbon removal supplier.
|
27
|
+
attr_reader :name
|
28
|
+
# String representing the object’s type. Objects of the same type share the same value.
|
29
|
+
attr_reader :object
|
30
|
+
# The scientific pathway used for carbon removal.
|
31
|
+
attr_reader :removal_pathway
|
32
|
+
|
15
33
|
# Lists all available Climate supplier objects.
|
16
34
|
def self.list(filters = {}, opts = {})
|
17
35
|
request_stripe_object(
|