class Io::Flow::V0::Models::AttributeIntent
Attributes
Public Class Methods
# File lib/flow_commerce/flow_api_v0_client.rb, line 16699 def AttributeIntent.ALL @@all ||= [AttributeIntent.brand, AttributeIntent.color, AttributeIntent.countries_of_origin, AttributeIntent.product_id, AttributeIntent.fulfillment_method, AttributeIntent.hazardous, AttributeIntent.price, AttributeIntent.size, AttributeIntent.sku, AttributeIntent.taxability, AttributeIntent.consumer_url, AttributeIntent.gtin, AttributeIntent.mpn, AttributeIntent.facet, AttributeIntent.eccn, AttributeIntent.returnable, AttributeIntent.searchable, AttributeIntent.barcode, AttributeIntent.min_days_to_ship, AttributeIntent.max_days_to_ship, AttributeIntent.commercial_invoice_item_number, AttributeIntent.include_in_product_feeds] end
Returns the instance of AttributeIntent
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 16684 def AttributeIntent.apply(value) if value.instance_of?(AttributeIntent) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || AttributeIntent.new(value)) end end
The barcode of this item.
# File lib/flow_commerce/flow_api_v0_client.rb, line 16798 def AttributeIntent.barcode @@_barcode ||= AttributeIntent.new('barcode') end
A brand name of the item (for retailers that sell multiple brands)
# File lib/flow_commerce/flow_api_v0_client.rb, line 16704 def AttributeIntent.brand @@_brand ||= AttributeIntent.new('brand') end
The color of the item
# File lib/flow_commerce/flow_api_v0_client.rb, line 16709 def AttributeIntent.color @@_color ||= AttributeIntent.new('color') end
Identifies the attribute is used as an item number in the commercial invoice.
# File lib/flow_commerce/flow_api_v0_client.rb, line 16815 def AttributeIntent.commercial_invoice_item_number @@_commercial_invoice_item_number ||= AttributeIntent.new('commercial_invoice_item_number') end
A URL of the product detail page of the item
# File lib/flow_commerce/flow_api_v0_client.rb, line 16756 def AttributeIntent.consumer_url @@_consumer_url ||= AttributeIntent.new('consumer_url') end
A space separated list of the countries of origin for this item
# File lib/flow_commerce/flow_api_v0_client.rb, line 16714 def AttributeIntent.countries_of_origin @@_countries_of_origin ||= AttributeIntent.new('countries_of_origin') end
An Export
Control Classification Number (ECCN) is a five-character alphanumeric key used in the Commerce Control List (CCL) to classify U.S. exports and determine whether an export license is needed from the Department of Commerce. If exempt, then EAR99 is used as the item’s ECCN. EAR99 is a classification that indicates that an item is subject to the Export
Administration Regulations (EAR), but not listed with a specific Export
Control Classification Number (ECCN) on the Commerce Control List (CCL).
# File lib/flow_commerce/flow_api_v0_client.rb, line 16782 def AttributeIntent.eccn @@_eccn ||= AttributeIntent.new('eccn') end
Identifies a facet.
# File lib/flow_commerce/flow_api_v0_client.rb, line 16771 def AttributeIntent.facet @@_facet ||= AttributeIntent.new('facet') end
Returns the instance of AttributeIntent
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 16694 def AttributeIntent.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) AttributeIntent.ALL.find { |v| v.value == value } end
Identifies whether the item is a physical or digital good
# File lib/flow_commerce/flow_api_v0_client.rb, line 16725 def AttributeIntent.fulfillment_method @@_fulfillment_method ||= AttributeIntent.new('fulfillment_method') end
The Global Trade Item
Number of this item.
# File lib/flow_commerce/flow_api_v0_client.rb, line 16761 def AttributeIntent.gtin @@_gtin ||= AttributeIntent.new('gtin') end
Identifies whether this item may contain hazardous materials
# File lib/flow_commerce/flow_api_v0_client.rb, line 16730 def AttributeIntent.hazardous @@_hazardous ||= AttributeIntent.new('hazardous') end
Attribute
to indicate whether an item should explicitly be included in a product feed
# File lib/flow_commerce/flow_api_v0_client.rb, line 16821 def AttributeIntent.include_in_product_feeds @@_include_in_product_feeds ||= AttributeIntent.new('include_in_product_feeds') end
Indicates a lead time to prepare an item for shipment. If specified, we will include this lead time in the delivery window calculation
# File lib/flow_commerce/flow_api_v0_client.rb, line 16810 def AttributeIntent.max_days_to_ship @@_max_days_to_ship ||= AttributeIntent.new('max_days_to_ship') end
Indicates a lead time to prepare an item for shipment. If specified, we will include this lead time in the delivery window calculation
# File lib/flow_commerce/flow_api_v0_client.rb, line 16804 def AttributeIntent.min_days_to_ship @@_min_days_to_ship ||= AttributeIntent.new('min_days_to_ship') end
The Manufacturer Part Number of this item.
# File lib/flow_commerce/flow_api_v0_client.rb, line 16766 def AttributeIntent.mpn @@_mpn ||= AttributeIntent.new('mpn') end
# File lib/flow_commerce/flow_api_v0_client.rb, line 16679 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
A price for the item in the organization’s base currency (will be localized based on each Experience’s pricing policy)
# File lib/flow_commerce/flow_api_v0_client.rb, line 16736 def AttributeIntent.price @@_price ||= AttributeIntent.new('price') end
An identifier used to group items that are variations of the same product, such as different sizes or colors of the same shirt
# File lib/flow_commerce/flow_api_v0_client.rb, line 16720 def AttributeIntent.product_id @@_product_id ||= AttributeIntent.new('product_id') end
Identifies whether the item can be returned. If not present on an item, it is assumed to be returnable.
# File lib/flow_commerce/flow_api_v0_client.rb, line 16788 def AttributeIntent.returnable @@_returnable ||= AttributeIntent.new('returnable') end
Identifies whether the attribute can be used to search for an item.
# File lib/flow_commerce/flow_api_v0_client.rb, line 16793 def AttributeIntent.searchable @@_searchable ||= AttributeIntent.new('searchable') end
A size label of the item
# File lib/flow_commerce/flow_api_v0_client.rb, line 16741 def AttributeIntent.size @@_size ||= AttributeIntent.new('size') end
An SKU for the item
# File lib/flow_commerce/flow_api_v0_client.rb, line 16746 def AttributeIntent.sku @@_sku ||= AttributeIntent.new('sku') end
Identifies whether taxes are applicable to an item
# File lib/flow_commerce/flow_api_v0_client.rb, line 16751 def AttributeIntent.taxability @@_taxability ||= AttributeIntent.new('taxability') end
Public Instance Methods
# File lib/flow_commerce/flow_api_v0_client.rb, line 16825 def to_hash value end