Sha256: 7f6c3a217804dd55cd4899004b7bf2cb31fcc75a0d5e46d8e60da169d497f477

Contents?: true

Size: 417 Bytes

Versions: 54

Compression:

Stored size: 417 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

        attribute :state_code, &:state_abbr
        attribute :state_name, &:state_name_text
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
spree_api-4.0.0 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.0.0.rc3 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.6 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.5 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.0.0.rc2 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.0.0.rc1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.0.0.beta app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.4 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.3 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.2 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.0 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.0.rc3 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.0.rc2 app/serializers/spree/v2/storefront/address_serializer.rb