Sha256: 4d12320cfd590016378768294c66c76429a249a2072a04e2acb079cab3ddf6b9

Contents?: true

Size: 506 Bytes

Versions: 19

Compression:

Stored size: 506 Bytes

Contents

module Spree
  module V2
    module Storefront
      class AddressSerializer < BaseSerializer
        set_type :address

        attributes :firstname, :lastname, :address1, :address2, :city, :zipcode, :phone, :state_name,
                   :company, :country_name, :country_iso3, :country_iso, :label

        attribute :state_code do |address|
          address.state_abbr
        end

        attribute :state_name do |address|
          address.state_name_text
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spree_api-4.2.7 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.3.3 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.6 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.3.2 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.3.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.3.0 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.3.0.rc3 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.3.0.rc2 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.3.0.rc1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.5 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.4 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.3.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.3 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.2 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.0 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.0.rc5 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.0.rc4 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.0.rc3 app/serializers/spree/v2/storefront/address_serializer.rb