Sha256: b76181bc13dbf26e2e4610282024c11e6fa40a092a5aa4d6cb4796e7d261ee10

Contents?: true

Size: 1.38 KB

Versions: 13

Compression:

Stored size: 1.38 KB

Contents

module Braintree
  class GooglePayCard
    include BaseModule # :nodoc:

    attr_reader :bin
    attr_reader :commercial
    attr_reader :country_of_issuance
    attr_reader :created_at
    attr_reader :customer_id
    attr_reader :debit
    attr_reader :default
    attr_reader :durbin_regulated
    attr_reader :expiration_month
    attr_reader :expiration_year
    attr_reader :google_transaction_id
    attr_reader :healthcare
    attr_reader :image_url
    attr_reader :issuing_bank
    attr_reader :payroll
    attr_reader :prepaid
    attr_reader :product_id
    attr_reader :source_card_last_4
    attr_reader :source_card_type
    attr_reader :source_description
    attr_reader :subscriptions
    attr_reader :token
    attr_reader :updated_at
    attr_reader :virtual_card_last_4
    attr_reader :virtual_card_type

    def initialize(gateway, attributes) # :nodoc:
      @gateway = gateway
      set_instance_variables_from_hash(attributes)
      @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) }
    end

    def default?
      @default
    end

    def is_network_tokenized?
      @is_network_tokenized
    end

    def card_type
      virtual_card_type
    end

    def last_4
      virtual_card_last_4
    end

    class << self
      protected :new
    end

    def self._new(*args) # :nodoc:
      self.new(*args)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/google_pay_card.rb
braintree-4.14.0 lib/braintree/google_pay_card.rb
braintree-4.13.0 lib/braintree/google_pay_card.rb
braintree-4.12.0 lib/braintree/google_pay_card.rb
braintree-4.11.0 lib/braintree/google_pay_card.rb
braintree-4.10.0 lib/braintree/google_pay_card.rb
braintree-4.9.0 lib/braintree/google_pay_card.rb
braintree-4.8.0 lib/braintree/google_pay_card.rb
braintree-4.7.0 lib/braintree/google_pay_card.rb
braintree-4.6.0 lib/braintree/google_pay_card.rb
braintree-4.5.0 lib/braintree/google_pay_card.rb
braintree-4.4.0 lib/braintree/google_pay_card.rb
braintree-4.3.0 lib/braintree/google_pay_card.rb