1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2024-11-05 22:19:58 +03:00
parent 96c7bff65c
commit 88976f4012
65 changed files with 7788 additions and 5261 deletions

View File

@@ -0,0 +1,65 @@
 Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
AccountID = "172257075";
Image = "https://api.athenaeum.digital/test_data/picture.jpg";
Video = "https://api.athenaeum.digital/test_data/video.mp4";
UpdatesStructure = New Structure;
ItemStructure = New Structure;
ItemStructure.Insert("offerId" , "11111");
ItemStructure.Insert("name" , "Makita HP1630 impact drill, 710 W");
ItemStructure.Insert("marketCategoryId", 15221861);
ItemStructure.Insert("category" , "Drill");
ImageArray = New Array;
ImageArray.Add(Image);
ItemStructure.Insert("pictures", ImageArray);
VideosArray = New Array;
VideosArray.Add(Video);
ItemStructure.Insert("videos", VideosArray);
ItemStructure.Insert("vendor", "LEVENHUK");
BarcodesArray = New Array;
BarcodesArray.Add("46012300000000");
ItemStructure.Insert("barcodes" , BarcodesArray);
ItemStructure.Insert("description", "Description");
CountriesArray = New Array;
CountriesArray.Add("Russia");
ItemStructure.Insert("manufacturerCountries", CountriesArray);
SizesStructure = New Structure;
SizesStructure.Insert("length", 65.55);
SizesStructure.Insert("width" , 50.7);
SizesStructure.Insert("height", 20);
SizesStructure.Insert("weight", 1.001);
ItemStructure.Insert("weightDimensions", SizesStructure);
ItemStructure.Insert("vendorCode" , "VNDR-0005A");
TagsArray = New Array;
TagsArray.Add("up to 500 roubles");
ItemStructure.Insert("tags", TagsArray);
PeriodStructure = New Structure;
PeriodStructure.Insert("timePeriod", 24);
PeriodStructure.Insert("timeUnit" , "HOUR");
PeriodStructure.Insert("comment" , "Comment");
ItemStructure.Insert("shelfLife" , PeriodStructure);
ItemStructure.Insert("lifeTime" , PeriodStructure);
ItemStructure.Insert("guaranteePeriod" , PeriodStructure);
ItemStructure.Insert("customsCommodityCode", 8517610008);
ItemStructure.Insert("type" , "DEFAULT");
ItemStructure.Insert("downloadable" , False);
ItemStructure.Insert("adult" , False);
UpdatesStructure.Insert("offer", ItemStructure);
Result = OPI_YandexMarket.AddUpdateProducts(Token, AccountID, UpdatesStructure);

View File

@@ -0,0 +1,4 @@
 Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
AccountID = "172257075";
Result = OPI_YandexMarket.GetBusinessSettings(Token, AccountID);

View File

@@ -0,0 +1,4 @@
 Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
CampaignID = "129112733";
Result = OPI_YandexMarket.GetCampaignSettings(Token, CampaignID);

View File

@@ -0,0 +1,4 @@
 Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
CampaignID = "129112733";
Result = OPI_YandexMarket.GetMarket(Token, CampaignID);

View File

@@ -0,0 +1,3 @@
 Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
Result = OPI_YandexMarket.GetMarketsList(Token);