Class: Io::Flow::V0::Models::AttributeIntent

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ AttributeIntent

Returns a new instance of AttributeIntent.



14747
14748
14749
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14747

def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



14745
14746
14747
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14745

def value
  @value
end

Class Method Details

.apply(value) ⇒ Object

Returns the instance of AttributeIntent for this value, creating a new instance for an unknown value



14752
14753
14754
14755
14756
14757
14758
14759
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14752

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

.barcodeObject

The barcode of this item.



14866
14867
14868
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14866

def AttributeIntent.barcode
  @@_barcode ||= AttributeIntent.new('barcode')
end

.brandObject

A brand name of the item (for retailers that sell multiple brands)



14772
14773
14774
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14772

def AttributeIntent.brand
  @@_brand ||= AttributeIntent.new('brand')
end

.colorObject

The color of the item



14777
14778
14779
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14777

def AttributeIntent.color
  @@_color ||= AttributeIntent.new('color')
end

.commercial_invoice_item_numberObject

Identifies the attribute is used as an item number in the commercial invoice.



14883
14884
14885
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14883

def AttributeIntent.commercial_invoice_item_number
  @@_commercial_invoice_item_number ||= AttributeIntent.new('commercial_invoice_item_number')
end

.consumer_urlObject

A URL of the product detail page of the item



14824
14825
14826
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14824

def AttributeIntent.consumer_url
  @@_consumer_url ||= AttributeIntent.new('consumer_url')
end

.countries_of_originObject

A space separated list of the countries of origin for this item



14782
14783
14784
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14782

def AttributeIntent.countries_of_origin
  @@_countries_of_origin ||= AttributeIntent.new('countries_of_origin')
end

.eccnObject

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).



14850
14851
14852
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14850

def AttributeIntent.eccn
  @@_eccn ||= AttributeIntent.new('eccn')
end

.facetObject

Identifies a facet.



14839
14840
14841
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14839

def AttributeIntent.facet
  @@_facet ||= AttributeIntent.new('facet')
end

.from_string(value) ⇒ Object

Returns the instance of AttributeIntent for this value, or nil if not found



14762
14763
14764
14765
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14762

def AttributeIntent.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  AttributeIntent.ALL.find { |v| v.value == value }
end

.fulfillment_methodObject

Identifies whether the item is a physical or digital good



14793
14794
14795
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14793

def AttributeIntent.fulfillment_method
  @@_fulfillment_method ||= AttributeIntent.new('fulfillment_method')
end

.gtinObject

The Global Trade Item Number of this item.



14829
14830
14831
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14829

def AttributeIntent.gtin
  @@_gtin ||= AttributeIntent.new('gtin')
end

.hazardousObject

Identifies whether this item may contain hazardous materials



14798
14799
14800
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14798

def AttributeIntent.hazardous
  @@_hazardous ||= AttributeIntent.new('hazardous')
end

.include_in_product_feedsObject

Attribute to indicate whether an item should explicitly be included in a product feed



14889
14890
14891
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14889

def AttributeIntent.include_in_product_feeds
  @@_include_in_product_feeds ||= AttributeIntent.new('include_in_product_feeds')
end

.max_days_to_shipObject

Indicates a lead time to prepare an item for shipment. If specified, we will include this lead time in the delivery window calculation



14878
14879
14880
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14878

def AttributeIntent.max_days_to_ship
  @@_max_days_to_ship ||= AttributeIntent.new('max_days_to_ship')
end

.min_days_to_shipObject

Indicates a lead time to prepare an item for shipment. If specified, we will include this lead time in the delivery window calculation



14872
14873
14874
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14872

def AttributeIntent.min_days_to_ship
  @@_min_days_to_ship ||= AttributeIntent.new('min_days_to_ship')
end

.mpnObject

The Manufacturer Part Number of this item.



14834
14835
14836
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14834

def AttributeIntent.mpn
  @@_mpn ||= AttributeIntent.new('mpn')
end

.priceObject

A price for the item in the organization’s base currency (will be localized based on each Experience’s pricing policy)



14804
14805
14806
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14804

def AttributeIntent.price
  @@_price ||= AttributeIntent.new('price')
end

.product_idObject

An identifier used to group items that are variations of the same product, such as different sizes or colors of the same shirt



14788
14789
14790
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14788

def AttributeIntent.product_id
  @@_product_id ||= AttributeIntent.new('product_id')
end

.returnableObject

Identifies whether the item can be returned. If not present on an item, it is assumed to be returnable.



14856
14857
14858
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14856

def AttributeIntent.returnable
  @@_returnable ||= AttributeIntent.new('returnable')
end

.searchableObject

Identifies whether the attribute can be used to search for an item.



14861
14862
14863
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14861

def AttributeIntent.searchable
  @@_searchable ||= AttributeIntent.new('searchable')
end

.sizeObject

A size label of the item



14809
14810
14811
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14809

def AttributeIntent.size
  @@_size ||= AttributeIntent.new('size')
end

.skuObject

An SKU for the item



14814
14815
14816
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14814

def AttributeIntent.sku
  @@_sku ||= AttributeIntent.new('sku')
end

.taxabilityObject

Identifies whether taxes are applicable to an item



14819
14820
14821
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14819

def AttributeIntent.taxability
  @@_taxability ||= AttributeIntent.new('taxability')
end

Instance Method Details

#to_hashObject



14893
14894
14895
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14893

def to_hash
  value
end