Class: Io::Flow::V0::Models::AttributeIntent
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::AttributeIntent
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of AttributeIntent for this value, creating a new instance for an unknown value.
-
.barcode ⇒ Object
The barcode of this item.
-
.brand ⇒ Object
A brand name of the item (for retailers that sell multiple brands).
-
.color ⇒ Object
The color of the item.
-
.commercial_invoice_item_number ⇒ Object
Identifies the attribute is used as an item number in the commercial invoice.
-
.consumer_url ⇒ Object
A URL of the product detail page of the item.
-
.countries_of_origin ⇒ Object
A space separated list of the countries of origin for this item.
-
.eccn ⇒ Object
An Export Control Classification Number (ECCN) is a five-character alphanumeric key used in the Commerce Control List (CCL) to classify U.S.
-
.facet ⇒ Object
Identifies a facet.
-
.from_string(value) ⇒ Object
Returns the instance of AttributeIntent for this value, or nil if not found.
-
.fulfillment_method ⇒ Object
Identifies whether the item is a physical or digital good.
-
.gtin ⇒ Object
The Global Trade Item Number of this item.
-
.hazardous ⇒ Object
Identifies whether this item may contain hazardous materials.
-
.include_in_product_feeds ⇒ Object
Attribute to indicate whether an item should explicitly be included in a product feed.
-
.max_days_to_ship ⇒ Object
Indicates a lead time to prepare an item for shipment.
-
.min_days_to_ship ⇒ Object
Indicates a lead time to prepare an item for shipment.
-
.mpn ⇒ Object
The Manufacturer Part Number of this item.
-
.price ⇒ Object
A price for the item in the organization’s base currency (will be localized based on each Experience’s pricing policy).
-
.product_id ⇒ Object
An identifier used to group items that are variations of the same product, such as different sizes or colors of the same shirt.
-
.returnable ⇒ Object
Identifies whether the item can be returned.
-
.searchable ⇒ Object
Identifies whether the attribute can be used to search for an item.
-
.size ⇒ Object
A size label of the item.
-
.sku ⇒ Object
An SKU for the item.
-
.taxability ⇒ Object
Identifies whether taxes are applicable to an item.
Instance Method Summary collapse
-
#initialize(value) ⇒ AttributeIntent
constructor
A new instance of AttributeIntent.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ AttributeIntent
Returns a new instance of AttributeIntent.
15452 15453 15454 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15452 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
15450 15451 15452 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15450 def value @value end |
Class Method Details
.ALL ⇒ Object
15472 15473 15474 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15472 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., AttributeIntent.min_days_to_ship, AttributeIntent.max_days_to_ship, AttributeIntent.commercial_invoice_item_number, AttributeIntent.include_in_product_feeds] end |
.apply(value) ⇒ Object
Returns the instance of AttributeIntent for this value, creating a new instance for an unknown value
15457 15458 15459 15460 15461 15462 15463 15464 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15457 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 |
.barcode ⇒ Object
The barcode of this item.
15571 15572 15573 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15571 def AttributeIntent. @@_barcode ||= AttributeIntent.new('barcode') end |
.brand ⇒ Object
A brand name of the item (for retailers that sell multiple brands)
15477 15478 15479 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15477 def AttributeIntent.brand @@_brand ||= AttributeIntent.new('brand') end |
.color ⇒ Object
The color of the item
15482 15483 15484 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15482 def AttributeIntent.color @@_color ||= AttributeIntent.new('color') end |
.commercial_invoice_item_number ⇒ Object
Identifies the attribute is used as an item number in the commercial invoice.
15588 15589 15590 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15588 def AttributeIntent.commercial_invoice_item_number @@_commercial_invoice_item_number ||= AttributeIntent.new('commercial_invoice_item_number') end |
.consumer_url ⇒ Object
A URL of the product detail page of the item
15529 15530 15531 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15529 def AttributeIntent.consumer_url @@_consumer_url ||= AttributeIntent.new('consumer_url') end |
.countries_of_origin ⇒ Object
A space separated list of the countries of origin for this item
15487 15488 15489 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15487 def AttributeIntent.countries_of_origin @@_countries_of_origin ||= AttributeIntent.new('countries_of_origin') end |
.eccn ⇒ Object
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).
15555 15556 15557 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15555 def AttributeIntent.eccn @@_eccn ||= AttributeIntent.new('eccn') end |
.facet ⇒ Object
Identifies a facet.
15544 15545 15546 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15544 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
15467 15468 15469 15470 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15467 def AttributeIntent.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) AttributeIntent.ALL.find { |v| v.value == value } end |
.fulfillment_method ⇒ Object
Identifies whether the item is a physical or digital good
15498 15499 15500 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15498 def AttributeIntent.fulfillment_method @@_fulfillment_method ||= AttributeIntent.new('fulfillment_method') end |
.gtin ⇒ Object
The Global Trade Item Number of this item.
15534 15535 15536 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15534 def AttributeIntent.gtin @@_gtin ||= AttributeIntent.new('gtin') end |
.hazardous ⇒ Object
Identifies whether this item may contain hazardous materials
15503 15504 15505 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15503 def AttributeIntent.hazardous @@_hazardous ||= AttributeIntent.new('hazardous') end |
.include_in_product_feeds ⇒ Object
Attribute to indicate whether an item should explicitly be included in a product feed
15594 15595 15596 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15594 def AttributeIntent.include_in_product_feeds @@_include_in_product_feeds ||= AttributeIntent.new('include_in_product_feeds') end |
.max_days_to_ship ⇒ Object
Indicates a lead time to prepare an item for shipment. If specified, we will include this lead time in the delivery window calculation
15583 15584 15585 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15583 def AttributeIntent.max_days_to_ship @@_max_days_to_ship ||= AttributeIntent.new('max_days_to_ship') end |
.min_days_to_ship ⇒ Object
Indicates a lead time to prepare an item for shipment. If specified, we will include this lead time in the delivery window calculation
15577 15578 15579 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15577 def AttributeIntent.min_days_to_ship @@_min_days_to_ship ||= AttributeIntent.new('min_days_to_ship') end |
.mpn ⇒ Object
The Manufacturer Part Number of this item.
15539 15540 15541 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15539 def AttributeIntent.mpn @@_mpn ||= AttributeIntent.new('mpn') end |
.price ⇒ Object
A price for the item in the organization’s base currency (will be localized based on each Experience’s pricing policy)
15509 15510 15511 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15509 def AttributeIntent.price @@_price ||= AttributeIntent.new('price') end |
.product_id ⇒ Object
An identifier used to group items that are variations of the same product, such as different sizes or colors of the same shirt
15493 15494 15495 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15493 def AttributeIntent.product_id @@_product_id ||= AttributeIntent.new('product_id') end |
.returnable ⇒ Object
Identifies whether the item can be returned. If not present on an item, it is assumed to be returnable.
15561 15562 15563 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15561 def AttributeIntent.returnable @@_returnable ||= AttributeIntent.new('returnable') end |
.searchable ⇒ Object
Identifies whether the attribute can be used to search for an item.
15566 15567 15568 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15566 def AttributeIntent.searchable @@_searchable ||= AttributeIntent.new('searchable') end |
.size ⇒ Object
A size label of the item
15514 15515 15516 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15514 def AttributeIntent.size @@_size ||= AttributeIntent.new('size') end |
.sku ⇒ Object
An SKU for the item
15519 15520 15521 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15519 def AttributeIntent.sku @@_sku ||= AttributeIntent.new('sku') end |
.taxability ⇒ Object
Identifies whether taxes are applicable to an item
15524 15525 15526 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15524 def AttributeIntent.taxability @@_taxability ||= AttributeIntent.new('taxability') end |
Instance Method Details
#to_hash ⇒ Object
15598 15599 15600 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 15598 def to_hash value end |