stripe 13.3.0.pre.beta.2 → 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 -1394
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +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 -46
- 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 -73
- 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 -90
- 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 -195
- 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 -194
- 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
@@ -17,212 +17,14 @@ module Stripe
|
|
17
17
|
"payment_link"
|
18
18
|
end
|
19
19
|
|
20
|
-
class AfterCompletion < Stripe::StripeObject
|
21
|
-
class HostedConfirmation < Stripe::StripeObject
|
22
|
-
attr_reader :custom_message
|
23
|
-
end
|
24
|
-
|
25
|
-
class Redirect < Stripe::StripeObject
|
26
|
-
attr_reader :url
|
27
|
-
end
|
28
|
-
attr_reader :hosted_confirmation, :redirect, :type
|
29
|
-
end
|
30
|
-
|
31
|
-
class AutomaticTax < Stripe::StripeObject
|
32
|
-
class Liability < Stripe::StripeObject
|
33
|
-
attr_reader :account, :type
|
34
|
-
end
|
35
|
-
attr_reader :enabled, :liability
|
36
|
-
end
|
37
|
-
|
38
|
-
class ConsentCollection < Stripe::StripeObject
|
39
|
-
class PaymentMethodReuseAgreement < Stripe::StripeObject
|
40
|
-
attr_reader :position
|
41
|
-
end
|
42
|
-
attr_reader :payment_method_reuse_agreement, :promotions, :terms_of_service
|
43
|
-
end
|
44
|
-
|
45
|
-
class CustomField < Stripe::StripeObject
|
46
|
-
class Dropdown < Stripe::StripeObject
|
47
|
-
class Option < Stripe::StripeObject
|
48
|
-
attr_reader :label, :value
|
49
|
-
end
|
50
|
-
attr_reader :options
|
51
|
-
end
|
52
|
-
|
53
|
-
class Label < Stripe::StripeObject
|
54
|
-
attr_reader :custom, :type
|
55
|
-
end
|
56
|
-
|
57
|
-
class Numeric < Stripe::StripeObject
|
58
|
-
attr_reader :maximum_length, :minimum_length
|
59
|
-
end
|
60
|
-
|
61
|
-
class Text < Stripe::StripeObject
|
62
|
-
attr_reader :maximum_length, :minimum_length
|
63
|
-
end
|
64
|
-
attr_reader :dropdown, :key, :label, :numeric, :optional, :text, :type
|
65
|
-
end
|
66
|
-
|
67
|
-
class CustomText < Stripe::StripeObject
|
68
|
-
class AfterSubmit < Stripe::StripeObject
|
69
|
-
attr_reader :message
|
70
|
-
end
|
71
|
-
|
72
|
-
class ShippingAddress < Stripe::StripeObject
|
73
|
-
attr_reader :message
|
74
|
-
end
|
75
|
-
|
76
|
-
class Submit < Stripe::StripeObject
|
77
|
-
attr_reader :message
|
78
|
-
end
|
79
|
-
|
80
|
-
class TermsOfServiceAcceptance < Stripe::StripeObject
|
81
|
-
attr_reader :message
|
82
|
-
end
|
83
|
-
attr_reader :after_submit, :shipping_address, :submit, :terms_of_service_acceptance
|
84
|
-
end
|
85
|
-
|
86
|
-
class InvoiceCreation < Stripe::StripeObject
|
87
|
-
class InvoiceData < Stripe::StripeObject
|
88
|
-
class CustomField < Stripe::StripeObject
|
89
|
-
attr_reader :name, :value
|
90
|
-
end
|
91
|
-
|
92
|
-
class Issuer < Stripe::StripeObject
|
93
|
-
attr_reader :account, :type
|
94
|
-
end
|
95
|
-
|
96
|
-
class RenderingOptions < Stripe::StripeObject
|
97
|
-
attr_reader :amount_tax_display
|
98
|
-
end
|
99
|
-
attr_reader :account_tax_ids, :custom_fields, :description, :footer, :issuer, :metadata, :rendering_options
|
100
|
-
end
|
101
|
-
attr_reader :enabled, :invoice_data
|
102
|
-
end
|
103
|
-
|
104
|
-
class PaymentIntentData < Stripe::StripeObject
|
105
|
-
attr_reader :capture_method, :description, :metadata, :setup_future_usage, :statement_descriptor, :statement_descriptor_suffix, :transfer_group
|
106
|
-
end
|
107
|
-
|
108
|
-
class PhoneNumberCollection < Stripe::StripeObject
|
109
|
-
attr_reader :enabled
|
110
|
-
end
|
111
|
-
|
112
|
-
class Restrictions < Stripe::StripeObject
|
113
|
-
class CompletedSessions < Stripe::StripeObject
|
114
|
-
attr_reader :count, :limit
|
115
|
-
end
|
116
|
-
attr_reader :completed_sessions
|
117
|
-
end
|
118
|
-
|
119
|
-
class ShippingAddressCollection < Stripe::StripeObject
|
120
|
-
attr_reader :allowed_countries
|
121
|
-
end
|
122
|
-
|
123
|
-
class ShippingOption < Stripe::StripeObject
|
124
|
-
attr_reader :shipping_amount, :shipping_rate
|
125
|
-
end
|
126
|
-
|
127
|
-
class SubscriptionData < Stripe::StripeObject
|
128
|
-
class InvoiceSettings < Stripe::StripeObject
|
129
|
-
class Issuer < Stripe::StripeObject
|
130
|
-
attr_reader :account, :type
|
131
|
-
end
|
132
|
-
attr_reader :issuer
|
133
|
-
end
|
134
|
-
|
135
|
-
class TrialSettings < Stripe::StripeObject
|
136
|
-
class EndBehavior < Stripe::StripeObject
|
137
|
-
attr_reader :missing_payment_method
|
138
|
-
end
|
139
|
-
attr_reader :end_behavior
|
140
|
-
end
|
141
|
-
attr_reader :description, :invoice_settings, :metadata, :trial_period_days, :trial_settings
|
142
|
-
end
|
143
|
-
|
144
|
-
class TaxIdCollection < Stripe::StripeObject
|
145
|
-
attr_reader :enabled, :required
|
146
|
-
end
|
147
|
-
|
148
|
-
class TransferData < Stripe::StripeObject
|
149
|
-
attr_reader :amount, :destination
|
150
|
-
end
|
151
|
-
# Whether the payment link's `url` is active. If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated.
|
152
|
-
attr_reader :active
|
153
|
-
# Attribute for field after_completion
|
154
|
-
attr_reader :after_completion
|
155
|
-
# Whether user redeemable promotion codes are enabled.
|
156
|
-
attr_reader :allow_promotion_codes
|
157
|
-
# The ID of the Connect application that created the Payment Link.
|
158
|
-
attr_reader :application
|
159
|
-
# 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.
|
160
|
-
attr_reader :application_fee_amount
|
161
|
-
# This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account.
|
162
|
-
attr_reader :application_fee_percent
|
163
|
-
# Attribute for field automatic_tax
|
164
|
-
attr_reader :automatic_tax
|
165
|
-
# Configuration for collecting the customer's billing address. Defaults to `auto`.
|
166
|
-
attr_reader :billing_address_collection
|
167
|
-
# When set, provides configuration to gather active consent from customers.
|
168
|
-
attr_reader :consent_collection
|
169
|
-
# 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).
|
170
|
-
attr_reader :currency
|
171
|
-
# Collect additional information from your customer using custom fields. Up to 3 fields are supported.
|
172
|
-
attr_reader :custom_fields
|
173
|
-
# Attribute for field custom_text
|
174
|
-
attr_reader :custom_text
|
175
|
-
# Configuration for Customer creation during checkout.
|
176
|
-
attr_reader :customer_creation
|
177
|
-
# Unique identifier for the object.
|
178
|
-
attr_reader :id
|
179
|
-
# The custom message to be displayed to a customer when a payment link is no longer active.
|
180
|
-
attr_reader :inactive_message
|
181
|
-
# Configuration for creating invoice for payment mode payment links.
|
182
|
-
attr_reader :invoice_creation
|
183
|
-
# The line items representing what is being sold.
|
184
|
-
attr_reader :line_items
|
185
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
186
|
-
attr_reader :livemode
|
187
|
-
# 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.
|
188
|
-
attr_reader :metadata
|
189
|
-
# String representing the object's type. Objects of the same type share the same value.
|
190
|
-
attr_reader :object
|
191
|
-
# 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.
|
192
|
-
attr_reader :on_behalf_of
|
193
|
-
# Indicates the parameters to be passed to PaymentIntent creation during checkout.
|
194
|
-
attr_reader :payment_intent_data
|
195
|
-
# Configuration for collecting a payment method during checkout. Defaults to `always`.
|
196
|
-
attr_reader :payment_method_collection
|
197
|
-
# The list of payment method types that customers can use. When `null`, Stripe will dynamically show relevant payment methods you've enabled in your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
|
198
|
-
attr_reader :payment_method_types
|
199
|
-
# Attribute for field phone_number_collection
|
200
|
-
attr_reader :phone_number_collection
|
201
|
-
# Settings that restrict the usage of a payment link.
|
202
|
-
attr_reader :restrictions
|
203
|
-
# Configuration for collecting the customer's shipping address.
|
204
|
-
attr_reader :shipping_address_collection
|
205
|
-
# The shipping rate options applied to the session.
|
206
|
-
attr_reader :shipping_options
|
207
|
-
# Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button.
|
208
|
-
attr_reader :submit_type
|
209
|
-
# When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.
|
210
|
-
attr_reader :subscription_data
|
211
|
-
# Attribute for field tax_id_collection
|
212
|
-
attr_reader :tax_id_collection
|
213
|
-
# The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
|
214
|
-
attr_reader :transfer_data
|
215
|
-
# The public URL that can be shared with customers.
|
216
|
-
attr_reader :url
|
217
|
-
|
218
20
|
# Creates a payment link.
|
219
21
|
def self.create(params = {}, opts = {})
|
220
22
|
request_stripe_object(method: :post, path: "/v1/payment_links", params: params, opts: opts)
|
221
23
|
end
|
222
24
|
|
223
25
|
# Returns a list of your payment links.
|
224
|
-
def self.list(
|
225
|
-
request_stripe_object(method: :get, path: "/v1/payment_links", params:
|
26
|
+
def self.list(params = {}, opts = {})
|
27
|
+
request_stripe_object(method: :get, path: "/v1/payment_links", params: params, opts: opts)
|
226
28
|
end
|
227
29
|
|
228
30
|
# When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
|
@@ -17,374 +17,6 @@ module Stripe
|
|
17
17
|
"payment_method"
|
18
18
|
end
|
19
19
|
|
20
|
-
class AcssDebit < Stripe::StripeObject
|
21
|
-
attr_reader :bank_name, :fingerprint, :institution_number, :last4, :transit_number
|
22
|
-
end
|
23
|
-
|
24
|
-
class Affirm < Stripe::StripeObject; end
|
25
|
-
class AfterpayClearpay < Stripe::StripeObject; end
|
26
|
-
class Alipay < Stripe::StripeObject; end
|
27
|
-
class Alma < Stripe::StripeObject; end
|
28
|
-
class AmazonPay < Stripe::StripeObject; end
|
29
|
-
|
30
|
-
class AuBecsDebit < Stripe::StripeObject
|
31
|
-
attr_reader :bsb_number, :fingerprint, :last4
|
32
|
-
end
|
33
|
-
|
34
|
-
class BacsDebit < Stripe::StripeObject
|
35
|
-
attr_reader :fingerprint, :last4, :sort_code
|
36
|
-
end
|
37
|
-
|
38
|
-
class Bancontact < Stripe::StripeObject; end
|
39
|
-
|
40
|
-
class BillingDetails < Stripe::StripeObject
|
41
|
-
class Address < Stripe::StripeObject
|
42
|
-
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
43
|
-
end
|
44
|
-
attr_reader :address, :email, :name, :phone
|
45
|
-
end
|
46
|
-
|
47
|
-
class Blik < Stripe::StripeObject; end
|
48
|
-
|
49
|
-
class Boleto < Stripe::StripeObject
|
50
|
-
attr_reader :tax_id
|
51
|
-
end
|
52
|
-
|
53
|
-
class Card < Stripe::StripeObject
|
54
|
-
class Checks < Stripe::StripeObject
|
55
|
-
attr_reader :address_line1_check, :address_postal_code_check, :cvc_check
|
56
|
-
end
|
57
|
-
|
58
|
-
class GeneratedFrom < Stripe::StripeObject
|
59
|
-
class PaymentMethodDetails < Stripe::StripeObject
|
60
|
-
class CardPresent < Stripe::StripeObject
|
61
|
-
class Offline < Stripe::StripeObject
|
62
|
-
attr_reader :stored_at, :type
|
63
|
-
end
|
64
|
-
|
65
|
-
class Receipt < Stripe::StripeObject
|
66
|
-
attr_reader :account_type, :application_cryptogram, :application_preferred_name, :authorization_code, :authorization_response_code, :cardholder_verification_method, :dedicated_file_name, :terminal_verification_results, :transaction_status_information
|
67
|
-
end
|
68
|
-
|
69
|
-
class Wallet < Stripe::StripeObject
|
70
|
-
attr_reader :type
|
71
|
-
end
|
72
|
-
attr_reader :amount_authorized, :brand, :brand_product, :capture_before, :cardholder_name, :country, :description, :emv_auth_data, :exp_month, :exp_year, :fingerprint, :funding, :generated_card, :iin, :incremental_authorization_supported, :issuer, :last4, :network, :network_transaction_id, :offline, :overcapture_supported, :preferred_locales, :read_method, :receipt, :wallet
|
73
|
-
end
|
74
|
-
attr_reader :card_present, :type
|
75
|
-
end
|
76
|
-
attr_reader :charge, :payment_method_details, :setup_attempt
|
77
|
-
end
|
78
|
-
|
79
|
-
class Networks < Stripe::StripeObject
|
80
|
-
attr_reader :available, :preferred
|
81
|
-
end
|
82
|
-
|
83
|
-
class ThreeDSecureUsage < Stripe::StripeObject
|
84
|
-
attr_reader :supported
|
85
|
-
end
|
86
|
-
|
87
|
-
class Wallet < Stripe::StripeObject
|
88
|
-
class AmexExpressCheckout < Stripe::StripeObject; end
|
89
|
-
class ApplePay < Stripe::StripeObject; end
|
90
|
-
class GooglePay < Stripe::StripeObject; end
|
91
|
-
class Link < Stripe::StripeObject; end
|
92
|
-
|
93
|
-
class Masterpass < Stripe::StripeObject
|
94
|
-
class BillingAddress < Stripe::StripeObject
|
95
|
-
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
96
|
-
end
|
97
|
-
|
98
|
-
class ShippingAddress < Stripe::StripeObject
|
99
|
-
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
100
|
-
end
|
101
|
-
attr_reader :billing_address, :email, :name, :shipping_address
|
102
|
-
end
|
103
|
-
|
104
|
-
class SamsungPay < Stripe::StripeObject; end
|
105
|
-
|
106
|
-
class VisaCheckout < Stripe::StripeObject
|
107
|
-
class BillingAddress < Stripe::StripeObject
|
108
|
-
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
109
|
-
end
|
110
|
-
|
111
|
-
class ShippingAddress < Stripe::StripeObject
|
112
|
-
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
113
|
-
end
|
114
|
-
attr_reader :billing_address, :email, :name, :shipping_address
|
115
|
-
end
|
116
|
-
attr_reader :amex_express_checkout, :apple_pay, :dynamic_last4, :google_pay, :link, :masterpass, :samsung_pay, :type, :visa_checkout
|
117
|
-
end
|
118
|
-
attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :three_d_secure_usage, :wallet
|
119
|
-
end
|
120
|
-
|
121
|
-
class CardPresent < Stripe::StripeObject
|
122
|
-
class Networks < Stripe::StripeObject
|
123
|
-
attr_reader :available, :preferred
|
124
|
-
end
|
125
|
-
|
126
|
-
class Offline < Stripe::StripeObject
|
127
|
-
attr_reader :stored_at, :type
|
128
|
-
end
|
129
|
-
|
130
|
-
class Wallet < Stripe::StripeObject
|
131
|
-
attr_reader :type
|
132
|
-
end
|
133
|
-
attr_reader :brand, :brand_product, :cardholder_name, :country, :description, :exp_month, :exp_year, :fingerprint, :funding, :iin, :issuer, :last4, :networks, :offline, :preferred_locales, :read_method, :wallet
|
134
|
-
end
|
135
|
-
|
136
|
-
class Cashapp < Stripe::StripeObject
|
137
|
-
attr_reader :buyer_id, :cashtag
|
138
|
-
end
|
139
|
-
|
140
|
-
class CustomerBalance < Stripe::StripeObject; end
|
141
|
-
|
142
|
-
class Eps < Stripe::StripeObject
|
143
|
-
attr_reader :bank
|
144
|
-
end
|
145
|
-
|
146
|
-
class Fpx < Stripe::StripeObject
|
147
|
-
attr_reader :account_holder_type, :bank
|
148
|
-
end
|
149
|
-
|
150
|
-
class Giropay < Stripe::StripeObject; end
|
151
|
-
class Gopay < Stripe::StripeObject; end
|
152
|
-
class Grabpay < Stripe::StripeObject; end
|
153
|
-
|
154
|
-
class IdBankTransfer < Stripe::StripeObject
|
155
|
-
attr_reader :bank, :bank_code, :bank_name, :display_name
|
156
|
-
end
|
157
|
-
|
158
|
-
class Ideal < Stripe::StripeObject
|
159
|
-
attr_reader :bank, :bic
|
160
|
-
end
|
161
|
-
|
162
|
-
class InteracPresent < Stripe::StripeObject
|
163
|
-
class Networks < Stripe::StripeObject
|
164
|
-
attr_reader :available, :preferred
|
165
|
-
end
|
166
|
-
attr_reader :brand, :cardholder_name, :country, :description, :exp_month, :exp_year, :fingerprint, :funding, :iin, :issuer, :last4, :networks, :preferred_locales, :read_method
|
167
|
-
end
|
168
|
-
|
169
|
-
class KakaoPay < Stripe::StripeObject; end
|
170
|
-
|
171
|
-
class Klarna < Stripe::StripeObject
|
172
|
-
class Dob < Stripe::StripeObject
|
173
|
-
attr_reader :day, :month, :year
|
174
|
-
end
|
175
|
-
attr_reader :dob
|
176
|
-
end
|
177
|
-
|
178
|
-
class Konbini < Stripe::StripeObject; end
|
179
|
-
|
180
|
-
class KrCard < Stripe::StripeObject
|
181
|
-
attr_reader :brand, :last4
|
182
|
-
end
|
183
|
-
|
184
|
-
class Link < Stripe::StripeObject
|
185
|
-
attr_reader :email, :persistent_token
|
186
|
-
end
|
187
|
-
|
188
|
-
class MbWay < Stripe::StripeObject; end
|
189
|
-
class Mobilepay < Stripe::StripeObject; end
|
190
|
-
class Multibanco < Stripe::StripeObject; end
|
191
|
-
|
192
|
-
class NaverPay < Stripe::StripeObject
|
193
|
-
attr_reader :funding
|
194
|
-
end
|
195
|
-
|
196
|
-
class Oxxo < Stripe::StripeObject; end
|
197
|
-
|
198
|
-
class P24 < Stripe::StripeObject
|
199
|
-
attr_reader :bank
|
200
|
-
end
|
201
|
-
|
202
|
-
class Payco < Stripe::StripeObject; end
|
203
|
-
class Paynow < Stripe::StripeObject; end
|
204
|
-
|
205
|
-
class Paypal < Stripe::StripeObject
|
206
|
-
attr_reader :fingerprint, :payer_email, :payer_id, :verified_email
|
207
|
-
end
|
208
|
-
|
209
|
-
class Payto < Stripe::StripeObject
|
210
|
-
attr_reader :bsb_number, :last4, :pay_id
|
211
|
-
end
|
212
|
-
|
213
|
-
class Pix < Stripe::StripeObject; end
|
214
|
-
class Promptpay < Stripe::StripeObject; end
|
215
|
-
class Qris < Stripe::StripeObject; end
|
216
|
-
|
217
|
-
class RadarOptions < Stripe::StripeObject
|
218
|
-
attr_reader :session
|
219
|
-
end
|
220
|
-
|
221
|
-
class Rechnung < Stripe::StripeObject
|
222
|
-
class Dob < Stripe::StripeObject
|
223
|
-
attr_reader :day, :month, :year
|
224
|
-
end
|
225
|
-
attr_reader :dob
|
226
|
-
end
|
227
|
-
|
228
|
-
class RevolutPay < Stripe::StripeObject; end
|
229
|
-
class SamsungPay < Stripe::StripeObject; end
|
230
|
-
|
231
|
-
class SepaDebit < Stripe::StripeObject
|
232
|
-
class GeneratedFrom < Stripe::StripeObject
|
233
|
-
attr_reader :charge, :setup_attempt
|
234
|
-
end
|
235
|
-
attr_reader :bank_code, :branch_code, :country, :fingerprint, :generated_from, :last4
|
236
|
-
end
|
237
|
-
|
238
|
-
class Shopeepay < Stripe::StripeObject; end
|
239
|
-
|
240
|
-
class Sofort < Stripe::StripeObject
|
241
|
-
attr_reader :country
|
242
|
-
end
|
243
|
-
|
244
|
-
class Swish < Stripe::StripeObject; end
|
245
|
-
class Twint < Stripe::StripeObject; end
|
246
|
-
|
247
|
-
class UsBankAccount < Stripe::StripeObject
|
248
|
-
class Networks < Stripe::StripeObject
|
249
|
-
attr_reader :preferred, :supported
|
250
|
-
end
|
251
|
-
|
252
|
-
class StatusDetails < Stripe::StripeObject
|
253
|
-
class Blocked < Stripe::StripeObject
|
254
|
-
attr_reader :network_code, :reason
|
255
|
-
end
|
256
|
-
attr_reader :blocked
|
257
|
-
end
|
258
|
-
attr_reader :account_holder_type, :account_number, :account_type, :bank_name, :financial_connections_account, :fingerprint, :last4, :networks, :routing_number, :status_details
|
259
|
-
end
|
260
|
-
|
261
|
-
class WechatPay < Stripe::StripeObject; end
|
262
|
-
class Zip < Stripe::StripeObject; end
|
263
|
-
# Attribute for field acss_debit
|
264
|
-
attr_reader :acss_debit
|
265
|
-
# Attribute for field affirm
|
266
|
-
attr_reader :affirm
|
267
|
-
# Attribute for field afterpay_clearpay
|
268
|
-
attr_reader :afterpay_clearpay
|
269
|
-
# Attribute for field alipay
|
270
|
-
attr_reader :alipay
|
271
|
-
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
|
272
|
-
attr_reader :allow_redisplay
|
273
|
-
# Attribute for field alma
|
274
|
-
attr_reader :alma
|
275
|
-
# Attribute for field amazon_pay
|
276
|
-
attr_reader :amazon_pay
|
277
|
-
# Attribute for field au_becs_debit
|
278
|
-
attr_reader :au_becs_debit
|
279
|
-
# Attribute for field bacs_debit
|
280
|
-
attr_reader :bacs_debit
|
281
|
-
# Attribute for field bancontact
|
282
|
-
attr_reader :bancontact
|
283
|
-
# Attribute for field billing_details
|
284
|
-
attr_reader :billing_details
|
285
|
-
# Attribute for field blik
|
286
|
-
attr_reader :blik
|
287
|
-
# Attribute for field boleto
|
288
|
-
attr_reader :boleto
|
289
|
-
# Attribute for field card
|
290
|
-
attr_reader :card
|
291
|
-
# Attribute for field card_present
|
292
|
-
attr_reader :card_present
|
293
|
-
# Attribute for field cashapp
|
294
|
-
attr_reader :cashapp
|
295
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
296
|
-
attr_reader :created
|
297
|
-
# The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
|
298
|
-
attr_reader :customer
|
299
|
-
# Attribute for field customer_balance
|
300
|
-
attr_reader :customer_balance
|
301
|
-
# Attribute for field eps
|
302
|
-
attr_reader :eps
|
303
|
-
# Attribute for field fpx
|
304
|
-
attr_reader :fpx
|
305
|
-
# Attribute for field giropay
|
306
|
-
attr_reader :giropay
|
307
|
-
# Attribute for field gopay
|
308
|
-
attr_reader :gopay
|
309
|
-
# Attribute for field grabpay
|
310
|
-
attr_reader :grabpay
|
311
|
-
# Unique identifier for the object.
|
312
|
-
attr_reader :id
|
313
|
-
# Attribute for field id_bank_transfer
|
314
|
-
attr_reader :id_bank_transfer
|
315
|
-
# Attribute for field ideal
|
316
|
-
attr_reader :ideal
|
317
|
-
# Attribute for field interac_present
|
318
|
-
attr_reader :interac_present
|
319
|
-
# Attribute for field kakao_pay
|
320
|
-
attr_reader :kakao_pay
|
321
|
-
# Attribute for field klarna
|
322
|
-
attr_reader :klarna
|
323
|
-
# Attribute for field konbini
|
324
|
-
attr_reader :konbini
|
325
|
-
# Attribute for field kr_card
|
326
|
-
attr_reader :kr_card
|
327
|
-
# Attribute for field link
|
328
|
-
attr_reader :link
|
329
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
330
|
-
attr_reader :livemode
|
331
|
-
# Attribute for field mb_way
|
332
|
-
attr_reader :mb_way
|
333
|
-
# 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.
|
334
|
-
attr_reader :metadata
|
335
|
-
# Attribute for field mobilepay
|
336
|
-
attr_reader :mobilepay
|
337
|
-
# Attribute for field multibanco
|
338
|
-
attr_reader :multibanco
|
339
|
-
# Attribute for field naver_pay
|
340
|
-
attr_reader :naver_pay
|
341
|
-
# String representing the object's type. Objects of the same type share the same value.
|
342
|
-
attr_reader :object
|
343
|
-
# Attribute for field oxxo
|
344
|
-
attr_reader :oxxo
|
345
|
-
# Attribute for field p24
|
346
|
-
attr_reader :p24
|
347
|
-
# Attribute for field payco
|
348
|
-
attr_reader :payco
|
349
|
-
# Attribute for field paynow
|
350
|
-
attr_reader :paynow
|
351
|
-
# Attribute for field paypal
|
352
|
-
attr_reader :paypal
|
353
|
-
# Attribute for field payto
|
354
|
-
attr_reader :payto
|
355
|
-
# Attribute for field pix
|
356
|
-
attr_reader :pix
|
357
|
-
# Attribute for field promptpay
|
358
|
-
attr_reader :promptpay
|
359
|
-
# Attribute for field qris
|
360
|
-
attr_reader :qris
|
361
|
-
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
362
|
-
attr_reader :radar_options
|
363
|
-
# Attribute for field rechnung
|
364
|
-
attr_reader :rechnung
|
365
|
-
# Attribute for field revolut_pay
|
366
|
-
attr_reader :revolut_pay
|
367
|
-
# Attribute for field samsung_pay
|
368
|
-
attr_reader :samsung_pay
|
369
|
-
# Attribute for field sepa_debit
|
370
|
-
attr_reader :sepa_debit
|
371
|
-
# Attribute for field shopeepay
|
372
|
-
attr_reader :shopeepay
|
373
|
-
# Attribute for field sofort
|
374
|
-
attr_reader :sofort
|
375
|
-
# Attribute for field swish
|
376
|
-
attr_reader :swish
|
377
|
-
# Attribute for field twint
|
378
|
-
attr_reader :twint
|
379
|
-
# The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
380
|
-
attr_reader :type
|
381
|
-
# Attribute for field us_bank_account
|
382
|
-
attr_reader :us_bank_account
|
383
|
-
# Attribute for field wechat_pay
|
384
|
-
attr_reader :wechat_pay
|
385
|
-
# Attribute for field zip
|
386
|
-
attr_reader :zip
|
387
|
-
|
388
20
|
# Attaches a PaymentMethod object to a Customer.
|
389
21
|
#
|
390
22
|
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
@@ -457,8 +89,8 @@ module Stripe
|
|
457
89
|
end
|
458
90
|
|
459
91
|
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
|
460
|
-
def self.list(
|
461
|
-
request_stripe_object(method: :get, path: "/v1/payment_methods", params:
|
92
|
+
def self.list(params = {}, opts = {})
|
93
|
+
request_stripe_object(method: :get, path: "/v1/payment_methods", params: params, opts: opts)
|
462
94
|
end
|
463
95
|
|
464
96
|
# Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
|