class Shopify::ProductVariant
- Shopify::ProductVariant
- Shopify::Resource
- Reference
- Object
Extended Modules
- Shopify::Resource::ClassMethods
Defined in:
shopify/resources/product_variant.crConstructors
Class Method Summary
- .create(body : String, domain : String, headers : HTTP::Headers, product_id : Int64) : Shopify::ProductVariant
- .create(body : String, domain : String, headers : HTTP::Headers, product : Product) : Shopify::ProductVariant
- .uri(domain : String, path : String = "", root_path = "/admin/api/2022-01/product_variants") : URI
- .with(store : Store)
Instance Method Summary
- #barcode : String?
- #barcode=(barcode : String?)
- #compare_at_price : String?
- #compare_at_price=(compare_at_price : String?)
- #created_at : Time
- #created_at=(created_at : Time)
- #fulfillment_service : String
- #fulfillment_service=(fulfillment_service : String)
- #grams : Int64
- #grams=(grams : Int64)
- #id : Int64
- #id=(id : Int64)
- #image_id : Int64?
- #image_id=(image_id : Int64?)
- #inventory_item_id : Int64
- #inventory_item_id=(inventory_item_id : Int64)
- #inventory_management : String?
- #inventory_management=(inventory_management : String?)
- #inventory_policy : String
- #inventory_policy=(inventory_policy : String)
- #inventory_quantity : Int64
- #inventory_quantity=(inventory_quantity : Int64)
- #inventory_quantity_adjustment : Int64?
- #inventory_quantity_adjustment=(inventory_quantity_adjustment : Int64?)
- #old_inventory_quantity : Int64?
- #old_inventory_quantity=(old_inventory_quantity : Int64?)
- #option : JSON::Any?
- #option=(option : JSON::Any?)
- #position : Int64
- #position=(position : Int64)
- #presentment_prices : JSON::Any?
- #presentment_prices=(presentment_prices : JSON::Any?)
- #price : String | Float64
- #price=(price : String | Float64)
- #product_id : Int64
- #product_id=(product_id : Int64)
- #requires_shipping : Bool
- #requires_shipping=(requires_shipping : Bool)
- #sku : String
- #sku=(sku : String)
- #tax_code : String?
- #tax_code=(tax_code : String?)
- #taxable : Bool
- #taxable=(taxable : Bool)
- #title : String
- #title=(title : String)
- #updated_at : Time
- #updated_at=(updated_at : Time)
- #weight : Float64
- #weight=(weight : Float64)
- #weight_unit : String
- #weight_unit=(weight_unit : String)
Instance methods inherited from class Shopify::Resource
store : Store
store,
store=(store : Store)
store=
Constructor methods inherited from class Shopify::Resource
new(pull : JSON::PullParser)
new
Class methods inherited from class Shopify::Resource
headers
headers
Constructor Detail
Class Method Detail
def self.create(body : String, domain : String, headers : HTTP::Headers, product_id : Int64) : Shopify::ProductVariant
#
def self.create(body : String, domain : String, headers : HTTP::Headers, product : Product) : Shopify::ProductVariant
#
def self.uri(domain : String, path : String = "", root_path = "/admin/api/2022-01/product_variants") : URI
#