Sha256: b5332c9c02c4c6bbf501b7428c01bc7494216eee94c82ad959910faaf8160c6a

Contents?: true

Size: 679 Bytes

Versions: 1

Compression:

Stored size: 679 Bytes

Contents

module Braintree
  class LocalPaymentCompleted
    include BaseModule

    attr_reader :bic
    attr_reader :blik_aliases
    attr_reader :iban_last_chars
    attr_reader :payer_id
    attr_reader :payer_name
    attr_reader :payment_id
    attr_reader :payment_method_nonce
    attr_reader :transaction

    def initialize(attributes)
      set_instance_variables_from_hash(attributes)
      @transaction = Transaction._new(Configuration.gateway, transaction) unless transaction.nil?
      blik_aliases.map { |attrs| BlikAlias.new(attrs) } if blik_aliases
    end

    class << self
      protected :new
    end

    def self._new(*args)
      self.new(*args)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/local_payment_completed.rb