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
@@ -14,6 +14,14 @@ module Stripe
|
|
14
14
|
class DeliveryOptions < Stripe::StripeObject
|
15
15
|
# Open Enum. Method for bank account.
|
16
16
|
attr_reader :bank_account
|
17
|
+
|
18
|
+
def self.inner_class_types
|
19
|
+
@inner_class_types = {}
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.field_remappings
|
23
|
+
@field_remappings = {}
|
24
|
+
end
|
17
25
|
end
|
18
26
|
|
19
27
|
class From < Stripe::StripeObject
|
@@ -21,22 +29,54 @@ module Stripe
|
|
21
29
|
attr_reader :debited
|
22
30
|
# The FinancialAccount that funds were pulled from.
|
23
31
|
attr_reader :financial_account
|
32
|
+
|
33
|
+
def self.inner_class_types
|
34
|
+
@inner_class_types = {}
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.field_remappings
|
38
|
+
@field_remappings = {}
|
39
|
+
end
|
24
40
|
end
|
25
41
|
|
26
42
|
class StatusDetails < Stripe::StripeObject
|
27
43
|
class Failed < Stripe::StripeObject
|
28
44
|
# Open Enum. The `failed` status reason.
|
29
45
|
attr_reader :reason
|
46
|
+
|
47
|
+
def self.inner_class_types
|
48
|
+
@inner_class_types = {}
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.field_remappings
|
52
|
+
@field_remappings = {}
|
53
|
+
end
|
30
54
|
end
|
31
55
|
|
32
56
|
class Returned < Stripe::StripeObject
|
33
57
|
# Open Enum. The `returned` status reason.
|
34
58
|
attr_reader :reason
|
59
|
+
|
60
|
+
def self.inner_class_types
|
61
|
+
@inner_class_types = {}
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.field_remappings
|
65
|
+
@field_remappings = {}
|
66
|
+
end
|
35
67
|
end
|
36
68
|
# The `failed` status reason.
|
37
69
|
attr_reader :failed
|
38
70
|
# The `returned` status reason.
|
39
71
|
attr_reader :returned
|
72
|
+
|
73
|
+
def self.inner_class_types
|
74
|
+
@inner_class_types = { failed: Failed, returned: Returned }
|
75
|
+
end
|
76
|
+
|
77
|
+
def self.field_remappings
|
78
|
+
@field_remappings = {}
|
79
|
+
end
|
40
80
|
end
|
41
81
|
|
42
82
|
class StatusTransitions < Stripe::StripeObject
|
@@ -52,6 +92,14 @@ module Stripe
|
|
52
92
|
# Timestamp describing when an OutboundTransfer changed status to `returned`.
|
53
93
|
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
54
94
|
attr_reader :returned_at
|
95
|
+
|
96
|
+
def self.inner_class_types
|
97
|
+
@inner_class_types = {}
|
98
|
+
end
|
99
|
+
|
100
|
+
def self.field_remappings
|
101
|
+
@field_remappings = {}
|
102
|
+
end
|
55
103
|
end
|
56
104
|
|
57
105
|
class To < Stripe::StripeObject
|
@@ -59,6 +107,14 @@ module Stripe
|
|
59
107
|
attr_reader :credited
|
60
108
|
# The payout method which the OutboundTransfer uses to send payout.
|
61
109
|
attr_reader :payout_method
|
110
|
+
|
111
|
+
def self.inner_class_types
|
112
|
+
@inner_class_types = {}
|
113
|
+
end
|
114
|
+
|
115
|
+
def self.field_remappings
|
116
|
+
@field_remappings = {}
|
117
|
+
end
|
62
118
|
end
|
63
119
|
|
64
120
|
class TraceId < Stripe::StripeObject
|
@@ -69,6 +125,14 @@ module Stripe
|
|
69
125
|
attr_reader :status
|
70
126
|
# The trace ID value if `trace_id.status` is `supported`, otherwise empty.
|
71
127
|
attr_reader :value
|
128
|
+
|
129
|
+
def self.inner_class_types
|
130
|
+
@inner_class_types = {}
|
131
|
+
end
|
132
|
+
|
133
|
+
def self.field_remappings
|
134
|
+
@field_remappings = {}
|
135
|
+
end
|
72
136
|
end
|
73
137
|
# The "presentment amount" for the OutboundTransfer.
|
74
138
|
attr_reader :amount
|
@@ -111,6 +175,21 @@ module Stripe
|
|
111
175
|
attr_reader :trace_id
|
112
176
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
113
177
|
attr_reader :livemode
|
178
|
+
|
179
|
+
def self.inner_class_types
|
180
|
+
@inner_class_types = {
|
181
|
+
delivery_options: DeliveryOptions,
|
182
|
+
from: From,
|
183
|
+
status_details: StatusDetails,
|
184
|
+
status_transitions: StatusTransitions,
|
185
|
+
to: To,
|
186
|
+
trace_id: TraceId,
|
187
|
+
}
|
188
|
+
end
|
189
|
+
|
190
|
+
def self.field_remappings
|
191
|
+
@field_remappings = {}
|
192
|
+
end
|
114
193
|
end
|
115
194
|
end
|
116
195
|
end
|
@@ -16,6 +16,14 @@ module Stripe
|
|
16
16
|
attr_reader :payments
|
17
17
|
# Transfers status - used when making an OutboundTransfer (sending funds to yourself).
|
18
18
|
attr_reader :transfers
|
19
|
+
|
20
|
+
def self.inner_class_types
|
21
|
+
@inner_class_types = {}
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.field_remappings
|
25
|
+
@field_remappings = {}
|
26
|
+
end
|
19
27
|
end
|
20
28
|
|
21
29
|
class BankAccount < Stripe::StripeObject
|
@@ -37,6 +45,14 @@ module Stripe
|
|
37
45
|
attr_reader :routing_number
|
38
46
|
# The list of currencies supported by this bank account.
|
39
47
|
attr_reader :supported_currencies
|
48
|
+
|
49
|
+
def self.inner_class_types
|
50
|
+
@inner_class_types = {}
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.field_remappings
|
54
|
+
@field_remappings = {}
|
55
|
+
end
|
40
56
|
end
|
41
57
|
|
42
58
|
class Card < Stripe::StripeObject
|
@@ -50,6 +66,14 @@ module Stripe
|
|
50
66
|
attr_reader :exp_year
|
51
67
|
# The last 4 digits of the card number.
|
52
68
|
attr_reader :last4
|
69
|
+
|
70
|
+
def self.inner_class_types
|
71
|
+
@inner_class_types = {}
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.field_remappings
|
75
|
+
@field_remappings = {}
|
76
|
+
end
|
53
77
|
end
|
54
78
|
# A set of available payout speeds for this payout method.
|
55
79
|
attr_reader :available_payout_speeds
|
@@ -71,6 +95,14 @@ module Stripe
|
|
71
95
|
attr_reader :bank_account
|
72
96
|
# The PayoutMethodCard object details.
|
73
97
|
attr_reader :card
|
98
|
+
|
99
|
+
def self.inner_class_types
|
100
|
+
@inner_class_types = { usage_status: UsageStatus, bank_account: BankAccount, card: Card }
|
101
|
+
end
|
102
|
+
|
103
|
+
def self.field_remappings
|
104
|
+
@field_remappings = {}
|
105
|
+
end
|
74
106
|
end
|
75
107
|
end
|
76
108
|
end
|
@@ -18,6 +18,14 @@ module Stripe
|
|
18
18
|
attr_reader :content
|
19
19
|
# Attribute for field localization_key
|
20
20
|
attr_reader :localization_key
|
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
|
# The local name of the field.
|
23
31
|
attr_reader :local_name
|
@@ -33,9 +41,25 @@ module Stripe
|
|
33
41
|
attr_reader :stripe_name
|
34
42
|
# The validation regex of the field.
|
35
43
|
attr_reader :validation_regex
|
44
|
+
|
45
|
+
def self.inner_class_types
|
46
|
+
@inner_class_types = { local_name_human: LocalNameHuman }
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.field_remappings
|
50
|
+
@field_remappings = {}
|
51
|
+
end
|
36
52
|
end
|
37
53
|
# The list of fields for a country, along with associated information.
|
38
54
|
attr_reader :fields
|
55
|
+
|
56
|
+
def self.inner_class_types
|
57
|
+
@inner_class_types = { fields: Field }
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.field_remappings
|
61
|
+
@field_remappings = {}
|
62
|
+
end
|
39
63
|
end
|
40
64
|
# The list of specs by country.
|
41
65
|
attr_reader :countries
|
@@ -43,6 +67,14 @@ module Stripe
|
|
43
67
|
attr_reader :object
|
44
68
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
45
69
|
attr_reader :livemode
|
70
|
+
|
71
|
+
def self.inner_class_types
|
72
|
+
@inner_class_types = { countries: Countries }
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.field_remappings
|
76
|
+
@field_remappings = {}
|
77
|
+
end
|
46
78
|
end
|
47
79
|
end
|
48
80
|
end
|
@@ -15,16 +15,40 @@ module Stripe
|
|
15
15
|
class Failed < Stripe::StripeObject
|
16
16
|
# Open Enum. The `failed` status reason.
|
17
17
|
attr_reader :reason
|
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 Returned < Stripe::StripeObject
|
21
29
|
# Open Enum. The `returned` status reason.
|
22
30
|
attr_reader :reason
|
31
|
+
|
32
|
+
def self.inner_class_types
|
33
|
+
@inner_class_types = {}
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.field_remappings
|
37
|
+
@field_remappings = {}
|
38
|
+
end
|
23
39
|
end
|
24
40
|
# Hash that provides additional information regarding the reason behind a `failed` ReceivedCredit status. It is only present when the ReceivedCredit status is `failed`.
|
25
41
|
attr_reader :failed
|
26
42
|
# Hash that provides additional information regarding the reason behind a `returned` ReceivedCredit status. It is only present when the ReceivedCredit status is `returned`.
|
27
43
|
attr_reader :returned
|
44
|
+
|
45
|
+
def self.inner_class_types
|
46
|
+
@inner_class_types = { failed: Failed, returned: Returned }
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.field_remappings
|
50
|
+
@field_remappings = {}
|
51
|
+
end
|
28
52
|
end
|
29
53
|
|
30
54
|
class StatusTransitions < Stripe::StripeObject
|
@@ -37,6 +61,14 @@ module Stripe
|
|
37
61
|
# Timestamp describing when the ReceivedCredit was marked as `succeeded`.
|
38
62
|
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
39
63
|
attr_reader :succeeded_at
|
64
|
+
|
65
|
+
def self.inner_class_types
|
66
|
+
@inner_class_types = {}
|
67
|
+
end
|
68
|
+
|
69
|
+
def self.field_remappings
|
70
|
+
@field_remappings = {}
|
71
|
+
end
|
40
72
|
end
|
41
73
|
|
42
74
|
class BalanceTransfer < Stripe::StripeObject
|
@@ -50,6 +82,14 @@ module Stripe
|
|
50
82
|
attr_reader :outbound_transfer
|
51
83
|
# The ID of the payout object that originated the ReceivedCredit.
|
52
84
|
attr_reader :payout_v1
|
85
|
+
|
86
|
+
def self.inner_class_types
|
87
|
+
@inner_class_types = {}
|
88
|
+
end
|
89
|
+
|
90
|
+
def self.field_remappings
|
91
|
+
@field_remappings = {}
|
92
|
+
end
|
53
93
|
end
|
54
94
|
|
55
95
|
class BankTransfer < Stripe::StripeObject
|
@@ -64,6 +104,14 @@ module Stripe
|
|
64
104
|
attr_reader :network
|
65
105
|
# The sort code of the account that originated the transfer.
|
66
106
|
attr_reader :sort_code
|
107
|
+
|
108
|
+
def self.inner_class_types
|
109
|
+
@inner_class_types = {}
|
110
|
+
end
|
111
|
+
|
112
|
+
def self.field_remappings
|
113
|
+
@field_remappings = {}
|
114
|
+
end
|
67
115
|
end
|
68
116
|
|
69
117
|
class UsBankAccount < Stripe::StripeObject
|
@@ -75,6 +123,14 @@ module Stripe
|
|
75
123
|
attr_reader :network
|
76
124
|
# The routing number of the account that originated the transfer.
|
77
125
|
attr_reader :routing_number
|
126
|
+
|
127
|
+
def self.inner_class_types
|
128
|
+
@inner_class_types = {}
|
129
|
+
end
|
130
|
+
|
131
|
+
def self.field_remappings
|
132
|
+
@field_remappings = {}
|
133
|
+
end
|
78
134
|
end
|
79
135
|
# Financial Address on which funds for ReceivedCredit were received.
|
80
136
|
attr_reader :financial_address
|
@@ -86,6 +142,14 @@ module Stripe
|
|
86
142
|
attr_reader :gb_bank_account
|
87
143
|
# Hash containing the transaction bank details. Present if `payment_method_type` field value is `us_bank_account`.
|
88
144
|
attr_reader :us_bank_account
|
145
|
+
|
146
|
+
def self.inner_class_types
|
147
|
+
@inner_class_types = { gb_bank_account: GbBankAccount, us_bank_account: UsBankAccount }
|
148
|
+
end
|
149
|
+
|
150
|
+
def self.field_remappings
|
151
|
+
@field_remappings = {}
|
152
|
+
end
|
89
153
|
end
|
90
154
|
# The amount and currency of the ReceivedCredit.
|
91
155
|
attr_reader :amount
|
@@ -116,6 +180,19 @@ module Stripe
|
|
116
180
|
attr_reader :balance_transfer
|
117
181
|
# This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if `type` field value is `external_credit`.
|
118
182
|
attr_reader :bank_transfer
|
183
|
+
|
184
|
+
def self.inner_class_types
|
185
|
+
@inner_class_types = {
|
186
|
+
status_details: StatusDetails,
|
187
|
+
status_transitions: StatusTransitions,
|
188
|
+
balance_transfer: BalanceTransfer,
|
189
|
+
bank_transfer: BankTransfer,
|
190
|
+
}
|
191
|
+
end
|
192
|
+
|
193
|
+
def self.field_remappings
|
194
|
+
@field_remappings = {}
|
195
|
+
end
|
119
196
|
end
|
120
197
|
end
|
121
198
|
end
|
@@ -15,10 +15,26 @@ module Stripe
|
|
15
15
|
class Failed < Stripe::StripeObject
|
16
16
|
# Open Enum. The reason for the failure of the ReceivedDebit.
|
17
17
|
attr_reader :reason
|
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
|
# Information that elaborates on the `failed` status of a ReceivedDebit.
|
20
28
|
# It is only present when the ReceivedDebit status is `failed`.
|
21
29
|
attr_reader :failed
|
30
|
+
|
31
|
+
def self.inner_class_types
|
32
|
+
@inner_class_types = { failed: Failed }
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.field_remappings
|
36
|
+
@field_remappings = {}
|
37
|
+
end
|
22
38
|
end
|
23
39
|
|
24
40
|
class StatusTransitions < Stripe::StripeObject
|
@@ -31,6 +47,14 @@ module Stripe
|
|
31
47
|
# The time when the ReceivedDebit was marked as `succeeded`.
|
32
48
|
# Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`.
|
33
49
|
attr_reader :succeeded_at
|
50
|
+
|
51
|
+
def self.inner_class_types
|
52
|
+
@inner_class_types = {}
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.field_remappings
|
56
|
+
@field_remappings = {}
|
57
|
+
end
|
34
58
|
end
|
35
59
|
|
36
60
|
class BankTransfer < Stripe::StripeObject
|
@@ -41,6 +65,14 @@ module Stripe
|
|
41
65
|
attr_reader :network
|
42
66
|
# The routing number of the bank that originated the debit.
|
43
67
|
attr_reader :routing_number
|
68
|
+
|
69
|
+
def self.inner_class_types
|
70
|
+
@inner_class_types = {}
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.field_remappings
|
74
|
+
@field_remappings = {}
|
75
|
+
end
|
44
76
|
end
|
45
77
|
# The Financial Address that was debited.
|
46
78
|
attr_reader :financial_address
|
@@ -50,6 +82,14 @@ module Stripe
|
|
50
82
|
attr_reader :statement_descriptor
|
51
83
|
# The payment method used to originate the debit.
|
52
84
|
attr_reader :us_bank_account
|
85
|
+
|
86
|
+
def self.inner_class_types
|
87
|
+
@inner_class_types = { us_bank_account: UsBankAccount }
|
88
|
+
end
|
89
|
+
|
90
|
+
def self.field_remappings
|
91
|
+
@field_remappings = {}
|
92
|
+
end
|
53
93
|
end
|
54
94
|
# Amount and currency of the ReceivedDebit.
|
55
95
|
attr_reader :amount
|
@@ -78,6 +118,18 @@ module Stripe
|
|
78
118
|
attr_reader :livemode
|
79
119
|
# This object stores details about the originating banking transaction that resulted in the ReceivedDebit. Present if `type` field value is `bank_transfer`.
|
80
120
|
attr_reader :bank_transfer
|
121
|
+
|
122
|
+
def self.inner_class_types
|
123
|
+
@inner_class_types = {
|
124
|
+
status_details: StatusDetails,
|
125
|
+
status_transitions: StatusTransitions,
|
126
|
+
bank_transfer: BankTransfer,
|
127
|
+
}
|
128
|
+
end
|
129
|
+
|
130
|
+
def self.field_remappings
|
131
|
+
@field_remappings = {}
|
132
|
+
end
|
81
133
|
end
|
82
134
|
end
|
83
135
|
end
|
@@ -18,6 +18,14 @@ module Stripe
|
|
18
18
|
attr_reader :inbound_pending
|
19
19
|
# Impact to the outbound_pending balance.
|
20
20
|
attr_reader :outbound_pending
|
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
|
|
23
31
|
class Flow < Stripe::StripeObject
|
@@ -39,6 +47,14 @@ module Stripe
|
|
39
47
|
attr_reader :received_credit
|
40
48
|
# If applicable, the ID of the ReceivedDebit that created this Transaction.
|
41
49
|
attr_reader :received_debit
|
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 StatusTransitions < Stripe::StripeObject
|
@@ -46,6 +62,14 @@ module Stripe
|
|
46
62
|
attr_reader :posted_at
|
47
63
|
# The time at which the Transaction became void. Only present if status == void.
|
48
64
|
attr_reader :void_at
|
65
|
+
|
66
|
+
def self.inner_class_types
|
67
|
+
@inner_class_types = {}
|
68
|
+
end
|
69
|
+
|
70
|
+
def self.field_remappings
|
71
|
+
@field_remappings = {}
|
72
|
+
end
|
49
73
|
end
|
50
74
|
# The amount of the Transaction.
|
51
75
|
attr_reader :amount
|
@@ -74,6 +98,18 @@ module Stripe
|
|
74
98
|
attr_reader :status_transitions
|
75
99
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
76
100
|
attr_reader :livemode
|
101
|
+
|
102
|
+
def self.inner_class_types
|
103
|
+
@inner_class_types = {
|
104
|
+
balance_impact: BalanceImpact,
|
105
|
+
flow: Flow,
|
106
|
+
status_transitions: StatusTransitions,
|
107
|
+
}
|
108
|
+
end
|
109
|
+
|
110
|
+
def self.field_remappings
|
111
|
+
@field_remappings = {}
|
112
|
+
end
|
77
113
|
end
|
78
114
|
end
|
79
115
|
end
|
@@ -18,6 +18,14 @@ module Stripe
|
|
18
18
|
attr_reader :inbound_pending
|
19
19
|
# Impact to the outbound_pending balance.
|
20
20
|
attr_reader :outbound_pending
|
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
|
|
23
31
|
class TransactionDetails < Stripe::StripeObject
|
@@ -40,6 +48,14 @@ module Stripe
|
|
40
48
|
attr_reader :received_credit
|
41
49
|
# If applicable, the ID of the ReceivedDebit that created this Transaction.
|
42
50
|
attr_reader :received_debit
|
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
|
# Closed Enum for now, and will be turned into an Open Enum soon. A descriptive category used to classify the Transaction.
|
45
61
|
attr_reader :category
|
@@ -47,6 +63,14 @@ module Stripe
|
|
47
63
|
attr_reader :financial_account
|
48
64
|
# Details about the Flow object that created the Transaction.
|
49
65
|
attr_reader :flow
|
66
|
+
|
67
|
+
def self.inner_class_types
|
68
|
+
@inner_class_types = { flow: Flow }
|
69
|
+
end
|
70
|
+
|
71
|
+
def self.field_remappings
|
72
|
+
@field_remappings = {}
|
73
|
+
end
|
50
74
|
end
|
51
75
|
# The delta to the FinancialAccount's balance.
|
52
76
|
attr_reader :balance_impact
|
@@ -64,6 +88,17 @@ module Stripe
|
|
64
88
|
attr_reader :transaction_details
|
65
89
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
66
90
|
attr_reader :livemode
|
91
|
+
|
92
|
+
def self.inner_class_types
|
93
|
+
@inner_class_types = {
|
94
|
+
balance_impact: BalanceImpact,
|
95
|
+
transaction_details: TransactionDetails,
|
96
|
+
}
|
97
|
+
end
|
98
|
+
|
99
|
+
def self.field_remappings
|
100
|
+
@field_remappings = {}
|
101
|
+
end
|
67
102
|
end
|
68
103
|
end
|
69
104
|
end
|
@@ -16,6 +16,14 @@ module Stripe
|
|
16
16
|
attr_reader :attempts
|
17
17
|
# Indicates the strategy for how you want Stripe to retry the payment.
|
18
18
|
attr_reader :retry_strategy
|
19
|
+
|
20
|
+
def self.inner_class_types
|
21
|
+
@inner_class_types = {}
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.field_remappings
|
25
|
+
@field_remappings = {}
|
26
|
+
end
|
19
27
|
end
|
20
28
|
|
21
29
|
class TransferData < Stripe::StripeObject
|
@@ -30,6 +38,14 @@ module Stripe
|
|
30
38
|
# The account (if any) that the payment is attributed to for tax reporting, and
|
31
39
|
# where funds from the payment are transferred to after payment success.
|
32
40
|
attr_reader :destination
|
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
|
# The “presentment amount” to be collected from the customer.
|
35
51
|
attr_reader :amount_requested
|
@@ -83,6 +99,14 @@ module Stripe
|
|
83
99
|
attr_reader :test_clock
|
84
100
|
# The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts).
|
85
101
|
attr_reader :transfer_data
|
102
|
+
|
103
|
+
def self.inner_class_types
|
104
|
+
@inner_class_types = { retry_details: RetryDetails, transfer_data: TransferData }
|
105
|
+
end
|
106
|
+
|
107
|
+
def self.field_remappings
|
108
|
+
@field_remappings = {}
|
109
|
+
end
|
86
110
|
end
|
87
111
|
end
|
88
112
|
end
|