Sha256: e0f09e1e19ac24665f9e4a3fde25c07ef77387f6188e77beac4b03f341c025e3

Contents?: true

Size: 972 Bytes

Versions: 4

Compression:

Stored size: 972 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"
        PickupInStore = "pickup_in_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

4 entries across 4 versions & 1 rubygems

Version Path
braintree-4.20.0 lib/braintree/transaction/address_details.rb
braintree-4.19.0 lib/braintree/transaction/address_details.rb
braintree-4.18.0 lib/braintree/transaction/address_details.rb
braintree-4.17.0 lib/braintree/transaction/address_details.rb