class Shopify::ProductVariant

Extended Modules

Defined in:

shopify/resources/product_variant.cr

Constructors

Class Method Summary

Instance Method Summary

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

def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.create(body : String, domain : String, headers : HTTP::Headers, product_id : Int64) : Shopify::ProductVariant #

[View source]
def self.create(body : String, domain : String, headers : HTTP::Headers, product : Product) : Shopify::ProductVariant #

[View source]
def self.uri(domain : String, path : String = "", root_path = "/admin/api/2022-01/product_variants") : URI #

[View source]
def self.with(store : Store) #

[View source]

Instance Method Detail

def barcode : String? #

[View source]
def barcode=(barcode : String?) #

[View source]
def compare_at_price : String? #

[View source]
def compare_at_price=(compare_at_price : String?) #

[View source]
def created_at : Time #

[View source]
def created_at=(created_at : Time) #

[View source]
def fulfillment_service : String #

[View source]
def fulfillment_service=(fulfillment_service : String) #

[View source]
def grams : Int64 #

[View source]
def grams=(grams : Int64) #

[View source]
def id : Int64 #

[View source]
def id=(id : Int64) #

[View source]
def image_id : Int64? #

[View source]
def image_id=(image_id : Int64?) #

[View source]
def inventory_item_id : Int64 #

[View source]
def inventory_item_id=(inventory_item_id : Int64) #

[View source]
def inventory_management : String? #

[View source]
def inventory_management=(inventory_management : String?) #

[View source]
def inventory_policy : String #

[View source]
def inventory_policy=(inventory_policy : String) #

[View source]
def inventory_quantity : Int64 #

[View source]
def inventory_quantity=(inventory_quantity : Int64) #

[View source]
def inventory_quantity_adjustment : Int64? #

[View source]
def inventory_quantity_adjustment=(inventory_quantity_adjustment : Int64?) #

[View source]
def old_inventory_quantity : Int64? #

[View source]
def old_inventory_quantity=(old_inventory_quantity : Int64?) #

[View source]
def option : JSON::Any? #

[View source]
def option=(option : JSON::Any?) #

[View source]
def position : Int64 #

[View source]
def position=(position : Int64) #

[View source]
def presentment_prices : JSON::Any? #

[View source]
def presentment_prices=(presentment_prices : JSON::Any?) #

[View source]
def price : String | Float64 #

[View source]
def price=(price : String | Float64) #

[View source]
def product_id : Int64 #

[View source]
def product_id=(product_id : Int64) #

[View source]
def requires_shipping : Bool #

[View source]
def requires_shipping=(requires_shipping : Bool) #

[View source]
def sku : String #

[View source]
def sku=(sku : String) #

[View source]
def tax_code : String? #

[View source]
def tax_code=(tax_code : String?) #

[View source]
def taxable : Bool #

[View source]
def taxable=(taxable : Bool) #

[View source]
def title : String #

[View source]
def title=(title : String) #

[View source]
def updated_at : Time #

[View source]
def updated_at=(updated_at : Time) #

[View source]
def weight : Float64 #

[View source]
def weight=(weight : Float64) #

[View source]
def weight_unit : String #

[View source]
def weight_unit=(weight_unit : String) #

[View source]