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
@@ -21,6 +21,14 @@ module Stripe
|
|
21
21
|
attr_reader :purpose
|
22
22
|
# Date when the applicant submitted their application.
|
23
23
|
attr_reader :submitted_at
|
24
|
+
|
25
|
+
def self.inner_class_types
|
26
|
+
@inner_class_types = {}
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.field_remappings
|
30
|
+
@field_remappings = {}
|
31
|
+
end
|
24
32
|
end
|
25
33
|
|
26
34
|
class CreditUser < Stripe::StripeObject
|
@@ -28,6 +36,14 @@ module Stripe
|
|
28
36
|
attr_reader :email
|
29
37
|
# Full name of the company or person.
|
30
38
|
attr_reader :name
|
39
|
+
|
40
|
+
def self.inner_class_types
|
41
|
+
@inner_class_types = {}
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.field_remappings
|
45
|
+
@field_remappings = {}
|
46
|
+
end
|
31
47
|
end
|
32
48
|
|
33
49
|
class Decision < Stripe::StripeObject
|
@@ -36,6 +52,14 @@ module Stripe
|
|
36
52
|
attr_reader :reason_other_explanation
|
37
53
|
# List of reasons why the application was rejected up to 4 reasons, in order of importance.
|
38
54
|
attr_reader :reasons
|
55
|
+
|
56
|
+
def self.inner_class_types
|
57
|
+
@inner_class_types = {}
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.field_remappings
|
61
|
+
@field_remappings = {}
|
62
|
+
end
|
39
63
|
end
|
40
64
|
|
41
65
|
class CreditLimitApproved < Stripe::StripeObject
|
@@ -43,6 +67,14 @@ module Stripe
|
|
43
67
|
attr_reader :amount
|
44
68
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
45
69
|
attr_reader :currency
|
70
|
+
|
71
|
+
def self.inner_class_types
|
72
|
+
@inner_class_types = {}
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.field_remappings
|
76
|
+
@field_remappings = {}
|
77
|
+
end
|
46
78
|
end
|
47
79
|
|
48
80
|
class CreditLimitDecreased < Stripe::StripeObject
|
@@ -54,6 +86,14 @@ module Stripe
|
|
54
86
|
attr_reader :reason_other_explanation
|
55
87
|
# List of reasons why the existing credit was decreased, up to 4 reasons, in order of importance.
|
56
88
|
attr_reader :reasons
|
89
|
+
|
90
|
+
def self.inner_class_types
|
91
|
+
@inner_class_types = {}
|
92
|
+
end
|
93
|
+
|
94
|
+
def self.field_remappings
|
95
|
+
@field_remappings = {}
|
96
|
+
end
|
57
97
|
end
|
58
98
|
|
59
99
|
class CreditLineClosed < Stripe::StripeObject
|
@@ -61,6 +101,14 @@ module Stripe
|
|
61
101
|
attr_reader :reason_other_explanation
|
62
102
|
# List of reasons why the existing account was closed, up to 4 reasons, in order of importance.
|
63
103
|
attr_reader :reasons
|
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
|
# Details about a decision application_rejected.
|
66
114
|
attr_reader :application_rejected
|
@@ -72,6 +120,19 @@ module Stripe
|
|
72
120
|
attr_reader :credit_line_closed
|
73
121
|
# Outcome of the decision.
|
74
122
|
attr_reader :type
|
123
|
+
|
124
|
+
def self.inner_class_types
|
125
|
+
@inner_class_types = {
|
126
|
+
application_rejected: ApplicationRejected,
|
127
|
+
credit_limit_approved: CreditLimitApproved,
|
128
|
+
credit_limit_decreased: CreditLimitDecreased,
|
129
|
+
credit_line_closed: CreditLineClosed,
|
130
|
+
}
|
131
|
+
end
|
132
|
+
|
133
|
+
def self.field_remappings
|
134
|
+
@field_remappings = {}
|
135
|
+
end
|
75
136
|
end
|
76
137
|
|
77
138
|
class UnderwritingException < Stripe::StripeObject
|
@@ -79,6 +140,14 @@ module Stripe
|
|
79
140
|
attr_reader :explanation
|
80
141
|
# The decision before the exception was applied.
|
81
142
|
attr_reader :original_decision_type
|
143
|
+
|
144
|
+
def self.inner_class_types
|
145
|
+
@inner_class_types = {}
|
146
|
+
end
|
147
|
+
|
148
|
+
def self.field_remappings
|
149
|
+
@field_remappings = {}
|
150
|
+
end
|
82
151
|
end
|
83
152
|
|
84
153
|
class ListParams < Stripe::RequestParams
|
@@ -597,6 +666,19 @@ module Stripe
|
|
597
666
|
opts: opts
|
598
667
|
)
|
599
668
|
end
|
669
|
+
|
670
|
+
def self.inner_class_types
|
671
|
+
@inner_class_types = {
|
672
|
+
application: Application,
|
673
|
+
credit_user: CreditUser,
|
674
|
+
decision: Decision,
|
675
|
+
underwriting_exception: UnderwritingException,
|
676
|
+
}
|
677
|
+
end
|
678
|
+
|
679
|
+
def self.field_remappings
|
680
|
+
@field_remappings = {}
|
681
|
+
end
|
600
682
|
end
|
601
683
|
end
|
602
684
|
end
|
@@ -38,6 +38,14 @@ module Stripe
|
|
38
38
|
attr_reader :return_status
|
39
39
|
# Date when the product was returned or attempted to be returned.
|
40
40
|
attr_reader :returned_at
|
41
|
+
|
42
|
+
def self.inner_class_types
|
43
|
+
@inner_class_types = {}
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.field_remappings
|
47
|
+
@field_remappings = {}
|
48
|
+
end
|
41
49
|
end
|
42
50
|
|
43
51
|
class Duplicate < Stripe::StripeObject
|
@@ -53,6 +61,14 @@ module Stripe
|
|
53
61
|
attr_reader :explanation
|
54
62
|
# Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
|
55
63
|
attr_reader :original_transaction
|
64
|
+
|
65
|
+
def self.inner_class_types
|
66
|
+
@inner_class_types = {}
|
67
|
+
end
|
68
|
+
|
69
|
+
def self.field_remappings
|
70
|
+
@field_remappings = {}
|
71
|
+
end
|
56
72
|
end
|
57
73
|
|
58
74
|
class Fraudulent < Stripe::StripeObject
|
@@ -60,6 +76,14 @@ module Stripe
|
|
60
76
|
attr_reader :additional_documentation
|
61
77
|
# Explanation of why the cardholder is disputing this transaction.
|
62
78
|
attr_reader :explanation
|
79
|
+
|
80
|
+
def self.inner_class_types
|
81
|
+
@inner_class_types = {}
|
82
|
+
end
|
83
|
+
|
84
|
+
def self.field_remappings
|
85
|
+
@field_remappings = {}
|
86
|
+
end
|
63
87
|
end
|
64
88
|
|
65
89
|
class MerchandiseNotAsDescribed < Stripe::StripeObject
|
@@ -75,6 +99,14 @@ module Stripe
|
|
75
99
|
attr_reader :return_status
|
76
100
|
# Date when the product was returned or attempted to be returned.
|
77
101
|
attr_reader :returned_at
|
102
|
+
|
103
|
+
def self.inner_class_types
|
104
|
+
@inner_class_types = {}
|
105
|
+
end
|
106
|
+
|
107
|
+
def self.field_remappings
|
108
|
+
@field_remappings = {}
|
109
|
+
end
|
78
110
|
end
|
79
111
|
|
80
112
|
class NoValidAuthorization < Stripe::StripeObject
|
@@ -82,6 +114,14 @@ module Stripe
|
|
82
114
|
attr_reader :additional_documentation
|
83
115
|
# Explanation of why the cardholder is disputing this transaction.
|
84
116
|
attr_reader :explanation
|
117
|
+
|
118
|
+
def self.inner_class_types
|
119
|
+
@inner_class_types = {}
|
120
|
+
end
|
121
|
+
|
122
|
+
def self.field_remappings
|
123
|
+
@field_remappings = {}
|
124
|
+
end
|
85
125
|
end
|
86
126
|
|
87
127
|
class NotReceived < Stripe::StripeObject
|
@@ -95,6 +135,14 @@ module Stripe
|
|
95
135
|
attr_reader :product_description
|
96
136
|
# Whether the product was a merchandise or service.
|
97
137
|
attr_reader :product_type
|
138
|
+
|
139
|
+
def self.inner_class_types
|
140
|
+
@inner_class_types = {}
|
141
|
+
end
|
142
|
+
|
143
|
+
def self.field_remappings
|
144
|
+
@field_remappings = {}
|
145
|
+
end
|
98
146
|
end
|
99
147
|
|
100
148
|
class Other < Stripe::StripeObject
|
@@ -106,6 +154,14 @@ module Stripe
|
|
106
154
|
attr_reader :product_description
|
107
155
|
# Whether the product was a merchandise or service.
|
108
156
|
attr_reader :product_type
|
157
|
+
|
158
|
+
def self.inner_class_types
|
159
|
+
@inner_class_types = {}
|
160
|
+
end
|
161
|
+
|
162
|
+
def self.field_remappings
|
163
|
+
@field_remappings = {}
|
164
|
+
end
|
109
165
|
end
|
110
166
|
|
111
167
|
class ServiceNotAsDescribed < Stripe::StripeObject
|
@@ -119,6 +175,14 @@ module Stripe
|
|
119
175
|
attr_reader :explanation
|
120
176
|
# Date when the product was received.
|
121
177
|
attr_reader :received_at
|
178
|
+
|
179
|
+
def self.inner_class_types
|
180
|
+
@inner_class_types = {}
|
181
|
+
end
|
182
|
+
|
183
|
+
def self.field_remappings
|
184
|
+
@field_remappings = {}
|
185
|
+
end
|
122
186
|
end
|
123
187
|
# Attribute for field canceled
|
124
188
|
attr_reader :canceled
|
@@ -138,6 +202,23 @@ module Stripe
|
|
138
202
|
attr_reader :reason
|
139
203
|
# Attribute for field service_not_as_described
|
140
204
|
attr_reader :service_not_as_described
|
205
|
+
|
206
|
+
def self.inner_class_types
|
207
|
+
@inner_class_types = {
|
208
|
+
canceled: Canceled,
|
209
|
+
duplicate: Duplicate,
|
210
|
+
fraudulent: Fraudulent,
|
211
|
+
merchandise_not_as_described: MerchandiseNotAsDescribed,
|
212
|
+
no_valid_authorization: NoValidAuthorization,
|
213
|
+
not_received: NotReceived,
|
214
|
+
other: Other,
|
215
|
+
service_not_as_described: ServiceNotAsDescribed,
|
216
|
+
}
|
217
|
+
end
|
218
|
+
|
219
|
+
def self.field_remappings
|
220
|
+
@field_remappings = {}
|
221
|
+
end
|
141
222
|
end
|
142
223
|
|
143
224
|
class Treasury < Stripe::StripeObject
|
@@ -145,6 +226,14 @@ module Stripe
|
|
145
226
|
attr_reader :debit_reversal
|
146
227
|
# The Treasury [ReceivedDebit](https://stripe.com/docs/api/treasury/received_debits) that is being disputed.
|
147
228
|
attr_reader :received_debit
|
229
|
+
|
230
|
+
def self.inner_class_types
|
231
|
+
@inner_class_types = {}
|
232
|
+
end
|
233
|
+
|
234
|
+
def self.field_remappings
|
235
|
+
@field_remappings = {}
|
236
|
+
end
|
148
237
|
end
|
149
238
|
|
150
239
|
class ListParams < Stripe::RequestParams
|
@@ -846,6 +935,14 @@ module Stripe
|
|
846
935
|
opts: opts
|
847
936
|
)
|
848
937
|
end
|
938
|
+
|
939
|
+
def self.inner_class_types
|
940
|
+
@inner_class_types = { evidence: Evidence, treasury: Treasury }
|
941
|
+
end
|
942
|
+
|
943
|
+
def self.field_remappings
|
944
|
+
@field_remappings = {}
|
945
|
+
end
|
849
946
|
end
|
850
947
|
end
|
851
948
|
end
|
@@ -15,6 +15,14 @@ module Stripe
|
|
15
15
|
class NetworkData < Stripe::StripeObject
|
16
16
|
# The date the transaction was processed by the card network. This can be different from the date the seller recorded the transaction depending on when the acquirer submits the transaction to the network.
|
17
17
|
attr_reader :processing_date
|
18
|
+
|
19
|
+
def self.inner_class_types
|
20
|
+
@inner_class_types = {}
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.field_remappings
|
24
|
+
@field_remappings = {}
|
25
|
+
end
|
18
26
|
end
|
19
27
|
|
20
28
|
class ListParams < Stripe::RequestParams
|
@@ -77,6 +85,14 @@ module Stripe
|
|
77
85
|
opts: opts
|
78
86
|
)
|
79
87
|
end
|
88
|
+
|
89
|
+
def self.inner_class_types
|
90
|
+
@inner_class_types = { network_data: NetworkData }
|
91
|
+
end
|
92
|
+
|
93
|
+
def self.field_remappings
|
94
|
+
@field_remappings = {}
|
95
|
+
end
|
80
96
|
end
|
81
97
|
end
|
82
98
|
end
|
@@ -23,6 +23,14 @@ module Stripe
|
|
23
23
|
attr_reader :header_body
|
24
24
|
# The header title text of the carrier letter.
|
25
25
|
attr_reader :header_title
|
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 Preferences < Stripe::StripeObject
|
@@ -30,6 +38,14 @@ module Stripe
|
|
30
38
|
attr_reader :is_default
|
31
39
|
# Whether this personalization design is used to create cards when one is not specified and a default for this connected account does not exist.
|
32
40
|
attr_reader :is_platform_default
|
41
|
+
|
42
|
+
def self.inner_class_types
|
43
|
+
@inner_class_types = {}
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.field_remappings
|
47
|
+
@field_remappings = {}
|
48
|
+
end
|
33
49
|
end
|
34
50
|
|
35
51
|
class RejectionReasons < Stripe::StripeObject
|
@@ -37,6 +53,14 @@ module Stripe
|
|
37
53
|
attr_reader :card_logo
|
38
54
|
# The reason(s) the carrier text was rejected.
|
39
55
|
attr_reader :carrier_text
|
56
|
+
|
57
|
+
def self.inner_class_types
|
58
|
+
@inner_class_types = {}
|
59
|
+
end
|
60
|
+
|
61
|
+
def self.field_remappings
|
62
|
+
@field_remappings = {}
|
63
|
+
end
|
40
64
|
end
|
41
65
|
|
42
66
|
class ListParams < Stripe::RequestParams
|
@@ -390,6 +414,18 @@ module Stripe
|
|
390
414
|
)
|
391
415
|
end
|
392
416
|
end
|
417
|
+
|
418
|
+
def self.inner_class_types
|
419
|
+
@inner_class_types = {
|
420
|
+
carrier_text: CarrierText,
|
421
|
+
preferences: Preferences,
|
422
|
+
rejection_reasons: RejectionReasons,
|
423
|
+
}
|
424
|
+
end
|
425
|
+
|
426
|
+
def self.field_remappings
|
427
|
+
@field_remappings = {}
|
428
|
+
end
|
393
429
|
end
|
394
430
|
end
|
395
431
|
end
|
@@ -19,6 +19,14 @@ module Stripe
|
|
19
19
|
attr_reader :carrier_text
|
20
20
|
# The policy for how to use a second line on a card with this physical bundle.
|
21
21
|
attr_reader :second_line
|
22
|
+
|
23
|
+
def self.inner_class_types
|
24
|
+
@inner_class_types = {}
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.field_remappings
|
28
|
+
@field_remappings = {}
|
29
|
+
end
|
22
30
|
end
|
23
31
|
|
24
32
|
class ListParams < Stripe::RequestParams
|
@@ -75,6 +83,14 @@ module Stripe
|
|
75
83
|
opts: opts
|
76
84
|
)
|
77
85
|
end
|
86
|
+
|
87
|
+
def self.inner_class_types
|
88
|
+
@inner_class_types = { features: Features }
|
89
|
+
end
|
90
|
+
|
91
|
+
def self.field_remappings
|
92
|
+
@field_remappings = {}
|
93
|
+
end
|
78
94
|
end
|
79
95
|
end
|
80
96
|
end
|
@@ -48,6 +48,14 @@ module Stripe
|
|
48
48
|
attr_reader :transaction_amount
|
49
49
|
# The total number of transactions reflected in this settlement.
|
50
50
|
attr_reader :transaction_count
|
51
|
+
|
52
|
+
def self.inner_class_types
|
53
|
+
@inner_class_types = {}
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.field_remappings
|
57
|
+
@field_remappings = {}
|
58
|
+
end
|
51
59
|
end
|
52
60
|
end
|
53
61
|
end
|
@@ -27,6 +27,14 @@ module Stripe
|
|
27
27
|
attr_reader :phone_number
|
28
28
|
# The type of device used for tokenization.
|
29
29
|
attr_reader :type
|
30
|
+
|
31
|
+
def self.inner_class_types
|
32
|
+
@inner_class_types = {}
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.field_remappings
|
36
|
+
@field_remappings = {}
|
37
|
+
end
|
30
38
|
end
|
31
39
|
|
32
40
|
class Mastercard < Stripe::StripeObject
|
@@ -38,6 +46,14 @@ module Stripe
|
|
38
46
|
attr_reader :token_requestor_id
|
39
47
|
# The name of the entity requesting tokenization, if known. This is directly provided from MasterCard.
|
40
48
|
attr_reader :token_requestor_name
|
49
|
+
|
50
|
+
def self.inner_class_types
|
51
|
+
@inner_class_types = {}
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.field_remappings
|
55
|
+
@field_remappings = {}
|
56
|
+
end
|
41
57
|
end
|
42
58
|
|
43
59
|
class Visa < Stripe::StripeObject
|
@@ -49,6 +65,14 @@ module Stripe
|
|
49
65
|
attr_reader :token_requestor_id
|
50
66
|
# Degree of risk associated with the token between `01` and `99`, with higher number indicating higher risk. A `00` value indicates the token was not scored by Visa.
|
51
67
|
attr_reader :token_risk_score
|
68
|
+
|
69
|
+
def self.inner_class_types
|
70
|
+
@inner_class_types = {}
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.field_remappings
|
74
|
+
@field_remappings = {}
|
75
|
+
end
|
52
76
|
end
|
53
77
|
|
54
78
|
class WalletProvider < Stripe::StripeObject
|
@@ -57,6 +81,14 @@ module Stripe
|
|
57
81
|
attr_reader :line1
|
58
82
|
# The postal code of the cardholder tokenizing the card.
|
59
83
|
attr_reader :postal_code
|
84
|
+
|
85
|
+
def self.inner_class_types
|
86
|
+
@inner_class_types = {}
|
87
|
+
end
|
88
|
+
|
89
|
+
def self.field_remappings
|
90
|
+
@field_remappings = {}
|
91
|
+
end
|
60
92
|
end
|
61
93
|
# The wallet provider-given account ID of the digital wallet the token belongs to.
|
62
94
|
attr_reader :account_id
|
@@ -78,6 +110,14 @@ module Stripe
|
|
78
110
|
attr_reader :suggested_decision
|
79
111
|
# The version of the standard for mapping reason codes followed by the wallet provider.
|
80
112
|
attr_reader :suggested_decision_version
|
113
|
+
|
114
|
+
def self.inner_class_types
|
115
|
+
@inner_class_types = { cardholder_address: CardholderAddress }
|
116
|
+
end
|
117
|
+
|
118
|
+
def self.field_remappings
|
119
|
+
@field_remappings = {}
|
120
|
+
end
|
81
121
|
end
|
82
122
|
# Attribute for field device
|
83
123
|
attr_reader :device
|
@@ -89,6 +129,19 @@ module Stripe
|
|
89
129
|
attr_reader :visa
|
90
130
|
# Attribute for field wallet_provider
|
91
131
|
attr_reader :wallet_provider
|
132
|
+
|
133
|
+
def self.inner_class_types
|
134
|
+
@inner_class_types = {
|
135
|
+
device: Device,
|
136
|
+
mastercard: Mastercard,
|
137
|
+
visa: Visa,
|
138
|
+
wallet_provider: WalletProvider,
|
139
|
+
}
|
140
|
+
end
|
141
|
+
|
142
|
+
def self.field_remappings
|
143
|
+
@field_remappings = {}
|
144
|
+
end
|
92
145
|
end
|
93
146
|
|
94
147
|
class ListParams < Stripe::RequestParams
|
@@ -193,6 +246,14 @@ module Stripe
|
|
193
246
|
opts: opts
|
194
247
|
)
|
195
248
|
end
|
249
|
+
|
250
|
+
def self.inner_class_types
|
251
|
+
@inner_class_types = { network_data: NetworkData }
|
252
|
+
end
|
253
|
+
|
254
|
+
def self.field_remappings
|
255
|
+
@field_remappings = {}
|
256
|
+
end
|
196
257
|
end
|
197
258
|
end
|
198
259
|
end
|