stripe 15.6.0.pre.alpha.1 → 15.6.0.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/API_VERSION +1 -1
- data/CHANGELOG.md +6 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/account.rb +443 -0
- data/lib/stripe/resources/account_link.rb +8 -0
- data/lib/stripe/resources/account_notice.rb +24 -0
- data/lib/stripe/resources/account_session.rb +435 -10
- data/lib/stripe/resources/apple_pay_domain.rb +8 -0
- data/lib/stripe/resources/application.rb +8 -0
- data/lib/stripe/resources/application_fee.rb +16 -0
- data/lib/stripe/resources/application_fee_refund.rb +8 -0
- data/lib/stripe/resources/apps/secret.rb +16 -0
- data/lib/stripe/resources/balance.rb +159 -0
- data/lib/stripe/resources/balance_settings.rb +40 -0
- data/lib/stripe/resources/balance_transaction.rb +16 -0
- data/lib/stripe/resources/bank_account.rb +40 -0
- data/lib/stripe/resources/billing/alert.rb +75 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +8 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +80 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +107 -0
- data/lib/stripe/resources/billing/credit_grant.rb +72 -0
- data/lib/stripe/resources/billing/meter.rb +45 -0
- data/lib/stripe/resources/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage_row.rb +8 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +122 -0
- data/lib/stripe/resources/billing_portal/session.rb +101 -0
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/capital/financing_offer.rb +24 -0
- data/lib/stripe/resources/capital/financing_summary.rb +24 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +24 -0
- data/lib/stripe/resources/card.rb +16 -0
- data/lib/stripe/resources/cash_balance.rb +16 -0
- data/lib/stripe/resources/charge.rb +1052 -16
- data/lib/stripe/resources/checkout/session.rb +950 -0
- data/lib/stripe/resources/climate/order.rb +32 -0
- data/lib/stripe/resources/climate/product.rb +16 -0
- data/lib/stripe/resources/climate/supplier.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +960 -38
- data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
- data/lib/stripe/resources/country_spec.rb +32 -0
- data/lib/stripe/resources/coupon.rb +36 -0
- data/lib/stripe/resources/credit_note.rb +70 -0
- data/lib/stripe/resources/credit_note_line_item.rb +53 -0
- data/lib/stripe/resources/customer.rb +77 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -0
- data/lib/stripe/resources/customer_session.rb +52 -0
- data/lib/stripe/resources/discount.rb +8 -0
- data/lib/stripe/resources/dispute.rb +166 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
- data/lib/stripe/resources/entitlements/feature.rb +8 -0
- data/lib/stripe/resources/ephemeral_key.rb +8 -0
- data/lib/stripe/resources/event.rb +56 -0
- data/lib/stripe/resources/exchange_rate.rb +8 -0
- data/lib/stripe/resources/file.rb +8 -0
- data/lib/stripe/resources/file_link.rb +8 -0
- data/lib/stripe/resources/financial_connections/account.rb +79 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
- data/lib/stripe/resources/financial_connections/institution.rb +53 -0
- data/lib/stripe/resources/financial_connections/session.rb +63 -1
- data/lib/stripe/resources/financial_connections/transaction.rb +16 -0
- data/lib/stripe/resources/forwarding/request.rb +52 -0
- data/lib/stripe/resources/funding_instructions.rb +193 -0
- data/lib/stripe/resources/fx_quote.rb +48 -0
- data/lib/stripe/resources/identity/verification_report.rb +166 -1
- data/lib/stripe/resources/identity/verification_session.rb +126 -1
- data/lib/stripe/resources/invoice.rb +441 -3
- data/lib/stripe/resources/invoice_item.rb +88 -0
- data/lib/stripe/resources/invoice_line_item.rb +186 -0
- data/lib/stripe/resources/invoice_payment.rb +24 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +8 -0
- data/lib/stripe/resources/issuing/authorization.rb +177 -0
- data/lib/stripe/resources/issuing/card.rb +96 -0
- data/lib/stripe/resources/issuing/cardholder.rb +110 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +82 -0
- data/lib/stripe/resources/issuing/dispute.rb +97 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +16 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +8 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +36 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +16 -0
- data/lib/stripe/resources/issuing/settlement.rb +8 -0
- data/lib/stripe/resources/issuing/token.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +151 -0
- data/lib/stripe/resources/line_item.rb +54 -0
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +242 -11
- data/lib/stripe/resources/margin.rb +8 -0
- data/lib/stripe/resources/order.rb +348 -0
- data/lib/stripe/resources/payment_attempt_record.rb +890 -11
- data/lib/stripe/resources/payment_intent.rb +1405 -3
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +56 -0
- data/lib/stripe/resources/payment_link.rb +337 -0
- data/lib/stripe/resources/payment_method.rb +884 -38
- data/lib/stripe/resources/payment_method_configuration.rb +961 -0
- data/lib/stripe/resources/payment_method_domain.rb +111 -0
- data/lib/stripe/resources/payment_record.rb +890 -11
- data/lib/stripe/resources/payout.rb +16 -0
- data/lib/stripe/resources/person.rb +180 -0
- data/lib/stripe/resources/plan.rb +24 -0
- data/lib/stripe/resources/price.rb +79 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +16 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +16 -0
- data/lib/stripe/resources/product.rb +27 -0
- data/lib/stripe/resources/product_feature.rb +8 -0
- data/lib/stripe/resources/promotion_code.rb +24 -0
- data/lib/stripe/resources/quote.rb +432 -0
- data/lib/stripe/resources/quote_line.rb +247 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +450 -3
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +323 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -0
- data/lib/stripe/resources/radar/value_list.rb +8 -0
- data/lib/stripe/resources/radar/value_list_item.rb +8 -0
- data/lib/stripe/resources/refund.rb +380 -19
- data/lib/stripe/resources/reporting/report_run.rb +16 -0
- data/lib/stripe/resources/reporting/report_type.rb +8 -0
- data/lib/stripe/resources/reserve_transaction.rb +8 -0
- data/lib/stripe/resources/reversal.rb +8 -0
- data/lib/stripe/resources/review.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +331 -20
- data/lib/stripe/resources/setup_intent.rb +293 -2
- data/lib/stripe/resources/shipping_rate.rb +48 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
- data/lib/stripe/resources/source.rb +274 -0
- data/lib/stripe/resources/source_mandate_notification.rb +32 -0
- data/lib/stripe/resources/source_transaction.rb +54 -0
- data/lib/stripe/resources/subscription.rb +318 -3
- data/lib/stripe/resources/subscription_item.rb +24 -0
- data/lib/stripe/resources/subscription_schedule.rb +314 -0
- data/lib/stripe/resources/tax/association.rb +32 -0
- data/lib/stripe/resources/tax/calculation.rb +109 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
- data/lib/stripe/resources/tax/form.rb +107 -0
- data/lib/stripe/resources/tax/registration.rb +1232 -0
- data/lib/stripe/resources/tax/settings.rb +61 -1
- data/lib/stripe/resources/tax/transaction.rb +93 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
- data/lib/stripe/resources/tax_code.rb +8 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
- data/lib/stripe/resources/tax_id.rb +24 -0
- data/lib/stripe/resources/tax_rate.rb +16 -0
- data/lib/stripe/resources/terminal/configuration.rb +299 -0
- data/lib/stripe/resources/terminal/connection_token.rb +8 -0
- data/lib/stripe/resources/terminal/location.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +24 -0
- data/lib/stripe/resources/terminal/reader.rb +241 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +24 -0
- data/lib/stripe/resources/token.rb +8 -0
- data/lib/stripe/resources/topup.rb +8 -0
- data/lib/stripe/resources/transfer.rb +8 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +16 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +24 -0
- data/lib/stripe/resources/treasury/financial_account.rb +61 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +192 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +69 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +106 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +114 -0
- data/lib/stripe/resources/treasury/received_credit.rb +97 -0
- data/lib/stripe/resources/treasury/received_debit.rb +89 -0
- data/lib/stripe/resources/treasury/transaction.rb +36 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +24 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +40 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +40 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +141 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +150 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +150 -2
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +8 -0
- data/lib/stripe/resources/v2/billing/intent.rb +27 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +195 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +24 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +8 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +24 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +27 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +8 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +36 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +27 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +8 -0
- data/lib/stripe/resources/v2/billing/profile.rb +8 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +8 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +36 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +27 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +8 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +115 -0
- data/lib/stripe/resources/v2/core/account.rb +1900 -0
- data/lib/stripe/resources/v2/core/account_link.rb +51 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +24 -0
- data/lib/stripe/resources/v2/core/person.rb +201 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +40 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +8 -0
- data/lib/stripe/resources/v2/event.rb +24 -0
- data/lib/stripe/resources/v2/event_destination.rb +44 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +8 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +8 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +61 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +32 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +90 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +88 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +62 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +24 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +79 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +32 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +32 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +77 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +52 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +36 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +35 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +24 -0
- data/lib/stripe/resources/v2/reporting/report.rb +52 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +69 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +8 -0
- data/lib/stripe/resources/webhook_endpoint.rb +8 -0
- data/lib/stripe/stripe_object.rb +25 -1
- data/lib/stripe/util.rb +9 -5
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +280174 -0
- metadata +3 -2
@@ -20,6 +20,14 @@ module Stripe
|
|
20
20
|
attr_reader :payout
|
21
21
|
# Type of object that created the application fee.
|
22
22
|
attr_reader :type
|
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 ListParams < Stripe::RequestParams
|
@@ -104,5 +112,13 @@ module Stripe
|
|
104
112
|
def self.list(params = {}, opts = {})
|
105
113
|
request_stripe_object(method: :get, path: "/v1/application_fees", params: params, opts: opts)
|
106
114
|
end
|
115
|
+
|
116
|
+
def self.inner_class_types
|
117
|
+
@inner_class_types = { fee_source: FeeSource }
|
118
|
+
end
|
119
|
+
|
120
|
+
def self.field_remappings
|
121
|
+
@field_remappings = {}
|
122
|
+
end
|
107
123
|
end
|
108
124
|
end
|
@@ -51,5 +51,13 @@ module Stripe
|
|
51
51
|
"application fee ID. Retrieve an application fee refund using " \
|
52
52
|
"`ApplicationFee.retrieve_refund('fee_id', 'refund_id')`"
|
53
53
|
end
|
54
|
+
|
55
|
+
def self.inner_class_types
|
56
|
+
@inner_class_types = {}
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.field_remappings
|
60
|
+
@field_remappings = {}
|
61
|
+
end
|
54
62
|
end
|
55
63
|
end
|
@@ -26,6 +26,14 @@ module Stripe
|
|
26
26
|
attr_reader :type
|
27
27
|
# The user ID, if type is set to "user"
|
28
28
|
attr_reader :user
|
29
|
+
|
30
|
+
def self.inner_class_types
|
31
|
+
@inner_class_types = {}
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.field_remappings
|
35
|
+
@field_remappings = {}
|
36
|
+
end
|
29
37
|
end
|
30
38
|
|
31
39
|
class ListParams < Stripe::RequestParams
|
@@ -191,6 +199,14 @@ module Stripe
|
|
191
199
|
def self.list(params = {}, opts = {})
|
192
200
|
request_stripe_object(method: :get, path: "/v1/apps/secrets", params: params, opts: opts)
|
193
201
|
end
|
202
|
+
|
203
|
+
def self.inner_class_types
|
204
|
+
@inner_class_types = { scope: Scope }
|
205
|
+
end
|
206
|
+
|
207
|
+
def self.field_remappings
|
208
|
+
@field_remappings = {}
|
209
|
+
end
|
194
210
|
end
|
195
211
|
end
|
196
212
|
end
|
@@ -22,6 +22,14 @@ module Stripe
|
|
22
22
|
attr_reader :card
|
23
23
|
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
24
24
|
attr_reader :fpx
|
25
|
+
|
26
|
+
def self.inner_class_types
|
27
|
+
@inner_class_types = {}
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.field_remappings
|
31
|
+
@field_remappings = {}
|
32
|
+
end
|
25
33
|
end
|
26
34
|
# Balance amount.
|
27
35
|
attr_reader :amount
|
@@ -29,6 +37,14 @@ module Stripe
|
|
29
37
|
attr_reader :currency
|
30
38
|
# Attribute for field source_types
|
31
39
|
attr_reader :source_types
|
40
|
+
|
41
|
+
def self.inner_class_types
|
42
|
+
@inner_class_types = { source_types: SourceTypes }
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.field_remappings
|
46
|
+
@field_remappings = {}
|
47
|
+
end
|
32
48
|
end
|
33
49
|
|
34
50
|
class ConnectReserved < Stripe::StripeObject
|
@@ -39,6 +55,14 @@ module Stripe
|
|
39
55
|
attr_reader :card
|
40
56
|
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
41
57
|
attr_reader :fpx
|
58
|
+
|
59
|
+
def self.inner_class_types
|
60
|
+
@inner_class_types = {}
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.field_remappings
|
64
|
+
@field_remappings = {}
|
65
|
+
end
|
42
66
|
end
|
43
67
|
# Balance amount.
|
44
68
|
attr_reader :amount
|
@@ -46,6 +70,14 @@ module Stripe
|
|
46
70
|
attr_reader :currency
|
47
71
|
# Attribute for field source_types
|
48
72
|
attr_reader :source_types
|
73
|
+
|
74
|
+
def self.inner_class_types
|
75
|
+
@inner_class_types = { source_types: SourceTypes }
|
76
|
+
end
|
77
|
+
|
78
|
+
def self.field_remappings
|
79
|
+
@field_remappings = {}
|
80
|
+
end
|
49
81
|
end
|
50
82
|
|
51
83
|
class InstantAvailable < Stripe::StripeObject
|
@@ -57,6 +89,14 @@ module Stripe
|
|
57
89
|
attr_reader :card
|
58
90
|
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
59
91
|
attr_reader :fpx
|
92
|
+
|
93
|
+
def self.inner_class_types
|
94
|
+
@inner_class_types = {}
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.field_remappings
|
98
|
+
@field_remappings = {}
|
99
|
+
end
|
60
100
|
end
|
61
101
|
# Net balance amount, subtracting fees from platform-set pricing.
|
62
102
|
attr_reader :amount
|
@@ -64,6 +104,14 @@ module Stripe
|
|
64
104
|
attr_reader :destination
|
65
105
|
# Attribute for field source_types
|
66
106
|
attr_reader :source_types
|
107
|
+
|
108
|
+
def self.inner_class_types
|
109
|
+
@inner_class_types = { source_types: SourceTypes }
|
110
|
+
end
|
111
|
+
|
112
|
+
def self.field_remappings
|
113
|
+
@field_remappings = {}
|
114
|
+
end
|
67
115
|
end
|
68
116
|
|
69
117
|
class SourceTypes < Stripe::StripeObject
|
@@ -73,6 +121,14 @@ module Stripe
|
|
73
121
|
attr_reader :card
|
74
122
|
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
75
123
|
attr_reader :fpx
|
124
|
+
|
125
|
+
def self.inner_class_types
|
126
|
+
@inner_class_types = {}
|
127
|
+
end
|
128
|
+
|
129
|
+
def self.field_remappings
|
130
|
+
@field_remappings = {}
|
131
|
+
end
|
76
132
|
end
|
77
133
|
# Balance amount.
|
78
134
|
attr_reader :amount
|
@@ -82,6 +138,14 @@ module Stripe
|
|
82
138
|
attr_reader :net_available
|
83
139
|
# Attribute for field source_types
|
84
140
|
attr_reader :source_types
|
141
|
+
|
142
|
+
def self.inner_class_types
|
143
|
+
@inner_class_types = { net_available: NetAvailable, source_types: SourceTypes }
|
144
|
+
end
|
145
|
+
|
146
|
+
def self.field_remappings
|
147
|
+
@field_remappings = {}
|
148
|
+
end
|
85
149
|
end
|
86
150
|
|
87
151
|
class Issuing < Stripe::StripeObject
|
@@ -93,6 +157,14 @@ module Stripe
|
|
93
157
|
attr_reader :card
|
94
158
|
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
95
159
|
attr_reader :fpx
|
160
|
+
|
161
|
+
def self.inner_class_types
|
162
|
+
@inner_class_types = {}
|
163
|
+
end
|
164
|
+
|
165
|
+
def self.field_remappings
|
166
|
+
@field_remappings = {}
|
167
|
+
end
|
96
168
|
end
|
97
169
|
# Balance amount.
|
98
170
|
attr_reader :amount
|
@@ -100,9 +172,25 @@ module Stripe
|
|
100
172
|
attr_reader :currency
|
101
173
|
# Attribute for field source_types
|
102
174
|
attr_reader :source_types
|
175
|
+
|
176
|
+
def self.inner_class_types
|
177
|
+
@inner_class_types = { source_types: SourceTypes }
|
178
|
+
end
|
179
|
+
|
180
|
+
def self.field_remappings
|
181
|
+
@field_remappings = {}
|
182
|
+
end
|
103
183
|
end
|
104
184
|
# Funds that are available for use.
|
105
185
|
attr_reader :available
|
186
|
+
|
187
|
+
def self.inner_class_types
|
188
|
+
@inner_class_types = { available: Available }
|
189
|
+
end
|
190
|
+
|
191
|
+
def self.field_remappings
|
192
|
+
@field_remappings = {}
|
193
|
+
end
|
106
194
|
end
|
107
195
|
|
108
196
|
class Pending < Stripe::StripeObject
|
@@ -113,6 +201,14 @@ module Stripe
|
|
113
201
|
attr_reader :card
|
114
202
|
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
115
203
|
attr_reader :fpx
|
204
|
+
|
205
|
+
def self.inner_class_types
|
206
|
+
@inner_class_types = {}
|
207
|
+
end
|
208
|
+
|
209
|
+
def self.field_remappings
|
210
|
+
@field_remappings = {}
|
211
|
+
end
|
116
212
|
end
|
117
213
|
# Balance amount.
|
118
214
|
attr_reader :amount
|
@@ -120,6 +216,14 @@ module Stripe
|
|
120
216
|
attr_reader :currency
|
121
217
|
# Attribute for field source_types
|
122
218
|
attr_reader :source_types
|
219
|
+
|
220
|
+
def self.inner_class_types
|
221
|
+
@inner_class_types = { source_types: SourceTypes }
|
222
|
+
end
|
223
|
+
|
224
|
+
def self.field_remappings
|
225
|
+
@field_remappings = {}
|
226
|
+
end
|
123
227
|
end
|
124
228
|
|
125
229
|
class RefundAndDisputePrefunding < Stripe::StripeObject
|
@@ -131,6 +235,14 @@ module Stripe
|
|
131
235
|
attr_reader :card
|
132
236
|
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
133
237
|
attr_reader :fpx
|
238
|
+
|
239
|
+
def self.inner_class_types
|
240
|
+
@inner_class_types = {}
|
241
|
+
end
|
242
|
+
|
243
|
+
def self.field_remappings
|
244
|
+
@field_remappings = {}
|
245
|
+
end
|
134
246
|
end
|
135
247
|
# Balance amount.
|
136
248
|
attr_reader :amount
|
@@ -138,6 +250,14 @@ module Stripe
|
|
138
250
|
attr_reader :currency
|
139
251
|
# Attribute for field source_types
|
140
252
|
attr_reader :source_types
|
253
|
+
|
254
|
+
def self.inner_class_types
|
255
|
+
@inner_class_types = { source_types: SourceTypes }
|
256
|
+
end
|
257
|
+
|
258
|
+
def self.field_remappings
|
259
|
+
@field_remappings = {}
|
260
|
+
end
|
141
261
|
end
|
142
262
|
|
143
263
|
class Pending < Stripe::StripeObject
|
@@ -148,6 +268,14 @@ module Stripe
|
|
148
268
|
attr_reader :card
|
149
269
|
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
150
270
|
attr_reader :fpx
|
271
|
+
|
272
|
+
def self.inner_class_types
|
273
|
+
@inner_class_types = {}
|
274
|
+
end
|
275
|
+
|
276
|
+
def self.field_remappings
|
277
|
+
@field_remappings = {}
|
278
|
+
end
|
151
279
|
end
|
152
280
|
# Balance amount.
|
153
281
|
attr_reader :amount
|
@@ -155,11 +283,27 @@ module Stripe
|
|
155
283
|
attr_reader :currency
|
156
284
|
# Attribute for field source_types
|
157
285
|
attr_reader :source_types
|
286
|
+
|
287
|
+
def self.inner_class_types
|
288
|
+
@inner_class_types = { source_types: SourceTypes }
|
289
|
+
end
|
290
|
+
|
291
|
+
def self.field_remappings
|
292
|
+
@field_remappings = {}
|
293
|
+
end
|
158
294
|
end
|
159
295
|
# Funds that are available for use.
|
160
296
|
attr_reader :available
|
161
297
|
# Funds that are pending
|
162
298
|
attr_reader :pending
|
299
|
+
|
300
|
+
def self.inner_class_types
|
301
|
+
@inner_class_types = { available: Available, pending: Pending }
|
302
|
+
end
|
303
|
+
|
304
|
+
def self.field_remappings
|
305
|
+
@field_remappings = {}
|
306
|
+
end
|
163
307
|
end
|
164
308
|
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
165
309
|
attr_reader :available
|
@@ -177,5 +321,20 @@ module Stripe
|
|
177
321
|
attr_reader :pending
|
178
322
|
# Attribute for field refund_and_dispute_prefunding
|
179
323
|
attr_reader :refund_and_dispute_prefunding
|
324
|
+
|
325
|
+
def self.inner_class_types
|
326
|
+
@inner_class_types = {
|
327
|
+
available: Available,
|
328
|
+
connect_reserved: ConnectReserved,
|
329
|
+
instant_available: InstantAvailable,
|
330
|
+
issuing: Issuing,
|
331
|
+
pending: Pending,
|
332
|
+
refund_and_dispute_prefunding: RefundAndDisputePrefunding,
|
333
|
+
}
|
334
|
+
end
|
335
|
+
|
336
|
+
def self.field_remappings
|
337
|
+
@field_remappings = {}
|
338
|
+
end
|
180
339
|
end
|
181
340
|
end
|
@@ -24,6 +24,14 @@ module Stripe
|
|
24
24
|
attr_reader :monthly_payout_days
|
25
25
|
# The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
|
26
26
|
attr_reader :weekly_payout_days
|
27
|
+
|
28
|
+
def self.inner_class_types
|
29
|
+
@inner_class_types = {}
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.field_remappings
|
33
|
+
@field_remappings = {}
|
34
|
+
end
|
27
35
|
end
|
28
36
|
# Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
|
29
37
|
attr_reader :schedule
|
@@ -31,11 +39,27 @@ module Stripe
|
|
31
39
|
attr_reader :statement_descriptor
|
32
40
|
# Whether the funds in this account can be paid out.
|
33
41
|
attr_reader :status
|
42
|
+
|
43
|
+
def self.inner_class_types
|
44
|
+
@inner_class_types = { schedule: Schedule }
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.field_remappings
|
48
|
+
@field_remappings = {}
|
49
|
+
end
|
34
50
|
end
|
35
51
|
|
36
52
|
class SettlementTiming < Stripe::StripeObject
|
37
53
|
# The number of days charge funds are held before becoming available.
|
38
54
|
attr_reader :delay_days
|
55
|
+
|
56
|
+
def self.inner_class_types
|
57
|
+
@inner_class_types = {}
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.field_remappings
|
61
|
+
@field_remappings = {}
|
62
|
+
end
|
39
63
|
end
|
40
64
|
# A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
|
41
65
|
attr_reader :debit_negative_balances
|
@@ -43,6 +67,14 @@ module Stripe
|
|
43
67
|
attr_reader :payouts
|
44
68
|
# Attribute for field settlement_timing
|
45
69
|
attr_reader :settlement_timing
|
70
|
+
|
71
|
+
def self.inner_class_types
|
72
|
+
@inner_class_types = { payouts: Payouts, settlement_timing: SettlementTiming }
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.field_remappings
|
76
|
+
@field_remappings = {}
|
77
|
+
end
|
46
78
|
end
|
47
79
|
|
48
80
|
class UpdateParams < Stripe::RequestParams
|
@@ -108,5 +140,13 @@ module Stripe
|
|
108
140
|
attr_reader :object
|
109
141
|
# Attribute for field payments
|
110
142
|
attr_reader :payments
|
143
|
+
|
144
|
+
def self.inner_class_types
|
145
|
+
@inner_class_types = { payments: Payments }
|
146
|
+
end
|
147
|
+
|
148
|
+
def self.field_remappings
|
149
|
+
@field_remappings = {}
|
150
|
+
end
|
111
151
|
end
|
112
152
|
end
|
@@ -25,6 +25,14 @@ module Stripe
|
|
25
25
|
attr_reader :description
|
26
26
|
# Type of the fee, one of: `application_fee`, `payment_method_passthrough_fee`, `stripe_fee` or `tax`.
|
27
27
|
attr_reader :type
|
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 ListParams < Stripe::RequestParams
|
@@ -130,5 +138,13 @@ module Stripe
|
|
130
138
|
opts: opts
|
131
139
|
)
|
132
140
|
end
|
141
|
+
|
142
|
+
def self.inner_class_types
|
143
|
+
@inner_class_types = { fee_details: FeeDetail }
|
144
|
+
end
|
145
|
+
|
146
|
+
def self.field_remappings
|
147
|
+
@field_remappings = {}
|
148
|
+
end
|
133
149
|
end
|
134
150
|
end
|
@@ -27,6 +27,14 @@ module Stripe
|
|
27
27
|
attr_reader :reason
|
28
28
|
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
29
29
|
attr_reader :requirement
|
30
|
+
|
31
|
+
def self.inner_class_types
|
32
|
+
@inner_class_types = {}
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.field_remappings
|
36
|
+
@field_remappings = {}
|
37
|
+
end
|
30
38
|
end
|
31
39
|
# Fields that need to be collected to keep the external account enabled. If not collected by `current_deadline`, these fields appear in `past_due` as well, and the account is disabled.
|
32
40
|
attr_reader :currently_due
|
@@ -36,6 +44,14 @@ module Stripe
|
|
36
44
|
attr_reader :past_due
|
37
45
|
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
38
46
|
attr_reader :pending_verification
|
47
|
+
|
48
|
+
def self.inner_class_types
|
49
|
+
@inner_class_types = { errors: Error }
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.field_remappings
|
53
|
+
@field_remappings = {}
|
54
|
+
end
|
39
55
|
end
|
40
56
|
|
41
57
|
class Requirements < Stripe::StripeObject
|
@@ -46,6 +62,14 @@ module Stripe
|
|
46
62
|
attr_reader :reason
|
47
63
|
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
48
64
|
attr_reader :requirement
|
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
|
# Fields that need to be collected to keep the external account enabled. If not collected by `current_deadline`, these fields appear in `past_due` as well, and the account is disabled.
|
51
75
|
attr_reader :currently_due
|
@@ -55,6 +79,14 @@ module Stripe
|
|
55
79
|
attr_reader :past_due
|
56
80
|
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
57
81
|
attr_reader :pending_verification
|
82
|
+
|
83
|
+
def self.inner_class_types
|
84
|
+
@inner_class_types = { errors: Error }
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.field_remappings
|
88
|
+
@field_remappings = {}
|
89
|
+
end
|
58
90
|
end
|
59
91
|
# The account this bank account belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an [External Account](/api/external_account_bank_accounts/object) where [controller.is_controller](/api/accounts/object#account_object-controller-is_controller) is `true`.
|
60
92
|
attr_reader :account
|
@@ -170,5 +202,13 @@ module Stripe
|
|
170
202
|
"`Customer.list_sources('customer_id')` " \
|
171
203
|
"or `Account.list_external_accounts('account_id')`"
|
172
204
|
end
|
205
|
+
|
206
|
+
def self.inner_class_types
|
207
|
+
@inner_class_types = { future_requirements: FutureRequirements, requirements: Requirements }
|
208
|
+
end
|
209
|
+
|
210
|
+
def self.field_remappings
|
211
|
+
@field_remappings = {}
|
212
|
+
end
|
173
213
|
end
|
174
214
|
end
|
@@ -19,6 +19,14 @@ module Stripe
|
|
19
19
|
attr_reader :customer
|
20
20
|
# Attribute for field type
|
21
21
|
attr_reader :type
|
22
|
+
|
23
|
+
def self.inner_class_types
|
24
|
+
@inner_class_types = {}
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.field_remappings
|
28
|
+
@field_remappings = {}
|
29
|
+
end
|
22
30
|
end
|
23
31
|
|
24
32
|
class Lte < Stripe::StripeObject
|
@@ -36,6 +44,14 @@ module Stripe
|
|
36
44
|
attr_reader :metadata
|
37
45
|
# The status of the custom pricing unit.
|
38
46
|
attr_reader :status
|
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
|
# The custom pricing unit object.
|
41
57
|
attr_reader :custom_pricing_unit_details
|
@@ -43,6 +59,14 @@ module Stripe
|
|
43
59
|
attr_reader :id
|
44
60
|
# A positive decimal string representing the amount.
|
45
61
|
attr_reader :value
|
62
|
+
|
63
|
+
def self.inner_class_types
|
64
|
+
@inner_class_types = { custom_pricing_unit_details: CustomPricingUnitDetails }
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.field_remappings
|
68
|
+
@field_remappings = {}
|
69
|
+
end
|
46
70
|
end
|
47
71
|
|
48
72
|
class Monetary < Stripe::StripeObject
|
@@ -50,6 +74,14 @@ module Stripe
|
|
50
74
|
attr_reader :currency
|
51
75
|
# A positive integer representing the amount.
|
52
76
|
attr_reader :value
|
77
|
+
|
78
|
+
def self.inner_class_types
|
79
|
+
@inner_class_types = {}
|
80
|
+
end
|
81
|
+
|
82
|
+
def self.field_remappings
|
83
|
+
@field_remappings = {}
|
84
|
+
end
|
53
85
|
end
|
54
86
|
# The type of this balance. We currently only support `monetary` amounts.
|
55
87
|
attr_reader :balance_type
|
@@ -57,11 +89,27 @@ module Stripe
|
|
57
89
|
attr_reader :custom_pricing_unit
|
58
90
|
# The monetary amount.
|
59
91
|
attr_reader :monetary
|
92
|
+
|
93
|
+
def self.inner_class_types
|
94
|
+
@inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary }
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.field_remappings
|
98
|
+
@field_remappings = {}
|
99
|
+
end
|
60
100
|
end
|
61
101
|
# The filters allow limiting the scope of this credit balance alert. You must specify only a customer filter at this time.
|
62
102
|
attr_reader :filters
|
63
103
|
# Attribute for field lte
|
64
104
|
attr_reader :lte
|
105
|
+
|
106
|
+
def self.inner_class_types
|
107
|
+
@inner_class_types = { filters: Filter, lte: Lte }
|
108
|
+
end
|
109
|
+
|
110
|
+
def self.field_remappings
|
111
|
+
@field_remappings = {}
|
112
|
+
end
|
65
113
|
end
|
66
114
|
|
67
115
|
class UsageThreshold < Stripe::StripeObject
|
@@ -70,6 +118,14 @@ module Stripe
|
|
70
118
|
attr_reader :customer
|
71
119
|
# Attribute for field type
|
72
120
|
attr_reader :type
|
121
|
+
|
122
|
+
def self.inner_class_types
|
123
|
+
@inner_class_types = {}
|
124
|
+
end
|
125
|
+
|
126
|
+
def self.field_remappings
|
127
|
+
@field_remappings = {}
|
128
|
+
end
|
73
129
|
end
|
74
130
|
# The filters allow limiting the scope of this usage alert. You can only specify up to one filter at this time.
|
75
131
|
attr_reader :filters
|
@@ -79,6 +135,14 @@ module Stripe
|
|
79
135
|
attr_reader :meter
|
80
136
|
# Defines how the alert will behave.
|
81
137
|
attr_reader :recurrence
|
138
|
+
|
139
|
+
def self.inner_class_types
|
140
|
+
@inner_class_types = { filters: Filter }
|
141
|
+
end
|
142
|
+
|
143
|
+
def self.field_remappings
|
144
|
+
@field_remappings = {}
|
145
|
+
end
|
82
146
|
end
|
83
147
|
|
84
148
|
class ListParams < Stripe::RequestParams
|
@@ -344,6 +408,17 @@ module Stripe
|
|
344
408
|
def self.list(params = {}, opts = {})
|
345
409
|
request_stripe_object(method: :get, path: "/v1/billing/alerts", params: params, opts: opts)
|
346
410
|
end
|
411
|
+
|
412
|
+
def self.inner_class_types
|
413
|
+
@inner_class_types = {
|
414
|
+
credit_balance_threshold: CreditBalanceThreshold,
|
415
|
+
usage_threshold: UsageThreshold,
|
416
|
+
}
|
417
|
+
end
|
418
|
+
|
419
|
+
def self.field_remappings
|
420
|
+
@field_remappings = {}
|
421
|
+
end
|
347
422
|
end
|
348
423
|
end
|
349
424
|
end
|
@@ -27,6 +27,14 @@ module Stripe
|
|
27
27
|
attr_reader :object
|
28
28
|
# The value triggering the alert
|
29
29
|
attr_reader :value
|
30
|
+
|
31
|
+
def self.inner_class_types
|
32
|
+
@inner_class_types = {}
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.field_remappings
|
36
|
+
@field_remappings = {}
|
37
|
+
end
|
30
38
|
end
|
31
39
|
end
|
32
40
|
end
|