File tree 2 files changed +12
-4
lines changed
lib/shopify_api/resources
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ def price_range
17
17
end
18
18
19
19
def total_inventory = ( new_value )
20
- raise ( ShopifyAPI ::ValidationException , 'deprecated behaviour' ) unless Base . api_version < ApiVersion . find_version ( '2019-10' )
20
+ raise ( ShopifyAPI ::ValidationException ,
21
+ "'total_inventory' is deprecated - see https://help.shopify.com/en/api/guides/inventory-migration-guide" ,
22
+ ) unless Base . api_version < ApiVersion . find_version ( '2019-10' )
21
23
super
22
24
end
23
25
Original file line number Diff line number Diff line change @@ -6,17 +6,23 @@ class Variant < Base
6
6
conditional_prefix :product
7
7
8
8
def inventory_quantity_adjustment = ( new_value )
9
- raise ( ShopifyAPI ::ValidationException , 'deprecated behaviour' ) unless Base . api_version < ApiVersion . find_version ( '2019-10' )
9
+ raise ( ShopifyAPI ::ValidationException ,
10
+ "'inventory_quantity_adjustment' is deprecated - see https://help.shopify.com/en/api/guides/inventory-migration-guide" ,
11
+ ) unless Base . api_version < ApiVersion . find_version ( '2019-10' )
10
12
super
11
13
end
12
14
13
15
def inventory_quantity = ( new_value )
14
- raise ( ShopifyAPI ::ValidationException , 'deprecated behaviour' ) unless Base . api_version < ApiVersion . find_version ( '2019-10' )
16
+ raise ( ShopifyAPI ::ValidationException ,
17
+ "'inventory_quantity' is deprecated - see https://help.shopify.com/en/api/guides/inventory-migration-guide" ,
18
+ ) unless Base . api_version < ApiVersion . find_version ( '2019-10' )
15
19
super
16
20
end
17
21
18
22
def old_inventory_quantity = ( new_value )
19
- raise ( ShopifyAPI ::ValidationException , 'deprecated behaviour' ) unless Base . api_version < ApiVersion . find_version ( '2019-10' )
23
+ raise ( ShopifyAPI ::ValidationException ,
24
+ "'old_inventory_quantity' is deprecated - see https://help.shopify.com/en/api/guides/inventory-migration-guide" ,
25
+ ) unless Base . api_version < ApiVersion . find_version ( '2019-10' )
20
26
super
21
27
end
22
28
end
You can’t perform that action at this time.
0 commit comments