Sha256: 7717496501138ba3a8f6a596a3e08c04f0d6e4fbc5ff37d52d8b3925114615eb

Contents?: true

Size: 930 Bytes

Versions: 1

Compression:

Stored size: 930 Bytes

Contents

module Braintree
  class Transaction
    class AddressDetails
      include BaseModule

      module ShippingMethod
        SameDay = "same_day"
        NextDay = "next_day"
        Priority = "priority"
        Ground = "ground"
        Electronic = "electronic"
        ShipToStore = "ship_to_store"
      end

      attr_reader :company
      attr_reader :country_code_alpha2
      attr_reader :country_code_alpha3
      attr_reader :country_code_numeric
      attr_reader :country_name
      attr_reader :extended_address
      attr_reader :first_name
      attr_reader :id
      attr_reader :last_name
      attr_reader :locality
      attr_reader :phone_number
      attr_reader :postal_code
      attr_reader :region
      attr_reader :shipping_method
      attr_reader :street_address

      def initialize(attributes)
        set_instance_variables_from_hash attributes unless attributes.nil?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
braintree-4.16.0 lib/braintree/transaction/address_details.rb