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
@@ -25,67 +25,6 @@ module Stripe
|
|
25
25
|
"billing_portal.session"
|
26
26
|
end
|
27
27
|
|
28
|
-
class Flow < Stripe::StripeObject
|
29
|
-
class AfterCompletion < Stripe::StripeObject
|
30
|
-
class HostedConfirmation < Stripe::StripeObject
|
31
|
-
attr_reader :custom_message
|
32
|
-
end
|
33
|
-
|
34
|
-
class Redirect < Stripe::StripeObject
|
35
|
-
attr_reader :return_url
|
36
|
-
end
|
37
|
-
attr_reader :hosted_confirmation, :redirect, :type
|
38
|
-
end
|
39
|
-
|
40
|
-
class SubscriptionCancel < Stripe::StripeObject
|
41
|
-
class Retention < Stripe::StripeObject
|
42
|
-
class CouponOffer < Stripe::StripeObject
|
43
|
-
attr_reader :coupon
|
44
|
-
end
|
45
|
-
attr_reader :coupon_offer, :type
|
46
|
-
end
|
47
|
-
attr_reader :retention, :subscription
|
48
|
-
end
|
49
|
-
|
50
|
-
class SubscriptionUpdate < Stripe::StripeObject
|
51
|
-
attr_reader :subscription
|
52
|
-
end
|
53
|
-
|
54
|
-
class SubscriptionUpdateConfirm < Stripe::StripeObject
|
55
|
-
class Discount < Stripe::StripeObject
|
56
|
-
attr_reader :coupon, :promotion_code
|
57
|
-
end
|
58
|
-
|
59
|
-
class Item < Stripe::StripeObject
|
60
|
-
attr_reader :id, :price, :quantity
|
61
|
-
end
|
62
|
-
attr_reader :discounts, :items, :subscription
|
63
|
-
end
|
64
|
-
attr_reader :after_completion, :subscription_cancel, :subscription_update, :subscription_update_confirm, :type
|
65
|
-
end
|
66
|
-
# The configuration used by this session, describing the features available.
|
67
|
-
attr_reader :configuration
|
68
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
69
|
-
attr_reader :created
|
70
|
-
# The ID of the customer for this session.
|
71
|
-
attr_reader :customer
|
72
|
-
# Information about a specific flow for the customer to go through. See the [docs](https://stripe.com/docs/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows.
|
73
|
-
attr_reader :flow
|
74
|
-
# Unique identifier for the object.
|
75
|
-
attr_reader :id
|
76
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
77
|
-
attr_reader :livemode
|
78
|
-
# The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer’s `preferred_locales` or browser’s locale is used.
|
79
|
-
attr_reader :locale
|
80
|
-
# String representing the object's type. Objects of the same type share the same value.
|
81
|
-
attr_reader :object
|
82
|
-
# The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
83
|
-
attr_reader :on_behalf_of
|
84
|
-
# The URL to redirect customers to when they click on the portal's link to return to your website.
|
85
|
-
attr_reader :return_url
|
86
|
-
# The short-lived URL of the session that gives customers access to the customer portal.
|
87
|
-
attr_reader :url
|
88
|
-
|
89
28
|
# Creates a session of the customer portal.
|
90
29
|
def self.create(params = {}, opts = {})
|
91
30
|
request_stripe_object(
|
@@ -13,44 +13,6 @@ module Stripe
|
|
13
13
|
"capability"
|
14
14
|
end
|
15
15
|
|
16
|
-
class FutureRequirements < Stripe::StripeObject
|
17
|
-
class Alternative < Stripe::StripeObject
|
18
|
-
attr_reader :alternative_fields_due, :original_fields_due
|
19
|
-
end
|
20
|
-
|
21
|
-
class Error < Stripe::StripeObject
|
22
|
-
attr_reader :code, :reason, :requirement
|
23
|
-
end
|
24
|
-
attr_reader :alternatives, :current_deadline, :currently_due, :disabled_reason, :errors, :eventually_due, :past_due, :pending_verification
|
25
|
-
end
|
26
|
-
|
27
|
-
class Requirements < Stripe::StripeObject
|
28
|
-
class Alternative < Stripe::StripeObject
|
29
|
-
attr_reader :alternative_fields_due, :original_fields_due
|
30
|
-
end
|
31
|
-
|
32
|
-
class Error < Stripe::StripeObject
|
33
|
-
attr_reader :code, :reason, :requirement
|
34
|
-
end
|
35
|
-
attr_reader :alternatives, :current_deadline, :currently_due, :disabled_reason, :errors, :eventually_due, :past_due, :pending_verification
|
36
|
-
end
|
37
|
-
# The account for which the capability enables functionality.
|
38
|
-
attr_reader :account
|
39
|
-
# Attribute for field future_requirements
|
40
|
-
attr_reader :future_requirements
|
41
|
-
# The identifier for the capability.
|
42
|
-
attr_reader :id
|
43
|
-
# String representing the object's type. Objects of the same type share the same value.
|
44
|
-
attr_reader :object
|
45
|
-
# Whether the capability has been requested.
|
46
|
-
attr_reader :requested
|
47
|
-
# Time at which the capability was requested. Measured in seconds since the Unix epoch.
|
48
|
-
attr_reader :requested_at
|
49
|
-
# Attribute for field requirements
|
50
|
-
attr_reader :requirements
|
51
|
-
# The status of the capability.
|
52
|
-
attr_reader :status
|
53
|
-
|
54
16
|
def resource_url
|
55
17
|
if !respond_to?(:account) || account.nil?
|
56
18
|
raise NotImplementedError,
|
@@ -17,82 +17,6 @@ module Stripe
|
|
17
17
|
"card"
|
18
18
|
end
|
19
19
|
|
20
|
-
class Networks < Stripe::StripeObject
|
21
|
-
attr_reader :preferred
|
22
|
-
end
|
23
|
-
# The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead. This property is only available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
24
|
-
attr_reader :account
|
25
|
-
# City/District/Suburb/Town/Village.
|
26
|
-
attr_reader :address_city
|
27
|
-
# Billing address country, if provided when creating card.
|
28
|
-
attr_reader :address_country
|
29
|
-
# Address line 1 (Street address/PO Box/Company name).
|
30
|
-
attr_reader :address_line1
|
31
|
-
# If `address_line1` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
|
32
|
-
attr_reader :address_line1_check
|
33
|
-
# Address line 2 (Apartment/Suite/Unit/Building).
|
34
|
-
attr_reader :address_line2
|
35
|
-
# State/County/Province/Region.
|
36
|
-
attr_reader :address_state
|
37
|
-
# ZIP or postal code.
|
38
|
-
attr_reader :address_zip
|
39
|
-
# If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
|
40
|
-
attr_reader :address_zip_check
|
41
|
-
# 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”.
|
42
|
-
attr_reader :allow_redisplay
|
43
|
-
# A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
|
44
|
-
attr_reader :available_payout_methods
|
45
|
-
# Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
46
|
-
attr_reader :brand
|
47
|
-
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
48
|
-
attr_reader :country
|
49
|
-
# Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
50
|
-
attr_reader :currency
|
51
|
-
# The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
|
52
|
-
attr_reader :customer
|
53
|
-
# If a CVC was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see [Check if a card is valid without a charge](https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge).
|
54
|
-
attr_reader :cvc_check
|
55
|
-
# Whether this card is the default external account for its currency. This property is only available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
56
|
-
attr_reader :default_for_currency
|
57
|
-
# A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
58
|
-
attr_reader :description
|
59
|
-
# (For tokenized numbers only.) The last four digits of the device account number.
|
60
|
-
attr_reader :dynamic_last4
|
61
|
-
# Two-digit number representing the card's expiration month.
|
62
|
-
attr_reader :exp_month
|
63
|
-
# Four-digit number representing the card's expiration year.
|
64
|
-
attr_reader :exp_year
|
65
|
-
# Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
|
66
|
-
#
|
67
|
-
# *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
|
68
|
-
attr_reader :fingerprint
|
69
|
-
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
70
|
-
attr_reader :funding
|
71
|
-
# Unique identifier for the object.
|
72
|
-
attr_reader :id
|
73
|
-
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
74
|
-
attr_reader :iin
|
75
|
-
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
76
|
-
attr_reader :issuer
|
77
|
-
# The last four digits of the card.
|
78
|
-
attr_reader :last4
|
79
|
-
# 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.
|
80
|
-
attr_reader :metadata
|
81
|
-
# Cardholder name.
|
82
|
-
attr_reader :name
|
83
|
-
# Attribute for field networks
|
84
|
-
attr_reader :networks
|
85
|
-
# String representing the object's type. Objects of the same type share the same value.
|
86
|
-
attr_reader :object
|
87
|
-
# Status of a card based on the card issuer.
|
88
|
-
attr_reader :regulated_status
|
89
|
-
# For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
|
90
|
-
attr_reader :status
|
91
|
-
# If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null.
|
92
|
-
attr_reader :tokenization_method
|
93
|
-
# Always true for a deleted object
|
94
|
-
attr_reader :deleted
|
95
|
-
|
96
20
|
def resource_url
|
97
21
|
if respond_to?(:customer) && !customer.nil? && !customer.empty?
|
98
22
|
"#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
|
@@ -134,7 +58,7 @@ module Stripe
|
|
134
58
|
)
|
135
59
|
end
|
136
60
|
|
137
|
-
def self.list(
|
61
|
+
def self.list(params = {}, opts = {})
|
138
62
|
raise NotImplementedError,
|
139
63
|
"Cards cannot be listed without a customer ID or an account " \
|
140
64
|
"ID. List cards using `Customer.list_sources(" \
|
@@ -9,20 +9,6 @@ module Stripe
|
|
9
9
|
"cash_balance"
|
10
10
|
end
|
11
11
|
|
12
|
-
class Settings < Stripe::StripeObject
|
13
|
-
attr_reader :reconciliation_mode, :using_merchant_default
|
14
|
-
end
|
15
|
-
# A hash of all cash balances available to this customer. You cannot delete a customer with any cash balances, even if the balance is 0. Amounts are represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
16
|
-
attr_reader :available
|
17
|
-
# The ID of the customer whose cash balance this object represents.
|
18
|
-
attr_reader :customer
|
19
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
20
|
-
attr_reader :livemode
|
21
|
-
# String representing the object's type. Objects of the same type share the same value.
|
22
|
-
attr_reader :object
|
23
|
-
# Attribute for field settings
|
24
|
-
attr_reader :settings
|
25
|
-
|
26
12
|
def resource_url
|
27
13
|
if !respond_to?(:customer) || customer.nil?
|
28
14
|
raise NotImplementedError,
|