Sha256: 25f46fc2ca22475da7ae8d075dc439b4569e2ba0701cfd021f4070ff18c8c680

Contents?: true

Size: 745 Bytes

Versions: 3

Compression:

Stored size: 745 Bytes

Contents

# frozen_string_literal: true

require 'mws/orders/entity'

module MWS
  module Orders
    # https://docs.developer.amazonservices.com/en_US/orders-2013-09-01/Orders_Datatypes.html#Address
    class Address < Entity
      attribute(:name) do
        string('Name')
      end

      attribute(:lines) do
        1.upto(3).map { |i| string("AddressLine#{i}") }.compact
      end

      attribute(:city) do
        string('City')
      end

      attribute(:state_or_region) do
        string('StateOrRegion')
      end

      attribute(:postal_code) do
        string('PostalCode')
      end

      attribute(:country_code) do
        string('CountryCode')
      end

      attribute(:phone) do
        string('Phone')
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mws-orders-0.6.1 lib/mws/orders/address.rb
mws-orders-0.5.1 lib/mws/orders/address.rb
mws-orders-0.5.0 lib/mws/orders/address.rb