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.9 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.1.15 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.1.14 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.0.8 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.14.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.1.13.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.0.7.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.0.7 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.14 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.1.13 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.0.6 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.13 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.0.5 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.1.12 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.12 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.0.4 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-3.7.11 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.1.11 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.1.10 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.2.0.beta app/serializers/spree/v2/storefront/address_serializer.rb