stripe 13.3.0.pre.beta.3 → 13.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +650 -1402
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +0 -32
- data/lib/stripe/resources/account.rb +2 -232
- data/lib/stripe/resources/account_link.rb +0 -9
- data/lib/stripe/resources/account_session.rb +0 -103
- data/lib/stripe/resources/apple_pay_domain.rb +2 -20
- data/lib/stripe/resources/application_fee.rb +2 -36
- data/lib/stripe/resources/application_fee_refund.rb +0 -17
- data/lib/stripe/resources/apps/secret.rb +2 -24
- data/lib/stripe/resources/balance.rb +0 -59
- data/lib/stripe/resources/balance_transaction.rb +2 -36
- data/lib/stripe/resources/bank_account.rb +3 -61
- data/lib/stripe/resources/billing/alert.rb +2 -23
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -50
- data/lib/stripe/resources/billing/credit_grant.rb +2 -46
- data/lib/stripe/resources/billing/meter.rb +2 -44
- data/lib/stripe/resources/billing/meter_event.rb +0 -15
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
- data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
- data/lib/stripe/resources/billing_portal/session.rb +0 -61
- data/lib/stripe/resources/capability.rb +0 -38
- data/lib/stripe/resources/card.rb +1 -77
- data/lib/stripe/resources/cash_balance.rb +0 -14
- data/lib/stripe/resources/charge.rb +2 -471
- data/lib/stripe/resources/checkout/session.rb +2 -498
- data/lib/stripe/resources/climate/order.rb +2 -57
- data/lib/stripe/resources/climate/product.rb +2 -26
- data/lib/stripe/resources/climate/supplier.rb +2 -20
- data/lib/stripe/resources/confirmation_token.rb +0 -297
- data/lib/stripe/resources/country_spec.rb +2 -29
- data/lib/stripe/resources/coupon.rb +2 -46
- data/lib/stripe/resources/credit_note.rb +2 -93
- data/lib/stripe/resources/credit_note_line_item.rb +0 -46
- data/lib/stripe/resources/customer.rb +2 -95
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
- data/lib/stripe/resources/customer_session.rb +0 -34
- data/lib/stripe/resources/discount.rb +0 -29
- data/lib/stripe/resources/dispute.rb +2 -98
- data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
- data/lib/stripe/resources/entitlements/feature.rb +2 -17
- data/lib/stripe/resources/ephemeral_key.rb +0 -13
- data/lib/stripe/resources/event.rb +2 -46
- data/lib/stripe/resources/exchange_rate.rb +2 -9
- data/lib/stripe/resources/file.rb +2 -25
- data/lib/stripe/resources/file_link.rb +2 -21
- data/lib/stripe/resources/financial_connections/account.rb +2 -89
- data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
- data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
- data/lib/stripe/resources/financial_connections/session.rb +0 -49
- data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
- data/lib/stripe/resources/forwarding/request.rb +2 -42
- data/lib/stripe/resources/funding_instructions.rb +0 -82
- data/lib/stripe/resources/identity/verification_report.rb +2 -94
- data/lib/stripe/resources/identity/verification_session.rb +2 -78
- data/lib/stripe/resources/invoice.rb +2 -420
- data/lib/stripe/resources/invoice_item.rb +2 -56
- data/lib/stripe/resources/invoice_line_item.rb +0 -83
- data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
- data/lib/stripe/resources/issuing/authorization.rb +2 -131
- data/lib/stripe/resources/issuing/card.rb +2 -88
- data/lib/stripe/resources/issuing/cardholder.rb +2 -78
- data/lib/stripe/resources/issuing/dispute.rb +2 -67
- data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
- data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
- data/lib/stripe/resources/issuing/token.rb +2 -48
- data/lib/stripe/resources/issuing/transaction.rb +2 -108
- data/lib/stripe/resources/line_item.rb +0 -50
- data/lib/stripe/resources/login_link.rb +0 -7
- data/lib/stripe/resources/mandate.rb +0 -78
- data/lib/stripe/resources/payment_intent.rb +2 -714
- data/lib/stripe/resources/payment_link.rb +2 -200
- data/lib/stripe/resources/payment_method.rb +2 -370
- data/lib/stripe/resources/payment_method_configuration.rb +2 -432
- data/lib/stripe/resources/payment_method_domain.rb +2 -59
- data/lib/stripe/resources/payout.rb +2 -58
- data/lib/stripe/resources/person.rb +0 -128
- data/lib/stripe/resources/plan.rb +2 -54
- data/lib/stripe/resources/price.rb +2 -79
- data/lib/stripe/resources/product.rb +2 -62
- data/lib/stripe/resources/product_feature.rb +0 -12
- data/lib/stripe/resources/promotion_code.rb +2 -37
- data/lib/stripe/resources/quote.rb +2 -358
- data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
- data/lib/stripe/resources/radar/value_list.rb +2 -25
- data/lib/stripe/resources/radar/value_list_item.rb +2 -19
- data/lib/stripe/resources/refund.rb +2 -132
- data/lib/stripe/resources/reporting/report_run.rb +2 -31
- data/lib/stripe/resources/reporting/report_type.rb +2 -21
- data/lib/stripe/resources/reversal.rb +0 -21
- data/lib/stripe/resources/review.rb +2 -38
- data/lib/stripe/resources/setup_attempt.rb +2 -103
- data/lib/stripe/resources/setup_intent.rb +2 -160
- data/lib/stripe/resources/shipping_rate.rb +2 -44
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
- data/lib/stripe/resources/source.rb +0 -197
- data/lib/stripe/resources/source_transaction.rb +0 -48
- data/lib/stripe/resources/subscription.rb +2 -216
- data/lib/stripe/resources/subscription_item.rb +2 -48
- data/lib/stripe/resources/subscription_schedule.rb +2 -175
- data/lib/stripe/resources/tax/calculation.rb +0 -72
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
- data/lib/stripe/resources/tax/registration.rb +2 -381
- data/lib/stripe/resources/tax/settings.rb +0 -33
- data/lib/stripe/resources/tax/transaction.rb +0 -68
- data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
- data/lib/stripe/resources/tax_code.rb +2 -11
- data/lib/stripe/resources/tax_id.rb +2 -32
- data/lib/stripe/resources/tax_rate.rb +2 -44
- data/lib/stripe/resources/terminal/configuration.rb +2 -109
- data/lib/stripe/resources/terminal/connection_token.rb +0 -7
- data/lib/stripe/resources/terminal/location.rb +2 -22
- data/lib/stripe/resources/terminal/reader.rb +2 -180
- data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
- data/lib/stripe/resources/token.rb +0 -29
- data/lib/stripe/resources/topup.rb +2 -35
- data/lib/stripe/resources/transfer.rb +2 -37
- data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
- data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
- data/lib/stripe/resources/treasury/financial_account.rb +2 -59
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
- data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
- data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
- data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
- data/lib/stripe/resources/treasury/received_credit.rb +2 -72
- data/lib/stripe/resources/treasury/received_debit.rb +2 -69
- data/lib/stripe/resources/treasury/transaction.rb +2 -44
- data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
- data/lib/stripe/resources/usage_record.rb +0 -13
- data/lib/stripe/resources/usage_record_summary.rb +0 -18
- data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
- data/lib/stripe/resources/v2/event.rb +0 -21
- data/lib/stripe/resources/v2/event_destination.rb +0 -49
- data/lib/stripe/resources/webhook_endpoint.rb +2 -34
- data/lib/stripe/resources.rb +0 -31
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +1 -44
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/reader_service.rb +0 -33
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -8
- data/lib/stripe/services.rb +0 -25
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +3 -8
- data/lib/stripe/util.rb +2 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -45
- data/stripe.gemspec +1 -2
- metadata +4 -62
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -60
- data/lib/stripe/resources/application.rb +0 -20
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
- data/lib/stripe/resources/capital/financing_offer.rb +0 -94
- data/lib/stripe/resources/capital/financing_summary.rb +0 -32
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
- data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -61
- data/lib/stripe/resources/gift_cards/card.rb +0 -96
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
- data/lib/stripe/resources/invoice_payment.rb +0 -46
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
- data/lib/stripe/resources/issuing/settlement.rb +0 -49
- data/lib/stripe/resources/margin.rb +0 -56
- data/lib/stripe/resources/order.rb +0 -322
- data/lib/stripe/resources/payment_attempt_record.rb +0 -100
- data/lib/stripe/resources/payment_record.rb +0 -188
- data/lib/stripe/resources/quote_line.rb +0 -136
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
- data/lib/stripe/resources/reserve_transaction.rb +0 -22
- data/lib/stripe/resources/source_mandate_notification.rb +0 -59
- data/lib/stripe/resources/tax/association.rb +0 -60
- data/lib/stripe/resources/tax/form.rb +0 -124
- data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
- data/lib/stripe/resources/v2/amount.rb +0 -9
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/gift_cards/card_service.rb +0 -63
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
- data/lib/stripe/services/gift_cards_service.rb +0 -14
- data/lib/stripe/services/invoice_payment_service.rb +0 -28
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_line_item_service.rb +0 -17
- data/lib/stripe/services/order_service.rb +0 -78
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
- data/lib/stripe/services/payment_record_service.rb +0 -78
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/tax/association_service.rb +0 -19
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
@@ -7,7 +7,6 @@ module Stripe
|
|
7
7
|
class Quote < APIResource
|
8
8
|
extend Stripe::APIOperations::Create
|
9
9
|
extend Stripe::APIOperations::List
|
10
|
-
extend Stripe::APIOperations::NestedResource
|
11
10
|
include Stripe::APIOperations::Save
|
12
11
|
|
13
12
|
OBJECT_NAME = "quote"
|
@@ -15,261 +14,6 @@ module Stripe
|
|
15
14
|
"quote"
|
16
15
|
end
|
17
16
|
|
18
|
-
nested_resource_class_methods :preview_invoice, operations: %i[list]
|
19
|
-
nested_resource_class_methods :preview_subscription_schedule, operations: %i[list]
|
20
|
-
|
21
|
-
class AutomaticTax < Stripe::StripeObject
|
22
|
-
class Liability < Stripe::StripeObject
|
23
|
-
attr_reader :account, :type
|
24
|
-
end
|
25
|
-
attr_reader :enabled, :liability, :status
|
26
|
-
end
|
27
|
-
|
28
|
-
class Computed < Stripe::StripeObject
|
29
|
-
class LastReestimationDetails < Stripe::StripeObject
|
30
|
-
class Failed < Stripe::StripeObject
|
31
|
-
attr_reader :failure_code, :message, :reason
|
32
|
-
end
|
33
|
-
attr_reader :failed, :status
|
34
|
-
end
|
35
|
-
|
36
|
-
class Recurring < Stripe::StripeObject
|
37
|
-
class TotalDetails < Stripe::StripeObject
|
38
|
-
class Breakdown < Stripe::StripeObject
|
39
|
-
class Discount < Stripe::StripeObject
|
40
|
-
attr_reader :amount, :discount
|
41
|
-
end
|
42
|
-
|
43
|
-
class Tax < Stripe::StripeObject
|
44
|
-
attr_reader :amount, :rate, :taxability_reason, :taxable_amount
|
45
|
-
end
|
46
|
-
attr_reader :discounts, :taxes
|
47
|
-
end
|
48
|
-
attr_reader :amount_discount, :amount_shipping, :amount_tax, :breakdown
|
49
|
-
end
|
50
|
-
attr_reader :amount_subtotal, :amount_total, :interval, :interval_count, :total_details
|
51
|
-
end
|
52
|
-
|
53
|
-
class Upfront < Stripe::StripeObject
|
54
|
-
class TotalDetails < Stripe::StripeObject
|
55
|
-
class Breakdown < Stripe::StripeObject
|
56
|
-
class Discount < Stripe::StripeObject
|
57
|
-
attr_reader :amount, :discount
|
58
|
-
end
|
59
|
-
|
60
|
-
class Tax < Stripe::StripeObject
|
61
|
-
attr_reader :amount, :rate, :taxability_reason, :taxable_amount
|
62
|
-
end
|
63
|
-
attr_reader :discounts, :taxes
|
64
|
-
end
|
65
|
-
attr_reader :amount_discount, :amount_shipping, :amount_tax, :breakdown
|
66
|
-
end
|
67
|
-
attr_reader :amount_subtotal, :amount_total, :line_items, :total_details
|
68
|
-
end
|
69
|
-
attr_reader :last_reestimation_details, :recurring, :updated_at, :upfront
|
70
|
-
end
|
71
|
-
|
72
|
-
class FromQuote < Stripe::StripeObject
|
73
|
-
attr_reader :is_revision, :quote
|
74
|
-
end
|
75
|
-
|
76
|
-
class InvoiceSettings < Stripe::StripeObject
|
77
|
-
class Issuer < Stripe::StripeObject
|
78
|
-
attr_reader :account, :type
|
79
|
-
end
|
80
|
-
attr_reader :days_until_due, :issuer
|
81
|
-
end
|
82
|
-
|
83
|
-
class StatusDetails < Stripe::StripeObject
|
84
|
-
class Canceled < Stripe::StripeObject
|
85
|
-
attr_reader :reason, :transitioned_at
|
86
|
-
end
|
87
|
-
|
88
|
-
class Stale < Stripe::StripeObject
|
89
|
-
class LastReason < Stripe::StripeObject
|
90
|
-
class LinesInvalid < Stripe::StripeObject
|
91
|
-
attr_reader :invalid_at, :lines
|
92
|
-
end
|
93
|
-
|
94
|
-
class SubscriptionChanged < Stripe::StripeObject
|
95
|
-
attr_reader :previous_subscription
|
96
|
-
end
|
97
|
-
|
98
|
-
class SubscriptionScheduleChanged < Stripe::StripeObject
|
99
|
-
attr_reader :previous_subscription_schedule
|
100
|
-
end
|
101
|
-
attr_reader :line_invalid, :lines_invalid, :marked_stale, :subscription_canceled, :subscription_changed, :subscription_expired, :subscription_schedule_canceled, :subscription_schedule_changed, :subscription_schedule_released, :type
|
102
|
-
end
|
103
|
-
attr_reader :expires_at, :last_reason, :last_updated_at, :transitioned_at
|
104
|
-
end
|
105
|
-
attr_reader :canceled, :stale
|
106
|
-
end
|
107
|
-
|
108
|
-
class StatusTransitions < Stripe::StripeObject
|
109
|
-
attr_reader :accepted_at, :canceled_at, :finalized_at
|
110
|
-
end
|
111
|
-
|
112
|
-
class SubscriptionData < Stripe::StripeObject
|
113
|
-
class BillOnAcceptance < Stripe::StripeObject
|
114
|
-
class BillFrom < Stripe::StripeObject
|
115
|
-
class LineStartsAt < Stripe::StripeObject
|
116
|
-
attr_reader :id
|
117
|
-
end
|
118
|
-
attr_reader :computed, :line_starts_at, :timestamp, :type
|
119
|
-
end
|
120
|
-
|
121
|
-
class BillUntil < Stripe::StripeObject
|
122
|
-
class Duration < Stripe::StripeObject
|
123
|
-
attr_reader :interval, :interval_count
|
124
|
-
end
|
125
|
-
|
126
|
-
class LineEndsAt < Stripe::StripeObject
|
127
|
-
attr_reader :id
|
128
|
-
end
|
129
|
-
attr_reader :computed, :duration, :line_ends_at, :timestamp, :type
|
130
|
-
end
|
131
|
-
attr_reader :bill_from, :bill_until
|
132
|
-
end
|
133
|
-
|
134
|
-
class Prebilling < Stripe::StripeObject
|
135
|
-
attr_reader :iterations
|
136
|
-
end
|
137
|
-
attr_reader :bill_on_acceptance, :billing_behavior, :billing_cycle_anchor, :description, :effective_date, :end_behavior, :from_subscription, :metadata, :prebilling, :proration_behavior, :trial_period_days
|
138
|
-
end
|
139
|
-
|
140
|
-
class SubscriptionDataOverride < Stripe::StripeObject
|
141
|
-
class AppliesTo < Stripe::StripeObject
|
142
|
-
attr_reader :new_reference, :subscription_schedule, :type
|
143
|
-
end
|
144
|
-
|
145
|
-
class BillOnAcceptance < Stripe::StripeObject
|
146
|
-
class BillFrom < Stripe::StripeObject
|
147
|
-
class LineStartsAt < Stripe::StripeObject
|
148
|
-
attr_reader :id
|
149
|
-
end
|
150
|
-
attr_reader :computed, :line_starts_at, :timestamp, :type
|
151
|
-
end
|
152
|
-
|
153
|
-
class BillUntil < Stripe::StripeObject
|
154
|
-
class Duration < Stripe::StripeObject
|
155
|
-
attr_reader :interval, :interval_count
|
156
|
-
end
|
157
|
-
|
158
|
-
class LineEndsAt < Stripe::StripeObject
|
159
|
-
attr_reader :id
|
160
|
-
end
|
161
|
-
attr_reader :computed, :duration, :line_ends_at, :timestamp, :type
|
162
|
-
end
|
163
|
-
attr_reader :bill_from, :bill_until
|
164
|
-
end
|
165
|
-
attr_reader :applies_to, :bill_on_acceptance, :billing_behavior, :customer, :description, :end_behavior, :proration_behavior
|
166
|
-
end
|
167
|
-
|
168
|
-
class SubscriptionSchedule < Stripe::StripeObject
|
169
|
-
class AppliesTo < Stripe::StripeObject
|
170
|
-
attr_reader :new_reference, :subscription_schedule, :type
|
171
|
-
end
|
172
|
-
attr_reader :applies_to, :subscription_schedule
|
173
|
-
end
|
174
|
-
|
175
|
-
class TotalDetails < Stripe::StripeObject
|
176
|
-
class Breakdown < Stripe::StripeObject
|
177
|
-
class Discount < Stripe::StripeObject
|
178
|
-
attr_reader :amount, :discount
|
179
|
-
end
|
180
|
-
|
181
|
-
class Tax < Stripe::StripeObject
|
182
|
-
attr_reader :amount, :rate, :taxability_reason, :taxable_amount
|
183
|
-
end
|
184
|
-
attr_reader :discounts, :taxes
|
185
|
-
end
|
186
|
-
attr_reader :amount_discount, :amount_shipping, :amount_tax, :breakdown
|
187
|
-
end
|
188
|
-
|
189
|
-
class TransferData < Stripe::StripeObject
|
190
|
-
attr_reader :amount, :amount_percent, :destination
|
191
|
-
end
|
192
|
-
# Allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
|
193
|
-
attr_reader :allow_backdated_lines
|
194
|
-
# Total before any discounts or taxes are applied.
|
195
|
-
attr_reader :amount_subtotal
|
196
|
-
# Total after discounts and taxes are applied.
|
197
|
-
attr_reader :amount_total
|
198
|
-
# ID of the Connect Application that created the quote.
|
199
|
-
attr_reader :application
|
200
|
-
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Only applicable if there are no line items with recurring prices on the quote.
|
201
|
-
attr_reader :application_fee_amount
|
202
|
-
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. Only applicable if there are line items with recurring prices on the quote.
|
203
|
-
attr_reader :application_fee_percent
|
204
|
-
# Attribute for field automatic_tax
|
205
|
-
attr_reader :automatic_tax
|
206
|
-
# Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or on finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
|
207
|
-
attr_reader :collection_method
|
208
|
-
# Attribute for field computed
|
209
|
-
attr_reader :computed
|
210
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
211
|
-
attr_reader :created
|
212
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
213
|
-
attr_reader :currency
|
214
|
-
# The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
|
215
|
-
attr_reader :customer
|
216
|
-
# The tax rates applied to this quote.
|
217
|
-
attr_reader :default_tax_rates
|
218
|
-
# A description that will be displayed on the quote PDF.
|
219
|
-
attr_reader :description
|
220
|
-
# The discounts applied to this quote.
|
221
|
-
attr_reader :discounts
|
222
|
-
# The date on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
|
223
|
-
attr_reader :expires_at
|
224
|
-
# A footer that will be displayed on the quote PDF.
|
225
|
-
attr_reader :footer
|
226
|
-
# Details of the quote that was cloned. See the [cloning documentation](https://stripe.com/docs/quotes/clone) for more details.
|
227
|
-
attr_reader :from_quote
|
228
|
-
# A header that will be displayed on the quote PDF.
|
229
|
-
attr_reader :header
|
230
|
-
# Unique identifier for the object.
|
231
|
-
attr_reader :id
|
232
|
-
# The invoice that was created from this quote.
|
233
|
-
attr_reader :invoice
|
234
|
-
# Attribute for field invoice_settings
|
235
|
-
attr_reader :invoice_settings
|
236
|
-
# A list of items the customer is being quoted for.
|
237
|
-
attr_reader :line_items
|
238
|
-
# A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
|
239
|
-
attr_reader :lines
|
240
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
241
|
-
attr_reader :livemode
|
242
|
-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
243
|
-
attr_reader :metadata
|
244
|
-
# A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://stripe.com/docs/quotes/overview#finalize).
|
245
|
-
attr_reader :number
|
246
|
-
# String representing the object's type. Objects of the same type share the same value.
|
247
|
-
attr_reader :object
|
248
|
-
# The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details.
|
249
|
-
attr_reader :on_behalf_of
|
250
|
-
# The status of the quote.
|
251
|
-
attr_reader :status
|
252
|
-
# Details on when and why a quote has been marked as stale or canceled.
|
253
|
-
attr_reader :status_details
|
254
|
-
# Attribute for field status_transitions
|
255
|
-
attr_reader :status_transitions
|
256
|
-
# The subscription that was created or updated from this quote.
|
257
|
-
attr_reader :subscription
|
258
|
-
# Attribute for field subscription_data
|
259
|
-
attr_reader :subscription_data
|
260
|
-
# List representing overrides for `subscription_data` configurations for specific subscription schedules.
|
261
|
-
attr_reader :subscription_data_overrides
|
262
|
-
# The subscription schedule that was created or updated from this quote.
|
263
|
-
attr_reader :subscription_schedule
|
264
|
-
# The subscription schedules that were created or updated from this quote.
|
265
|
-
attr_reader :subscription_schedules
|
266
|
-
# ID of the test clock this quote belongs to.
|
267
|
-
attr_reader :test_clock
|
268
|
-
# Attribute for field total_details
|
269
|
-
attr_reader :total_details
|
270
|
-
# The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the invoices.
|
271
|
-
attr_reader :transfer_data
|
272
|
-
|
273
17
|
# Accepts the specified quote.
|
274
18
|
def accept(params = {}, opts = {})
|
275
19
|
request_stripe_object(
|
@@ -336,8 +80,8 @@ module Stripe
|
|
336
80
|
end
|
337
81
|
|
338
82
|
# Returns a list of your quotes.
|
339
|
-
def self.list(
|
340
|
-
request_stripe_object(method: :get, path: "/v1/quotes", params:
|
83
|
+
def self.list(params = {}, opts = {})
|
84
|
+
request_stripe_object(method: :get, path: "/v1/quotes", params: params, opts: opts)
|
341
85
|
end
|
342
86
|
|
343
87
|
# When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items.
|
@@ -380,86 +124,6 @@ module Stripe
|
|
380
124
|
)
|
381
125
|
end
|
382
126
|
|
383
|
-
# Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
|
384
|
-
def list_lines(params = {}, opts = {})
|
385
|
-
request_stripe_object(
|
386
|
-
method: :get,
|
387
|
-
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(self["id"]) }),
|
388
|
-
params: params,
|
389
|
-
opts: opts
|
390
|
-
)
|
391
|
-
end
|
392
|
-
|
393
|
-
# Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
|
394
|
-
def self.list_lines(quote, params = {}, opts = {})
|
395
|
-
request_stripe_object(
|
396
|
-
method: :get,
|
397
|
-
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(quote) }),
|
398
|
-
params: params,
|
399
|
-
opts: opts
|
400
|
-
)
|
401
|
-
end
|
402
|
-
|
403
|
-
# Preview the invoice line items that would be generated by accepting the quote.
|
404
|
-
def list_preview_invoice_lines(preview_invoice, params = {}, opts = {})
|
405
|
-
request_stripe_object(
|
406
|
-
method: :get,
|
407
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
|
408
|
-
params: params,
|
409
|
-
opts: opts
|
410
|
-
)
|
411
|
-
end
|
412
|
-
|
413
|
-
# Preview the invoice line items that would be generated by accepting the quote.
|
414
|
-
def self.list_preview_invoice_lines(quote, preview_invoice, params = {}, opts = {})
|
415
|
-
request_stripe_object(
|
416
|
-
method: :get,
|
417
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
|
418
|
-
params: params,
|
419
|
-
opts: opts
|
420
|
-
)
|
421
|
-
end
|
422
|
-
|
423
|
-
# Converts a stale quote to draft.
|
424
|
-
def mark_draft(params = {}, opts = {})
|
425
|
-
request_stripe_object(
|
426
|
-
method: :post,
|
427
|
-
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(self["id"]) }),
|
428
|
-
params: params,
|
429
|
-
opts: opts
|
430
|
-
)
|
431
|
-
end
|
432
|
-
|
433
|
-
# Converts a stale quote to draft.
|
434
|
-
def self.mark_draft(quote, params = {}, opts = {})
|
435
|
-
request_stripe_object(
|
436
|
-
method: :post,
|
437
|
-
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
|
438
|
-
params: params,
|
439
|
-
opts: opts
|
440
|
-
)
|
441
|
-
end
|
442
|
-
|
443
|
-
# Converts a draft or open quote to stale.
|
444
|
-
def mark_stale(params = {}, opts = {})
|
445
|
-
request_stripe_object(
|
446
|
-
method: :post,
|
447
|
-
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(self["id"]) }),
|
448
|
-
params: params,
|
449
|
-
opts: opts
|
450
|
-
)
|
451
|
-
end
|
452
|
-
|
453
|
-
# Converts a draft or open quote to stale.
|
454
|
-
def self.mark_stale(quote, params = {}, opts = {})
|
455
|
-
request_stripe_object(
|
456
|
-
method: :post,
|
457
|
-
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
|
458
|
-
params: params,
|
459
|
-
opts: opts
|
460
|
-
)
|
461
|
-
end
|
462
|
-
|
463
127
|
# Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
|
464
128
|
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
465
129
|
opts = { api_base: APIRequestor.active_requestor.config.uploads_base }.merge(opts)
|
@@ -486,26 +150,6 @@ module Stripe
|
|
486
150
|
)
|
487
151
|
end
|
488
152
|
|
489
|
-
# Recompute the upcoming invoice estimate for the quote.
|
490
|
-
def reestimate(params = {}, opts = {})
|
491
|
-
request_stripe_object(
|
492
|
-
method: :post,
|
493
|
-
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(self["id"]) }),
|
494
|
-
params: params,
|
495
|
-
opts: opts
|
496
|
-
)
|
497
|
-
end
|
498
|
-
|
499
|
-
# Recompute the upcoming invoice estimate for the quote.
|
500
|
-
def self.reestimate(quote, params = {}, opts = {})
|
501
|
-
request_stripe_object(
|
502
|
-
method: :post,
|
503
|
-
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
|
504
|
-
params: params,
|
505
|
-
opts: opts
|
506
|
-
)
|
507
|
-
end
|
508
|
-
|
509
153
|
# A quote models prices and services for a customer.
|
510
154
|
def self.update(id, params = {}, opts = {})
|
511
155
|
request_stripe_object(
|
@@ -15,29 +15,12 @@ module Stripe
|
|
15
15
|
"radar.early_fraud_warning"
|
16
16
|
end
|
17
17
|
|
18
|
-
# An EFW is actionable if it has not received a dispute and has not been fully refunded. You may wish to proactively refund a charge that receives an EFW, in order to avoid receiving a dispute later.
|
19
|
-
attr_reader :actionable
|
20
|
-
# ID of the charge this early fraud warning is for, optionally expanded.
|
21
|
-
attr_reader :charge
|
22
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
23
|
-
attr_reader :created
|
24
|
-
# The type of fraud labelled by the issuer. One of `card_never_received`, `fraudulent_card_application`, `made_with_counterfeit_card`, `made_with_lost_card`, `made_with_stolen_card`, `misc`, `unauthorized_use_of_card`.
|
25
|
-
attr_reader :fraud_type
|
26
|
-
# Unique identifier for the object.
|
27
|
-
attr_reader :id
|
28
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
29
|
-
attr_reader :livemode
|
30
|
-
# String representing the object's type. Objects of the same type share the same value.
|
31
|
-
attr_reader :object
|
32
|
-
# ID of the Payment Intent this early fraud warning is for, optionally expanded.
|
33
|
-
attr_reader :payment_intent
|
34
|
-
|
35
18
|
# Returns a list of early fraud warnings.
|
36
|
-
def self.list(
|
19
|
+
def self.list(params = {}, opts = {})
|
37
20
|
request_stripe_object(
|
38
21
|
method: :get,
|
39
22
|
path: "/v1/radar/early_fraud_warnings",
|
40
|
-
params:
|
23
|
+
params: params,
|
41
24
|
opts: opts
|
42
25
|
)
|
43
26
|
end
|
@@ -17,29 +17,6 @@ module Stripe
|
|
17
17
|
"radar.value_list"
|
18
18
|
end
|
19
19
|
|
20
|
-
# The name of the value list for use in rules.
|
21
|
-
attr_reader :alias
|
22
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
23
|
-
attr_reader :created
|
24
|
-
# The name or email address of the user who created this value list.
|
25
|
-
attr_reader :created_by
|
26
|
-
# Unique identifier for the object.
|
27
|
-
attr_reader :id
|
28
|
-
# The type of items in the value list. One of `card_fingerprint`, `us_bank_account_fingerprint`, `sepa_debit_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`.
|
29
|
-
attr_reader :item_type
|
30
|
-
# List of items contained within this value list.
|
31
|
-
attr_reader :list_items
|
32
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
33
|
-
attr_reader :livemode
|
34
|
-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
35
|
-
attr_reader :metadata
|
36
|
-
# The name of the value list.
|
37
|
-
attr_reader :name
|
38
|
-
# String representing the object's type. Objects of the same type share the same value.
|
39
|
-
attr_reader :object
|
40
|
-
# Always true for a deleted object
|
41
|
-
attr_reader :deleted
|
42
|
-
|
43
20
|
# Creates a new ValueList object, which can then be referenced in rules.
|
44
21
|
def self.create(params = {}, opts = {})
|
45
22
|
request_stripe_object(
|
@@ -71,11 +48,11 @@ module Stripe
|
|
71
48
|
end
|
72
49
|
|
73
50
|
# Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
74
|
-
def self.list(
|
51
|
+
def self.list(params = {}, opts = {})
|
75
52
|
request_stripe_object(
|
76
53
|
method: :get,
|
77
54
|
path: "/v1/radar/value_lists",
|
78
|
-
params:
|
55
|
+
params: params,
|
79
56
|
opts: opts
|
80
57
|
)
|
81
58
|
end
|
@@ -16,23 +16,6 @@ module Stripe
|
|
16
16
|
"radar.value_list_item"
|
17
17
|
end
|
18
18
|
|
19
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
20
|
-
attr_reader :created
|
21
|
-
# The name or email address of the user who added this item to the value list.
|
22
|
-
attr_reader :created_by
|
23
|
-
# Unique identifier for the object.
|
24
|
-
attr_reader :id
|
25
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
26
|
-
attr_reader :livemode
|
27
|
-
# String representing the object's type. Objects of the same type share the same value.
|
28
|
-
attr_reader :object
|
29
|
-
# The value of the item.
|
30
|
-
attr_reader :value
|
31
|
-
# The identifier of the value list this item belongs to.
|
32
|
-
attr_reader :value_list
|
33
|
-
# Always true for a deleted object
|
34
|
-
attr_reader :deleted
|
35
|
-
|
36
19
|
# Creates a new ValueListItem object, which is added to the specified parent value list.
|
37
20
|
def self.create(params = {}, opts = {})
|
38
21
|
request_stripe_object(
|
@@ -64,11 +47,11 @@ module Stripe
|
|
64
47
|
end
|
65
48
|
|
66
49
|
# Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
67
|
-
def self.list(
|
50
|
+
def self.list(params = {}, opts = {})
|
68
51
|
request_stripe_object(
|
69
52
|
method: :get,
|
70
53
|
path: "/v1/radar/value_list_items",
|
71
|
-
params:
|
54
|
+
params: params,
|
72
55
|
opts: opts
|
73
56
|
)
|
74
57
|
end
|
@@ -17,136 +17,6 @@ module Stripe
|
|
17
17
|
"refund"
|
18
18
|
end
|
19
19
|
|
20
|
-
class DestinationDetails < Stripe::StripeObject
|
21
|
-
class Affirm < Stripe::StripeObject; end
|
22
|
-
class AfterpayClearpay < Stripe::StripeObject; end
|
23
|
-
class Alipay < Stripe::StripeObject; end
|
24
|
-
class Alma < Stripe::StripeObject; end
|
25
|
-
class AmazonPay < Stripe::StripeObject; end
|
26
|
-
class AuBankTransfer < Stripe::StripeObject; end
|
27
|
-
|
28
|
-
class Blik < Stripe::StripeObject
|
29
|
-
attr_reader :network_decline_code, :reference, :reference_status
|
30
|
-
end
|
31
|
-
|
32
|
-
class BrBankTransfer < Stripe::StripeObject
|
33
|
-
attr_reader :reference, :reference_status
|
34
|
-
end
|
35
|
-
|
36
|
-
class Card < Stripe::StripeObject
|
37
|
-
attr_reader :reference, :reference_status, :reference_type, :type
|
38
|
-
end
|
39
|
-
|
40
|
-
class Cashapp < Stripe::StripeObject; end
|
41
|
-
class CustomerCashBalance < Stripe::StripeObject; end
|
42
|
-
class Eps < Stripe::StripeObject; end
|
43
|
-
|
44
|
-
class EuBankTransfer < Stripe::StripeObject
|
45
|
-
attr_reader :reference, :reference_status
|
46
|
-
end
|
47
|
-
|
48
|
-
class GbBankTransfer < Stripe::StripeObject
|
49
|
-
attr_reader :reference, :reference_status
|
50
|
-
end
|
51
|
-
|
52
|
-
class Giropay < Stripe::StripeObject; end
|
53
|
-
class Grabpay < Stripe::StripeObject; end
|
54
|
-
|
55
|
-
class IdBankTransfer < Stripe::StripeObject
|
56
|
-
attr_reader :reference, :reference_status
|
57
|
-
end
|
58
|
-
|
59
|
-
class JpBankTransfer < Stripe::StripeObject
|
60
|
-
attr_reader :reference, :reference_status
|
61
|
-
end
|
62
|
-
|
63
|
-
class Klarna < Stripe::StripeObject; end
|
64
|
-
|
65
|
-
class Multibanco < Stripe::StripeObject
|
66
|
-
attr_reader :reference, :reference_status
|
67
|
-
end
|
68
|
-
|
69
|
-
class MxBankTransfer < Stripe::StripeObject
|
70
|
-
attr_reader :reference, :reference_status
|
71
|
-
end
|
72
|
-
|
73
|
-
class P24 < Stripe::StripeObject
|
74
|
-
attr_reader :reference, :reference_status
|
75
|
-
end
|
76
|
-
|
77
|
-
class Paynow < Stripe::StripeObject; end
|
78
|
-
class Paypal < Stripe::StripeObject; end
|
79
|
-
class Pix < Stripe::StripeObject; end
|
80
|
-
class Revolut < Stripe::StripeObject; end
|
81
|
-
class Sofort < Stripe::StripeObject; end
|
82
|
-
|
83
|
-
class Swish < Stripe::StripeObject
|
84
|
-
attr_reader :network_decline_code, :reference, :reference_status
|
85
|
-
end
|
86
|
-
|
87
|
-
class ThBankTransfer < Stripe::StripeObject
|
88
|
-
attr_reader :reference, :reference_status
|
89
|
-
end
|
90
|
-
|
91
|
-
class UsBankTransfer < Stripe::StripeObject
|
92
|
-
attr_reader :reference, :reference_status
|
93
|
-
end
|
94
|
-
|
95
|
-
class WechatPay < Stripe::StripeObject; end
|
96
|
-
class Zip < Stripe::StripeObject; end
|
97
|
-
attr_reader :affirm, :afterpay_clearpay, :alipay, :alma, :amazon_pay, :au_bank_transfer, :blik, :br_bank_transfer, :card, :cashapp, :customer_cash_balance, :eps, :eu_bank_transfer, :gb_bank_transfer, :giropay, :grabpay, :id_bank_transfer, :jp_bank_transfer, :klarna, :multibanco, :mx_bank_transfer, :p24, :paynow, :paypal, :pix, :revolut, :sofort, :swish, :th_bank_transfer, :type, :us_bank_transfer, :wechat_pay, :zip
|
98
|
-
end
|
99
|
-
|
100
|
-
class NextAction < Stripe::StripeObject
|
101
|
-
class DisplayDetails < Stripe::StripeObject
|
102
|
-
class EmailSent < Stripe::StripeObject
|
103
|
-
attr_reader :email_sent_at, :email_sent_to
|
104
|
-
end
|
105
|
-
attr_reader :email_sent, :expires_at
|
106
|
-
end
|
107
|
-
attr_reader :display_details, :type
|
108
|
-
end
|
109
|
-
# Amount, in cents (or local equivalent).
|
110
|
-
attr_reader :amount
|
111
|
-
# Balance transaction that describes the impact on your account balance.
|
112
|
-
attr_reader :balance_transaction
|
113
|
-
# ID of the charge that's refunded.
|
114
|
-
attr_reader :charge
|
115
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
116
|
-
attr_reader :created
|
117
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
118
|
-
attr_reader :currency
|
119
|
-
# An arbitrary string attached to the object. You can use this for displaying to users (available on non-card refunds only).
|
120
|
-
attr_reader :description
|
121
|
-
# Attribute for field destination_details
|
122
|
-
attr_reader :destination_details
|
123
|
-
# After the refund fails, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction.
|
124
|
-
attr_reader :failure_balance_transaction
|
125
|
-
# Provides the reason for the refund failure. Possible values are: `lost_or_stolen_card`, `expired_or_canceled_card`, `charge_for_pending_refund_disputed`, `insufficient_funds`, `declined`, `merchant_request`, or `unknown`.
|
126
|
-
attr_reader :failure_reason
|
127
|
-
# Unique identifier for the object.
|
128
|
-
attr_reader :id
|
129
|
-
# For payment methods without native refund support (for example, Konbini, PromptPay), provide an email address for the customer to receive refund instructions.
|
130
|
-
attr_reader :instructions_email
|
131
|
-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
132
|
-
attr_reader :metadata
|
133
|
-
# Attribute for field next_action
|
134
|
-
attr_reader :next_action
|
135
|
-
# String representing the object's type. Objects of the same type share the same value.
|
136
|
-
attr_reader :object
|
137
|
-
# ID of the PaymentIntent that's refunded.
|
138
|
-
attr_reader :payment_intent
|
139
|
-
# Reason for the refund, which is either user-provided (`duplicate`, `fraudulent`, or `requested_by_customer`) or generated by Stripe internally (`expired_uncaptured_charge`).
|
140
|
-
attr_reader :reason
|
141
|
-
# This is the transaction number that appears on email receipts sent for this refund.
|
142
|
-
attr_reader :receipt_number
|
143
|
-
# The transfer reversal that's associated with the refund. Only present if the charge came from another Stripe account.
|
144
|
-
attr_reader :source_transfer_reversal
|
145
|
-
# Status of the refund. This can be `pending`, `requires_action`, `succeeded`, `failed`, or `canceled`. Learn more about [failed refunds](https://stripe.com/docs/refunds#failed-refunds).
|
146
|
-
attr_reader :status
|
147
|
-
# This refers to the transfer reversal object if the accompanying transfer reverses. This is only applicable if the charge was created using the destination parameter.
|
148
|
-
attr_reader :transfer_reversal
|
149
|
-
|
150
20
|
# Cancels a refund with a status of requires_action.
|
151
21
|
#
|
152
22
|
# You can't cancel refunds in other states. Only refunds for payment methods that require customer action can enter the requires_action state.
|
@@ -187,8 +57,8 @@ module Stripe
|
|
187
57
|
end
|
188
58
|
|
189
59
|
# Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object.
|
190
|
-
def self.list(
|
191
|
-
request_stripe_object(method: :get, path: "/v1/refunds", params:
|
60
|
+
def self.list(params = {}, opts = {})
|
61
|
+
request_stripe_object(method: :get, path: "/v1/refunds", params: params, opts: opts)
|
192
62
|
end
|
193
63
|
|
194
64
|
# Updates the refund that you specify by setting the values of the passed parameters. Any parameters that you don't provide remain unchanged.
|