idosell 0.4.27 → 0.4.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-object-type */
2
2
  import type { PagableGateway, AppendableGateway, Gateway, DateLike, JSObject, IdosellErrorFaultStructure } from "./app.d.ts"
3
- import type { GetClientsBalanceResponse, BooleanStatusResponse, GetClientsResponse, PostClientsResponse, PutClientsResponse, SearchClientsCrmResponse, GetClientsDeliveryAddressResponse, PostClientsDeliveryAddressResponse, PutClientsDeliveryAddressResponse, VouchersResponse, PutVouchersResponse, SearchClientsGiftcardsResponse, GetClientsGiftcardsTypesResponse, GetClientsMembershipCardsResponse, PutClientsMembershipCardsResponse, SearchClientsNewsletterEmailResponse, SearchClientsNewsletterSmsResponse, GetClientsPayerAddressResponse, PostClientsPayerAddressResponse, PutClientsPayerAddressResponse, GetClientsPricelistsClientsResponse, PutClientsPricelistsClientsResponse, GetClientsPricelistsResponse, PostClientsPricelistsResponse, GetClientsPricelistsProductsResponse, PutClientsPricelistsProductsResponse, GetClientsPricesActiveCardResponse, GetClientsPricesDiscountGroupsResponse, GetClientsPricesDiscountsResponse, PutClientsPricesDiscountsResponse, GetClientsProfitPointsResponse, GetClientsProvinceListResponse, GetClientsTagsResponse, PostClientsTagsResponse, PutClientsTagsResponse, GetConfigVariablesResponse, PutConfigVariablesResponse, GetCouriersAssignedToShippingProfilesResponse, GetCouriersResponse, GetCouriersPickupPointsResponse, PutCouriersPickupPointsResponse, GetCpaCampaignResponse, CmsCampaignResponse, CmsResponse, GetCpaResponse, GetDeliveriesProfilesResponse, GetDeliveriesRegionsResponse, PostDeliveriesRegionsResponse, GetDiscountsGroupsClientsResponse, GetDiscountsGroupsResponse, PostDiscountsGroupsResponse, GetEntriesResponse, PostEntriesResponse, GetEntriesPagesToDisplayResponse, GetEntriesSourcesResponse, GetMenuResponse, PostMenuResponse, PutMenuResponse, PutMenuSortResponse, GetOrdersAnalyticsResponse, GetOrdersAuctionDetailsResponse, PutOrdersCourierResponse, PostOrdersDocumentsCreateResponse, GetOrdersDocumentsResponse, PostOrdersDocumentsResponse, GetOrdersHandlerResponse, GetOrdersHistoryResponse, GetOrdersImagesResponse, PostOrdersImagesResponse, GetOrdersLabelsResponse, SearchOrdersOpinionsResponse, GetOrdersOpinionsRateResponse, SearchOrdersResponse, PostOrdersResponse, PutOrdersResponse, GetOrdersPackagesResponse, PutOrdersPackagesResponse, PutOrdersProductsSerialNumbersResponse, PutOrdersProfitMarginResponse, GetOrdersProfitabilityResponse, GetOrdersStatusesResponse, GetOrdersWarehouseResponse, PostPackagesLabelsResponse, PutPackagesResponse, SearchPackagesResponse, GetPaymentsFormsResponse, GetPaymentsResponse, PostPaymentsResponse, GetPaymentsProfilesResponse, PostPaymentsRepaymentResponse, GetProductsSKUbyBarcodeResponse, PutProductsAttachmentsResponse, GetProductsAuctionsResponse, GetProductsBrandsResponse, PutProductsBrandsResponse, GetProductsCategoriesResponse, PutProductsCategoriesResponse, SearchProductsCategoriesIdosellResponse, GetProductsCodeExistenceResponse, SearchProductsDeliveryTimeResponse, GetProductsDescriptionsResponse, ProductIdentResponse, PutProductsGroupsSettingsResponse, GetProductsIdBySizecodeResponse, PutProductsImagesResponse, GetProductsMarketingPromotionResponse, PostProductsMarketingPromotionResponse, PutProductsMarketingPromotionResponse, GetProductsMarketingZonesResponse, PutProductsMarketingZonesResponse, GetProductsOmnibusPricesResponse, GetProductsOpinionsResponse, PostProductsOpinionsResponse, GetProductsOpinionsRateResponse, PutProductsParametersResponse, SearchProductsParametersResponse, SearchProductsResponse, PostProductsResponse, PutProductsResponse, GetProductsQuestionsResponse, GetProductsReservationsResponse, GetProductsSeriesResponse, PutProductsSeriesResponse, GetProductsSizesResponse, PutProductsSizesResponse, PutProductsStockQuantityResponse, GetProductsStocksResponse, PutProductsStocksResponse, GetProductsStrikethroughPricesResponse, PutProductsSupplierCodeResponse, PutProductsSupplierProductDataResponse, PromotionBoolResponse, SearchPromotionsElementsResponse, SearchPromotionsHistoryResponse, PromotionIdResponse, GetPromotionsResponse, SearchPromotionsListViewResponse, GetPromotionsArchiveResponse, SearchPromotionsArchiveResponse, GetPromotionsSettingsResponse, GetResponsibilityEntitiesResponse, PutResponsibilityEntitiesResponse, GetReturnsResponse, PostReturnsResponse, PutReturnsResponse, PutReturnsSerialNumberResponse, GetRmaResponse, PutRmaResponse, GetRmaStatusesResponse, GetShopsCurrenciesResponse, GetShopsLanguagesResponse, GetSizechartsResponse, PutSizechartsResponse, GetSizesResponse, PutSizesResponse, GetSnippetsCampaignResponse, GetSnippetsCookiesResponse, GetSnippetsResponse, GetSystemConfigResponse, GetSystemCurrenciesResponse, PutSystemCurrenciesResponse, GetSystemProcessesAutomationResponse, GetSystemServerLoadResponse, GetSystemServerTimeResponse, GetSystemShopsDataResponse, GetSystemUnitsResponse, PutSystemUnitsResponse, GetSystemUsersResponse, GetVouchersTypesResponse, GetVouchersResponse, GetWarrantiesCountTotalResponse, PutWarrantiesLanguageDataResponse, GetWarrantiesResponse, PutWarrantiesResponse, GetWmsLocationsResponse, GetWmsStocksdocumentsDocumentsResponse, PostWmsStocksdocumentsDocumentsResponse, PutWmsStocksdocumentsDocumentsResponse, GetWmsStocksdocumentsOpenedDocumentsResponse, GetWmsStocksdocumentsProductsResponse, PutWmsStocksdocumentsProductsResponse, GetWmsSuppliersResponse, PutWmsSuppliersResponse } from "./responses.d.ts"
3
+ import type { GetClientsBalanceResponse, BooleanStatusResponse, GetClientsResponse, PostClientsResponse, PutClientsResponse, SearchClientsCrmResponse, GetClientsDeliveryAddressResponse, PostClientsDeliveryAddressResponse, PutClientsDeliveryAddressResponse, VouchersResponse, PutVouchersResponse, SearchClientsGiftcardsResponse, GetClientsGiftcardsTypesResponse, GetClientsMembershipCardsResponse, PutClientsMembershipCardsResponse, SearchClientsNewsletterEmailResponse, SearchClientsNewsletterSmsResponse, GetClientsPayerAddressResponse, PostClientsPayerAddressResponse, PutClientsPayerAddressResponse, GetClientsPricelistsClientsResponse, PutClientsPricelistsClientsResponse, GetClientsPricelistsResponse, PostClientsPricelistsResponse, GetClientsPricelistsProductsResponse, PutClientsPricelistsProductsResponse, GetClientsPricesActiveCardResponse, GetClientsPricesDiscountGroupsResponse, GetClientsPricesDiscountsResponse, PutClientsPricesDiscountsResponse, GetClientsProfitPointsResponse, GetClientsProvinceListResponse, GetClientsTagsResponse, PostClientsTagsResponse, PutClientsTagsResponse, GetConfigVariablesResponse, PutConfigVariablesResponse, GetCouriersAssignedToShippingProfilesResponse, GetCouriersResponse, GetCouriersPickupPointsResponse, PutCouriersPickupPointsResponse, GetCpaCampaignResponse, CmsCampaignResponse, CmsResponse, GetCpaResponse, GetDeliveriesProfilesResponse, GetDeliveriesRegionsResponse, PostDeliveriesRegionsResponse, GetDiscountsGroupsClientsResponse, GetDiscountsGroupsResponse, PostDiscountsGroupsResponse, GetEntriesResponse, PostEntriesResponse, GetEntriesPagesToDisplayResponse, GetEntriesSourcesResponse, GetMenuResponse, PostMenuResponse, PutMenuResponse, PutMenuSortResponse, GetOrdersAnalyticsResponse, GetOrdersAuctionDetailsResponse, PutOrdersCourierResponse, PostOrdersDocumentsCreateResponse, GetOrdersDocumentsResponse, PostOrdersDocumentsResponse, GetOrdersHandlerResponse, GetOrdersHistoryResponse, GetOrdersImagesResponse, PostOrdersImagesResponse, GetOrdersLabelsResponse, SearchOrdersOpinionsResponse, GetOrdersOpinionsRateResponse, SearchOrdersResponse, PostOrdersResponse, PutOrdersResponse, GetOrdersPackagesResponse, PutOrdersPackagesResponse, PutOrdersProductsSerialNumbersResponse, PutOrdersProfitMarginResponse, GetOrdersProfitabilityResponse, GetOrdersStatusesResponse, GetOrdersWarehouseResponse, PostPackagesLabelsResponse, PutPackagesResponse, SearchPackagesResponse, GetPaymentsFormsResponse, GetPaymentsResponse, PostPaymentsResponse, GetPaymentsProfilesResponse, PostPaymentsRepaymentResponse, GetProductsSKUbyBarcodeResponse, PutProductsAttachmentsResponse, GetProductsAuctionsResponse, GetProductsBrandsResponse, PutProductsBrandsResponse, GetProductsCategoriesResponse, PutProductsCategoriesResponse, SearchProductsCategoriesIdosellResponse, GetProductsCodeExistenceResponse, SearchProductsDeliveryTimeResponse, GetProductsDescriptionsResponse, ProductIdentResponse, PutProductsGroupsSettingsResponse, GetProductsIdBySizecodeResponse, PutProductsImagesResponse, GetProductsMarketingZonesResponse, PutProductsMarketingZonesResponse, GetProductsOmnibusPricesResponse, GetProductsOpinionsResponse, PostProductsOpinionsResponse, GetProductsOpinionsRateResponse, PutProductsParametersResponse, SearchProductsParametersResponse, SearchProductsResponse, PostProductsResponse, PutProductsResponse, PutProductsMarketingPromotionResponse, GetProductsQuestionsResponse, GetProductsReservationsResponse, GetProductsSeriesResponse, PutProductsSeriesResponse, GetProductsSizesResponse, PutProductsSizesResponse, PutProductsStockQuantityResponse, GetProductsStocksResponse, PutProductsStocksResponse, GetProductsStrikethroughPricesResponse, PutProductsSupplierCodeResponse, PutProductsSupplierProductDataResponse, PromotionBoolResponse, SearchPromotionsElementsResponse, SearchPromotionsHistoryResponse, PromotionIdResponse, GetPromotionsResponse, SearchPromotionsListViewResponse, GetPromotionsArchiveResponse, SearchPromotionsArchiveResponse, GetPromotionsSettingsResponse, GetResponsibilityEntitiesResponse, PutResponsibilityEntitiesResponse, GetReturnsResponse, PostReturnsResponse, PutReturnsResponse, PutReturnsSerialNumberResponse, GetRmaResponse, PutRmaResponse, GetRmaStatusesResponse, GetShopsCurrenciesResponse, GetShopsLanguagesResponse, GetSizechartsResponse, PutSizechartsResponse, GetSizesResponse, PutSizesResponse, GetSnippetsCampaignResponse, GetSnippetsCookiesResponse, GetSnippetsResponse, GetSystemConfigResponse, GetSystemCurrenciesResponse, PutSystemCurrenciesResponse, GetSystemProcessesAutomationResponse, GetSystemServerLoadResponse, GetSystemServerTimeResponse, GetSystemShopsDataResponse, GetSystemUnitsResponse, PutSystemUnitsResponse, GetSystemUsersResponse, GetVouchersTypesResponse, GetVouchersResponse, GetWarrantiesCountTotalResponse, PutWarrantiesLanguageDataResponse, GetWarrantiesResponse, PutWarrantiesResponse, GetWmsLocationsResponse, GetWmsStocksdocumentsDocumentsResponse, PostWmsStocksdocumentsDocumentsResponse, PutWmsStocksdocumentsDocumentsResponse, GetWmsStocksdocumentsOpenedDocumentsResponse, GetWmsStocksdocumentsProductsResponse, PutWmsStocksdocumentsProductsResponse, GetWmsSuppliersResponse, PutWmsSuppliersResponse, GetProductsMarketingPromotionResponse, PostProductsMarketingPromotionResponse } from "./responses.d.ts"
4
4
  import type * as RequestParams from "./reqparams.d.ts";
