Sha256: f90c835186b42baeb7aee7fd92482eb21b9441544a4026ec51f253705cf345a3
Contents?: true
Size: 885 Bytes
Versions: 3
Compression:
Stored size: 885 Bytes
Contents
module Braintree # See https://developers.braintreepayments.com/ios+ruby/sdk/server class ApplePayCard include BaseModule # :nodoc: module CardType AmEx = "Apple Pay - American Express" Visa = "Apple Pay - Visa" MasterCard = "Apple Pay - MasterCard" All = constants.map { |c| const_get(c) } end attr_reader :token, :card_type, :last_4, :default, :image_url, :created_at, :updated_at, :subscriptions, :expiration_month, :expiration_year, :expired def initialize(gateway, attributes) # :nodoc: @gateway = gateway set_instance_variables_from_hash(attributes) @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) } end class << self protected :new end def self._new(*args) # :nodoc: self.new *args end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.38.0 | lib/braintree/apple_pay_card.rb |
braintree-2.37.0 | lib/braintree/apple_pay_card.rb |
braintree-2.36.0 | lib/braintree/apple_pay_card.rb |