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
@@ -18,6 +18,14 @@ module Stripe
|
|
18
18
|
attr_reader :fields
|
19
19
|
# Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
|
20
20
|
attr_reader :future_requirements
|
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
|
# Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow.
|
23
31
|
attr_reader :collection_options
|
@@ -27,6 +35,14 @@ module Stripe
|
|
27
35
|
attr_reader :refresh_url
|
28
36
|
# The URL that the user will be redirected to upon completing the linked flow.
|
29
37
|
attr_reader :return_url
|
38
|
+
|
39
|
+
def self.inner_class_types
|
40
|
+
@inner_class_types = { collection_options: CollectionOptions }
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.field_remappings
|
44
|
+
@field_remappings = {}
|
45
|
+
end
|
30
46
|
end
|
31
47
|
|
32
48
|
class AccountUpdate < Stripe::StripeObject
|
@@ -35,6 +51,14 @@ module Stripe
|
|
35
51
|
attr_reader :fields
|
36
52
|
# Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
|
37
53
|
attr_reader :future_requirements
|
54
|
+
|
55
|
+
def self.inner_class_types
|
56
|
+
@inner_class_types = {}
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.field_remappings
|
60
|
+
@field_remappings = {}
|
61
|
+
end
|
38
62
|
end
|
39
63
|
# Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow.
|
40
64
|
attr_reader :collection_options
|
@@ -44,6 +68,14 @@ module Stripe
|
|
44
68
|
attr_reader :refresh_url
|
45
69
|
# The URL that the user will be redirected to upon completing the linked flow.
|
46
70
|
attr_reader :return_url
|
71
|
+
|
72
|
+
def self.inner_class_types
|
73
|
+
@inner_class_types = { collection_options: CollectionOptions }
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.field_remappings
|
77
|
+
@field_remappings = {}
|
78
|
+
end
|
47
79
|
end
|
48
80
|
# Open Enum. The type of AccountLink the user is requesting.
|
49
81
|
attr_reader :type
|
@@ -51,6 +83,17 @@ module Stripe
|
|
51
83
|
attr_reader :account_onboarding
|
52
84
|
# Indicates that the AccountLink provided should update a previously onboarded account.
|
53
85
|
attr_reader :account_update
|
86
|
+
|
87
|
+
def self.inner_class_types
|
88
|
+
@inner_class_types = {
|
89
|
+
account_onboarding: AccountOnboarding,
|
90
|
+
account_update: AccountUpdate,
|
91
|
+
}
|
92
|
+
end
|
93
|
+
|
94
|
+
def self.field_remappings
|
95
|
+
@field_remappings = {}
|
96
|
+
end
|
54
97
|
end
|
55
98
|
# The ID of the Account the link was created for.
|
56
99
|
attr_reader :account
|
@@ -66,6 +109,14 @@ module Stripe
|
|
66
109
|
attr_reader :use_case
|
67
110
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
68
111
|
attr_reader :livemode
|
112
|
+
|
113
|
+
def self.inner_class_types
|
114
|
+
@inner_class_types = { use_case: UseCase }
|
115
|
+
end
|
116
|
+
|
117
|
+
def self.field_remappings
|
118
|
+
@field_remappings = {}
|
119
|
+
end
|
69
120
|
end
|
70
121
|
end
|
71
122
|
end
|
@@ -25,6 +25,14 @@ module Stripe
|
|
25
25
|
attr_reader :publishable
|
26
26
|
# Should be stored securely in server-side code (such as an environment variable).
|
27
27
|
attr_reader :secret
|
28
|
+
|
29
|
+
def self.inner_class_types
|
30
|
+
@inner_class_types = {}
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.field_remappings
|
34
|
+
@field_remappings = {}
|
35
|
+
end
|
28
36
|
end
|
29
37
|
|
30
38
|
class Prefill < Stripe::StripeObject
|
@@ -36,6 +44,14 @@ module Stripe
|
|
36
44
|
attr_reader :email
|
37
45
|
# Name for the sandbox.
|
38
46
|
attr_reader :name
|
47
|
+
|
48
|
+
def self.inner_class_types
|
49
|
+
@inner_class_types = {}
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.field_remappings
|
53
|
+
@field_remappings = {}
|
54
|
+
end
|
39
55
|
end
|
40
56
|
# Keys that can be used to set up an integration for this sandbox and operate on the account.
|
41
57
|
attr_reader :api_keys
|
@@ -51,6 +67,14 @@ module Stripe
|
|
51
67
|
attr_reader :prefill
|
52
68
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
53
69
|
attr_reader :livemode
|
70
|
+
|
71
|
+
def self.inner_class_types
|
72
|
+
@inner_class_types = { api_keys: ApiKeys, prefill: Prefill }
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.field_remappings
|
76
|
+
@field_remappings = {}
|
77
|
+
end
|
54
78
|
end
|
55
79
|
end
|
56
80
|
end
|
@@ -28,6 +28,14 @@ module Stripe
|
|
28
28
|
attr_reader :state
|
29
29
|
# Town or cho-me.
|
30
30
|
attr_reader :town
|
31
|
+
|
32
|
+
def self.inner_class_types
|
33
|
+
@inner_class_types = {}
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.field_remappings
|
37
|
+
@field_remappings = {}
|
38
|
+
end
|
31
39
|
end
|
32
40
|
|
33
41
|
class AdditionalName < Stripe::StripeObject
|
@@ -39,6 +47,14 @@ module Stripe
|
|
39
47
|
attr_reader :purpose
|
40
48
|
# The individual's last or family name.
|
41
49
|
attr_reader :surname
|
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 AdditionalTermsOfService < Stripe::StripeObject
|
@@ -49,9 +65,25 @@ module Stripe
|
|
49
65
|
attr_reader :ip
|
50
66
|
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
51
67
|
attr_reader :user_agent
|
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
|
# Stripe terms of service agreement.
|
54
78
|
attr_reader :account
|
79
|
+
|
80
|
+
def self.inner_class_types
|
81
|
+
@inner_class_types = { account: Account }
|
82
|
+
end
|
83
|
+
|
84
|
+
def self.field_remappings
|
85
|
+
@field_remappings = {}
|
86
|
+
end
|
55
87
|
end
|
56
88
|
|
57
89
|
class Address < Stripe::StripeObject
|
@@ -69,6 +101,14 @@ module Stripe
|
|
69
101
|
attr_reader :state
|
70
102
|
# Town or cho-me.
|
71
103
|
attr_reader :town
|
104
|
+
|
105
|
+
def self.inner_class_types
|
106
|
+
@inner_class_types = {}
|
107
|
+
end
|
108
|
+
|
109
|
+
def self.field_remappings
|
110
|
+
@field_remappings = {}
|
111
|
+
end
|
72
112
|
end
|
73
113
|
|
74
114
|
class DateOfBirth < Stripe::StripeObject
|
@@ -78,6 +118,14 @@ module Stripe
|
|
78
118
|
attr_reader :month
|
79
119
|
# The four-digit year of birth.
|
80
120
|
attr_reader :year
|
121
|
+
|
122
|
+
def self.inner_class_types
|
123
|
+
@inner_class_types = {}
|
124
|
+
end
|
125
|
+
|
126
|
+
def self.field_remappings
|
127
|
+
@field_remappings = {}
|
128
|
+
end
|
81
129
|
end
|
82
130
|
|
83
131
|
class Documents < Stripe::StripeObject
|
@@ -86,6 +134,14 @@ module Stripe
|
|
86
134
|
attr_reader :files
|
87
135
|
# The format of the document. Currently supports `files` only.
|
88
136
|
attr_reader :type
|
137
|
+
|
138
|
+
def self.inner_class_types
|
139
|
+
@inner_class_types = {}
|
140
|
+
end
|
141
|
+
|
142
|
+
def self.field_remappings
|
143
|
+
@field_remappings = {}
|
144
|
+
end
|
89
145
|
end
|
90
146
|
|
91
147
|
class Passport < Stripe::StripeObject
|
@@ -93,6 +149,14 @@ module Stripe
|
|
93
149
|
attr_reader :files
|
94
150
|
# The format of the document. Currently supports `files` only.
|
95
151
|
attr_reader :type
|
152
|
+
|
153
|
+
def self.inner_class_types
|
154
|
+
@inner_class_types = {}
|
155
|
+
end
|
156
|
+
|
157
|
+
def self.field_remappings
|
158
|
+
@field_remappings = {}
|
159
|
+
end
|
96
160
|
end
|
97
161
|
|
98
162
|
class PrimaryVerification < Stripe::StripeObject
|
@@ -101,11 +165,27 @@ module Stripe
|
|
101
165
|
attr_reader :back
|
102
166
|
# A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
103
167
|
attr_reader :front
|
168
|
+
|
169
|
+
def self.inner_class_types
|
170
|
+
@inner_class_types = {}
|
171
|
+
end
|
172
|
+
|
173
|
+
def self.field_remappings
|
174
|
+
@field_remappings = {}
|
175
|
+
end
|
104
176
|
end
|
105
177
|
# The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document.
|
106
178
|
attr_reader :front_back
|
107
179
|
# The format of the verification document. Currently supports `front_back` only.
|
108
180
|
attr_reader :type
|
181
|
+
|
182
|
+
def self.inner_class_types
|
183
|
+
@inner_class_types = { front_back: FrontBack }
|
184
|
+
end
|
185
|
+
|
186
|
+
def self.field_remappings
|
187
|
+
@field_remappings = {}
|
188
|
+
end
|
109
189
|
end
|
110
190
|
|
111
191
|
class SecondaryVerification < Stripe::StripeObject
|
@@ -114,11 +194,27 @@ module Stripe
|
|
114
194
|
attr_reader :back
|
115
195
|
# A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
116
196
|
attr_reader :front
|
197
|
+
|
198
|
+
def self.inner_class_types
|
199
|
+
@inner_class_types = {}
|
200
|
+
end
|
201
|
+
|
202
|
+
def self.field_remappings
|
203
|
+
@field_remappings = {}
|
204
|
+
end
|
117
205
|
end
|
118
206
|
# The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document.
|
119
207
|
attr_reader :front_back
|
120
208
|
# The format of the verification document. Currently supports `front_back` only.
|
121
209
|
attr_reader :type
|
210
|
+
|
211
|
+
def self.inner_class_types
|
212
|
+
@inner_class_types = { front_back: FrontBack }
|
213
|
+
end
|
214
|
+
|
215
|
+
def self.field_remappings
|
216
|
+
@field_remappings = {}
|
217
|
+
end
|
122
218
|
end
|
123
219
|
|
124
220
|
class Visa < Stripe::StripeObject
|
@@ -126,6 +222,14 @@ module Stripe
|
|
126
222
|
attr_reader :files
|
127
223
|
# The format of the document. Currently supports `files` only.
|
128
224
|
attr_reader :type
|
225
|
+
|
226
|
+
def self.inner_class_types
|
227
|
+
@inner_class_types = {}
|
228
|
+
end
|
229
|
+
|
230
|
+
def self.field_remappings
|
231
|
+
@field_remappings = {}
|
232
|
+
end
|
129
233
|
end
|
130
234
|
# One or more documents that demonstrate proof that this person is authorized to represent the company.
|
131
235
|
attr_reader :company_authorization
|
@@ -137,11 +241,33 @@ module Stripe
|
|
137
241
|
attr_reader :secondary_verification
|
138
242
|
# One or more documents showing the person’s visa required for living in the country where they are residing.
|
139
243
|
attr_reader :visa
|
244
|
+
|
245
|
+
def self.inner_class_types
|
246
|
+
@inner_class_types = {
|
247
|
+
company_authorization: CompanyAuthorization,
|
248
|
+
passport: Passport,
|
249
|
+
primary_verification: PrimaryVerification,
|
250
|
+
secondary_verification: SecondaryVerification,
|
251
|
+
visa: Visa,
|
252
|
+
}
|
253
|
+
end
|
254
|
+
|
255
|
+
def self.field_remappings
|
256
|
+
@field_remappings = {}
|
257
|
+
end
|
140
258
|
end
|
141
259
|
|
142
260
|
class IdNumber < Stripe::StripeObject
|
143
261
|
# The ID number type of an individual.
|
144
262
|
attr_reader :type
|
263
|
+
|
264
|
+
def self.inner_class_types
|
265
|
+
@inner_class_types = {}
|
266
|
+
end
|
267
|
+
|
268
|
+
def self.field_remappings
|
269
|
+
@field_remappings = {}
|
270
|
+
end
|
145
271
|
end
|
146
272
|
|
147
273
|
class Relationship < Stripe::StripeObject
|
@@ -161,6 +287,14 @@ module Stripe
|
|
161
287
|
attr_reader :representative
|
162
288
|
# The individual's title (e.g., CEO, Support Engineer).
|
163
289
|
attr_reader :title
|
290
|
+
|
291
|
+
def self.inner_class_types
|
292
|
+
@inner_class_types = {}
|
293
|
+
end
|
294
|
+
|
295
|
+
def self.field_remappings
|
296
|
+
@field_remappings = {}
|
297
|
+
end
|
164
298
|
end
|
165
299
|
|
166
300
|
class ScriptAddresses < Stripe::StripeObject
|
@@ -179,6 +313,14 @@ module Stripe
|
|
179
313
|
attr_reader :state
|
180
314
|
# Town or cho-me.
|
181
315
|
attr_reader :town
|
316
|
+
|
317
|
+
def self.inner_class_types
|
318
|
+
@inner_class_types = {}
|
319
|
+
end
|
320
|
+
|
321
|
+
def self.field_remappings
|
322
|
+
@field_remappings = {}
|
323
|
+
end
|
182
324
|
end
|
183
325
|
|
184
326
|
class Kanji < Stripe::StripeObject
|
@@ -196,11 +338,27 @@ module Stripe
|
|
196
338
|
attr_reader :state
|
197
339
|
# Town or cho-me.
|
198
340
|
attr_reader :town
|
341
|
+
|
342
|
+
def self.inner_class_types
|
343
|
+
@inner_class_types = {}
|
344
|
+
end
|
345
|
+
|
346
|
+
def self.field_remappings
|
347
|
+
@field_remappings = {}
|
348
|
+
end
|
199
349
|
end
|
200
350
|
# Kana Address.
|
201
351
|
attr_reader :kana
|
202
352
|
# Kanji Address.
|
203
353
|
attr_reader :kanji
|
354
|
+
|
355
|
+
def self.inner_class_types
|
356
|
+
@inner_class_types = { kana: Kana, kanji: Kanji }
|
357
|
+
end
|
358
|
+
|
359
|
+
def self.field_remappings
|
360
|
+
@field_remappings = {}
|
361
|
+
end
|
204
362
|
end
|
205
363
|
|
206
364
|
class ScriptNames < Stripe::StripeObject
|
@@ -209,6 +367,14 @@ module Stripe
|
|
209
367
|
attr_reader :given_name
|
210
368
|
# The person's last or family name.
|
211
369
|
attr_reader :surname
|
370
|
+
|
371
|
+
def self.inner_class_types
|
372
|
+
@inner_class_types = {}
|
373
|
+
end
|
374
|
+
|
375
|
+
def self.field_remappings
|
376
|
+
@field_remappings = {}
|
377
|
+
end
|
212
378
|
end
|
213
379
|
|
214
380
|
class Kanji < Stripe::StripeObject
|
@@ -216,11 +382,27 @@ module Stripe
|
|
216
382
|
attr_reader :given_name
|
217
383
|
# The person's last or family name.
|
218
384
|
attr_reader :surname
|
385
|
+
|
386
|
+
def self.inner_class_types
|
387
|
+
@inner_class_types = {}
|
388
|
+
end
|
389
|
+
|
390
|
+
def self.field_remappings
|
391
|
+
@field_remappings = {}
|
392
|
+
end
|
219
393
|
end
|
220
394
|
# Persons name in kana script.
|
221
395
|
attr_reader :kana
|
222
396
|
# Persons name in kanji script.
|
223
397
|
attr_reader :kanji
|
398
|
+
|
399
|
+
def self.inner_class_types
|
400
|
+
@inner_class_types = { kana: Kana, kanji: Kanji }
|
401
|
+
end
|
402
|
+
|
403
|
+
def self.field_remappings
|
404
|
+
@field_remappings = {}
|
405
|
+
end
|
224
406
|
end
|
225
407
|
# The account ID which the individual belongs to.
|
226
408
|
attr_reader :account
|
@@ -270,6 +452,25 @@ module Stripe
|
|
270
452
|
attr_reader :updated
|
271
453
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
272
454
|
attr_reader :livemode
|
455
|
+
|
456
|
+
def self.inner_class_types
|
457
|
+
@inner_class_types = {
|
458
|
+
additional_addresses: AdditionalAddress,
|
459
|
+
additional_names: AdditionalName,
|
460
|
+
additional_terms_of_service: AdditionalTermsOfService,
|
461
|
+
address: Address,
|
462
|
+
date_of_birth: DateOfBirth,
|
463
|
+
documents: Documents,
|
464
|
+
id_numbers: IdNumber,
|
465
|
+
relationship: Relationship,
|
466
|
+
script_addresses: ScriptAddresses,
|
467
|
+
script_names: ScriptNames,
|
468
|
+
}
|
469
|
+
end
|
470
|
+
|
471
|
+
def self.field_remappings
|
472
|
+
@field_remappings = {}
|
473
|
+
end
|
273
474
|
end
|
274
475
|
end
|
275
476
|
end
|
@@ -20,6 +20,14 @@ module Stripe
|
|
20
20
|
attr_reader :business_type
|
21
21
|
# The name given by the bank for this account, in case of a MATCH or PARTIAL_MATCH.
|
22
22
|
attr_reader :name
|
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 Provided < Stripe::StripeObject
|
@@ -27,6 +35,14 @@ module Stripe
|
|
27
35
|
attr_reader :business_type
|
28
36
|
# The provided or Legal Entity name to match against the CoP service.
|
29
37
|
attr_reader :name
|
38
|
+
|
39
|
+
def self.inner_class_types
|
40
|
+
@inner_class_types = {}
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.field_remappings
|
44
|
+
@field_remappings = {}
|
45
|
+
end
|
30
46
|
end
|
31
47
|
# When the CoP result was created.
|
32
48
|
attr_reader :created
|
@@ -38,11 +54,27 @@ module Stripe
|
|
38
54
|
attr_reader :message
|
39
55
|
# The fields that are matched against what the network has on file.
|
40
56
|
attr_reader :provided
|
57
|
+
|
58
|
+
def self.inner_class_types
|
59
|
+
@inner_class_types = { matched: Matched, provided: Provided }
|
60
|
+
end
|
61
|
+
|
62
|
+
def self.field_remappings
|
63
|
+
@field_remappings = {}
|
64
|
+
end
|
41
65
|
end
|
42
66
|
# The result of the Confirmation of Payee check, once the check has been initiated. Closed enum.
|
43
67
|
attr_reader :result
|
44
68
|
# The current state of Confirmation of Payee on this bank account. Closed enum.
|
45
69
|
attr_reader :status
|
70
|
+
|
71
|
+
def self.inner_class_types
|
72
|
+
@inner_class_types = { result: Result }
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.field_remappings
|
76
|
+
@field_remappings = {}
|
77
|
+
end
|
46
78
|
end
|
47
79
|
# Whether this bank account object was archived. Bank account objects can be archived through
|
48
80
|
# the /archive API, and they will not be automatically archived by Stripe. Archived bank account objects
|
@@ -67,6 +99,14 @@ module Stripe
|
|
67
99
|
attr_reader :sort_code
|
68
100
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
69
101
|
attr_reader :livemode
|
102
|
+
|
103
|
+
def self.inner_class_types
|
104
|
+
@inner_class_types = { confirmation_of_payee: ConfirmationOfPayee }
|
105
|
+
end
|
106
|
+
|
107
|
+
def self.field_remappings
|
108
|
+
@field_remappings = {}
|
109
|
+
end
|
70
110
|
end
|
71
111
|
end
|
72
112
|
end
|
@@ -32,6 +32,14 @@ module Stripe
|
|
32
32
|
attr_reader :routing_number
|
33
33
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
34
34
|
attr_reader :livemode
|
35
|
+
|
36
|
+
def self.inner_class_types
|
37
|
+
@inner_class_types = {}
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.field_remappings
|
41
|
+
@field_remappings = {}
|
42
|
+
end
|
35
43
|
end
|
36
44
|
end
|
37
45
|
end
|
@@ -16,11 +16,27 @@ module Stripe
|
|
16
16
|
attr_reader :id
|
17
17
|
# The idempotency key transmitted during the request.
|
18
18
|
attr_reader :idempotency_key
|
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
|
# Event reason type.
|
21
29
|
attr_reader :type
|
22
30
|
# Information on the API request that instigated the event.
|
23
31
|
attr_reader :request
|
32
|
+
|
33
|
+
def self.inner_class_types
|
34
|
+
@inner_class_types = { request: Request }
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.field_remappings
|
38
|
+
@field_remappings = {}
|
39
|
+
end
|
24
40
|
end
|
25
41
|
# Before and after changes for the primary related object.
|
26
42
|
attr_reader :changes
|
@@ -38,6 +54,14 @@ module Stripe
|
|
38
54
|
attr_reader :type
|
39
55
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
40
56
|
attr_reader :livemode
|
57
|
+
|
58
|
+
def self.inner_class_types
|
59
|
+
@inner_class_types = { reason: Reason }
|
60
|
+
end
|
61
|
+
|
62
|
+
def self.field_remappings
|
63
|
+
@field_remappings = {}
|
64
|
+
end
|
41
65
|
end
|
42
66
|
end
|
43
67
|
end
|
@@ -14,9 +14,25 @@ module Stripe
|
|
14
14
|
class Disabled < Stripe::StripeObject
|
15
15
|
# Reason event destination has been disabled.
|
16
16
|
attr_reader :reason
|
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
|
# Details about why the event destination has been disabled.
|
19
27
|
attr_reader :disabled
|
28
|
+
|
29
|
+
def self.inner_class_types
|
30
|
+
@inner_class_types = { disabled: Disabled }
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.field_remappings
|
34
|
+
@field_remappings = {}
|
35
|
+
end
|
20
36
|
end
|
21
37
|
|
22
38
|
class AmazonEventbridge < Stripe::StripeObject
|
@@ -26,6 +42,14 @@ module Stripe
|
|
26
42
|
attr_reader :aws_event_source_arn
|
27
43
|
# The state of the AWS event source.
|
28
44
|
attr_reader :aws_event_source_status
|
45
|
+
|
46
|
+
def self.inner_class_types
|
47
|
+
@inner_class_types = {}
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.field_remappings
|
51
|
+
@field_remappings = {}
|
52
|
+
end
|
29
53
|
end
|
30
54
|
|
31
55
|
class WebhookEndpoint < Stripe::StripeObject
|
@@ -33,6 +57,14 @@ module Stripe
|
|
33
57
|
attr_reader :signing_secret
|
34
58
|
# The URL of the webhook endpoint, includable.
|
35
59
|
attr_reader :url
|
60
|
+
|
61
|
+
def self.inner_class_types
|
62
|
+
@inner_class_types = {}
|
63
|
+
end
|
64
|
+
|
65
|
+
def self.field_remappings
|
66
|
+
@field_remappings = {}
|
67
|
+
end
|
36
68
|
end
|
37
69
|
# Time at which the object was created.
|
38
70
|
attr_reader :created
|
@@ -68,6 +100,18 @@ module Stripe
|
|
68
100
|
attr_reader :amazon_eventbridge
|
69
101
|
# Webhook endpoint configuration.
|
70
102
|
attr_reader :webhook_endpoint
|
103
|
+
|
104
|
+
def self.inner_class_types
|
105
|
+
@inner_class_types = {
|
106
|
+
status_details: StatusDetails,
|
107
|
+
amazon_eventbridge: AmazonEventbridge,
|
108
|
+
webhook_endpoint: WebhookEndpoint,
|
109
|
+
}
|
110
|
+
end
|
111
|
+
|
112
|
+
def self.field_remappings
|
113
|
+
@field_remappings = {}
|
114
|
+
end
|
71
115
|
end
|
72
116
|
end
|
73
117
|
end
|
@@ -15,6 +15,14 @@ module Stripe
|
|
15
15
|
attr_reader :status
|
16
16
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
17
17
|
attr_reader :livemode
|
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
|
end
|
20
28
|
end
|