# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe # A Payment Attempt Record represents an individual attempt at making a payment, on or off Stripe. # Each payment attempt tries to collect a fixed amount of money from a fixed customer and payment # method. Payment Attempt Records are attached to Payment Records. Only one attempt per Payment Record # can have guaranteed funds. class PaymentAttemptRecord < APIResource extend Stripe::APIOperations::List OBJECT_NAME = "payment_attempt_record" def self.object_name "payment_attempt_record" end class Amount < Stripe::StripeObject # 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). attr_reader :currency # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. attr_reader :value def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class AmountAuthorized < Stripe::StripeObject # 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). attr_reader :currency # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. attr_reader :value def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class AmountCanceled < Stripe::StripeObject # 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). attr_reader :currency # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. attr_reader :value def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class AmountFailed < Stripe::StripeObject # 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). attr_reader :currency # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. attr_reader :value def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class AmountGuaranteed < Stripe::StripeObject # 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). attr_reader :currency # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. attr_reader :value def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class AmountRefunded < Stripe::StripeObject # 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). attr_reader :currency # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. attr_reader :value def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class AmountRequested < Stripe::StripeObject # 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). attr_reader :currency # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. attr_reader :value def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class CustomerDetails < Stripe::StripeObject # ID of the Stripe Customer associated with this payment. attr_reader :customer # The customer's email address. attr_reader :email # The customer's name. attr_reader :name # The customer's phone number. attr_reader :phone def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class PaymentMethodDetails < Stripe::StripeObject class AchCreditTransfer < Stripe::StripeObject # Account number to transfer funds to. attr_reader :account_number # Name of the bank associated with the routing number. attr_reader :bank_name # Routing transit number for the bank account to transfer funds to. attr_reader :routing_number # SWIFT code of the bank associated with the routing number. attr_reader :swift_code def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class AchDebit < Stripe::StripeObject # Type of entity that holds the account. This can be either `individual` or `company`. attr_reader :account_holder_type # Name of the bank associated with the bank account. attr_reader :bank_name # Two-letter ISO code representing the country the bank account is located in. attr_reader :country # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. attr_reader :fingerprint # Last four digits of the bank account number. attr_reader :last4 # Routing transit number of the bank account. attr_reader :routing_number def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class AcssDebit < Stripe::StripeObject # Name of the bank associated with the bank account. attr_reader :bank_name # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. attr_reader :fingerprint # Institution number of the bank account attr_reader :institution_number # Last four digits of the bank account number. attr_reader :last4 # ID of the mandate used to make this payment. attr_reader :mandate # Transit number of the bank account. attr_reader :transit_number def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Affirm < Stripe::StripeObject # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. attr_reader :location # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. attr_reader :reader # The Affirm transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class AfterpayClearpay < Stripe::StripeObject # The Afterpay order ID associated with this payment intent. attr_reader :order_id # Order identifier shown to the merchant in Afterpay’s online portal. attr_reader :reference def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Alipay < Stripe::StripeObject # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. attr_reader :buyer_id # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. attr_reader :fingerprint # Transaction ID of this particular Alipay transaction. attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Alma < Stripe::StripeObject class Installments < Stripe::StripeObject # The number of installments. attr_reader :count def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # Attribute for field installments attr_reader :installments # The Alma transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = { installments: Installments } end def self.field_remappings @field_remappings = {} end end class AmazonPay < Stripe::StripeObject class Funding < Stripe::StripeObject class Card < Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. attr_reader :brand # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.) attr_reader :brand_product # 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. attr_reader :country # Two-digit number representing the card's expiration month. attr_reader :exp_month # Four-digit number representing the card's expiration year. attr_reader :exp_year # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. attr_reader :funding # The last four digits of the card. attr_reader :last4 def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # Attribute for field card attr_reader :card # funding type of the underlying payment method. attr_reader :type def self.inner_class_types @inner_class_types = { card: Card } end def self.field_remappings @field_remappings = {} end end # Attribute for field funding attr_reader :funding # The Amazon Pay transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = { funding: Funding } end def self.field_remappings @field_remappings = {} end end class AuBecsDebit < Stripe::StripeObject # Bank-State-Branch number of the bank account. attr_reader :bsb_number # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. attr_reader :fingerprint # Last four digits of the bank account number. attr_reader :last4 # ID of the mandate used to make this payment. attr_reader :mandate def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class BacsDebit < Stripe::StripeObject # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. attr_reader :fingerprint # Last four digits of the bank account number. attr_reader :last4 # ID of the mandate used to make this payment. attr_reader :mandate # Sort code of the bank account. (e.g., `10-20-30`) attr_reader :sort_code def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Bancontact < Stripe::StripeObject # Bank code of bank associated with the bank account. attr_reader :bank_code # Name of the bank associated with the bank account. attr_reader :bank_name # Bank Identifier Code of the bank associated with the bank account. attr_reader :bic # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. attr_reader :generated_sepa_debit # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. attr_reader :generated_sepa_debit_mandate # Last four characters of the IBAN. attr_reader :iban_last4 # Preferred language of the Bancontact authorization page that the customer is redirected to. # Can be one of `en`, `de`, `fr`, or `nl` attr_reader :preferred_language # Owner's verified full name. Values are verified or provided by Bancontact directly # (if supported) at the time of authorization or settlement. They cannot be set or mutated. attr_reader :verified_name def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Billie < Stripe::StripeObject # The Billie transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class BillingDetails < Stripe::StripeObject class Address < Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). attr_reader :country # Address line 1, such as the street, PO Box, or company name. attr_reader :line1 # Address line 2, such as the apartment, suite, unit, or building. attr_reader :line2 # ZIP or postal code. attr_reader :postal_code # State, county, province, or region. attr_reader :state def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # A representation of a physical address. attr_reader :address # The billing email associated with the method of payment. attr_reader :email # The billing name associated with the method of payment. attr_reader :name # The billing phone number associated with the method of payment. attr_reader :phone def self.inner_class_types @inner_class_types = { address: Address } end def self.field_remappings @field_remappings = {} end end class Blik < Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. attr_reader :buyer_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Boleto < Stripe::StripeObject # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) attr_reader :tax_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Card < Stripe::StripeObject class Checks < Stripe::StripeObject # Attribute for field address_line1_check attr_reader :address_line1_check # Attribute for field address_postal_code_check attr_reader :address_postal_code_check # Attribute for field cvc_check attr_reader :cvc_check def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class NetworkToken < Stripe::StripeObject # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. attr_reader :used def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class ThreeDSecure < Stripe::StripeObject # Attribute for field authentication_flow attr_reader :authentication_flow # Attribute for field result attr_reader :result # Attribute for field result_reason attr_reader :result_reason # Attribute for field version attr_reader :version def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Wallet < Stripe::StripeObject class ApplePay < Stripe::StripeObject # Type of the apple_pay transaction, one of `apple_pay` or `apple_pay_later`. attr_reader :type def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class GooglePay < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # Attribute for field apple_pay attr_reader :apple_pay # (For tokenized numbers only.) The last four digits of the device account number. attr_reader :dynamic_last4 # Attribute for field google_pay attr_reader :google_pay # The type of the card wallet, one of `apple_pay` or `google_pay`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. attr_reader :type def self.inner_class_types @inner_class_types = { apple_pay: ApplePay, google_pay: GooglePay } end def self.field_remappings @field_remappings = {} end end # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. attr_reader :brand # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured. attr_reader :capture_before # Check results by Card networks on Card address and CVC at time of payment. attr_reader :checks # 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. attr_reader :country # Two-digit number representing the card's expiration month. attr_reader :exp_month # Four-digit number representing the card's expiration year. attr_reader :exp_year # 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. # # *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.* attr_reader :fingerprint # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. attr_reader :funding # The last four digits of the card. attr_reader :last4 # True if this payment was marked as MOTO and out of scope for SCA. attr_reader :moto # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. attr_reader :network # If this card has network token credentials, this contains the details of the network token credentials. attr_reader :network_token # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. attr_reader :network_transaction_id # Populated if this transaction used 3D Secure authentication. attr_reader :three_d_secure # If this Card is part of a card wallet, this contains the details of the card wallet. attr_reader :wallet def self.inner_class_types @inner_class_types = { checks: Checks, network_token: NetworkToken, three_d_secure: ThreeDSecure, wallet: Wallet, } end def self.field_remappings @field_remappings = {} end end class CardPresent < Stripe::StripeObject class Offline < Stripe::StripeObject # Time at which the payment was collected while offline attr_reader :stored_at # The method used to process this payment method offline. Only deferred is allowed. attr_reader :type def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Receipt < Stripe::StripeObject # The type of account being debited or credited attr_reader :account_type # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. attr_reader :application_cryptogram # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. attr_reader :application_preferred_name # Identifier for this transaction. attr_reader :authorization_code # EMV tag 8A. A code returned by the card issuer. attr_reader :authorization_response_code # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. attr_reader :cardholder_verification_method # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. attr_reader :dedicated_file_name # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. attr_reader :terminal_verification_results # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. attr_reader :transaction_status_information def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Wallet < Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. attr_reader :type def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # The authorized amount attr_reader :amount_authorized # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. attr_reader :brand # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. attr_reader :brand_product # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured. attr_reader :capture_before # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. attr_reader :cardholder_name # 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. attr_reader :country # 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.) attr_reader :description # Authorization response cryptogram. attr_reader :emv_auth_data # Two-digit number representing the card's expiration month. attr_reader :exp_month # Four-digit number representing the card's expiration year. attr_reader :exp_year # 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. # # *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.* attr_reader :fingerprint # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. attr_reader :funding # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. attr_reader :generated_card # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) attr_reader :iin # Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support). attr_reader :incremental_authorization_supported # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) attr_reader :issuer # The last four digits of the card. attr_reader :last4 # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. attr_reader :network # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. attr_reader :network_transaction_id # Details about payments collected offline. attr_reader :offline # Defines whether the authorized amount can be over-captured or not attr_reader :overcapture_supported # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. attr_reader :preferred_locales # How card details were read in this transaction. attr_reader :read_method # A collection of fields required to be displayed on receipts. Only required for EMV transactions. attr_reader :receipt # Attribute for field wallet attr_reader :wallet def self.inner_class_types @inner_class_types = { offline: Offline, receipt: Receipt, wallet: Wallet } end def self.field_remappings @field_remappings = {} end end class Cashapp < Stripe::StripeObject # A unique and immutable identifier assigned by Cash App to every buyer. attr_reader :buyer_id # A public identifier for buyers using Cash App. attr_reader :cashtag # A unique and immutable identifier of payments assigned by Cash App attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Crypto < Stripe::StripeObject # The wallet address of the customer. attr_reader :buyer_address # The blockchain network that the transaction was sent on. attr_reader :network # The token currency that the transaction was sent with. attr_reader :token_currency # The blockchain transaction hash of the crypto payment. attr_reader :transaction_hash def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Custom < Stripe::StripeObject # Display name for the custom (user-defined) payment method type used to make this payment. attr_reader :display_name # The custom payment method type associated with this payment. attr_reader :type def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class CustomerBalance < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Eps < Stripe::StripeObject # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. attr_reader :bank # Owner's verified full name. Values are verified or provided by EPS directly # (if supported) at the time of authorization or settlement. They cannot be set or mutated. # EPS rarely provides this information so the attribute is usually empty. attr_reader :verified_name def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Fpx < Stripe::StripeObject # Account holder type, if provided. Can be one of `individual` or `company`. attr_reader :account_holder_type # The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. attr_reader :bank # Unique transaction id generated by FPX for every request from the merchant attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Giropay < Stripe::StripeObject # Bank code of bank associated with the bank account. attr_reader :bank_code # Name of the bank associated with the bank account. attr_reader :bank_name # Bank Identifier Code of the bank associated with the bank account. attr_reader :bic # Owner's verified full name. Values are verified or provided by Giropay directly # (if supported) at the time of authorization or settlement. They cannot be set or mutated. # Giropay rarely provides this information so the attribute is usually empty. attr_reader :verified_name def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Gopay < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Grabpay < Stripe::StripeObject # Unique transaction id generated by GrabPay attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class IdBankTransfer < Stripe::StripeObject # Account number of the bank account to transfer funds to. attr_reader :account_number # Bank where the account is located. attr_reader :bank # Local bank code of the bank. attr_reader :bank_code # Name of the bank associated with the bank account. attr_reader :bank_name # Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer. attr_reader :display_name def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Ideal < Stripe::StripeObject # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. attr_reader :bank # The Bank Identifier Code of the customer's bank. attr_reader :bic # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. attr_reader :generated_sepa_debit # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. attr_reader :generated_sepa_debit_mandate # Last four characters of the IBAN. attr_reader :iban_last4 # Owner's verified full name. Values are verified or provided by iDEAL directly # (if supported) at the time of authorization or settlement. They cannot be set or mutated. attr_reader :verified_name def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class InteracPresent < Stripe::StripeObject class Receipt < Stripe::StripeObject # The type of account being debited or credited attr_reader :account_type # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. attr_reader :application_cryptogram # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. attr_reader :application_preferred_name # Identifier for this transaction. attr_reader :authorization_code # EMV tag 8A. A code returned by the card issuer. attr_reader :authorization_response_code # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. attr_reader :cardholder_verification_method # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. attr_reader :dedicated_file_name # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. attr_reader :terminal_verification_results # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. attr_reader :transaction_status_information def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # Card brand. Can be `interac`, `mastercard` or `visa`. attr_reader :brand # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. attr_reader :cardholder_name # 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. attr_reader :country # 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.) attr_reader :description # Authorization response cryptogram. attr_reader :emv_auth_data # Two-digit number representing the card's expiration month. attr_reader :exp_month # Four-digit number representing the card's expiration year. attr_reader :exp_year # 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. # # *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.* attr_reader :fingerprint # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. attr_reader :funding # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. attr_reader :generated_card # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) attr_reader :iin # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) attr_reader :issuer # The last four digits of the card. attr_reader :last4 # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. attr_reader :network # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. attr_reader :network_transaction_id # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. attr_reader :preferred_locales # How card details were read in this transaction. attr_reader :read_method # A collection of fields required to be displayed on receipts. Only required for EMV transactions. attr_reader :receipt def self.inner_class_types @inner_class_types = { receipt: Receipt } end def self.field_remappings @field_remappings = {} end end class KakaoPay < Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. attr_reader :buyer_id # The Kakao Pay transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Klarna < Stripe::StripeObject class PayerDetails < Stripe::StripeObject class Address < Stripe::StripeObject # The payer address country attr_reader :country def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # The payer's address attr_reader :address def self.inner_class_types @inner_class_types = { address: Address } end def self.field_remappings @field_remappings = {} end end # The payer details for this transaction. attr_reader :payer_details # The Klarna payment method used for this transaction. # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` attr_reader :payment_method_category # Preferred language of the Klarna authorization page that the customer is redirected to. # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` attr_reader :preferred_locale def self.inner_class_types @inner_class_types = { payer_details: PayerDetails } end def self.field_remappings @field_remappings = {} end end class Konbini < Stripe::StripeObject class Store < Stripe::StripeObject # The name of the convenience store chain where the payment was completed. attr_reader :chain def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # If the payment succeeded, this contains the details of the convenience store where the payment was completed. attr_reader :store def self.inner_class_types @inner_class_types = { store: Store } end def self.field_remappings @field_remappings = {} end end class KrCard < Stripe::StripeObject # The local credit or debit card brand. attr_reader :brand # A unique identifier for the buyer as determined by the local payment processor. attr_reader :buyer_id # The last four digits of the card. This may not be present for American Express cards. attr_reader :last4 # The Korean Card transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Link < Stripe::StripeObject # Two-letter ISO code representing the funding source country beneath the Link payment. # You could use this attribute to get a sense of international fees. attr_reader :country def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class MbWay < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Mobilepay < Stripe::StripeObject class Card < Stripe::StripeObject # Brand of the card used in the transaction attr_reader :brand # Two-letter ISO code representing the country of the card attr_reader :country # Two digit number representing the card's expiration month attr_reader :exp_month # Two digit number representing the card's expiration year attr_reader :exp_year # The last 4 digits of the card attr_reader :last4 def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # Internal card details attr_reader :card def self.inner_class_types @inner_class_types = { card: Card } end def self.field_remappings @field_remappings = {} end end class Multibanco < Stripe::StripeObject # Entity number associated with this Multibanco payment. attr_reader :entity # Reference number associated with this Multibanco payment. attr_reader :reference def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class NaverPay < Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. attr_reader :buyer_id # The Naver Pay transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class NzBankAccount < Stripe::StripeObject # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_reader :account_holder_name # The numeric code for the bank account's bank. attr_reader :bank_code # The name of the bank. attr_reader :bank_name # The numeric code for the bank account's bank branch. attr_reader :branch_code # Last four digits of the bank account number. attr_reader :last4 # The suffix of the bank account number. attr_reader :suffix def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Oxxo < Stripe::StripeObject # OXXO reference number attr_reader :number def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class P24 < Stripe::StripeObject # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. attr_reader :bank # Unique reference for this Przelewy24 payment. attr_reader :reference # Owner's verified full name. Values are verified or provided by Przelewy24 directly # (if supported) at the time of authorization or settlement. They cannot be set or mutated. # Przelewy24 rarely provides this information so the attribute is usually empty. attr_reader :verified_name def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class PayByBank < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Payco < Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. attr_reader :buyer_id # The Payco transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Paynow < Stripe::StripeObject # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. attr_reader :location # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. attr_reader :reader # Reference number associated with this PayNow payment attr_reader :reference def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Paypal < Stripe::StripeObject class SellerProtection < Stripe::StripeObject # An array of conditions that are covered for the transaction, if applicable. attr_reader :dispute_categories # Indicates whether the transaction is eligible for PayPal's seller protection. attr_reader :status def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Shipping < Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). attr_reader :country # Address line 1, such as the street, PO Box, or company name. attr_reader :line1 # Address line 2, such as the apartment, suite, unit, or building. attr_reader :line2 # ZIP or postal code. attr_reader :postal_code # State, county, province, or region. attr_reader :state def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class VerifiedAddress < Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). attr_reader :country # Address line 1, such as the street, PO Box, or company name. attr_reader :line1 # Address line 2, such as the apartment, suite, unit, or building. attr_reader :line2 # ZIP or postal code. attr_reader :postal_code # State, county, province, or region. attr_reader :state def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. attr_reader :country # Owner's email. Values are provided by PayPal directly # (if supported) at the time of authorization or settlement. They cannot be set or mutated. attr_reader :payer_email # PayPal account PayerID. This identifier uniquely identifies the PayPal customer. attr_reader :payer_id # Owner's full name. Values provided by PayPal directly # (if supported) at the time of authorization or settlement. They cannot be set or mutated. attr_reader :payer_name # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction. attr_reader :seller_protection # The shipping address for the customer, as supplied by the merchant at the point of payment # execution. This shipping address will not be updated if the merchant updates the shipping # address on the PaymentIntent after the PaymentIntent was successfully confirmed. attr_reader :shipping # A unique ID generated by PayPal for this transaction. attr_reader :transaction_id # The shipping address for the customer, as supplied by the merchant at the point of payment # execution. This shipping address will not be updated if the merchant updates the shipping # address on the PaymentIntent after the PaymentIntent was successfully confirmed. attr_reader :verified_address # Owner's verified email. Values are verified or provided by PayPal directly # (if supported) at the time of authorization or settlement. They cannot be set or mutated. attr_reader :verified_email # Owner's verified full name. Values are verified or provided by PayPal directly # (if supported) at the time of authorization or settlement. They cannot be set or mutated. attr_reader :verified_name def self.inner_class_types @inner_class_types = { seller_protection: SellerProtection, shipping: Shipping, verified_address: VerifiedAddress, } end def self.field_remappings @field_remappings = {} end end class Paypay < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Payto < Stripe::StripeObject # Bank-State-Branch number of the bank account. attr_reader :bsb_number # Last four digits of the bank account number. attr_reader :last4 # ID of the mandate used to make this payment. attr_reader :mandate # The PayID alias for the bank account. attr_reader :pay_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Pix < Stripe::StripeObject # Unique transaction id generated by BCB attr_reader :bank_transaction_id # ID of the multi use Mandate generated by the PaymentIntent attr_reader :mandate def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Promptpay < Stripe::StripeObject # Bill reference generated by PromptPay attr_reader :reference def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Qris < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Rechnung < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class RevolutPay < Stripe::StripeObject class Funding < Stripe::StripeObject class Card < Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. attr_reader :brand # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.) attr_reader :brand_product # 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. attr_reader :country # Two-digit number representing the card's expiration month. attr_reader :exp_month # Four-digit number representing the card's expiration year. attr_reader :exp_year # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. attr_reader :funding # The last four digits of the card. attr_reader :last4 def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # Attribute for field card attr_reader :card # funding type of the underlying payment method. attr_reader :type def self.inner_class_types @inner_class_types = { card: Card } end def self.field_remappings @field_remappings = {} end end # Attribute for field funding attr_reader :funding # The Revolut Pay transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = { funding: Funding } end def self.field_remappings @field_remappings = {} end end class SamsungPay < Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. attr_reader :buyer_id # The Samsung Pay transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Satispay < Stripe::StripeObject # The Satispay transaction ID associated with this payment. attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class SepaCreditTransfer < Stripe::StripeObject # Name of the bank associated with the bank account. attr_reader :bank_name # Bank Identifier Code of the bank associated with the bank account. attr_reader :bic # IBAN of the bank account to transfer funds to. attr_reader :iban def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class SepaDebit < Stripe::StripeObject # Bank code of bank associated with the bank account. attr_reader :bank_code # Branch code of bank associated with the bank account. attr_reader :branch_code # Two-letter ISO code representing the country the bank account is located in. attr_reader :country # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. attr_reader :fingerprint # Last four characters of the IBAN. attr_reader :last4 # Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://stripe.com/docs/api/mandates/retrieve). attr_reader :mandate def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Shopeepay < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Sofort < Stripe::StripeObject # Bank code of bank associated with the bank account. attr_reader :bank_code # Name of the bank associated with the bank account. attr_reader :bank_name # Bank Identifier Code of the bank associated with the bank account. attr_reader :bic # Two-letter ISO code representing the country the bank account is located in. attr_reader :country # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. attr_reader :generated_sepa_debit # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. attr_reader :generated_sepa_debit_mandate # Last four characters of the IBAN. attr_reader :iban_last4 # Preferred language of the SOFORT authorization page that the customer is redirected to. # Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl` attr_reader :preferred_language # Owner's verified full name. Values are verified or provided by SOFORT directly # (if supported) at the time of authorization or settlement. They cannot be set or mutated. attr_reader :verified_name def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class StripeAccount < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class StripeBalance < Stripe::StripeObject # The connected account ID whose Stripe balance to use as the source of payment attr_reader :account # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance attr_reader :source_type def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Swish < Stripe::StripeObject # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer attr_reader :fingerprint # Payer bank reference number for the payment attr_reader :payment_reference # The last four digits of the Swish account phone number attr_reader :verified_phone_last4 def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Twint < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class UsBankAccount < Stripe::StripeObject # Attribute for field account_holder_type attr_reader :account_holder_type # Attribute for field account_type attr_reader :account_type # Name of the bank associated with the bank account. attr_reader :bank_name # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. attr_reader :fingerprint # Last four digits of the bank account number. attr_reader :last4 # ID of the mandate used to make this payment. attr_reader :mandate # Reference number to locate ACH payments with customer’s bank. attr_reader :payment_reference # Routing number of the bank account. attr_reader :routing_number def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Wechat < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class WechatPay < Stripe::StripeObject # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same. attr_reader :fingerprint # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. attr_reader :location # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. attr_reader :reader # Transaction ID of this particular WeChat Pay transaction. attr_reader :transaction_id def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end class Zip < Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # Attribute for field ach_credit_transfer attr_reader :ach_credit_transfer # Attribute for field ach_debit attr_reader :ach_debit # Attribute for field acss_debit attr_reader :acss_debit # Attribute for field affirm attr_reader :affirm # Attribute for field afterpay_clearpay attr_reader :afterpay_clearpay # Attribute for field alipay attr_reader :alipay # Attribute for field alma attr_reader :alma # Attribute for field amazon_pay attr_reader :amazon_pay # Attribute for field au_becs_debit attr_reader :au_becs_debit # Attribute for field bacs_debit attr_reader :bacs_debit # Attribute for field bancontact attr_reader :bancontact # Attribute for field billie attr_reader :billie # The billing details associated with the method of payment. attr_reader :billing_details # Attribute for field blik attr_reader :blik # Attribute for field boleto attr_reader :boleto # Details of the card used for this payment attempt. attr_reader :card # Attribute for field card_present attr_reader :card_present # Attribute for field cashapp attr_reader :cashapp # Attribute for field crypto attr_reader :crypto # Custom Payment Methods represent Payment Method types not modeled directly in # the Stripe API. This resource consists of details about the custom payment method # used for this payment attempt. attr_reader :custom # Attribute for field customer_balance attr_reader :customer_balance # Attribute for field eps attr_reader :eps # Attribute for field fpx attr_reader :fpx # Attribute for field giropay attr_reader :giropay # Attribute for field gopay attr_reader :gopay # Attribute for field grabpay attr_reader :grabpay # Attribute for field id_bank_transfer attr_reader :id_bank_transfer # Attribute for field ideal attr_reader :ideal # Attribute for field interac_present attr_reader :interac_present # Attribute for field kakao_pay attr_reader :kakao_pay # Attribute for field klarna attr_reader :klarna # Attribute for field konbini attr_reader :konbini # Attribute for field kr_card attr_reader :kr_card # Attribute for field link attr_reader :link # Attribute for field mb_way attr_reader :mb_way # Attribute for field mobilepay attr_reader :mobilepay # Attribute for field multibanco attr_reader :multibanco # Attribute for field naver_pay attr_reader :naver_pay # Attribute for field nz_bank_account attr_reader :nz_bank_account # Attribute for field oxxo attr_reader :oxxo # Attribute for field p24 attr_reader :p24 # Attribute for field pay_by_bank attr_reader :pay_by_bank # Attribute for field payco attr_reader :payco # ID of the Stripe PaymentMethod used to make this payment. attr_reader :payment_method # Attribute for field paynow attr_reader :paynow # Attribute for field paypal attr_reader :paypal # Attribute for field paypay attr_reader :paypay # Attribute for field payto attr_reader :payto # Attribute for field pix attr_reader :pix # Attribute for field promptpay attr_reader :promptpay # Attribute for field qris attr_reader :qris # Attribute for field rechnung attr_reader :rechnung # Attribute for field revolut_pay attr_reader :revolut_pay # Attribute for field samsung_pay attr_reader :samsung_pay # Attribute for field satispay attr_reader :satispay # Attribute for field sepa_credit_transfer attr_reader :sepa_credit_transfer # Attribute for field sepa_debit attr_reader :sepa_debit # Attribute for field shopeepay attr_reader :shopeepay # Attribute for field sofort attr_reader :sofort # Attribute for field stripe_account attr_reader :stripe_account # Attribute for field stripe_balance attr_reader :stripe_balance # Attribute for field swish attr_reader :swish # Attribute for field twint attr_reader :twint # The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types. # An additional hash is included on `payment_method_details` with a name matching this value. # It contains information specific to the payment method. attr_reader :type # Details of the US Bank Account used for this payment attempt. attr_reader :us_bank_account # Attribute for field wechat attr_reader :wechat # Attribute for field wechat_pay attr_reader :wechat_pay # Attribute for field zip attr_reader :zip def self.inner_class_types @inner_class_types = { ach_credit_transfer: AchCreditTransfer, ach_debit: AchDebit, acss_debit: AcssDebit, affirm: Affirm, afterpay_clearpay: AfterpayClearpay, alipay: Alipay, alma: Alma, amazon_pay: AmazonPay, au_becs_debit: AuBecsDebit, bacs_debit: BacsDebit, bancontact: Bancontact, billie: Billie, billing_details: BillingDetails, blik: Blik, boleto: Boleto, card: Card, card_present: CardPresent, cashapp: Cashapp, crypto: Crypto, custom: Custom, customer_balance: CustomerBalance, eps: Eps, fpx: Fpx, giropay: Giropay, gopay: Gopay, grabpay: Grabpay, id_bank_transfer: IdBankTransfer, ideal: Ideal, interac_present: InteracPresent, kakao_pay: KakaoPay, klarna: Klarna, konbini: Konbini, kr_card: KrCard, link: Link, mb_way: MbWay, mobilepay: Mobilepay, multibanco: Multibanco, naver_pay: NaverPay, nz_bank_account: NzBankAccount, oxxo: Oxxo, p24: P24, pay_by_bank: PayByBank, payco: Payco, paynow: Paynow, paypal: Paypal, paypay: Paypay, payto: Payto, pix: Pix, promptpay: Promptpay, qris: Qris, rechnung: Rechnung, revolut_pay: RevolutPay, samsung_pay: SamsungPay, satispay: Satispay, sepa_credit_transfer: SepaCreditTransfer, sepa_debit: SepaDebit, shopeepay: Shopeepay, sofort: Sofort, stripe_account: StripeAccount, stripe_balance: StripeBalance, swish: Swish, twint: Twint, us_bank_account: UsBankAccount, wechat: Wechat, wechat_pay: WechatPay, zip: Zip, } end def self.field_remappings @field_remappings = {} end end class ProcessorDetails < Stripe::StripeObject class Custom < Stripe::StripeObject # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. attr_reader :payment_reference def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # Custom processors represent payment processors not modeled directly in # the Stripe API. This resource consists of details about the custom processor # used for this payment attempt. attr_reader :custom # The processor used for this payment attempt. attr_reader :type def self.inner_class_types @inner_class_types = { custom: Custom } end def self.field_remappings @field_remappings = {} end end class ShippingDetails < Stripe::StripeObject class Address < Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). attr_reader :country # Address line 1, such as the street, PO Box, or company name. attr_reader :line1 # Address line 2, such as the apartment, suite, unit, or building. attr_reader :line2 # ZIP or postal code. attr_reader :postal_code # State, county, province, or region. attr_reader :state def self.inner_class_types @inner_class_types = {} end def self.field_remappings @field_remappings = {} end end # A representation of a physical address. attr_reader :address # The shipping recipient's name. attr_reader :name # The shipping recipient's phone number. attr_reader :phone def self.inner_class_types @inner_class_types = { address: Address } end def self.field_remappings @field_remappings = {} end end # A representation of an amount of money, consisting of an amount and a currency. attr_reader :amount # A representation of an amount of money, consisting of an amount and a currency. attr_reader :amount_authorized # A representation of an amount of money, consisting of an amount and a currency. attr_reader :amount_canceled # A representation of an amount of money, consisting of an amount and a currency. attr_reader :amount_failed # A representation of an amount of money, consisting of an amount and a currency. attr_reader :amount_guaranteed # A representation of an amount of money, consisting of an amount and a currency. attr_reader :amount_refunded # A representation of an amount of money, consisting of an amount and a currency. attr_reader :amount_requested # ID of the Connect application that created the PaymentAttemptRecord. attr_reader :application # Time at which the object was created. Measured in seconds since the Unix epoch. attr_reader :created # Customer information for this payment. attr_reader :customer_details # Indicates whether the customer was present in your checkout flow during this payment. attr_reader :customer_presence # An arbitrary string attached to the object. Often useful for displaying to users. attr_reader :description # Unique identifier for the object. attr_reader :id # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. attr_reader :livemode # 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. attr_reader :metadata # String representing the object's type. Objects of the same type share the same value. attr_reader :object # Information about the Payment Method debited for this payment. attr_reader :payment_method_details # ID of the Payment Record this Payment Attempt Record belongs to. attr_reader :payment_record # Processor information associated with this payment. attr_reader :processor_details # Indicates who reported the payment. attr_reader :reported_by # Shipping information for this payment. attr_reader :shipping_details # List all the Payment Attempt Records attached to the specified Payment Record. def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/payment_attempt_records", params: params, opts: opts ) end def self.inner_class_types @inner_class_types = { amount: Amount, amount_authorized: AmountAuthorized, amount_canceled: AmountCanceled, amount_failed: AmountFailed, amount_guaranteed: AmountGuaranteed, amount_refunded: AmountRefunded, amount_requested: AmountRequested, customer_details: CustomerDetails, payment_method_details: PaymentMethodDetails, processor_details: ProcessorDetails, shipping_details: ShippingDetails, } end def self.field_remappings @field_remappings = {} end end end