Automation and Shopify library updates

This commit is contained in:
2022-10-30 22:12:25 -04:00
parent 48844127d7
commit b259b77967
21 changed files with 172 additions and 200 deletions

View File

@@ -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
};