Sha256: f9eb2866b00f554dc3c400b1442eae64ef5261e6da45265da93a2881c2a96935

Contents?: true

Size: 998 Bytes

Versions: 3

Compression:

Stored size: 998 Bytes

Contents

require_relative '../../common/jsonifier'

module MangoModel

  # Card entity
  class Card < EntityBase
    include MangoPay::Jsonifier

    # [Integer] Its expiry date (MM/YY format)
    attr_accessor :expiration_date

    # [String] A partially obfuscated version of its credit card number
    attr_accessor :alias

    # [String] Its provider
    attr_accessor :card_provider

    # [CardType] Its type
    attr_accessor :card_type

    # [String] Country of its address
    attr_accessor :country

    # [String] Its product type
    attr_accessor :product

    # [String] Its bank code
    attr_accessor :bank_code

    # [true/false] Whether or not it is active
    attr_accessor :active

    # [CurrencyIso] Its currency
    attr_accessor :currency

    # [CardValidity] Whether or not it is valid
    attr_accessor :validity

    # [String] A unique representation of a 16-digit card number
    attr_accessor :fingerprint

    # [String] ID of its owner
    attr_accessor :user_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mangopay-v4-4.1.0 lib/mangopay/model/entity/card.rb
mangopay-v4-4.0.2 lib/mangopay/model/entity/card.rb
mangopay-v4-4.0.1 lib/mangopay/model/entity/card.rb