Class: EPlat::Shopify::GraphQL::V202407::Input::Product::Variant

Inherits:
EPlat::Shopify::GraphQL::V202407::Input
  • Object
show all
Defined in:
lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2024_07/input/product/variant.rb

Constant Summary collapse

SUPPORTED_FIELDS =
%w[
	barcode
	compareAtPrice
	id
	inventoryItem
	inventoryPolicy
	inventoryQuantities
	mediaId
	mediaSrc
	metafields
	optionValues
	price
	taxCode
	taxable
].freeze
SUPPORTED_NAMED_ARGUMENT_FIELDS =
{
	variant: %w[
		barcode
		compareAtPrice
		id
		inventoryItem
		inventoryPolicy
		inventoryQuantities
		mediaId
		mediaSrc
		metafields
		optionValues
		price
		taxCode
		taxable
	],
	inventory_item: %w[
		cost
		countryCodeOfOrigin
		countryHarmonizedSystemCodes
		harmonizedSystemCode
		measurement
		provinceCodeOfOrigin
		requiresShipping
		sku
		tracked
	]
}.with_indifferent_access.freeze