5
5
  import * as ENUMS from "./enums";
6
6
  import utils from "./utils";
@@ -111,7 +111,6 @@ export interface PostClientsRequest extends AppendableGateway<PostClientsRequest
111
111
  birth_date: (birth_date: string) => this
112
112
  /** Customer phone number. */
113
113
  phone: (phone: string) => this
114
- /** */
115
114
  company: (company: string) => this
116
115
  /** Customer Tax no. */
117
116
  vat_number: (vat_number: string) => this
@@ -129,7 +128,6 @@ export interface PostClientsRequest extends AppendableGateway<PostClientsRequest
129
128
  block_autosigning_to_shops: (block_autosigning_to_shops: boolean) => this
130
129
  /** Customer default currency (ISO 4217 code). */
131
130
  currency: (currency: string) => this
132
- /** */
133
131
  delivery_dates: (delivery_dates: string|string[]) => this
134
132
  /** Customer account balance in external system. */
135
133
  external_balance_value: (external_balance_value: number) => this
@@ -383,12 +381,14 @@ export interface PutClientsDeliveryAddressRequest extends AppendableGateway<PutC
383
381
  clientDeliveryAddressCountry: (clientDeliveryAddressCountry: string) => this
384
382
  }
385
383
 
386
- export interface PutClientsExternalCodeRequest extends Gateway {
387
- client_id: (value: number|string) => this;
384
+ export interface PutClientsExternalCodeRequest extends AppendableGateway<PutClientsExternalCodeRequest, JSObject, RequestParams.PutClientsExternalCodeParams> {
385
+ /** Customer data. */
386
+ clients: (value: RequestParams.PutClientsExternalCodeParams["clients"]) => this;
387
+ client_id: (client_id: number|string) => this
388
388
  /** Customer's login. */
389
- client_login: (value: string) => this;
389
+ client_login: (client_login: string) => this
390
390
  /** External system code. */
391
- code_extern: (value: string) => this;
391
+ code_extern: (code_extern: string) => this
392
392
  }
393
393
 
394
394
  export interface PutClientsGiftcardsBlockRequest extends AppendableGateway<PutClientsGiftcardsBlockRequest, VouchersResponse, RequestParams.PutClientsGiftcardsBlockParams> {
@@ -426,7 +426,6 @@ export interface PostClientsGiftcardsRequest extends AppendableGateway<PostClien
426
426
  balance: (balance: RequestParams.PostClientsGiftcardsParams["giftCards"][number]["balance"]) => this
427
427
  /** List of shops the card is active in */
428
428
  shops: (shops: number|string|number[]|string[]) => this
429
- /** */
430
429
  note: (note: string) => this
431
430
  }
432
431
 
@@ -449,7 +448,6 @@ export interface PutClientsGiftcardsRequest extends AppendableGateway<PutClients
449
448
  balance: (balance: RequestParams.PutClientsGiftcardsParams["giftCards"][number]["balance"]) => this
450
449
  /** List of shops the card is active in */
451
450
  shops: (shops: number|string|number[]|string[]) => this
452
- /** */
453
451
  note: (note: string) => this
454
452
  /** Adds balance to current gift card */
455
453
  add: (amount: number, currency?: string) => this;
@@ -823,7 +821,6 @@ export interface PutClientsTagsRequest extends AppendableGateway<PutClientsTagsR
823
821
  clientTags: (value: RequestParams.PutClientsTagsParams["clientTags"]) => this;
824
822
  /** Tag ID. */
825
823
  tagId: (tagId: number|string) => this
826
- /** */
827
824
  operation: (operation: 'add'|'set'|'subtract') => this
828
825
  /** Tag value. */
829
826
  tagValue: (tagValue: number|string) => this
@@ -952,7 +949,6 @@ export interface GetCpaCampaignRequest extends PagableGateway<GetCpaCampaignRequ
952
949
 
953
950
  export interface PostCpaCampaignRequest extends AppendableGateway<PostCpaCampaignRequest, CmsCampaignResponse, RequestParams.PostCpaCampaignParams> {
954
951
  campaigns: (value: RequestParams.PostCpaCampaignParams["campaigns"]) => this;
955
- /** undefined */
956
952
  id: (id: number|string) => this
957
953
  /** Snippet campaign name */
958
954
  name: (name: string) => this
@@ -996,7 +992,6 @@ export interface GetCpaRequest extends PagableGateway<GetCpaRequest, GetCpaRespo
996
992
 
997
993
  export interface PostCpaRequest extends AppendableGateway<PostCpaRequest, CmsResponse, RequestParams.PostCpaParams> {
998
994
  cpa: (value: RequestParams.PostCpaParams["cpa"]) => this;
999
- /** undefined */
1000
995
  id: (id: number|string) => this
1001
996
  /** The CPA program name. */
1002
997
  name: (name: string) => this
@@ -1006,7 +1001,6 @@ export interface PostCpaRequest extends AppendableGateway<PostCpaRequest, CmsRes
1006
1001
  campaign: (campaign: number|string) => this
1007
1002
  /** CPA program page settings simple or advanced, depending on the mode. */
1008
1003
  pageSettings: (pageSettings: RequestParams.PostCpaParams["cpa"][number]["pageSettings"]) => this
1009
- /** undefined */
1010
1004
  display: (display: RequestParams.PostCpaParams["cpa"][number]["display"]) => this
1011
1005
  /** Snippet entry source filter. */
1012
1006
  sources: (sources: RequestParams.PostCpaParams["cpa"][number]["sources"]) => this
@@ -1016,7 +1010,6 @@ export interface PostCpaRequest extends AppendableGateway<PostCpaRequest, CmsRes
1016
1010
 
1017
1011
  export interface PutCpaRequest extends AppendableGateway<PutCpaRequest, CmsResponse, RequestParams.PutCpaParams> {
1018
1012
  cpa: (value: RequestParams.PutCpaParams["cpa"]) => this;
1019
- /** undefined */
1020
1013
  id: (id: number|string) => this
1021
1014
  /** The CPA program name. */
1022
1015
  name: (name: string) => this
@@ -1026,7 +1019,6 @@ export interface PutCpaRequest extends AppendableGateway<PutCpaRequest, CmsRespo
1026
1019
  campaign: (campaign: number|string) => this
1027
1020
  /** CPA program page settings simple or advanced, depending on the mode. */
1028
1021
  pageSettings: (pageSettings: RequestParams.PutCpaParams["cpa"][number]["pageSettings"]) => this
1029
- /** undefined */
1030
1022
  display: (display: RequestParams.PutCpaParams["cpa"][number]["display"]) => this
1031
1023
  /** Snippet entry source filter. */
1032
1024
  sources: (sources: RequestParams.PutCpaParams["cpa"][number]["sources"]) => this
@@ -1332,7 +1324,6 @@ export interface PostMenuRequest extends AppendableGateway<PostMenuRequest, Post
1332
1324
  parent_id: (parent_id: number|string) => this
1333
1325
  /** Menu element text identifier. Example: "item1\item2". */
1334
1326
  parent_textid: (parent_textid: string) => this
1335
- /** */
1336
1327
  lang_data: (lang_data: RequestParams.PostMenuParams["menu_list"][number]["lang_data"]) => this
1337
1328
  }
1338
1329
 
@@ -1348,7 +1339,6 @@ export interface PutMenuRequest extends AppendableGateway<PutMenuRequest, PutMen
1348
1339
  item_id: (item_id: number|string) => this
1349
1340
  /** Menu element text identifier. Example: "item1\item2\item3". */
1350
1341
  item_textid: (item_textid: string) => this
1351
- /** */
1352
1342
  lang_data: (lang_data: RequestParams.PutMenuParams["menu_list"][number]["lang_data"]) => this
1353
1343
  }
1354
1344
 
@@ -1906,7 +1896,7 @@ export interface PutOrdersShippingCostsRequest extends Gateway {
1906
1896
 
1907
1897
  export interface GetOrdersStatusesRequest extends Gateway<GetOrdersStatusesResponse> {}
1908
1898
 
1909
- export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrdersUnfinishedRequest, SearchOrdersResponse> {
1899
+ export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrdersUnfinishedRequest, SearchOrdersResponse, RequestParams.SearchOrdersParams> {
1910
1900
  /** Prepayment status. Status list: "unpaid" - not paid, "restored" - returned, "waiting" - not registered. */
1911
1901
  orderPrepaidStatus: (value: "unpaid" | "restored" | "waiting") => this;
1912
1902
  /** Order status. Status list: "new" - not handled, "on_order" - in progress, "packed" - being picked, "packed_fulfillment" - being picked - fulfilment, "packed_ready" - packed, "ready" - ready, "payment_waiting" - awaiting payment, "delivery_waiting" - awaiting delivery, "wait_for_dispatch" - awaiting dispatch date, "suspended" - on hold, "finished_ext" - handled in FA application. */
@@ -1926,13 +1916,13 @@ export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrde
1926
1916
  /** Order serial numbers. */
1927
1917
  ordersSerialNumbers: (value: number|string|number[]|string[]) => this;
1928
1918
  /** Customer data. */
1929
- clients: (value: Array<JSObject>) => this;
1919
+ clients: (value: RequestParams.SearchOrdersParams["clients"]) => this;
1930
1920
  /** Ranges of dates or serial numbers. */
1931
- ordersRange: (value: JSObject) => this;
1921
+ ordersRange: (value: RequestParams.SearchOrdersParams["ordersRange"]) => this;
1932
1922
  /** Order source data. */
1933
- orderSource: (value: JSObject) => this;
1923
+ orderSource: (value: RequestParams.SearchOrdersParams["orderSource"]) => this;
1934
1924
  /** Products list. */
1935
- products: (value: Array<JSObject>) => this;
1925
+ products: (value: RequestParams.SearchOrdersParams["products"]) => this;
1936
1926
  /** Page with results number. Numeration starts from 0 */
1937
1927
  resultsPage: (value: number|string) => this;
1938
1928
  /** Number of results on page. Value from 1 to 100 */
@@ -1940,11 +1930,11 @@ export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrde
1940
1930
  /** Customer asked for invoice. List of parameters: "invoice" - yes (paper invoicing ), "e_invoice" - yes (electronic invoicing ), "n" - no. */
1941
1931
  clientRequestInvoice: (value: string) => this;
1942
1932
  /** Information on consignments. */
1943
- packages: (value: JSObject) => this;
1933
+ packages: (value: RequestParams.SearchOrdersParams["packages"]) => this;
1944
1934
  /** Stock quantities data. */
1945
- stocks: (value: Array<JSObject>) => this;
1935
+ stocks: (value: RequestParams.SearchOrdersParams["stocks"]) => this;
1946
1936
  /** Used discount codes data. */
1947
- campaign: (value: JSObject) => this;
1937
+ campaign: (value: RequestParams.SearchOrdersParams["campaign"]) => this;
1948
1938
  /** Loyalty points. */
1949
1939
  loyaltyPointsMode: (value: 'all'|'given'|'taken'|'given_or_taken'|'given_and_taken'|'not_given_nor_taken') => this;
1950
1940
  /** Order handler. */
@@ -1952,7 +1942,7 @@ export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrde
1952
1942
  /** Order picker. */
1953
1943
  orderPackingPersonLogin: (value: string) => this;
1954
1944
  /** Possibility of sorting returned list */
1955
- ordersBy: (value: Array<JSObject>) => this;
1945
+ ordersBy: (value: RequestParams.SearchOrdersParams["ordersBy"]) => this;
1956
1946
  /** Method of searching orders by handler. */
1957
1947
  searchingOperatorTypeMatch: (value: 'no_assignment'|'no_empty'|'empty') => this;
1958
1948
  /** Orders with the exceeded date of shipment. */
@@ -2181,6 +2171,15 @@ export interface GetProductsSKUbyBarcodeRequest extends Gateway<GetProductsSKUby
2181
2171
  searchOnlyInCodeIai: (value: boolean) => this;
2182
2172
  }
2183
2173
 
2174
+ export interface GetProductsAttachmentsGetContentRequest extends Gateway {
2175
+ /** - product identifier value */
2176
+ productIdentValue: (value: string) => this;
2177
+ /** - product identifier type */
2178
+ productIdentType: (value: 'codeExtern'|'codeProducer'|'index'|'id') => this;
2179
+ /** - product attachment ID */
2180
+ attachmentId: (value: number|string) => this;
2181
+ }
2182
+
2184
2183
  export interface PutProductsAttachmentsRequest extends AppendableGateway<PutProductsAttachmentsRequest, PutProductsAttachmentsResponse, RequestParams.PutProductsAttachmentsParams> {
2185
2184
  productsAttachments: (value: RequestParams.PutProductsAttachmentsParams["productsAttachments"]) => this;
2186
2185
  /** Stock keeping unit. */
@@ -2263,9 +2262,7 @@ export interface PostProductsBrandsRequest extends AppendableGateway<PostProduct
2263
2262
  producers: (value: RequestParams.PostProductsBrandsParams["producers"]) => this;
2264
2263
  /** Name in panel */
2265
2264
  nameInPanel: (nameInPanel: string) => this
2266
- /** */
2267
2265
  imagesSettings: (imagesSettings: RequestParams.PostProductsBrandsParams["producers"][number]["imagesSettings"]) => this
2268
- /** */
2269
2266
  languagesConfigurations: (languagesConfigurations: RequestParams.PostProductsBrandsParams["producers"][number]["languagesConfigurations"]) => this
2270
2267
  }
2271
2268
 
@@ -2276,9 +2273,7 @@ export interface PutProductsBrandsRequest extends AppendableGateway<PutProductsB
2276
2273
  id: (id: number|string) => this
2277
2274
  /** Name in panel */
2278
2275
  nameInPanel: (nameInPanel: string) => this
2279
- /** */
2280
2276
  imagesSettings: (imagesSettings: RequestParams.PutProductsBrandsParams["producers"][number]["imagesSettings"]) => this
2281
- /** */
2282
2277
  languagesConfigurations: (languagesConfigurations: RequestParams.PutProductsBrandsParams["producers"][number]["languagesConfigurations"]) => this
2283
2278
  }
2284
2279
 
@@ -2294,7 +2289,6 @@ export interface DeleteProductsBundlesProductsRequest extends AppendableGateway<
2294
2289
  params: (value: Array<JSObject>) => this;
2295
2290
  /** Products list. */
2296
2291
  products: (products: Array<JSObject>) => this
2297
- /** */
2298
2292
  bundleIdent: (bundleIdent: JSObject) => this
2299
2293
  }
2300
2294
 
@@ -2303,7 +2297,6 @@ export interface PostProductsBundlesProductsRequest extends AppendableGateway<Po
2303
2297
  params: (value: Array<JSObject>) => this;
2304
2298
  /** Products list. */
2305
2299
  products: (products: Array<JSObject>) => this
2306
- /** */
2307
2300
  bundleIdent: (bundleIdent: JSObject) => this
2308
2301
  }
2309
2302
 
@@ -2312,7 +2305,6 @@ export interface PutProductsBundlesProductsQuantityRequest extends AppendableGat
2312
2305
  params: (value: Array<JSObject>) => this;
2313
2306
  /** Products list. */
2314
2307
  products: (products: Array<JSObject>) => this
2315
- /** */
2316
2308
  bundleIdent: (bundleIdent: JSObject) => this
2317
2309
  }
