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,9 +14,25 @@ module Stripe
|
|
14
14
|
class Tax < Stripe::StripeObject
|
15
15
|
# Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
|
16
16
|
attr_reader :type
|
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
|
# Settings for calculating tax.
|
19
27
|
attr_reader :tax
|
28
|
+
|
29
|
+
def self.inner_class_types
|
30
|
+
@inner_class_types = { tax: Tax }
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.field_remappings
|
34
|
+
@field_remappings = {}
|
35
|
+
end
|
20
36
|
end
|
21
37
|
|
22
38
|
class Invoice < Stripe::StripeObject
|
@@ -26,9 +42,25 @@ module Stripe
|
|
26
42
|
# The number of interval units. For example, if interval=day and interval_count=30,
|
27
43
|
# the invoice will be due in 30 days.
|
28
44
|
attr_reader :interval_count
|
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
|
# The amount of time until the invoice will be overdue for payment.
|
31
55
|
attr_reader :time_until_due
|
56
|
+
|
57
|
+
def self.inner_class_types
|
58
|
+
@inner_class_types = { time_until_due: TimeUntilDue }
|
59
|
+
end
|
60
|
+
|
61
|
+
def self.field_remappings
|
62
|
+
@field_remappings = {}
|
63
|
+
end
|
32
64
|
end
|
33
65
|
# Settings related to calculating a bill.
|
34
66
|
attr_reader :calculation
|
@@ -44,6 +76,14 @@ module Stripe
|
|
44
76
|
attr_reader :object
|
45
77
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
46
78
|
attr_reader :livemode
|
79
|
+
|
80
|
+
def self.inner_class_types
|
81
|
+
@inner_class_types = { calculation: Calculation, invoice: Invoice }
|
82
|
+
end
|
83
|
+
|
84
|
+
def self.field_remappings
|
85
|
+
@field_remappings = {}
|
86
|
+
end
|
47
87
|
end
|
48
88
|
end
|
49
89
|
end
|
@@ -23,9 +23,25 @@ module Stripe
|
|
23
23
|
# The second at which the billing cycle ends.
|
24
24
|
# Must be an integer between 0 and 59, inclusive.
|
25
25
|
attr_reader :second
|
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
|
# The time at which the billing cycle ends.
|
28
36
|
attr_reader :time
|
37
|
+
|
38
|
+
def self.inner_class_types
|
39
|
+
@inner_class_types = { time: Time }
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.field_remappings
|
43
|
+
@field_remappings = {}
|
44
|
+
end
|
29
45
|
end
|
30
46
|
|
31
47
|
class Month < Stripe::StripeObject
|
@@ -40,6 +56,14 @@ module Stripe
|
|
40
56
|
# The second at which the billing cycle ends.
|
41
57
|
# Must be an integer between 0 and 59, inclusive.
|
42
58
|
attr_reader :second
|
59
|
+
|
60
|
+
def self.inner_class_types
|
61
|
+
@inner_class_types = {}
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.field_remappings
|
65
|
+
@field_remappings = {}
|
66
|
+
end
|
43
67
|
end
|
44
68
|
# The day to anchor the billing on for a type="month" billing cycle from 1-31.
|
45
69
|
# If this number is greater than the number of days in the month being billed,
|
@@ -47,6 +71,14 @@ module Stripe
|
|
47
71
|
attr_reader :day_of_month
|
48
72
|
# The time at which the billing cycle ends.
|
49
73
|
attr_reader :time
|
74
|
+
|
75
|
+
def self.inner_class_types
|
76
|
+
@inner_class_types = { time: Time }
|
77
|
+
end
|
78
|
+
|
79
|
+
def self.field_remappings
|
80
|
+
@field_remappings = {}
|
81
|
+
end
|
50
82
|
end
|
51
83
|
|
52
84
|
class Week < Stripe::StripeObject
|
@@ -61,12 +93,28 @@ module Stripe
|
|
61
93
|
# The second at which the billing cycle ends.
|
62
94
|
# Must be an integer between 0 and 59, inclusive.
|
63
95
|
attr_reader :second
|
96
|
+
|
97
|
+
def self.inner_class_types
|
98
|
+
@inner_class_types = {}
|
99
|
+
end
|
100
|
+
|
101
|
+
def self.field_remappings
|
102
|
+
@field_remappings = {}
|
103
|
+
end
|
64
104
|
end
|
65
105
|
# The day of the week to bill the type=week billing cycle on.
|
66
106
|
# Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601 week day numbering.
|
67
107
|
attr_reader :day_of_week
|
68
108
|
# The time at which the billing cycle ends.
|
69
109
|
attr_reader :time
|
110
|
+
|
111
|
+
def self.inner_class_types
|
112
|
+
@inner_class_types = { time: Time }
|
113
|
+
end
|
114
|
+
|
115
|
+
def self.field_remappings
|
116
|
+
@field_remappings = {}
|
117
|
+
end
|
70
118
|
end
|
71
119
|
|
72
120
|
class Year < Stripe::StripeObject
|
@@ -81,6 +129,14 @@ module Stripe
|
|
81
129
|
# The second at which the billing cycle ends.
|
82
130
|
# Must be an integer between 0 and 59, inclusive.
|
83
131
|
attr_reader :second
|
132
|
+
|
133
|
+
def self.inner_class_types
|
134
|
+
@inner_class_types = {}
|
135
|
+
end
|
136
|
+
|
137
|
+
def self.field_remappings
|
138
|
+
@field_remappings = {}
|
139
|
+
end
|
84
140
|
end
|
85
141
|
# The day to anchor the billing on for a type="month" billing cycle from 1-31.
|
86
142
|
# If this number is greater than the number of days in the month being billed,
|
@@ -90,6 +146,14 @@ module Stripe
|
|
90
146
|
attr_reader :month_of_year
|
91
147
|
# The time at which the billing cycle ends.
|
92
148
|
attr_reader :time
|
149
|
+
|
150
|
+
def self.inner_class_types
|
151
|
+
@inner_class_types = { time: Time }
|
152
|
+
end
|
153
|
+
|
154
|
+
def self.field_remappings
|
155
|
+
@field_remappings = {}
|
156
|
+
end
|
93
157
|
end
|
94
158
|
# The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months.
|
95
159
|
attr_reader :interval_count
|
@@ -103,6 +167,14 @@ module Stripe
|
|
103
167
|
attr_reader :week
|
104
168
|
# Specific configuration for determining billing dates when type=year.
|
105
169
|
attr_reader :year
|
170
|
+
|
171
|
+
def self.inner_class_types
|
172
|
+
@inner_class_types = { day: Day, month: Month, week: Week, year: Year }
|
173
|
+
end
|
174
|
+
|
175
|
+
def self.field_remappings
|
176
|
+
@field_remappings = {}
|
177
|
+
end
|
106
178
|
end
|
107
179
|
|
108
180
|
class InvoiceDiscountRule < Stripe::StripeObject
|
@@ -110,11 +182,27 @@ module Stripe
|
|
110
182
|
class MaximumApplications < Stripe::StripeObject
|
111
183
|
# Max applications type of this discount, ex: indefinite.
|
112
184
|
attr_reader :type
|
185
|
+
|
186
|
+
def self.inner_class_types
|
187
|
+
@inner_class_types = {}
|
188
|
+
end
|
189
|
+
|
190
|
+
def self.field_remappings
|
191
|
+
@field_remappings = {}
|
192
|
+
end
|
113
193
|
end
|
114
194
|
# The maximum applications configuration for this discount.
|
115
195
|
attr_reader :maximum_applications
|
116
196
|
# Percent that will be taken off of the amount. For example, percent_off of 50.0 will make $100 amount $50 instead.
|
117
197
|
attr_reader :percent_off
|
198
|
+
|
199
|
+
def self.inner_class_types
|
200
|
+
@inner_class_types = { maximum_applications: MaximumApplications }
|
201
|
+
end
|
202
|
+
|
203
|
+
def self.field_remappings
|
204
|
+
@field_remappings = {}
|
205
|
+
end
|
118
206
|
end
|
119
207
|
# Unique identifier for the object.
|
120
208
|
attr_reader :id
|
@@ -122,6 +210,14 @@ module Stripe
|
|
122
210
|
attr_reader :type
|
123
211
|
# Details if the discount is a percentage off.
|
124
212
|
attr_reader :percent_off
|
213
|
+
|
214
|
+
def self.inner_class_types
|
215
|
+
@inner_class_types = { percent_off: PercentOff }
|
216
|
+
end
|
217
|
+
|
218
|
+
def self.field_remappings
|
219
|
+
@field_remappings = {}
|
220
|
+
end
|
125
221
|
end
|
126
222
|
|
127
223
|
class Payer < Stripe::StripeObject
|
@@ -131,6 +227,14 @@ module Stripe
|
|
131
227
|
attr_reader :customer
|
132
228
|
# A string identifying the type of the payer. Currently the only supported value is `customer`.
|
133
229
|
attr_reader :type
|
230
|
+
|
231
|
+
def self.inner_class_types
|
232
|
+
@inner_class_types = {}
|
233
|
+
end
|
234
|
+
|
235
|
+
def self.field_remappings
|
236
|
+
@field_remappings = {}
|
237
|
+
end
|
134
238
|
end
|
135
239
|
|
136
240
|
class Settings < Stripe::StripeObject
|
@@ -139,6 +243,14 @@ module Stripe
|
|
139
243
|
attr_reader :id
|
140
244
|
# Returns the Settings Version when the cadence is pinned to a specific version.
|
141
245
|
attr_reader :version
|
246
|
+
|
247
|
+
def self.inner_class_types
|
248
|
+
@inner_class_types = {}
|
249
|
+
end
|
250
|
+
|
251
|
+
def self.field_remappings
|
252
|
+
@field_remappings = {}
|
253
|
+
end
|
142
254
|
end
|
143
255
|
|
144
256
|
class Collection < Stripe::StripeObject
|
@@ -146,11 +258,27 @@ module Stripe
|
|
146
258
|
attr_reader :id
|
147
259
|
# Returns the Settings Version when the cadence is pinned to a specific version.
|
148
260
|
attr_reader :version
|
261
|
+
|
262
|
+
def self.inner_class_types
|
263
|
+
@inner_class_types = {}
|
264
|
+
end
|
265
|
+
|
266
|
+
def self.field_remappings
|
267
|
+
@field_remappings = {}
|
268
|
+
end
|
149
269
|
end
|
150
270
|
# Settings that configure bills generation, which includes calculating totals, tax, and presenting invoices.
|
151
271
|
attr_reader :bill
|
152
272
|
# Settings that configure and manage the behavior of collecting payments.
|
153
273
|
attr_reader :collection
|
274
|
+
|
275
|
+
def self.inner_class_types
|
276
|
+
@inner_class_types = { bill: Bill, collection: Collection }
|
277
|
+
end
|
278
|
+
|
279
|
+
def self.field_remappings
|
280
|
+
@field_remappings = {}
|
281
|
+
end
|
154
282
|
end
|
155
283
|
# The billing cycle is the object that defines future billing cycle dates.
|
156
284
|
attr_reader :billing_cycle
|
@@ -176,6 +304,19 @@ module Stripe
|
|
176
304
|
attr_reader :test_clock
|
177
305
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
178
306
|
attr_reader :livemode
|
307
|
+
|
308
|
+
def self.inner_class_types
|
309
|
+
@inner_class_types = {
|
310
|
+
billing_cycle: BillingCycle,
|
311
|
+
invoice_discount_rules: InvoiceDiscountRule,
|
312
|
+
payer: Payer,
|
313
|
+
settings: Settings,
|
314
|
+
}
|
315
|
+
end
|
316
|
+
|
317
|
+
def self.field_remappings
|
318
|
+
@field_remappings = {}
|
319
|
+
end
|
179
320
|
end
|
180
321
|
end
|
181
322
|
end
|
@@ -17,9 +17,25 @@ module Stripe
|
|
17
17
|
attr_reader :enabled
|
18
18
|
# If true the payment link to hosted invocie page would be included in email and PDF of the invoice.
|
19
19
|
attr_reader :include_payment_link
|
20
|
+
|
21
|
+
def self.inner_class_types
|
22
|
+
@inner_class_types = {}
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.field_remappings
|
26
|
+
@field_remappings = {}
|
27
|
+
end
|
20
28
|
end
|
21
29
|
# Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state.
|
22
30
|
attr_reader :payment_due
|
31
|
+
|
32
|
+
def self.inner_class_types
|
33
|
+
@inner_class_types = { payment_due: PaymentDue }
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.field_remappings
|
37
|
+
@field_remappings = {}
|
38
|
+
end
|
23
39
|
end
|
24
40
|
|
25
41
|
class PaymentMethodOptions < Stripe::StripeObject
|
@@ -27,16 +43,40 @@ module Stripe
|
|
27
43
|
class MandateOptions < Stripe::StripeObject
|
28
44
|
# Transaction type of the mandate.
|
29
45
|
attr_reader :transaction_type
|
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
|
# Additional fields for Mandate creation.
|
32
56
|
attr_reader :mandate_options
|
33
57
|
# Verification method.
|
34
58
|
attr_reader :verification_method
|
59
|
+
|
60
|
+
def self.inner_class_types
|
61
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.field_remappings
|
65
|
+
@field_remappings = {}
|
66
|
+
end
|
35
67
|
end
|
36
68
|
|
37
69
|
class Bancontact < Stripe::StripeObject
|
38
70
|
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
39
71
|
attr_reader :preferred_language
|
72
|
+
|
73
|
+
def self.inner_class_types
|
74
|
+
@inner_class_types = {}
|
75
|
+
end
|
76
|
+
|
77
|
+
def self.field_remappings
|
78
|
+
@field_remappings = {}
|
79
|
+
end
|
40
80
|
end
|
41
81
|
|
42
82
|
class Card < Stripe::StripeObject
|
@@ -47,6 +87,14 @@ module Stripe
|
|
47
87
|
attr_reader :amount_type
|
48
88
|
# A description of the mandate that is meant to be displayed to the customer.
|
49
89
|
attr_reader :description
|
90
|
+
|
91
|
+
def self.inner_class_types
|
92
|
+
@inner_class_types = {}
|
93
|
+
end
|
94
|
+
|
95
|
+
def self.field_remappings
|
96
|
+
@field_remappings = {}
|
97
|
+
end
|
50
98
|
end
|
51
99
|
# Configuration options for setting up an eMandate for cards issued in India.
|
52
100
|
attr_reader :mandate_options
|
@@ -57,6 +105,14 @@ module Stripe
|
|
57
105
|
# However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
|
58
106
|
# Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
59
107
|
attr_reader :request_three_d_secure
|
108
|
+
|
109
|
+
def self.inner_class_types
|
110
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
111
|
+
end
|
112
|
+
|
113
|
+
def self.field_remappings
|
114
|
+
@field_remappings = {}
|
115
|
+
end
|
60
116
|
end
|
61
117
|
|
62
118
|
class CustomerBalance < Stripe::StripeObject
|
@@ -64,26 +120,75 @@ module Stripe
|
|
64
120
|
class EuBankTransfer < Stripe::StripeObject
|
65
121
|
# The desired country code of the bank account information.
|
66
122
|
attr_reader :country
|
123
|
+
|
124
|
+
def self.inner_class_types
|
125
|
+
@inner_class_types = {}
|
126
|
+
end
|
127
|
+
|
128
|
+
def self.field_remappings
|
129
|
+
@field_remappings = {}
|
130
|
+
end
|
67
131
|
end
|
68
132
|
# Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`.
|
69
133
|
attr_reader :eu_bank_transfer
|
70
134
|
# The bank transfer type that can be used for funding.
|
71
135
|
attr_reader :type
|
136
|
+
|
137
|
+
def self.inner_class_types
|
138
|
+
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
139
|
+
end
|
140
|
+
|
141
|
+
def self.field_remappings
|
142
|
+
@field_remappings = {}
|
143
|
+
end
|
72
144
|
end
|
73
145
|
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
74
146
|
attr_reader :bank_transfer
|
75
147
|
# The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`.
|
76
148
|
attr_reader :funding_type
|
149
|
+
|
150
|
+
def self.inner_class_types
|
151
|
+
@inner_class_types = { bank_transfer: BankTransfer }
|
152
|
+
end
|
153
|
+
|
154
|
+
def self.field_remappings
|
155
|
+
@field_remappings = {}
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
class Konbini < Stripe::StripeObject
|
160
|
+
def self.inner_class_types
|
161
|
+
@inner_class_types = {}
|
162
|
+
end
|
163
|
+
|
164
|
+
def self.field_remappings
|
165
|
+
@field_remappings = {}
|
166
|
+
end
|
77
167
|
end
|
78
168
|
|
79
|
-
class
|
80
|
-
|
169
|
+
class SepaDebit < Stripe::StripeObject
|
170
|
+
def self.inner_class_types
|
171
|
+
@inner_class_types = {}
|
172
|
+
end
|
173
|
+
|
174
|
+
def self.field_remappings
|
175
|
+
@field_remappings = {}
|
176
|
+
end
|
177
|
+
end
|
81
178
|
|
82
179
|
class UsBankAccount < Stripe::StripeObject
|
83
180
|
class FinancialConnections < Stripe::StripeObject
|
84
181
|
class Filters < Stripe::StripeObject
|
85
182
|
# The account subcategories to use to filter for selectable accounts.
|
86
183
|
attr_reader :account_subcategories
|
184
|
+
|
185
|
+
def self.inner_class_types
|
186
|
+
@inner_class_types = {}
|
187
|
+
end
|
188
|
+
|
189
|
+
def self.field_remappings
|
190
|
+
@field_remappings = {}
|
191
|
+
end
|
87
192
|
end
|
88
193
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
89
194
|
attr_reader :filters
|
@@ -91,11 +196,27 @@ module Stripe
|
|
91
196
|
attr_reader :permissions
|
92
197
|
# List of data features that you would like to retrieve upon account creation.
|
93
198
|
attr_reader :prefetch
|
199
|
+
|
200
|
+
def self.inner_class_types
|
201
|
+
@inner_class_types = { filters: Filters }
|
202
|
+
end
|
203
|
+
|
204
|
+
def self.field_remappings
|
205
|
+
@field_remappings = {}
|
206
|
+
end
|
94
207
|
end
|
95
208
|
# Additional fields for Financial Connections Session creation.
|
96
209
|
attr_reader :financial_connections
|
97
210
|
# Verification method.
|
98
211
|
attr_reader :verification_method
|
212
|
+
|
213
|
+
def self.inner_class_types
|
214
|
+
@inner_class_types = { financial_connections: FinancialConnections }
|
215
|
+
end
|
216
|
+
|
217
|
+
def self.field_remappings
|
218
|
+
@field_remappings = {}
|
219
|
+
end
|
99
220
|
end
|
100
221
|
# This sub-hash contains details about the Canadian pre-authorized debit payment method options.
|
101
222
|
attr_reader :acss_debit
|
@@ -111,6 +232,22 @@ module Stripe
|
|
111
232
|
attr_reader :sepa_debit
|
112
233
|
# This sub-hash contains details about the ACH direct debit payment method options.
|
113
234
|
attr_reader :us_bank_account
|
235
|
+
|
236
|
+
def self.inner_class_types
|
237
|
+
@inner_class_types = {
|
238
|
+
acss_debit: AcssDebit,
|
239
|
+
bancontact: Bancontact,
|
240
|
+
card: Card,
|
241
|
+
customer_balance: CustomerBalance,
|
242
|
+
konbini: Konbini,
|
243
|
+
sepa_debit: SepaDebit,
|
244
|
+
us_bank_account: UsBankAccount,
|
245
|
+
}
|
246
|
+
end
|
247
|
+
|
248
|
+
def self.field_remappings
|
249
|
+
@field_remappings = {}
|
250
|
+
end
|
114
251
|
end
|
115
252
|
# Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
|
116
253
|
# bill at the end of the period using the payment method attached to the payer profile. When sending an invoice,
|
@@ -142,6 +279,17 @@ module Stripe
|
|
142
279
|
attr_reader :payment_method_options
|
143
280
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
144
281
|
attr_reader :livemode
|
282
|
+
|
283
|
+
def self.inner_class_types
|
284
|
+
@inner_class_types = {
|
285
|
+
email_delivery: EmailDelivery,
|
286
|
+
payment_method_options: PaymentMethodOptions,
|
287
|
+
}
|
288
|
+
end
|
289
|
+
|
290
|
+
def self.field_remappings
|
291
|
+
@field_remappings = {}
|
292
|
+
end
|
145
293
|
end
|
146
294
|
end
|
147
295
|
end
|