idosell 0.4.1 → 0.4.3

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
  import type { PagableGateway, AppendableGateway, Gateway, DateLike, JSObject } from "./app.d.ts"
2
- import type { GetClientsResponse, SearchClientsCrmResponse, GetClientsDeliveryAddressResponse, SearchClientsGiftcardsResponse, SearchClientsNewsletterEmailResponse, SearchClientsNewsletterSmsResponse, GetClientsPayerAddressResponse, GetConfigVariablesResponse, GetCouriersAssignedToShippingProfilesResponse, GetCouriersPickupPointsResponse, PostCouriersPickupPointsResponse, PutCouriersPickupPointsResponse, GetCpaResponse, GetEntriesResponse, GetEntriesPagesToDisplayResponse, GetMenuResponse, GetOrdersAnalyticsResponse, GetOrdersAuctionDetailsResponse, PostOrdersDocumentsCreateResponse, GetOrdersDocumentsResponse, GetOrdersHistoryResponse, SearchOrdersOpinionsResponse, SearchOrdersResponse, PostOrdersResponse, PutOrdersResponse, GetOrdersPackagesResponse, GetOrdersProfitabilityResponse, GetOrdersStatusesResponse, GetPackagesLabelsResponse, PostPackagesLabelsResponse, SearchPackagesResponse, GetPaymentsResponse, GetProductsSKUbyBarcodeResponse, GetProductsAuctionsResponse, GetProductsBrandsResponse, GetProductsCategoriesResponse, SearchProductsCategoriesIdosellResponse, GetProductsCodeExistenceResponse, SearchProductsDeliveryTimeResponse, GetProductsDescriptionsResponse, GetProductsIdBySizecodeResponse, GetProductsOmnibusPricesResponse, GetProductsOpinionsResponse, SearchProductsParametersResponse, SearchProductsResponse, PostProductsResponse, PutProductsResponse, GetProductsReservationsResponse, GetProductsSeriesResponse, GetProductsSizesResponse, GetProductsStocksResponse, GetProductsStrikethroughPricesResponse, GetResponsibilityEntitiesResponse, GetReturnsResponse, GetRmaResponse, GetShopsCurrenciesResponse, GetShopsLanguagesResponse, GetSizechartsResponse, GetSizesResponse, GetSnippetsCampaignResponse, GetSnippetsCookiesResponse, GetSnippetsResponse, GetSystemConfigResponse, GetSystemCurrenciesResponse, GetSystemProcessesAutomationResponse, GetSystemShopsDataResponse, GetSystemUnitsResponse, GetSystemUsersResponse, GetVouchersTypesResponse, GetVouchersResponse, GetWarrantiesResponse, GetWmsLocationsResponse, GetWmsStocksdocumentsDocumentsResponse, GetWmsStocksdocumentsProductsResponse, GetWmsSuppliersResponse } from "./responses.d.ts"
3
- import type RequestParams from "./reqparams.d.ts";
2
+ import type { GetClientsResponse, PostClientsResponse, SearchClientsCrmResponse, GetClientsDeliveryAddressResponse, PutClientsDeliveryAddressResponse, SearchClientsGiftcardsResponse, SearchClientsNewsletterEmailResponse, SearchClientsNewsletterSmsResponse, GetClientsPayerAddressResponse, GetConfigVariablesResponse, GetCouriersAssignedToShippingProfilesResponse, GetCouriersPickupPointsResponse, PostCouriersPickupPointsResponse, PutCouriersPickupPointsResponse, GetCpaResponse, GetEntriesResponse, GetEntriesPagesToDisplayResponse, GetMenuResponse, PostMenuResponse, PutMenuResponse, GetOrdersAnalyticsResponse, GetOrdersAuctionDetailsResponse, PostOrdersDocumentsCreateResponse, GetOrdersDocumentsResponse, GetOrdersHistoryResponse, SearchOrdersOpinionsResponse, SearchOrdersResponse, PostOrdersResponse, PutOrdersResponse, GetOrdersPackagesResponse, GetOrdersProfitabilityResponse, GetOrdersStatusesResponse, GetPackagesLabelsResponse, PostPackagesLabelsResponse, SearchPackagesResponse, GetPaymentsResponse, PostPaymentsResponse, PostPaymentsRepaymentResponse, GetProductsSKUbyBarcodeResponse, PutProductsAttachmentsResponse, GetProductsAuctionsResponse, GetProductsBrandsResponse, GetProductsCategoriesResponse, PutProductsCategoriesResponse, SearchProductsCategoriesIdosellResponse, GetProductsCodeExistenceResponse, SearchProductsDeliveryTimeResponse, GetProductsDescriptionsResponse, GetProductsIdBySizecodeResponse, GetProductsOmnibusPricesResponse, GetProductsOpinionsResponse, SearchProductsParametersResponse, SearchProductsResponse, PostProductsResponse, PutProductsResponse, GetProductsReservationsResponse, GetProductsSeriesResponse, GetProductsSizesResponse, GetProductsStocksResponse, GetProductsStrikethroughPricesResponse, GetResponsibilityEntitiesResponse, PostResponsibilityEntitiesResponse, GetReturnsResponse, PostReturnsResponse, PutReturnsResponse, GetRmaResponse, PutRmaResponse, GetShopsCurrenciesResponse, GetShopsLanguagesResponse, GetSizechartsResponse, GetSizesResponse, GetSnippetsCampaignResponse, GetSnippetsCookiesResponse, GetSnippetsResponse, GetSystemConfigResponse, GetSystemCurrenciesResponse, GetSystemProcessesAutomationResponse, GetSystemShopsDataResponse, GetSystemUnitsResponse, GetSystemUsersResponse, GetVouchersTypesResponse, GetVouchersResponse, GetWarrantiesResponse, GetWmsLocationsResponse, GetWmsStocksdocumentsDocumentsResponse, PostWmsStocksdocumentsDocumentsResponse, GetWmsStocksdocumentsProductsResponse, PostWmsStocksdocumentsProductsResponse, PutWmsStocksdocumentsProductsResponse, GetWmsSuppliersResponse } from "./responses.d.ts"
3
+ import type * as RequestParams from "./reqparams.d.ts";
4
4
  import * as ENUMS from "./enums";
5
5
 
