Sha256: 47937c30bdebfadcd9f581b4f0fc9ad86c04af481156752d6cb48f9cc1256d4e

Contents?: true

Size: 1011 Bytes

Versions: 3

Compression:

Stored size: 1011 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 :international_phone
      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

3 entries across 3 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/transaction/address_details.rb
braintree-4.22.0 lib/braintree/transaction/address_details.rb
braintree-4.21.0 lib/braintree/transaction/address_details.rb