2318
2310
 
@@ -2349,7 +2341,6 @@ export interface PutProductsCategoriesRequest extends AppendableGateway<PutProdu
2349
2341
  priority: (priority: number|string) => this
2350
2342
  /** Operation code. Allowed values. "add" - adds new category, "edit" - edits existing category, "del" - deletes existing category. */
2351
2343
  operation: (operation: string) => this
2352
- /** */
2353
2344
  lang_data: (lang_data: RequestParams.PutProductsCategoriesParams["categories"][number]["lang_data"]) => this
2354
2345
  }
2355
2346
 
@@ -2454,7 +2445,6 @@ export interface GetProductsDescriptionsRequest extends Gateway<GetProductsDescr
2454
2445
  export interface PutProductsDescriptionsRequest extends AppendableGateway<PutProductsDescriptionsRequest, ProductIdentResponse, RequestParams.PutProductsDescriptionsParams> {
2455
2446
  /** Products list. */
2456
2447
  products: (value: RequestParams.PutProductsDescriptionsParams["products"]) => this;
2457
- /** */
2458
2448
  productIdent: (productIdent: RequestParams.PutProductsDescriptionsParams["products"][number]["productIdent"]) => this
2459
2449
  /** Array of language-dependent elements. */
2460
2450
  productDescriptionsLangData: (productDescriptionsLangData: RequestParams.PutProductsDescriptionsParams["products"][number]["productDescriptionsLangData"]) => this
@@ -2467,14 +2457,12 @@ export interface PutProductsDescriptionsRequest extends AppendableGateway<PutPro
2467
2457
 
2468
2458
  export interface PutProductsGroupsMainProductRequest extends AppendableGateway<PutProductsGroupsMainProductRequest, ProductIdentResponse, RequestParams.PutProductsGroupsMainProductParams> {
2469
2459
  groups: (value: RequestParams.PutProductsGroupsMainProductParams["groups"]) => this;
2470
- /** */
2471
2460
  productIdent: (productIdent: RequestParams.PutProductsGroupsMainProductParams["groups"][number]["productIdent"]) => this
2472
2461
  productId: (value: number|string) => this;
2473
2462
  }
2474
2463
 
2475
2464
  export interface PutProductsGroupsOrderRequest extends AppendableGateway<PutProductsGroupsOrderRequest, PutProductsGroupsSettingsResponse, RequestParams.PutProductsGroupsOrderParams> {
2476
2465
  groups: (value: RequestParams.PutProductsGroupsOrderParams["groups"]) => this;
2477
- /** */
2478
2466
  productsInOrder: (productsInOrder: RequestParams.PutProductsGroupsOrderParams["groups"][number]["productsInOrder"]) => this
2479
2467
  /** Defines order of products within group by automatically setting proprities in order of appearance */
2480
2468
  productIdsInOrder: (productIds: number|string|number[]|string[]) => this;
@@ -2482,7 +2470,6 @@ export interface PutProductsGroupsOrderRequest extends AppendableGateway<PutProd
2482
2470
 
2483
2471
  export interface PutProductsGroupsSettingsRequest extends AppendableGateway<PutProductsGroupsSettingsRequest, PutProductsGroupsSettingsResponse, RequestParams.PutProductsGroupsSettingsParams> {
2484
2472
  groups: (value: RequestParams.PutProductsGroupsSettingsParams["groups"]) => this;
2485
- /** */
2486
2473
  productIdent: (productIdent: RequestParams.PutProductsGroupsSettingsParams["groups"][number]["productIdent"]) => this
2487
2474
  /** Display on the product list in the panel. */
2488
2475
  displayInPanel: (displayInPanel: 'firstAvailable'|'all') => this
@@ -2509,7 +2496,6 @@ export interface DeleteProductsImagesRequest extends AppendableGateway<DeletePro
2509
2496
  productId: (productId: number|string) => this
2510
2497
  /** Shop Id */
2511
2498
  shopId: (shopId: number|string) => this
2512
- /** */
2513
2499
  productImagesId: (productImagesId: number|string|number[]|string[]) => this
2514
2500
  }
2515
2501
 
@@ -2517,7 +2503,6 @@ export interface PutProductsImagesRequest extends AppendableGateway<PutProductsI
2517
2503
  productsImagesSettings: (value: RequestParams.PutProductsImagesParams["productsImagesSettings"]) => this;
2518
2504
  /** Information on product images */
2519
2505
  productsImages: (value: RequestParams.PutProductsImagesParams["productsImages"]) => this;
2520
- /** */
2521
2506
  productIdent: (productIdent: RequestParams.PutProductsImagesParams["productsImages"][number]["productIdent"]) => this
2522
2507
  /** Shop Id */
2523
2508
  shopId: (shopId: number|string) => this
@@ -2541,79 +2526,6 @@ export interface GetProductsMarketingAllFacebookCatalogIdsRequest extends Gatewa
2541
2526
  shopId: (value: number|string) => this;
2542
2527
  }
2543
2528
 
2544
- export interface GetProductsMarketingPromotionRequest extends Gateway<GetProductsMarketingPromotionResponse> {
2545
- /** Shop Id */
2546
- shopId: (value: number|string) => this;
2547
- /** Products list. */
2548
- products: (value: number|string|number[]|string[]) => this;
2549
- }
2550
-
2551
- export interface PostProductsMarketingPromotionRequest extends AppendableGateway<PostProductsMarketingPromotionRequest, PostProductsMarketingPromotionResponse, RequestParams.PostProductsMarketingPromotionParams> {
2552
- /** Promotion name */
2553
- promotionName: (value: string) => this;
2554
- /** List of stores IDs When mask is determined, this parameter is omitted. */
2555
- shopsIds: (value: number|string|number[]|string[]) => this;
2556
- /** Special zones */
2557
- marketingZones: (value: RequestParams.PostProductsMarketingPromotionParams["marketingZones"]) => this;
2558
- /** Promotional price settings */
2559
- newPriceSettings: (value: RequestParams.PostProductsMarketingPromotionParams["newPriceSettings"]) => this;
2560
- /** Promotion start date in Y-m-d H:i:s format */
2561
- startDate: (value: string) => this;
2562
- /** Promotion end date in Y-m-d H:i:s format */
2563
- endDate: (value: string) => this;
2564
- /** Change the status of hidden products to visible while starting the special offer */
2565
- changeProductsToVisibleWhileStarting: (value: 'y'|'n') => this;
2566
- /** After running out of stock, automatically remove from the promotion products added separately (does not apply to series, producers, categories and menu) */
2567
- removeProductsAfterStockLevelRunsDown: (value: 'y'|'n') => this;
2568
- /** After running out of own stock, automatically remove from the promotion products added separately (does not apply to series, producers, categories and menu) */
2569
- removeProductsAfterOwnStockLevelRunsDown: (value: 'y'|'n') => this;
2570
- /** Reduce based on price (net/gross) */
2571
- reduceBasingPrice: (value: 'net'|'gross') => this;
2572
- /** Price reduction calculation method */
2573
- calculationMethod: (value: 'sum'|'chooseAdvantageous') => this;
2574
- /** Elements to be affected by the promotion */
2575
- promotionElements: (value: RequestParams.PostProductsMarketingPromotionParams["promotionElements"]) => this;
2576
- /** */
2577
- elementType: (elementType: 'product'|'series'|'producer'|'category'|'menu') => this
2578
- /** Identifier of the element affected by the promotion (in the case of a menu in the format: storeId-menuId-itemId) */
2579
- elementId: (elementId: number|string) => this
2580
- }
2581
-
2582
- export interface PutProductsMarketingPromotionRequest extends AppendableGateway<PutProductsMarketingPromotionRequest, PutProductsMarketingPromotionResponse, RequestParams.PutProductsMarketingPromotionParams> {
2583
- /** Promotion ID */
2584
- promotionId: (value: number|string) => this;
2585
- /** Promotion name */
2586
- promotionName: (value: string) => this;
2587
- /** List of stores IDs When mask is determined, this parameter is omitted. */
2588
- shopsIds: (value: number|string|number[]|string[]) => this;
2589
- /** Special zones */
2590
- marketingZones: (value: RequestParams.PutProductsMarketingPromotionParams["marketingZones"]) => this;
2591
- /** Promotional price settings */
2592
- newPriceSettings: (value: RequestParams.PutProductsMarketingPromotionParams["newPriceSettings"]) => this;
2593
- /** Promotion start date in Y-m-d H:i:s format */
2594
- startDate: (value: string) => this;
2595
- /** Promotion end date in Y-m-d H:i:s format */
2596
- endDate: (value: string) => this;
2597
- /** Change the status of hidden products to visible while starting the special offer */
2598
- changeProductsToVisibleWhileStarting: (value: 'y'|'n') => this;
2599
- /** After running out of stock, automatically remove from the promotion products added separately (does not apply to series, producers, categories and menu) */
2600
- removeProductsAfterStockLevelRunsDown: (value: 'y'|'n') => this;
2601
- /** After running out of own stock, automatically remove from the promotion products added separately (does not apply to series, producers, categories and menu) */
2602
- removeProductsAfterOwnStockLevelRunsDown: (value: 'y'|'n') => this;
2603
- /** Reduce based on price (net/gross) */
2604
- reduceBasingPrice: (value: 'net'|'gross') => this;
2605
- /** Price reduction calculation method */
2606
- calculationMethod: (value: 'sum'|'chooseAdvantageous') => this;
2607
- /** Specifies whether to remove all existing promotion elements */
2608
- removeAllPromotionElements: (value: 'y'|'n') => this;
2609
- /** Elements to be affected by the promotion */
2610
- promotionElements: (value: RequestParams.PutProductsMarketingPromotionParams["promotionElements"]) => this;
2611
- /** */
2612
- elementType: (elementType: 'product'|'series'|'producer'|'category'|'menu') => this
2613
- /** Identifier of the element affected by the promotion (in the case of a menu in the format: storeId-menuId-itemId) */
2614
- elementId: (elementId: number|string) => this
2615
- }
2616
-
2617
2529
  export interface GetProductsMarketingZonesRequest extends Gateway<GetProductsMarketingZonesResponse> {
2618
2530
  identType: (value: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2619
2531
  /** Products list. */
@@ -2692,27 +2604,19 @@ export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOp
2692
2604
  export interface PostProductsOpinionsRequest extends AppendableGateway<PostProductsOpinionsRequest, PostProductsOpinionsResponse, RequestParams.PostProductsOpinionsParams> {
2693
2605
  /** List of reviews */
2694
2606
  opinions: (value: RequestParams.PostProductsOpinionsParams["opinions"]) => this;
2695
- /** */
2696
2607
  createDate: (createDate: string) => this
2697
- /** */
2698
2608
  confirmed: (confirmed: boolean) => this
2699
- /** */
2700
2609
  rating: (rating: string) => this
2701
- /** */
2702
2610
  content: (content: string) => this
2703
2611
  /** Customer language ID. */
2704
2612
  language: (language: string) => this
2705
- /** */
2706
2613
  picture: (picture: string) => this
2707
2614
  /** Shop Id */
2708
2615
  shopId: (shopId: number|string) => this
2709
- /** */
2710
2616
  host: (host: string) => this
2711
2617
  /** Customer data. */
2712
2618
  clients: (clients: RequestParams.PostProductsOpinionsParams["opinions"][number]["clients"]) => this
2713
- /** */
2714
2619
  scorePositive: (scorePositive: number|string) => this
2715
- /** */
2716
2620
  scoreNegative: (scoreNegative: number|string) => this
2717
2621
  /** Products list. */
2718
2622
  products: (products: RequestParams.PostProductsOpinionsParams["opinions"][number]["products"]) => this
@@ -2909,14 +2813,6 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2909
2813
  productPictures: (productPictures: string|string[]) => this
2910
2814
  /** List of photos descriptions */
2911
2815
  productDescriptionPictures: (productDescriptionPictures: string|string[]) => this
2912
- /** Reduced price */
2913
- productPromotion: (productPromotion: RequestParams.PostProductsParams["products"][number]["productPromotion"]) => this
2914
- /** Discount for shop. */
2915
- productDiscount: (productDiscount: RequestParams.PostProductsParams["products"][number]["productDiscount"]) => this
2916
- /** Distinguished product in store. */
2917
- productDistinguished: (productDistinguished: RequestParams.PostProductsParams["products"][number]["productDistinguished"]) => this
2918
- /** Special product in store. */
2919
- productSpecial: (productSpecial: RequestParams.PostProductsParams["products"][number]["productSpecial"]) => this
2920
2816
  /** Parameters (distinguished). */
2921
2817
  productParametersDistinction: (productParametersDistinction: RequestParams.PostProductsParams["products"][number]["productParametersDistinction"]) => this
2922
2818
  /** List of products recommended with this product */
@@ -2929,7 +2825,6 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2929
2825
  subscription: (subscription: RequestParams.PostProductsParams["products"][number]["subscription"]) => this
2930
2826
  /** Product name. */
2931
2827
  productNames: (productNames: RequestParams.PostProductsParams["products"][number]["productNames"]) => this
2932
- /** */
2933
2828
  productDescriptions: (productDescriptions: RequestParams.PostProductsParams["products"][number]["productDescriptions"]) => this
2934
2829
  /** Long product description */
2935
2830
  productLongDescriptions: (productLongDescriptions: RequestParams.PostProductsParams["products"][number]["productLongDescriptions"]) => this
@@ -3134,14 +3029,6 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3134
3029
  productPictures: (productPictures: RequestParams.PutProductsParams["products"][number]["productPictures"]) => this
3135
3030
  /** List of a product's photos with indication of a particular number of the photo. */
3136
3031
  productPicturesReplace: (productPicturesReplace: RequestParams.PutProductsParams["products"][number]["productPicturesReplace"]) => this
3137
- /** Reduced price */
3138
- productPromotion: (productPromotion: RequestParams.PutProductsParams["products"][number]["productPromotion"]) => this
3139
- /** Discount for shop. */
3140
- productDiscount: (productDiscount: RequestParams.PutProductsParams["products"][number]["productDiscount"]) => this
3141
- /** Distinguished product in store. */
3142
- productDistinguished: (productDistinguished: RequestParams.PutProductsParams["products"][number]["productDistinguished"]) => this
3143
- /** Special product in store. */
3144
- productSpecial: (productSpecial: RequestParams.PutProductsParams["products"][number]["productSpecial"]) => this
3145
3032
  /** Parameters (distinguished). */
3146
3033
  productParametersDistinction: (productParametersDistinction: RequestParams.PutProductsParams["products"][number]["productParametersDistinction"]) => this
3147
3034
  /** Configuration parameters */
@@ -3202,7 +3089,6 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3202
3089
  productDeliveryTime: (productDeliveryTime: RequestParams.PutProductsParams["products"][number]["productDeliveryTime"]) => this
3203
3090
  /** Parameters. */
3204
3091
  productParameters: (productParameters: RequestParams.PutProductsParams["products"][number]["productParameters"]) => this
3205
- /** */
3206
3092
  clearProductParameters: (clearProductParameters: boolean) => this
3207
3093
  /** Change parameter distinction. */
3208
3094
  changeParametersDistinction: (changeParametersDistinction: RequestParams.PutProductsParams["products"][number]["changeParametersDistinction"]) => this
@@ -3240,7 +3126,6 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3240
3126
  standardUnit: (standardUnit: RequestParams.PutProductsParams["products"][number]["standardUnit"]) => this
3241
3127
  /** Minimal number of products in an order */
3242
3128
  minQuantityPerOrder: (minQuantityPerOrder: RequestParams.PutProductsParams["products"][number]["minQuantityPerOrder"]) => this
3243
- /** */
3244
3129
  dynamicPricingEnabled: (dynamicPricingEnabled: string) => this
3245
3130
  /** The setting allows you to reset the inventory to zero */
3246
3131
  clearStockQuantities: (clearStockQuantities: RequestParams.PutProductsParams["products"][number]["clearStockQuantities"]) => this
@@ -3571,7 +3456,6 @@ export interface PutProductsSeriesRequest extends AppendableGateway<PutProductsS
3571
3456
  id: (id: number|string) => this
3572
3457
  /** Name in panel */
3573
3458
  nameInPanel: (nameInPanel: string) => this
3574
- /** */
3575
3459
  shopsConfigurations: (shopsConfigurations: RequestParams.PutProductsSeriesParams["series"][number]["shopsConfigurations"]) => this
3576
3460
  }
3577
3461
 
@@ -3636,11 +3520,9 @@ export interface GetProductsStocksRequest extends Gateway<GetProductsStocksRespo
3636
3520
  export interface PutProductsStocksRequest extends AppendableGateway<PutProductsStocksRequest, PutProductsStocksResponse, RequestParams.PutProductsStocksParams> {
3637
3521
  /** Products list. */
3638
3522
  products: (value: RequestParams.PutProductsStocksParams["products"]) => this;
3639
- /** */
3640
3523
  ident: (ident: RequestParams.PutProductsStocksParams["products"][number]["ident"]) => this
3641
3524
  /** List of sizes */
3642
3525
  sizes: (sizes: RequestParams.PutProductsStocksParams["products"][number]["sizes"]) => this
3643
- /** */
3644
3526
  settings: (settings: RequestParams.PutProductsStocksParams["products"][number]["settings"]) => this
3645
3527
  /** Error information. */
3646
3528
  error: (error: RequestParams.PutProductsStocksParams["products"][number]["error"]) => this
@@ -3661,7 +3543,6 @@ export interface PutProductsStrikethroughPricesRequest extends AppendableGateway
3661
3543
  ident: (ident: RequestParams.PutProductsStrikethroughPricesParams["products"][number]["ident"]) => this
3662
3544
  /** List of sizes */
3663
3545
  sizes: (sizes: RequestParams.PutProductsStrikethroughPricesParams["products"][number]["sizes"]) => this
3664
- /** */
3665
3546
  stp_settings: (stp_settings: RequestParams.PutProductsStrikethroughPricesParams["products"][number]["stp_settings"]) => this
3666
3547
  /** Strikethrough price settings for the page. */
3667
3548
  shops: (shops: RequestParams.PutProductsStrikethroughPricesParams["products"][number]["shops"]) => this
@@ -4034,6 +3915,21 @@ export interface PutRefundsUpdateRefundRequest extends Gateway {
4034
3915
  refundCurrency: (value: string) => this;
4035
3916
  }
4036
3917
 
3918
+ export interface GetRegulationsHistoryRequest extends Gateway {
3919
+ /** Type of history */
3920
+ type: (value: string) => this;
3921
+ /** Shop's ID */
3922
+ shopId: (value: number|string) => this;
3923
+ /** Country ISO code */
3924
+ country: (value: string) => this;
3925
+ /** Language ISO code */
3926
+ langId: (value: string) => this;
3927
+ /** Page with results number. Numeration starts from 0 */
3928
+ resultsPage: (value: number|string) => this;
3929
+ /** Number of results on page. Value from 1 to 100 */
3930
+ resultsLimit: (value: number|string) => this;
3931
+ }
3932
+
4037
3933
  export interface GetResponsibilityEntitiesRequest extends PagableGateway<GetResponsibilityEntitiesRequest, GetResponsibilityEntitiesResponse> {
4038
3934
  /** List of codes */
4039
3935
  code: (value: string|string[]) => this;
@@ -4156,15 +4052,11 @@ export interface PostReturnsRequest extends AppendableGateway<PostReturnsRequest
4156
4052
  include_shipping_cost: (value: string) => this;
4157
4053
  additional_payment_cost: (value: string) => this;
4158
4054
  emptyReturn: (value: 'n'|'y') => this;
4159
- /** */
4160
4055
  id: (id: number|string) => this
4161
- /** */
4162
4056
  size: (size: string) => this
4163
- /** */
4164
4057
  quantity: (quantity: number) => this
4165
4058
  /** Price. */
4166
4059
  price: (price: number) => this
4167
- /** */
4168
4060
  serialNumbers: (serialNumbers: string|string[]) => this
4169
4061
  /** Additional information. */
4170
4062
  productOrderAdditional: (productOrderAdditional: string) => this
@@ -4172,19 +4064,15 @@ export interface PostReturnsRequest extends AppendableGateway<PostReturnsRequest
4172
4064
 
4173
4065
  export interface PutReturnsRequest extends AppendableGateway<PutReturnsRequest, PutReturnsResponse, RequestParams.PutReturnsParams> {
4174
4066
  returns: (value: RequestParams.PutReturnsParams["returns"]) => this;
4175
- /** */
4176
4067
  id: (id: number|string) => this
4177
- /** */
4178
4068
  status: (status: number|string) => this
4179
4069
  /** Flag informing on order registration or completion in external program through API. Allowed values. "none" - order was not registered in external program, "registered" - order was registered in external program, "realized" - order was completed in external program, "registered_pos" - order was registered in external program, "realized_pos" - order was completed in external program. */
4180
4070
  apiFlag: (apiFlag: RequestParams.PutReturnsParams["returns"][number]["apiFlag"]) => this
4181
4071
  /** Products list. */
4182
4072
  products: (products: RequestParams.PutReturnsParams["returns"][number]["products"]) => this
4183
- /** */
4184
4073
  userNote: (userNote: string) => this
4185
4074
  /** Notes from customer. */
4186
4075
  clientNote: (clientNote: string) => this
4187
- /** */
4188
4076
  tryCorrectInvoice: (tryCorrectInvoice: boolean) => this
4189
4077
  }
4190
4078
 
@@ -4197,7 +4085,6 @@ export interface PutReturnsSerialNumberRequest extends AppendableGateway<PutRetu
4197
4085
  id: (id: number|string) => this
4198
4086
  /** Size ID. */
4199
4087
  size: (size: string) => this
4200
- /** */
4201
4088
  serialNumbers: (serialNumbers: string|string[]) => this
4202
4089
  }
4203
4090
 
@@ -4272,7 +4159,6 @@ export interface PutSizechartsRequest extends AppendableGateway<PutSizechartsReq
4272
4159
  nameInPanel: (nameInPanel: string) => this
4273
4160
  /** Display mode */
4274
4161
  displayMode: (displayMode: 'single'|'all') => this
4275
- /** */
4276
4162
  languagesData: (languagesData: RequestParams.PutSizechartsParams["sizeCharts"][number]["languagesData"]) => this
4277
4163
  }
4278
4164
 
@@ -4298,7 +4184,6 @@ export interface PutSizesRequest extends AppendableGateway<PutSizesRequest, PutS
4298
4184
  description: (description: string) => this
4299
4185
  /** Operation type: add, edit, del */
4300
4186
  operation: (operation: string) => this
4301
- /** */
4302
4187
  lang_data: (lang_data: RequestParams.PutSizesParams["sizes"][number]["lang_data"]) => this
4303
4188
  }
4304
4189
 
@@ -4317,7 +4202,6 @@ export interface GetSnippetsCampaignRequest extends PagableGateway<GetSnippetsCa
4317
4202
 
4318
4203
  export interface PostSnippetsCampaignRequest extends AppendableGateway<PostSnippetsCampaignRequest, CmsCampaignResponse, RequestParams.PostSnippetsCampaignParams> {
4319
4204
  campaigns: (value: RequestParams.PostSnippetsCampaignParams["campaigns"]) => this;
4320
- /** undefined */
4321
4205
  id: (id: number|string) => this
4322
4206
  /** Snippet campaign name */
4323
4207
  name: (name: string) => this
@@ -4329,7 +4213,6 @@ export interface PostSnippetsCampaignRequest extends AppendableGateway<PostSnipp
4329
4213
  active: (active: 'y'|'n') => this
4330
4214
  /** Snippet order. */
4331
4215
  order: (order: number|string) => this
4332
- /** undefined */
4333
4216
  configVariables: (configVariables: RequestParams.PostSnippetsCampaignParams["campaigns"][number]["configVariables"]) => this
4334
4217
  }
4335
4218
 
@@ -4347,7 +4230,6 @@ export interface PutSnippetsCampaignRequest extends AppendableGateway<PutSnippet
4347
4230
  active: (active: 'y'|'n') => this
4348
4231
  /** Snippet order. */
4349
4232
  order: (order: number|string) => this
4350
- /** undefined */
4351
4233
  configVariables: (configVariables: RequestParams.PutSnippetsCampaignParams["campaigns"][number]["configVariables"]) => this
4352
4234
  }
4353
4235
 
@@ -4367,7 +4249,6 @@ export interface GetSnippetsCookiesRequest extends PagableGateway<GetSnippetsCoo
4367
4249
 
4368
4250
  export interface PostSnippetsCookiesRequest extends AppendableGateway<PostSnippetsCookiesRequest, CmsResponse, RequestParams.PostSnippetsCookiesParams> {
4369
4251
  cookies: (value: RequestParams.PostSnippetsCookiesParams["cookies"]) => this;
4370
- /** undefined */
4371
4252
  id: (id: number|string) => this
4372
4253
  /** Id of the snippet code. */
4373
4254
  snippetId: (snippetId: number|string) => this
@@ -4389,7 +4270,6 @@ export interface PostSnippetsCookiesRequest extends AppendableGateway<PostSnippe
4389
4270
 
4390
4271
  export interface PutSnippetsCookiesRequest extends AppendableGateway<PutSnippetsCookiesRequest, CmsResponse, RequestParams.PutSnippetsCookiesParams> {
4391
4272
  cookies: (value: RequestParams.PutSnippetsCookiesParams["cookies"]) => this;
4392
- /** undefined */
4393
4273
  id: (id: number|string) => this
4394
4274
  /** Id of the snippet code. */
4395
4275
  snippetId: (snippetId: number|string) => this
@@ -4429,7 +4309,6 @@ export interface GetSnippetsRequest extends PagableGateway<GetSnippetsRequest, G
4429
4309
 
4430
4310
  export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsRequest, CmsResponse, RequestParams.PostSnippetsParams> {
4431
4311
  snippets: (value: RequestParams.PostSnippetsParams["snippets"]) => this;
4432
- /** undefined */
4433
4312
  id: (id: number|string) => this
4434
4313
  /** The snippet name. */
4435
4314
  name: (name: string) => this
@@ -4437,7 +4316,6 @@ export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsReque
4437
4316
  active: (active: 'y'|'n') => this
4438
4317
  /** Snippet campaign id */
4439
4318
  campaign: (campaign: number|string) => this
4440
- /** undefined */
4441
4319
  dateBegin: (dateBegin: RequestParams.PostSnippetsParams["snippets"][number]["dateBegin"]) => this
4442
4320
  /** Filter to control snippet activation. */
4443
4321
  dateEnd: (dateEnd: RequestParams.PostSnippetsParams["snippets"][number]["dateEnd"]) => this
@@ -4455,9 +4333,7 @@ export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsReque
4455
4333
  order: (order: number|string) => this
4456
4334
  /** Snippet content for each language. */
4457
4335
  body: (body: RequestParams.PostSnippetsParams["snippets"][number]["body"]) => this
4458
- /** undefined */
4459
4336
  display: (display: RequestParams.PostSnippetsParams["snippets"][number]["display"]) => this
4460
- /** undefined */
4461
4337
  pages: (pages: RequestParams.PostSnippetsParams["snippets"][number]["pages"]) => this
4462
4338
  /** Snippet entry source filter. */
4463
4339
  sources: (sources: RequestParams.PostSnippetsParams["snippets"][number]["sources"]) => this
@@ -4465,7 +4341,6 @@ export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsReque
4465
4341
 
4466
4342
  export interface PutSnippetsRequest extends AppendableGateway<PutSnippetsRequest, CmsResponse, RequestParams.PutSnippetsParams> {
4467
4343
  snippets: (value: RequestParams.PutSnippetsParams["snippets"]) => this;
4468
- /** undefined */
4469
4344
  id: (id: number|string) => this
4470
4345
  /** The snippet name. */
4471
4346
  name: (name: string) => this
@@ -4473,7 +4348,6 @@ export interface PutSnippetsRequest extends AppendableGateway<PutSnippetsRequest
4473
4348
  active: (active: 'y'|'n') => this
4474
4349
  /** Snippet campaign id */
4475
4350
  campaign: (campaign: number|string) => this
4476
- /** undefined */
4477
4351
  dateBegin: (dateBegin: RequestParams.PutSnippetsParams["snippets"][number]["dateBegin"]) => this
4478
4352
  /** Filter to control snippet activation. */
4479
4353
  dateEnd: (dateEnd: RequestParams.PutSnippetsParams["snippets"][number]["dateEnd"]) => this
@@ -4491,9 +4365,7 @@ export interface PutSnippetsRequest extends AppendableGateway<PutSnippetsRequest
4491
4365
  order: (order: number|string) => this
4492
4366
  /** Snippet content for each language. */
4493
4367
  body: (body: RequestParams.PutSnippetsParams["snippets"][number]["body"]) => this
4494
- /** undefined */
4495
4368
  display: (display: RequestParams.PutSnippetsParams["snippets"][number]["display"]) => this
4496
- /** undefined */
4497
4369
  pages: (pages: RequestParams.PutSnippetsParams["snippets"][number]["pages"]) => this
4498
4370
  /** Snippet entry source filter. */
4499
4371
  sources: (sources: RequestParams.PutSnippetsParams["snippets"][number]["sources"]) => this
@@ -4765,7 +4637,6 @@ export interface PostVouchersRequest extends AppendableGateway<PostVouchersReque
4765
4637
  balance: (balance: RequestParams.PostVouchersParams["vouchers"][number]["balance"]) => this
4766
4638
  /** List of shops the voucher is active in */
4767
4639
  shops: (shops: number|string|number[]|string[]) => this
4768
- /** */
4769
4640
  note: (note: string) => this
4770
4641
  }
4771
4642
 
@@ -4786,7 +4657,6 @@ export interface PutVouchersRequest extends AppendableGateway<PutVouchersRequest
4786
4657
  balance: (balance: RequestParams.PutVouchersParams["vouchers"][number]["balance"]) => this
4787
4658
  /** List of shops the voucher is active in */
4788
4659
  shops: (shops: number|string|number[]|string[]) => this
4789
- /** */
4790
4660
  note: (note: string) => this
4791
4661
  /** Status, possible values: - used - used, - unused - unused, */
4792
4662
  status: (status: 'used'|'unused') => this
@@ -4800,7 +4670,6 @@ export interface PutWarrantiesLanguageDataRequest extends AppendableGateway<PutW
4800
4670
  lang_data: (value: RequestParams.PutWarrantiesLanguageDataParams["lang_data"]) => this;
4801
4671
  /** Warranty ID (numeric or text based). */
4802
4672
  warranty_id: (warranty_id: number|string) => this
4803
- /** */
4804
4673
  lang: (lang: RequestParams.PutWarrantiesLanguageDataParams["lang_data"][number]["lang"]) => this
4805
4674
  }
4806
4675
 
@@ -4821,7 +4690,6 @@ export interface PostWarrantiesRequest extends AppendableGateway<PostWarrantiesR
4821
4690
  warranties: (value: RequestParams.PostWarrantiesParams["warranties"]) => this;
4822
4691
  /** Name. */
4823
4692
  name: (name: string) => this
4824
- /** */
4825
4693
  type: (type: 'seller'|'producer') => this
4826
4694
  /** Warranty time. Default value 12. */
4827
4695
  period: (period: number|string) => this
@@ -4837,7 +4705,6 @@ export interface PutWarrantiesRequest extends AppendableGateway<PutWarrantiesReq
4837
4705
  id: (id: number|string) => this
4838
4706
  /** Name. */
4839
4707
  name: (name: string) => this
4840
- /** */
4841
4708
  type: (type: 'seller'|'producer') => this
4842
4709
  /** Warranty time. Default value 12. */
4843
4710
  period: (period: number|string) => this
@@ -5105,6 +4972,77 @@ export interface PutWmsSuppliersRequest extends AppendableGateway<PutWmsSupplier
5105
4972
  workDays: (workDays: RequestParams.PutWmsSuppliersParams["suppliers"][number]["workDays"]) => this
5106
4973
  }
5107
4974
 
4975
+ export interface GetProductsMarketingPromotionRequest extends Gateway<GetProductsMarketingPromotionResponse> {
4976
+ /** Shop Id */
4977
+ shopId: (value: number|string) => this;
4978
+ /** Products list. */
4979
+ products: (value: number|string|number[]|string[]) => this;
4980
+ }
4981
+
4982
+ export interface PostProductsMarketingPromotionRequest extends AppendableGateway<PostProductsMarketingPromotionRequest, PostProductsMarketingPromotionResponse, RequestParams.PostProductsMarketingPromotionParams> {
4983
+ /** Promotion name */
4984
+ promotionName: (value: string) => this;
4985
+ /** List of stores IDs When mask is determined, this parameter is omitted. */
4986
+ shopsIds: (value: number|string|number[]|string[]) => this;
4987
+ /** Special zones */
4988
+ marketingZones: (value: RequestParams.PostProductsMarketingPromotionParams["marketingZones"]) => this;
4989
+ /** Promotional price settings */
4990
+ newPriceSettings: (value: RequestParams.PostProductsMarketingPromotionParams["newPriceSettings"]) => this;
4991
+ /** Promotion start date in Y-m-d H:i:s format */
4992
+ startDate: (value: string) => this;
4993
+ /** Promotion end date in Y-m-d H:i:s format */
4994
+ endDate: (value: string) => this;
4995
+ /** Change the status of hidden products to visible while starting the special offer */
4996
+ changeProductsToVisibleWhileStarting: (value: 'y'|'n') => this;
4997
+ /** After running out of stock, automatically remove from the promotion products added separately (does not apply to series, producers, categories and menu) */
4998
+ removeProductsAfterStockLevelRunsDown: (value: 'y'|'n') => this;
4999
+ /** After running out of own stock, automatically remove from the promotion products added separately (does not apply to series, producers, categories and menu) */
5000
+ removeProductsAfterOwnStockLevelRunsDown: (value: 'y'|'n') => this;
5001
+ /** Reduce based on price (net/gross) */
5002
+ reduceBasingPrice: (value: 'net'|'gross') => this;
5003
+ /** Price reduction calculation method */
5004
+ calculationMethod: (value: 'sum'|'chooseAdvantageous') => this;
5005
+ /** Elements to be affected by the promotion */
5006
+ promotionElements: (value: RequestParams.PostProductsMarketingPromotionParams["promotionElements"]) => this;
5007
+ elementType: (elementType: 'product'|'series'|'producer'|'category'|'menu') => this
5008
+ /** Identifier of the element affected by the promotion (in the case of a menu in the format: storeId-menuId-itemId) */
5009
+ elementId: (elementId: number|string) => this
5010
+ }
5011
+
5012
+ export interface PutProductsMarketingPromotionRequest extends AppendableGateway<PutProductsMarketingPromotionRequest, PutProductsMarketingPromotionResponse, RequestParams.PutProductsMarketingPromotionParams> {
5013
+ /** Promotion ID */
5014
+ promotionId: (value: number|string) => this;
5015
+ /** Promotion name */
5016
+ promotionName: (value: string) => this;
5017
+ /** List of stores IDs When mask is determined, this parameter is omitted. */
5018
+ shopsIds: (value: number|string|number[]|string[]) => this;
5019
+ /** Special zones */
5020
+ marketingZones: (value: RequestParams.PutProductsMarketingPromotionParams["marketingZones"]) => this;
5021
+ /** Promotional price settings */
5022
+ newPriceSettings: (value: RequestParams.PutProductsMarketingPromotionParams["newPriceSettings"]) => this;
5023
+ /** Promotion start date in Y-m-d H:i:s format */
5024
+ startDate: (value: string) => this;
5025
+ /** Promotion end date in Y-m-d H:i:s format */
5026
+ endDate: (value: string) => this;
5027
+ /** Change the status of hidden products to visible while starting the special offer */
5028
+ changeProductsToVisibleWhileStarting: (value: 'y'|'n') => this;
5029
+ /** After running out of stock, automatically remove from the promotion products added separately (does not apply to series, producers, categories and menu) */
5030
+ removeProductsAfterStockLevelRunsDown: (value: 'y'|'n') => this;
5031
+ /** After running out of own stock, automatically remove from the promotion products added separately (does not apply to series, producers, categories and menu) */
5032
+ removeProductsAfterOwnStockLevelRunsDown: (value: 'y'|'n') => this;
5033
+ /** Reduce based on price (net/gross) */
5034
+ reduceBasingPrice: (value: 'net'|'gross') => this;
5035
+ /** Price reduction calculation method */
5036
+ calculationMethod: (value: 'sum'|'chooseAdvantageous') => this;
5037
+ /** Specifies whether to remove all existing promotion elements */
5038
+ removeAllPromotionElements: (value: 'y'|'n') => this;
5039
+ /** Elements to be affected by the promotion */
5040
+ promotionElements: (value: RequestParams.PutProductsMarketingPromotionParams["promotionElements"]) => this;
5041
+ elementType: (elementType: 'product'|'series'|'producer'|'category'|'menu') => this
5042
+ /** Identifier of the element affected by the promotion (in the case of a menu in the format: storeId-menuId-itemId) */
5043
+ elementId: (elementId: number|string) => this
5044
+ }
5045
+
5108
5046
  export interface Gateways {
5109
5047
  getClientsBalance: GetClientsBalanceRequest,
5110
5048
  postClientsBalance: PostClientsBalanceRequest,
@@ -5254,6 +5192,7 @@ export interface Gateways {
5254
5192
  getPaymentsProfiles: GetPaymentsProfilesRequest,
5255
5193
  postPaymentsRepayment: PostPaymentsRepaymentRequest,
5256
5194
  getProductsSKUbyBarcode: GetProductsSKUbyBarcodeRequest,
5195
+ getProductsAttachmentsGetContent: GetProductsAttachmentsGetContentRequest,
5257
5196
  putProductsAttachments: PutProductsAttachmentsRequest,
5258
5197
  getProductsAuctions: GetProductsAuctionsRequest,
5259
5198
  deleteProductsBrands: DeleteProductsBrandsRequest,
@@ -5286,9 +5225,6 @@ export interface Gateways {
5286
5225
  deleteProductsImages: DeleteProductsImagesRequest,
5287
5226
  putProductsImages: PutProductsImagesRequest,
5288
5227
  getProductsMarketingAllFacebookCatalogIds: GetProductsMarketingAllFacebookCatalogIdsRequest,
5289
- getProductsMarketingPromotion: GetProductsMarketingPromotionRequest,
5290
- postProductsMarketingPromotion: PostProductsMarketingPromotionRequest,
5291
- putProductsMarketingPromotion: PutProductsMarketingPromotionRequest,
5292
5228
  getProductsMarketingZones: GetProductsMarketingZonesRequest,
5293
5229
  putProductsMarketingZones: PutProductsMarketingZonesRequest,
5294
5230
  getProductsOmnibusPrices: GetProductsOmnibusPricesRequest,
@@ -5357,6 +5293,7 @@ export interface Gateways {
5357
5293
  getRefundsGetRefundStatus: GetRefundsGetRefundStatusRequest,
5358
5294
  getRefundsRetrieveRefundsList: GetRefundsRetrieveRefundsListRequest,
5359
5295
  putRefundsUpdateRefund: PutRefundsUpdateRefundRequest,
5296
+ getRegulationsHistory: GetRegulationsHistoryRequest,
5360
5297
  getResponsibilityEntities: GetResponsibilityEntitiesRequest,
5361
5298
  postResponsibilityEntities: PostResponsibilityEntitiesRequest,
5362
5299
  putResponsibilityEntities: PutResponsibilityEntitiesRequest,
@@ -5441,38 +5378,44 @@ export interface Gateways {
5441
5378
  deleteWmsSuppliers: DeleteWmsSuppliersRequest,
5442
5379
  getWmsSuppliers: GetWmsSuppliersRequest,
5443
5380
  putWmsSuppliers: PutWmsSuppliersRequest,
5444
- /** @deprecated */
5445
- listProducts: SearchProductsRequest
5446
- /** @deprecated */
5447
- listOrders: SearchOrdersRequest
5448
- /** @deprecated */
5449
- listOrdersUnfinished: SearchOrdersUnfinishedRequest
5450
- /** @deprecated */
5451
- getClientsGiftcards: SearchClientsGiftcardsRequest
5452
- /** @deprecated */
5453
- getClientsCrm: SearchClientsCrmRequest
5454
- /** @deprecated */
5455
- getClientsNewsletterEmailShops: SearchClientsNewsletterEmailRequest
5456
- /** @deprecated */
5457
- getClientsNewsletterEmailSMS: SearchClientsNewsletterSmsRequest
5458
- /** @deprecated */
5459
- getOrdersOpinions: SearchOrdersOpinionsRequest
5460
- /** @deprecated */
5461
- getPackages: SearchPackagesRequest
5462
- /** @deprecated */
5463
- getProductsCategoriesIdosell: SearchProductsCategoriesIdosellRequest
5464
- /** @deprecated */
5465
- getProductsDeliveryTime: SearchProductsDeliveryTimeRequest
5466
- /** @deprecated */
5467
- getProductsProductsProductsToFacebookCatalog: GetProductsToFacebookCatalogRequest
5468
- /** @deprecated */
5469
- postProductsProductsToPromotion: PostProductsToPromotionRequest
5470
- /** @deprecated */
5471
- postProductsProductsToFacebookCatalog: PostProductsToFacebookCatalogRequest
5472
- /** @deprecated */
5473
- deleteProductsProductsToFacebookCatalog: DeleteProductsToFacebookCatalogRequest
5474
- /** @deprecated */
5475
- deleteProductsProductsToPromotion: DeleteProductsToPromotionRequest
5381
+ /** @deprecated This endpoint is enforced at v7 and is not available in v8 or later. */
5382
+ getProductsMarketingPromotion: GetProductsMarketingPromotionRequest,
5383
+ /** @deprecated This endpoint is enforced at v7 and is not available in v8 or later. */
5384
+ postProductsMarketingPromotion: PostProductsMarketingPromotionRequest,
5385
+ /** @deprecated This endpoint is enforced at v7 and is not available in v8 or later. */
5386
+ putProductsMarketingPromotion: PutProductsMarketingPromotionRequest,
5387
+ /** @deprecated Alias - use searchProducts instead */
5388
+ listProducts: SearchProductsRequest,
5389
+ /** @deprecated Alias - use searchOrders instead */
5390
+ listOrders: SearchOrdersRequest,
5391
+ /** @deprecated Alias - use searchOrdersUnfinished instead */
5392
+ listOrdersUnfinished: SearchOrdersUnfinishedRequest,
5393
+ /** @deprecated Alias - use searchClientsGiftcards instead */
5394
+ getClientsGiftcards: SearchClientsGiftcardsRequest,
5395
+ /** @deprecated Alias - use searchClientsCrm instead */
5396
+ getClientsCrm: SearchClientsCrmRequest,
5397
+ /** @deprecated Alias - use searchClientsNewsletterEmail instead */
5398
+ getClientsNewsletterEmailShops: SearchClientsNewsletterEmailRequest,
5399
+ /** @deprecated Alias - use searchClientsNewsletterSms instead */
5400
+ getClientsNewsletterEmailSMS: SearchClientsNewsletterSmsRequest,
5401
+ /** @deprecated Alias - use searchOrdersOpinions instead */
5402
+ getOrdersOpinions: SearchOrdersOpinionsRequest,
5403
+ /** @deprecated Alias - use searchPackages instead */
5404
+ getPackages: SearchPackagesRequest,
5405
+ /** @deprecated Alias - use searchProductsCategoriesIdosell instead */
5406
+ getProductsCategoriesIdosell: SearchProductsCategoriesIdosellRequest,
5407
+ /** @deprecated Alias - use searchProductsDeliveryTime instead */
5408
+ getProductsDeliveryTime: SearchProductsDeliveryTimeRequest,
5409
+ /** @deprecated Alias - use getProductsToFacebookCatalog instead */
5410
+ getProductsProductsProductsToFacebookCatalog: GetProductsToFacebookCatalogRequest,
5411
+ /** @deprecated Alias - use postProductsToPromotion instead */
5412
+ postProductsProductsToPromotion: PostProductsToPromotionRequest,
5413
+ /** @deprecated Alias - use postProductsToFacebookCatalog instead */
5414
+ postProductsProductsToFacebookCatalog: PostProductsToFacebookCatalogRequest,
5415
+ /** @deprecated Alias - use deleteProductsToFacebookCatalog instead */
5416
+ deleteProductsProductsToFacebookCatalog: DeleteProductsToFacebookCatalogRequest,
5417
+ /** @deprecated Alias - use deleteProductsToPromotion instead */
5418
+ deleteProductsProductsToPromotion: DeleteProductsToPromotionRequest,
5476
5419
  }
5477
5420
 
5478
5421
  declare const defaultExport: (url: string, apiKey: string, version?: number | string) => Gateways;