stripe 15.6.0.pre.alpha.1 → 15.6.0.pre.alpha.2
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.
- checksums.yaml +4 -4
- data/API_VERSION +1 -1
- data/CHANGELOG.md +6 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/account.rb +443 -0
- data/lib/stripe/resources/account_link.rb +8 -0
- data/lib/stripe/resources/account_notice.rb +24 -0
- data/lib/stripe/resources/account_session.rb +435 -10
- data/lib/stripe/resources/apple_pay_domain.rb +8 -0
- data/lib/stripe/resources/application.rb +8 -0
- data/lib/stripe/resources/application_fee.rb +16 -0
- data/lib/stripe/resources/application_fee_refund.rb +8 -0
- data/lib/stripe/resources/apps/secret.rb +16 -0
- data/lib/stripe/resources/balance.rb +159 -0
- data/lib/stripe/resources/balance_settings.rb +40 -0
- data/lib/stripe/resources/balance_transaction.rb +16 -0
- data/lib/stripe/resources/bank_account.rb +40 -0
- data/lib/stripe/resources/billing/alert.rb +75 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +8 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +80 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +107 -0
- data/lib/stripe/resources/billing/credit_grant.rb +72 -0
- data/lib/stripe/resources/billing/meter.rb +45 -0
- data/lib/stripe/resources/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage_row.rb +8 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +122 -0
- data/lib/stripe/resources/billing_portal/session.rb +101 -0
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/capital/financing_offer.rb +24 -0
- data/lib/stripe/resources/capital/financing_summary.rb +24 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +24 -0
- data/lib/stripe/resources/card.rb +16 -0
- data/lib/stripe/resources/cash_balance.rb +16 -0
- data/lib/stripe/resources/charge.rb +1052 -16
- data/lib/stripe/resources/checkout/session.rb +950 -0
- data/lib/stripe/resources/climate/order.rb +32 -0
- data/lib/stripe/resources/climate/product.rb +16 -0
- data/lib/stripe/resources/climate/supplier.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +960 -38
- data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
- data/lib/stripe/resources/country_spec.rb +32 -0
- data/lib/stripe/resources/coupon.rb +36 -0
- data/lib/stripe/resources/credit_note.rb +70 -0
- data/lib/stripe/resources/credit_note_line_item.rb +53 -0
- data/lib/stripe/resources/customer.rb +77 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -0
- data/lib/stripe/resources/customer_session.rb +52 -0
- data/lib/stripe/resources/discount.rb +8 -0
- data/lib/stripe/resources/dispute.rb +166 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
- data/lib/stripe/resources/entitlements/feature.rb +8 -0
- data/lib/stripe/resources/ephemeral_key.rb +8 -0
- data/lib/stripe/resources/event.rb +56 -0
- data/lib/stripe/resources/exchange_rate.rb +8 -0
- data/lib/stripe/resources/file.rb +8 -0
- data/lib/stripe/resources/file_link.rb +8 -0
- data/lib/stripe/resources/financial_connections/account.rb +79 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
- data/lib/stripe/resources/financial_connections/institution.rb +53 -0
- data/lib/stripe/resources/financial_connections/session.rb +63 -1
- data/lib/stripe/resources/financial_connections/transaction.rb +16 -0
- data/lib/stripe/resources/forwarding/request.rb +52 -0
- data/lib/stripe/resources/funding_instructions.rb +193 -0
- data/lib/stripe/resources/fx_quote.rb +48 -0
- data/lib/stripe/resources/identity/verification_report.rb +166 -1
- data/lib/stripe/resources/identity/verification_session.rb +126 -1
- data/lib/stripe/resources/invoice.rb +441 -3
- data/lib/stripe/resources/invoice_item.rb +88 -0
- data/lib/stripe/resources/invoice_line_item.rb +186 -0
- data/lib/stripe/resources/invoice_payment.rb +24 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +8 -0
- data/lib/stripe/resources/issuing/authorization.rb +177 -0
- data/lib/stripe/resources/issuing/card.rb +96 -0
- data/lib/stripe/resources/issuing/cardholder.rb +110 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +82 -0
- data/lib/stripe/resources/issuing/dispute.rb +97 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +16 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +8 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +36 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +16 -0
- data/lib/stripe/resources/issuing/settlement.rb +8 -0
- data/lib/stripe/resources/issuing/token.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +151 -0
- data/lib/stripe/resources/line_item.rb +54 -0
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +242 -11
- data/lib/stripe/resources/margin.rb +8 -0
- data/lib/stripe/resources/order.rb +348 -0
- data/lib/stripe/resources/payment_attempt_record.rb +890 -11
- data/lib/stripe/resources/payment_intent.rb +1405 -3
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +56 -0
- data/lib/stripe/resources/payment_link.rb +337 -0
- data/lib/stripe/resources/payment_method.rb +884 -38
- data/lib/stripe/resources/payment_method_configuration.rb +961 -0
- data/lib/stripe/resources/payment_method_domain.rb +111 -0
- data/lib/stripe/resources/payment_record.rb +890 -11
- data/lib/stripe/resources/payout.rb +16 -0
- data/lib/stripe/resources/person.rb +180 -0
- data/lib/stripe/resources/plan.rb +24 -0
- data/lib/stripe/resources/price.rb +79 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +16 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +16 -0
- data/lib/stripe/resources/product.rb +27 -0
- data/lib/stripe/resources/product_feature.rb +8 -0
- data/lib/stripe/resources/promotion_code.rb +24 -0
- data/lib/stripe/resources/quote.rb +432 -0
- data/lib/stripe/resources/quote_line.rb +247 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +450 -3
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +323 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -0
- data/lib/stripe/resources/radar/value_list.rb +8 -0
- data/lib/stripe/resources/radar/value_list_item.rb +8 -0
- data/lib/stripe/resources/refund.rb +380 -19
- data/lib/stripe/resources/reporting/report_run.rb +16 -0
- data/lib/stripe/resources/reporting/report_type.rb +8 -0
- data/lib/stripe/resources/reserve_transaction.rb +8 -0
- data/lib/stripe/resources/reversal.rb +8 -0
- data/lib/stripe/resources/review.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +331 -20
- data/lib/stripe/resources/setup_intent.rb +293 -2
- data/lib/stripe/resources/shipping_rate.rb +48 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
- data/lib/stripe/resources/source.rb +274 -0
- data/lib/stripe/resources/source_mandate_notification.rb +32 -0
- data/lib/stripe/resources/source_transaction.rb +54 -0
- data/lib/stripe/resources/subscription.rb +318 -3
- data/lib/stripe/resources/subscription_item.rb +24 -0
- data/lib/stripe/resources/subscription_schedule.rb +314 -0
- data/lib/stripe/resources/tax/association.rb +32 -0
- data/lib/stripe/resources/tax/calculation.rb +109 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
- data/lib/stripe/resources/tax/form.rb +107 -0
- data/lib/stripe/resources/tax/registration.rb +1232 -0
- data/lib/stripe/resources/tax/settings.rb +61 -1
- data/lib/stripe/resources/tax/transaction.rb +93 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
- data/lib/stripe/resources/tax_code.rb +8 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
- data/lib/stripe/resources/tax_id.rb +24 -0
- data/lib/stripe/resources/tax_rate.rb +16 -0
- data/lib/stripe/resources/terminal/configuration.rb +299 -0
- data/lib/stripe/resources/terminal/connection_token.rb +8 -0
- data/lib/stripe/resources/terminal/location.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +24 -0
- data/lib/stripe/resources/terminal/reader.rb +241 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +24 -0
- data/lib/stripe/resources/token.rb +8 -0
- data/lib/stripe/resources/topup.rb +8 -0
- data/lib/stripe/resources/transfer.rb +8 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +16 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +24 -0
- data/lib/stripe/resources/treasury/financial_account.rb +61 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +192 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +69 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +106 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +114 -0
- data/lib/stripe/resources/treasury/received_credit.rb +97 -0
- data/lib/stripe/resources/treasury/received_debit.rb +89 -0
- data/lib/stripe/resources/treasury/transaction.rb +36 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +24 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +40 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +40 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +141 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +150 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +150 -2
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +8 -0
- data/lib/stripe/resources/v2/billing/intent.rb +27 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +195 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +24 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +8 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +24 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +27 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +8 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +36 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +27 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +8 -0
- data/lib/stripe/resources/v2/billing/profile.rb +8 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +8 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +36 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +27 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +8 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +115 -0
- data/lib/stripe/resources/v2/core/account.rb +1900 -0
- data/lib/stripe/resources/v2/core/account_link.rb +51 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +24 -0
- data/lib/stripe/resources/v2/core/person.rb +201 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +40 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +8 -0
- data/lib/stripe/resources/v2/event.rb +24 -0
- data/lib/stripe/resources/v2/event_destination.rb +44 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +8 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +8 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +61 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +32 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +90 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +88 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +62 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +24 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +79 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +32 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +32 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +77 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +52 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +36 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +35 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +24 -0
- data/lib/stripe/resources/v2/reporting/report.rb +52 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +69 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +8 -0
- data/lib/stripe/resources/webhook_endpoint.rb +8 -0
- data/lib/stripe/stripe_object.rb +25 -1
- data/lib/stripe/util.rb +9 -5
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +280174 -0
- metadata +3 -2
@@ -22,6 +22,14 @@ module Stripe
|
|
22
22
|
attr_reader :atm_fee
|
23
23
|
# The amount of cash requested by the cardholder.
|
24
24
|
attr_reader :cashback_amount
|
25
|
+
|
26
|
+
def self.inner_class_types
|
27
|
+
@inner_class_types = {}
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.field_remappings
|
31
|
+
@field_remappings = {}
|
32
|
+
end
|
25
33
|
end
|
26
34
|
|
27
35
|
class MerchantData < Stripe::StripeObject
|
@@ -47,6 +55,14 @@ module Stripe
|
|
47
55
|
attr_reader :terminal_id
|
48
56
|
# URL provided by the merchant on a 3DS request
|
49
57
|
attr_reader :url
|
58
|
+
|
59
|
+
def self.inner_class_types
|
60
|
+
@inner_class_types = {}
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.field_remappings
|
64
|
+
@field_remappings = {}
|
65
|
+
end
|
50
66
|
end
|
51
67
|
|
52
68
|
class NetworkData < Stripe::StripeObject
|
@@ -56,6 +72,14 @@ module Stripe
|
|
56
72
|
attr_reader :processing_date
|
57
73
|
# Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions.
|
58
74
|
attr_reader :transaction_id
|
75
|
+
|
76
|
+
def self.inner_class_types
|
77
|
+
@inner_class_types = {}
|
78
|
+
end
|
79
|
+
|
80
|
+
def self.field_remappings
|
81
|
+
@field_remappings = {}
|
82
|
+
end
|
59
83
|
end
|
60
84
|
|
61
85
|
class PurchaseDetails < Stripe::StripeObject
|
@@ -71,17 +95,41 @@ module Stripe
|
|
71
95
|
attr_reader :user_id
|
72
96
|
# Vehicle number.
|
73
97
|
attr_reader :vehicle_number
|
98
|
+
|
99
|
+
def self.inner_class_types
|
100
|
+
@inner_class_types = {}
|
101
|
+
end
|
102
|
+
|
103
|
+
def self.field_remappings
|
104
|
+
@field_remappings = {}
|
105
|
+
end
|
74
106
|
end
|
75
107
|
|
76
108
|
class ReportedBreakdown < Stripe::StripeObject
|
77
109
|
class Fuel < Stripe::StripeObject
|
78
110
|
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
79
111
|
attr_reader :gross_amount_decimal
|
112
|
+
|
113
|
+
def self.inner_class_types
|
114
|
+
@inner_class_types = {}
|
115
|
+
end
|
116
|
+
|
117
|
+
def self.field_remappings
|
118
|
+
@field_remappings = {}
|
119
|
+
end
|
80
120
|
end
|
81
121
|
|
82
122
|
class NonFuel < Stripe::StripeObject
|
83
123
|
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
84
124
|
attr_reader :gross_amount_decimal
|
125
|
+
|
126
|
+
def self.inner_class_types
|
127
|
+
@inner_class_types = {}
|
128
|
+
end
|
129
|
+
|
130
|
+
def self.field_remappings
|
131
|
+
@field_remappings = {}
|
132
|
+
end
|
85
133
|
end
|
86
134
|
|
87
135
|
class Tax < Stripe::StripeObject
|
@@ -89,6 +137,14 @@ module Stripe
|
|
89
137
|
attr_reader :local_amount_decimal
|
90
138
|
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
91
139
|
attr_reader :national_amount_decimal
|
140
|
+
|
141
|
+
def self.inner_class_types
|
142
|
+
@inner_class_types = {}
|
143
|
+
end
|
144
|
+
|
145
|
+
def self.field_remappings
|
146
|
+
@field_remappings = {}
|
147
|
+
end
|
92
148
|
end
|
93
149
|
# Breakdown of fuel portion of the purchase.
|
94
150
|
attr_reader :fuel
|
@@ -96,6 +152,14 @@ module Stripe
|
|
96
152
|
attr_reader :non_fuel
|
97
153
|
# Information about tax included in this transaction.
|
98
154
|
attr_reader :tax
|
155
|
+
|
156
|
+
def self.inner_class_types
|
157
|
+
@inner_class_types = { fuel: Fuel, non_fuel: NonFuel, tax: Tax }
|
158
|
+
end
|
159
|
+
|
160
|
+
def self.field_remappings
|
161
|
+
@field_remappings = {}
|
162
|
+
end
|
99
163
|
end
|
100
164
|
# Answers to prompts presented to cardholder at point of sale.
|
101
165
|
attr_reader :cardholder_prompt_data
|
@@ -105,6 +169,17 @@ module Stripe
|
|
105
169
|
attr_reader :reported_breakdown
|
106
170
|
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
107
171
|
attr_reader :service_type
|
172
|
+
|
173
|
+
def self.inner_class_types
|
174
|
+
@inner_class_types = {
|
175
|
+
cardholder_prompt_data: CardholderPromptData,
|
176
|
+
reported_breakdown: ReportedBreakdown,
|
177
|
+
}
|
178
|
+
end
|
179
|
+
|
180
|
+
def self.field_remappings
|
181
|
+
@field_remappings = {}
|
182
|
+
end
|
108
183
|
end
|
109
184
|
|
110
185
|
class Flight < Stripe::StripeObject
|
@@ -121,6 +196,14 @@ module Stripe
|
|
121
196
|
attr_reader :service_class
|
122
197
|
# Whether a stopover is allowed on this flight.
|
123
198
|
attr_reader :stopover_allowed
|
199
|
+
|
200
|
+
def self.inner_class_types
|
201
|
+
@inner_class_types = {}
|
202
|
+
end
|
203
|
+
|
204
|
+
def self.field_remappings
|
205
|
+
@field_remappings = {}
|
206
|
+
end
|
124
207
|
end
|
125
208
|
# The time that the flight departed.
|
126
209
|
attr_reader :departure_at
|
@@ -132,6 +215,14 @@ module Stripe
|
|
132
215
|
attr_reader :segments
|
133
216
|
# The travel agency that issued the ticket.
|
134
217
|
attr_reader :travel_agency
|
218
|
+
|
219
|
+
def self.inner_class_types
|
220
|
+
@inner_class_types = { segments: Segment }
|
221
|
+
end
|
222
|
+
|
223
|
+
def self.field_remappings
|
224
|
+
@field_remappings = {}
|
225
|
+
end
|
135
226
|
end
|
136
227
|
|
137
228
|
class Fuel < Stripe::StripeObject
|
@@ -145,6 +236,14 @@ module Stripe
|
|
145
236
|
attr_reader :unit
|
146
237
|
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
147
238
|
attr_reader :unit_cost_decimal
|
239
|
+
|
240
|
+
def self.inner_class_types
|
241
|
+
@inner_class_types = {}
|
242
|
+
end
|
243
|
+
|
244
|
+
def self.field_remappings
|
245
|
+
@field_remappings = {}
|
246
|
+
end
|
148
247
|
end
|
149
248
|
|
150
249
|
class Lodging < Stripe::StripeObject
|
@@ -152,6 +251,14 @@ module Stripe
|
|
152
251
|
attr_reader :check_in_at
|
153
252
|
# The number of nights stayed at the lodging.
|
154
253
|
attr_reader :nights
|
254
|
+
|
255
|
+
def self.inner_class_types
|
256
|
+
@inner_class_types = {}
|
257
|
+
end
|
258
|
+
|
259
|
+
def self.field_remappings
|
260
|
+
@field_remappings = {}
|
261
|
+
end
|
155
262
|
end
|
156
263
|
|
157
264
|
class Receipt < Stripe::StripeObject
|
@@ -163,6 +270,14 @@ module Stripe
|
|
163
270
|
attr_reader :total
|
164
271
|
# The unit cost of the item in cents.
|
165
272
|
attr_reader :unit_cost
|
273
|
+
|
274
|
+
def self.inner_class_types
|
275
|
+
@inner_class_types = {}
|
276
|
+
end
|
277
|
+
|
278
|
+
def self.field_remappings
|
279
|
+
@field_remappings = {}
|
280
|
+
end
|
166
281
|
end
|
167
282
|
# Fleet-specific information for transactions using Fleet cards.
|
168
283
|
attr_reader :fleet
|
@@ -176,6 +291,20 @@ module Stripe
|
|
176
291
|
attr_reader :receipt
|
177
292
|
# A merchant-specific order number.
|
178
293
|
attr_reader :reference
|
294
|
+
|
295
|
+
def self.inner_class_types
|
296
|
+
@inner_class_types = {
|
297
|
+
fleet: Fleet,
|
298
|
+
flight: Flight,
|
299
|
+
fuel: Fuel,
|
300
|
+
lodging: Lodging,
|
301
|
+
receipt: Receipt,
|
302
|
+
}
|
303
|
+
end
|
304
|
+
|
305
|
+
def self.field_remappings
|
306
|
+
@field_remappings = {}
|
307
|
+
end
|
179
308
|
end
|
180
309
|
|
181
310
|
class Treasury < Stripe::StripeObject
|
@@ -183,6 +312,14 @@ module Stripe
|
|
183
312
|
attr_reader :received_credit
|
184
313
|
# The Treasury [ReceivedDebit](https://stripe.com/docs/api/treasury/received_debits) representing this Issuing transaction if it is a capture
|
185
314
|
attr_reader :received_debit
|
315
|
+
|
316
|
+
def self.inner_class_types
|
317
|
+
@inner_class_types = {}
|
318
|
+
end
|
319
|
+
|
320
|
+
def self.field_remappings
|
321
|
+
@field_remappings = {}
|
322
|
+
end
|
186
323
|
end
|
187
324
|
|
188
325
|
class ListParams < Stripe::RequestParams
|
@@ -1005,6 +1142,20 @@ module Stripe
|
|
1005
1142
|
)
|
1006
1143
|
end
|
1007
1144
|
end
|
1145
|
+
|
1146
|
+
def self.inner_class_types
|
1147
|
+
@inner_class_types = {
|
1148
|
+
amount_details: AmountDetails,
|
1149
|
+
merchant_data: MerchantData,
|
1150
|
+
network_data: NetworkData,
|
1151
|
+
purchase_details: PurchaseDetails,
|
1152
|
+
treasury: Treasury,
|
1153
|
+
}
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
def self.field_remappings
|
1157
|
+
@field_remappings = {}
|
1158
|
+
end
|
1008
1159
|
end
|
1009
1160
|
end
|
1010
1161
|
end
|
@@ -16,6 +16,14 @@ module Stripe
|
|
16
16
|
attr_reader :maximum
|
17
17
|
# Attribute for field minimum
|
18
18
|
attr_reader :minimum
|
19
|
+
|
20
|
+
def self.inner_class_types
|
21
|
+
@inner_class_types = {}
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.field_remappings
|
25
|
+
@field_remappings = {}
|
26
|
+
end
|
19
27
|
end
|
20
28
|
|
21
29
|
class Discount < Stripe::StripeObject
|
@@ -26,6 +34,14 @@ module Stripe
|
|
26
34
|
#
|
27
35
|
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
28
36
|
attr_reader :discount
|
37
|
+
|
38
|
+
def self.inner_class_types
|
39
|
+
@inner_class_types = {}
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.field_remappings
|
43
|
+
@field_remappings = {}
|
44
|
+
end
|
29
45
|
end
|
30
46
|
|
31
47
|
class Display < Stripe::StripeObject
|
@@ -35,6 +51,14 @@ module Stripe
|
|
35
51
|
attr_reader :images
|
36
52
|
# Attribute for field name
|
37
53
|
attr_reader :name
|
54
|
+
|
55
|
+
def self.inner_class_types
|
56
|
+
@inner_class_types = {}
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.field_remappings
|
60
|
+
@field_remappings = {}
|
61
|
+
end
|
38
62
|
end
|
39
63
|
|
40
64
|
class TaxCalculationReference < Stripe::StripeObject
|
@@ -42,6 +66,14 @@ module Stripe
|
|
42
66
|
attr_reader :calculation_id
|
43
67
|
# The calculation identifier for tax calculation response line item.
|
44
68
|
attr_reader :calculation_item_id
|
69
|
+
|
70
|
+
def self.inner_class_types
|
71
|
+
@inner_class_types = {}
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.field_remappings
|
75
|
+
@field_remappings = {}
|
76
|
+
end
|
45
77
|
end
|
46
78
|
|
47
79
|
class Tax < Stripe::StripeObject
|
@@ -55,6 +87,14 @@ module Stripe
|
|
55
87
|
attr_reader :taxability_reason
|
56
88
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
57
89
|
attr_reader :taxable_amount
|
90
|
+
|
91
|
+
def self.inner_class_types
|
92
|
+
@inner_class_types = {}
|
93
|
+
end
|
94
|
+
|
95
|
+
def self.field_remappings
|
96
|
+
@field_remappings = {}
|
97
|
+
end
|
58
98
|
end
|
59
99
|
# Attribute for field adjustable_quantity
|
60
100
|
attr_reader :adjustable_quantity
|
@@ -92,5 +132,19 @@ module Stripe
|
|
92
132
|
attr_reader :tax_calculation_reference
|
93
133
|
# The taxes applied to the line item.
|
94
134
|
attr_reader :taxes
|
135
|
+
|
136
|
+
def self.inner_class_types
|
137
|
+
@inner_class_types = {
|
138
|
+
adjustable_quantity: AdjustableQuantity,
|
139
|
+
discounts: Discount,
|
140
|
+
display: Display,
|
141
|
+
tax_calculation_reference: TaxCalculationReference,
|
142
|
+
taxes: Tax,
|
143
|
+
}
|
144
|
+
end
|
145
|
+
|
146
|
+
def self.field_remappings
|
147
|
+
@field_remappings = {}
|
148
|
+
end
|
95
149
|
end
|
96
150
|
end
|
@@ -23,5 +23,13 @@ module Stripe
|
|
23
23
|
"only be created using `Account.create_login_link('account_id', " \
|
24
24
|
"create_params)`"
|
25
25
|
end
|
26
|
+
|
27
|
+
def self.inner_class_types
|
28
|
+
@inner_class_types = {}
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.field_remappings
|
32
|
+
@field_remappings = {}
|
33
|
+
end
|
26
34
|
end
|
27
35
|
end
|
@@ -12,13 +12,29 @@ module Stripe
|
|
12
12
|
end
|
13
13
|
|
14
14
|
class CustomerAcceptance < Stripe::StripeObject
|
15
|
-
class Offline < Stripe::StripeObject
|
15
|
+
class Offline < Stripe::StripeObject
|
16
|
+
def self.inner_class_types
|
17
|
+
@inner_class_types = {}
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.field_remappings
|
21
|
+
@field_remappings = {}
|
22
|
+
end
|
23
|
+
end
|
16
24
|
|
17
25
|
class Online < Stripe::StripeObject
|
18
26
|
# The customer accepts the mandate from this IP address.
|
19
27
|
attr_reader :ip_address
|
20
28
|
# The customer accepts the mandate using the user agent of the browser.
|
21
29
|
attr_reader :user_agent
|
30
|
+
|
31
|
+
def self.inner_class_types
|
32
|
+
@inner_class_types = {}
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.field_remappings
|
36
|
+
@field_remappings = {}
|
37
|
+
end
|
22
38
|
end
|
23
39
|
# The time that the customer accepts the mandate.
|
24
40
|
attr_reader :accepted_at
|
@@ -28,6 +44,14 @@ module Stripe
|
|
28
44
|
attr_reader :online
|
29
45
|
# The mandate includes the type of customer acceptance information, such as: `online` or `offline`.
|
30
46
|
attr_reader :type
|
47
|
+
|
48
|
+
def self.inner_class_types
|
49
|
+
@inner_class_types = { offline: Offline, online: Online }
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.field_remappings
|
53
|
+
@field_remappings = {}
|
54
|
+
end
|
31
55
|
end
|
32
56
|
|
33
57
|
class MultiUse < Stripe::StripeObject
|
@@ -35,6 +59,14 @@ module Stripe
|
|
35
59
|
attr_reader :amount
|
36
60
|
# The currency of the payment on a multi use mandate.
|
37
61
|
attr_reader :currency
|
62
|
+
|
63
|
+
def self.inner_class_types
|
64
|
+
@inner_class_types = {}
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.field_remappings
|
68
|
+
@field_remappings = {}
|
69
|
+
end
|
38
70
|
end
|
39
71
|
|
40
72
|
class PaymentMethodDetails < Stripe::StripeObject
|
@@ -47,13 +79,37 @@ module Stripe
|
|
47
79
|
attr_reader :payment_schedule
|
48
80
|
# Transaction type of the mandate.
|
49
81
|
attr_reader :transaction_type
|
82
|
+
|
83
|
+
def self.inner_class_types
|
84
|
+
@inner_class_types = {}
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.field_remappings
|
88
|
+
@field_remappings = {}
|
89
|
+
end
|
50
90
|
end
|
51
91
|
|
52
|
-
class AmazonPay < Stripe::StripeObject
|
92
|
+
class AmazonPay < Stripe::StripeObject
|
93
|
+
def self.inner_class_types
|
94
|
+
@inner_class_types = {}
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.field_remappings
|
98
|
+
@field_remappings = {}
|
99
|
+
end
|
100
|
+
end
|
53
101
|
|
54
102
|
class AuBecsDebit < Stripe::StripeObject
|
55
103
|
# The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively.
|
56
104
|
attr_reader :url
|
105
|
+
|
106
|
+
def self.inner_class_types
|
107
|
+
@inner_class_types = {}
|
108
|
+
end
|
109
|
+
|
110
|
+
def self.field_remappings
|
111
|
+
@field_remappings = {}
|
112
|
+
end
|
57
113
|
end
|
58
114
|
|
59
115
|
class BacsDebit < Stripe::StripeObject
|
@@ -65,16 +121,95 @@ module Stripe
|
|
65
121
|
attr_reader :revocation_reason
|
66
122
|
# The URL that will contain the mandate that the customer has signed.
|
67
123
|
attr_reader :url
|
124
|
+
|
125
|
+
def self.inner_class_types
|
126
|
+
@inner_class_types = {}
|
127
|
+
end
|
128
|
+
|
129
|
+
def self.field_remappings
|
130
|
+
@field_remappings = {}
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
class Card < Stripe::StripeObject
|
135
|
+
def self.inner_class_types
|
136
|
+
@inner_class_types = {}
|
137
|
+
end
|
138
|
+
|
139
|
+
def self.field_remappings
|
140
|
+
@field_remappings = {}
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
class Cashapp < Stripe::StripeObject
|
145
|
+
def self.inner_class_types
|
146
|
+
@inner_class_types = {}
|
147
|
+
end
|
148
|
+
|
149
|
+
def self.field_remappings
|
150
|
+
@field_remappings = {}
|
151
|
+
end
|
68
152
|
end
|
69
153
|
|
70
|
-
class
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
154
|
+
class KakaoPay < Stripe::StripeObject
|
155
|
+
def self.inner_class_types
|
156
|
+
@inner_class_types = {}
|
157
|
+
end
|
158
|
+
|
159
|
+
def self.field_remappings
|
160
|
+
@field_remappings = {}
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
class Klarna < Stripe::StripeObject
|
165
|
+
def self.inner_class_types
|
166
|
+
@inner_class_types = {}
|
167
|
+
end
|
168
|
+
|
169
|
+
def self.field_remappings
|
170
|
+
@field_remappings = {}
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
class KrCard < Stripe::StripeObject
|
175
|
+
def self.inner_class_types
|
176
|
+
@inner_class_types = {}
|
177
|
+
end
|
178
|
+
|
179
|
+
def self.field_remappings
|
180
|
+
@field_remappings = {}
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
class Link < Stripe::StripeObject
|
185
|
+
def self.inner_class_types
|
186
|
+
@inner_class_types = {}
|
187
|
+
end
|
188
|
+
|
189
|
+
def self.field_remappings
|
190
|
+
@field_remappings = {}
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
class NaverPay < Stripe::StripeObject
|
195
|
+
def self.inner_class_types
|
196
|
+
@inner_class_types = {}
|
197
|
+
end
|
198
|
+
|
199
|
+
def self.field_remappings
|
200
|
+
@field_remappings = {}
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
class NzBankAccount < Stripe::StripeObject
|
205
|
+
def self.inner_class_types
|
206
|
+
@inner_class_types = {}
|
207
|
+
end
|
208
|
+
|
209
|
+
def self.field_remappings
|
210
|
+
@field_remappings = {}
|
211
|
+
end
|
212
|
+
end
|
78
213
|
|
79
214
|
class Paypal < Stripe::StripeObject
|
80
215
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
@@ -86,6 +221,14 @@ module Stripe
|
|
86
221
|
# Owner's verified email. Values are verified or provided by PayPal directly
|
87
222
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
88
223
|
attr_reader :verified_email
|
224
|
+
|
225
|
+
def self.inner_class_types
|
226
|
+
@inner_class_types = {}
|
227
|
+
end
|
228
|
+
|
229
|
+
def self.field_remappings
|
230
|
+
@field_remappings = {}
|
231
|
+
end
|
89
232
|
end
|
90
233
|
|
91
234
|
class Payto < Stripe::StripeObject
|
@@ -103,6 +246,14 @@ module Stripe
|
|
103
246
|
attr_reader :purpose
|
104
247
|
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
105
248
|
attr_reader :start_date
|
249
|
+
|
250
|
+
def self.inner_class_types
|
251
|
+
@inner_class_types = {}
|
252
|
+
end
|
253
|
+
|
254
|
+
def self.field_remappings
|
255
|
+
@field_remappings = {}
|
256
|
+
end
|
106
257
|
end
|
107
258
|
|
108
259
|
class Pix < Stripe::StripeObject
|
@@ -118,20 +269,52 @@ module Stripe
|
|
118
269
|
attr_reader :reference
|
119
270
|
# Start date of the mandate, in `YYYY-MM-DD`.
|
120
271
|
attr_reader :start_date
|
272
|
+
|
273
|
+
def self.inner_class_types
|
274
|
+
@inner_class_types = {}
|
275
|
+
end
|
276
|
+
|
277
|
+
def self.field_remappings
|
278
|
+
@field_remappings = {}
|
279
|
+
end
|
121
280
|
end
|
122
281
|
|
123
|
-
class RevolutPay < Stripe::StripeObject
|
282
|
+
class RevolutPay < Stripe::StripeObject
|
283
|
+
def self.inner_class_types
|
284
|
+
@inner_class_types = {}
|
285
|
+
end
|
286
|
+
|
287
|
+
def self.field_remappings
|
288
|
+
@field_remappings = {}
|
289
|
+
end
|
290
|
+
end
|
124
291
|
|
125
292
|
class SepaDebit < Stripe::StripeObject
|
126
293
|
# The unique reference of the mandate.
|
127
294
|
attr_reader :reference
|
128
295
|
# The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively.
|
129
296
|
attr_reader :url
|
297
|
+
|
298
|
+
def self.inner_class_types
|
299
|
+
@inner_class_types = {}
|
300
|
+
end
|
301
|
+
|
302
|
+
def self.field_remappings
|
303
|
+
@field_remappings = {}
|
304
|
+
end
|
130
305
|
end
|
131
306
|
|
132
307
|
class UsBankAccount < Stripe::StripeObject
|
133
308
|
# Mandate collection method
|
134
309
|
attr_reader :collection_method
|
310
|
+
|
311
|
+
def self.inner_class_types
|
312
|
+
@inner_class_types = {}
|
313
|
+
end
|
314
|
+
|
315
|
+
def self.field_remappings
|
316
|
+
@field_remappings = {}
|
317
|
+
end
|
135
318
|
end
|
136
319
|
# Attribute for field acss_debit
|
137
320
|
attr_reader :acss_debit
|
@@ -171,6 +354,33 @@ module Stripe
|
|
171
354
|
attr_reader :type
|
172
355
|
# Attribute for field us_bank_account
|
173
356
|
attr_reader :us_bank_account
|
357
|
+
|
358
|
+
def self.inner_class_types
|
359
|
+
@inner_class_types = {
|
360
|
+
acss_debit: AcssDebit,
|
361
|
+
amazon_pay: AmazonPay,
|
362
|
+
au_becs_debit: AuBecsDebit,
|
363
|
+
bacs_debit: BacsDebit,
|
364
|
+
card: Card,
|
365
|
+
cashapp: Cashapp,
|
366
|
+
kakao_pay: KakaoPay,
|
367
|
+
klarna: Klarna,
|
368
|
+
kr_card: KrCard,
|
369
|
+
link: Link,
|
370
|
+
naver_pay: NaverPay,
|
371
|
+
nz_bank_account: NzBankAccount,
|
372
|
+
paypal: Paypal,
|
373
|
+
payto: Payto,
|
374
|
+
pix: Pix,
|
375
|
+
revolut_pay: RevolutPay,
|
376
|
+
sepa_debit: SepaDebit,
|
377
|
+
us_bank_account: UsBankAccount,
|
378
|
+
}
|
379
|
+
end
|
380
|
+
|
381
|
+
def self.field_remappings
|
382
|
+
@field_remappings = {}
|
383
|
+
end
|
174
384
|
end
|
175
385
|
|
176
386
|
class SingleUse < Stripe::StripeObject
|
@@ -178,6 +388,14 @@ module Stripe
|
|
178
388
|
attr_reader :amount
|
179
389
|
# The currency of the payment on a single use mandate.
|
180
390
|
attr_reader :currency
|
391
|
+
|
392
|
+
def self.inner_class_types
|
393
|
+
@inner_class_types = {}
|
394
|
+
end
|
395
|
+
|
396
|
+
def self.field_remappings
|
397
|
+
@field_remappings = {}
|
398
|
+
end
|
181
399
|
end
|
182
400
|
|
183
401
|
class ListParams < Stripe::RequestParams
|
@@ -241,5 +459,18 @@ module Stripe
|
|
241
459
|
def self.list(params = {}, opts = {})
|
242
460
|
request_stripe_object(method: :get, path: "/v1/mandates", params: params, opts: opts)
|
243
461
|
end
|
462
|
+
|
463
|
+
def self.inner_class_types
|
464
|
+
@inner_class_types = {
|
465
|
+
customer_acceptance: CustomerAcceptance,
|
466
|
+
multi_use: MultiUse,
|
467
|
+
payment_method_details: PaymentMethodDetails,
|
468
|
+
single_use: SingleUse,
|
469
|
+
}
|
470
|
+
end
|
471
|
+
|
472
|
+
def self.field_remappings
|
473
|
+
@field_remappings = {}
|
474
|
+
end
|
244
475
|
end
|
245
476
|
end
|