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
@@ -20,6 +20,14 @@ module Stripe
|
|
20
20
|
class BuyButton < Stripe::StripeObject
|
21
21
|
# Whether the buy button is enabled.
|
22
22
|
attr_reader :enabled
|
23
|
+
|
24
|
+
def self.inner_class_types
|
25
|
+
@inner_class_types = {}
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.field_remappings
|
29
|
+
@field_remappings = {}
|
30
|
+
end
|
23
31
|
end
|
24
32
|
|
25
33
|
class PaymentElement < Stripe::StripeObject
|
@@ -44,16 +52,40 @@ module Stripe
|
|
44
52
|
#
|
45
53
|
# When using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation.
|
46
54
|
attr_reader :payment_method_save_usage
|
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
|
# Whether the Payment Element is enabled.
|
49
65
|
attr_reader :enabled
|
50
66
|
# This hash defines whether the Payment Element supports certain features.
|
51
67
|
attr_reader :features
|
68
|
+
|
69
|
+
def self.inner_class_types
|
70
|
+
@inner_class_types = { features: Features }
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.field_remappings
|
74
|
+
@field_remappings = {}
|
75
|
+
end
|
52
76
|
end
|
53
77
|
|
54
78
|
class PricingTable < Stripe::StripeObject
|
55
79
|
# Whether the pricing table is enabled.
|
56
80
|
attr_reader :enabled
|
81
|
+
|
82
|
+
def self.inner_class_types
|
83
|
+
@inner_class_types = {}
|
84
|
+
end
|
85
|
+
|
86
|
+
def self.field_remappings
|
87
|
+
@field_remappings = {}
|
88
|
+
end
|
57
89
|
end
|
58
90
|
# This hash contains whether the buy button is enabled.
|
59
91
|
attr_reader :buy_button
|
@@ -61,6 +93,18 @@ module Stripe
|
|
61
93
|
attr_reader :payment_element
|
62
94
|
# This hash contains whether the pricing table is enabled.
|
63
95
|
attr_reader :pricing_table
|
96
|
+
|
97
|
+
def self.inner_class_types
|
98
|
+
@inner_class_types = {
|
99
|
+
buy_button: BuyButton,
|
100
|
+
payment_element: PaymentElement,
|
101
|
+
pricing_table: PricingTable,
|
102
|
+
}
|
103
|
+
end
|
104
|
+
|
105
|
+
def self.field_remappings
|
106
|
+
@field_remappings = {}
|
107
|
+
end
|
64
108
|
end
|
65
109
|
|
66
110
|
class CreateParams < Stripe::RequestParams
|
@@ -189,5 +233,13 @@ module Stripe
|
|
189
233
|
opts: opts
|
190
234
|
)
|
191
235
|
end
|
236
|
+
|
237
|
+
def self.inner_class_types
|
238
|
+
@inner_class_types = { components: Components }
|
239
|
+
end
|
240
|
+
|
241
|
+
def self.field_remappings
|
242
|
+
@field_remappings = {}
|
243
|
+
end
|
192
244
|
end
|
193
245
|
end
|
@@ -42,5 +42,13 @@ module Stripe
|
|
42
42
|
attr_reader :subscription_item
|
43
43
|
# Always true for a deleted object
|
44
44
|
attr_reader :deleted
|
45
|
+
|
46
|
+
def self.inner_class_types
|
47
|
+
@inner_class_types = {}
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.field_remappings
|
51
|
+
@field_remappings = {}
|
52
|
+
end
|
45
53
|
end
|
46
54
|
end
|
@@ -33,6 +33,14 @@ module Stripe
|
|
33
33
|
attr_reader :postal_code
|
34
34
|
# State, county, province, or region.
|
35
35
|
attr_reader :state
|
36
|
+
|
37
|
+
def self.inner_class_types
|
38
|
+
@inner_class_types = {}
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.field_remappings
|
42
|
+
@field_remappings = {}
|
43
|
+
end
|
36
44
|
end
|
37
45
|
# User Account ID used to log into business platform. Must be recognizable by the user.
|
38
46
|
attr_reader :customer_account_id
|
@@ -50,6 +58,14 @@ module Stripe
|
|
50
58
|
attr_reader :product_description
|
51
59
|
# The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
52
60
|
attr_reader :shipping_address
|
61
|
+
|
62
|
+
def self.inner_class_types
|
63
|
+
@inner_class_types = { shipping_address: ShippingAddress }
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.field_remappings
|
67
|
+
@field_remappings = {}
|
68
|
+
end
|
53
69
|
end
|
54
70
|
|
55
71
|
class PriorUndisputedTransaction < Stripe::StripeObject
|
@@ -66,6 +82,14 @@ module Stripe
|
|
66
82
|
attr_reader :postal_code
|
67
83
|
# State, county, province, or region.
|
68
84
|
attr_reader :state
|
85
|
+
|
86
|
+
def self.inner_class_types
|
87
|
+
@inner_class_types = {}
|
88
|
+
end
|
89
|
+
|
90
|
+
def self.field_remappings
|
91
|
+
@field_remappings = {}
|
92
|
+
end
|
69
93
|
end
|
70
94
|
# Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
|
71
95
|
attr_reader :charge
|
@@ -83,21 +107,59 @@ module Stripe
|
|
83
107
|
attr_reader :product_description
|
84
108
|
# The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
85
109
|
attr_reader :shipping_address
|
110
|
+
|
111
|
+
def self.inner_class_types
|
112
|
+
@inner_class_types = { shipping_address: ShippingAddress }
|
113
|
+
end
|
114
|
+
|
115
|
+
def self.field_remappings
|
116
|
+
@field_remappings = {}
|
117
|
+
end
|
86
118
|
end
|
87
119
|
# Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
|
88
120
|
attr_reader :disputed_transaction
|
89
121
|
# List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
|
90
122
|
attr_reader :prior_undisputed_transactions
|
123
|
+
|
124
|
+
def self.inner_class_types
|
125
|
+
@inner_class_types = {
|
126
|
+
disputed_transaction: DisputedTransaction,
|
127
|
+
prior_undisputed_transactions: PriorUndisputedTransaction,
|
128
|
+
}
|
129
|
+
end
|
130
|
+
|
131
|
+
def self.field_remappings
|
132
|
+
@field_remappings = {}
|
133
|
+
end
|
91
134
|
end
|
92
135
|
|
93
136
|
class VisaCompliance < Stripe::StripeObject
|
94
137
|
# A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute.
|
95
138
|
attr_reader :fee_acknowledged
|
139
|
+
|
140
|
+
def self.inner_class_types
|
141
|
+
@inner_class_types = {}
|
142
|
+
end
|
143
|
+
|
144
|
+
def self.field_remappings
|
145
|
+
@field_remappings = {}
|
146
|
+
end
|
96
147
|
end
|
97
148
|
# Attribute for field visa_compelling_evidence_3
|
98
149
|
attr_reader :visa_compelling_evidence_3
|
99
150
|
# Attribute for field visa_compliance
|
100
151
|
attr_reader :visa_compliance
|
152
|
+
|
153
|
+
def self.inner_class_types
|
154
|
+
@inner_class_types = {
|
155
|
+
visa_compelling_evidence_3: VisaCompellingEvidence3,
|
156
|
+
visa_compliance: VisaCompliance,
|
157
|
+
}
|
158
|
+
end
|
159
|
+
|
160
|
+
def self.field_remappings
|
161
|
+
@field_remappings = {}
|
162
|
+
end
|
101
163
|
end
|
102
164
|
# Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.
|
103
165
|
attr_reader :access_activity_log
|
@@ -155,6 +217,14 @@ module Stripe
|
|
155
217
|
attr_reader :uncategorized_file
|
156
218
|
# Any additional evidence or statements.
|
157
219
|
attr_reader :uncategorized_text
|
220
|
+
|
221
|
+
def self.inner_class_types
|
222
|
+
@inner_class_types = { enhanced_evidence: EnhancedEvidence }
|
223
|
+
end
|
224
|
+
|
225
|
+
def self.field_remappings
|
226
|
+
@field_remappings = {}
|
227
|
+
end
|
158
228
|
end
|
159
229
|
|
160
230
|
class EvidenceDetails < Stripe::StripeObject
|
@@ -164,16 +234,43 @@ module Stripe
|
|
164
234
|
attr_reader :required_actions
|
165
235
|
# Visa Compelling Evidence 3.0 eligibility status.
|
166
236
|
attr_reader :status
|
237
|
+
|
238
|
+
def self.inner_class_types
|
239
|
+
@inner_class_types = {}
|
240
|
+
end
|
241
|
+
|
242
|
+
def self.field_remappings
|
243
|
+
@field_remappings = {}
|
244
|
+
end
|
167
245
|
end
|
168
246
|
|
169
247
|
class VisaCompliance < Stripe::StripeObject
|
170
248
|
# Visa compliance eligibility status.
|
171
249
|
attr_reader :status
|
250
|
+
|
251
|
+
def self.inner_class_types
|
252
|
+
@inner_class_types = {}
|
253
|
+
end
|
254
|
+
|
255
|
+
def self.field_remappings
|
256
|
+
@field_remappings = {}
|
257
|
+
end
|
172
258
|
end
|
173
259
|
# Attribute for field visa_compelling_evidence_3
|
174
260
|
attr_reader :visa_compelling_evidence_3
|
175
261
|
# Attribute for field visa_compliance
|
176
262
|
attr_reader :visa_compliance
|
263
|
+
|
264
|
+
def self.inner_class_types
|
265
|
+
@inner_class_types = {
|
266
|
+
visa_compelling_evidence_3: VisaCompellingEvidence3,
|
267
|
+
visa_compliance: VisaCompliance,
|
268
|
+
}
|
269
|
+
end
|
270
|
+
|
271
|
+
def self.field_remappings
|
272
|
+
@field_remappings = {}
|
273
|
+
end
|
177
274
|
end
|
178
275
|
# Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute.
|
179
276
|
attr_reader :due_by
|
@@ -187,12 +284,28 @@ module Stripe
|
|
187
284
|
attr_reader :submission_count
|
188
285
|
# Whether the dispute was submitted manually, with Smart Disputes, or not submitted.
|
189
286
|
attr_reader :submission_method
|
287
|
+
|
288
|
+
def self.inner_class_types
|
289
|
+
@inner_class_types = { enhanced_eligibility: EnhancedEligibility }
|
290
|
+
end
|
291
|
+
|
292
|
+
def self.field_remappings
|
293
|
+
@field_remappings = {}
|
294
|
+
end
|
190
295
|
end
|
191
296
|
|
192
297
|
class PaymentMethodDetails < Stripe::StripeObject
|
193
298
|
class AmazonPay < Stripe::StripeObject
|
194
299
|
# The AmazonPay dispute type, chargeback or claim
|
195
300
|
attr_reader :dispute_type
|
301
|
+
|
302
|
+
def self.inner_class_types
|
303
|
+
@inner_class_types = {}
|
304
|
+
end
|
305
|
+
|
306
|
+
def self.field_remappings
|
307
|
+
@field_remappings = {}
|
308
|
+
end
|
196
309
|
end
|
197
310
|
|
198
311
|
class Card < Stripe::StripeObject
|
@@ -202,11 +315,27 @@ module Stripe
|
|
202
315
|
attr_reader :case_type
|
203
316
|
# The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.
|
204
317
|
attr_reader :network_reason_code
|
318
|
+
|
319
|
+
def self.inner_class_types
|
320
|
+
@inner_class_types = {}
|
321
|
+
end
|
322
|
+
|
323
|
+
def self.field_remappings
|
324
|
+
@field_remappings = {}
|
325
|
+
end
|
205
326
|
end
|
206
327
|
|
207
328
|
class Klarna < Stripe::StripeObject
|
208
329
|
# The reason for the dispute as defined by Klarna
|
209
330
|
attr_reader :reason_code
|
331
|
+
|
332
|
+
def self.inner_class_types
|
333
|
+
@inner_class_types = {}
|
334
|
+
end
|
335
|
+
|
336
|
+
def self.field_remappings
|
337
|
+
@field_remappings = {}
|
338
|
+
end
|
210
339
|
end
|
211
340
|
|
212
341
|
class Paypal < Stripe::StripeObject
|
@@ -214,6 +343,14 @@ module Stripe
|
|
214
343
|
attr_reader :case_id
|
215
344
|
# The reason for the dispute as defined by PayPal
|
216
345
|
attr_reader :reason_code
|
346
|
+
|
347
|
+
def self.inner_class_types
|
348
|
+
@inner_class_types = {}
|
349
|
+
end
|
350
|
+
|
351
|
+
def self.field_remappings
|
352
|
+
@field_remappings = {}
|
353
|
+
end
|
217
354
|
end
|
218
355
|
# Attribute for field amazon_pay
|
219
356
|
attr_reader :amazon_pay
|
@@ -225,6 +362,14 @@ module Stripe
|
|
225
362
|
attr_reader :paypal
|
226
363
|
# Payment method type.
|
227
364
|
attr_reader :type
|
365
|
+
|
366
|
+
def self.inner_class_types
|
367
|
+
@inner_class_types = { amazon_pay: AmazonPay, card: Card, klarna: Klarna, paypal: Paypal }
|
368
|
+
end
|
369
|
+
|
370
|
+
def self.field_remappings
|
371
|
+
@field_remappings = {}
|
372
|
+
end
|
228
373
|
end
|
229
374
|
|
230
375
|
class SmartDisputes < Stripe::StripeObject
|
@@ -232,6 +377,14 @@ module Stripe
|
|
232
377
|
attr_reader :recommended_evidence
|
233
378
|
# Smart Disputes auto representment packet availability status.
|
234
379
|
attr_reader :status
|
380
|
+
|
381
|
+
def self.inner_class_types
|
382
|
+
@inner_class_types = {}
|
383
|
+
end
|
384
|
+
|
385
|
+
def self.field_remappings
|
386
|
+
@field_remappings = {}
|
387
|
+
end
|
235
388
|
end
|
236
389
|
|
237
390
|
class ListParams < Stripe::RequestParams
|
@@ -677,5 +830,18 @@ module Stripe
|
|
677
830
|
opts: opts
|
678
831
|
)
|
679
832
|
end
|
833
|
+
|
834
|
+
def self.inner_class_types
|
835
|
+
@inner_class_types = {
|
836
|
+
evidence: Evidence,
|
837
|
+
evidence_details: EvidenceDetails,
|
838
|
+
payment_method_details: PaymentMethodDetails,
|
839
|
+
smart_disputes: SmartDisputes,
|
840
|
+
}
|
841
|
+
end
|
842
|
+
|
843
|
+
def self.field_remappings
|
844
|
+
@field_remappings = {}
|
845
|
+
end
|
680
846
|
end
|
681
847
|
end
|
@@ -18,6 +18,14 @@ module Stripe
|
|
18
18
|
attr_reader :livemode
|
19
19
|
# String representing the object's type. Objects of the same type share the same value.
|
20
20
|
attr_reader :object
|
21
|
+
|
22
|
+
def self.inner_class_types
|
23
|
+
@inner_class_types = {}
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.field_remappings
|
27
|
+
@field_remappings = {}
|
28
|
+
end
|
21
29
|
end
|
22
30
|
end
|
23
31
|
end
|
@@ -33,6 +33,14 @@ module Stripe
|
|
33
33
|
attr_reader :object
|
34
34
|
# Object containing the names of the updated attributes and their values prior to the event (only included in events of type `*.updated`). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements.
|
35
35
|
attr_reader :previous_attributes
|
36
|
+
|
37
|
+
def self.inner_class_types
|
38
|
+
@inner_class_types = {}
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.field_remappings
|
42
|
+
@field_remappings = {}
|
43
|
+
end
|
36
44
|
end
|
37
45
|
|
38
46
|
class Reason < Stripe::StripeObject
|
@@ -40,6 +48,14 @@ module Stripe
|
|
40
48
|
class StripeSendWebhookCustomEvent < Stripe::StripeObject
|
41
49
|
# Set of key-value pairs attached to the action when creating an Automation.
|
42
50
|
attr_reader :custom_data
|
51
|
+
|
52
|
+
def self.inner_class_types
|
53
|
+
@inner_class_types = {}
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.field_remappings
|
57
|
+
@field_remappings = {}
|
58
|
+
end
|
43
59
|
end
|
44
60
|
# Attribute for field stripe_send_webhook_custom_event
|
45
61
|
attr_reader :stripe_send_webhook_custom_event
|
@@ -48,6 +64,14 @@ module Stripe
|
|
48
64
|
attr_reader :trigger
|
49
65
|
# The type of the `automation_action`.
|
50
66
|
attr_reader :type
|
67
|
+
|
68
|
+
def self.inner_class_types
|
69
|
+
@inner_class_types = { stripe_send_webhook_custom_event: StripeSendWebhookCustomEvent }
|
70
|
+
end
|
71
|
+
|
72
|
+
def self.field_remappings
|
73
|
+
@field_remappings = {}
|
74
|
+
end
|
51
75
|
end
|
52
76
|
|
53
77
|
class Request < Stripe::StripeObject
|
@@ -55,6 +79,14 @@ module Stripe
|
|
55
79
|
attr_reader :id
|
56
80
|
# The idempotency key transmitted during the request, if any. *Note: This property is populated only for events on or after May 23, 2017*.
|
57
81
|
attr_reader :idempotency_key
|
82
|
+
|
83
|
+
def self.inner_class_types
|
84
|
+
@inner_class_types = {}
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.field_remappings
|
88
|
+
@field_remappings = {}
|
89
|
+
end
|
58
90
|
end
|
59
91
|
# Attribute for field automation_action
|
60
92
|
attr_reader :automation_action
|
@@ -62,6 +94,14 @@ module Stripe
|
|
62
94
|
attr_reader :request
|
63
95
|
# The type of the reason for the event.
|
64
96
|
attr_reader :type
|
97
|
+
|
98
|
+
def self.inner_class_types
|
99
|
+
@inner_class_types = { automation_action: AutomationAction, request: Request }
|
100
|
+
end
|
101
|
+
|
102
|
+
def self.field_remappings
|
103
|
+
@field_remappings = {}
|
104
|
+
end
|
65
105
|
end
|
66
106
|
|
67
107
|
class Request < Stripe::StripeObject
|
@@ -69,6 +109,14 @@ module Stripe
|
|
69
109
|
attr_reader :id
|
70
110
|
# The idempotency key transmitted during the request, if any. *Note: This property is populated only for events on or after May 23, 2017*.
|
71
111
|
attr_reader :idempotency_key
|
112
|
+
|
113
|
+
def self.inner_class_types
|
114
|
+
@inner_class_types = {}
|
115
|
+
end
|
116
|
+
|
117
|
+
def self.field_remappings
|
118
|
+
@field_remappings = {}
|
119
|
+
end
|
72
120
|
end
|
73
121
|
|
74
122
|
class ListParams < Stripe::RequestParams
|
@@ -155,5 +203,13 @@ module Stripe
|
|
155
203
|
def self.list(params = {}, opts = {})
|
156
204
|
request_stripe_object(method: :get, path: "/v1/events", params: params, opts: opts)
|
157
205
|
end
|
206
|
+
|
207
|
+
def self.inner_class_types
|
208
|
+
@inner_class_types = { data: Data, reason: Reason, request: Request }
|
209
|
+
end
|
210
|
+
|
211
|
+
def self.field_remappings
|
212
|
+
@field_remappings = {}
|
213
|
+
end
|
158
214
|
end
|
159
215
|
end
|
@@ -64,5 +64,13 @@ module Stripe
|
|
64
64
|
def self.list(params = {}, opts = {})
|
65
65
|
request_stripe_object(method: :get, path: "/v1/exchange_rates", params: params, opts: opts)
|
66
66
|
end
|
67
|
+
|
68
|
+
def self.inner_class_types
|
69
|
+
@inner_class_types = {}
|
70
|
+
end
|
71
|
+
|
72
|
+
def self.field_remappings
|
73
|
+
@field_remappings = {}
|
74
|
+
end
|
67
75
|
end
|
68
76
|
end
|