6
6
  export interface GetClientsBalanceRequest extends PagableGateway<GetClientsBalanceRequest> {
@@ -28,7 +28,7 @@ export interface PostClientsBalanceRequest extends Gateway {
28
28
  /** Operation: - add, - remove. */
29
29
  operation: (value: string) => this;
30
30
  /** Value to add or remove from balance. */
31
- balance: (value: Number) => this;
31
+ balance: (value: number) => this;
32
32
  /** Currency of operation. */
33
33
  currency: (value: string) => this;
34
34
  /** Note. */
@@ -41,7 +41,7 @@ export interface PostClientsBalanceRequest extends Gateway {
41
41
  remove: (balance: number, currency: string) => this;
42
42
  }
43
43
 
44
- export interface GetClientsRequest extends PagableGateway<GetClientsRequest,GetClientsResponse> {
44
+ export interface GetClientsRequest extends PagableGateway<GetClientsRequest, GetClientsResponse> {
45
45
  /** Customer numbers. */
46
46
  clientsIds: (value: number|string|number[]|string[]) => this;
47
47
  /** External system codes list */
@@ -72,9 +72,9 @@ export interface GetClientsRequest extends PagableGateway<GetClientsRequest,GetC
72
72
  lastModified: (dateFrom: DateLike, dateTo: DateLike) => this;
73
73
  }
74
74
 
75
- export interface PostClientsRequest extends AppendableGateway<PostClientsRequest, JSObject> {
75
+ export interface PostClientsRequest extends AppendableGateway<PostClientsRequest, PostClientsResponse, RequestParams.PostClientsParams> {
76
76
  /** Customer data. */
77
- clients: (value: Array<JSObject>) => this;
77
+ clients: (value: RequestParams.PostClientsParams["clients"]) => this;
78
78
  /** Customer's login. */
79
79
  login: (login: string) => this
80
80
  /** External system code. */
@@ -132,14 +132,14 @@ export interface PostClientsRequest extends AppendableGateway<PostClientsRequest
132
132
  /** Field used for identifying request-response pairs for the endpoint. */
133
133
  request_reference: (request_reference: string) => this
134
134
  /** List of shops where a customer agreed or didn't agree to receive email newsletter. */
135
- newsletter_email_approvals: (newsletter_email_approvals: Array<JSObject>) => this
135
+ newsletter_email_approvals: (newsletter_email_approvals: RequestParams.PostClientsParams["clients"][number]["newsletter_email_approvals"]) => this
136
136
  /** List of shops where a customer agreed or didn't agree to receive sms newsletter. */
137
- newsletter_sms_approvals: (newsletter_sms_approvals: Array<JSObject>) => this
137
+ newsletter_sms_approvals: (newsletter_sms_approvals: RequestParams.PostClientsParams["clients"][number]["newsletter_sms_approvals"]) => this
138
138
  /** Block assigning of discount groups automatically based on order history */
139
139
  block_group_auto_assignment: (block_group_auto_assignment: boolean) => this
140
140
  }
141
141
 
142
- export interface PutClientsRequest extends AppendableGateway<PutClientsRequest, JSObject> {
142
+ export interface PutClientsRequest extends AppendableGateway<PutClientsRequest> {
143
143
  /** Customer data. */
144
144
  clients: (value: Array<JSObject>) => this;
145
145
  /** Customer's login. */
@@ -214,7 +214,7 @@ export interface PutClientsRequest extends AppendableGateway<PutClientsRequest,
214
214
  clientNote: (clientNote: string) => this
215
215
  }
216
216
 
217
- export interface SearchClientsCrmRequest extends PagableGateway<SearchClientsCrmRequest,SearchClientsCrmResponse> {
217
+ export interface SearchClientsCrmRequest extends PagableGateway<SearchClientsCrmRequest, SearchClientsCrmResponse, RequestParams.SearchClientsCrmParams> {
218
218
  /** Customer's login. */
219
219
  clientLogin: (value: string) => this;
220
220
  /** Determines, whether client is a wholesaler. */
@@ -228,21 +228,21 @@ export interface SearchClientsCrmRequest extends PagableGateway<SearchClientsCrm
228
228
  /** Customer group number */
229
229
  clientDiscountGroupNumber: (value: number|string) => this;
230
230
  /** Date range of customer registrations */
231
- clientRegistrationDate: (value: JSObject) => this;
231
+ clientRegistrationDate: (value: RequestParams.SearchClientsCrmParams["clientRegistrationDate"]) => this;
232
232
  /** Date of last customer login (YYYY-MM-DD) */
233
- clientLastLoginDate: (value: JSObject) => this;
233
+ clientLastLoginDate: (value: RequestParams.SearchClientsCrmParams["clientLastLoginDate"]) => this;
234
234
  /** Customer type, possible values: - person - if client sex is not determined, - person_male - when client is a male, - person_female - when a customer is a woman, - firm - when client is company. */
235
235
  clientType: (value: 'person'|'person_male'|'person_female'|'firm') => this;
236
236
  /** Information about the loyalty program possible values: - yes_voucher - when customers are in a loyalty program and have only used vouchers, - yes_voucher_cash - when customers are in a loyalty program and have only used vouchers or cash deposits, - yes_clients, - yes_orders - when customers are in the loyalty program and have made at least one order, - no - when customers are in the loyalty program, - banned - when customers are blocked. */
237
- clientAffiliateProgram: (value: Array<JSObject>) => this;
237
+ clientAffiliateProgram: (value: RequestParams.SearchClientsCrmParams["clientAffiliateProgram"]) => this;
238
238
  /** Permission to E-mail Newsletter. */
239
239
  newsletterEmailApproval: (value: string) => this;
240
240
  /** Permission to SMS Newsletter. */
241
241
  newsletterSmsApproval: (value: string) => this;
242
242
  /** Shops */
243
- searchByShops: (value: JSObject) => this;
243
+ searchByShops: (value: RequestParams.SearchClientsCrmParams["searchByShops"]) => this;
244
244
  /** Loyalty cards: */
245
- clientLoyaltyCard: (value: JSObject) => this;
245
+ clientLoyaltyCard: (value: RequestParams.SearchClientsCrmParams["clientLoyaltyCard"]) => this;
246
246
  /** External system code. */
247
247
  clientCodeExternal: (value: string) => this;
248
248
  /** External system codes list. */
@@ -258,13 +258,13 @@ export interface SearchClientsCrmRequest extends PagableGateway<SearchClientsCrm
258
258
  /** E-mail address. */
259
259
  clientEmail: (value: string) => this;
260
260
  /** List of shops where a customer agreed or didn't agree to receive email newsletter. */
261
- newsletterEmailApprovalsData: (value: Array<JSObject>) => this;
261
+ newsletterEmailApprovalsData: (value: RequestParams.SearchClientsCrmParams["newsletterEmailApprovalsData"]) => this;
262
262
  /** List of shops where a customer agreed or didn't agree to receive sms newsletter. */
263
- newsletterSmsApprovalsData: (value: Array<JSObject>) => this;
263
+ newsletterSmsApprovalsData: (value: RequestParams.SearchClientsCrmParams["newsletterSmsApprovalsData"]) => this;
264
264
  /** Customer loyalty card number, omitted when has_loyalty_card = no. */
265
265
  clientLoyaltyCardNumber: (value: string) => this;
266
266
  /** Orders. */
267
- orders: (value: JSObject) => this;
267
+ orders: (value: RequestParams.SearchClientsCrmParams["orders"]) => this;
268
268
  /** Elements to be returned by the endpoint. By default all elements are returned */
269
269
  returnElements: (value: string|string[]) => this;
270
270
  /** Page with results number. Numeration starts from 0 */
@@ -272,7 +272,7 @@ export interface SearchClientsCrmRequest extends PagableGateway<SearchClientsCrm
272
272
  /** Number of results on page. Value from 1 to 100 */
273
273
  resultsLimit: (value: number|string) => this;
274
274
  /** Determines, if data - that will be returned - will be exactly as entered values, or values should be fragment of customer data. */
275
- settingsExactSearch: (value: Boolean) => this;
275
+ settingsExactSearch: (value: boolean) => this;
276
276
  /** Define range of dates */
277
277
  registered: (dateFrom: DateLike, dateTo: DateLike) => this;
278
278
  /** Define range of dates */
@@ -281,7 +281,7 @@ export interface SearchClientsCrmRequest extends PagableGateway<SearchClientsCrm
281
281
  ordered: (dateFrom: DateLike, dateTo: DateLike) => this;
282
282
  }
283
283
 
284
- export interface DeleteClientsDeliveryAddressRequest extends AppendableGateway<DeleteClientsDeliveryAddressRequest, JSObject> {
284
+ export interface DeleteClientsDeliveryAddressRequest extends AppendableGateway<DeleteClientsDeliveryAddressRequest> {
285
285
  /** Customer data. */
286
286
  clients: (value: Array<JSObject>) => this;
287
287
  /** Customer's login. */
@@ -301,7 +301,7 @@ export interface GetClientsDeliveryAddressRequest extends Gateway<GetClientsDeli
301
301
  clientLogins: (value: string|string[]) => this;
302
302
  }
303
303
 
304
- export interface PostClientsDeliveryAddressRequest extends AppendableGateway<PostClientsDeliveryAddressRequest, JSObject> {
304
+ export interface PostClientsDeliveryAddressRequest extends AppendableGateway<PostClientsDeliveryAddressRequest> {
305
305
  /** Customer data. */
306
306
  clients: (value: Array<JSObject>) => this;
307
307
  /** Customer's login. */
@@ -334,9 +334,9 @@ export interface PostClientsDeliveryAddressRequest extends AppendableGateway<Pos
334
334
  clientDeliveryAddressCountry: (clientDeliveryAddressCountry: string) => this
335
335
  }
336
336
 
337
- export interface PutClientsDeliveryAddressRequest extends AppendableGateway<PutClientsDeliveryAddressRequest, JSObject> {
337
+ export interface PutClientsDeliveryAddressRequest extends AppendableGateway<PutClientsDeliveryAddressRequest, PutClientsDeliveryAddressResponse, RequestParams.PutClientsDeliveryAddressParams> {
338
338
  /** Customer data. */
339
- clients: (value: Array<JSObject>) => this;
339
+ clients: (value: RequestParams.PutClientsDeliveryAddressParams["clients"]) => this;
340
340
  /** Customer's login. */
341
341
  clientLogin: (clientLogin: string) => this
342
342
  /** External system code. */
@@ -377,7 +377,7 @@ export interface PutClientsExternalCodeRequest extends Gateway {
377
377
  code_extern: (value: string) => this;
378
378
  }
379
379
 
380
- export interface PutClientsGiftcardsBlockRequest extends AppendableGateway<PutClientsGiftcardsBlockRequest, JSObject> {
380
+ export interface PutClientsGiftcardsBlockRequest extends AppendableGateway<PutClientsGiftcardsBlockRequest> {
381
381
  /** List of gift cards */
382
382
  giftCards: (value: Array<JSObject>) => this;
383
383
  /** Card ID */
@@ -386,7 +386,7 @@ export interface PutClientsGiftcardsBlockRequest extends AppendableGateway<PutCl
386
386
  number: (number: string) => this
387
387
  }
388
388
 
389
- export interface DeleteClientsGiftcardsRequest extends AppendableGateway<DeleteClientsGiftcardsRequest, JSObject> {
389
+ export interface DeleteClientsGiftcardsRequest extends AppendableGateway<DeleteClientsGiftcardsRequest> {
390
390
  /** List of gift cards */
391
391
  giftCards: (value: Array<JSObject>) => this;
392
392
  /** Card ID */
@@ -395,7 +395,7 @@ export interface DeleteClientsGiftcardsRequest extends AppendableGateway<DeleteC
395
395
  number: (number: string) => this
396
396
  }
397
397
 
398
- export interface PostClientsGiftcardsRequest extends AppendableGateway<PostClientsGiftcardsRequest, JSObject> {
398
+ export interface PostClientsGiftcardsRequest extends AppendableGateway<PostClientsGiftcardsRequest> {
399
399
  /** List of cards to add */
400
400
  giftCards: (value: Array<JSObject>) => this;
401
401
  /** Gift card type id */
@@ -416,7 +416,7 @@ export interface PostClientsGiftcardsRequest extends AppendableGateway<PostClien
416
416
  note: (note: string) => this
417
417
  }
418
418
 
419
- export interface PutClientsGiftcardsRequest extends AppendableGateway<PutClientsGiftcardsRequest, JSObject> {
419
+ export interface PutClientsGiftcardsRequest extends AppendableGateway<PutClientsGiftcardsRequest> {
420
420
  /** List of cards to edit */
421
421
  giftCards: (value: Array<JSObject>) => this;
422
422
  /** Card ID */
@@ -445,11 +445,11 @@ export interface PutClientsGiftcardsRequest extends AppendableGateway<PutClients
445
445
  set: (amount: number, currency: string) => this;
446
446
  }
447
447
 
448
- export interface SearchClientsGiftcardsRequest extends Gateway<SearchClientsGiftcardsResponse> {
448
+ export interface SearchClientsGiftcardsRequest extends Gateway<SearchClientsGiftcardsResponse, RequestParams.SearchClientsGiftcardsParams> {
449
449
  /** List of gift cards */
450
- giftCards: (value: Array<JSObject>) => this;
450
+ giftCards: (value: RequestParams.SearchClientsGiftcardsParams["giftCards"]) => this;
451
451
  /** element is an element array of type searchGiftCards */
452
- searchGiftCards: (value: JSObject) => this;
452
+ searchGiftCards: (value: RequestParams.SearchClientsGiftcardsParams["searchGiftCards"]) => this;
453
453
  /** Define giftCards values by passing them as an array */
454
454
  ids: (values: number|string|number[]|string[]) => this;
455
455
  /** Define giftCards values by passing them as an array */
@@ -465,7 +465,7 @@ export interface GetClientsGiftcardsTypesRequest extends PagableGateway<GetClien
465
465
  resultsLimit: (value: number|string) => this;
466
466
  }
467
467
 
468
- export interface PutClientsGiftcardsUnblockRequest extends AppendableGateway<PutClientsGiftcardsUnblockRequest, JSObject> {
468
+ export interface PutClientsGiftcardsUnblockRequest extends AppendableGateway<PutClientsGiftcardsUnblockRequest> {
469
469
  /** List of gift cards */
470
470
  giftCards: (value: Array<JSObject>) => this;
471
471
  /** Card ID */
@@ -481,7 +481,7 @@ export interface GetClientsMembershipCardsRequest extends Gateway {
481
481
  login: (value: string) => this;
482
482
  }
483
483
 
484
- export interface PutClientsMembershipCardsRequest extends AppendableGateway<PutClientsMembershipCardsRequest, JSObject> {
484
+ export interface PutClientsMembershipCardsRequest extends AppendableGateway<PutClientsMembershipCardsRequest> {
485
485
  /** Customer ID. */
486
486
  id: (value: number|string) => this;
487
487
  /** Customer's login. */
@@ -505,11 +505,11 @@ export interface PutClientsMembershipCardsRequest extends AppendableGateway<PutC
505
505
  errors: (errors: JSObject) => this
506
506
  }
507
507
 
508
- export interface SearchClientsNewsletterEmailRequest extends PagableGateway<SearchClientsNewsletterEmailRequest,SearchClientsNewsletterEmailResponse> {
509
- shops: (value: Array<JSObject>) => this;
508
+ export interface SearchClientsNewsletterEmailRequest extends PagableGateway<SearchClientsNewsletterEmailRequest, SearchClientsNewsletterEmailResponse, RequestParams.SearchClientsNewsletterEmailParams> {
509
+ shops: (value: RequestParams.SearchClientsNewsletterEmailParams["shops"]) => this;
510
510
  /** Customer language ID. */
511
511
  language: (value: string) => this;
512
- date: (value: JSObject) => this;
512
+ date: (value: RequestParams.SearchClientsNewsletterEmailParams["date"]) => this;
513
513
  /** Elements to be returned by the endpoint. By default all elements are returned */
514
514
  return_elements: (value: string|string[]) => this;
515
515
  /** Results page number. Numbering begins at 0. Default value: 0. */
@@ -520,11 +520,11 @@ export interface SearchClientsNewsletterEmailRequest extends PagableGateway<Sear
520
520
  dates: (dateFrom: DateLike, dateTo: DateLike) => this;
521
521
  }
522
522
 
523
- export interface SearchClientsNewsletterSmsRequest extends PagableGateway<SearchClientsNewsletterSmsRequest,SearchClientsNewsletterSmsResponse> {
524
- shops: (value: Array<JSObject>) => this;
523
+ export interface SearchClientsNewsletterSmsRequest extends PagableGateway<SearchClientsNewsletterSmsRequest, SearchClientsNewsletterSmsResponse, RequestParams.SearchClientsNewsletterSmsParams> {
524
+ shops: (value: RequestParams.SearchClientsNewsletterSmsParams["shops"]) => this;
525
525
  /** Customer language ID. */
526
526
  language: (value: string) => this;
527
- date: (value: JSObject) => this;
527
+ date: (value: RequestParams.SearchClientsNewsletterSmsParams["date"]) => this;
528
528
  /** Elements to be returned by the endpoint. By default all elements are returned */
529
529
  return_elements: (value: string|string[]) => this;
530
530
  /** Results page number. Numbering begins at 0. Default value: 0. */
@@ -535,7 +535,7 @@ export interface SearchClientsNewsletterSmsRequest extends PagableGateway<Search
535
535
  dates: (dateFrom: DateLike, dateTo: DateLike) => this;
536
536
  }
537
537
 
538
- export interface DeleteClientsPayerAddressRequest extends AppendableGateway<DeleteClientsPayerAddressRequest, JSObject> {
538
+ export interface DeleteClientsPayerAddressRequest extends AppendableGateway<DeleteClientsPayerAddressRequest> {
539
539
  payers: (value: Array<JSObject>) => this;
540
540
  /** Unique client's number. */
541
541
  clientId: (clientId: number|string) => this
@@ -543,7 +543,7 @@ export interface DeleteClientsPayerAddressRequest extends AppendableGateway<Dele
543
543
  payerAddressId: (payerAddressId: number|string) => this
544
544
  }
545
545
 
546
- export interface GetClientsPayerAddressRequest extends PagableGateway<GetClientsPayerAddressRequest,GetClientsPayerAddressResponse> {
546
+ export interface GetClientsPayerAddressRequest extends PagableGateway<GetClientsPayerAddressRequest, GetClientsPayerAddressResponse> {
547
547
  /** Unique client's number. */
548
548
  clientId: (value: string) => this;
549
549
  /** Page with results number. Numeration starts from 0 */
@@ -552,7 +552,7 @@ export interface GetClientsPayerAddressRequest extends PagableGateway<GetClients
552
552
  resultsLimit: (value: number|string) => this;
553
553
  }
554
554
 
555
- export interface PostClientsPayerAddressRequest extends AppendableGateway<PostClientsPayerAddressRequest, JSObject> {
555
+ export interface PostClientsPayerAddressRequest extends AppendableGateway<PostClientsPayerAddressRequest> {
556
556
  payers: (value: Array<JSObject>) => this;
557
557
  /** Unique client's number. */
558
558
  clientId: (clientId: number|string) => this
@@ -576,7 +576,7 @@ export interface PostClientsPayerAddressRequest extends AppendableGateway<PostCl
576
576
  payerAddressPhone: (payerAddressPhone: string) => this
577
577
  }
578
578
 
579
- export interface PutClientsPayerAddressRequest extends AppendableGateway<PutClientsPayerAddressRequest, JSObject> {
579
+ export interface PutClientsPayerAddressRequest extends AppendableGateway<PutClientsPayerAddressRequest> {
580
580
  payers: (value: Array<JSObject>) => this;
581
581
  /** Unique client's number. */
582
582
  clientId: (clientId: string) => this
@@ -714,7 +714,7 @@ export interface GetClientsPricesDiscountsRequest extends PagableGateway<GetClie
714
714
  lastPurchased: (dateFrom: DateLike, dateTo: DateLike) => this;
715
715
  }
716
716
 
717
- export interface PutClientsPricesDiscountsRequest extends AppendableGateway<PutClientsPricesDiscountsRequest, JSObject> {
717
+ export interface PutClientsPricesDiscountsRequest extends AppendableGateway<PutClientsPricesDiscountsRequest> {
718
718
  customers: (value: JSObject) => this;
719
719
  /** Discount type, possible values: - simple */
720
720
  discount_type: (value: string) => this;
@@ -757,7 +757,7 @@ export interface PostClientsProfitPointsRequest extends Gateway {
757
757
  /** Operation: - add, - remove. */
758
758
  operation: (value: string) => this;
759
759
  /** Amount of points to add or subtract. */
760
- score: (value: Number) => this;
760
+ score: (value: number) => this;
761
761
  note: (value: string) => this;
762
762
  /** Prepayment ID. */
763
763
  order_number: (value: number|string) => this;
@@ -778,7 +778,7 @@ export interface DeleteClientsTagsClearRequest extends Gateway {
778
778
  clientId: (value: number|string) => this;
779
779
  }
780
780
 
781
- export interface DeleteClientsTagsRequest extends AppendableGateway<DeleteClientsTagsRequest, JSObject> {
781
+ export interface DeleteClientsTagsRequest extends AppendableGateway<DeleteClientsTagsRequest> {
782
782
  /** Parameters transmitted to method */
783
783
  params: (value: Array<JSObject>) => this;
784
784
  /** Unique client's number. */
@@ -792,7 +792,7 @@ export interface GetClientsTagsRequest extends Gateway {
792
792
  clientId: (value: number|string) => this;
793
793
  }
794
794
 
795
- export interface PostClientsTagsRequest extends AppendableGateway<PostClientsTagsRequest, JSObject> {
795
+ export interface PostClientsTagsRequest extends AppendableGateway<PostClientsTagsRequest> {
796
796
  /** Parameters transmitted to method */
797
797
  params: (value: Array<JSObject>) => this;
798
798
  /** Unique client's number. */
@@ -803,7 +803,7 @@ export interface PostClientsTagsRequest extends AppendableGateway<PostClientsTag
803
803
  tagValue: (tagValue: number|string) => this
804
804
  }
805
805
 
806
- export interface PutClientsTagsRequest extends AppendableGateway<PutClientsTagsRequest, JSObject> {
806
+ export interface PutClientsTagsRequest extends AppendableGateway<PutClientsTagsRequest> {
807
807
  /** Unique client's number. */
808
808
  clientId: (value: number|string) => this;
809
809
  clientTags: (value: Array<JSObject>) => this;
@@ -815,7 +815,7 @@ export interface PutClientsTagsRequest extends AppendableGateway<PutClientsTagsR
815
815
  tagValue: (tagValue: number|string) => this
816
816
  }
817
817
 
818
- export interface GetConfigVariablesRequest extends PagableGateway<GetConfigVariablesRequest,GetConfigVariablesResponse> {
818
+ export interface GetConfigVariablesRequest extends PagableGateway<GetConfigVariablesRequest, GetConfigVariablesResponse> {
819
819
  /** Which component is affected by the configuration. */
820
820
  type: (value: 'snippets_campaign') => this;
821
821
  /** List of item identifiers for given configuration type. Eg. snippet campaign identifiers. */
@@ -828,7 +828,7 @@ export interface GetConfigVariablesRequest extends PagableGateway<GetConfigVaria
828
828
  resultsLimit: (value: number|string) => this;
829
829
  }
830
830
 
831
- export interface PutConfigVariablesRequest extends AppendableGateway<PutConfigVariablesRequest, JSObject> {
831
+ export interface PutConfigVariablesRequest extends AppendableGateway<PutConfigVariablesRequest> {
832
832
  variables: (value: Array<JSObject>) => this;
833
833
  /** Key of config value. */
834
834
  key: (key: string) => this
@@ -860,7 +860,7 @@ export interface GetCouriersRequest extends PagableGateway<GetCouriersRequest> {
860
860
  resultsLimit: (value: number|string) => this;
861
861
  }
862
862
 
863
- export interface DeleteCouriersPickupPointsRequest extends AppendableGateway<DeleteCouriersPickupPointsRequest, JSObject> {
863
+ export interface DeleteCouriersPickupPointsRequest extends AppendableGateway<DeleteCouriersPickupPointsRequest> {
864
864
  pickupPointDeleteRequests: (value: Array<JSObject>) => this;
865
865
  /** Collection point ID. */
866
866
  pickupPointId: (pickupPointId: string) => this
@@ -870,7 +870,7 @@ export interface DeleteCouriersPickupPointsRequest extends AppendableGateway<Del
870
870
  courierId: (courierId: number|string) => this
871
871
  }
872
872
 
873
- export interface GetCouriersPickupPointsRequest extends PagableGateway<GetCouriersPickupPointsRequest,GetCouriersPickupPointsResponse> {
873
+ export interface GetCouriersPickupPointsRequest extends PagableGateway<GetCouriersPickupPointsRequest, GetCouriersPickupPointsResponse> {
874
874
  /** Courier ID. */
875
875
  courierId: (value: number|string) => this;
876
876
  /** Collection point ID. */
@@ -890,17 +890,17 @@ export interface PostCouriersPickupPointsRequest extends AppendableGateway<PostC
890
890
  /** Courier ID. */
891
891
  courierId: (courierId: number|string) => this
892
892
  /** collection point details. */
893
- descriptions: (descriptions: Array<JSObject>) => this
893
+ descriptions: (descriptions: RequestParams.PostCouriersPickupPointsParams["pickupPoints"][number]["descriptions"]) => this
894
894
  /** Accepted payment types. */
895
895
  paymentForms: (paymentForms: string|string[]) => this
896
896
  /** Collection point activity. Available values: available, outOfService . */
897
897
  serviceStatus: (serviceStatus: 'out_of_service'|'available') => this
898
898
  /** Pickup point address. */
899
- address: (address: JSObject) => this
899
+ address: (address: RequestParams.PostCouriersPickupPointsParams["pickupPoints"][number]["address"]) => this
900
900
  /** Geographic coordinates. */
901
- coordinates: (coordinates: JSObject) => this
901
+ coordinates: (coordinates: RequestParams.PostCouriersPickupPointsParams["pickupPoints"][number]["coordinates"]) => this
902
902
  /** Personal collection point work hours. */
903
- operatingDays: (operatingDays: Array<JSObject>) => this
903
+ operatingDays: (operatingDays: RequestParams.PostCouriersPickupPointsParams["pickupPoints"][number]["operatingDays"]) => this
904
904
  }
905
905
 
906
906
  export interface PutCouriersPickupPointsRequest extends AppendableGateway<PutCouriersPickupPointsRequest, PutCouriersPickupPointsResponse, RequestParams.PutCouriersPickupPointsParams> {
@@ -912,17 +912,17 @@ export interface PutCouriersPickupPointsRequest extends AppendableGateway<PutCou
912
912
  /** Courier ID. */
913
913
  courierId: (courierId: number|string) => this
914
914
  /** collection point details. */
915
- descriptions: (descriptions: Array<JSObject>) => this
915
+ descriptions: (descriptions: RequestParams.PutCouriersPickupPointsParams["pickupPoints"][number]["descriptions"]) => this
916
916
  /** Accepted payment types. */
917
917
  paymentForms: (paymentForms: string|string[]) => this
918
918
  /** Collection point activity. Available values: available, outOfService . */
919
919
  serviceStatus: (serviceStatus: 'out_of_service'|'available') => this
920
920
  /** Pickup point address. */
921
- address: (address: JSObject) => this
921
+ address: (address: RequestParams.PutCouriersPickupPointsParams["pickupPoints"][number]["address"]) => this
922
922
  /** Geographic coordinates. */
923
- coordinates: (coordinates: JSObject) => this
923
+ coordinates: (coordinates: RequestParams.PutCouriersPickupPointsParams["pickupPoints"][number]["coordinates"]) => this
924
924
  /** Personal collection point work hours. */
925
- operatingDays: (operatingDays: Array<JSObject>) => this
925
+ operatingDays: (operatingDays: RequestParams.PutCouriersPickupPointsParams["pickupPoints"][number]["operatingDays"]) => this
926
926
  }
927
927
 
928
928
  export interface GetCpaCampaignRequest extends PagableGateway<GetCpaCampaignRequest> {
@@ -936,7 +936,7 @@ export interface GetCpaCampaignRequest extends PagableGateway<GetCpaCampaignRequ
936
936
  resultsLimit: (value: number|string) => this;
937
937
  }
938
938
 
939
- export interface PostCpaCampaignRequest extends AppendableGateway<PostCpaCampaignRequest, JSObject> {
939
+ export interface PostCpaCampaignRequest extends AppendableGateway<PostCpaCampaignRequest> {
940
940
  campaigns: (value: Array<JSObject>) => this;
941
941
  /** undefined */
942
942
  id: (id: number|string) => this
@@ -950,7 +950,7 @@ export interface PostCpaCampaignRequest extends AppendableGateway<PostCpaCampaig
950
950
  active: (active: 'y'|'n') => this
951
951
  }
952
952
 
953
- export interface PutCpaCampaignRequest extends AppendableGateway<PutCpaCampaignRequest, JSObject> {
953
+ export interface PutCpaCampaignRequest extends AppendableGateway<PutCpaCampaignRequest> {
954
954
  campaigns: (value: Array<JSObject>) => this;
955
955
  /** Snippet campaign id */
956
956
  id: (id: number|string) => this
@@ -969,7 +969,7 @@ export interface DeleteCpaCampaignRequest extends Gateway {
969
969
  id: (value: number|string|number[]|string[]) => this;
970
970
  }
971
971
 
972
- export interface GetCpaRequest extends PagableGateway<GetCpaRequest,GetCpaResponse> {
972
+ export interface GetCpaRequest extends PagableGateway<GetCpaRequest, GetCpaResponse> {
973
973
  /** List of campaign identifiers */
974
974
  campaign: (value: number|string|number[]|string[]) => this;
975
975
  /** List of identifiers */
@@ -980,7 +980,7 @@ export interface GetCpaRequest extends PagableGateway<GetCpaRequest,GetCpaRespon
980
980
  resultsLimit: (value: number|string) => this;
981
981
  }
982
982
 
983
- export interface PostCpaRequest extends AppendableGateway<PostCpaRequest, JSObject> {
983
+ export interface PostCpaRequest extends AppendableGateway<PostCpaRequest> {
984
984
  cpa: (value: Array<JSObject>) => this;
985
985
  /** undefined */
986
986
  id: (id: number|string) => this
@@ -1000,7 +1000,7 @@ export interface PostCpaRequest extends AppendableGateway<PostCpaRequest, JSObje
1000
1000
  variables: (variables: Array<JSObject>) => this
1001
1001
  }
1002
1002
 
1003
- export interface PutCpaRequest extends AppendableGateway<PutCpaRequest, JSObject> {
1003
+ export interface PutCpaRequest extends AppendableGateway<PutCpaRequest> {
1004
1004
  cpa: (value: Array<JSObject>) => this;
1005
1005
  /** undefined */
1006
1006
  id: (id: number|string) => this
@@ -1169,7 +1169,7 @@ export interface GetEntriesRequest extends Gateway<GetEntriesResponse> {
1169
1169
  langId: (value: string) => this;
1170
1170
  }
1171
1171
 
1172
- export interface PostEntriesRequest extends AppendableGateway<PostEntriesRequest, JSObject> {
1172
+ export interface PostEntriesRequest extends AppendableGateway<PostEntriesRequest> {
1173
1173
  /** Shop Id */
1174
1174
  shopId: (value: number|string) => this;
1175
1175
  /** Date of creating an entry */
@@ -1252,7 +1252,7 @@ export interface GetMenuFilterRequest extends Gateway {
1252
1252
  productMenuNodeId: (value: number|string) => this;
1253
1253
  }
1254
1254
 
1255
- export interface PutMenuFilterRequest extends AppendableGateway<PutMenuFilterRequest, JSObject> {
1255
+ export interface PutMenuFilterRequest extends AppendableGateway<PutMenuFilterRequest> {
1256
1256
  /** Shop Id */
1257
1257
  shopId: (value: number|string) => this;
1258
1258
  /** Language ID (code in ISO 639-2). */
@@ -1277,7 +1277,7 @@ export interface PutMenuFilterRequest extends AppendableGateway<PutMenuFilterReq
1277
1277
  menuFilterDefaultEnabled: (menuFilterDefaultEnabled: 'y'|'n') => this
1278
1278
  }
1279
1279
 
1280
- export interface DeleteMenuRequest extends AppendableGateway<DeleteMenuRequest, JSObject> {
1280
+ export interface DeleteMenuRequest extends AppendableGateway<DeleteMenuRequest> {
1281
1281
  menu_list: (value: Array<JSObject>) => this;
1282
1282
  /** Settings. */
1283
1283
  settings: (value: JSObject) => this;
@@ -1306,10 +1306,10 @@ export interface GetMenuRequest extends Gateway<GetMenuResponse> {
1306
1306
  textid_separator: (value: string) => this;
1307
1307
  }
1308
1308
 
1309
- export interface PostMenuRequest extends AppendableGateway<PostMenuRequest, JSObject> {
1310
- menu_list: (value: Array<JSObject>) => this;
1309
+ export interface PostMenuRequest extends AppendableGateway<PostMenuRequest, PostMenuResponse, RequestParams.PostMenuParams> {
1310
+ menu_list: (value: RequestParams.PostMenuParams["menu_list"]) => this;
1311
1311
  /** Settings */
1312
- settings: (value: JSObject) => this;
1312
+ settings: (value: RequestParams.PostMenuParams["settings"]) => this;
1313
1313
  /** Shop Id. */
1314
1314
  shop_id: (shop_id: number|string) => this
1315
1315
  /** Menu ID. */
@@ -1319,13 +1319,13 @@ export interface PostMenuRequest extends AppendableGateway<PostMenuRequest, JSOb
1319
1319
  /** Menu element text identifier. Example: "item1\item2". */
1320
1320
  parent_textid: (parent_textid: string) => this
1321
1321
  /** */
1322
- lang_data: (lang_data: Array<JSObject>) => this
1322
+ lang_data: (lang_data: RequestParams.PostMenuParams["menu_list"][number]["lang_data"]) => this
1323
1323
  }
1324
1324
 
1325
- export interface PutMenuRequest extends AppendableGateway<PutMenuRequest, JSObject> {
1326
- menu_list: (value: Array<JSObject>) => this;
1325
+ export interface PutMenuRequest extends AppendableGateway<PutMenuRequest, PutMenuResponse, RequestParams.PutMenuParams> {
1326
+ menu_list: (value: RequestParams.PutMenuParams["menu_list"]) => this;
1327
1327
  /** Settings. */
1328
- settings: (value: JSObject) => this;
1328
+ settings: (value: RequestParams.PutMenuParams["settings"]) => this;
1329
1329
  /** Shop Id. */
1330
1330
  shop_id: (shop_id: number|string) => this
1331
1331
  /** Menu ID. */
@@ -1335,10 +1335,10 @@ export interface PutMenuRequest extends AppendableGateway<PutMenuRequest, JSObje
1335
1335
  /** Menu element text identifier. Example: "item1\item2\item3". */
1336
1336
  item_textid: (item_textid: string) => this
1337
1337
  /** */
1338
- lang_data: (lang_data: Array<JSObject>) => this
1338
+ lang_data: (lang_data: RequestParams.PutMenuParams["menu_list"][number]["lang_data"]) => this
1339
1339
  }
1340
1340
 
1341
- export interface PutMenuSortRequest extends AppendableGateway<PutMenuSortRequest, JSObject> {
1341
+ export interface PutMenuSortRequest extends AppendableGateway<PutMenuSortRequest> {
1342
1342
  menu_list: (value: Array<JSObject>) => this;
1343
1343
  /** Settings */
1344
1344
  settings: (value: JSObject) => this;
@@ -1395,33 +1395,33 @@ export interface PutOrdersDeliveryAddressRequest extends Gateway {
1395
1395
  clientLogin: (value: string) => this;
1396
1396
  }
1397
1397
 
1398
- export interface PutOrdersDevideRequest extends AppendableGateway<PutOrdersDevideRequest, JSObject> {
1398
+ export interface PutOrdersDevideRequest extends AppendableGateway<PutOrdersDevideRequest> {
1399
1399
  /** Order serial number. */
1400
1400
  orderSerialNumber: (value: number|string) => this;
1401
1401
  /** Products list. */
1402
1402
  products: (value: Array<JSObject>) => this;
1403
1403
  /** Whether to split payments */
1404
- splitPayments: (value: Boolean) => this;
1404
+ splitPayments: (value: boolean) => this;
1405
1405
  /** Item in basket. */
1406
1406
  basketPosition: (basketPosition: number|string) => this
1407
1407
  /** Quantity */
1408
1408
  quantity: (quantity: number) => this
1409
1409
  }
1410
1410
 
1411
- export interface PostOrdersDocumentsCreateRequest extends Gateway<PostOrdersDocumentsCreateResponse> {
1412
- orderSerialNumbers: (value: RequestParams.PostOrdersDocumentsCreateParams["orderSerialNumbers"]) => this;
1413
- actualize: (value: RequestParams.PostOrdersDocumentsCreateParams["actualize"]) => this;
1411
+ export interface PostOrdersDocumentsCreateRequest extends Gateway<PostOrdersDocumentsCreateResponse, RequestParams.PostOrdersDocumentsCreateParams> {
1412
+ orderSerialNumbers: (value: number|string|number[]|string[]) => this;
1413
+ actualize: (value: boolean) => this;
1414
1414
  /** Document type */
1415
- documentType: (value: RequestParams.PostOrdersDocumentsCreateParams["documentType"]) => this;
1415
+ documentType: (value: 'vat_invoice'|'fiscal_invoice'|'corrective_vat_invoice'|'fiscal_receipt'|'sales_confirmation') => this;
1416
1416
  /** Document issued date */
1417
- documentIssuedDate: (value: RequestParams.PostOrdersDocumentsCreateParams["documentIssuedDate"]) => this;
1417
+ documentIssuedDate: (value: string) => this;
1418
1418
  /** Document purchase date */
1419
- documentPurchaseDate: (value: RequestParams.PostOrdersDocumentsCreateParams["documentPurchaseDate"]) => this;
1419
+ documentPurchaseDate: (value: string) => this;
1420
1420
  /** Printer id */
1421
- printerId: (value: RequestParams.PostOrdersDocumentsCreateParams["printerId"]) => this;
1421
+ printerId: (value: number|string) => this;
1422
1422
  }
1423
1423
 
1424
- export interface DeleteOrdersDocumentsRequest extends AppendableGateway<DeleteOrdersDocumentsRequest, JSObject> {
1424
+ export interface DeleteOrdersDocumentsRequest extends AppendableGateway<DeleteOrdersDocumentsRequest> {
1425
1425
  /** List of documents. */
1426
1426
  documents: (value: Array<JSObject>) => this;
1427
1427
  /** Order serial number. */
@@ -1439,7 +1439,7 @@ export interface GetOrdersDocumentsRequest extends Gateway<GetOrdersDocumentsRes
1439
1439
  returnElements: (value: string|string[]) => this;
1440
1440
  }
1441
1441
 
1442
- export interface PostOrdersDocumentsRequest extends AppendableGateway<PostOrdersDocumentsRequest, JSObject> {
1442
+ export interface PostOrdersDocumentsRequest extends AppendableGateway<PostOrdersDocumentsRequest> {
1443
1443
  /** List of documents. */
1444
1444
  documents: (value: Array<JSObject>) => this;
1445
1445
  /** Order serial number. */
@@ -1498,7 +1498,7 @@ export interface GetOrdersExportdocumentsJPKRequest extends Gateway {
1498
1498
  /** Stock ID */
1499
1499
  stockId: (value: number|string|number[]|string[]) => this;
1500
1500
  /** Forces the file to be generated by background tasks. The file will be generated later. Then, after it is generated, you will be able to download the given file using the returned ID. The file will be available 24h after the task is completed. */
1501
- forceBackgroundGenerate: (value: Boolean) => this;
1501
+ forceBackgroundGenerate: (value: boolean) => this;
1502
1502
  /** Define range of dates */
1503
1503
  dates: (dateFrom: DateLike, dateTo: DateLike) => this;
1504
1504
  }
@@ -1520,7 +1520,7 @@ export interface GetOrdersHistoryRequest extends Gateway<GetOrdersHistoryRespons
1520
1520
  orderSerialNumber: (value: number|string) => this;
1521
1521
  }
1522
1522
 
1523
- export interface DeleteOrdersImagesRequest extends AppendableGateway<DeleteOrdersImagesRequest, JSObject> {
1523
+ export interface DeleteOrdersImagesRequest extends AppendableGateway<DeleteOrdersImagesRequest> {
1524
1524
  order: (value: JSObject) => this;
1525
1525
  /** List of attachment IDs to be removed from the details of the selected order */
1526
1526
  images: (value: Array<JSObject>) => this;
@@ -1535,7 +1535,7 @@ export interface GetOrdersImagesRequest extends Gateway {
1535
1535
  orderSerialNumber: (value: number|string) => this;
1536
1536
  }
1537
1537
 
1538
- export interface PostOrdersImagesRequest extends AppendableGateway<PostOrdersImagesRequest, JSObject> {
1538
+ export interface PostOrdersImagesRequest extends AppendableGateway<PostOrdersImagesRequest> {
1539
1539
  /** Login */
1540
1540
  userName: (value: string) => this;
1541
1541
  settings: (value: JSObject) => this;
@@ -1557,21 +1557,21 @@ export interface GetOrdersLabelsRequest extends Gateway {
1557
1557
  orderSerialNumber: (value: number|string) => this;
1558
1558
  }
1559
1559
 
1560
- export interface SearchOrdersOpinionsRequest extends PagableGateway<SearchOrdersOpinionsRequest,SearchOrdersOpinionsResponse> {
1560
+ export interface SearchOrdersOpinionsRequest extends PagableGateway<SearchOrdersOpinionsRequest, SearchOrdersOpinionsResponse, RequestParams.SearchOrdersOpinionsParams> {
1561
1561
  /** Review identification */
1562
- opinion: (value: JSObject) => this;
1562
+ opinion: (value: RequestParams.SearchOrdersOpinionsParams["opinion"]) => this;
1563
1563
  /** Orders. */
1564
- orders: (value: JSObject) => this;
1564
+ orders: (value: RequestParams.SearchOrdersOpinionsParams["orders"]) => this;
1565
1565
  /** Customer data. */
1566
- clients: (value: JSObject) => this;
1566
+ clients: (value: RequestParams.SearchOrdersOpinionsParams["clients"]) => this;
1567
1567
  /** Date range */
1568
- dateRange: (value: JSObject) => this;
1568
+ dateRange: (value: RequestParams.SearchOrdersOpinionsParams["dateRange"]) => this;
1569
1569
  /** Page with results number. Numeration starts from 0 */
1570
1570
  resultsPage: (value: number|string) => this;
1571
1571
  /** Number of results on page. Value from 1 to 100 */
1572
1572
  resultsLimit: (value: number|string) => this;
1573
1573
  /** Possibility of sorting returned list */
1574
- ordersBy: (value: Array<JSObject>) => this;
1574
+ ordersBy: (value: RequestParams.SearchOrdersOpinionsParams["ordersBy"]) => this;
1575
1575
  orderId: (value: string) => this;
1576
1576
  orderSerialNumber: (value: string) => this;
1577
1577
  clientId: (value: string) => this;
@@ -1613,7 +1613,7 @@ export interface PostOrdersRequest extends AppendableGateway<PostOrdersRequest,
1613
1613
  /** Determines if customer unregistered. Allowed values. "y" - casual client, "n" - registered customer. Default value:: "y". If customer is unregistered, enter customer details in element: "clientWithoutAccountData". For client with account - existing login should be stored in: "clientLogin". */
1614
1614
  clientWithoutAccount: (clientWithoutAccount: string) => this
1615
1615
  /** Balance data for casual client. Object is necessary for casual clients (in case of client_once has y value). */
1616
- clientWithoutAccountData: (clientWithoutAccountData: JSObject) => this
1616
+ clientWithoutAccountData: (clientWithoutAccountData: RequestParams.PostOrdersParams["orders"][number]["clientWithoutAccountData"]) => this
1617
1617
  /** Customer's login. */
1618
1618
  clientLogin: (clientLogin: string) => this
1619
1619
  /** Customer comments on order. */
@@ -1629,11 +1629,11 @@ export interface PostOrdersRequest extends AppendableGateway<PostOrdersRequest,
1629
1629
  /** Delivery cost. */
1630
1630
  deliveryCost: (deliveryCost: number) => this
1631
1631
  /** Delivery address data. */
1632
- clientDeliveryAddress: (clientDeliveryAddress: JSObject) => this
1632
+ clientDeliveryAddress: (clientDeliveryAddress: RequestParams.PostOrdersParams["orders"][number]["clientDeliveryAddress"]) => this
1633
1633
  /** Buyer's address data. */
1634
- payerAddress: (payerAddress: JSObject) => this
1634
+ payerAddress: (payerAddress: RequestParams.PostOrdersParams["orders"][number]["payerAddress"]) => this
1635
1635
  /** Products list. */
1636
- products: (products: Array<JSObject>) => this
1636
+ products: (products: RequestParams.PostOrdersParams["orders"][number]["products"]) => this
1637
1637
  /** Discount value. */
1638
1638
  orderRebateValue: (orderRebateValue: number) => this
1639
1639
  /** Order handler. */
@@ -1641,9 +1641,9 @@ export interface PostOrdersRequest extends AppendableGateway<PostOrdersRequest,
1641
1641
  /** Omits collecting orders via IAI Bridge. */
1642
1642
  ignoreBridge: (ignoreBridge: boolean) => this
1643
1643
  /** Settings */
1644
- settings: (settings: JSObject) => this
1644
+ settings: (settings: RequestParams.PostOrdersParams["orders"][number]["settings"]) => this
1645
1645
  /** Settlement by prices. "gross" - gross, "net" - net, "net_without_VAT" - net without VAT. */
1646
- orderSettledAtPrice: (orderSettledAtPrice: 'gross'|'net'|'net_without_vat') => this
1646
+ orderSettledAtPrice: (orderSettledAtPrice: 'gross'|'net'|'net_without_VAT') => this
1647
1647
  /** Customer asked for invoice. List of parameters: "y" - yes (paper invoicing ), "e" - yes (electronic invoicing ), "n" - no. */
1648
1648
  clientRequestInvoice: (clientRequestInvoice: string) => this
1649
1649
  /** Order settlement currency. */
@@ -1676,15 +1676,15 @@ export interface PutOrdersRequest extends AppendableGateway<PutOrdersRequest, Pu
1676
1676
  /** Note to the order. */
1677
1677
  orderNote: (orderNote: string) => this
1678
1678
  /** Products list. */
1679
- products: (products: Array<JSObject>) => this
1679
+ products: (products: RequestParams.PutOrdersParams["orders"][number]["products"]) => this
1680
1680
  /** Order payment method. Allowed values. "cash_on_delivery" - cash on delivery, "prepaid" - prepayment, "tradecredit" - Trade credit. */
1681
1681
  orderPaymentType: (orderPaymentType: 'cash_on_delivery'|'prepaid'|'tradecredit') => this
1682
1682
  /** Settlement by prices. "gross" - gross, "net" - net, "net_without_VAT" - net without VAT. */
1683
- orderSettledAtPrice: (orderSettledAtPrice: 'gross'|'net'|'net_without_vat') => this
1683
+ orderSettledAtPrice: (orderSettledAtPrice: 'gross'|'net'|'net_without_VAT') => this
1684
1684
  /** Omits collecting orders via IAI Bridge. */
1685
1685
  ignoreBridge: (ignoreBridge: boolean) => this
1686
1686
  /** Settings */
1687
- settings: (settings: JSObject) => this
1687
+ settings: (settings: RequestParams.PutOrdersParams["orders"][number]["settings"]) => this
1688
1688
  /** Consent to send data to cooperating services */
1689
1689
  emailProcessingConsent: (emailProcessingConsent: 'yes'|'no'|'disabled') => this
1690
1690
  /** Customer asked for invoice. List of parameters: "y" - yes (paper invoicing ), "e" - yes (electronic invoicing ), "n" - no. */
@@ -1699,9 +1699,9 @@ export interface PutOrdersRequest extends AppendableGateway<PutOrdersRequest, Pu
1699
1699
  estimatedDeliveryDate: (estimatedDeliveryDate: string) => this
1700
1700
  }
1701
1701
 
1702
- export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,SearchOrdersResponse> {
1702
+ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest, SearchOrdersResponse, RequestParams.SearchOrdersParams> {
1703
1703
  /** Prepayment status. Status list: "unpaid" - not paid, "restored" - returned, "waiting" - not registered. */
1704
- orderPrepaidStatus: (value: string) => this;
1704
+ orderPrepaidStatus: (value: "unpaid" | "restored" | "waiting") => this;
1705
1705
  /** Order status. Status list: "new" - not handled, "finished" - completed, "false" - false, "lost" - lost, "on_order" - in progress, "packed" - being picked, "ready" - ready, "canceled" - canceled by customer, "payment_waiting" - awaiting payment, "delivery_waiting" - awaiting delivery, "suspended" - on hold, "joined" - merged, "finished_ext" - handled in FA application. */
1706
1706
  ordersStatuses: (value: string|string[]) => this;
1707
1707
  /** Order statusses ids. */
@@ -1722,13 +1722,13 @@ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,
1722
1722
  /** Order serial numbers. */
1723
1723
  ordersSerialNumbers: (value: number|string|number[]|string[]) => this;
1724
1724
  /** Customer data. */
1725
- clients: (value: Array<JSObject>) => this;
1725
+ clients: (value: RequestParams.SearchOrdersParams["clients"]) => this;
1726
1726
  /** Ranges of dates or serial numbers. */
1727
- ordersRange: (value: JSObject) => this;
1727
+ ordersRange: (value: RequestParams.SearchOrdersParams["ordersRange"]) => this;
1728
1728
  /** Order source data. */
1729
- orderSource: (value: JSObject) => this;
1729
+ orderSource: (value: RequestParams.SearchOrdersParams["orderSource"]) => this;
1730
1730
  /** Products list. */
1731
- products: (value: Array<JSObject>) => this;
1731
+ products: (value: RequestParams.SearchOrdersParams["products"]) => this;
1732
1732
  /** Page with results number. Numeration starts from 0 */
1733
1733
  resultsPage: (value: number|string) => this;
1734
1734
  /** Number of results on page. Value from 1 to 100 */
@@ -1736,11 +1736,11 @@ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,
1736
1736
  /** Customer asked for invoice. List of parameters: "y" - yes (paper invoicing ), "e" - yes (electronic invoicing ), "n" - no. */
1737
1737
  clientRequestInvoice: (value: string) => this;
1738
1738
  /** Information on consignments. */
1739
- packages: (value: JSObject) => this;
1739
+ packages: (value: RequestParams.SearchOrdersParams["packages"]) => this;
1740
1740
  /** Stock quantities data. */
1741
- stocks: (value: Array<JSObject>) => this;
1741
+ stocks: (value: RequestParams.SearchOrdersParams["stocks"]) => this;
1742
1742
  /** Used discount codes data. */
1743
- campaign: (value: JSObject) => this;
1743
+ campaign: (value: RequestParams.SearchOrdersParams["campaign"]) => this;
1744
1744
  /** Loyalty points. */
1745
1745
  loyaltyPointsMode: (value: 'all'|'given'|'taken'|'given_or_taken'|'given_and_taken'|'not_given_nor_taken') => this;
1746
1746
  /** Order handler. */
@@ -1748,13 +1748,13 @@ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,
1748
1748
  /** Order picker. */
1749
1749
  orderPackingPersonLogin: (value: string) => this;
1750
1750
  /** Possibility of sorting returned list */
1751
- ordersBy: (value: Array<JSObject>) => this;
1751
+ ordersBy: (value: RequestParams.SearchOrdersParams["ordersBy"]) => this;
1752
1752
  /** Method of searching orders by handler. */
1753
1753
  searchingOperatorTypeMatch: (value: 'no_assignment'|'no_empty'|'empty') => this;
1754
1754
  /** Orders with the exceeded date of shipment. */
1755
1755
  ordersDelayed: (value: 'y'|'n') => this;
1756
1756
  /** Combine the components of the set into one item */
1757
- showBundles: (value: Boolean) => this;
1757
+ showBundles: (value: boolean) => this;
1758
1758
  /** The order ID of the external service */
1759
1759
  orderExternalId: (value: string) => this;
1760
1760
  /** Order currency */
@@ -1799,10 +1799,10 @@ export interface GetOrdersPackagesRequest extends Gateway<GetOrdersPackagesRespo
1799
1799
  /** RMA numbers. */
1800
1800
  rmaNumbers: (value: number|string|number[]|string[]) => this;
1801
1801
  /** Return parcel labels. */
1802
- returnLabels: (value: Boolean) => this;
1802
+ returnLabels: (value: boolean) => this;
1803
1803
  }
1804
1804
 
1805
- export interface PostOrdersPackagesRequest extends AppendableGateway<PostOrdersPackagesRequest, JSObject> {
1805
+ export interface PostOrdersPackagesRequest extends AppendableGateway<PostOrdersPackagesRequest> {
1806
1806
  /** List of parcels assigned to the order Maximum default number: 100 parcels. */
1807
1807
  orderPackages: (value: Array<JSObject>) => this;
1808
1808
  /** Id. */
@@ -1813,7 +1813,7 @@ export interface PostOrdersPackagesRequest extends AppendableGateway<PostOrdersP
1813
1813
  packages: (packages: Array<JSObject>) => this
1814
1814
  }
1815
1815
 
1816
- export interface PutOrdersPackagesRequest extends AppendableGateway<PutOrdersPackagesRequest, JSObject> {
1816
+ export interface PutOrdersPackagesRequest extends AppendableGateway<PutOrdersPackagesRequest> {
1817
1817
  /** List of parcels assigned to the order Maximum default number: 100 parcels. */
1818
1818
  orderPackages: (value: Array<JSObject>) => this;
1819
1819
  /** Id. */
@@ -1837,10 +1837,10 @@ export interface GetOrdersPrinterDocumentsRequest extends Gateway {
1837
1837
  objectNumber: (value: string) => this;
1838
1838
  objectType: (value: string) => this;
1839
1839
  printerAccessKey: (value: string) => this;
1840
- skipNotGeneratedDocument: (value: Boolean) => this;
1840
+ skipNotGeneratedDocument: (value: boolean) => this;
1841
1841
  }
1842
1842
 
1843
- export interface PutOrdersProductsSerialNumbersRequest extends AppendableGateway<PutOrdersProductsSerialNumbersRequest, JSObject> {
1843
+ export interface PutOrdersProductsSerialNumbersRequest extends AppendableGateway<PutOrdersProductsSerialNumbersRequest> {
1844
1844
  /** Orders. */
1845
1845
  orders: (value: Array<JSObject>) => this;
1846
1846
  /** Order serial number. */
@@ -1849,7 +1849,7 @@ export interface PutOrdersProductsSerialNumbersRequest extends AppendableGateway
1849
1849
  orderProducts: (orderProducts: Array<JSObject>) => this
1850
1850
  }
1851
1851
 
1852
- export interface PutOrdersProfitMarginRequest extends AppendableGateway<PutOrdersProfitMarginRequest, JSObject> {
1852
+ export interface PutOrdersProfitMarginRequest extends AppendableGateway<PutOrdersProfitMarginRequest> {
1853
1853
  /** Orders. */
1854
1854
  orders: (value: Array<JSObject>) => this;
1855
1855
  /** Order serial number. */
@@ -1871,16 +1871,16 @@ export interface PutOrdersShippingCostsRequest extends Gateway {
1871
1871
  /** Order serial number. */
1872
1872
  orderSerialNumber: (value: number|string) => this;
1873
1873
  /** Delivery cost. */
1874
- deliveryCost: (value: Number) => this;
1874
+ deliveryCost: (value: number) => this;
1875
1875
  /** Delivery VAT. */
1876
- orderDeliveryVat: (value: Number) => this;
1876
+ orderDeliveryVat: (value: number) => this;
1877
1877
  }
1878
1878
 
1879
1879
  export interface GetOrdersStatusesRequest extends Gateway<GetOrdersStatusesResponse> {}
1880
1880
 
1881
- export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrdersUnfinishedRequest,SearchOrdersResponse> {
1881
+ export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrdersUnfinishedRequest, SearchOrdersResponse> {
1882
1882
  /** Prepayment status. Status list: "unpaid" - not paid, "restored" - returned, "waiting" - not registered. */
1883
- orderPrepaidStatus: (value: string) => this;
1883
+ orderPrepaidStatus: (value: "unpaid" | "restored" | "waiting") => this;
1884
1884
  /** 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. */
1885
1885
  ordersStatuses: (value: string|string[]) => this;
1886
1886
  /** Order statuses ids. */
@@ -1990,9 +1990,9 @@ export interface GetPackagesLabelsRequest extends Gateway<GetPackagesLabelsRespo
1990
1990
 
1991
1991
  export interface PostPackagesLabelsRequest extends AppendableGateway<PostPackagesLabelsRequest, PostPackagesLabelsResponse, RequestParams.PostPackagesLabelsParams> {
1992
1992
  /** Id. */
1993
- eventId: (value: RequestParams.PostPackagesLabelsParams["eventId"]) => this;
1993
+ eventId: (value: number|string) => this;
1994
1994
  /** Type. */
1995
- eventType: (value: RequestParams.PostPackagesLabelsParams["eventType"]) => this;
1995
+ eventType: (value: 'order'|'rma'|'return') => this;
1996
1996
  /** Shipment configuration options available for a given courier */
1997
1997
  parcelParameters: (value: RequestParams.PostPackagesLabelsParams["parcelParameters"]) => this;
1998
1998
  /** Shipment configuration options available for Inpost Smile courier */
@@ -2001,7 +2001,7 @@ export interface PostPackagesLabelsRequest extends AppendableGateway<PostPackage
2001
2001
  packageId: (packageId: string) => this
2002
2002
  }
2003
2003
 
2004
- export interface PostPackagesRequest extends AppendableGateway<PostPackagesRequest, JSObject> {
2004
+ export interface PostPackagesRequest extends AppendableGateway<PostPackagesRequest> {
2005
2005
  /** List of parcels assigned to the order Maximum default number: 100 parcels. */
2006
2006
  orderPackages: (value: Array<JSObject>) => this;
2007
2007
  /** Order ID. */
@@ -2012,7 +2012,7 @@ export interface PostPackagesRequest extends AppendableGateway<PostPackagesReque
2012
2012
  packages: (packages: Array<JSObject>) => this
2013
2013
  }
2014
2014
 
2015
- export interface PutPackagesRequest extends AppendableGateway<PutPackagesRequest, JSObject> {
2015
+ export interface PutPackagesRequest extends AppendableGateway<PutPackagesRequest> {
2016
2016
  /** List of parcels assigned to the order Maximum default number: 100 parcels. */
2017
2017
  orderPackages: (value: Array<JSObject>) => this;
2018
2018
  /** Order ID. */
@@ -2023,13 +2023,13 @@ export interface PutPackagesRequest extends AppendableGateway<PutPackagesRequest
2023
2023
  packages: (packages: Array<JSObject>) => this
2024
2024
  }
2025
2025
 
2026
- export interface SearchPackagesRequest extends AppendableGateway<SearchPackagesRequest, SearchPackagesResponse> {
2026
+ export interface SearchPackagesRequest extends AppendableGateway<SearchPackagesRequest, SearchPackagesResponse, RequestParams.SearchPackagesParams> {
2027
2027
  /** Consignments numbers. */
2028
2028
  deliveryPackageNumbers: (value: string|string[]) => this;
2029
2029
  /** Element, package is assigned to */
2030
- events: (value: Array<JSObject>) => this;
2030
+ events: (value: RequestParams.SearchPackagesParams["events"]) => this;
2031
2031
  /** Return parcel labels. */
2032
- returnLabels: (value: Boolean) => this;
2032
+ returnLabels: (value: boolean) => this;
2033
2033
  /** Type. */
2034
2034
  eventType: (eventType: 'order'|'rma'|'return') => this
2035
2035
  /** IDs. */
@@ -2054,7 +2054,7 @@ export interface PostPaymentsCashbackRequest extends Gateway {
2054
2054
  /** Payment number - [order no.]-[payment no.], i.e. 1234-1. */
2055
2055
  paymentNumber: (value: string) => this;
2056
2056
  /** Refund value. */
2057
- value: (value: Number) => this;
2057
+ value: (value: number) => this;
2058
2058
  }
2059
2059
 
2060
2060
  export interface PutPaymentsConfirmRequest extends Gateway {
@@ -2078,13 +2078,13 @@ export interface GetPaymentsRequest extends Gateway<GetPaymentsResponse> {
2078
2078
  sourceType: (value: 'order'|'return'|'rma') => this;
2079
2079
  }
2080
2080
 
2081
- export interface PostPaymentsRequest extends Gateway {
2081
+ export interface PostPaymentsRequest extends Gateway<PostPaymentsResponse, RequestParams.PostPaymentsParams> {
2082
2082
  /** Source ID. */
2083
2083
  sourceId: (value: number|string) => this;
2084
2084
  /** Source type. */
2085
2085
  sourceType: (value: 'order'|'return'|'rma') => this;
2086
2086
  /** Payment amount. */
2087
- value: (value: Number) => this;
2087
+ value: (value: number) => this;
2088
2088
  /** Number of a bank account to which a payment is sent. */
2089
2089
  account: (value: string) => this;
2090
2090
  type: (value: 'payment'|'advance'|'repayment'|'fee') => this;
@@ -2106,7 +2106,7 @@ export interface PutPaymentsRequest extends Gateway {
2106
2106
  /** Payment method ID. Check getPaymentForms. */
2107
2107
  paymentFormId: (value: number|string) => this;
2108
2108
  /** Refund value. */
2109
- value: (value: Number) => this;
2109
+ value: (value: number) => this;
2110
2110
  /** Registering date. */
2111
2111
  accountingDate: (value: string) => this;
2112
2112
  /** Number of a bank account to which a payment is sent. */
@@ -2125,13 +2125,13 @@ export interface GetPaymentsProfilesRequest extends PagableGateway<GetPaymentsPr
2125
2125
  resultsLimit: (value: number|string) => this;
2126
2126
  }
2127
2127
 
2128
- export interface PostPaymentsRepaymentRequest extends Gateway {
2128
+ export interface PostPaymentsRepaymentRequest extends Gateway<PostPaymentsRepaymentResponse, RequestParams.PostPaymentsRepaymentParams> {
2129
2129
  /** Returns ID. */
2130
2130
  source_id: (value: number|string) => this;
2131
2131
  /** Defines payment category. For the payments regarding returns, enter 'return'. */
2132
2132
  source_type: (value: string) => this;
2133
2133
  /** Refund value. */
2134
- value: (value: Number) => this;
2134
+ value: (value: number) => this;
2135
2135
  /** Payment method ID. Check getPaymentForms. */
2136
2136
  payment_form_id: (value: number|string) => this;
2137
2137
  /** Number of a bank account to which a payment is sent. */
@@ -2139,26 +2139,26 @@ export interface PostPaymentsRepaymentRequest extends Gateway {
2139
2139
  /** Customer account. */
2140
2140
  client_account: (value: string) => this;
2141
2141
  /** Other. */
2142
- other: (value: JSObject) => this;
2142
+ other: (value: RequestParams.PostPaymentsRepaymentParams["other"]) => this;
2143
2143
  }
2144
2144
 
2145
2145
  export interface GetProductsSKUbyBarcodeRequest extends Gateway<GetProductsSKUbyBarcodeResponse> {
2146
2146
  /** List of sought products by indexes. */
2147
2147
  productIndices: (value: string|string[]) => this;
2148
2148
  /** Search for products only by IAI code */
2149
- searchOnlyInCodeIai: (value: Boolean) => this;
2149
+ searchOnlyInCodeIai: (value: boolean) => this;
2150
2150
  }
2151
2151
 
2152
- export interface PutProductsAttachmentsRequest extends AppendableGateway<PutProductsAttachmentsRequest, JSObject> {
2153
- productsAttachments: (value: Array<JSObject>) => this;
2152
+ export interface PutProductsAttachmentsRequest extends AppendableGateway<PutProductsAttachmentsRequest, PutProductsAttachmentsResponse, RequestParams.PutProductsAttachmentsParams> {
2153
+ productsAttachments: (value: RequestParams.PutProductsAttachmentsParams["productsAttachments"]) => this;
2154
2154
  /** Stock keeping unit. */
2155
- productIdent: (productIdent: JSObject) => this
2155
+ productIdent: (productIdent: RequestParams.PutProductsAttachmentsParams["productsAttachments"][number]["productIdent"]) => this
2156
2156
  /** Product attachments list. */
2157
- attachments: (attachments: Array<JSObject>) => this
2157
+ attachments: (attachments: RequestParams.PutProductsAttachmentsParams["productsAttachments"][number]["attachments"]) => this
2158
2158
  /** List of product's virtual attachments. */
2159
- virtualAttachments: (virtualAttachments: Array<JSObject>) => this
2159
+ virtualAttachments: (virtualAttachments: RequestParams.PutProductsAttachmentsParams["productsAttachments"][number]["virtualAttachments"]) => this
2160
2160
  /** Information on error that occurred during gate call. */
2161
- errors: (errors: JSObject) => this
2161
+ errors: (errors: RequestParams.PutProductsAttachmentsParams["productsAttachments"][number]["errors"]) => this
2162
2162
  /** Flag indicating if there are errors in results of attachments settings. */
2163
2163
  attachmentsErrorsOccurred: (attachmentsErrorsOccurred: boolean) => this
2164
2164
  /** Flag indicating if there are errors in results of virtual attachments settings. */
@@ -2166,7 +2166,7 @@ export interface PutProductsAttachmentsRequest extends AppendableGateway<PutProd
2166
2166
  productId: (value: number|string) => this;
2167
2167
  }
2168
2168
 
2169
- export interface GetProductsAuctionsRequest extends PagableGateway<GetProductsAuctionsRequest,GetProductsAuctionsResponse> {
2169
+ export interface GetProductsAuctionsRequest extends PagableGateway<GetProductsAuctionsRequest, GetProductsAuctionsResponse> {
2170
2170
  identType: (value: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2171
2171
  /** Products list. */
2172
2172
  products: (value: string|string[]) => this;
@@ -2195,7 +2195,7 @@ export interface GetProductsBrandsFilterRequest extends Gateway {
2195
2195
  producerId: (value: number|string) => this;
2196
2196
  }
2197
2197
 
2198
- export interface PutProductsBrandsFilterRequest extends AppendableGateway<PutProductsBrandsFilterRequest, JSObject> {
2198
+ export interface PutProductsBrandsFilterRequest extends AppendableGateway<PutProductsBrandsFilterRequest> {
2199
2199
  /** Shop Id */
2200
2200
  shopId: (value: number|string) => this;
2201
2201
  /** Language ID (code in ISO 639-2). */
@@ -2217,7 +2217,7 @@ export interface PutProductsBrandsFilterRequest extends AppendableGateway<PutPro
2217
2217
  filterDefaultEnabled: (filterDefaultEnabled: 'y'|'n') => this
2218
2218
  }
2219
2219
 
2220
- export interface GetProductsBrandsRequest extends PagableGateway<GetProductsBrandsRequest,GetProductsBrandsResponse> {
2220
+ export interface GetProductsBrandsRequest extends PagableGateway<GetProductsBrandsRequest, GetProductsBrandsResponse> {
2221
2221
  /** Result page number. */
2222
2222
  results_page: (value: number|string) => this;
2223
2223
  /** Number of results on page. */
@@ -2226,7 +2226,7 @@ export interface GetProductsBrandsRequest extends PagableGateway<GetProductsBran
2226
2226
  languagesIds: (value: string|string[]) => this;
2227
2227
  }
2228
2228
 
2229
- export interface PostProductsBrandsRequest extends AppendableGateway<PostProductsBrandsRequest, JSObject> {
2229
+ export interface PostProductsBrandsRequest extends AppendableGateway<PostProductsBrandsRequest> {
2230
2230
  /** List of manufacturers assigned to sought products. */
2231
2231
  producers: (value: Array<JSObject>) => this;
2232
2232
  /** Name in panel */
@@ -2237,7 +2237,7 @@ export interface PostProductsBrandsRequest extends AppendableGateway<PostProduct
2237
2237
  languagesConfigurations: (languagesConfigurations: Array<JSObject>) => this
2238
2238
  }
2239
2239
 
2240
- export interface PutProductsBrandsRequest extends AppendableGateway<PutProductsBrandsRequest, JSObject> {
2240
+ export interface PutProductsBrandsRequest extends AppendableGateway<PutProductsBrandsRequest> {
2241
2241
  /** List of manufacturers assigned to sought products. */
2242
2242
  producers: (value: Array<JSObject>) => this;
2243
2243
  /** Id */
@@ -2250,14 +2250,14 @@ export interface PutProductsBrandsRequest extends AppendableGateway<PutProductsB
2250
2250
  languagesConfigurations: (languagesConfigurations: Array<JSObject>) => this
2251
2251
  }
2252
2252
 
2253
- export interface PostProductsBundlesRequest extends AppendableGateway<PostProductsBundlesRequest, JSObject> {
2253
+ export interface PostProductsBundlesRequest extends AppendableGateway<PostProductsBundlesRequest> {
2254
2254
  /** Parameters transmitted to method */
2255
2255
  params: (value: Array<JSObject>) => this;
2256
2256
  /** Products list. */
2257
2257
  products: (products: Array<JSObject>) => this
2258
2258
  }
2259
2259
 
2260
- export interface DeleteProductsBundlesProductsRequest extends AppendableGateway<DeleteProductsBundlesProductsRequest, JSObject> {
2260
+ export interface DeleteProductsBundlesProductsRequest extends AppendableGateway<DeleteProductsBundlesProductsRequest> {
2261
2261
  /** Parameters transmitted to method */
2262
2262
  params: (value: Array<JSObject>) => this;
2263
2263
  /** Products list. */
@@ -2266,7 +2266,7 @@ export interface DeleteProductsBundlesProductsRequest extends AppendableGateway<
2266
2266
  bundleIdent: (bundleIdent: JSObject) => this
2267
2267
  }
2268
2268
 
2269
- export interface PostProductsBundlesProductsRequest extends AppendableGateway<PostProductsBundlesProductsRequest, JSObject> {
2269
+ export interface PostProductsBundlesProductsRequest extends AppendableGateway<PostProductsBundlesProductsRequest> {
2270
2270
  /** Parameters transmitted to method */
2271
2271
  params: (value: Array<JSObject>) => this;
2272
2272
  /** Products list. */
@@ -2275,7 +2275,7 @@ export interface PostProductsBundlesProductsRequest extends AppendableGateway<Po
2275
2275
  bundleIdent: (bundleIdent: JSObject) => this
2276
2276
  }
2277
2277
 
2278
- export interface PutProductsBundlesProductsQuantityRequest extends AppendableGateway<PutProductsBundlesProductsQuantityRequest, JSObject> {
2278
+ export interface PutProductsBundlesProductsQuantityRequest extends AppendableGateway<PutProductsBundlesProductsQuantityRequest> {
2279
2279
  /** Parameters transmitted to method */
2280
2280
  params: (value: Array<JSObject>) => this;
2281
2281
  /** Products list. */
@@ -2284,7 +2284,7 @@ export interface PutProductsBundlesProductsQuantityRequest extends AppendableGat
2284
2284
  bundleIdent: (bundleIdent: JSObject) => this
2285
2285
  }
2286
2286
 
2287
- export interface PutProductsBundlesRenewRequest extends AppendableGateway<PutProductsBundlesRenewRequest, JSObject> {
2287
+ export interface PutProductsBundlesRenewRequest extends AppendableGateway<PutProductsBundlesRenewRequest> {
2288
2288
  /** Parameters transmitted to method */
2289
2289
  params: (value: Array<JSObject>) => this;
2290
2290
  /** Products list. */
@@ -2293,7 +2293,7 @@ export interface PutProductsBundlesRenewRequest extends AppendableGateway<PutPro
2293
2293
  bundleIdent: (bundleIdent: JSObject) => this
2294
2294
  }
2295
2295
 
2296
- export interface GetProductsCategoriesRequest extends PagableGateway<GetProductsCategoriesRequest,GetProductsCategoriesResponse> {
2296
+ export interface GetProductsCategoriesRequest extends PagableGateway<GetProductsCategoriesRequest, GetProductsCategoriesResponse> {
2297
2297
  /** List of product category identifiers in the panel */
2298
2298
  ids: (value: number|string|number[]|string[]) => this;
2299
2299
  /** Array of languages categories names should be returned in. "Defaults" value returns categories names in store default language. Not using languages parameter causes a situation, that categories names are returned in all available languages. */
@@ -2306,9 +2306,9 @@ export interface GetProductsCategoriesRequest extends PagableGateway<GetProducts
2306
2306
  return_last_changed_time: (value: string) => this;
2307
2307
  }
2308
2308
 
2309
- export interface PutProductsCategoriesRequest extends AppendableGateway<PutProductsCategoriesRequest, JSObject> {
2309
+ export interface PutProductsCategoriesRequest extends AppendableGateway<PutProductsCategoriesRequest, PutProductsCategoriesResponse, RequestParams.PutProductsCategoriesParams> {
2310
2310
  /** List of categories in which sought products are present. */
2311
- categories: (value: Array<JSObject>) => this;
2311
+ categories: (value: RequestParams.PutProductsCategoriesParams["categories"]) => this;
2312
2312
  /** Category id. */
2313
2313
  id: (id: number|string) => this
2314
2314
  /** Parent category ID. */
@@ -2318,10 +2318,10 @@ export interface PutProductsCategoriesRequest extends AppendableGateway<PutProdu
2318
2318
  /** Operation code. Allowed values. "add" - adds new category, "edit" - edits existing category, "del" - deletes existing category. */
2319
2319
  operation: (operation: string) => this
2320
2320
  /** */
2321
- lang_data: (lang_data: Array<JSObject>) => this
2321
+ lang_data: (lang_data: RequestParams.PutProductsCategoriesParams["categories"][number]["lang_data"]) => this
2322
2322
  }
2323
2323
 
2324
- export interface SearchProductsCategoriesIdosellRequest extends PagableGateway<SearchProductsCategoriesIdosellRequest,SearchProductsCategoriesIdosellResponse> {
2324
+ export interface SearchProductsCategoriesIdosellRequest extends PagableGateway<SearchProductsCategoriesIdosellRequest, SearchProductsCategoriesIdosellResponse> {
2325
2325
  /** List of languages */
2326
2326
  languagesIds: (value: string|string[]) => this;
2327
2327
  /** Number of IdoSell Categories identifiers */
@@ -2347,14 +2347,14 @@ export interface GetProductsCodeExistenceRequest extends Gateway<GetProductsCode
2347
2347
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2348
2348
  }
2349
2349
 
2350
- export interface PostProductsCollectionsRequest extends AppendableGateway<PostProductsCollectionsRequest, JSObject> {
2350
+ export interface PostProductsCollectionsRequest extends AppendableGateway<PostProductsCollectionsRequest> {
2351
2351
  /** Parameters transmitted to method */
2352
2352
  params: (value: Array<JSObject>) => this;
2353
2353
  /** Products list. */
2354
2354
  products: (products: Array<JSObject>) => this
2355
2355
  }
2356
2356
 
2357
- export interface DeleteProductsCollectionsProductsRequest extends AppendableGateway<DeleteProductsCollectionsProductsRequest, JSObject> {
2357
+ export interface DeleteProductsCollectionsProductsRequest extends AppendableGateway<DeleteProductsCollectionsProductsRequest> {
2358
2358
  /** Parameters transmitted to method */
2359
2359
  params: (value: Array<JSObject>) => this;
2360
2360
  /** Products list. */
@@ -2363,7 +2363,7 @@ export interface DeleteProductsCollectionsProductsRequest extends AppendableGate
2363
2363
  collectionId: (collectionId: number|string) => this
2364
2364
  }
2365
2365
 
2366
- export interface PostProductsCollectionsProductsRequest extends AppendableGateway<PostProductsCollectionsProductsRequest, JSObject> {
2366
+ export interface PostProductsCollectionsProductsRequest extends AppendableGateway<PostProductsCollectionsProductsRequest> {
2367
2367
  /** Parameters transmitted to method */
2368
2368
  params: (value: Array<JSObject>) => this;
2369
2369
  /** Products list. */
@@ -2372,7 +2372,7 @@ export interface PostProductsCollectionsProductsRequest extends AppendableGatewa
2372
2372
  collectionId: (collectionId: number|string) => this
2373
2373
  }
2374
2374
 
2375
- export interface PutProductsCollectionsProductsRequest extends AppendableGateway<PutProductsCollectionsProductsRequest, JSObject> {
2375
+ export interface PutProductsCollectionsProductsRequest extends AppendableGateway<PutProductsCollectionsProductsRequest> {
2376
2376
  /** Parameters transmitted to method */
2377
2377
  params: (value: Array<JSObject>) => this;
2378
2378
  /** Products list. */
@@ -2381,7 +2381,7 @@ export interface PutProductsCollectionsProductsRequest extends AppendableGateway
2381
2381
  collectionId: (collectionId: number|string) => this
2382
2382
  }
2383
2383
 
2384
- export interface PutProductsCollectionsRenewRequest extends AppendableGateway<PutProductsCollectionsRenewRequest, JSObject> {
2384
+ export interface PutProductsCollectionsRenewRequest extends AppendableGateway<PutProductsCollectionsRenewRequest> {
2385
2385
  /** Parameters transmitted to method */
2386
2386
  params: (value: Array<JSObject>) => this;
2387
2387
  /** Products list. */
@@ -2390,12 +2390,12 @@ export interface PutProductsCollectionsRenewRequest extends AppendableGateway<Pu
2390
2390
  collectionIdent: (collectionIdent: JSObject) => this
2391
2391
  }
2392
2392
 
2393
- export interface SearchProductsDeliveryTimeRequest extends AppendableGateway<SearchProductsDeliveryTimeRequest, SearchProductsDeliveryTimeResponse> {
2393
+ export interface SearchProductsDeliveryTimeRequest extends AppendableGateway<SearchProductsDeliveryTimeRequest, SearchProductsDeliveryTimeResponse, RequestParams.SearchProductsDeliveryTimeParams> {
2394
2394
  /** Stock ID */
2395
2395
  stockId: (value: number|string) => this;
2396
2396
  /** Should products be prepared for personal collection? */
2397
- isCollectionInPerson: (value: Boolean) => this;
2398
- products: (value: Array<JSObject>) => this;
2397
+ isCollectionInPerson: (value: boolean) => this;
2398
+ products: (value: RequestParams.SearchProductsDeliveryTimeParams["products"]) => this;
2399
2399
  /** Product Id */
2400
2400
  productId: (productId: number|string) => this
2401
2401
  /** Size identifier */
@@ -2419,7 +2419,7 @@ export interface GetProductsDescriptionsRequest extends Gateway<GetProductsDescr
2419
2419
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2420
2420
  }
2421
2421
 
2422
- export interface PutProductsDescriptionsRequest extends AppendableGateway<PutProductsDescriptionsRequest, JSObject> {
2422
+ export interface PutProductsDescriptionsRequest extends AppendableGateway<PutProductsDescriptionsRequest> {
2423
2423
  /** Products list. */
2424
2424
  products: (value: Array<JSObject>) => this;
2425
2425
  /** */
@@ -2433,14 +2433,14 @@ export interface PutProductsDescriptionsRequest extends AppendableGateway<PutPro
2433
2433
  setText: (text: string, type?: "productName"|"productAuctionName"|"productPriceComparerName"|"productDescription"|"productLongDescription"|"productMetaTitle"|"productMetaDescription"|"productMetaKeywords", language?: string, shopId?: number|string) => this;
2434
2434
  }
2435
2435
 
2436
- export interface PutProductsGroupsMainProductRequest extends AppendableGateway<PutProductsGroupsMainProductRequest, JSObject> {
2436
+ export interface PutProductsGroupsMainProductRequest extends AppendableGateway<PutProductsGroupsMainProductRequest> {
2437
2437
  groups: (value: Array<JSObject>) => this;
2438
2438
  /** */
2439
2439
  productIdent: (productIdent: JSObject) => this
2440
2440
  productId: (value: number|string) => this;
2441
2441
  }
2442
2442
 
2443
- export interface PutProductsGroupsOrderRequest extends AppendableGateway<PutProductsGroupsOrderRequest, JSObject> {
2443
+ export interface PutProductsGroupsOrderRequest extends AppendableGateway<PutProductsGroupsOrderRequest> {
2444
2444
  groups: (value: Array<JSObject>) => this;
2445
2445
  /** */
2446
2446
  productsInOrder: (productsInOrder: Array<JSObject>) => this
@@ -2448,14 +2448,14 @@ export interface PutProductsGroupsOrderRequest extends AppendableGateway<PutProd
2448
2448
  productIdsInOrder: (productIds: number|string|number[]|string[]) => this;
2449
2449
  }
2450
2450
 
2451
- export interface PutProductsGroupsSettingsRequest extends AppendableGateway<PutProductsGroupsSettingsRequest, JSObject> {
2451
+ export interface PutProductsGroupsSettingsRequest extends AppendableGateway<PutProductsGroupsSettingsRequest> {
2452
2452
  groups: (value: Array<JSObject>) => this;
2453
2453
  /** */
2454
2454
  productIdent: (productIdent: JSObject) => this
2455
2455
  /** Display on the product list in the panel. */
2456
- displayInPanel: (displayInPanel: 'firstavailable'|'all') => this
2456
+ displayInPanel: (displayInPanel: 'firstAvailable'|'all') => this
2457
2457
  /** Display on a product list on the page. */
2458
- displayOnPage: (displayOnPage: 'firstavailable'|'all'|'specified') => this
2458
+ displayOnPage: (displayOnPage: 'firstAvailable'|'all'|'specified') => this
2459
2459
  /** Selected product in the group. */
2460
2460
  specifiedProductIdent: (specifiedProductIdent: JSObject) => this
2461
2461
  productId: (value: number|string) => this;
@@ -2468,7 +2468,7 @@ export interface GetProductsIdBySizecodeRequest extends Gateway<GetProductsIdByS
2468
2468
  type: (value: string) => this;
2469
2469
  }
2470
2470
 
2471
- export interface DeleteProductsImagesRequest extends AppendableGateway<DeleteProductsImagesRequest, JSObject> {
2471
+ export interface DeleteProductsImagesRequest extends AppendableGateway<DeleteProductsImagesRequest> {
2472
2472
  /** Parameters transmitted to method */
2473
2473
  params: (value: Array<JSObject>) => this;
2474
2474
  /** Delete all images */
@@ -2481,7 +2481,7 @@ export interface DeleteProductsImagesRequest extends AppendableGateway<DeletePro
2481
2481
  productImagesId: (productImagesId: string|string[]) => this
2482
2482
  }
2483
2483
 
2484
- export interface PutProductsImagesRequest extends AppendableGateway<PutProductsImagesRequest, JSObject> {
2484
+ export interface PutProductsImagesRequest extends AppendableGateway<PutProductsImagesRequest> {
2485
2485
  productsImagesSettings: (value: JSObject) => this;
2486
2486
  /** Information on product images */
2487
2487
  productsImages: (value: Array<JSObject>) => this;
@@ -2516,7 +2516,7 @@ export interface GetProductsMarketingPromotionRequest extends Gateway {
2516
2516
  products: (value: number|string|number[]|string[]) => this;
2517
2517
  }
2518
2518
 
2519
- export interface PostProductsMarketingPromotionRequest extends AppendableGateway<PostProductsMarketingPromotionRequest, JSObject> {
2519
+ export interface PostProductsMarketingPromotionRequest extends AppendableGateway<PostProductsMarketingPromotionRequest> {
2520
2520
  /** Promotion name */
2521
2521
  promotionName: (value: string) => this;
2522
2522
  /** List of stores IDs When mask is determined, this parameter is omitted. */
@@ -2547,7 +2547,7 @@ export interface PostProductsMarketingPromotionRequest extends AppendableGateway
2547
2547
  elementId: (elementId: string) => this
2548
2548
  }
2549
2549
 
2550
- export interface PutProductsMarketingPromotionRequest extends AppendableGateway<PutProductsMarketingPromotionRequest, JSObject> {
2550
+ export interface PutProductsMarketingPromotionRequest extends AppendableGateway<PutProductsMarketingPromotionRequest> {
2551
2551
  /** Promotion ID */
2552
2552
  promotionId: (value: string) => this;
2553
2553
  /** Promotion name */
@@ -2590,7 +2590,7 @@ export interface GetProductsMarketingZonesRequest extends Gateway {
2590
2590
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2591
2591
  }
2592
2592
 
2593
- export interface PutProductsMarketingZonesRequest extends AppendableGateway<PutProductsMarketingZonesRequest, JSObject> {
2593
+ export interface PutProductsMarketingZonesRequest extends AppendableGateway<PutProductsMarketingZonesRequest> {
2594
2594
  /** Products list. */
2595
2595
  products: (value: Array<JSObject>) => this;
2596
2596
  assignment_mode: (value: 'auto'|'manual') => this;
@@ -2609,7 +2609,7 @@ export interface GetProductsOmnibusPricesRequest extends Gateway<GetProductsOmni
2609
2609
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2610
2610
  }
2611
2611
 
2612
- export interface PutProductsOmnibusPricesRequest extends AppendableGateway<PutProductsOmnibusPricesRequest, JSObject> {
2612
+ export interface PutProductsOmnibusPricesRequest extends AppendableGateway<PutProductsOmnibusPricesRequest> {
2613
2613
  /** Products list. */
2614
2614
  products: (value: Array<JSObject>) => this;
2615
2615
  /** Identifier type. */
@@ -2632,7 +2632,7 @@ export interface DeleteProductsOpinionsRequest extends Gateway {
2632
2632
  id: (value: number|string) => this;
2633
2633
  }
2634
2634
 
2635
- export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOpinionsRequest,GetProductsOpinionsResponse> {
2635
+ export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOpinionsRequest, GetProductsOpinionsResponse> {
2636
2636
  /** Review identification */
2637
2637
  opinion: (value: JSObject) => this;
2638
2638
  /** Products list. */
@@ -2657,7 +2657,7 @@ export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOp
2657
2657
  orderBy: (elementName: "date"|"rating"|"scorePositive"|"scoreNegative"|"modificationDatetime", descending: boolean) => this;
2658
2658
  }
2659
2659
 
2660
- export interface PostProductsOpinionsRequest extends AppendableGateway<PostProductsOpinionsRequest, JSObject> {
2660
+ export interface PostProductsOpinionsRequest extends AppendableGateway<PostProductsOpinionsRequest> {
2661
2661
  /** List of reviews */
2662
2662
  opinions: (value: Array<JSObject>) => this;
2663
2663
  /** */
@@ -2703,7 +2703,7 @@ export interface PutProductsOpinionsRequest extends Gateway {
2703
2703
  shopAnswer: (value: string) => this;
2704
2704
  picture: (value: string) => this;
2705
2705
  /** Opinion confirmed with purchase */
2706
- opinionConfirmedByPurchase: (value: Boolean) => this;
2706
+ opinionConfirmedByPurchase: (value: boolean) => this;
2707
2707
  }
2708
2708
 
2709
2709
  export interface GetProductsOpinionsRateRequest extends Gateway {
@@ -2716,7 +2716,7 @@ export interface DeleteProductsParametersRequest extends Gateway {
2716
2716
  ids: (value: number|string|number[]|string[]) => this;
2717
2717
  }
2718
2718
 
2719
- export interface PutProductsParametersRequest extends AppendableGateway<PutProductsParametersRequest, JSObject> {
2719
+ export interface PutProductsParametersRequest extends AppendableGateway<PutProductsParametersRequest> {
2720
2720
  /** Sections, parameters or valued to add or edit. */
2721
2721
  items: (value: Array<JSObject>) => this;
2722
2722
  /** Settings */
@@ -2741,22 +2741,22 @@ export interface PutProductsParametersRequest extends AppendableGateway<PutProdu
2741
2741
  context_value_id: (context_value_id: string) => this
2742
2742
  }
2743
2743
 
2744
- export interface SearchProductsParametersRequest extends PagableGateway<SearchProductsParametersRequest,SearchProductsParametersResponse> {
2744
+ export interface SearchProductsParametersRequest extends PagableGateway<SearchProductsParametersRequest, SearchProductsParametersResponse, RequestParams.SearchProductsParametersParams> {
2745
2745
  /** List of identifiers */
2746
2746
  ids: (value: number|string|number[]|string[]) => this;
2747
2747
  /** Element text ID - can be entered instead of "id". */
2748
- textIds: (value: Array<JSObject>) => this;
2748
+ textIds: (value: RequestParams.SearchProductsParametersParams["textIds"]) => this;
2749
2749
  /** List of languages */
2750
2750
  languagesIds: (value: string|string[]) => this;
2751
2751
  /** Whether to return a list of parameter value IDs */
2752
- parameterValueIds: (value: Boolean) => this;
2752
+ parameterValueIds: (value: boolean) => this;
2753
2753
  /** Page with results number. Numeration starts from 0 */
2754
2754
  resultsPage: (value: number|string) => this;
2755
2755
  /** Number of results on page. Value from 1 to 100 */
2756
2756
  resultsLimit: (value: number|string) => this;
2757
2757
  }
2758
2758
 
2759
- export interface DeleteProductsRequest extends AppendableGateway<DeleteProductsRequest, JSObject> {
2759
+ export interface DeleteProductsRequest extends AppendableGateway<DeleteProductsRequest> {
2760
2760
  /** Products list. */
2761
2761
  products: (value: Array<JSObject>) => this;
2762
2762
  /** Product IAI code */
@@ -2818,7 +2818,7 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2818
2818
  /** Optional element, that determines prices edition mode. Default value is "amount_set", when indicated element is omitted in API gate call.. Allowed values "amount_set" - sets product prices to desired value (default mode), "amount_diff" - sets sum difference between prices set (adds or subtracts entered sum from the current price), "percent_diff" - sets percentage difference between prices set (adds or subtracts entered percent from the current price). */
2819
2819
  priceChangeMode: (priceChangeMode: string) => this
2820
2820
  /** The JavaScript formula calculating prices */
2821
- priceFormula: (priceFormula: JSObject) => this
2821
+ priceFormula: (priceFormula: RequestParams.PostProductsParams["products"][number]["priceFormula"]) => this
2822
2822
  /** Gross price */
2823
2823
  productRetailPrice: (productRetailPrice: number) => this
2824
2824
  /** Wholesale price */
@@ -2834,9 +2834,9 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2834
2834
  /** Is product VAT free Allowed values "y" - yes, "n" - no. */
2835
2835
  productVatFree: (productVatFree: string) => this
2836
2836
  /** Different prices for price comparison websites. */
2837
- productPriceComparisonSitesPrices: (productPriceComparisonSitesPrices: Array<JSObject>) => this
2837
+ productPriceComparisonSitesPrices: (productPriceComparisonSitesPrices: RequestParams.PostProductsParams["products"][number]["productPriceComparisonSitesPrices"]) => this
2838
2838
  /** Object determines if the product is available in POS sale Available values: "n" - no, "y" - yes. */
2839
- productEnableInPos: (productEnableInPos: string) => this
2839
+ productEnableInPos: (productEnableInPos: "n" | "y") => this
2840
2840
  /** Required advance payment in percents */
2841
2841
  productAdvancePrice: (productAdvancePrice: number) => this
2842
2842
  /** Annotation. */
@@ -2848,17 +2848,17 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2848
2848
  /** Product visibility. Allowed values "y" - product visible, "n" - product not visible. */
2849
2849
  productInVisible: (productInVisible: string) => this
2850
2850
  /** Product visible even though out of stock Available values: "y" - visible even though out of stock, "n" - not visible when out of stock. */
2851
- productInPersistent: (productInPersistent: string) => this
2851
+ productInPersistent: (productInPersistent: "y" | "n") => this
2852
2852
  /** Bit mask of shop IDs. Mask for indicated store is calculated on basis of following formula: 2^(store_ID - 1). If the product should be available in more than one shop, the masks should be summed up. */
2853
2853
  shopsMask: (shopsMask: number|string) => this
2854
2854
  /** Complex rating Available values: "0" - no, "1" - yes. */
2855
2855
  productComplexNotes: (productComplexNotes: number|string) => this
2856
2856
  /** Product visibility in export to price comparison and marketplaces. Available values: "y" - Visible, "selected" - yes (selected), "n" - invisible. */
2857
- productInExportToPriceComparisonSites: (productInExportToPriceComparisonSites: string) => this
2857
+ productInExportToPriceComparisonSites: (productInExportToPriceComparisonSites: "y" | "selected" | "n") => this
2858
2858
  /** Selection of comparison sites for which the product visibility will be changed */
2859
- priceComparisonSites: (priceComparisonSites: Array<JSObject>) => this
2859
+ priceComparisonSites: (priceComparisonSites: RequestParams.PostProductsParams["products"][number]["priceComparisonSites"]) => this
2860
2860
  /** Visibility of an item in an export to Amazon Marketplace. Available values: "y" - Visible, "selected" - Visible on selected regional services, "n" - invisible. */
2861
- productInExportToAmazonMarketplace: (productInExportToAmazonMarketplace: string) => this
2861
+ productInExportToAmazonMarketplace: (productInExportToAmazonMarketplace: "y" | "selected" | "n") => this
2862
2862
  /** Availability profile ID. */
2863
2863
  availableProfile: (availableProfile: number|string) => this
2864
2864
  /** Discount profile ID */
@@ -2878,41 +2878,41 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2878
2878
  /** List of photos descriptions */
2879
2879
  productDescriptionPictures: (productDescriptionPictures: string|string[]) => this
2880
2880
  /** Reduced price */
2881
- productPromotion: (productPromotion: JSObject) => this
2881
+ productPromotion: (productPromotion: RequestParams.PostProductsParams["products"][number]["productPromotion"]) => this
2882
2882
  /** Discount for shop. */
2883
- productDiscount: (productDiscount: JSObject) => this
2883
+ productDiscount: (productDiscount: RequestParams.PostProductsParams["products"][number]["productDiscount"]) => this
2884
2884
  /** Distinguished product in store. */
2885
- productDistinguished: (productDistinguished: JSObject) => this
2885
+ productDistinguished: (productDistinguished: RequestParams.PostProductsParams["products"][number]["productDistinguished"]) => this
2886
2886
  /** Special product in store. */
2887
- productSpecial: (productSpecial: JSObject) => this
2887
+ productSpecial: (productSpecial: RequestParams.PostProductsParams["products"][number]["productSpecial"]) => this
2888
2888
  /** Parameters (distinguished). */
2889
- productParametersDistinction: (productParametersDistinction: Array<JSObject>) => this
2889
+ productParametersDistinction: (productParametersDistinction: RequestParams.PostProductsParams["products"][number]["productParametersDistinction"]) => this
2890
2890
  /** List of products recommended with this product */
2891
- associatedProducts: (associatedProducts: Array<JSObject>) => this
2891
+ associatedProducts: (associatedProducts: RequestParams.PostProductsParams["products"][number]["associatedProducts"]) => this
2892
2892
  /** Sizes available for products data. */
2893
- productSizes: (productSizes: Array<JSObject>) => this
2893
+ productSizes: (productSizes: RequestParams.PostProductsParams["products"][number]["productSizes"]) => this
2894
2894
  /** Data concerning attributes dependent on indicated stores with particular product assigned. */
2895
- productShopsAttributes: (productShopsAttributes: Array<JSObject>) => this
2895
+ productShopsAttributes: (productShopsAttributes: RequestParams.PostProductsParams["products"][number]["productShopsAttributes"]) => this
2896
2896
  /** Products subscription settings. */
2897
- subscription: (subscription: Array<JSObject>) => this
2897
+ subscription: (subscription: RequestParams.PostProductsParams["products"][number]["subscription"]) => this
2898
2898
  /** Product name. */
2899
- productNames: (productNames: JSObject) => this
2899
+ productNames: (productNames: RequestParams.PostProductsParams["products"][number]["productNames"]) => this
2900
2900
  /** */
2901
- productDescriptions: (productDescriptions: JSObject) => this
2901
+ productDescriptions: (productDescriptions: RequestParams.PostProductsParams["products"][number]["productDescriptions"]) => this
2902
2902
  /** Long product description */
2903
- productLongDescriptions: (productLongDescriptions: JSObject) => this
2903
+ productLongDescriptions: (productLongDescriptions: RequestParams.PostProductsParams["products"][number]["productLongDescriptions"]) => this
2904
2904
  /** Product data for auction services */
2905
- productAuctionDescriptionsData: (productAuctionDescriptionsData: Array<JSObject>) => this
2905
+ productAuctionDescriptionsData: (productAuctionDescriptionsData: RequestParams.PostProductsParams["products"][number]["productAuctionDescriptionsData"]) => this
2906
2906
  /** Product meta title */
2907
- productMetaTitles: (productMetaTitles: JSObject) => this
2907
+ productMetaTitles: (productMetaTitles: RequestParams.PostProductsParams["products"][number]["productMetaTitles"]) => this
2908
2908
  /** Product meta description */
2909
- productMetaDescriptions: (productMetaDescriptions: JSObject) => this
2909
+ productMetaDescriptions: (productMetaDescriptions: RequestParams.PostProductsParams["products"][number]["productMetaDescriptions"]) => this
2910
2910
  /** Product meta keywords. */
2911
- productMetaKeywords: (productMetaKeywords: JSObject) => this
2911
+ productMetaKeywords: (productMetaKeywords: RequestParams.PostProductsParams["products"][number]["productMetaKeywords"]) => this
2912
2912
  /** #!AdresURLDlaTowaru!#. */
2913
- productUrl: (productUrl: JSObject) => this
2913
+ productUrl: (productUrl: RequestParams.PostProductsParams["products"][number]["productUrl"]) => this
2914
2914
  /** Data on product groups (variants) */
2915
- productVersion: (productVersion: JSObject) => this
2915
+ productVersion: (productVersion: RequestParams.PostProductsParams["products"][number]["productVersion"]) => this
2916
2916
  /** Currency ID */
2917
2917
  currencyId: (currencyId: string) => this
2918
2918
  /** Supplier ID. */
@@ -2920,17 +2920,17 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2920
2920
  /** This parameter is optional and it determines properties edition mode. Default value is "replace". Allowed values: "add" - adds properties to already existent ones, "delete" - removes properties of already existent ones, "delete_group" - removes properties from selected group, "replace" - overwrites properties already existent with new ones (default mode). */
2921
2921
  productParametersDistinctionChangeMode: (productParametersDistinctionChangeMode: 'add'|'delete'|'delete_group'|'replace') => this
2922
2922
  /** Product delivery time from the producer to the shop */
2923
- productDeliveryTime: (productDeliveryTime: JSObject) => this
2923
+ productDeliveryTime: (productDeliveryTime: RequestParams.PostProductsParams["products"][number]["productDeliveryTime"]) => this
2924
2924
  /** Do You wish to sum up the products in the basket as a one order? Available values: "y" - yes, "n" - no. */
2925
- productSumInBasket: (productSumInBasket: string) => this
2925
+ productSumInBasket: (productSumInBasket: "y" | "n") => this
2926
2926
  /** Shipping, returns and complaints settings */
2927
- dispatchSettings: (dispatchSettings: JSObject) => this
2927
+ dispatchSettings: (dispatchSettings: RequestParams.PostProductsParams["products"][number]["dispatchSettings"]) => this
2928
2928
  /** Standard unit settings */
2929
- standardUnit: (standardUnit: JSObject) => this
2929
+ standardUnit: (standardUnit: RequestParams.PostProductsParams["products"][number]["standardUnit"]) => this
2930
2930
  /** Minimal number of products in an order */
2931
- minQuantityPerOrder: (minQuantityPerOrder: JSObject) => this
2931
+ minQuantityPerOrder: (minQuantityPerOrder: RequestParams.PostProductsParams["products"][number]["minQuantityPerOrder"]) => this
2932
2932
  /** Dimensions and overall weight */
2933
- productDimensions: (productDimensions: JSObject) => this
2933
+ productDimensions: (productDimensions: RequestParams.PostProductsParams["products"][number]["productDimensions"]) => this
2934
2934
  /** Responsible producer code */
2935
2935
  responsibleProducerCode: (responsibleProducerCode: string) => this
2936
2936
  /** Responsible person code */
@@ -3031,19 +3031,19 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3031
3031
  /** Is product VAT free Allowed values "y" - yes, "n" - no. */
3032
3032
  productVatFree: (productVatFree: string) => this
3033
3033
  /** Different prices for price comparison websites. */
3034
- productPriceComparisonSitesPrices: (productPriceComparisonSitesPrices: Array<JSObject>) => this
3034
+ productPriceComparisonSitesPrices: (productPriceComparisonSitesPrices: RequestParams.PutProductsParams["products"][number]["productPriceComparisonSitesPrices"]) => this
3035
3035
  /** Object determines if the product is available in POS sale Available values: "n" - no, "y" - yes. */
3036
- productEnableInPos: (productEnableInPos: string) => this
3036
+ productEnableInPos: (productEnableInPos: "n" | "y") => this
3037
3037
  /** Required advance payment in percents */
3038
3038
  productAdvancePrice: (productAdvancePrice: number) => this
3039
3039
  /** Annotation. */
3040
3040
  productNote: (productNote: string) => this
3041
3041
  /** Settings of hotspots display. */
3042
- productHotspotsZones: (productHotspotsZones: Array<JSObject>) => this
3042
+ productHotspotsZones: (productHotspotsZones: RequestParams.PutProductsParams["products"][number]["productHotspotsZones"]) => this
3043
3043
  /** Loyalty points. */
3044
- priceInPoints: (priceInPoints: JSObject) => this
3044
+ priceInPoints: (priceInPoints: RequestParams.PutProductsParams["products"][number]["priceInPoints"]) => this
3045
3045
  /** Loyalty points. */
3046
- loyaltyPoints: (loyaltyPoints: Array<JSObject>) => this
3046
+ loyaltyPoints: (loyaltyPoints: RequestParams.PutProductsParams["products"][number]["loyaltyPoints"]) => this
3047
3047
  /** Weight. */
3048
3048
  productWeight: (productWeight: number|string) => this
3049
3049
  /** Product visibility. Allowed values "y" - product visible, "n" - product not visible. */
@@ -3055,9 +3055,9 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3055
3055
  /** Product visibility in export to price comparison and marketplaces. Available values: "y" - Visible, "selected" - Selected, "assign_selected" - Enable the visibility of the product in the export to price comparison sites passed in the priceComparisonSites node. Price comparison sites previously assigned to the commodity will be retained, "unassign_selected" - Disable product visibility in exports to price comparison sites passed in the priceComparisonSites node, "n" - invisible. */
3056
3056
  productInExportToPriceComparisonSites: (productInExportToPriceComparisonSites: 'y'|'selected'|'n') => this
3057
3057
  /** Selection of comparison sites for which the product visibility will be changed */
3058
- priceComparisonSites: (priceComparisonSites: Array<JSObject>) => this
3058
+ priceComparisonSites: (priceComparisonSites: RequestParams.PutProductsParams["products"][number]["priceComparisonSites"]) => this
3059
3059
  /** Visibility of an item in an export to Amazon Marketplace. Available values: "y" - Visible, "selected" - Visible on selected regional services, "n" - invisible. */
3060
- productInExportToAmazonMarketplace: (productInExportToAmazonMarketplace: string) => this
3060
+ productInExportToAmazonMarketplace: (productInExportToAmazonMarketplace: "y" | "selected" | "n") => this
3061
3061
  /** Array */
3062
3062
  exportToAmazonMarketplacesList: (exportToAmazonMarketplacesList: string|string[]) => this
3063
3063
  /** Export sizes to Amazon: Available values: "y" - all, "n" - leave without change. */
@@ -3077,7 +3077,7 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3077
3077
  /** Name of warranty for indicated product. */
3078
3078
  warrantyName: (warrantyName: string) => this
3079
3079
  /** The JavaScript formula calculating prices */
3080
- priceFormula: (priceFormula: JSObject) => this
3080
+ priceFormula: (priceFormula: RequestParams.PutProductsParams["products"][number]["priceFormula"]) => this
3081
3081
  /** Size chart ID */
3082
3082
  sizeChartId: (sizeChartId: number|string) => this
3083
3083
  /** Size chart name */
@@ -3085,7 +3085,7 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3085
3085
  /** Priority. Allowed values from 1 to 10. */
3086
3086
  productPriority: (productPriority: number|string) => this
3087
3087
  /** Product priority in menu node. */
3088
- productPriorityInMenuNodes: (productPriorityInMenuNodes: Array<JSObject>) => this
3088
+ productPriorityInMenuNodes: (productPriorityInMenuNodes: RequestParams.PutProductsParams["products"][number]["productPriorityInMenuNodes"]) => this
3089
3089
  /** Product icon link. */
3090
3090
  productIconLink: (productIconLink: string) => this
3091
3091
  /** Photo without background. */
@@ -3093,67 +3093,67 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3093
3093
  /** Icon for a product group. */
3094
3094
  productGroupIconLink: (productGroupIconLink: string) => this
3095
3095
  /** List of product photos */
3096
- productPictures: (productPictures: Array<JSObject>) => this
3096
+ productPictures: (productPictures: RequestParams.PutProductsParams["products"][number]["productPictures"]) => this
3097
3097
  /** List of a product's photos with indication of a particular number of the photo. */
3098
- productPicturesReplace: (productPicturesReplace: Array<JSObject>) => this
3098
+ productPicturesReplace: (productPicturesReplace: RequestParams.PutProductsParams["products"][number]["productPicturesReplace"]) => this
3099
3099
  /** Reduced price */
3100
- productPromotion: (productPromotion: JSObject) => this
3100
+ productPromotion: (productPromotion: RequestParams.PutProductsParams["products"][number]["productPromotion"]) => this
3101
3101
  /** Discount for shop. */
3102
- productDiscount: (productDiscount: JSObject) => this
3102
+ productDiscount: (productDiscount: RequestParams.PutProductsParams["products"][number]["productDiscount"]) => this
3103
3103
  /** Distinguished product in store. */
3104
- productDistinguished: (productDistinguished: JSObject) => this
3104
+ productDistinguished: (productDistinguished: RequestParams.PutProductsParams["products"][number]["productDistinguished"]) => this
3105
3105
  /** Special product in store. */
3106
- productSpecial: (productSpecial: JSObject) => this
3106
+ productSpecial: (productSpecial: RequestParams.PutProductsParams["products"][number]["productSpecial"]) => this
3107
3107
  /** Parameters (distinguished). */
3108
- productParametersDistinction: (productParametersDistinction: Array<JSObject>) => this
3108
+ productParametersDistinction: (productParametersDistinction: RequestParams.PutProductsParams["products"][number]["productParametersDistinction"]) => this
3109
3109
  /** Configuration parameters */
3110
- parametersConfigurable: (parametersConfigurable: Array<JSObject>) => this
3110
+ parametersConfigurable: (parametersConfigurable: RequestParams.PutProductsParams["products"][number]["parametersConfigurable"]) => this
3111
3111
  /** List of products recommended with this product */
3112
- associatedProducts: (associatedProducts: Array<JSObject>) => this
3112
+ associatedProducts: (associatedProducts: RequestParams.PutProductsParams["products"][number]["associatedProducts"]) => this
3113
3113
  /** Sizes available for products data. */
3114
- productSizes: (productSizes: Array<JSObject>) => this
3114
+ productSizes: (productSizes: RequestParams.PutProductsParams["products"][number]["productSizes"]) => this
3115
3115
  /** Product attachments list. */
3116
- attachments: (attachments: Array<JSObject>) => this
3116
+ attachments: (attachments: RequestParams.PutProductsParams["products"][number]["attachments"]) => this
3117
3117
  /** The list of attachments to be deleted. */
3118
- removeAttachments: (removeAttachments: Array<JSObject>) => this
3118
+ removeAttachments: (removeAttachments: RequestParams.PutProductsParams["products"][number]["removeAttachments"]) => this
3119
3119
  /** Do you want to delete attachments for digital files. */
3120
3120
  virtualAttachmentsToRemove: (virtualAttachmentsToRemove: boolean) => this
3121
3121
  /** List of product's virtual attachments. */
3122
- virtualAttachments: (virtualAttachments: Array<JSObject>) => this
3122
+ virtualAttachments: (virtualAttachments: RequestParams.PutProductsParams["products"][number]["virtualAttachments"]) => this
3123
3123
  /** Operation, that will be performed on attachments to product. */
3124
3124
  attachmentOperationValues: (attachmentOperationValues: 'edit'|'add'|'remove') => this
3125
3125
  /** Data concerning attributes dependent on indicated stores with particular product assigned. */
3126
- productShopsAttributes: (productShopsAttributes: Array<JSObject>) => this
3126
+ productShopsAttributes: (productShopsAttributes: RequestParams.PutProductsParams["products"][number]["productShopsAttributes"]) => this
3127
3127
  /** Products subscription settings. */
3128
- subscription: (subscription: Array<JSObject>) => this
3128
+ subscription: (subscription: RequestParams.PutProductsParams["products"][number]["subscription"]) => this
3129
3129
  /** Product name. */
3130
- productNames: (productNames: JSObject) => this
3130
+ productNames: (productNames: RequestParams.PutProductsParams["products"][number]["productNames"]) => this
3131
3131
  /** DEPRECATED. This parameter is deprecated. Product name for online auctions. */
3132
- productNamesInAuction: (productNamesInAuction: JSObject) => this
3132
+ productNamesInAuction: (productNamesInAuction: RequestParams.PutProductsParams["products"][number]["productNamesInAuction"]) => this
3133
3133
  /** Product name for price comparison websites. */
3134
- productNamesInPriceComparer: (productNamesInPriceComparer: JSObject) => this
3134
+ productNamesInPriceComparer: (productNamesInPriceComparer: RequestParams.PutProductsParams["products"][number]["productNamesInPriceComparer"]) => this
3135
3135
  /** Product short description */
3136
- productParamDescriptions: (productParamDescriptions: JSObject) => this
3136
+ productParamDescriptions: (productParamDescriptions: RequestParams.PutProductsParams["products"][number]["productParamDescriptions"]) => this
3137
3137
  /** Long product description */
3138
- productLongDescriptions: (productLongDescriptions: JSObject) => this
3138
+ productLongDescriptions: (productLongDescriptions: RequestParams.PutProductsParams["products"][number]["productLongDescriptions"]) => this
3139
3139
  /** DEPRECATED. This parameter is deprecated. Product description for marketplaces. */
3140
- productLongDescriptionsInAuction: (productLongDescriptionsInAuction: JSObject) => this
3140
+ productLongDescriptionsInAuction: (productLongDescriptionsInAuction: RequestParams.PutProductsParams["products"][number]["productLongDescriptionsInAuction"]) => this
3141
3141
  /** Product data for auction services */
3142
- productAuctionDescriptionsData: (productAuctionDescriptionsData: Array<JSObject>) => this
3142
+ productAuctionDescriptionsData: (productAuctionDescriptionsData: RequestParams.PutProductsParams["products"][number]["productAuctionDescriptionsData"]) => this
3143
3143
  /** Product meta title */
3144
- productMetaTitles: (productMetaTitles: JSObject) => this
3144
+ productMetaTitles: (productMetaTitles: RequestParams.PutProductsParams["products"][number]["productMetaTitles"]) => this
3145
3145
  /** Product meta description */
3146
- productMetaDescriptions: (productMetaDescriptions: JSObject) => this
3146
+ productMetaDescriptions: (productMetaDescriptions: RequestParams.PutProductsParams["products"][number]["productMetaDescriptions"]) => this
3147
3147
  /** Product meta keywords. */
3148
- productMetaKeywords: (productMetaKeywords: JSObject) => this
3148
+ productMetaKeywords: (productMetaKeywords: RequestParams.PutProductsParams["products"][number]["productMetaKeywords"]) => this
3149
3149
  /** URL for the product */
3150
- productUrl: (productUrl: JSObject) => this
3150
+ productUrl: (productUrl: RequestParams.PutProductsParams["products"][number]["productUrl"]) => this
3151
3151
  /** Data on product groups (variants) */
3152
- productVersion: (productVersion: JSObject) => this
3152
+ productVersion: (productVersion: RequestParams.PutProductsParams["products"][number]["productVersion"]) => this
3153
3153
  /** Currency ID */
3154
3154
  currencyId: (currencyId: string) => this
3155
3155
  /** Currency, in which product prices are stored. */
3156
- productCurrenciesShops: (productCurrenciesShops: Array<JSObject>) => this
3156
+ productCurrenciesShops: (productCurrenciesShops: RequestParams.PutProductsParams["products"][number]["productCurrenciesShops"]) => this
3157
3157
  /** Supplier ID. */
3158
3158
  delivererId: (delivererId: number|string) => this
3159
3159
  /** Supplier name. */
@@ -3161,21 +3161,21 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3161
3161
  /** This parameter is optional and it determines properties edition mode. Default value is "replace". Allowed values: "add" - adds properties to already existent ones, "delete" - removes properties of already existent ones, "delete_group" - removes properties from selected group, "replace" - overwrites properties already existent with new ones (default mode). */
3162
3162
  productParametersDistinctionChangeMode: (productParametersDistinctionChangeMode: 'add'|'delete'|'delete_group'|'replace') => this
3163
3163
  /** Product delivery time from the producer to the shop */
3164
- productDeliveryTime: (productDeliveryTime: JSObject) => this
3164
+ productDeliveryTime: (productDeliveryTime: RequestParams.PutProductsParams["products"][number]["productDeliveryTime"]) => this
3165
3165
  /** Parameters. */
3166
- productParameters: (productParameters: Array<JSObject>) => this
3166
+ productParameters: (productParameters: RequestParams.PutProductsParams["products"][number]["productParameters"]) => this
3167
3167
  /** */
3168
3168
  clearProductParameters: (clearProductParameters: boolean) => this
3169
3169
  /** Change parameter distinction. */
3170
- changeParametersDistinction: (changeParametersDistinction: Array<JSObject>) => this
3170
+ changeParametersDistinction: (changeParametersDistinction: RequestParams.PutProductsParams["products"][number]["changeParametersDistinction"]) => this
3171
3171
  /** VAT rate change mode:. "change_gross" - changes the product gross price, leaving the net price unchanged, "change_net" - changes the net price, leaving the gross price unchanged (default mode). */
3172
3172
  productPriceVatChangeMode: (productPriceVatChangeMode: 'change_net'|'change_gross') => this
3173
3173
  /** An array of menu elements */
3174
- productMenuItems: (productMenuItems: Array<JSObject>) => this
3174
+ productMenuItems: (productMenuItems: RequestParams.PutProductsParams["products"][number]["productMenuItems"]) => this
3175
3175
  /** Deletes all items assigned to the product of the selected menu */
3176
- removeAllProductsAssignedToMenu: (removeAllProductsAssignedToMenu: JSObject) => this
3176
+ removeAllProductsAssignedToMenu: (removeAllProductsAssignedToMenu: RequestParams.PutProductsParams["products"][number]["removeAllProductsAssignedToMenu"]) => this
3177
3177
  /** Do You wish to sum up the products in the basket as a one order? Available values: "y" - yes, "n" - no. */
3178
- productSumInBasket: (productSumInBasket: string) => this
3178
+ productSumInBasket: (productSumInBasket: "y" | "n") => this
3179
3179
  /** Settings of prices for shop. Values allowed: "same_prices" - prices in each shop are the same, "different_prices" - prices in each shop are different. */
3180
3180
  productShopsPricesConfig: (productShopsPricesConfig: 'same_prices'|'different_prices') => this
3181
3181
  /** Price settings for POS. Allowed values: "pos_equals_retail" - sets POS price the same as retail price. Possible to set only if the "shops_prices_config" parameter is set to jest same_prices or there is only one shop in panel, "pos_notequals_retail" - Price for POS different than retail price, "not_available_in_pos" - Product not available for POS sales. "sizes_pos_price_as_base_price" - Remove prices for sizes and set a sale price which equals a basic price. */
@@ -3191,23 +3191,23 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3191
3191
  /** Remove all unused sizes. */
3192
3192
  removeAllUnusedProductSizes: (removeAllUnusedProductSizes: boolean) => this
3193
3193
  /** Standard producer code. Available values: "auto" - Choose automatically, "GTIN14" - GTIN-14 "GTIN13" - GTIN-13 (EAN-13) "ISBN13" - GTIN-13 (ISBN-13) "GTIN12" - GTIN-12 (UPC-A) "ISBN10" - ISBN-10 "GTIN8" - GTIN-8 (EAN-8) "UPCE" - UPC-E "MPN" - MPN "other" - Other */
3194
- producerCodesStandard: (producerCodesStandard: 'auto'|'gtin14'|'gtin13'|'isbn13'|'gtin12'|'isbn10'|'gtin8'|'upce'|'mpn'|'other') => this
3194
+ producerCodesStandard: (producerCodesStandard: 'auto'|'GTIN14'|'GTIN13'|'ISBN13'|'GTIN12'|'ISBN10'|'GTIN8'|'UPCE'|'MPN'|'other') => this
3195
3195
  /** JavaScript code displayed in the product page of the IdoSell Shop */
3196
- javaScriptInTheItemCard: (javaScriptInTheItemCard: Array<JSObject>) => this
3196
+ javaScriptInTheItemCard: (javaScriptInTheItemCard: RequestParams.PutProductsParams["products"][number]["javaScriptInTheItemCard"]) => this
3197
3197
  /** Saving serial numbers Available values: "na" - not used, "optional" - Optional, "required" - required. */
3198
3198
  serialNumbersOption: (serialNumbersOption: 'na'|'optional'|'required') => this
3199
3199
  /** Shipping, returns and complaints settings */
3200
- dispatchSettings: (dispatchSettings: JSObject) => this
3200
+ dispatchSettings: (dispatchSettings: RequestParams.PutProductsParams["products"][number]["dispatchSettings"]) => this
3201
3201
  /** Standard unit settings */
3202
- standardUnit: (standardUnit: JSObject) => this
3202
+ standardUnit: (standardUnit: RequestParams.PutProductsParams["products"][number]["standardUnit"]) => this
3203
3203
  /** Minimal number of products in an order */
3204
- minQuantityPerOrder: (minQuantityPerOrder: JSObject) => this
3204
+ minQuantityPerOrder: (minQuantityPerOrder: RequestParams.PutProductsParams["products"][number]["minQuantityPerOrder"]) => this
3205
3205
  /** */
3206
3206
  dynamicPricingEnabled: (dynamicPricingEnabled: string) => this
3207
3207
  /** The setting allows you to reset the inventory to zero */
3208
- clearStockQuantities: (clearStockQuantities: JSObject) => this
3208
+ clearStockQuantities: (clearStockQuantities: RequestParams.PutProductsParams["products"][number]["clearStockQuantities"]) => this
3209
3209
  /** Dimensions and overall weight */
3210
- productDimensions: (productDimensions: JSObject) => this
3210
+ productDimensions: (productDimensions: RequestParams.PutProductsParams["products"][number]["productDimensions"]) => this
3211
3211
  /** Responsible producer code */
3212
3212
  responsibleProducerCode: (responsibleProducerCode: string) => this
3213
3213
  /** Responsible person code */
@@ -3228,56 +3228,56 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3228
3228
  pictures: (picturesArray: string|string[]) => this;
3229
3229
  }
3230
3230
 
3231
- export interface SearchProductsRequest extends PagableGateway<SearchProductsRequest,SearchProductsResponse> {
3232
- dispatchSettings: (value: JSObject) => this;
3231
+ export interface SearchProductsRequest extends PagableGateway<SearchProductsRequest, SearchProductsResponse, RequestParams.SearchProductsParams> {
3232
+ dispatchSettings: (value: RequestParams.SearchProductsParams["dispatchSettings"]) => this;
3233
3233
  /** Element determines which products should be returned by the gate. Undeleted products are returned by default. Available values: "active" - undeleted products, "deleted" - deleted products. "in_trash" - products in the trash. */
3234
- returnProducts: (value: string) => this;
3234
+ returnProducts: (value: "active" | "deleted" | "in_trash") => this;
3235
3235
  /** Elements to be returned by the endpoint. By default all elements are returned Available values: * lang_data * adding_time, * deleted, * code, * note, * taxcode, * inwrapper, * sellby_retail, * sellby_wholesale, * producer_id, * producer_name, * iaiCategoryId, * iaiCategoryName, * iaiCategoryPath, * category_id, * category_name, * size_group_id, * modification_time, * currency, * currency_shop, * bestseller, * new_product, * retail_price, * wholesale_price, * minimal_price, * automatic_calculation_price, * pos_price, * strikethrough_retail_price, * strikethrough_wholesale_price, * last_purchase_price, * purchase_price_net_average, * purchase_price_net_last, * purchase_price_gross_average, * purchase_price_gross_last, * vat, * vat_free, * rebate, * hotspots_zones, * profit_points, * points, * weight, * export_to_pricecomparers, * export_to_amazon_marketplace, * enable_in_pos, * complex_notes, * available_profile, * traits, * parameters, * version_data, * advance, * promotion, * discount, * distinguished, * special, * visible, * persistent, * priority, * shops_mask, * icon, * icon_for_auctions, * icon_for_group, * pictures, * unit, * warranty, * series, * products_associated, * shops, * quantities, * sizes_attributes, * shops_attributes, * auction_prices, * price_comparers_prices, * deliverer, * sizes, * size_group_name, * pictures_count, * product_type, * price_changed_time, * quantity_changed_time, * deliverer_name, * available_profile_name, * availability_management_type, * sum_in_basket, * menu, * auction_settings, * bundle, * sizeschart_id, * sizeschart_name, * serialnumbers, * producer_codes_standard, * javaScriptInTheItemCard, * productAuctionDescriptionsData, * priceFormula, * productIndividualDescriptionsData, * productIndividualUrlsData, * productServicesDescriptionsData, * cnTaricCode, * productIsGratis, * dimensions, * responsibleProducerCode, * responsiblePersonCode */
3236
3236
  returnElements: (value: string|string[]) => this;
3237
3237
  /** Product availability. Available values: "y" - available, "n" - unavailable. */
3238
- productIsAvailable: (value: string) => this;
3238
+ productIsAvailable: (value: "y" | "n") => this;
3239
3239
  /** Product visibility in store Available values: "y" - Visible, "n" - Invisible. */
3240
- productIsVisible: (value: string) => this;
3240
+ productIsVisible: (value: "y" | "n") => this;
3241
3241
  /** Product group ID */
3242
3242
  productVersionId: (value: number|string) => this;
3243
3243
  /** Promoted product. Available values: "y" - promoted, "n" - not promoted. */
3244
- productInPromotion: (value: string) => this;
3244
+ productInPromotion: (value: "y" | "n") => this;
3245
3245
  /** Product on sale. Available values: "y" - on sale, "n" - not on sale. */
3246
- productInDiscount: (value: string) => this;
3246
+ productInDiscount: (value: "y" | "n") => this;
3247
3247
  /** Distinguished product. Available values: "y" - distinguished, "n" - not distinguished. */
3248
- productInDistinguished: (value: string) => this;
3248
+ productInDistinguished: (value: "y" | "n") => this;
3249
3249
  /** Special product. Available values: "y" - #!specjalny!#, "n" - not special. */
3250
- productInSpecial: (value: string) => this;
3250
+ productInSpecial: (value: "y" | "n") => this;
3251
3251
  /** Product available for points. Available values: "y" - Available for points, "n" - Unavailable for points. */
3252
- productInForPointsSelling: (value: string) => this;
3252
+ productInForPointsSelling: (value: "y" | "n") => this;
3253
3253
  /** Observed product. Available values: "Y" - observed, "n" - not observed. */
3254
- productIsObservedByClients: (value: string) => this;
3254
+ productIsObservedByClients: (value: "Y" | "n") => this;
3255
3255
  /** Element determines if default product (with 0 ID, contains settings of newly added products) should be omitted Available values: "y" - omits default product, "n" - allows to download default product. */
3256
- skipDefaultProduct: (value: string) => this;
3256
+ skipDefaultProduct: (value: "y" | "n") => this;
3257
3257
  /** The item specifies whether promotional prices are to be shown in price nodes. Available values: "y" - show promotional prices, "n" - do not show promotional prices. (default value) */
3258
- showPromotionsPrices: (value: string) => this;
3258
+ showPromotionsPrices: (value: "y" | "n") => this;
3259
3259
  /** List of categories in which sought products are present. */
3260
- categories: (value: Array<JSObject>) => this;
3260
+ categories: (value: RequestParams.SearchProductsParams["categories"]) => this;
3261
3261
  /** List of manufacturers assigned to sought products. */
3262
- producers: (value: Array<JSObject>) => this;
3262
+ producers: (value: RequestParams.SearchProductsParams["producers"]) => this;
3263
3263
  /** List of sought products. This parameter can be used, when there have been no other parameter entered productIndexes. */
3264
- productParams: (value: Array<JSObject>) => this;
3264
+ productParams: (value: RequestParams.SearchProductsParams["productParams"]) => this;
3265
3265
  /** List of sought products by indexes. */
3266
- productIndexes: (value: Array<JSObject>) => this;
3266
+ productIndexes: (value: RequestParams.SearchProductsParams["productIndexes"]) => this;
3267
3267
  /** Data of stores product is assigned to. */
3268
- productShops: (value: Array<JSObject>) => this;
3268
+ productShops: (value: RequestParams.SearchProductsParams["productShops"]) => this;
3269
3269
  /** List of special offers, sought products are assigned to. */
3270
3270
  productPromotionsIds: (value: number|string|number[]|string[]) => this;
3271
3271
  /** Settings concerning narrowing list of products found by date. */
3272
- productDate: (value: JSObject) => this;
3272
+ productDate: (value: RequestParams.SearchProductsParams["productDate"]) => this;
3273
3273
  /** Parameters */
3274
- productParametersParams: (value: Array<JSObject>) => this;
3274
+ productParametersParams: (value: RequestParams.SearchProductsParams["productParametersParams"]) => this;
3275
3275
  /** Series, sought products are assigned to. */
3276
- productSeriesParams: (value: Array<JSObject>) => this;
3276
+ productSeriesParams: (value: RequestParams.SearchProductsParams["productSeriesParams"]) => this;
3277
3277
  /** List of units of measure assigned to sought products. */
3278
- productUnits: (value: Array<JSObject>) => this;
3278
+ productUnits: (value: RequestParams.SearchProductsParams["productUnits"]) => this;
3279
3279
  /** Narrowing list of products by set warranties. */
3280
- productWarranties: (value: Array<JSObject>) => this;
3280
+ productWarranties: (value: RequestParams.SearchProductsParams["productWarranties"]) => this;
3281
3281
  /** Suppliers, sought products are assigned to. */
3282
3282
  deliverersIds: (value: number|string|number[]|string[]) => this;
3283
3283
  /** Product contains text (searches in short and long description). */
@@ -3285,15 +3285,15 @@ export interface SearchProductsRequest extends PagableGateway<SearchProductsRequ
3285
3285
  /** Product code or it's part (based on producer's code, external product system code and code that is visible on a product card). Search is accesible only with available products. */
3286
3286
  containsCodePart: (value: string) => this;
3287
3287
  /** Product availability in stocks */
3288
- productAvailableInStocks: (value: JSObject) => this;
3288
+ productAvailableInStocks: (value: RequestParams.SearchProductsParams["productAvailableInStocks"]) => this;
3289
3289
  /** Product availability on auctions */
3290
- productAvailableInAuctions: (value: JSObject) => this;
3290
+ productAvailableInAuctions: (value: RequestParams.SearchProductsParams["productAvailableInAuctions"]) => this;
3291
3291
  /** Page with results number. Numeration starts from 0 */
3292
3292
  resultsPage: (value: number|string) => this;
3293
3293
  /** Number of results on page. Value from 1 to 100 */
3294
3294
  resultsLimit: (value: number|string) => this;
3295
3295
  /** Possibility of sorting returned list */
3296
- ordersBy: (value: Array<JSObject>) => this;
3296
+ ordersBy: (value: RequestParams.SearchProductsParams["ordersBy"]) => this;
3297
3297
  /** Language ID that allows to search and return data in chosen language. This parameter is optional. If it's lacking, she search process unfolds in all available languages. */
3298
3298
  productSearchingLangId: (value: string) => this;
3299
3299
  /** Currency ID allowing to search and browse products in given currency. This parameter is optional, when it's lacking, the search process unfolds in all available currencies. */
@@ -3303,45 +3303,45 @@ export interface SearchProductsRequest extends PagableGateway<SearchProductsRequ
3303
3303
  /** Annotation contains text. */
3304
3304
  productHasNote: (value: string) => this;
3305
3305
  /** Product visibility in export to price comparison and marketplaces. Available values: "y" - Visible, "selected" - Selected, "assign_selected" - Enable the visibility of the product in the export to price comparison sites passed in the priceComparisonSites node. Price comparison sites previously assigned to the commodity will be retained, "unassign_selected" - Disable product visibility in exports to price comparison sites passed in the priceComparisonSites node, "n" - invisible. */
3306
- productInExportToPriceComparisonSites: (value: string) => this;
3306
+ productInExportToPriceComparisonSites: (value: "y" | "selected" | "assign_selected" | "unassign_selected" | "n") => this;
3307
3307
  /** Visibility of an item in an export to Amazon Marketplace. Available values: "y" - Visible, "selected" - Visible on selected regional services, "n" - invisible. */
3308
- productInExportToAmazonMarketplace: (value: string) => this;
3308
+ productInExportToAmazonMarketplace: (value: "y" | "selected" | "n") => this;
3309
3309
  /** List of Amazon regional sites to which the product is exported (only in case of "selected" option) */
3310
3310
  selectedAmazonMarketplacesList: (value: string|string[]) => this;
3311
3311
  /** Product is bestseller. Available values: "n" - no, "y" - yes. */
3312
- productInBestseller: (value: string) => this;
3312
+ productInBestseller: (value: "n" | "y") => this;
3313
3313
  /** Product is new. Available values: "y" - is new, "n" - is not new. */
3314
- productInNew: (value: string) => this;
3314
+ productInNew: (value: "y" | "n") => this;
3315
3315
  /** Shops */
3316
- searchByShops: (value: JSObject) => this;
3316
+ searchByShops: (value: RequestParams.SearchProductsParams["searchByShops"]) => this;
3317
3317
  /** Price range for sought products. */
3318
- productSearchPriceRange: (value: JSObject) => this;
3318
+ productSearchPriceRange: (value: RequestParams.SearchProductsParams["productSearchPriceRange"]) => this;
3319
3319
  /** VAT value for sought products */
3320
3320
  productVatRates: (value: Array<Number>) => this;
3321
3321
  /** Is product VAT-free Allowed values "y" - yes, "n" - no. */
3322
3322
  productIsVatFree: (value: string) => this;
3323
3323
  /** Product has defined wholesale price. Available values: "y" - has wholesale price, "n" - does not have wholesale price. */
3324
- productHasWholesalePrice: (value: string) => this;
3324
+ productHasWholesalePrice: (value: "y" | "n") => this;
3325
3325
  /** Product visible even though out of stock Available values: "y" - visible even though out of stock, "n" - not visible when out of stock. */
3326
- productInPersistent: (value: string) => this;
3326
+ productInPersistent: (value: "y" | "n") => this;
3327
3327
  /** Settings of products returned with variants All products with variants are returned by default Available values: version_all - returns all variants, version_main - returns only main variant. */
3328
3328
  returnProductsVersions: (value: string) => this;
3329
3329
  /** Do You wish to sum up the products in the basket as a one order? Available values: "y" - yes, "n" - no. */
3330
- productInSumInBasket: (value: string) => this;
3330
+ productInSumInBasket: (value: "y" | "n") => this;
3331
3331
  /** Product type. Allowed values: "product_item" - Goods, "product_packaging" - packaging, "product_bundle" - set. "product_collection" - collection. "product_service" - service. "product_virtual" - virtual product. "product_configurable" - configurable product. */
3332
- productType: (value: JSObject) => this;
3332
+ productType: (value: RequestParams.SearchProductsParams["productType"]) => this;
3333
3333
  /** An array of menu elements */
3334
- productMenuItems: (value: JSObject) => this;
3334
+ productMenuItems: (value: RequestParams.SearchProductsParams["productMenuItems"]) => this;
3335
3335
  /** Warehouse location ID */
3336
3336
  productLocationId: (value: number|string) => this;
3337
3337
  /** Warehouse location full path Use a backslash (\) as a separator, for example: M1\Section name\Location name If location_id parameter is provided, the full warehouse location path will not be taken into account */
3338
3338
  productLocationTextId: (value: string) => this;
3339
3339
  /** Return all size attributes regardless of whether product prices are the same as the base price or if they differ from it. Available values: 1 - all size attributes will be returned; 0 - only attributes of those sizes, where the prices will be different from the base price (default value) will be returned. */
3340
- alwaysReturnProductShopSizesAttributes: (value: Boolean) => this;
3340
+ alwaysReturnProductShopSizesAttributes: (value: boolean) => this;
3341
3341
  /** Returns reservation information regardless of inventory levels */
3342
- returnEmptyStocksWithReservation: (value: Boolean) => this;
3342
+ returnEmptyStocksWithReservation: (value: boolean) => this;
3343
3343
  /** Data for operations on individual photos */
3344
- picturesData: (value: JSObject) => this;
3344
+ picturesData: (value: RequestParams.SearchProductsParams["picturesData"]) => this;
3345
3345
  /** Responsible producer code */
3346
3346
  responsibleProducerCode: (value: string) => this;
3347
3347
  /** Responsible person code */
@@ -3422,7 +3422,7 @@ export interface GetProductsQuestionsRequest extends Gateway {
3422
3422
  productId: (value: number|string) => this;
3423
3423
  }
3424
3424
 
3425
- export interface PutProductsQuestionsRequest extends AppendableGateway<PutProductsQuestionsRequest, JSObject> {
3425
+ export interface PutProductsQuestionsRequest extends AppendableGateway<PutProductsQuestionsRequest> {
3426
3426
  /** Question Board. */
3427
3427
  questions: (value: Array<JSObject>) => this;
3428
3428
  /** Question ID. */
@@ -3483,7 +3483,7 @@ export interface GetProductsSeriesFilterRequest extends Gateway {
3483
3483
  serieId: (value: number|string) => this;
3484
3484
  }
3485
3485
 
3486
- export interface PutProductsSeriesFilterRequest extends AppendableGateway<PutProductsSeriesFilterRequest, JSObject> {
3486
+ export interface PutProductsSeriesFilterRequest extends AppendableGateway<PutProductsSeriesFilterRequest> {
3487
3487
  /** Shop Id */
3488
3488
  shopId: (value: number|string) => this;
3489
3489
  /** Language ID (code in ISO 639-2). */
@@ -3505,7 +3505,7 @@ export interface PutProductsSeriesFilterRequest extends AppendableGateway<PutPro
3505
3505
  filterDefaultEnabled: (filterDefaultEnabled: 'y'|'n') => this
3506
3506
  }
3507
3507
 
3508
- export interface GetProductsSeriesRequest extends PagableGateway<GetProductsSeriesRequest,GetProductsSeriesResponse> {
3508
+ export interface GetProductsSeriesRequest extends PagableGateway<GetProductsSeriesRequest, GetProductsSeriesResponse> {
3509
3509
  /** With "y" value it returns the last series modification date in YYYY-MM-DD HH:MM:SS format. */
3510
3510
  return_last_changed_time: (value: string) => this;
3511
3511
  /** IDs */
@@ -3520,7 +3520,7 @@ export interface GetProductsSeriesRequest extends PagableGateway<GetProductsSeri
3520
3520
  resultsLimit: (value: number|string) => this;
3521
3521
  }
3522
3522
 
3523
- export interface PutProductsSeriesRequest extends AppendableGateway<PutProductsSeriesRequest, JSObject> {
3523
+ export interface PutProductsSeriesRequest extends AppendableGateway<PutProductsSeriesRequest> {
3524
3524
  /** Series list. */
3525
3525
  series: (value: Array<JSObject>) => this;
3526
3526
  /** Id */
@@ -3531,7 +3531,7 @@ export interface PutProductsSeriesRequest extends AppendableGateway<PutProductsS
3531
3531
  shopsConfigurations: (shopsConfigurations: Array<JSObject>) => this
3532
3532
  }
3533
3533
 
3534
- export interface DeleteProductsSizesRequest extends AppendableGateway<DeleteProductsSizesRequest, JSObject> {
3534
+ export interface DeleteProductsSizesRequest extends AppendableGateway<DeleteProductsSizesRequest> {
3535
3535
  /** Edition mode */
3536
3536
  mode: (value: 'delete_by_size'|'delete_all') => this;
3537
3537
  /** Parameters transmitted to method */
@@ -3549,7 +3549,7 @@ export interface GetProductsSizesRequest extends Gateway<GetProductsSizesRespons
3549
3549
  page: (pagenumber: number, pageSize?: number) => this;
3550
3550
  }
3551
3551
 
3552
- export interface PutProductsSizesRequest extends AppendableGateway<PutProductsSizesRequest, JSObject> {
3552
+ export interface PutProductsSizesRequest extends AppendableGateway<PutProductsSizesRequest> {
3553
3553
  /** Edition mode */
3554
3554
  mode: (value: 'edit'|'add'|'replace') => this;
3555
3555
  /** Product parameters recognized by product ID or its sizes */
@@ -3562,7 +3562,7 @@ export interface PutProductsSizesRequest extends AppendableGateway<PutProductsSi
3562
3562
  sizes: (sizes: Array<JSObject>) => this
3563
3563
  }
3564
3564
 
3565
- export interface PutProductsStockQuantityRequest extends AppendableGateway<PutProductsStockQuantityRequest, JSObject> {
3565
+ export interface PutProductsStockQuantityRequest extends AppendableGateway<PutProductsStockQuantityRequest> {
3566
3566
  /** Products list. */
3567
3567
  products: (value: Array<JSObject>) => this;
3568
3568
  /** Product index */
@@ -3589,7 +3589,7 @@ export interface GetProductsStocksRequest extends Gateway<GetProductsStocksRespo
3589
3589
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3590
3590
  }
3591
3591
 
3592
- export interface PutProductsStocksRequest extends AppendableGateway<PutProductsStocksRequest, JSObject> {
3592
+ export interface PutProductsStocksRequest extends AppendableGateway<PutProductsStocksRequest> {
3593
3593
  /** Products list. */
3594
3594
  products: (value: Array<JSObject>) => this;
3595
3595
  /** */
@@ -3610,7 +3610,7 @@ export interface GetProductsStrikethroughPricesRequest extends Gateway<GetProduc
3610
3610
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3611
3611
  }
3612
3612
 
3613
- export interface PutProductsStrikethroughPricesRequest extends AppendableGateway<PutProductsStrikethroughPricesRequest, JSObject> {
3613
+ export interface PutProductsStrikethroughPricesRequest extends AppendableGateway<PutProductsStrikethroughPricesRequest> {
3614
3614
  /** Products list. */
3615
3615
  products: (value: Array<JSObject>) => this;
3616
3616
  /** Identifier type. */
@@ -3631,7 +3631,7 @@ export interface PutProductsStrikethroughPricesRequest extends AppendableGateway
3631
3631
  addPricePercent: (value: number, wholesale?: boolean, base?: 'price' | 'price_minimal' | 'price_pos' | 'price_srp' | 'price_crossed') => this;
3632
3632
  }
3633
3633
 
3634
- export interface PutProductsSupplierCodeRequest extends AppendableGateway<PutProductsSupplierCodeRequest, JSObject> {
3634
+ export interface PutProductsSupplierCodeRequest extends AppendableGateway<PutProductsSupplierCodeRequest> {
3635
3635
  /** Products list. */
3636
3636
  products: (value: Array<JSObject>) => this;
3637
3637
  /** Product IAI code */
@@ -3640,7 +3640,7 @@ export interface PutProductsSupplierCodeRequest extends AppendableGateway<PutPro
3640
3640
  productDeliverers: (productDeliverers: Array<JSObject>) => this
3641
3641
  }
3642
3642
 
3643
- export interface PutProductsSupplierProductDataRequest extends AppendableGateway<PutProductsSupplierProductDataRequest, JSObject> {
3643
+ export interface PutProductsSupplierProductDataRequest extends AppendableGateway<PutProductsSupplierProductDataRequest> {
3644
3644
  /** Products list. */
3645
3645
  products: (value: Array<JSObject>) => this;
3646
3646
  /** Product IAI code */
@@ -3672,7 +3672,7 @@ export interface PutProductsSynchronizationFinishUploadRequest extends Gateway {
3672
3672
  /** Total number of files in the parcel. */
3673
3673
  filesInPackage: (value: number|string) => this;
3674
3674
  /** Whether to verify the package by sparsifying files and preparing requests. It may take a few minutes to answer. */
3675
- verifyFiles: (value: Boolean) => this;
3675
+ verifyFiles: (value: boolean) => this;
3676
3676
  }
3677
3677
 
3678
3678
  export interface PostRefundsAddAutomaticRefundRequest extends Gateway {
@@ -3686,7 +3686,7 @@ export interface PostRefundsAddAutomaticRefundForOrderRequest extends Gateway {
3686
3686
  /** Source ID. */
3687
3687
  sourceId: (value: number|string) => this;
3688
3688
  /** Amount. */
3689
- refundValue: (value: Number) => this;
3689
+ refundValue: (value: number) => this;
3690
3690
  /** Payment ID. */
3691
3691
  paymentId: (value: number|string) => this;
3692
3692
  /** Payment currency. */
@@ -3699,7 +3699,7 @@ export interface PostRefundsAddManualRefundRequest extends Gateway {
3699
3699
  /** Source ID. */
3700
3700
  sourceId: (value: number|string) => this;
3701
3701
  /** Amount. */
3702
- refundValue: (value: Number) => this;
3702
+ refundValue: (value: number) => this;
3703
3703
  /** Payment currency. */
3704
3704
  refundCurrency: (value: string) => this;
3705
3705
  refundDetails: (value: JSObject) => this;
@@ -3756,12 +3756,12 @@ export interface PutRefundsUpdateRefundRequest extends Gateway {
3756
3756
  /** Payment ID. */
3757
3757
  paymentId: (value: string) => this;
3758
3758
  /** Amount. */
3759
- refundValue: (value: Number) => this;
3759
+ refundValue: (value: number) => this;
3760
3760
  /** Payment currency. */
3761
3761
  refundCurrency: (value: string) => this;
3762
3762
  }
3763
3763
 
3764
- export interface GetResponsibilityEntitiesRequest extends PagableGateway<GetResponsibilityEntitiesRequest,GetResponsibilityEntitiesResponse> {
3764
+ export interface GetResponsibilityEntitiesRequest extends PagableGateway<GetResponsibilityEntitiesRequest, GetResponsibilityEntitiesResponse> {
3765
3765
  /** List of codes */
3766
3766
  code: (value: string|string[]) => this;
3767
3767
  /** Type of entity */
@@ -3772,8 +3772,8 @@ export interface GetResponsibilityEntitiesRequest extends PagableGateway<GetResp
3772
3772
  resultsLimit: (value: number|string) => this;
3773
3773
  }
3774
3774
 
3775
- export interface PostResponsibilityEntitiesRequest extends AppendableGateway<PostResponsibilityEntitiesRequest, JSObject> {
3776
- entities: (value: Array<JSObject>) => this;
3775
+ export interface PostResponsibilityEntitiesRequest extends AppendableGateway<PostResponsibilityEntitiesRequest, PostResponsibilityEntitiesResponse, RequestParams.PostResponsibilityEntitiesParams> {
3776
+ entities: (value: RequestParams.PostResponsibilityEntitiesParams["entities"]) => this;
3777
3777
  /** Type of entity */
3778
3778
  type: (value: 'producer'|'person') => this;
3779
3779
  /** Identificator of the entity. */
@@ -3804,7 +3804,7 @@ export interface PostResponsibilityEntitiesRequest extends AppendableGateway<Pos
3804
3804
  url: (url: string) => this
3805
3805
  }
3806
3806
 
3807
- export interface PutResponsibilityEntitiesRequest extends AppendableGateway<PutResponsibilityEntitiesRequest, JSObject> {
3807
+ export interface PutResponsibilityEntitiesRequest extends AppendableGateway<PutResponsibilityEntitiesRequest> {
3808
3808
  entities: (value: Array<JSObject>) => this;
3809
3809
  /** Type of entity */
3810
3810
  type: (value: 'producer'|'person') => this;
@@ -3843,7 +3843,7 @@ export interface DeleteResponsibilityEntitiesRequest extends Gateway {
3843
3843
  type: (value: string) => this;
3844
3844
  }
3845
3845
 
3846
- export interface GetReturnsRequest extends PagableGateway<GetReturnsRequest,GetReturnsResponse> {
3846
+ export interface GetReturnsRequest extends PagableGateway<GetReturnsRequest, GetReturnsResponse> {
3847
3847
  /** Search by the order serial number to which a return was added. */
3848
3848
  order_sn: (value: number|string) => this;
3849
3849
  /** Search by return ID. */
@@ -3863,23 +3863,23 @@ export interface GetReturnsRequest extends PagableGateway<GetReturnsRequest,GetR
3863
3863
  /** Search by ID of a stock to which a return is sent. */
3864
3864
  stock_id: (value: number|string) => this;
3865
3865
  /** Return a set as its constituent products */
3866
- bundleAsProducts: (value: Boolean) => this;
3866
+ bundleAsProducts: (value: boolean) => this;
3867
3867
  /** Define range of dates and their type */
3868
3868
  dates: (dateFrom: DateLike, dateTo: DateLike, type: "date_add"|"date_end") => this;
3869
3869
  }
3870
3870
 
3871
- export interface PostReturnsRequest extends AppendableGateway<PostReturnsRequest, JSObject> {
3871
+ export interface PostReturnsRequest extends AppendableGateway<PostReturnsRequest, PostReturnsResponse, RequestParams.PostReturnsParams> {
3872
3872
  /** Order serial number */
3873
3873
  order_sn: (value: number|string) => this;
3874
3874
  stock_id: (value: number|string) => this;
3875
3875
  /** Products list. */
3876
- products: (value: Array<JSObject>) => this;
3876
+ products: (value: RequestParams.PostReturnsParams["products"]) => this;
3877
3877
  status: (value: number|string) => this;
3878
- client_received: (value: Boolean) => this;
3879
- change_status: (value: Boolean) => this;
3878
+ client_received: (value: boolean) => this;
3879
+ change_status: (value: boolean) => this;
3880
3880
  courier_id: (value: number|string) => this;
3881
3881
  return_operator: (value: string) => this;
3882
- tryCorrectInvoice: (value: Boolean) => this;
3882
+ tryCorrectInvoice: (value: boolean) => this;
3883
3883
  include_shipping_cost: (value: string) => this;
3884
3884
  additional_payment_cost: (value: string) => this;
3885
3885
  emptyReturn: (value: 'n'|'y') => this;
@@ -3897,16 +3897,16 @@ export interface PostReturnsRequest extends AppendableGateway<PostReturnsRequest
3897
3897
  productOrderAdditional: (productOrderAdditional: string) => this
3898
3898
  }
3899
3899
 
3900
- export interface PutReturnsRequest extends AppendableGateway<PutReturnsRequest, JSObject> {
3901
- returns: (value: Array<JSObject>) => this;
3900
+ export interface PutReturnsRequest extends AppendableGateway<PutReturnsRequest, PutReturnsResponse, RequestParams.PutReturnsParams> {
3901
+ returns: (value: RequestParams.PutReturnsParams["returns"]) => this;
3902
3902
  /** */
3903
3903
  id: (id: number|string) => this
3904
3904
  /** */
3905
3905
  status: (status: number|string) => this
3906
3906
  /** 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. */
3907
- apiFlag: (apiFlag: JSObject) => this
3907
+ apiFlag: (apiFlag: RequestParams.PutReturnsParams["returns"][number]["apiFlag"]) => this
3908
3908
  /** Products list. */
3909
- products: (products: Array<JSObject>) => this
3909
+ products: (products: RequestParams.PutReturnsParams["returns"][number]["products"]) => this
3910
3910
  /** */
3911
3911
  userNote: (userNote: string) => this
3912
3912
  /** Notes from customer. */
@@ -3915,7 +3915,7 @@ export interface PutReturnsRequest extends AppendableGateway<PutReturnsRequest,
3915
3915
  tryCorrectInvoice: (tryCorrectInvoice: boolean) => this
3916
3916
  }
3917
3917
 
3918
- export interface PutReturnsSerialNumberRequest extends AppendableGateway<PutReturnsSerialNumberRequest, JSObject> {
3918
+ export interface PutReturnsSerialNumberRequest extends AppendableGateway<PutReturnsSerialNumberRequest> {
3919
3919
  /** Return number. */
3920
3920
  return_id: (value: number|string) => this;
3921
3921
  /** Products list. */
@@ -3930,7 +3930,7 @@ export interface PutReturnsSerialNumberRequest extends AppendableGateway<PutRetu
3930
3930
 
3931
3931
  export interface GetReturnsStatusesRequest extends Gateway {}
3932
3932
 
3933
- export interface GetRmaRequest extends PagableGateway<GetRmaRequest,GetRmaResponse> {
3933
+ export interface GetRmaRequest extends PagableGateway<GetRmaRequest, GetRmaResponse> {
3934
3934
  rmaIds: (value: number|string|number[]|string[]) => this;
3935
3935
  /** Stock ID */
3936
3936
  stockId: (value: number|string) => this;
@@ -3956,15 +3956,15 @@ export interface GetRmaRequest extends PagableGateway<GetRmaRequest,GetRmaRespon
3956
3956
  ended: (dateFrom: DateLike, dateTo: DateLike) => this;
3957
3957
  }
3958
3958
 
3959
- export interface PutRmaRequest extends AppendableGateway<PutRmaRequest, JSObject> {
3959
+ export interface PutRmaRequest extends AppendableGateway<PutRmaRequest, PutRmaResponse, RequestParams.PutRmaParams> {
3960
3960
  /** Complaints. */
3961
- rmas: (value: Array<JSObject>) => this;
3961
+ rmas: (value: RequestParams.PutRmaParams["rmas"]) => this;
3962
3962
  /** Complaint id. */
3963
3963
  rmaId: (rmaId: number|string) => this
3964
3964
  /** Claim status. Available values: 15 - Complaint not confirmed by the shop service, 17 - The complaint has been cancelled, 18 - Complaint canceled by the customer, 14 - Complaint didn't arrive, 20 - Complaint not handled, 22 - Complaint rejected - no fault was found, 23 - Complaint rejected - the warranty period has expired, 24 - Complaint rejected - defect caused by improper use, 19 - Complaint confirmed, 28 - Complaint is being considered - repair completed, 5 - Complaint is being considered - Product sent to the producer , 4 - Complaint is being considered - Product was sent for testing, 6 - Complaint is being considered - Repair in progress, 29 - Complaint is being considered - the complaint requires additional information from the customer, 7 - Complaint adjusted negatively - no fault was found, 9 - Complaint adjusted negatively - the warranty period has expired, 30 - Complaint adjusted negatively - return shipment sent to the customer, 8 - Complaint adjusted negatively - defect caused by improper use, 25 - Complaint handled positively - return shipment sent to the customer, 12 - Complaint handled positively - replacement for a new product, 13 - Complaint handled positively - replacement for a different product, 26 - Complaint handled positively - a new item was shipped without waiting for the original one, 27 - Complaint handled positively - the recipient's data change on the sales document, 10 - Complaint handled positively - Refund - payment processing, 11 - Complaint handled positively - repair completed - payout made, 31 - Complaint handled positively - Awaiting correction invoice confirmation, 34 - Complaint handled positively - Refund - preparing correction invoice */
3965
3965
  rmaStatusId: (rmaStatusId: number|string) => this
3966
3966
  /** Customer correspondence. */
3967
- rmaChat: (rmaChat: Array<JSObject>) => this
3967
+ rmaChat: (rmaChat: RequestParams.PutRmaParams["rmas"][number]["rmaChat"]) => this
3968
3968
  }
3969
3969
 
3970
3970
  export interface GetRmaStatusesRequest extends Gateway {}
@@ -3978,7 +3978,7 @@ export interface DeleteSizechartsRequest extends Gateway {
3978
3978
  ids: (value: number|string|number[]|string[]) => this;
3979
3979
  }
3980
3980
 
3981
- export interface GetSizechartsRequest extends PagableGateway<GetSizechartsRequest,GetSizechartsResponse> {
3981
+ export interface GetSizechartsRequest extends PagableGateway<GetSizechartsRequest, GetSizechartsResponse> {
3982
3982
  /** IDs */
3983
3983
  ids: (value: number|string|number[]|string[]) => this;
3984
3984
  /** Names of size charts */
@@ -3991,7 +3991,7 @@ export interface GetSizechartsRequest extends PagableGateway<GetSizechartsReques
3991
3991
  resultsLimit: (value: number|string) => this;
3992
3992
  }
3993
3993
 
3994
- export interface PutSizechartsRequest extends AppendableGateway<PutSizechartsRequest, JSObject> {
3994
+ export interface PutSizechartsRequest extends AppendableGateway<PutSizechartsRequest> {
3995
3995
  sizeCharts: (value: Array<JSObject>) => this;
3996
3996
  /** Id */
3997
3997
  id: (id: number|string) => this
@@ -4008,7 +4008,7 @@ export interface GetSizesRequest extends Gateway<GetSizesResponse> {
4008
4008
  return_last_changed_time: (value: string) => this;
4009
4009
  }
4010
4010
 
4011
- export interface PutSizesRequest extends AppendableGateway<PutSizesRequest, JSObject> {
4011
+ export interface PutSizesRequest extends AppendableGateway<PutSizesRequest> {
4012
4012
  /** Size table. */
4013
4013
  sizes: (value: Array<JSObject>) => this;
4014
4014
  /** Error code. */
@@ -4029,7 +4029,7 @@ export interface PutSizesRequest extends AppendableGateway<PutSizesRequest, JSOb
4029
4029
  lang_data: (lang_data: Array<JSObject>) => this
4030
4030
  }
4031
4031
 
4032
- export interface GetSnippetsCampaignRequest extends PagableGateway<GetSnippetsCampaignRequest,GetSnippetsCampaignResponse> {
4032
+ export interface GetSnippetsCampaignRequest extends PagableGateway<GetSnippetsCampaignRequest, GetSnippetsCampaignResponse> {
4033
4033
  /** List of shop identifiers */
4034
4034
  shopId: (value: number|string|number[]|string[]) => this;
4035
4035
  /** List of identifiers */
@@ -4042,7 +4042,7 @@ export interface GetSnippetsCampaignRequest extends PagableGateway<GetSnippetsCa
4042
4042
  resultsLimit: (value: number|string) => this;
4043
4043
  }
4044
4044
 
4045
- export interface PostSnippetsCampaignRequest extends AppendableGateway<PostSnippetsCampaignRequest, JSObject> {
4045
+ export interface PostSnippetsCampaignRequest extends AppendableGateway<PostSnippetsCampaignRequest> {
4046
4046
  campaigns: (value: Array<JSObject>) => this;
4047
4047
  /** undefined */
4048
4048
  id: (id: number|string) => this
@@ -4060,7 +4060,7 @@ export interface PostSnippetsCampaignRequest extends AppendableGateway<PostSnipp
4060
4060
  configVariables: (configVariables: Array<JSObject>) => this
4061
4061
  }
4062
4062
 
4063
- export interface PutSnippetsCampaignRequest extends AppendableGateway<PutSnippetsCampaignRequest, JSObject> {
4063
+ export interface PutSnippetsCampaignRequest extends AppendableGateway<PutSnippetsCampaignRequest> {
4064
4064
  campaigns: (value: Array<JSObject>) => this;
4065
4065
  /** Snippet campaign id */
4066
4066
  id: (id: number|string) => this
@@ -4083,7 +4083,7 @@ export interface DeleteSnippetsCampaignRequest extends Gateway {
4083
4083
  id: (value: number|string|number[]|string[]) => this;
4084
4084
  }
4085
4085
 
4086
- export interface GetSnippetsCookiesRequest extends PagableGateway<GetSnippetsCookiesRequest,GetSnippetsCookiesResponse> {
4086
+ export interface GetSnippetsCookiesRequest extends PagableGateway<GetSnippetsCookiesRequest, GetSnippetsCookiesResponse> {
4087
4087
  /** List of identifiers for specific cookies */
4088
4088
  id: (value: number|string|number[]|string[]) => this;
4089
4089
  /** Page with results number. Numeration starts from 0 */
@@ -4092,7 +4092,7 @@ export interface GetSnippetsCookiesRequest extends PagableGateway<GetSnippetsCoo
4092
4092
  resultsLimit: (value: number|string) => this;
4093
4093
  }
4094
4094
 
4095
- export interface PostSnippetsCookiesRequest extends AppendableGateway<PostSnippetsCookiesRequest, JSObject> {
4095
+ export interface PostSnippetsCookiesRequest extends AppendableGateway<PostSnippetsCookiesRequest> {
4096
4096
  cookies: (value: Array<JSObject>) => this;
4097
4097
  /** undefined */
4098
4098
  id: (id: number|string) => this
@@ -4107,14 +4107,14 @@ export interface PostSnippetsCookiesRequest extends AppendableGateway<PostSnippe
4107
4107
  /** Name of the cookie. */
4108
4108
  name: (name: string) => this
4109
4109
  /** Type of the cookie */
4110
- type: (type: 'cookie'|'pixel'|'localstorage') => this
4110
+ type: (type: 'cookie'|'pixel'|'localStorage') => this
4111
4111
  /** Cookie lifetime mode */
4112
4112
  lifeTimeType: (lifeTimeType: 'temporary'|'days'|'minutes') => this
4113
4113
  /** Cookie lifetime */
4114
4114
  lifeTime: (lifeTime: number|string) => this
4115
4115
  }
4116
4116
 
4117
- export interface PutSnippetsCookiesRequest extends AppendableGateway<PutSnippetsCookiesRequest, JSObject> {
4117
+ export interface PutSnippetsCookiesRequest extends AppendableGateway<PutSnippetsCookiesRequest> {
4118
4118
  cookies: (value: Array<JSObject>) => this;
4119
4119
  /** undefined */
4120
4120
  id: (id: number|string) => this
@@ -4129,7 +4129,7 @@ export interface PutSnippetsCookiesRequest extends AppendableGateway<PutSnippets
4129
4129
  /** Name of the cookie. */
4130
4130
  name: (name: string) => this
4131
4131
  /** Type of the cookie */
4132
- type: (type: 'cookie'|'pixel'|'localstorage') => this
4132
+ type: (type: 'cookie'|'pixel'|'localStorage') => this
4133
4133
  /** Cookie lifetime mode */
4134
4134
  lifeTimeType: (lifeTimeType: 'temporary'|'days'|'minutes') => this
4135
4135
  /** Cookie lifetime */
@@ -4141,7 +4141,7 @@ export interface DeleteSnippetsCookiesRequest extends Gateway {
4141
4141
  id: (value: number|string|number[]|string[]) => this;
4142
4142
  }
4143
4143
 
4144
- export interface GetSnippetsRequest extends PagableGateway<GetSnippetsRequest,GetSnippetsResponse> {
4144
+ export interface GetSnippetsRequest extends PagableGateway<GetSnippetsRequest, GetSnippetsResponse> {
4145
4145
  /** List of campaign identifiers */
4146
4146
  campaign: (value: number|string|number[]|string[]) => this;
4147
4147
  /** List of identifiers */
@@ -4154,7 +4154,7 @@ export interface GetSnippetsRequest extends PagableGateway<GetSnippetsRequest,Ge
4154
4154
  resultsLimit: (value: number|string) => this;
4155
4155
  }
4156
4156
 
4157
- export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsRequest, JSObject> {
4157
+ export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsRequest> {
4158
4158
  snippets: (value: Array<JSObject>) => this;
4159
4159
  /** undefined */
4160
4160
  id: (id: number|string) => this
@@ -4177,7 +4177,7 @@ export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsReque
4177
4177
  /** Content waiting time (timeout) in seconds. */
4178
4178
  timeout: (timeout: number|string) => this
4179
4179
  /** The place where the code snippet is loaded. */
4180
- zone: (zone: 'head'|'bodybegin'|'bodyend') => this
4180
+ zone: (zone: 'head'|'bodyBegin'|'bodyEnd') => this
4181
4181
  /** The order in which the code snippet will be displayed. */
4182
4182
  order: (order: number|string) => this
4183
4183
  /** Snippet content for each language. */
@@ -4190,7 +4190,7 @@ export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsReque
4190
4190
  sources: (sources: JSObject) => this
4191
4191
  }
4192
4192
 
4193
- export interface PutSnippetsRequest extends AppendableGateway<PutSnippetsRequest, JSObject> {
4193
+ export interface PutSnippetsRequest extends AppendableGateway<PutSnippetsRequest> {
4194
4194
  snippets: (value: Array<JSObject>) => this;
4195
4195
  /** undefined */
4196
4196
  id: (id: number|string) => this
@@ -4213,7 +4213,7 @@ export interface PutSnippetsRequest extends AppendableGateway<PutSnippetsRequest
4213
4213
  /** Content waiting time (timeout) in seconds. */
4214
4214
  timeout: (timeout: number|string) => this
4215
4215
  /** The place where the code snippet is loaded. */
4216
- zone: (zone: 'head'|'bodybegin'|'bodyend') => this
4216
+ zone: (zone: 'head'|'bodyBegin'|'bodyEnd') => this
4217
4217
  /** The order in which the code snippet will be displayed. */
4218
4218
  order: (order: number|string) => this
4219
4219
  /** Snippet content for each language. */
@@ -4244,14 +4244,14 @@ export interface PostSubscriptionsChangeDeliveryDatesRequest extends Gateway {
4244
4244
  /** Settings that determinates if price should be updated automaticly */
4245
4245
  upcomingDeliveryDate: (value: string) => this;
4246
4246
  /** A setting that determines whether to also change the date of the next delivery. */
4247
- changeNextDeliveryDate: (value: Boolean) => this;
4247
+ changeNextDeliveryDate: (value: boolean) => this;
4248
4248
  }
4249
4249
 
4250
4250
  export interface PostSubscriptionsChangePriceAutoUpdateRequest extends Gateway {
4251
4251
  /** Subscription ids */
4252
4252
  subscriptionIds: (value: number|string|number[]|string[]) => this;
4253
4253
  /** Settings that determinates if price should be updated automaticly */
4254
- autoPriceUpdate: (value: Boolean) => this;
4254
+ autoPriceUpdate: (value: boolean) => this;
4255
4255
  }
4256
4256
 
4257
4257
  export interface PostSubscriptionsChangeStatusRequest extends Gateway {
@@ -4260,9 +4260,9 @@ export interface PostSubscriptionsChangeStatusRequest extends Gateway {
4260
4260
  /** Status to set */
4261
4261
  subscriptionStatus: (value: 'active'|'hold'|'nonpayment'|'finished') => this;
4262
4262
  /** Option allowing sending e-mail after status change */
4263
- sendMailAfterStatusChange: (value: Boolean) => this;
4263
+ sendMailAfterStatusChange: (value: boolean) => this;
4264
4264
  /** Optian allowing sending SMS after status change */
4265
- sendSMSAfterStatusChange: (value: Boolean) => this;
4265
+ sendSMSAfterStatusChange: (value: boolean) => this;
4266
4266
  }
4267
4267
 
4268
4268
  export interface PostSubscriptionsDeleteProductRequest extends Gateway {
@@ -4350,7 +4350,7 @@ export interface GetSystemCurrenciesRequest extends Gateway<GetSystemCurrenciesR
4350
4350
  date: (value: string) => this;
4351
4351
  }
4352
4352
 
4353
- export interface PutSystemCurrenciesRequest extends AppendableGateway<PutSystemCurrenciesRequest, JSObject> {
4353
+ export interface PutSystemCurrenciesRequest extends AppendableGateway<PutSystemCurrenciesRequest> {
4354
4354
  currencies: (value: Array<JSObject>) => this;
4355
4355
  /** Currency code in ISO 4217 standard. */
4356
4356
  id: (id: string) => this
@@ -4383,7 +4383,7 @@ export interface GetSystemUnitsRequest extends Gateway<GetSystemUnitsResponse> {
4383
4383
  languagesIds: (value: string|string[]) => this;
4384
4384
  }
4385
4385
 
4386
- export interface PutSystemUnitsRequest extends AppendableGateway<PutSystemUnitsRequest, JSObject> {
4386
+ export interface PutSystemUnitsRequest extends AppendableGateway<PutSystemUnitsRequest> {
4387
4387
  units: (value: Array<JSObject>) => this;
4388
4388
  /** #!IdentyfikatorJednostki!# */
4389
4389
  id: (id: number|string) => this
@@ -4402,7 +4402,7 @@ export interface GetSystemUsersRequest extends Gateway<GetSystemUsersResponse> {
4402
4402
  userType: (value: 'all'|'active') => this;
4403
4403
  }
4404
4404
 
4405
- export interface PutVouchersBlockRequest extends AppendableGateway<PutVouchersBlockRequest, JSObject> {
4405
+ export interface PutVouchersBlockRequest extends AppendableGateway<PutVouchersBlockRequest> {
4406
4406
  vouchers: (value: Array<JSObject>) => this;
4407
4407
  /** Voucher ID */
4408
4408
  id: (id: number|string) => this
@@ -4410,14 +4410,14 @@ export interface PutVouchersBlockRequest extends AppendableGateway<PutVouchersBl
4410
4410
  number: (number: string) => this
4411
4411
  }
4412
4412
 
4413
- export interface GetVouchersTypesRequest extends PagableGateway<GetVouchersTypesRequest,GetVouchersTypesResponse> {
4413
+ export interface GetVouchersTypesRequest extends PagableGateway<GetVouchersTypesRequest, GetVouchersTypesResponse> {
4414
4414
  /** Page with results number. Numeration starts from 0 */
4415
4415
  resultsPage: (value: number|string) => this;
4416
4416
  /** Number of results on page. Value from 1 to 100 */
4417
4417
  resultsLimit: (value: number|string) => this;
4418
4418
  }
4419
4419
 
4420
- export interface PutVouchersUnblockRequest extends AppendableGateway<PutVouchersUnblockRequest, JSObject> {
4420
+ export interface PutVouchersUnblockRequest extends AppendableGateway<PutVouchersUnblockRequest> {
4421
4421
  vouchers: (value: Array<JSObject>) => this;
4422
4422
  /** Voucher ID */
4423
4423
  id: (id: number|string) => this
@@ -4425,7 +4425,7 @@ export interface PutVouchersUnblockRequest extends AppendableGateway<PutVouchers
4425
4425
  number: (number: string) => this
4426
4426
  }
4427
4427
 
4428
- export interface DeleteVouchersRequest extends AppendableGateway<DeleteVouchersRequest, JSObject> {
4428
+ export interface DeleteVouchersRequest extends AppendableGateway<DeleteVouchersRequest> {
4429
4429
  vouchers: (value: Array<JSObject>) => this;
4430
4430
  /** Voucher ID */
4431
4431
  id: (id: number|string) => this
@@ -4433,7 +4433,7 @@ export interface DeleteVouchersRequest extends AppendableGateway<DeleteVouchersR
4433
4433
  number: (number: string) => this
4434
4434
  }
4435
4435
 
4436
- export interface GetVouchersRequest extends PagableGateway<GetVouchersRequest,GetVouchersResponse> {
4436
+ export interface GetVouchersRequest extends PagableGateway<GetVouchersRequest, GetVouchersResponse> {
4437
4437
  vouchers: (value: Array<JSObject>) => this;
4438
4438
  /** Discount code campaign ID */
4439
4439
  voucherTypeId: (value: number|string) => this;
@@ -4446,9 +4446,9 @@ export interface GetVouchersRequest extends PagableGateway<GetVouchersRequest,Ge
4446
4446
  /** Notes contain */
4447
4447
  noteContain: (value: string) => this;
4448
4448
  /** Value from */
4449
- balanceFrom: (value: Number) => this;
4449
+ balanceFrom: (value: number) => this;
4450
4450
  /** Value to */
4451
- balanceTo: (value: Number) => this;
4451
+ balanceTo: (value: number) => this;
4452
4452
  /** Expiration date from */
4453
4453
  expirationDateFrom: (value: string) => this;
4454
4454
  /** Expiration date to */
@@ -4477,7 +4477,7 @@ export interface GetVouchersRequest extends PagableGateway<GetVouchersRequest,Ge
4477
4477
  numbers: (values: number|string|number[]|string[]) => this;
4478
4478
  }
4479
4479
 
4480
- export interface PostVouchersRequest extends AppendableGateway<PostVouchersRequest, JSObject> {
4480
+ export interface PostVouchersRequest extends AppendableGateway<PostVouchersRequest> {
4481
4481
  /** List of vouchers to add */
4482
4482
  vouchers: (value: Array<JSObject>) => this;
4483
4483
  /** Gift voucher type id */
@@ -4496,7 +4496,7 @@ export interface PostVouchersRequest extends AppendableGateway<PostVouchersReque
4496
4496
  note: (note: string) => this
4497
4497
  }
4498
4498
 
4499
- export interface PutVouchersRequest extends AppendableGateway<PutVouchersRequest, JSObject> {
4499
+ export interface PutVouchersRequest extends AppendableGateway<PutVouchersRequest> {
4500
4500
  /** List of vouchers to edit */
4501
4501
  vouchers: (value: Array<JSObject>) => this;
4502
4502
  /** Voucher ID */
@@ -4523,7 +4523,7 @@ export interface GetWarrantiesCountTotalRequest extends Gateway {
4523
4523
  warranty_ids: (value: string|string[]) => this;
4524
4524
  }
4525
4525
 
4526
- export interface PutWarrantiesLanguageDataRequest extends AppendableGateway<PutWarrantiesLanguageDataRequest, JSObject> {
4526
+ export interface PutWarrantiesLanguageDataRequest extends AppendableGateway<PutWarrantiesLanguageDataRequest> {
4527
4527
  lang_data: (value: Array<JSObject>) => this;
4528
4528
  /** Warranty ID (numeric or text based). */
4529
4529
  warranty_id: (warranty_id: string) => this
@@ -4535,7 +4535,7 @@ export interface DeleteWarrantiesRequest extends Gateway {
4535
4535
  warranty_ids: (value: string|string[]) => this;
4536
4536
  }
4537
4537
 
4538
- export interface GetWarrantiesRequest extends PagableGateway<GetWarrantiesRequest,GetWarrantiesResponse> {
4538
+ export interface GetWarrantiesRequest extends PagableGateway<GetWarrantiesRequest, GetWarrantiesResponse> {
4539
4539
  warranty_ids: (value: string|string[]) => this;
4540
4540
  /** Number of results on page. */
4541
4541
  results_limit: (value: number|string) => this;
@@ -4544,7 +4544,7 @@ export interface GetWarrantiesRequest extends PagableGateway<GetWarrantiesReques
4544
4544
  results_order: (value: JSObject) => this;
4545
4545
  }
4546
4546
 
4547
- export interface PostWarrantiesRequest extends AppendableGateway<PostWarrantiesRequest, JSObject> {
4547
+ export interface PostWarrantiesRequest extends AppendableGateway<PostWarrantiesRequest> {
4548
4548
  warranties: (value: Array<JSObject>) => this;
4549
4549
  /** Name. */
4550
4550
  name: (name: string) => this
@@ -4558,7 +4558,7 @@ export interface PostWarrantiesRequest extends AppendableGateway<PostWarrantiesR
4558
4558
  description: (description: JSObject) => this
4559
4559
  }
4560
4560
 
4561
- export interface PutWarrantiesRequest extends AppendableGateway<PutWarrantiesRequest, JSObject> {
4561
+ export interface PutWarrantiesRequest extends AppendableGateway<PutWarrantiesRequest> {
4562
4562
  warranties: (value: Array<JSObject>) => this;
4563
4563
  /** Warranty ID (numeric or text based). */
4564
4564
  id: (id: string) => this
@@ -4570,7 +4570,7 @@ export interface PutWarrantiesRequest extends AppendableGateway<PutWarrantiesReq
4570
4570
  period: (period: number|string) => this
4571
4571
  }
4572
4572
 
4573
- export interface GetWmsLocationsRequest extends PagableGateway<GetWmsLocationsRequest,GetWmsLocationsResponse> {
4573
+ export interface GetWmsLocationsRequest extends PagableGateway<GetWmsLocationsRequest, GetWmsLocationsResponse> {
4574
4574
  /** Warehouse location ID */
4575
4575
  locationId: (value: number|string) => this;
4576
4576
  /** Storage location code */
@@ -4602,7 +4602,7 @@ export interface DeleteWmsStocksdocumentsDocumentsRequest extends Gateway {
4602
4602
  id: (value: number|string) => this;
4603
4603
  }
4604
4604
 
4605
- export interface GetWmsStocksdocumentsDocumentsRequest extends PagableGateway<GetWmsStocksdocumentsDocumentsRequest,GetWmsStocksdocumentsDocumentsResponse> {
4605
+ export interface GetWmsStocksdocumentsDocumentsRequest extends PagableGateway<GetWmsStocksdocumentsDocumentsRequest, GetWmsStocksdocumentsDocumentsResponse> {
4606
4606
  /** Document type. */
4607
4607
  stockDocumentType: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'wz'|'mm'|'zw') => this;
4608
4608
  /** Document status. */
@@ -4623,7 +4623,7 @@ export interface GetWmsStocksdocumentsDocumentsRequest extends PagableGateway<Ge
4623
4623
  dates: (dateFrom: DateLike, dateTo: DateLike, type: "open"|"modify"|"close"|"stockOperation") => this;
4624
4624
  }
4625
4625
 
4626
- export interface PostWmsStocksdocumentsDocumentsRequest extends Gateway {
4626
+ export interface PostWmsStocksdocumentsDocumentsRequest extends Gateway<PostWmsStocksdocumentsDocumentsResponse, RequestParams.PostWmsStocksdocumentsDocumentsParams> {
4627
4627
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm') => this;
4628
4628
  /** Target warehouse ID. The list of available warehouses can be downloaded via the method <a href = "en/shop/api/?action=method&function=systemconfig&method=get">#get</a> in gateway <a href = "en/shop/api/?action=documentation&function=systemconfig">SystemConfig</a>. */
4629
4629
  stockId: (value: number|string) => this;
@@ -4679,7 +4679,7 @@ export interface PutWmsStocksdocumentsDocumentsRequest extends Gateway {
4679
4679
  /** Purchase price currency, e.g. PLN, USD, GBP */
4680
4680
  currencyForPurchasePrice: (value: string) => this;
4681
4681
  /** Currency exchange rate (Currency conversion) */
4682
- currencyForPurchasePriceRate: (value: Number) => this;
4682
+ currencyForPurchasePriceRate: (value: number) => this;
4683
4683
  /** Type of currency rate. Available values: "custom" - not typical, "currentDay" - the currency rate from the day of issuing a stock document, "customDay" - on a selected day, "previousDay" - the currency rate of a working day preceding the date of the stock document issue. */
4684
4684
  currencyForPurchasePriceRateType: (value: 'custom'|'currentDay'|'customDay'|'previousDay') => this;
4685
4685
  /** Currency rate of the day. Correct format is yyyy-mm-dd, e.g. 2007-12-31.. */
@@ -4711,7 +4711,7 @@ export interface GetWmsStocksdocumentsOpenedDocumentsRequest extends PagableGate
4711
4711
  dates: (dateFrom: DateLike, dateTo: DateLike, type: "open"|"modify") => this;
4712
4712
  }
4713
4713
 
4714
- export interface DeleteWmsStocksdocumentsProductsRequest extends AppendableGateway<DeleteWmsStocksdocumentsProductsRequest, JSObject> {
4714
+ export interface DeleteWmsStocksdocumentsProductsRequest extends AppendableGateway<DeleteWmsStocksdocumentsProductsRequest> {
4715
4715
  /** Products list. */
4716
4716
  products: (value: Array<JSObject>) => this;
4717
4717
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm') => this;
@@ -4723,7 +4723,7 @@ export interface DeleteWmsStocksdocumentsProductsRequest extends AppendableGatew
4723
4723
  size: (size: string) => this
4724
4724
  }
4725
4725
 
4726
- export interface GetWmsStocksdocumentsProductsRequest extends PagableGateway<GetWmsStocksdocumentsProductsRequest,GetWmsStocksdocumentsProductsResponse> {
4726
+ export interface GetWmsStocksdocumentsProductsRequest extends PagableGateway<GetWmsStocksdocumentsProductsRequest, GetWmsStocksdocumentsProductsResponse> {
4727
4727
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm'|'wz'|'zw') => this;
4728
4728
  /** Document identifier. */
4729
4729
  id: (value: number|string) => this;
@@ -4733,9 +4733,9 @@ export interface GetWmsStocksdocumentsProductsRequest extends PagableGateway<Get
4733
4733
  results_limit: (value: number|string) => this;
4734
4734
  }
4735
4735
 
4736
- export interface PostWmsStocksdocumentsProductsRequest extends AppendableGateway<PostWmsStocksdocumentsProductsRequest, JSObject> {
4736
+ export interface PostWmsStocksdocumentsProductsRequest extends AppendableGateway<PostWmsStocksdocumentsProductsRequest, PostWmsStocksdocumentsProductsResponse, RequestParams.PostWmsStocksdocumentsProductsParams> {
4737
4737
  /** Products list. */
4738
- products: (value: Array<JSObject>) => this;
4738
+ products: (value: RequestParams.PostWmsStocksdocumentsProductsParams["products"]) => this;
4739
4739
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm') => this;
4740
4740
  /** Document identifier. */
4741
4741
  id: (value: number|string) => this;
@@ -4755,9 +4755,9 @@ export interface PostWmsStocksdocumentsProductsRequest extends AppendableGateway
4755
4755
  locationTextId: (locationTextId: string) => this
4756
4756
  }
4757
4757
 
4758
- export interface PutWmsStocksdocumentsProductsRequest extends AppendableGateway<PutWmsStocksdocumentsProductsRequest, JSObject> {
4758
+ export interface PutWmsStocksdocumentsProductsRequest extends AppendableGateway<PutWmsStocksdocumentsProductsRequest, PutWmsStocksdocumentsProductsResponse, RequestParams.PutWmsStocksdocumentsProductsParams> {
4759
4759
  /** Products list. */
4760
- products: (value: Array<JSObject>) => this;
4760
+ products: (value: RequestParams.PutWmsStocksdocumentsProductsParams["products"]) => this;
4761
4761
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm') => this;
4762
4762
  /** Document identifier. */
4763
4763
  id: (value: number|string) => this;
@@ -4787,20 +4787,20 @@ export interface DeleteWmsSuppliersRequest extends Gateway {
4787
4787
  ids: (value: number|string|number[]|string[]) => this;
4788
4788
  }
4789
4789
 
4790
- export interface GetWmsSuppliersRequest extends PagableGateway<GetWmsSuppliersRequest,GetWmsSuppliersResponse> {
4790
+ export interface GetWmsSuppliersRequest extends PagableGateway<GetWmsSuppliersRequest, GetWmsSuppliersResponse> {
4791
4791
  /** Page with results number. Numeration starts from 0 */
4792
4792
  resultsPage: (value: number|string) => this;
4793
4793
  /** Number of results on page. Value from 1 to 100 */
4794
4794
  resultsLimit: (value: number|string) => this;
4795
4795
  /** Return quantity of products assigned to supplier */
4796
- returnProductsCount: (value: Boolean) => this;
4796
+ returnProductsCount: (value: boolean) => this;
4797
4797
  /** Names */
4798
4798
  names: (value: string|string[]) => this;
4799
4799
  /** IDs */
4800
4800
  ids: (value: number|string|number[]|string[]) => this;
4801
4801
  }
4802
4802
 
4803
- export interface PutWmsSuppliersRequest extends AppendableGateway<PutWmsSuppliersRequest, JSObject> {
4803
+ export interface PutWmsSuppliersRequest extends AppendableGateway<PutWmsSuppliersRequest> {
4804
4804
  suppliers: (value: Array<JSObject>) => this;
4805
4805
  /** Id */
4806
4806
  id: (id: number|string) => this
@@ -5180,4 +5180,4 @@ export interface Gateways {
5180
5180
 
5181
5181
  declare const defaultExport: (url: string, apiKey: string, version?: number | string) => Gateways;
5182
5182
  export default defaultExport;
5183
- export { ENUMS }
5183
+ export { ENUMS, RequestParams }