Sha256: 313617d500a975482dbf44fb57afce61148df3ec781d3840ba1230f38f7b59a4

Contents?: true

Size: 524 Bytes

Versions: 29

Compression:

Stored size: 524 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, :public_metadata

        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

29 entries across 29 versions & 3 rubygems

Version Path
spree_api-4.10.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.10.0 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.9.0 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.8.3 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.8.2 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.7.3 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.6.6 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.5.5 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.4.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.5.4 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.6.5 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.7.2 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.7.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.6.4 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.7.0 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.6.3 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.6.2 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.6.1 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.6.0 app/serializers/spree/v2/storefront/address_serializer.rb
spree_api-4.5.3 app/serializers/spree/v2/storefront/address_serializer.rb