Sha256: 68871935d4de15030d6c40abf2f55911ac314edea55fef1293452dbcae387b19
Contents?: true
Size: 1.16 KB
Versions: 8
Compression:
Stored size: 1.16 KB
Contents
module Braintree class PaymentMethodNonce include BaseModule def self.create(*args) Configuration.gateway.payment_method_nonce.create(*args) end def self.create!(*args) Configuration.gateway.payment_method_nonce.create!(*args) end def self.find(*args) Configuration.gateway.payment_method_nonce.find(*args) end attr_reader :bin_data attr_reader :default attr_reader :details attr_reader :nonce attr_reader :three_d_secure_info attr_reader :type attr_reader :authentication_insight def initialize(gateway, attributes) @gateway = gateway set_instance_variables_from_hash(attributes) @details = PaymentMethodNonceDetails.new(attributes[:details]) if attributes[:details] @three_d_secure_info = ThreeDSecureInfo.new(attributes[:three_d_secure_info]) if attributes[:three_d_secure_info] @bin_data = BinData.new(attributes[:bin_data]) if attributes[:bin_data] end def default? @default end def to_s nonce end class << self protected :new end def self._new(gateway, attributes) new(gateway, attributes) end end end
Version data entries
8 entries across 8 versions & 1 rubygems