Skip to content

Commit c9cef40

Browse files
nate141nozzlegear
authored andcommitted
Update Collect.Position to a long
We started getting multiple errors from different integrations: Could not convert to integer: 158963409999360. Path 'collects[0].position' Seems like Shopify started returning a long for this field too Signed-off-by: nate141 <naftali.t14@gmail.com>
1 parent ded7356 commit c9cef40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ShopifySharp/Entities/Collect.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ public class Collect : ShopifyObject
3636
/// A number specifying the manually sorted position of this product in a custom collection. The first position is 1. This value only applies when the custom collection is viewed using the Manual sort order.
3737
/// </summary>
3838
[JsonProperty("position")]
39-
public int? Position { get; set; }
39+
public long? Position { get; set; }
4040

4141
/// <summary>
4242
/// This is the same value as position but padded with leading zeroes to make it alphanumeric-sortable.
4343
/// </summary>
4444
[JsonProperty("sort_value")]
4545
public string SortValue { get; set; }
46-
}
46+
}

0 commit comments

Comments
 (0)