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
@@ -23,6 +23,14 @@ module Stripe
|
|
23
23
|
attr_reader :atm_fee
|
24
24
|
# The amount of cash requested by the cardholder.
|
25
25
|
attr_reader :cashback_amount
|
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
|
|
28
36
|
class Fleet < Stripe::StripeObject
|
@@ -39,17 +47,41 @@ module Stripe
|
|
39
47
|
attr_reader :user_id
|
40
48
|
# Vehicle number.
|
41
49
|
attr_reader :vehicle_number
|
50
|
+
|
51
|
+
def self.inner_class_types
|
52
|
+
@inner_class_types = {}
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.field_remappings
|
56
|
+
@field_remappings = {}
|
57
|
+
end
|
42
58
|
end
|
43
59
|
|
44
60
|
class ReportedBreakdown < Stripe::StripeObject
|
45
61
|
class Fuel < Stripe::StripeObject
|
46
62
|
# Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes.
|
47
63
|
attr_reader :gross_amount_decimal
|
64
|
+
|
65
|
+
def self.inner_class_types
|
66
|
+
@inner_class_types = {}
|
67
|
+
end
|
68
|
+
|
69
|
+
def self.field_remappings
|
70
|
+
@field_remappings = {}
|
71
|
+
end
|
48
72
|
end
|
49
73
|
|
50
74
|
class NonFuel < Stripe::StripeObject
|
51
75
|
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
52
76
|
attr_reader :gross_amount_decimal
|
77
|
+
|
78
|
+
def self.inner_class_types
|
79
|
+
@inner_class_types = {}
|
80
|
+
end
|
81
|
+
|
82
|
+
def self.field_remappings
|
83
|
+
@field_remappings = {}
|
84
|
+
end
|
53
85
|
end
|
54
86
|
|
55
87
|
class Tax < Stripe::StripeObject
|
@@ -57,6 +89,14 @@ module Stripe
|
|
57
89
|
attr_reader :local_amount_decimal
|
58
90
|
# Amount of national Sales Tax or VAT included in the transaction amount. `null` if not reported by merchant or not subject to tax.
|
59
91
|
attr_reader :national_amount_decimal
|
92
|
+
|
93
|
+
def self.inner_class_types
|
94
|
+
@inner_class_types = {}
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.field_remappings
|
98
|
+
@field_remappings = {}
|
99
|
+
end
|
60
100
|
end
|
61
101
|
# Breakdown of fuel portion of the purchase.
|
62
102
|
attr_reader :fuel
|
@@ -64,6 +104,14 @@ module Stripe
|
|
64
104
|
attr_reader :non_fuel
|
65
105
|
# Information about tax included in this transaction.
|
66
106
|
attr_reader :tax
|
107
|
+
|
108
|
+
def self.inner_class_types
|
109
|
+
@inner_class_types = { fuel: Fuel, non_fuel: NonFuel, tax: Tax }
|
110
|
+
end
|
111
|
+
|
112
|
+
def self.field_remappings
|
113
|
+
@field_remappings = {}
|
114
|
+
end
|
67
115
|
end
|
68
116
|
# Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
69
117
|
attr_reader :cardholder_prompt_data
|
@@ -73,6 +121,17 @@ module Stripe
|
|
73
121
|
attr_reader :reported_breakdown
|
74
122
|
# The type of fuel service.
|
75
123
|
attr_reader :service_type
|
124
|
+
|
125
|
+
def self.inner_class_types
|
126
|
+
@inner_class_types = {
|
127
|
+
cardholder_prompt_data: CardholderPromptData,
|
128
|
+
reported_breakdown: ReportedBreakdown,
|
129
|
+
}
|
130
|
+
end
|
131
|
+
|
132
|
+
def self.field_remappings
|
133
|
+
@field_remappings = {}
|
134
|
+
end
|
76
135
|
end
|
77
136
|
|
78
137
|
class FraudChallenge < Stripe::StripeObject
|
@@ -82,6 +141,14 @@ module Stripe
|
|
82
141
|
attr_reader :status
|
83
142
|
# If the challenge is not deliverable, the reason why.
|
84
143
|
attr_reader :undeliverable_reason
|
144
|
+
|
145
|
+
def self.inner_class_types
|
146
|
+
@inner_class_types = {}
|
147
|
+
end
|
148
|
+
|
149
|
+
def self.field_remappings
|
150
|
+
@field_remappings = {}
|
151
|
+
end
|
85
152
|
end
|
86
153
|
|
87
154
|
class Fuel < Stripe::StripeObject
|
@@ -95,6 +162,14 @@ module Stripe
|
|
95
162
|
attr_reader :unit
|
96
163
|
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
97
164
|
attr_reader :unit_cost_decimal
|
165
|
+
|
166
|
+
def self.inner_class_types
|
167
|
+
@inner_class_types = {}
|
168
|
+
end
|
169
|
+
|
170
|
+
def self.field_remappings
|
171
|
+
@field_remappings = {}
|
172
|
+
end
|
98
173
|
end
|
99
174
|
|
100
175
|
class MerchantData < Stripe::StripeObject
|
@@ -120,6 +195,14 @@ module Stripe
|
|
120
195
|
attr_reader :terminal_id
|
121
196
|
# URL provided by the merchant on a 3DS request
|
122
197
|
attr_reader :url
|
198
|
+
|
199
|
+
def self.inner_class_types
|
200
|
+
@inner_class_types = {}
|
201
|
+
end
|
202
|
+
|
203
|
+
def self.field_remappings
|
204
|
+
@field_remappings = {}
|
205
|
+
end
|
123
206
|
end
|
124
207
|
|
125
208
|
class NetworkData < Stripe::StripeObject
|
@@ -129,6 +212,14 @@ module Stripe
|
|
129
212
|
attr_reader :system_trace_audit_number
|
130
213
|
# Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions.
|
131
214
|
attr_reader :transaction_id
|
215
|
+
|
216
|
+
def self.inner_class_types
|
217
|
+
@inner_class_types = {}
|
218
|
+
end
|
219
|
+
|
220
|
+
def self.field_remappings
|
221
|
+
@field_remappings = {}
|
222
|
+
end
|
132
223
|
end
|
133
224
|
|
134
225
|
class PendingRequest < Stripe::StripeObject
|
@@ -137,6 +228,14 @@ module Stripe
|
|
137
228
|
attr_reader :atm_fee
|
138
229
|
# The amount of cash requested by the cardholder.
|
139
230
|
attr_reader :cashback_amount
|
231
|
+
|
232
|
+
def self.inner_class_types
|
233
|
+
@inner_class_types = {}
|
234
|
+
end
|
235
|
+
|
236
|
+
def self.field_remappings
|
237
|
+
@field_remappings = {}
|
238
|
+
end
|
140
239
|
end
|
141
240
|
# The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://stripe.com/docs/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
142
241
|
attr_reader :amount
|
@@ -152,6 +251,14 @@ module Stripe
|
|
152
251
|
attr_reader :merchant_currency
|
153
252
|
# The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99.
|
154
253
|
attr_reader :network_risk_score
|
254
|
+
|
255
|
+
def self.inner_class_types
|
256
|
+
@inner_class_types = { amount_details: AmountDetails }
|
257
|
+
end
|
258
|
+
|
259
|
+
def self.field_remappings
|
260
|
+
@field_remappings = {}
|
261
|
+
end
|
155
262
|
end
|
156
263
|
|
157
264
|
class RequestHistory < Stripe::StripeObject
|
@@ -160,6 +267,14 @@ module Stripe
|
|
160
267
|
attr_reader :atm_fee
|
161
268
|
# The amount of cash requested by the cardholder.
|
162
269
|
attr_reader :cashback_amount
|
270
|
+
|
271
|
+
def self.inner_class_types
|
272
|
+
@inner_class_types = {}
|
273
|
+
end
|
274
|
+
|
275
|
+
def self.field_remappings
|
276
|
+
@field_remappings = {}
|
277
|
+
end
|
163
278
|
end
|
164
279
|
# The `pending_request.amount` at the time of the request, presented in your card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Stripe held this amount from your account to fund the authorization if the request was approved.
|
165
280
|
attr_reader :amount
|
@@ -185,6 +300,14 @@ module Stripe
|
|
185
300
|
attr_reader :reason_message
|
186
301
|
# Time when the card network received an authorization request from the acquirer in UTC. Referred to by networks as transmission time.
|
187
302
|
attr_reader :requested_at
|
303
|
+
|
304
|
+
def self.inner_class_types
|
305
|
+
@inner_class_types = { amount_details: AmountDetails }
|
306
|
+
end
|
307
|
+
|
308
|
+
def self.field_remappings
|
309
|
+
@field_remappings = {}
|
310
|
+
end
|
188
311
|
end
|
189
312
|
|
190
313
|
class Treasury < Stripe::StripeObject
|
@@ -194,6 +317,14 @@ module Stripe
|
|
194
317
|
attr_reader :received_debits
|
195
318
|
# The Treasury [Transaction](https://stripe.com/docs/api/treasury/transactions) associated with this authorization
|
196
319
|
attr_reader :transaction
|
320
|
+
|
321
|
+
def self.inner_class_types
|
322
|
+
@inner_class_types = {}
|
323
|
+
end
|
324
|
+
|
325
|
+
def self.field_remappings
|
326
|
+
@field_remappings = {}
|
327
|
+
end
|
197
328
|
end
|
198
329
|
|
199
330
|
class VerificationData < Stripe::StripeObject
|
@@ -202,11 +333,27 @@ module Stripe
|
|
202
333
|
attr_reader :claimed_by
|
203
334
|
# The specific exemption claimed for this authorization.
|
204
335
|
attr_reader :type
|
336
|
+
|
337
|
+
def self.inner_class_types
|
338
|
+
@inner_class_types = {}
|
339
|
+
end
|
340
|
+
|
341
|
+
def self.field_remappings
|
342
|
+
@field_remappings = {}
|
343
|
+
end
|
205
344
|
end
|
206
345
|
|
207
346
|
class ThreeDSecure < Stripe::StripeObject
|
208
347
|
# The outcome of the 3D Secure authentication request.
|
209
348
|
attr_reader :result
|
349
|
+
|
350
|
+
def self.inner_class_types
|
351
|
+
@inner_class_types = {}
|
352
|
+
end
|
353
|
+
|
354
|
+
def self.field_remappings
|
355
|
+
@field_remappings = {}
|
356
|
+
end
|
210
357
|
end
|
211
358
|
# Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`.
|
212
359
|
attr_reader :address_line1_check
|
@@ -222,6 +369,17 @@ module Stripe
|
|
222
369
|
attr_reader :postal_code
|
223
370
|
# 3D Secure details.
|
224
371
|
attr_reader :three_d_secure
|
372
|
+
|
373
|
+
def self.inner_class_types
|
374
|
+
@inner_class_types = {
|
375
|
+
authentication_exemption: AuthenticationExemption,
|
376
|
+
three_d_secure: ThreeDSecure,
|
377
|
+
}
|
378
|
+
end
|
379
|
+
|
380
|
+
def self.field_remappings
|
381
|
+
@field_remappings = {}
|
382
|
+
end
|
225
383
|
end
|
226
384
|
|
227
385
|
class ListParams < Stripe::RequestParams
|
@@ -1338,6 +1496,25 @@ module Stripe
|
|
1338
1496
|
)
|
1339
1497
|
end
|
1340
1498
|
end
|
1499
|
+
|
1500
|
+
def self.inner_class_types
|
1501
|
+
@inner_class_types = {
|
1502
|
+
amount_details: AmountDetails,
|
1503
|
+
fleet: Fleet,
|
1504
|
+
fraud_challenges: FraudChallenge,
|
1505
|
+
fuel: Fuel,
|
1506
|
+
merchant_data: MerchantData,
|
1507
|
+
network_data: NetworkData,
|
1508
|
+
pending_request: PendingRequest,
|
1509
|
+
request_history: RequestHistory,
|
1510
|
+
treasury: Treasury,
|
1511
|
+
verification_data: VerificationData,
|
1512
|
+
}
|
1513
|
+
end
|
1514
|
+
|
1515
|
+
def self.field_remappings
|
1516
|
+
@field_remappings = {}
|
1517
|
+
end
|
1341
1518
|
end
|
1342
1519
|
end
|
1343
1520
|
end
|
@@ -28,6 +28,14 @@ module Stripe
|
|
28
28
|
attr_reader :postal_code
|
29
29
|
# State, county, province, or region.
|
30
30
|
attr_reader :state
|
31
|
+
|
32
|
+
def self.inner_class_types
|
33
|
+
@inner_class_types = {}
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.field_remappings
|
37
|
+
@field_remappings = {}
|
38
|
+
end
|
31
39
|
end
|
32
40
|
|
33
41
|
class AddressValidation < Stripe::StripeObject
|
@@ -44,6 +52,14 @@ module Stripe
|
|
44
52
|
attr_reader :postal_code
|
45
53
|
# State, county, province, or region.
|
46
54
|
attr_reader :state
|
55
|
+
|
56
|
+
def self.inner_class_types
|
57
|
+
@inner_class_types = {}
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.field_remappings
|
61
|
+
@field_remappings = {}
|
62
|
+
end
|
47
63
|
end
|
48
64
|
# The address validation capabilities to use.
|
49
65
|
attr_reader :mode
|
@@ -51,11 +67,27 @@ module Stripe
|
|
51
67
|
attr_reader :normalized_address
|
52
68
|
# The validation result for the shipping address.
|
53
69
|
attr_reader :result
|
70
|
+
|
71
|
+
def self.inner_class_types
|
72
|
+
@inner_class_types = { normalized_address: NormalizedAddress }
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.field_remappings
|
76
|
+
@field_remappings = {}
|
77
|
+
end
|
54
78
|
end
|
55
79
|
|
56
80
|
class Customs < Stripe::StripeObject
|
57
81
|
# A registration number used for customs in Europe. See [https://www.gov.uk/eori](https://www.gov.uk/eori) for the UK and [https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU.
|
58
82
|
attr_reader :eori_number
|
83
|
+
|
84
|
+
def self.inner_class_types
|
85
|
+
@inner_class_types = {}
|
86
|
+
end
|
87
|
+
|
88
|
+
def self.field_remappings
|
89
|
+
@field_remappings = {}
|
90
|
+
end
|
59
91
|
end
|
60
92
|
# Attribute for field address
|
61
93
|
attr_reader :address
|
@@ -83,6 +115,18 @@ module Stripe
|
|
83
115
|
attr_reader :tracking_url
|
84
116
|
# Packaging options.
|
85
117
|
attr_reader :type
|
118
|
+
|
119
|
+
def self.inner_class_types
|
120
|
+
@inner_class_types = {
|
121
|
+
address: Address,
|
122
|
+
address_validation: AddressValidation,
|
123
|
+
customs: Customs,
|
124
|
+
}
|
125
|
+
end
|
126
|
+
|
127
|
+
def self.field_remappings
|
128
|
+
@field_remappings = {}
|
129
|
+
end
|
86
130
|
end
|
87
131
|
|
88
132
|
class SpendingControls < Stripe::StripeObject
|
@@ -93,6 +137,14 @@ module Stripe
|
|
93
137
|
attr_reader :categories
|
94
138
|
# Interval (or event) to which the amount applies.
|
95
139
|
attr_reader :interval
|
140
|
+
|
141
|
+
def self.inner_class_types
|
142
|
+
@inner_class_types = {}
|
143
|
+
end
|
144
|
+
|
145
|
+
def self.field_remappings
|
146
|
+
@field_remappings = {}
|
147
|
+
end
|
96
148
|
end
|
97
149
|
# Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`.
|
98
150
|
attr_reader :allowed_categories
|
@@ -106,6 +158,14 @@ module Stripe
|
|
106
158
|
attr_reader :spending_limits
|
107
159
|
# Currency of the amounts within `spending_limits`. Always the same as the currency of the card.
|
108
160
|
attr_reader :spending_limits_currency
|
161
|
+
|
162
|
+
def self.inner_class_types
|
163
|
+
@inner_class_types = { spending_limits: SpendingLimit }
|
164
|
+
end
|
165
|
+
|
166
|
+
def self.field_remappings
|
167
|
+
@field_remappings = {}
|
168
|
+
end
|
109
169
|
end
|
110
170
|
|
111
171
|
class Wallets < Stripe::StripeObject
|
@@ -114,6 +174,14 @@ module Stripe
|
|
114
174
|
attr_reader :eligible
|
115
175
|
# Reason the card is ineligible for Apple Pay
|
116
176
|
attr_reader :ineligible_reason
|
177
|
+
|
178
|
+
def self.inner_class_types
|
179
|
+
@inner_class_types = {}
|
180
|
+
end
|
181
|
+
|
182
|
+
def self.field_remappings
|
183
|
+
@field_remappings = {}
|
184
|
+
end
|
117
185
|
end
|
118
186
|
|
119
187
|
class GooglePay < Stripe::StripeObject
|
@@ -121,6 +189,14 @@ module Stripe
|
|
121
189
|
attr_reader :eligible
|
122
190
|
# Reason the card is ineligible for Google Pay
|
123
191
|
attr_reader :ineligible_reason
|
192
|
+
|
193
|
+
def self.inner_class_types
|
194
|
+
@inner_class_types = {}
|
195
|
+
end
|
196
|
+
|
197
|
+
def self.field_remappings
|
198
|
+
@field_remappings = {}
|
199
|
+
end
|
124
200
|
end
|
125
201
|
# Attribute for field apple_pay
|
126
202
|
attr_reader :apple_pay
|
@@ -128,6 +204,14 @@ module Stripe
|
|
128
204
|
attr_reader :google_pay
|
129
205
|
# Unique identifier for a card used with digital wallets
|
130
206
|
attr_reader :primary_account_identifier
|
207
|
+
|
208
|
+
def self.inner_class_types
|
209
|
+
@inner_class_types = { apple_pay: ApplePay, google_pay: GooglePay }
|
210
|
+
end
|
211
|
+
|
212
|
+
def self.field_remappings
|
213
|
+
@field_remappings = {}
|
214
|
+
end
|
131
215
|
end
|
132
216
|
|
133
217
|
class ListParams < Stripe::RequestParams
|
@@ -801,6 +885,18 @@ module Stripe
|
|
801
885
|
)
|
802
886
|
end
|
803
887
|
end
|
888
|
+
|
889
|
+
def self.inner_class_types
|
890
|
+
@inner_class_types = {
|
891
|
+
shipping: Shipping,
|
892
|
+
spending_controls: SpendingControls,
|
893
|
+
wallets: Wallets,
|
894
|
+
}
|
895
|
+
end
|
896
|
+
|
897
|
+
def self.field_remappings
|
898
|
+
@field_remappings = {}
|
899
|
+
end
|
804
900
|
end
|
805
901
|
end
|
806
902
|
end
|
@@ -30,14 +30,38 @@ module Stripe
|
|
30
30
|
attr_reader :postal_code
|
31
31
|
# State, county, province, or region.
|
32
32
|
attr_reader :state
|
33
|
+
|
34
|
+
def self.inner_class_types
|
35
|
+
@inner_class_types = {}
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.field_remappings
|
39
|
+
@field_remappings = {}
|
40
|
+
end
|
33
41
|
end
|
34
42
|
# Attribute for field address
|
35
43
|
attr_reader :address
|
44
|
+
|
45
|
+
def self.inner_class_types
|
46
|
+
@inner_class_types = { address: Address }
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.field_remappings
|
50
|
+
@field_remappings = {}
|
51
|
+
end
|
36
52
|
end
|
37
53
|
|
38
54
|
class Company < Stripe::StripeObject
|
39
55
|
# Whether the company's business ID number was provided.
|
40
56
|
attr_reader :tax_id_provided
|
57
|
+
|
58
|
+
def self.inner_class_types
|
59
|
+
@inner_class_types = {}
|
60
|
+
end
|
61
|
+
|
62
|
+
def self.field_remappings
|
63
|
+
@field_remappings = {}
|
64
|
+
end
|
41
65
|
end
|
42
66
|
|
43
67
|
class Individual < Stripe::StripeObject
|
@@ -49,9 +73,25 @@ module Stripe
|
|
49
73
|
attr_reader :ip
|
50
74
|
# The user agent of the browser from which the cardholder accepted the Authorized User Terms.
|
51
75
|
attr_reader :user_agent
|
76
|
+
|
77
|
+
def self.inner_class_types
|
78
|
+
@inner_class_types = {}
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.field_remappings
|
82
|
+
@field_remappings = {}
|
83
|
+
end
|
52
84
|
end
|
53
85
|
# Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program.
|
54
86
|
attr_reader :user_terms_acceptance
|
87
|
+
|
88
|
+
def self.inner_class_types
|
89
|
+
@inner_class_types = { user_terms_acceptance: UserTermsAcceptance }
|
90
|
+
end
|
91
|
+
|
92
|
+
def self.field_remappings
|
93
|
+
@field_remappings = {}
|
94
|
+
end
|
55
95
|
end
|
56
96
|
|
57
97
|
class Dob < Stripe::StripeObject
|
@@ -61,6 +101,14 @@ module Stripe
|
|
61
101
|
attr_reader :month
|
62
102
|
# The four-digit year of birth.
|
63
103
|
attr_reader :year
|
104
|
+
|
105
|
+
def self.inner_class_types
|
106
|
+
@inner_class_types = {}
|
107
|
+
end
|
108
|
+
|
109
|
+
def self.field_remappings
|
110
|
+
@field_remappings = {}
|
111
|
+
end
|
64
112
|
end
|
65
113
|
|
66
114
|
class Verification < Stripe::StripeObject
|
@@ -69,9 +117,25 @@ module Stripe
|
|
69
117
|
attr_reader :back
|
70
118
|
# The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`.
|
71
119
|
attr_reader :front
|
120
|
+
|
121
|
+
def self.inner_class_types
|
122
|
+
@inner_class_types = {}
|
123
|
+
end
|
124
|
+
|
125
|
+
def self.field_remappings
|
126
|
+
@field_remappings = {}
|
127
|
+
end
|
72
128
|
end
|
73
129
|
# An identifying document, either a passport or local ID card.
|
74
130
|
attr_reader :document
|
131
|
+
|
132
|
+
def self.inner_class_types
|
133
|
+
@inner_class_types = { document: Document }
|
134
|
+
end
|
135
|
+
|
136
|
+
def self.field_remappings
|
137
|
+
@field_remappings = {}
|
138
|
+
end
|
75
139
|
end
|
76
140
|
# Information related to the card_issuing program for this cardholder.
|
77
141
|
attr_reader :card_issuing
|
@@ -83,6 +147,14 @@ module Stripe
|
|
83
147
|
attr_reader :last_name
|
84
148
|
# Government-issued ID document for this cardholder.
|
85
149
|
attr_reader :verification
|
150
|
+
|
151
|
+
def self.inner_class_types
|
152
|
+
@inner_class_types = { card_issuing: CardIssuing, dob: Dob, verification: Verification }
|
153
|
+
end
|
154
|
+
|
155
|
+
def self.field_remappings
|
156
|
+
@field_remappings = {}
|
157
|
+
end
|
86
158
|
end
|
87
159
|
|
88
160
|
class Requirements < Stripe::StripeObject
|
@@ -90,6 +162,14 @@ module Stripe
|
|
90
162
|
attr_reader :disabled_reason
|
91
163
|
# Array of fields that need to be collected in order to verify and re-enable the cardholder.
|
92
164
|
attr_reader :past_due
|
165
|
+
|
166
|
+
def self.inner_class_types
|
167
|
+
@inner_class_types = {}
|
168
|
+
end
|
169
|
+
|
170
|
+
def self.field_remappings
|
171
|
+
@field_remappings = {}
|
172
|
+
end
|
93
173
|
end
|
94
174
|
|
95
175
|
class SpendingControls < Stripe::StripeObject
|
@@ -100,6 +180,14 @@ module Stripe
|
|
100
180
|
attr_reader :categories
|
101
181
|
# Interval (or event) to which the amount applies.
|
102
182
|
attr_reader :interval
|
183
|
+
|
184
|
+
def self.inner_class_types
|
185
|
+
@inner_class_types = {}
|
186
|
+
end
|
187
|
+
|
188
|
+
def self.field_remappings
|
189
|
+
@field_remappings = {}
|
190
|
+
end
|
103
191
|
end
|
104
192
|
# Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`.
|
105
193
|
attr_reader :allowed_categories
|
@@ -113,6 +201,14 @@ module Stripe
|
|
113
201
|
attr_reader :spending_limits
|
114
202
|
# Currency of the amounts within `spending_limits`.
|
115
203
|
attr_reader :spending_limits_currency
|
204
|
+
|
205
|
+
def self.inner_class_types
|
206
|
+
@inner_class_types = { spending_limits: SpendingLimit }
|
207
|
+
end
|
208
|
+
|
209
|
+
def self.field_remappings
|
210
|
+
@field_remappings = {}
|
211
|
+
end
|
116
212
|
end
|
117
213
|
|
118
214
|
class ListParams < Stripe::RequestParams
|
@@ -694,6 +790,20 @@ module Stripe
|
|
694
790
|
opts: opts
|
695
791
|
)
|
696
792
|
end
|
793
|
+
|
794
|
+
def self.inner_class_types
|
795
|
+
@inner_class_types = {
|
796
|
+
billing: Billing,
|
797
|
+
company: Company,
|
798
|
+
individual: Individual,
|
799
|
+
requirements: Requirements,
|
800
|
+
spending_controls: SpendingControls,
|
801
|
+
}
|
802
|
+
end
|
803
|
+
|
804
|
+
def self.field_remappings
|
805
|
+
@field_remappings = {}
|
806
|
+
end
|
697
807
|
end
|
698
808
|
end
|
699
809
|
end
|