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,5 +20,13 @@ module Stripe
|
|
20
20
|
attr_reader :livemode
|
21
21
|
# String representing the object's type. Objects of the same type share the same value.
|
22
22
|
attr_reader :object
|
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
|
end
|
@@ -22,6 +22,14 @@ module Stripe
|
|
22
22
|
attr_reader :additional
|
23
23
|
# Fields which every account must eventually provide.
|
24
24
|
attr_reader :minimum
|
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
|
|
27
35
|
class Individual < Stripe::StripeObject
|
@@ -29,11 +37,27 @@ module Stripe
|
|
29
37
|
attr_reader :additional
|
30
38
|
# Fields which every account must eventually provide.
|
31
39
|
attr_reader :minimum
|
40
|
+
|
41
|
+
def self.inner_class_types
|
42
|
+
@inner_class_types = {}
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.field_remappings
|
46
|
+
@field_remappings = {}
|
47
|
+
end
|
32
48
|
end
|
33
49
|
# Attribute for field company
|
34
50
|
attr_reader :company
|
35
51
|
# Attribute for field individual
|
36
52
|
attr_reader :individual
|
53
|
+
|
54
|
+
def self.inner_class_types
|
55
|
+
@inner_class_types = { company: Company, individual: Individual }
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.field_remappings
|
59
|
+
@field_remappings = {}
|
60
|
+
end
|
37
61
|
end
|
38
62
|
|
39
63
|
class ListParams < Stripe::RequestParams
|
@@ -74,5 +98,13 @@ module Stripe
|
|
74
98
|
def self.list(params = {}, opts = {})
|
75
99
|
request_stripe_object(method: :get, path: "/v1/country_specs", params: params, opts: opts)
|
76
100
|
end
|
101
|
+
|
102
|
+
def self.inner_class_types
|
103
|
+
@inner_class_types = { verification_fields: VerificationFields }
|
104
|
+
end
|
105
|
+
|
106
|
+
def self.field_remappings
|
107
|
+
@field_remappings = {}
|
108
|
+
end
|
77
109
|
end
|
78
110
|
end
|
@@ -19,11 +19,27 @@ module Stripe
|
|
19
19
|
class AppliesTo < Stripe::StripeObject
|
20
20
|
# A list of product IDs this coupon applies to
|
21
21
|
attr_reader :products
|
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 CurrencyOptions < Stripe::StripeObject
|
25
33
|
# Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
|
26
34
|
attr_reader :amount_off
|
35
|
+
|
36
|
+
def self.inner_class_types
|
37
|
+
@inner_class_types = {}
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.field_remappings
|
41
|
+
@field_remappings = {}
|
42
|
+
end
|
27
43
|
end
|
28
44
|
|
29
45
|
class Script < Stripe::StripeObject
|
@@ -33,6 +49,14 @@ module Stripe
|
|
33
49
|
attr_reader :display_name
|
34
50
|
# The script implementation ID for this coupon.
|
35
51
|
attr_reader :id
|
52
|
+
|
53
|
+
def self.inner_class_types
|
54
|
+
@inner_class_types = {}
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.field_remappings
|
58
|
+
@field_remappings = {}
|
59
|
+
end
|
36
60
|
end
|
37
61
|
|
38
62
|
class DeleteParams < Stripe::RequestParams; end
|
@@ -274,5 +298,17 @@ module Stripe
|
|
274
298
|
opts: opts
|
275
299
|
)
|
276
300
|
end
|
301
|
+
|
302
|
+
def self.inner_class_types
|
303
|
+
@inner_class_types = {
|
304
|
+
applies_to: AppliesTo,
|
305
|
+
currency_options: CurrencyOptions,
|
306
|
+
script: Script,
|
307
|
+
}
|
308
|
+
end
|
309
|
+
|
310
|
+
def self.field_remappings
|
311
|
+
@field_remappings = {}
|
312
|
+
end
|
277
313
|
end
|
278
314
|
end
|
@@ -20,6 +20,14 @@ module Stripe
|
|
20
20
|
attr_reader :amount
|
21
21
|
# The discount that was applied to get this discount amount.
|
22
22
|
attr_reader :discount
|
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 PretaxCreditAmount < Stripe::StripeObject
|
@@ -31,6 +39,14 @@ module Stripe
|
|
31
39
|
attr_reader :discount
|
32
40
|
# Type of the pretax credit amount referenced.
|
33
41
|
attr_reader :type
|
42
|
+
|
43
|
+
def self.inner_class_types
|
44
|
+
@inner_class_types = {}
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.field_remappings
|
48
|
+
@field_remappings = {}
|
49
|
+
end
|
34
50
|
end
|
35
51
|
|
36
52
|
class Refund < Stripe::StripeObject
|
@@ -38,6 +54,14 @@ module Stripe
|
|
38
54
|
attr_reader :amount_refunded
|
39
55
|
# ID of the refund.
|
40
56
|
attr_reader :refund
|
57
|
+
|
58
|
+
def self.inner_class_types
|
59
|
+
@inner_class_types = {}
|
60
|
+
end
|
61
|
+
|
62
|
+
def self.field_remappings
|
63
|
+
@field_remappings = {}
|
64
|
+
end
|
41
65
|
end
|
42
66
|
|
43
67
|
class ShippingCost < Stripe::StripeObject
|
@@ -52,6 +76,14 @@ module Stripe
|
|
52
76
|
attr_reader :taxability_reason
|
53
77
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
54
78
|
attr_reader :taxable_amount
|
79
|
+
|
80
|
+
def self.inner_class_types
|
81
|
+
@inner_class_types = {}
|
82
|
+
end
|
83
|
+
|
84
|
+
def self.field_remappings
|
85
|
+
@field_remappings = {}
|
86
|
+
end
|
55
87
|
end
|
56
88
|
# Total shipping cost before any taxes are applied.
|
57
89
|
attr_reader :amount_subtotal
|
@@ -63,12 +95,28 @@ module Stripe
|
|
63
95
|
attr_reader :shipping_rate
|
64
96
|
# The taxes applied to the shipping rate.
|
65
97
|
attr_reader :taxes
|
98
|
+
|
99
|
+
def self.inner_class_types
|
100
|
+
@inner_class_types = { taxes: Tax }
|
101
|
+
end
|
102
|
+
|
103
|
+
def self.field_remappings
|
104
|
+
@field_remappings = {}
|
105
|
+
end
|
66
106
|
end
|
67
107
|
|
68
108
|
class TotalTax < Stripe::StripeObject
|
69
109
|
class TaxRateDetails < Stripe::StripeObject
|
70
110
|
# Attribute for field tax_rate
|
71
111
|
attr_reader :tax_rate
|
112
|
+
|
113
|
+
def self.inner_class_types
|
114
|
+
@inner_class_types = {}
|
115
|
+
end
|
116
|
+
|
117
|
+
def self.field_remappings
|
118
|
+
@field_remappings = {}
|
119
|
+
end
|
72
120
|
end
|
73
121
|
# The amount of the tax, in cents (or local equivalent).
|
74
122
|
attr_reader :amount
|
@@ -82,6 +130,14 @@ module Stripe
|
|
82
130
|
attr_reader :taxable_amount
|
83
131
|
# The type of tax information.
|
84
132
|
attr_reader :type
|
133
|
+
|
134
|
+
def self.inner_class_types
|
135
|
+
@inner_class_types = { tax_rate_details: TaxRateDetails }
|
136
|
+
end
|
137
|
+
|
138
|
+
def self.field_remappings
|
139
|
+
@field_remappings = {}
|
140
|
+
end
|
85
141
|
end
|
86
142
|
|
87
143
|
class ListParams < Stripe::RequestParams
|
@@ -735,5 +791,19 @@ module Stripe
|
|
735
791
|
opts: opts
|
736
792
|
)
|
737
793
|
end
|
794
|
+
|
795
|
+
def self.inner_class_types
|
796
|
+
@inner_class_types = {
|
797
|
+
discount_amounts: DiscountAmount,
|
798
|
+
pretax_credit_amounts: PretaxCreditAmount,
|
799
|
+
refunds: Refund,
|
800
|
+
shipping_cost: ShippingCost,
|
801
|
+
total_taxes: TotalTax,
|
802
|
+
}
|
803
|
+
end
|
804
|
+
|
805
|
+
def self.field_remappings
|
806
|
+
@field_remappings = {}
|
807
|
+
end
|
738
808
|
end
|
739
809
|
end
|
@@ -14,6 +14,14 @@ module Stripe
|
|
14
14
|
attr_reader :amount
|
15
15
|
# The discount that was applied to get this discount amount.
|
16
16
|
attr_reader :discount
|
17
|
+
|
18
|
+
def self.inner_class_types
|
19
|
+
@inner_class_types = {}
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.field_remappings
|
23
|
+
@field_remappings = {}
|
24
|
+
end
|
17
25
|
end
|
18
26
|
|
19
27
|
class PretaxCreditAmount < Stripe::StripeObject
|
@@ -25,6 +33,14 @@ module Stripe
|
|
25
33
|
attr_reader :discount
|
26
34
|
# Type of the pretax credit amount referenced.
|
27
35
|
attr_reader :type
|
36
|
+
|
37
|
+
def self.inner_class_types
|
38
|
+
@inner_class_types = {}
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.field_remappings
|
42
|
+
@field_remappings = {}
|
43
|
+
end
|
28
44
|
end
|
29
45
|
|
30
46
|
class TaxCalculationReference < Stripe::StripeObject
|
@@ -32,12 +48,28 @@ module Stripe
|
|
32
48
|
attr_reader :calculation_id
|
33
49
|
# The calculation identifier for tax calculation response line item.
|
34
50
|
attr_reader :calculation_item_id
|
51
|
+
|
52
|
+
def self.inner_class_types
|
53
|
+
@inner_class_types = {}
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.field_remappings
|
57
|
+
@field_remappings = {}
|
58
|
+
end
|
35
59
|
end
|
36
60
|
|
37
61
|
class Tax < Stripe::StripeObject
|
38
62
|
class TaxRateDetails < Stripe::StripeObject
|
39
63
|
# Attribute for field tax_rate
|
40
64
|
attr_reader :tax_rate
|
65
|
+
|
66
|
+
def self.inner_class_types
|
67
|
+
@inner_class_types = {}
|
68
|
+
end
|
69
|
+
|
70
|
+
def self.field_remappings
|
71
|
+
@field_remappings = {}
|
72
|
+
end
|
41
73
|
end
|
42
74
|
# The amount of the tax, in cents (or local equivalent).
|
43
75
|
attr_reader :amount
|
@@ -51,6 +83,14 @@ module Stripe
|
|
51
83
|
attr_reader :taxable_amount
|
52
84
|
# The type of tax information.
|
53
85
|
attr_reader :type
|
86
|
+
|
87
|
+
def self.inner_class_types
|
88
|
+
@inner_class_types = { tax_rate_details: TaxRateDetails }
|
89
|
+
end
|
90
|
+
|
91
|
+
def self.field_remappings
|
92
|
+
@field_remappings = {}
|
93
|
+
end
|
54
94
|
end
|
55
95
|
# The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
|
56
96
|
attr_reader :amount
|
@@ -84,5 +124,18 @@ module Stripe
|
|
84
124
|
attr_reader :unit_amount
|
85
125
|
# Same as `unit_amount`, but contains a decimal value with at most 12 decimal places.
|
86
126
|
attr_reader :unit_amount_decimal
|
127
|
+
|
128
|
+
def self.inner_class_types
|
129
|
+
@inner_class_types = {
|
130
|
+
discount_amounts: DiscountAmount,
|
131
|
+
pretax_credit_amounts: PretaxCreditAmount,
|
132
|
+
tax_calculation_reference: TaxCalculationReference,
|
133
|
+
taxes: Tax,
|
134
|
+
}
|
135
|
+
end
|
136
|
+
|
137
|
+
def self.field_remappings
|
138
|
+
@field_remappings = {}
|
139
|
+
end
|
87
140
|
end
|
88
141
|
end
|
@@ -35,6 +35,14 @@ module Stripe
|
|
35
35
|
attr_reader :postal_code
|
36
36
|
# State, county, province, or region.
|
37
37
|
attr_reader :state
|
38
|
+
|
39
|
+
def self.inner_class_types
|
40
|
+
@inner_class_types = {}
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.field_remappings
|
44
|
+
@field_remappings = {}
|
45
|
+
end
|
38
46
|
end
|
39
47
|
|
40
48
|
class InvoiceSettings < Stripe::StripeObject
|
@@ -43,6 +51,14 @@ module Stripe
|
|
43
51
|
attr_reader :name
|
44
52
|
# The value of the custom field.
|
45
53
|
attr_reader :value
|
54
|
+
|
55
|
+
def self.inner_class_types
|
56
|
+
@inner_class_types = {}
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.field_remappings
|
60
|
+
@field_remappings = {}
|
61
|
+
end
|
46
62
|
end
|
47
63
|
|
48
64
|
class RenderingOptions < Stripe::StripeObject
|
@@ -50,6 +66,14 @@ module Stripe
|
|
50
66
|
attr_reader :amount_tax_display
|
51
67
|
# ID of the invoice rendering template to be used for this customer's invoices. If set, the template will be used on all invoices for this customer unless a template is set directly on the invoice.
|
52
68
|
attr_reader :template
|
69
|
+
|
70
|
+
def self.inner_class_types
|
71
|
+
@inner_class_types = {}
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.field_remappings
|
75
|
+
@field_remappings = {}
|
76
|
+
end
|
53
77
|
end
|
54
78
|
# Default custom fields to be displayed on invoices for this customer.
|
55
79
|
attr_reader :custom_fields
|
@@ -59,6 +83,14 @@ module Stripe
|
|
59
83
|
attr_reader :footer
|
60
84
|
# Default options for invoice PDF rendering for this customer.
|
61
85
|
attr_reader :rendering_options
|
86
|
+
|
87
|
+
def self.inner_class_types
|
88
|
+
@inner_class_types = { custom_fields: CustomField, rendering_options: RenderingOptions }
|
89
|
+
end
|
90
|
+
|
91
|
+
def self.field_remappings
|
92
|
+
@field_remappings = {}
|
93
|
+
end
|
62
94
|
end
|
63
95
|
|
64
96
|
class Shipping < Stripe::StripeObject
|
@@ -75,6 +107,14 @@ module Stripe
|
|
75
107
|
attr_reader :postal_code
|
76
108
|
# State, county, province, or region.
|
77
109
|
attr_reader :state
|
110
|
+
|
111
|
+
def self.inner_class_types
|
112
|
+
@inner_class_types = {}
|
113
|
+
end
|
114
|
+
|
115
|
+
def self.field_remappings
|
116
|
+
@field_remappings = {}
|
117
|
+
end
|
78
118
|
end
|
79
119
|
# Attribute for field address
|
80
120
|
attr_reader :address
|
@@ -86,6 +126,14 @@ module Stripe
|
|
86
126
|
attr_reader :phone
|
87
127
|
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
88
128
|
attr_reader :tracking_number
|
129
|
+
|
130
|
+
def self.inner_class_types
|
131
|
+
@inner_class_types = { address: Address }
|
132
|
+
end
|
133
|
+
|
134
|
+
def self.field_remappings
|
135
|
+
@field_remappings = {}
|
136
|
+
end
|
89
137
|
end
|
90
138
|
|
91
139
|
class Tax < Stripe::StripeObject
|
@@ -96,6 +144,14 @@ module Stripe
|
|
96
144
|
attr_reader :source
|
97
145
|
# The identified tax state, county, province, or region of the customer.
|
98
146
|
attr_reader :state
|
147
|
+
|
148
|
+
def self.inner_class_types
|
149
|
+
@inner_class_types = {}
|
150
|
+
end
|
151
|
+
|
152
|
+
def self.field_remappings
|
153
|
+
@field_remappings = {}
|
154
|
+
end
|
99
155
|
end
|
100
156
|
# Surfaces if automatic tax computation is possible given the current customer location information.
|
101
157
|
attr_reader :automatic_tax
|
@@ -103,6 +159,14 @@ module Stripe
|
|
103
159
|
attr_reader :ip_address
|
104
160
|
# The identified tax location of the customer.
|
105
161
|
attr_reader :location
|
162
|
+
|
163
|
+
def self.inner_class_types
|
164
|
+
@inner_class_types = { location: Location }
|
165
|
+
end
|
166
|
+
|
167
|
+
def self.field_remappings
|
168
|
+
@field_remappings = {}
|
169
|
+
end
|
106
170
|
end
|
107
171
|
|
108
172
|
class DeleteParams < Stripe::RequestParams; end
|
@@ -1038,5 +1102,18 @@ module Stripe
|
|
1038
1102
|
)
|
1039
1103
|
end
|
1040
1104
|
end
|
1105
|
+
|
1106
|
+
def self.inner_class_types
|
1107
|
+
@inner_class_types = {
|
1108
|
+
address: Address,
|
1109
|
+
invoice_settings: InvoiceSettings,
|
1110
|
+
shipping: Shipping,
|
1111
|
+
tax: Tax,
|
1112
|
+
}
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
def self.field_remappings
|
1116
|
+
@field_remappings = {}
|
1117
|
+
end
|
1041
1118
|
end
|
1042
1119
|
end
|
@@ -66,5 +66,13 @@ module Stripe
|
|
66
66
|
"Customer Balance Transactions cannot be retrieved without a customer ID. " \
|
67
67
|
"Update a Customer Balance Transaction using `Customer.update_balance_transaction('cus_123', 'cbtxn_123', params)`"
|
68
68
|
end
|
69
|
+
|
70
|
+
def self.inner_class_types
|
71
|
+
@inner_class_types = {}
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.field_remappings
|
75
|
+
@field_remappings = {}
|
76
|
+
end
|
69
77
|
end
|
70
78
|
end
|
@@ -17,11 +17,27 @@ module Stripe
|
|
17
17
|
attr_reader :balance_transaction
|
18
18
|
# The [Cash Balance Transaction](https://stripe.com/docs/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds.
|
19
19
|
attr_reader :linked_transaction
|
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
|
|
22
30
|
class AppliedToPayment < Stripe::StripeObject
|
23
31
|
# The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were applied to.
|
24
32
|
attr_reader :payment_intent
|
33
|
+
|
34
|
+
def self.inner_class_types
|
35
|
+
@inner_class_types = {}
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.field_remappings
|
39
|
+
@field_remappings = {}
|
40
|
+
end
|
25
41
|
end
|
26
42
|
|
27
43
|
class Funded < Stripe::StripeObject
|
@@ -33,6 +49,14 @@ module Stripe
|
|
33
49
|
attr_reader :iban_last4
|
34
50
|
# The full name of the sender, as supplied by the sending bank.
|
35
51
|
attr_reader :sender_name
|
52
|
+
|
53
|
+
def self.inner_class_types
|
54
|
+
@inner_class_types = {}
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.field_remappings
|
58
|
+
@field_remappings = {}
|
59
|
+
end
|
36
60
|
end
|
37
61
|
|
38
62
|
class GbBankTransfer < Stripe::StripeObject
|
@@ -42,6 +66,14 @@ module Stripe
|
|
42
66
|
attr_reader :sender_name
|
43
67
|
# The sort code of the bank of the sender of the funding
|
44
68
|
attr_reader :sort_code
|
69
|
+
|
70
|
+
def self.inner_class_types
|
71
|
+
@inner_class_types = {}
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.field_remappings
|
75
|
+
@field_remappings = {}
|
76
|
+
end
|
45
77
|
end
|
46
78
|
|
47
79
|
class JpBankTransfer < Stripe::StripeObject
|
@@ -51,6 +83,14 @@ module Stripe
|
|
51
83
|
attr_reader :sender_branch
|
52
84
|
# The full name of the sender, as supplied by the sending bank.
|
53
85
|
attr_reader :sender_name
|
86
|
+
|
87
|
+
def self.inner_class_types
|
88
|
+
@inner_class_types = {}
|
89
|
+
end
|
90
|
+
|
91
|
+
def self.field_remappings
|
92
|
+
@field_remappings = {}
|
93
|
+
end
|
54
94
|
end
|
55
95
|
|
56
96
|
class UsBankTransfer < Stripe::StripeObject
|
@@ -58,6 +98,14 @@ module Stripe
|
|
58
98
|
attr_reader :network
|
59
99
|
# The full name of the sender, as supplied by the sending bank.
|
60
100
|
attr_reader :sender_name
|
101
|
+
|
102
|
+
def self.inner_class_types
|
103
|
+
@inner_class_types = {}
|
104
|
+
end
|
105
|
+
|
106
|
+
def self.field_remappings
|
107
|
+
@field_remappings = {}
|
108
|
+
end
|
61
109
|
end
|
62
110
|
# Attribute for field eu_bank_transfer
|
63
111
|
attr_reader :eu_bank_transfer
|
@@ -71,24 +119,69 @@ module Stripe
|
|
71
119
|
attr_reader :type
|
72
120
|
# Attribute for field us_bank_transfer
|
73
121
|
attr_reader :us_bank_transfer
|
122
|
+
|
123
|
+
def self.inner_class_types
|
124
|
+
@inner_class_types = {
|
125
|
+
eu_bank_transfer: EuBankTransfer,
|
126
|
+
gb_bank_transfer: GbBankTransfer,
|
127
|
+
jp_bank_transfer: JpBankTransfer,
|
128
|
+
us_bank_transfer: UsBankTransfer,
|
129
|
+
}
|
130
|
+
end
|
131
|
+
|
132
|
+
def self.field_remappings
|
133
|
+
@field_remappings = {}
|
134
|
+
end
|
74
135
|
end
|
75
136
|
# Attribute for field bank_transfer
|
76
137
|
attr_reader :bank_transfer
|
138
|
+
|
139
|
+
def self.inner_class_types
|
140
|
+
@inner_class_types = { bank_transfer: BankTransfer }
|
141
|
+
end
|
142
|
+
|
143
|
+
def self.field_remappings
|
144
|
+
@field_remappings = {}
|
145
|
+
end
|
77
146
|
end
|
78
147
|
|
79
148
|
class RefundedFromPayment < Stripe::StripeObject
|
80
149
|
# The [Refund](https://stripe.com/docs/api/refunds/object) that moved these funds into the customer's cash balance.
|
81
150
|
attr_reader :refund
|
151
|
+
|
152
|
+
def self.inner_class_types
|
153
|
+
@inner_class_types = {}
|
154
|
+
end
|
155
|
+
|
156
|
+
def self.field_remappings
|
157
|
+
@field_remappings = {}
|
158
|
+
end
|
82
159
|
end
|
83
160
|
|
84
161
|
class TransferredToBalance < Stripe::StripeObject
|
85
162
|
# The [Balance Transaction](https://stripe.com/docs/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance.
|
86
163
|
attr_reader :balance_transaction
|
164
|
+
|
165
|
+
def self.inner_class_types
|
166
|
+
@inner_class_types = {}
|
167
|
+
end
|
168
|
+
|
169
|
+
def self.field_remappings
|
170
|
+
@field_remappings = {}
|
171
|
+
end
|
87
172
|
end
|
88
173
|
|
89
174
|
class UnappliedFromPayment < Stripe::StripeObject
|
90
175
|
# The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were unapplied from.
|
91
176
|
attr_reader :payment_intent
|
177
|
+
|
178
|
+
def self.inner_class_types
|
179
|
+
@inner_class_types = {}
|
180
|
+
end
|
181
|
+
|
182
|
+
def self.field_remappings
|
183
|
+
@field_remappings = {}
|
184
|
+
end
|
92
185
|
end
|
93
186
|
# Attribute for field adjusted_for_overdraft
|
94
187
|
attr_reader :adjusted_for_overdraft
|
@@ -122,5 +215,20 @@ module Stripe
|
|
122
215
|
attr_reader :type
|
123
216
|
# Attribute for field unapplied_from_payment
|
124
217
|
attr_reader :unapplied_from_payment
|
218
|
+
|
219
|
+
def self.inner_class_types
|
220
|
+
@inner_class_types = {
|
221
|
+
adjusted_for_overdraft: AdjustedForOverdraft,
|
222
|
+
applied_to_payment: AppliedToPayment,
|
223
|
+
funded: Funded,
|
224
|
+
refunded_from_payment: RefundedFromPayment,
|
225
|
+
transferred_to_balance: TransferredToBalance,
|
226
|
+
unapplied_from_payment: UnappliedFromPayment,
|
227
|
+
}
|
228
|
+
end
|
229
|
+
|
230
|
+
def self.field_remappings
|
231
|
+
@field_remappings = {}
|
232
|
+
end
|
125
233
|
end
|
126
234
|
end
|