Automation and Shopify library updates
This commit is contained in:
@@ -16,6 +16,7 @@ using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PartSource.Automation.Jobs
|
||||
@@ -37,7 +38,7 @@ namespace PartSource.Automation.Jobs
|
||||
_vehicleService = vehicleService;
|
||||
}
|
||||
|
||||
public async Task Run()
|
||||
public async Task Run(CancellationToken token, params string[] arguments)
|
||||
{
|
||||
IEnumerable<Product> products = null;
|
||||
|
||||
@@ -104,7 +105,7 @@ namespace PartSource.Automation.Jobs
|
||||
Namespace = "fitment",
|
||||
Key = "ids",
|
||||
Value = json,
|
||||
ValueType = "json_string",
|
||||
Type = "json",
|
||||
OwnerResource = "product",
|
||||
OwnerId = product.Id
|
||||
};
|
||||
@@ -145,7 +146,7 @@ namespace PartSource.Automation.Jobs
|
||||
Namespace = "fitment",
|
||||
Key = "seo",
|
||||
Value = json,
|
||||
ValueType = "json_string",
|
||||
Type = "single_line_text_field",
|
||||
OwnerResource = "product",
|
||||
OwnerId = product.Id
|
||||
};
|
||||
@@ -158,7 +159,7 @@ namespace PartSource.Automation.Jobs
|
||||
Namespace = "Flags",
|
||||
Key = "IsFitment",
|
||||
Value = isFitment.ToString(),
|
||||
ValueType = "string",
|
||||
Type = "single_line_text_field",
|
||||
OwnerResource = "product",
|
||||
OwnerId = product.Id
|
||||
};
|
||||
@@ -170,7 +171,7 @@ namespace PartSource.Automation.Jobs
|
||||
Namespace = "google",
|
||||
Key = "custom_label_0",
|
||||
Value = importData.LineCode,
|
||||
ValueType = "string",
|
||||
Type = "single_line_text_field",
|
||||
OwnerResource = "product",
|
||||
OwnerId = product.Id
|
||||
};
|
||||
@@ -182,7 +183,7 @@ namespace PartSource.Automation.Jobs
|
||||
Namespace = "google",
|
||||
Key = "custom_label_1",
|
||||
Value = importData.PartNumber,
|
||||
ValueType = "string",
|
||||
Type = "single_line_text_field",
|
||||
OwnerResource = "product",
|
||||
OwnerId = product.Id
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user