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
@@ -26,6 +26,14 @@ module Stripe
|
|
26
26
|
attr_reader :metadata
|
27
27
|
# The status of the custom pricing unit.
|
28
28
|
attr_reader :status
|
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
|
# The custom pricing unit object.
|
31
39
|
attr_reader :custom_pricing_unit_details
|
@@ -33,6 +41,14 @@ module Stripe
|
|
33
41
|
attr_reader :id
|
34
42
|
# A positive integer representing the amount.
|
35
43
|
attr_reader :value
|
44
|
+
|
45
|
+
def self.inner_class_types
|
46
|
+
@inner_class_types = { custom_pricing_unit_details: CustomPricingUnitDetails }
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.field_remappings
|
50
|
+
@field_remappings = {}
|
51
|
+
end
|
36
52
|
end
|
37
53
|
|
38
54
|
class Monetary < Stripe::StripeObject
|
@@ -40,6 +56,14 @@ module Stripe
|
|
40
56
|
attr_reader :currency
|
41
57
|
# A positive integer representing the amount.
|
42
58
|
attr_reader :value
|
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 custom pricing unit amount.
|
45
69
|
attr_reader :custom_pricing_unit
|
@@ -47,6 +71,14 @@ module Stripe
|
|
47
71
|
attr_reader :monetary
|
48
72
|
# The type of this amount. We currently only support `monetary` billing credits.
|
49
73
|
attr_reader :type
|
74
|
+
|
75
|
+
def self.inner_class_types
|
76
|
+
@inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary }
|
77
|
+
end
|
78
|
+
|
79
|
+
def self.field_remappings
|
80
|
+
@field_remappings = {}
|
81
|
+
end
|
50
82
|
end
|
51
83
|
|
52
84
|
class LedgerBalance < Stripe::StripeObject
|
@@ -64,6 +96,14 @@ module Stripe
|
|
64
96
|
attr_reader :metadata
|
65
97
|
# The status of the custom pricing unit.
|
66
98
|
attr_reader :status
|
99
|
+
|
100
|
+
def self.inner_class_types
|
101
|
+
@inner_class_types = {}
|
102
|
+
end
|
103
|
+
|
104
|
+
def self.field_remappings
|
105
|
+
@field_remappings = {}
|
106
|
+
end
|
67
107
|
end
|
68
108
|
# The custom pricing unit object.
|
69
109
|
attr_reader :custom_pricing_unit_details
|
@@ -71,6 +111,14 @@ module Stripe
|
|
71
111
|
attr_reader :id
|
72
112
|
# A positive integer representing the amount.
|
73
113
|
attr_reader :value
|
114
|
+
|
115
|
+
def self.inner_class_types
|
116
|
+
@inner_class_types = { custom_pricing_unit_details: CustomPricingUnitDetails }
|
117
|
+
end
|
118
|
+
|
119
|
+
def self.field_remappings
|
120
|
+
@field_remappings = {}
|
121
|
+
end
|
74
122
|
end
|
75
123
|
|
76
124
|
class Monetary < Stripe::StripeObject
|
@@ -78,6 +126,14 @@ module Stripe
|
|
78
126
|
attr_reader :currency
|
79
127
|
# A positive integer representing the amount.
|
80
128
|
attr_reader :value
|
129
|
+
|
130
|
+
def self.inner_class_types
|
131
|
+
@inner_class_types = {}
|
132
|
+
end
|
133
|
+
|
134
|
+
def self.field_remappings
|
135
|
+
@field_remappings = {}
|
136
|
+
end
|
81
137
|
end
|
82
138
|
# The custom pricing unit amount.
|
83
139
|
attr_reader :custom_pricing_unit
|
@@ -85,11 +141,27 @@ module Stripe
|
|
85
141
|
attr_reader :monetary
|
86
142
|
# The type of this amount. We currently only support `monetary` billing credits.
|
87
143
|
attr_reader :type
|
144
|
+
|
145
|
+
def self.inner_class_types
|
146
|
+
@inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary }
|
147
|
+
end
|
148
|
+
|
149
|
+
def self.field_remappings
|
150
|
+
@field_remappings = {}
|
151
|
+
end
|
88
152
|
end
|
89
153
|
# Attribute for field available_balance
|
90
154
|
attr_reader :available_balance
|
91
155
|
# Attribute for field ledger_balance
|
92
156
|
attr_reader :ledger_balance
|
157
|
+
|
158
|
+
def self.inner_class_types
|
159
|
+
@inner_class_types = { available_balance: AvailableBalance, ledger_balance: LedgerBalance }
|
160
|
+
end
|
161
|
+
|
162
|
+
def self.field_remappings
|
163
|
+
@field_remappings = {}
|
164
|
+
end
|
93
165
|
end
|
94
166
|
# The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry.
|
95
167
|
attr_reader :balances
|
@@ -101,6 +173,14 @@ module Stripe
|
|
101
173
|
attr_reader :livemode
|
102
174
|
# String representing the object's type. Objects of the same type share the same value.
|
103
175
|
attr_reader :object
|
176
|
+
|
177
|
+
def self.inner_class_types
|
178
|
+
@inner_class_types = { balances: Balance }
|
179
|
+
end
|
180
|
+
|
181
|
+
def self.field_remappings
|
182
|
+
@field_remappings = {}
|
183
|
+
end
|
104
184
|
end
|
105
185
|
end
|
106
186
|
end
|
@@ -28,6 +28,14 @@ module Stripe
|
|
28
28
|
attr_reader :metadata
|
29
29
|
# The status of the custom pricing unit.
|
30
30
|
attr_reader :status
|
31
|
+
|
32
|
+
def self.inner_class_types
|
33
|
+
@inner_class_types = {}
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.field_remappings
|
37
|
+
@field_remappings = {}
|
38
|
+
end
|
31
39
|
end
|
32
40
|
# The custom pricing unit object.
|
33
41
|
attr_reader :custom_pricing_unit_details
|
@@ -35,6 +43,14 @@ module Stripe
|
|
35
43
|
attr_reader :id
|
36
44
|
# A positive integer representing the amount.
|
37
45
|
attr_reader :value
|
46
|
+
|
47
|
+
def self.inner_class_types
|
48
|
+
@inner_class_types = { custom_pricing_unit_details: CustomPricingUnitDetails }
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.field_remappings
|
52
|
+
@field_remappings = {}
|
53
|
+
end
|
38
54
|
end
|
39
55
|
|
40
56
|
class Monetary < Stripe::StripeObject
|
@@ -42,6 +58,14 @@ module Stripe
|
|
42
58
|
attr_reader :currency
|
43
59
|
# A positive integer representing the amount.
|
44
60
|
attr_reader :value
|
61
|
+
|
62
|
+
def self.inner_class_types
|
63
|
+
@inner_class_types = {}
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.field_remappings
|
67
|
+
@field_remappings = {}
|
68
|
+
end
|
45
69
|
end
|
46
70
|
# The custom pricing unit amount.
|
47
71
|
attr_reader :custom_pricing_unit
|
@@ -49,6 +73,14 @@ module Stripe
|
|
49
73
|
attr_reader :monetary
|
50
74
|
# The type of this amount. We currently only support `monetary` billing credits.
|
51
75
|
attr_reader :type
|
76
|
+
|
77
|
+
def self.inner_class_types
|
78
|
+
@inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary }
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.field_remappings
|
82
|
+
@field_remappings = {}
|
83
|
+
end
|
52
84
|
end
|
53
85
|
|
54
86
|
class CreditsApplicationInvoiceVoided < Stripe::StripeObject
|
@@ -56,6 +88,14 @@ module Stripe
|
|
56
88
|
attr_reader :invoice
|
57
89
|
# The invoice line item to which the reinstated billing credits were originally applied.
|
58
90
|
attr_reader :invoice_line_item
|
91
|
+
|
92
|
+
def self.inner_class_types
|
93
|
+
@inner_class_types = {}
|
94
|
+
end
|
95
|
+
|
96
|
+
def self.field_remappings
|
97
|
+
@field_remappings = {}
|
98
|
+
end
|
59
99
|
end
|
60
100
|
# Attribute for field amount
|
61
101
|
attr_reader :amount
|
@@ -63,6 +103,17 @@ module Stripe
|
|
63
103
|
attr_reader :credits_application_invoice_voided
|
64
104
|
# The type of credit transaction.
|
65
105
|
attr_reader :type
|
106
|
+
|
107
|
+
def self.inner_class_types
|
108
|
+
@inner_class_types = {
|
109
|
+
amount: Amount,
|
110
|
+
credits_application_invoice_voided: CreditsApplicationInvoiceVoided,
|
111
|
+
}
|
112
|
+
end
|
113
|
+
|
114
|
+
def self.field_remappings
|
115
|
+
@field_remappings = {}
|
116
|
+
end
|
66
117
|
end
|
67
118
|
|
68
119
|
class Debit < Stripe::StripeObject
|
@@ -81,6 +132,14 @@ module Stripe
|
|
81
132
|
attr_reader :metadata
|
82
133
|
# The status of the custom pricing unit.
|
83
134
|
attr_reader :status
|
135
|
+
|
136
|
+
def self.inner_class_types
|
137
|
+
@inner_class_types = {}
|
138
|
+
end
|
139
|
+
|
140
|
+
def self.field_remappings
|
141
|
+
@field_remappings = {}
|
142
|
+
end
|
84
143
|
end
|
85
144
|
# The custom pricing unit object.
|
86
145
|
attr_reader :custom_pricing_unit_details
|
@@ -88,6 +147,14 @@ module Stripe
|
|
88
147
|
attr_reader :id
|
89
148
|
# A positive integer representing the amount.
|
90
149
|
attr_reader :value
|
150
|
+
|
151
|
+
def self.inner_class_types
|
152
|
+
@inner_class_types = { custom_pricing_unit_details: CustomPricingUnitDetails }
|
153
|
+
end
|
154
|
+
|
155
|
+
def self.field_remappings
|
156
|
+
@field_remappings = {}
|
157
|
+
end
|
91
158
|
end
|
92
159
|
|
93
160
|
class Monetary < Stripe::StripeObject
|
@@ -95,6 +162,14 @@ module Stripe
|
|
95
162
|
attr_reader :currency
|
96
163
|
# A positive integer representing the amount.
|
97
164
|
attr_reader :value
|
165
|
+
|
166
|
+
def self.inner_class_types
|
167
|
+
@inner_class_types = {}
|
168
|
+
end
|
169
|
+
|
170
|
+
def self.field_remappings
|
171
|
+
@field_remappings = {}
|
172
|
+
end
|
98
173
|
end
|
99
174
|
# The custom pricing unit amount.
|
100
175
|
attr_reader :custom_pricing_unit
|
@@ -102,6 +177,14 @@ module Stripe
|
|
102
177
|
attr_reader :monetary
|
103
178
|
# The type of this amount. We currently only support `monetary` billing credits.
|
104
179
|
attr_reader :type
|
180
|
+
|
181
|
+
def self.inner_class_types
|
182
|
+
@inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary }
|
183
|
+
end
|
184
|
+
|
185
|
+
def self.field_remappings
|
186
|
+
@field_remappings = {}
|
187
|
+
end
|
105
188
|
end
|
106
189
|
|
107
190
|
class CreditsApplied < Stripe::StripeObject
|
@@ -109,6 +192,14 @@ module Stripe
|
|
109
192
|
attr_reader :invoice
|
110
193
|
# The invoice line item to which the billing credits were applied.
|
111
194
|
attr_reader :invoice_line_item
|
195
|
+
|
196
|
+
def self.inner_class_types
|
197
|
+
@inner_class_types = {}
|
198
|
+
end
|
199
|
+
|
200
|
+
def self.field_remappings
|
201
|
+
@field_remappings = {}
|
202
|
+
end
|
112
203
|
end
|
113
204
|
# Attribute for field amount
|
114
205
|
attr_reader :amount
|
@@ -116,6 +207,14 @@ module Stripe
|
|
116
207
|
attr_reader :credits_applied
|
117
208
|
# The type of debit transaction.
|
118
209
|
attr_reader :type
|
210
|
+
|
211
|
+
def self.inner_class_types
|
212
|
+
@inner_class_types = { amount: Amount, credits_applied: CreditsApplied }
|
213
|
+
end
|
214
|
+
|
215
|
+
def self.field_remappings
|
216
|
+
@field_remappings = {}
|
217
|
+
end
|
119
218
|
end
|
120
219
|
|
121
220
|
class ListParams < Stripe::RequestParams
|
@@ -182,6 +281,14 @@ module Stripe
|
|
182
281
|
opts: opts
|
183
282
|
)
|
184
283
|
end
|
284
|
+
|
285
|
+
def self.inner_class_types
|
286
|
+
@inner_class_types = { credit: Credit, debit: Debit }
|
287
|
+
end
|
288
|
+
|
289
|
+
def self.field_remappings
|
290
|
+
@field_remappings = {}
|
291
|
+
end
|
185
292
|
end
|
186
293
|
end
|
187
294
|
end
|
@@ -31,6 +31,14 @@ module Stripe
|
|
31
31
|
attr_reader :metadata
|
32
32
|
# The status of the custom pricing unit.
|
33
33
|
attr_reader :status
|
34
|
+
|
35
|
+
def self.inner_class_types
|
36
|
+
@inner_class_types = {}
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.field_remappings
|
40
|
+
@field_remappings = {}
|
41
|
+
end
|
34
42
|
end
|
35
43
|
# The custom pricing unit object.
|
36
44
|
attr_reader :custom_pricing_unit_details
|
@@ -38,6 +46,14 @@ module Stripe
|
|
38
46
|
attr_reader :id
|
39
47
|
# A positive integer representing the amount.
|
40
48
|
attr_reader :value
|
49
|
+
|
50
|
+
def self.inner_class_types
|
51
|
+
@inner_class_types = { custom_pricing_unit_details: CustomPricingUnitDetails }
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.field_remappings
|
55
|
+
@field_remappings = {}
|
56
|
+
end
|
41
57
|
end
|
42
58
|
|
43
59
|
class Monetary < Stripe::StripeObject
|
@@ -45,6 +61,14 @@ module Stripe
|
|
45
61
|
attr_reader :currency
|
46
62
|
# A positive integer representing the amount.
|
47
63
|
attr_reader :value
|
64
|
+
|
65
|
+
def self.inner_class_types
|
66
|
+
@inner_class_types = {}
|
67
|
+
end
|
68
|
+
|
69
|
+
def self.field_remappings
|
70
|
+
@field_remappings = {}
|
71
|
+
end
|
48
72
|
end
|
49
73
|
# The custom pricing unit amount.
|
50
74
|
attr_reader :custom_pricing_unit
|
@@ -52,6 +76,14 @@ module Stripe
|
|
52
76
|
attr_reader :monetary
|
53
77
|
# The type of this amount. We currently only support `monetary` billing credits.
|
54
78
|
attr_reader :type
|
79
|
+
|
80
|
+
def self.inner_class_types
|
81
|
+
@inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary }
|
82
|
+
end
|
83
|
+
|
84
|
+
def self.field_remappings
|
85
|
+
@field_remappings = {}
|
86
|
+
end
|
55
87
|
end
|
56
88
|
|
57
89
|
class ApplicabilityConfig < Stripe::StripeObject
|
@@ -59,11 +91,27 @@ module Stripe
|
|
59
91
|
class BillableItem < Stripe::StripeObject
|
60
92
|
# Unique identifier for the object.
|
61
93
|
attr_reader :id
|
94
|
+
|
95
|
+
def self.inner_class_types
|
96
|
+
@inner_class_types = {}
|
97
|
+
end
|
98
|
+
|
99
|
+
def self.field_remappings
|
100
|
+
@field_remappings = {}
|
101
|
+
end
|
62
102
|
end
|
63
103
|
|
64
104
|
class Price < Stripe::StripeObject
|
65
105
|
# Unique identifier for the object.
|
66
106
|
attr_reader :id
|
107
|
+
|
108
|
+
def self.inner_class_types
|
109
|
+
@inner_class_types = {}
|
110
|
+
end
|
111
|
+
|
112
|
+
def self.field_remappings
|
113
|
+
@field_remappings = {}
|
114
|
+
end
|
67
115
|
end
|
68
116
|
# The billable items that credit grants can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
|
69
117
|
attr_reader :billable_items
|
@@ -71,9 +119,25 @@ module Stripe
|
|
71
119
|
attr_reader :price_type
|
72
120
|
# The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.
|
73
121
|
attr_reader :prices
|
122
|
+
|
123
|
+
def self.inner_class_types
|
124
|
+
@inner_class_types = { billable_items: BillableItem, prices: Price }
|
125
|
+
end
|
126
|
+
|
127
|
+
def self.field_remappings
|
128
|
+
@field_remappings = {}
|
129
|
+
end
|
74
130
|
end
|
75
131
|
# Attribute for field scope
|
76
132
|
attr_reader :scope
|
133
|
+
|
134
|
+
def self.inner_class_types
|
135
|
+
@inner_class_types = { scope: Scope }
|
136
|
+
end
|
137
|
+
|
138
|
+
def self.field_remappings
|
139
|
+
@field_remappings = {}
|
140
|
+
end
|
77
141
|
end
|
78
142
|
|
79
143
|
class ListParams < Stripe::RequestParams
|
@@ -371,6 +435,14 @@ module Stripe
|
|
371
435
|
opts: opts
|
372
436
|
)
|
373
437
|
end
|
438
|
+
|
439
|
+
def self.inner_class_types
|
440
|
+
@inner_class_types = { amount: Amount, applicability_config: ApplicabilityConfig }
|
441
|
+
end
|
442
|
+
|
443
|
+
def self.field_remappings
|
444
|
+
@field_remappings = {}
|
445
|
+
end
|
374
446
|
end
|
375
447
|
end
|
376
448
|
end
|
@@ -26,21 +26,53 @@ module Stripe
|
|
26
26
|
attr_reader :event_payload_key
|
27
27
|
# The method for mapping a meter event to a customer.
|
28
28
|
attr_reader :type
|
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 DefaultAggregation < Stripe::StripeObject
|
32
40
|
# Specifies how events are aggregated.
|
33
41
|
attr_reader :formula
|
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 StatusTransitions < Stripe::StripeObject
|
37
53
|
# The time the meter was deactivated, if any. Measured in seconds since Unix epoch.
|
38
54
|
attr_reader :deactivated_at
|
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
|
|
41
65
|
class ValueSettings < Stripe::StripeObject
|
42
66
|
# The key in the meter event payload to use as the value for this meter.
|
43
67
|
attr_reader :event_payload_key
|
68
|
+
|
69
|
+
def self.inner_class_types
|
70
|
+
@inner_class_types = {}
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.field_remappings
|
74
|
+
@field_remappings = {}
|
75
|
+
end
|
44
76
|
end
|
45
77
|
|
46
78
|
class ListParams < Stripe::RequestParams
|
@@ -249,6 +281,19 @@ module Stripe
|
|
249
281
|
opts: opts
|
250
282
|
)
|
251
283
|
end
|
284
|
+
|
285
|
+
def self.inner_class_types
|
286
|
+
@inner_class_types = {
|
287
|
+
customer_mapping: CustomerMapping,
|
288
|
+
default_aggregation: DefaultAggregation,
|
289
|
+
status_transitions: StatusTransitions,
|
290
|
+
value_settings: ValueSettings,
|
291
|
+
}
|
292
|
+
end
|
293
|
+
|
294
|
+
def self.field_remappings
|
295
|
+
@field_remappings = {}
|
296
|
+
end
|
252
297
|
end
|
253
298
|
end
|
254
299
|
end
|
@@ -15,6 +15,14 @@ module Stripe
|
|
15
15
|
class Cancel < Stripe::StripeObject
|
16
16
|
# Unique identifier for the event.
|
17
17
|
attr_reader :identifier
|
18
|
+
|
19
|
+
def self.inner_class_types
|
20
|
+
@inner_class_types = {}
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.field_remappings
|
24
|
+
@field_remappings = {}
|
25
|
+
end
|
18
26
|
end
|
19
27
|
|
20
28
|
class CreateParams < Stripe::RequestParams
|
@@ -64,6 +72,14 @@ module Stripe
|
|
64
72
|
opts: opts
|
65
73
|
)
|
66
74
|
end
|
75
|
+
|
76
|
+
def self.inner_class_types
|
77
|
+
@inner_class_types = { cancel: Cancel }
|
78
|
+
end
|
79
|
+
|
80
|
+
def self.field_remappings
|
81
|
+
@field_remappings = {}
|
82
|
+
end
|
67
83
|
end
|
68
84
|
end
|
69
85
|
end
|
@@ -27,6 +27,14 @@ module Stripe
|
|
27
27
|
attr_reader :object
|
28
28
|
# Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
|
29
29
|
attr_reader :start_time
|
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
|
@@ -18,6 +18,14 @@ module Stripe
|
|
18
18
|
attr_reader :livemode
|
19
19
|
# String representing the object's type. Objects of the same type share the same value.
|
20
20
|
attr_reader :object
|
21
|
+
|
22
|
+
def self.inner_class_types
|
23
|
+
@inner_class_types = {}
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.field_remappings
|
27
|
+
@field_remappings = {}
|
28
|
+
end
|
21
29
|
end
|
22
30
|
end
|
23
31
|
end
|
@@ -23,6 +23,14 @@ module Stripe
|
|
23
23
|
attr_reader :meter_id
|
24
24
|
# String representing the object's type. Objects of the same type share the same value.
|
25
25
|
attr_reader :object
|
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
|
end
|
28
36
|
end
|