Sha256: 35c737f14db42c17beae57ecf290398940fc833fa3255a8b91537171fb11b9f6

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

module SpreeClient
  # @see Spree::PermittedAttributes
  class Attributes
    PRODUCT = %i[id name description available_on discontinue_on
                 permalink meta_description meta_keywords meta_title
                 price sku deleted_at prototype_id option_values_hash
                 weight height width depth shipping_category_id
                 tax_category_id cost_currency cost_price
                 option_type_ids taxon_ids pay_what_you_can].freeze

    VARIANT = %i[id name presentation cost_price discontinue_on
                 lock_version position track_inventory product_id
                 product option_values_attributes price weight height
                 width depth sku cost_currency options
                 option_value_ids].freeze

    STOCK_LOCATION = %i[name active address1 address2 city zipcode
                        backorderable_default state_name state_id
                        country_id phone propagate_all_variants].freeze

    STOCK_ITEM = %i[stock_location_id variant stock_location backorderable variant_id].freeze

    STOCK_MOVEMENT = %i[id stock_location_id quantity stock_item
                        stock_item_id originator action].freeze

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree-api-client-0.2.3 lib/spree_client/attributes.rb
spree-api-client-0.2.2 lib/spree_client/attributes.rb