idosell 0.4.1 → 0.4.4

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. */
@@ -36,12 +36,12 @@ export interface PostClientsBalanceRequest extends Gateway {
36
36
  /** Order payment identifier. */
37
37
  prepaidId: (value: number|string) => this;
38
38
  /** Adds value to client balance */
39
- add: (balance: number, currency: string) => this;
39
+ add: (balance: number, currency?: string) => this;
40
40
  /** Subtracts value to client balance */
41
- remove: (balance: number, currency: string) => this;
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 */
@@ -438,18 +438,18 @@ export interface PutClientsGiftcardsRequest extends AppendableGateway<PutClients
438
438
  /** */
439
439
  note: (note: string) => this
440
440
  /** Adds balance to current gift card */
441
- add: (amount: number, currency: string) => this;
441
+ add: (amount: number, currency?: string) => this;
442
442
  /** Subtract from balance to current gift card */
443
- subtract: (amount: number, currency: string) => this;
443
+ subtract: (amount: number, currency?: string) => this;
444
444
  /** Set balance to current gift card */
445
- set: (amount: number, currency: string) => this;
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;
@@ -1550,6 +1550,8 @@ export interface PostOrdersImagesRequest extends AppendableGateway<PostOrdersIma
1550
1550
  name: (name: string) => this
1551
1551
  orderId: (value: string) => this;
1552
1552
  orderSerialNumber: (value: number|string) => this;
1553
+ /** Sets image source for order */
1554
+ source: (value: string) => this;
1553
1555
  }
1554
1556
 
1555
1557
  export interface GetOrdersLabelsRequest extends Gateway {
@@ -1557,21 +1559,21 @@ export interface GetOrdersLabelsRequest extends Gateway {
1557
1559
  orderSerialNumber: (value: number|string) => this;
1558
1560
  }
1559
1561
 
1560
- export interface SearchOrdersOpinionsRequest extends PagableGateway<SearchOrdersOpinionsRequest,SearchOrdersOpinionsResponse> {
1562
+ export interface SearchOrdersOpinionsRequest extends PagableGateway<SearchOrdersOpinionsRequest, SearchOrdersOpinionsResponse, RequestParams.SearchOrdersOpinionsParams> {
1561
1563
  /** Review identification */
1562
- opinion: (value: JSObject) => this;
1564
+ opinion: (value: RequestParams.SearchOrdersOpinionsParams["opinion"]) => this;
1563
1565
  /** Orders. */
1564
- orders: (value: JSObject) => this;
1566
+ orders: (value: RequestParams.SearchOrdersOpinionsParams["orders"]) => this;
1565
1567
  /** Customer data. */
1566
- clients: (value: JSObject) => this;
1568
+ clients: (value: RequestParams.SearchOrdersOpinionsParams["clients"]) => this;
1567
1569
  /** Date range */
1568
- dateRange: (value: JSObject) => this;
1570
+ dateRange: (value: RequestParams.SearchOrdersOpinionsParams["dateRange"]) => this;
1569
1571
  /** Page with results number. Numeration starts from 0 */
1570
1572
  resultsPage: (value: number|string) => this;
1571
1573
  /** Number of results on page. Value from 1 to 100 */
1572
1574
  resultsLimit: (value: number|string) => this;
1573
1575
  /** Possibility of sorting returned list */
1574
- ordersBy: (value: Array<JSObject>) => this;
1576
+ ordersBy: (value: RequestParams.SearchOrdersOpinionsParams["ordersBy"]) => this;
1575
1577
  orderId: (value: string) => this;
1576
1578
  orderSerialNumber: (value: string) => this;
1577
1579
  clientId: (value: string) => this;
@@ -1580,7 +1582,7 @@ export interface SearchOrdersOpinionsRequest extends PagableGateway<SearchOrders
1580
1582
  /** Define range of dates */
1581
1583
  dates: (dateFrom: DateLike, dateTo: DateLike) => this;
1582
1584
  /** Define ordering of records */
1583
- orderBy: (elementName: "date"|"rating"|"scorePositive"|"scoreNegative"|"modificationDatetime", descending: boolean) => this;
1585
+ orderBy: (elementName: "date"|"rating"|"scorePositive"|"scoreNegative"|"modificationDatetime", descending?: boolean) => this;
1584
1586
  }
1585
1587
 
1586
1588
  export interface GetOrdersOpinionsRateRequest extends Gateway {
@@ -1613,7 +1615,7 @@ export interface PostOrdersRequest extends AppendableGateway<PostOrdersRequest,
1613
1615
  /** 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
1616
  clientWithoutAccount: (clientWithoutAccount: string) => this
1615
1617
  /** Balance data for casual client. Object is necessary for casual clients (in case of client_once has y value). */
1616
- clientWithoutAccountData: (clientWithoutAccountData: JSObject) => this
1618
+ clientWithoutAccountData: (clientWithoutAccountData: RequestParams.PostOrdersParams["orders"][number]["clientWithoutAccountData"]) => this
1617
1619
  /** Customer's login. */
1618
1620
  clientLogin: (clientLogin: string) => this
1619
1621
  /** Customer comments on order. */
@@ -1629,11 +1631,11 @@ export interface PostOrdersRequest extends AppendableGateway<PostOrdersRequest,
1629
1631
  /** Delivery cost. */
1630
1632
  deliveryCost: (deliveryCost: number) => this
1631
1633
  /** Delivery address data. */
1632
- clientDeliveryAddress: (clientDeliveryAddress: JSObject) => this
1634
+ clientDeliveryAddress: (clientDeliveryAddress: RequestParams.PostOrdersParams["orders"][number]["clientDeliveryAddress"]) => this
1633
1635
  /** Buyer's address data. */
1634
- payerAddress: (payerAddress: JSObject) => this
1636
+ payerAddress: (payerAddress: RequestParams.PostOrdersParams["orders"][number]["payerAddress"]) => this
1635
1637
  /** Products list. */
1636
- products: (products: Array<JSObject>) => this
1638
+ products: (products: RequestParams.PostOrdersParams["orders"][number]["products"]) => this
1637
1639
  /** Discount value. */
1638
1640
  orderRebateValue: (orderRebateValue: number) => this
1639
1641
  /** Order handler. */
@@ -1641,9 +1643,9 @@ export interface PostOrdersRequest extends AppendableGateway<PostOrdersRequest,
1641
1643
  /** Omits collecting orders via IAI Bridge. */
1642
1644
  ignoreBridge: (ignoreBridge: boolean) => this
1643
1645
  /** Settings */
1644
- settings: (settings: JSObject) => this
1646
+ settings: (settings: RequestParams.PostOrdersParams["orders"][number]["settings"]) => this
1645
1647
  /** Settlement by prices. "gross" - gross, "net" - net, "net_without_VAT" - net without VAT. */
1646
- orderSettledAtPrice: (orderSettledAtPrice: 'gross'|'net'|'net_without_vat') => this
1648
+ orderSettledAtPrice: (orderSettledAtPrice: 'gross'|'net'|'net_without_VAT') => this
1647
1649
  /** Customer asked for invoice. List of parameters: "y" - yes (paper invoicing ), "e" - yes (electronic invoicing ), "n" - no. */
1648
1650
  clientRequestInvoice: (clientRequestInvoice: string) => this
1649
1651
  /** Order settlement currency. */
@@ -1676,15 +1678,15 @@ export interface PutOrdersRequest extends AppendableGateway<PutOrdersRequest, Pu
1676
1678
  /** Note to the order. */
1677
1679
  orderNote: (orderNote: string) => this
1678
1680
  /** Products list. */
1679
- products: (products: Array<JSObject>) => this
1681
+ products: (products: RequestParams.PutOrdersParams["orders"][number]["products"]) => this
1680
1682
  /** Order payment method. Allowed values. "cash_on_delivery" - cash on delivery, "prepaid" - prepayment, "tradecredit" - Trade credit. */
1681
1683
  orderPaymentType: (orderPaymentType: 'cash_on_delivery'|'prepaid'|'tradecredit') => this
1682
1684
  /** Settlement by prices. "gross" - gross, "net" - net, "net_without_VAT" - net without VAT. */
1683
- orderSettledAtPrice: (orderSettledAtPrice: 'gross'|'net'|'net_without_vat') => this
1685
+ orderSettledAtPrice: (orderSettledAtPrice: 'gross'|'net'|'net_without_VAT') => this
1684
1686
  /** Omits collecting orders via IAI Bridge. */
1685
1687
  ignoreBridge: (ignoreBridge: boolean) => this
1686
1688
  /** Settings */
1687
- settings: (settings: JSObject) => this
1689
+ settings: (settings: RequestParams.PutOrdersParams["orders"][number]["settings"]) => this
1688
1690
  /** Consent to send data to cooperating services */
1689
1691
  emailProcessingConsent: (emailProcessingConsent: 'yes'|'no'|'disabled') => this
1690
1692
  /** Customer asked for invoice. List of parameters: "y" - yes (paper invoicing ), "e" - yes (electronic invoicing ), "n" - no. */
@@ -1699,9 +1701,9 @@ export interface PutOrdersRequest extends AppendableGateway<PutOrdersRequest, Pu
1699
1701
  estimatedDeliveryDate: (estimatedDeliveryDate: string) => this
1700
1702
  }
1701
1703
 
1702
- export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,SearchOrdersResponse> {
1704
+ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest, SearchOrdersResponse, RequestParams.SearchOrdersParams> {
1703
1705
  /** Prepayment status. Status list: "unpaid" - not paid, "restored" - returned, "waiting" - not registered. */
1704
- orderPrepaidStatus: (value: string) => this;
1706
+ orderPrepaidStatus: (value: "unpaid" | "restored" | "waiting") => this;
1705
1707
  /** 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
1708
  ordersStatuses: (value: string|string[]) => this;
1707
1709
  /** Order statusses ids. */
@@ -1722,13 +1724,13 @@ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,
1722
1724
  /** Order serial numbers. */
1723
1725
  ordersSerialNumbers: (value: number|string|number[]|string[]) => this;
1724
1726
  /** Customer data. */
1725
- clients: (value: Array<JSObject>) => this;
1727
+ clients: (value: RequestParams.SearchOrdersParams["clients"]) => this;
1726
1728
  /** Ranges of dates or serial numbers. */
1727
- ordersRange: (value: JSObject) => this;
1729
+ ordersRange: (value: RequestParams.SearchOrdersParams["ordersRange"]) => this;
1728
1730
  /** Order source data. */
1729
- orderSource: (value: JSObject) => this;
1731
+ orderSource: (value: RequestParams.SearchOrdersParams["orderSource"]) => this;
1730
1732
  /** Products list. */
1731
- products: (value: Array<JSObject>) => this;
1733
+ products: (value: RequestParams.SearchOrdersParams["products"]) => this;
1732
1734
  /** Page with results number. Numeration starts from 0 */
1733
1735
  resultsPage: (value: number|string) => this;
1734
1736
  /** Number of results on page. Value from 1 to 100 */
@@ -1736,11 +1738,11 @@ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,
1736
1738
  /** Customer asked for invoice. List of parameters: "y" - yes (paper invoicing ), "e" - yes (electronic invoicing ), "n" - no. */
1737
1739
  clientRequestInvoice: (value: string) => this;
1738
1740
  /** Information on consignments. */
1739
- packages: (value: JSObject) => this;
1741
+ packages: (value: RequestParams.SearchOrdersParams["packages"]) => this;
1740
1742
  /** Stock quantities data. */
1741
- stocks: (value: Array<JSObject>) => this;
1743
+ stocks: (value: RequestParams.SearchOrdersParams["stocks"]) => this;
1742
1744
  /** Used discount codes data. */
1743
- campaign: (value: JSObject) => this;
1745
+ campaign: (value: RequestParams.SearchOrdersParams["campaign"]) => this;
1744
1746
  /** Loyalty points. */
1745
1747
  loyaltyPointsMode: (value: 'all'|'given'|'taken'|'given_or_taken'|'given_and_taken'|'not_given_nor_taken') => this;
1746
1748
  /** Order handler. */
@@ -1748,23 +1750,29 @@ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,
1748
1750
  /** Order picker. */
1749
1751
  orderPackingPersonLogin: (value: string) => this;
1750
1752
  /** Possibility of sorting returned list */
1751
- ordersBy: (value: Array<JSObject>) => this;
1753
+ ordersBy: (value: RequestParams.SearchOrdersParams["ordersBy"]) => this;
1752
1754
  /** Method of searching orders by handler. */
1753
1755
  searchingOperatorTypeMatch: (value: 'no_assignment'|'no_empty'|'empty') => this;
1754
1756
  /** Orders with the exceeded date of shipment. */
1755
1757
  ordersDelayed: (value: 'y'|'n') => this;
1756
1758
  /** Combine the components of the set into one item */
1757
- showBundles: (value: Boolean) => this;
1759
+ showBundles: (value: boolean) => this;
1758
1760
  /** The order ID of the external service */
1759
1761
  orderExternalId: (value: string) => this;
1760
1762
  /** Order currency */
1761
1763
  orderCurrency: (value: string) => this;
1764
+ /** Subscription id */
1765
+ subscription: (value: number|string) => this;
1766
+ /** Subscription ids */
1767
+ subscriptionIds: (value: number|string|number[]|string[]) => this;
1768
+ /** Orders from subscriptions */
1769
+ subscriptionsOrders: (value: 'y'|'n') => this;
1762
1770
  shopIds: (value: number|string|number[]|string[]) => this;
1763
1771
  byPackageNumbers: (value: string|string[]) => this;
1764
1772
  /** Define range of dates and their type */
1765
- dates: (dateFrom: DateLike, dateTo: DateLike, type: "add"|"modified"|"dispatch"|"payment"|"last_payments_operation"|"declared_payments") => this;
1773
+ dates: (dateFrom: DateLike, dateTo: DateLike, type?: "add"|"modified"|"dispatch"|"payment"|"last_payments_operation"|"declared_payments") => this;
1766
1774
  /** Define ordering of records */
1767
- orderBy: (elementName: "id"|"sn"|"order_time"|"status"|"order_source"|"order_cost"|"discount_code"|"ready_to_send_date", descending: boolean) => this;
1775
+ orderBy: (elementName: "id"|"sn"|"order_time"|"status"|"order_source"|"order_cost"|"discount_code"|"ready_to_send_date", descending?: boolean) => this;
1768
1776
  /** Define clients values by passing them as an array */
1769
1777
  logins: (values: string|string[]) => this;
1770
1778
  /** Define clients values by passing them as an array */
@@ -1780,13 +1788,13 @@ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,
1780
1788
  /** Filter orders that contain select product */
1781
1789
  hasProduct: (productId: number|string, sizeId?: number|string) => this;
1782
1790
  /** Filter orders that have package */
1783
- hasPackage: (orderHasPackage: boolean) => this;
1791
+ hasPackage: (orderHasPackage?: boolean) => this;
1784
1792
  /** Filter orders by an any or selected Allegro account */
1785
1793
  fromAllegro: (allegroAccount?: string) => this;
1786
1794
  /** Filter orders by an any or selected Amazon account */
1787
- fromAmazon: (allegroAccount?: string) => this;
1795
+ fromAmazon: (amazonAccount?: string) => this;
1788
1796
  /** Filter orders by an any or selected EBay account */
1789
- fromEbay: (allegroAccount?: string) => this;
1797
+ fromEbay: (ebayAccount?: string) => this;
1790
1798
  }
1791
1799
 
1792
1800
  export interface GetOrdersPackagesRequest extends Gateway<GetOrdersPackagesResponse> {
@@ -1799,10 +1807,10 @@ export interface GetOrdersPackagesRequest extends Gateway<GetOrdersPackagesRespo
1799
1807
  /** RMA numbers. */
1800
1808
  rmaNumbers: (value: number|string|number[]|string[]) => this;
1801
1809
  /** Return parcel labels. */
1802
- returnLabels: (value: Boolean) => this;
1810
+ returnLabels: (value: boolean) => this;
1803
1811
  }
1804
1812
 
1805
- export interface PostOrdersPackagesRequest extends AppendableGateway<PostOrdersPackagesRequest, JSObject> {
1813
+ export interface PostOrdersPackagesRequest extends AppendableGateway<PostOrdersPackagesRequest> {
1806
1814
  /** List of parcels assigned to the order Maximum default number: 100 parcels. */
1807
1815
  orderPackages: (value: Array<JSObject>) => this;
1808
1816
  /** Id. */
@@ -1813,7 +1821,7 @@ export interface PostOrdersPackagesRequest extends AppendableGateway<PostOrdersP
1813
1821
  packages: (packages: Array<JSObject>) => this
1814
1822
  }
1815
1823
 
1816
- export interface PutOrdersPackagesRequest extends AppendableGateway<PutOrdersPackagesRequest, JSObject> {
1824
+ export interface PutOrdersPackagesRequest extends AppendableGateway<PutOrdersPackagesRequest> {
1817
1825
  /** List of parcels assigned to the order Maximum default number: 100 parcels. */
1818
1826
  orderPackages: (value: Array<JSObject>) => this;
1819
1827
  /** Id. */
@@ -1837,10 +1845,10 @@ export interface GetOrdersPrinterDocumentsRequest extends Gateway {
1837
1845
  objectNumber: (value: string) => this;
1838
1846
  objectType: (value: string) => this;
1839
1847
  printerAccessKey: (value: string) => this;
1840
- skipNotGeneratedDocument: (value: Boolean) => this;
1848
+ skipNotGeneratedDocument: (value: boolean) => this;
1841
1849
  }
1842
1850
 
1843
- export interface PutOrdersProductsSerialNumbersRequest extends AppendableGateway<PutOrdersProductsSerialNumbersRequest, JSObject> {
1851
+ export interface PutOrdersProductsSerialNumbersRequest extends AppendableGateway<PutOrdersProductsSerialNumbersRequest> {
1844
1852
  /** Orders. */
1845
1853
  orders: (value: Array<JSObject>) => this;
1846
1854
  /** Order serial number. */
@@ -1849,7 +1857,7 @@ export interface PutOrdersProductsSerialNumbersRequest extends AppendableGateway
1849
1857
  orderProducts: (orderProducts: Array<JSObject>) => this
1850
1858
  }
1851
1859
 
1852
- export interface PutOrdersProfitMarginRequest extends AppendableGateway<PutOrdersProfitMarginRequest, JSObject> {
1860
+ export interface PutOrdersProfitMarginRequest extends AppendableGateway<PutOrdersProfitMarginRequest> {
1853
1861
  /** Orders. */
1854
1862
  orders: (value: Array<JSObject>) => this;
1855
1863
  /** Order serial number. */
@@ -1871,16 +1879,16 @@ export interface PutOrdersShippingCostsRequest extends Gateway {
1871
1879
  /** Order serial number. */
1872
1880
  orderSerialNumber: (value: number|string) => this;
1873
1881
  /** Delivery cost. */
1874
- deliveryCost: (value: Number) => this;
1882
+ deliveryCost: (value: number) => this;
1875
1883
  /** Delivery VAT. */
1876
- orderDeliveryVat: (value: Number) => this;
1884
+ orderDeliveryVat: (value: number) => this;
1877
1885
  }
1878
1886
 
1879
1887
  export interface GetOrdersStatusesRequest extends Gateway<GetOrdersStatusesResponse> {}
1880
1888
 
1881
- export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrdersUnfinishedRequest,SearchOrdersResponse> {
1889
+ export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrdersUnfinishedRequest, SearchOrdersResponse> {
1882
1890
  /** Prepayment status. Status list: "unpaid" - not paid, "restored" - returned, "waiting" - not registered. */
1883
- orderPrepaidStatus: (value: string) => this;
1891
+ orderPrepaidStatus: (value: "unpaid" | "restored" | "waiting") => this;
1884
1892
  /** 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
1893
  ordersStatuses: (value: string|string[]) => this;
1886
1894
  /** Order statuses ids. */
@@ -1932,9 +1940,9 @@ export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrde
1932
1940
  shopIds: (value: number|string|number[]|string[]) => this;
1933
1941
  byPackageNumbers: (value: string|string[]) => this;
1934
1942
  /** Define range of dates and their type */
1935
- dates: (dateFrom: DateLike, dateTo: DateLike, type: "add"|"modified"|"dispatch"|"payment"|"last_payments_operation"|"declared_payments") => this;
1943
+ dates: (dateFrom: DateLike, dateTo: DateLike, type?: "add"|"modified"|"dispatch"|"payment"|"last_payments_operation"|"declared_payments") => this;
1936
1944
  /** Define ordering of records */
1937
- orderBy: (elementName: "id"|"sn"|"order_time"|"status"|"order_source"|"order_cost"|"discount_code"|"ready_to_send_date", descending: boolean) => this;
1945
+ orderBy: (elementName: "id"|"sn"|"order_time"|"status"|"order_source"|"order_cost"|"discount_code"|"ready_to_send_date", descending?: boolean) => this;
1938
1946
  /** Define clients values by passing them as an array */
1939
1947
  logins: (values: string|string[]) => this;
1940
1948
  /** Define clients values by passing them as an array */
@@ -1950,13 +1958,13 @@ export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrde
1950
1958
  /** Filter orders that contain select product */
1951
1959
  hasProduct: (productId: number|string, sizeId?: number|string) => this;
1952
1960
  /** Filter orders that have package */
1953
- hasPackage: (orderHasPackage: boolean) => this;
1961
+ hasPackage: (orderHasPackage?: boolean) => this;
1954
1962
  /** Filter orders by an any or selected Allegro account */
1955
1963
  fromAllegro: (allegroAccount?: string) => this;
1956
1964
  /** Filter orders by an any or selected Amazon account */
1957
- fromAmazon: (allegroAccount?: string) => this;
1965
+ fromAmazon: (amazonAccount?: string) => this;
1958
1966
  /** Filter orders by an any or selected EBay account */
1959
- fromEbay: (allegroAccount?: string) => this;
1967
+ fromEbay: (ebayAccount?: string) => this;
1960
1968
  }
1961
1969
 
1962
1970
  export interface GetOrdersWarehouseRequest extends Gateway {
@@ -1990,9 +1998,9 @@ export interface GetPackagesLabelsRequest extends Gateway<GetPackagesLabelsRespo
1990
1998
 
1991
1999
  export interface PostPackagesLabelsRequest extends AppendableGateway<PostPackagesLabelsRequest, PostPackagesLabelsResponse, RequestParams.PostPackagesLabelsParams> {
1992
2000
  /** Id. */
1993
- eventId: (value: RequestParams.PostPackagesLabelsParams["eventId"]) => this;
2001
+ eventId: (value: number|string) => this;
1994
2002
  /** Type. */
1995
- eventType: (value: RequestParams.PostPackagesLabelsParams["eventType"]) => this;
2003
+ eventType: (value: 'order'|'rma'|'return') => this;
1996
2004
  /** Shipment configuration options available for a given courier */
1997
2005
  parcelParameters: (value: RequestParams.PostPackagesLabelsParams["parcelParameters"]) => this;
1998
2006
  /** Shipment configuration options available for Inpost Smile courier */
@@ -2001,7 +2009,7 @@ export interface PostPackagesLabelsRequest extends AppendableGateway<PostPackage
2001
2009
  packageId: (packageId: string) => this
2002
2010
  }
2003
2011
 
2004
- export interface PostPackagesRequest extends AppendableGateway<PostPackagesRequest, JSObject> {
2012
+ export interface PostPackagesRequest extends AppendableGateway<PostPackagesRequest> {
2005
2013
  /** List of parcels assigned to the order Maximum default number: 100 parcels. */
2006
2014
  orderPackages: (value: Array<JSObject>) => this;
2007
2015
  /** Order ID. */
@@ -2012,7 +2020,7 @@ export interface PostPackagesRequest extends AppendableGateway<PostPackagesReque
2012
2020
  packages: (packages: Array<JSObject>) => this
2013
2021
  }
2014
2022
 
2015
- export interface PutPackagesRequest extends AppendableGateway<PutPackagesRequest, JSObject> {
2023
+ export interface PutPackagesRequest extends AppendableGateway<PutPackagesRequest> {
2016
2024
  /** List of parcels assigned to the order Maximum default number: 100 parcels. */
2017
2025
  orderPackages: (value: Array<JSObject>) => this;
2018
2026
  /** Order ID. */
@@ -2023,13 +2031,13 @@ export interface PutPackagesRequest extends AppendableGateway<PutPackagesRequest
2023
2031
  packages: (packages: Array<JSObject>) => this
2024
2032
  }
2025
2033
 
2026
- export interface SearchPackagesRequest extends AppendableGateway<SearchPackagesRequest, SearchPackagesResponse> {
2034
+ export interface SearchPackagesRequest extends AppendableGateway<SearchPackagesRequest, SearchPackagesResponse, RequestParams.SearchPackagesParams> {
2027
2035
  /** Consignments numbers. */
2028
2036
  deliveryPackageNumbers: (value: string|string[]) => this;
2029
2037
  /** Element, package is assigned to */
2030
- events: (value: Array<JSObject>) => this;
2038
+ events: (value: RequestParams.SearchPackagesParams["events"]) => this;
2031
2039
  /** Return parcel labels. */
2032
- returnLabels: (value: Boolean) => this;
2040
+ returnLabels: (value: boolean) => this;
2033
2041
  /** Type. */
2034
2042
  eventType: (eventType: 'order'|'rma'|'return') => this
2035
2043
  /** IDs. */
@@ -2054,7 +2062,7 @@ export interface PostPaymentsCashbackRequest extends Gateway {
2054
2062
  /** Payment number - [order no.]-[payment no.], i.e. 1234-1. */
2055
2063
  paymentNumber: (value: string) => this;
2056
2064
  /** Refund value. */
2057
- value: (value: Number) => this;
2065
+ value: (value: number) => this;
2058
2066
  }
2059
2067
 
2060
2068
  export interface PutPaymentsConfirmRequest extends Gateway {
@@ -2078,13 +2086,13 @@ export interface GetPaymentsRequest extends Gateway<GetPaymentsResponse> {
2078
2086
  sourceType: (value: 'order'|'return'|'rma') => this;
2079
2087
  }
2080
2088
 
2081
- export interface PostPaymentsRequest extends Gateway {
2089
+ export interface PostPaymentsRequest extends Gateway<PostPaymentsResponse, RequestParams.PostPaymentsParams> {
2082
2090
  /** Source ID. */
2083
2091
  sourceId: (value: number|string) => this;
2084
2092
  /** Source type. */
2085
2093
  sourceType: (value: 'order'|'return'|'rma') => this;
2086
2094
  /** Payment amount. */
2087
- value: (value: Number) => this;
2095
+ value: (value: number) => this;
2088
2096
  /** Number of a bank account to which a payment is sent. */
2089
2097
  account: (value: string) => this;
2090
2098
  type: (value: 'payment'|'advance'|'repayment'|'fee') => this;
@@ -2106,7 +2114,7 @@ export interface PutPaymentsRequest extends Gateway {
2106
2114
  /** Payment method ID. Check getPaymentForms. */
2107
2115
  paymentFormId: (value: number|string) => this;
2108
2116
  /** Refund value. */
2109
- value: (value: Number) => this;
2117
+ value: (value: number) => this;
2110
2118
  /** Registering date. */
2111
2119
  accountingDate: (value: string) => this;
2112
2120
  /** Number of a bank account to which a payment is sent. */
@@ -2125,13 +2133,13 @@ export interface GetPaymentsProfilesRequest extends PagableGateway<GetPaymentsPr
2125
2133
  resultsLimit: (value: number|string) => this;
2126
2134
  }
2127
2135
 
2128
- export interface PostPaymentsRepaymentRequest extends Gateway {
2136
+ export interface PostPaymentsRepaymentRequest extends Gateway<PostPaymentsRepaymentResponse, RequestParams.PostPaymentsRepaymentParams> {
2129
2137
  /** Returns ID. */
2130
2138
  source_id: (value: number|string) => this;
2131
2139
  /** Defines payment category. For the payments regarding returns, enter 'return'. */
2132
2140
  source_type: (value: string) => this;
2133
2141
  /** Refund value. */
2134
- value: (value: Number) => this;
2142
+ value: (value: number) => this;
2135
2143
  /** Payment method ID. Check getPaymentForms. */
2136
2144
  payment_form_id: (value: number|string) => this;
2137
2145
  /** Number of a bank account to which a payment is sent. */
@@ -2139,26 +2147,26 @@ export interface PostPaymentsRepaymentRequest extends Gateway {
2139
2147
  /** Customer account. */
2140
2148
  client_account: (value: string) => this;
2141
2149
  /** Other. */
2142
- other: (value: JSObject) => this;
2150
+ other: (value: RequestParams.PostPaymentsRepaymentParams["other"]) => this;
2143
2151
  }
2144
2152
 
2145
2153
  export interface GetProductsSKUbyBarcodeRequest extends Gateway<GetProductsSKUbyBarcodeResponse> {
2146
2154
  /** List of sought products by indexes. */
2147
2155
  productIndices: (value: string|string[]) => this;
2148
2156
  /** Search for products only by IAI code */
2149
- searchOnlyInCodeIai: (value: Boolean) => this;
2157
+ searchOnlyInCodeIai: (value: boolean) => this;
2150
2158
  }
2151
2159
 
2152
- export interface PutProductsAttachmentsRequest extends AppendableGateway<PutProductsAttachmentsRequest, JSObject> {
2153
- productsAttachments: (value: Array<JSObject>) => this;
2160
+ export interface PutProductsAttachmentsRequest extends AppendableGateway<PutProductsAttachmentsRequest, PutProductsAttachmentsResponse, RequestParams.PutProductsAttachmentsParams> {
2161
+ productsAttachments: (value: RequestParams.PutProductsAttachmentsParams["productsAttachments"]) => this;
2154
2162
  /** Stock keeping unit. */
2155
- productIdent: (productIdent: JSObject) => this
2163
+ productIdent: (productIdent: RequestParams.PutProductsAttachmentsParams["productsAttachments"][number]["productIdent"]) => this
2156
2164
  /** Product attachments list. */
2157
- attachments: (attachments: Array<JSObject>) => this
2165
+ attachments: (attachments: RequestParams.PutProductsAttachmentsParams["productsAttachments"][number]["attachments"]) => this
2158
2166
  /** List of product's virtual attachments. */
2159
- virtualAttachments: (virtualAttachments: Array<JSObject>) => this
2167
+ virtualAttachments: (virtualAttachments: RequestParams.PutProductsAttachmentsParams["productsAttachments"][number]["virtualAttachments"]) => this
2160
2168
  /** Information on error that occurred during gate call. */
2161
- errors: (errors: JSObject) => this
2169
+ errors: (errors: RequestParams.PutProductsAttachmentsParams["productsAttachments"][number]["errors"]) => this
2162
2170
  /** Flag indicating if there are errors in results of attachments settings. */
2163
2171
  attachmentsErrorsOccurred: (attachmentsErrorsOccurred: boolean) => this
2164
2172
  /** Flag indicating if there are errors in results of virtual attachments settings. */
@@ -2166,7 +2174,7 @@ export interface PutProductsAttachmentsRequest extends AppendableGateway<PutProd
2166
2174
  productId: (value: number|string) => this;
2167
2175
  }
2168
2176
 
2169
- export interface GetProductsAuctionsRequest extends PagableGateway<GetProductsAuctionsRequest,GetProductsAuctionsResponse> {
2177
+ export interface GetProductsAuctionsRequest extends PagableGateway<GetProductsAuctionsRequest, GetProductsAuctionsResponse> {
2170
2178
  identType: (value: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2171
2179
  /** Products list. */
2172
2180
  products: (value: string|string[]) => this;
@@ -2195,7 +2203,7 @@ export interface GetProductsBrandsFilterRequest extends Gateway {
2195
2203
  producerId: (value: number|string) => this;
2196
2204
  }
2197
2205
 
2198
- export interface PutProductsBrandsFilterRequest extends AppendableGateway<PutProductsBrandsFilterRequest, JSObject> {
2206
+ export interface PutProductsBrandsFilterRequest extends AppendableGateway<PutProductsBrandsFilterRequest> {
2199
2207
  /** Shop Id */
2200
2208
  shopId: (value: number|string) => this;
2201
2209
  /** Language ID (code in ISO 639-2). */
@@ -2217,7 +2225,7 @@ export interface PutProductsBrandsFilterRequest extends AppendableGateway<PutPro
2217
2225
  filterDefaultEnabled: (filterDefaultEnabled: 'y'|'n') => this
2218
2226
  }
2219
2227
 
2220
- export interface GetProductsBrandsRequest extends PagableGateway<GetProductsBrandsRequest,GetProductsBrandsResponse> {
2228
+ export interface GetProductsBrandsRequest extends PagableGateway<GetProductsBrandsRequest, GetProductsBrandsResponse> {
2221
2229
  /** Result page number. */
2222
2230
  results_page: (value: number|string) => this;
2223
2231
  /** Number of results on page. */
@@ -2226,7 +2234,7 @@ export interface GetProductsBrandsRequest extends PagableGateway<GetProductsBran
2226
2234
  languagesIds: (value: string|string[]) => this;
2227
2235
  }
2228
2236
 
2229
- export interface PostProductsBrandsRequest extends AppendableGateway<PostProductsBrandsRequest, JSObject> {
2237
+ export interface PostProductsBrandsRequest extends AppendableGateway<PostProductsBrandsRequest> {
2230
2238
  /** List of manufacturers assigned to sought products. */
2231
2239
  producers: (value: Array<JSObject>) => this;
2232
2240
  /** Name in panel */
@@ -2237,7 +2245,7 @@ export interface PostProductsBrandsRequest extends AppendableGateway<PostProduct
2237
2245
  languagesConfigurations: (languagesConfigurations: Array<JSObject>) => this
2238
2246
  }
2239
2247
 
2240
- export interface PutProductsBrandsRequest extends AppendableGateway<PutProductsBrandsRequest, JSObject> {
2248
+ export interface PutProductsBrandsRequest extends AppendableGateway<PutProductsBrandsRequest> {
2241
2249
  /** List of manufacturers assigned to sought products. */
2242
2250
  producers: (value: Array<JSObject>) => this;
2243
2251
  /** Id */
@@ -2250,14 +2258,14 @@ export interface PutProductsBrandsRequest extends AppendableGateway<PutProductsB
2250
2258
  languagesConfigurations: (languagesConfigurations: Array<JSObject>) => this
2251
2259
  }
2252
2260
 
2253
- export interface PostProductsBundlesRequest extends AppendableGateway<PostProductsBundlesRequest, JSObject> {
2261
+ export interface PostProductsBundlesRequest extends AppendableGateway<PostProductsBundlesRequest> {
2254
2262
  /** Parameters transmitted to method */
2255
2263
  params: (value: Array<JSObject>) => this;
2256
2264
  /** Products list. */
2257
2265
  products: (products: Array<JSObject>) => this
2258
2266
  }
2259
2267
 
2260
- export interface DeleteProductsBundlesProductsRequest extends AppendableGateway<DeleteProductsBundlesProductsRequest, JSObject> {
2268
+ export interface DeleteProductsBundlesProductsRequest extends AppendableGateway<DeleteProductsBundlesProductsRequest> {
2261
2269
  /** Parameters transmitted to method */
2262
2270
  params: (value: Array<JSObject>) => this;
2263
2271
  /** Products list. */
@@ -2266,7 +2274,7 @@ export interface DeleteProductsBundlesProductsRequest extends AppendableGateway<
2266
2274
  bundleIdent: (bundleIdent: JSObject) => this
2267
2275
  }
2268
2276
 
2269
- export interface PostProductsBundlesProductsRequest extends AppendableGateway<PostProductsBundlesProductsRequest, JSObject> {
2277
+ export interface PostProductsBundlesProductsRequest extends AppendableGateway<PostProductsBundlesProductsRequest> {
2270
2278
  /** Parameters transmitted to method */
2271
2279
  params: (value: Array<JSObject>) => this;
2272
2280
  /** Products list. */
@@ -2275,7 +2283,7 @@ export interface PostProductsBundlesProductsRequest extends AppendableGateway<Po
2275
2283
  bundleIdent: (bundleIdent: JSObject) => this
2276
2284
  }
2277
2285
 
2278
- export interface PutProductsBundlesProductsQuantityRequest extends AppendableGateway<PutProductsBundlesProductsQuantityRequest, JSObject> {
2286
+ export interface PutProductsBundlesProductsQuantityRequest extends AppendableGateway<PutProductsBundlesProductsQuantityRequest> {
2279
2287
  /** Parameters transmitted to method */
2280
2288
  params: (value: Array<JSObject>) => this;
2281
2289
  /** Products list. */
@@ -2284,7 +2292,7 @@ export interface PutProductsBundlesProductsQuantityRequest extends AppendableGat
2284
2292
  bundleIdent: (bundleIdent: JSObject) => this
2285
2293
  }
2286
2294
 
2287
- export interface PutProductsBundlesRenewRequest extends AppendableGateway<PutProductsBundlesRenewRequest, JSObject> {
2295
+ export interface PutProductsBundlesRenewRequest extends AppendableGateway<PutProductsBundlesRenewRequest> {
2288
2296
  /** Parameters transmitted to method */
2289
2297
  params: (value: Array<JSObject>) => this;
2290
2298
  /** Products list. */
@@ -2293,7 +2301,7 @@ export interface PutProductsBundlesRenewRequest extends AppendableGateway<PutPro
2293
2301
  bundleIdent: (bundleIdent: JSObject) => this
2294
2302
  }
2295
2303
 
2296
- export interface GetProductsCategoriesRequest extends PagableGateway<GetProductsCategoriesRequest,GetProductsCategoriesResponse> {
2304
+ export interface GetProductsCategoriesRequest extends PagableGateway<GetProductsCategoriesRequest, GetProductsCategoriesResponse> {
2297
2305
  /** List of product category identifiers in the panel */
2298
2306
  ids: (value: number|string|number[]|string[]) => this;
2299
2307
  /** 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 +2314,9 @@ export interface GetProductsCategoriesRequest extends PagableGateway<GetProducts
2306
2314
  return_last_changed_time: (value: string) => this;
2307
2315
  }
2308
2316
 
2309
- export interface PutProductsCategoriesRequest extends AppendableGateway<PutProductsCategoriesRequest, JSObject> {
2317
+ export interface PutProductsCategoriesRequest extends AppendableGateway<PutProductsCategoriesRequest, PutProductsCategoriesResponse, RequestParams.PutProductsCategoriesParams> {
2310
2318
  /** List of categories in which sought products are present. */
2311
- categories: (value: Array<JSObject>) => this;
2319
+ categories: (value: RequestParams.PutProductsCategoriesParams["categories"]) => this;
2312
2320
  /** Category id. */
2313
2321
  id: (id: number|string) => this
2314
2322
  /** Parent category ID. */
@@ -2318,10 +2326,10 @@ export interface PutProductsCategoriesRequest extends AppendableGateway<PutProdu
2318
2326
  /** Operation code. Allowed values. "add" - adds new category, "edit" - edits existing category, "del" - deletes existing category. */
2319
2327
  operation: (operation: string) => this
2320
2328
  /** */
2321
- lang_data: (lang_data: Array<JSObject>) => this
2329
+ lang_data: (lang_data: RequestParams.PutProductsCategoriesParams["categories"][number]["lang_data"]) => this
2322
2330
  }
2323
2331
 
2324
- export interface SearchProductsCategoriesIdosellRequest extends PagableGateway<SearchProductsCategoriesIdosellRequest,SearchProductsCategoriesIdosellResponse> {
2332
+ export interface SearchProductsCategoriesIdosellRequest extends PagableGateway<SearchProductsCategoriesIdosellRequest, SearchProductsCategoriesIdosellResponse> {
2325
2333
  /** List of languages */
2326
2334
  languagesIds: (value: string|string[]) => this;
2327
2335
  /** Number of IdoSell Categories identifiers */
@@ -2347,14 +2355,14 @@ export interface GetProductsCodeExistenceRequest extends Gateway<GetProductsCode
2347
2355
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2348
2356
  }
2349
2357
 
2350
- export interface PostProductsCollectionsRequest extends AppendableGateway<PostProductsCollectionsRequest, JSObject> {
2358
+ export interface PostProductsCollectionsRequest extends AppendableGateway<PostProductsCollectionsRequest> {
2351
2359
  /** Parameters transmitted to method */
2352
2360
  params: (value: Array<JSObject>) => this;
2353
2361
  /** Products list. */
2354
2362
  products: (products: Array<JSObject>) => this
2355
2363
  }
2356
2364
 
2357
- export interface DeleteProductsCollectionsProductsRequest extends AppendableGateway<DeleteProductsCollectionsProductsRequest, JSObject> {
2365
+ export interface DeleteProductsCollectionsProductsRequest extends AppendableGateway<DeleteProductsCollectionsProductsRequest> {
2358
2366
  /** Parameters transmitted to method */
2359
2367
  params: (value: Array<JSObject>) => this;
2360
2368
  /** Products list. */
@@ -2363,7 +2371,7 @@ export interface DeleteProductsCollectionsProductsRequest extends AppendableGate
2363
2371
  collectionId: (collectionId: number|string) => this
2364
2372
  }
2365
2373
 
2366
- export interface PostProductsCollectionsProductsRequest extends AppendableGateway<PostProductsCollectionsProductsRequest, JSObject> {
2374
+ export interface PostProductsCollectionsProductsRequest extends AppendableGateway<PostProductsCollectionsProductsRequest> {
2367
2375
  /** Parameters transmitted to method */
2368
2376
  params: (value: Array<JSObject>) => this;
2369
2377
  /** Products list. */
@@ -2372,7 +2380,7 @@ export interface PostProductsCollectionsProductsRequest extends AppendableGatewa
2372
2380
  collectionId: (collectionId: number|string) => this
2373
2381
  }
2374
2382
 
2375
- export interface PutProductsCollectionsProductsRequest extends AppendableGateway<PutProductsCollectionsProductsRequest, JSObject> {
2383
+ export interface PutProductsCollectionsProductsRequest extends AppendableGateway<PutProductsCollectionsProductsRequest> {
2376
2384
  /** Parameters transmitted to method */
2377
2385
  params: (value: Array<JSObject>) => this;
2378
2386
  /** Products list. */
@@ -2381,7 +2389,7 @@ export interface PutProductsCollectionsProductsRequest extends AppendableGateway
2381
2389
  collectionId: (collectionId: number|string) => this
2382
2390
  }
2383
2391
 
2384
- export interface PutProductsCollectionsRenewRequest extends AppendableGateway<PutProductsCollectionsRenewRequest, JSObject> {
2392
+ export interface PutProductsCollectionsRenewRequest extends AppendableGateway<PutProductsCollectionsRenewRequest> {
2385
2393
  /** Parameters transmitted to method */
2386
2394
  params: (value: Array<JSObject>) => this;
2387
2395
  /** Products list. */
@@ -2390,12 +2398,12 @@ export interface PutProductsCollectionsRenewRequest extends AppendableGateway<Pu
2390
2398
  collectionIdent: (collectionIdent: JSObject) => this
2391
2399
  }
2392
2400
 
2393
- export interface SearchProductsDeliveryTimeRequest extends AppendableGateway<SearchProductsDeliveryTimeRequest, SearchProductsDeliveryTimeResponse> {
2401
+ export interface SearchProductsDeliveryTimeRequest extends AppendableGateway<SearchProductsDeliveryTimeRequest, SearchProductsDeliveryTimeResponse, RequestParams.SearchProductsDeliveryTimeParams> {
2394
2402
  /** Stock ID */
2395
2403
  stockId: (value: number|string) => this;
2396
2404
  /** Should products be prepared for personal collection? */
2397
- isCollectionInPerson: (value: Boolean) => this;
2398
- products: (value: Array<JSObject>) => this;
2405
+ isCollectionInPerson: (value: boolean) => this;
2406
+ products: (value: RequestParams.SearchProductsDeliveryTimeParams["products"]) => this;
2399
2407
  /** Product Id */
2400
2408
  productId: (productId: number|string) => this
2401
2409
  /** Size identifier */
@@ -2419,7 +2427,7 @@ export interface GetProductsDescriptionsRequest extends Gateway<GetProductsDescr
2419
2427
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2420
2428
  }
2421
2429
 
2422
- export interface PutProductsDescriptionsRequest extends AppendableGateway<PutProductsDescriptionsRequest, JSObject> {
2430
+ export interface PutProductsDescriptionsRequest extends AppendableGateway<PutProductsDescriptionsRequest> {
2423
2431
  /** Products list. */
2424
2432
  products: (value: Array<JSObject>) => this;
2425
2433
  /** */
@@ -2433,14 +2441,14 @@ export interface PutProductsDescriptionsRequest extends AppendableGateway<PutPro
2433
2441
  setText: (text: string, type?: "productName"|"productAuctionName"|"productPriceComparerName"|"productDescription"|"productLongDescription"|"productMetaTitle"|"productMetaDescription"|"productMetaKeywords", language?: string, shopId?: number|string) => this;
2434
2442
  }
2435
2443
 
2436
- export interface PutProductsGroupsMainProductRequest extends AppendableGateway<PutProductsGroupsMainProductRequest, JSObject> {
2444
+ export interface PutProductsGroupsMainProductRequest extends AppendableGateway<PutProductsGroupsMainProductRequest> {
2437
2445
  groups: (value: Array<JSObject>) => this;
2438
2446
  /** */
2439
2447
  productIdent: (productIdent: JSObject) => this
2440
2448
  productId: (value: number|string) => this;
2441
2449
  }
2442
2450
 
2443
- export interface PutProductsGroupsOrderRequest extends AppendableGateway<PutProductsGroupsOrderRequest, JSObject> {
2451
+ export interface PutProductsGroupsOrderRequest extends AppendableGateway<PutProductsGroupsOrderRequest> {
2444
2452
  groups: (value: Array<JSObject>) => this;
2445
2453
  /** */
2446
2454
  productsInOrder: (productsInOrder: Array<JSObject>) => this
@@ -2448,14 +2456,14 @@ export interface PutProductsGroupsOrderRequest extends AppendableGateway<PutProd
2448
2456
  productIdsInOrder: (productIds: number|string|number[]|string[]) => this;
2449
2457
  }
2450
2458
 
2451
- export interface PutProductsGroupsSettingsRequest extends AppendableGateway<PutProductsGroupsSettingsRequest, JSObject> {
2459
+ export interface PutProductsGroupsSettingsRequest extends AppendableGateway<PutProductsGroupsSettingsRequest> {
2452
2460
  groups: (value: Array<JSObject>) => this;
2453
2461
  /** */
2454
2462
  productIdent: (productIdent: JSObject) => this
2455
2463
  /** Display on the product list in the panel. */
2456
- displayInPanel: (displayInPanel: 'firstavailable'|'all') => this
2464
+ displayInPanel: (displayInPanel: 'firstAvailable'|'all') => this
2457
2465
  /** Display on a product list on the page. */
2458
- displayOnPage: (displayOnPage: 'firstavailable'|'all'|'specified') => this
2466
+ displayOnPage: (displayOnPage: 'firstAvailable'|'all'|'specified') => this
2459
2467
  /** Selected product in the group. */
2460
2468
  specifiedProductIdent: (specifiedProductIdent: JSObject) => this
2461
2469
  productId: (value: number|string) => this;
@@ -2468,7 +2476,7 @@ export interface GetProductsIdBySizecodeRequest extends Gateway<GetProductsIdByS
2468
2476
  type: (value: string) => this;
2469
2477
  }
2470
2478
 
2471
- export interface DeleteProductsImagesRequest extends AppendableGateway<DeleteProductsImagesRequest, JSObject> {
2479
+ export interface DeleteProductsImagesRequest extends AppendableGateway<DeleteProductsImagesRequest> {
2472
2480
  /** Parameters transmitted to method */
2473
2481
  params: (value: Array<JSObject>) => this;
2474
2482
  /** Delete all images */
@@ -2481,7 +2489,7 @@ export interface DeleteProductsImagesRequest extends AppendableGateway<DeletePro
2481
2489
  productImagesId: (productImagesId: string|string[]) => this
2482
2490
  }
2483
2491
 
2484
- export interface PutProductsImagesRequest extends AppendableGateway<PutProductsImagesRequest, JSObject> {
2492
+ export interface PutProductsImagesRequest extends AppendableGateway<PutProductsImagesRequest> {
2485
2493
  productsImagesSettings: (value: JSObject) => this;
2486
2494
  /** Information on product images */
2487
2495
  productsImages: (value: Array<JSObject>) => this;
@@ -2499,7 +2507,7 @@ export interface PutProductsImagesRequest extends AppendableGateway<PutProductsI
2499
2507
  productImagesSettings: (productImagesSettings: JSObject) => this
2500
2508
  productId: (value: number|string) => this;
2501
2509
  /** Adds image source with selected priority */
2502
- addImage: (source: string, priority: number|string) => this;
2510
+ addImage: (source: string, priority?: number|string) => this;
2503
2511
  /** Set global image source to base64 */
2504
2512
  base64: () => this;
2505
2513
  }
@@ -2516,7 +2524,7 @@ export interface GetProductsMarketingPromotionRequest extends Gateway {
2516
2524
  products: (value: number|string|number[]|string[]) => this;
2517
2525
  }
2518
2526
 
2519
- export interface PostProductsMarketingPromotionRequest extends AppendableGateway<PostProductsMarketingPromotionRequest, JSObject> {
2527
+ export interface PostProductsMarketingPromotionRequest extends AppendableGateway<PostProductsMarketingPromotionRequest> {
2520
2528
  /** Promotion name */
2521
2529
  promotionName: (value: string) => this;
2522
2530
  /** List of stores IDs When mask is determined, this parameter is omitted. */
@@ -2547,7 +2555,7 @@ export interface PostProductsMarketingPromotionRequest extends AppendableGateway
2547
2555
  elementId: (elementId: string) => this
2548
2556
  }
2549
2557
 
2550
- export interface PutProductsMarketingPromotionRequest extends AppendableGateway<PutProductsMarketingPromotionRequest, JSObject> {
2558
+ export interface PutProductsMarketingPromotionRequest extends AppendableGateway<PutProductsMarketingPromotionRequest> {
2551
2559
  /** Promotion ID */
2552
2560
  promotionId: (value: string) => this;
2553
2561
  /** Promotion name */
@@ -2590,7 +2598,7 @@ export interface GetProductsMarketingZonesRequest extends Gateway {
2590
2598
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2591
2599
  }
2592
2600
 
2593
- export interface PutProductsMarketingZonesRequest extends AppendableGateway<PutProductsMarketingZonesRequest, JSObject> {
2601
+ export interface PutProductsMarketingZonesRequest extends AppendableGateway<PutProductsMarketingZonesRequest> {
2594
2602
  /** Products list. */
2595
2603
  products: (value: Array<JSObject>) => this;
2596
2604
  assignment_mode: (value: 'auto'|'manual') => this;
@@ -2609,7 +2617,7 @@ export interface GetProductsOmnibusPricesRequest extends Gateway<GetProductsOmni
2609
2617
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2610
2618
  }
2611
2619
 
2612
- export interface PutProductsOmnibusPricesRequest extends AppendableGateway<PutProductsOmnibusPricesRequest, JSObject> {
2620
+ export interface PutProductsOmnibusPricesRequest extends AppendableGateway<PutProductsOmnibusPricesRequest> {
2613
2621
  /** Products list. */
2614
2622
  products: (value: Array<JSObject>) => this;
2615
2623
  /** Identifier type. */
@@ -2625,14 +2633,14 @@ export interface PutProductsOmnibusPricesRequest extends AppendableGateway<PutPr
2625
2633
  /** Set retail or wholesale price */
2626
2634
  setPrice: (price: number, wholesale?: boolean) => this;
2627
2635
  /** Set mode to automatic */
2628
- mode: (automatic: boolean) => this;
2636
+ mode: (manual?: boolean) => this;
2629
2637
  }
2630
2638
 
2631
2639
  export interface DeleteProductsOpinionsRequest extends Gateway {
2632
2640
  id: (value: number|string) => this;
2633
2641
  }
2634
2642
 
2635
- export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOpinionsRequest,GetProductsOpinionsResponse> {
2643
+ export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOpinionsRequest, GetProductsOpinionsResponse> {
2636
2644
  /** Review identification */
2637
2645
  opinion: (value: JSObject) => this;
2638
2646
  /** Products list. */
@@ -2654,10 +2662,10 @@ export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOp
2654
2662
  /** Define range of dates */
2655
2663
  dates: (dateFrom: DateLike, dateTo: DateLike) => this;
2656
2664
  /** Define ordering of records */
2657
- orderBy: (elementName: "date"|"rating"|"scorePositive"|"scoreNegative"|"modificationDatetime", descending: boolean) => this;
2665
+ orderBy: (elementName: "date"|"rating"|"scorePositive"|"scoreNegative"|"modificationDatetime", descending?: boolean) => this;
2658
2666
  }
2659
2667
 
2660
- export interface PostProductsOpinionsRequest extends AppendableGateway<PostProductsOpinionsRequest, JSObject> {
2668
+ export interface PostProductsOpinionsRequest extends AppendableGateway<PostProductsOpinionsRequest> {
2661
2669
  /** List of reviews */
2662
2670
  opinions: (value: Array<JSObject>) => this;
2663
2671
  /** */
@@ -2703,7 +2711,7 @@ export interface PutProductsOpinionsRequest extends Gateway {
2703
2711
  shopAnswer: (value: string) => this;
2704
2712
  picture: (value: string) => this;
2705
2713
  /** Opinion confirmed with purchase */
2706
- opinionConfirmedByPurchase: (value: Boolean) => this;
2714
+ opinionConfirmedByPurchase: (value: boolean) => this;
2707
2715
  }
2708
2716
 
2709
2717
  export interface GetProductsOpinionsRateRequest extends Gateway {
@@ -2716,7 +2724,7 @@ export interface DeleteProductsParametersRequest extends Gateway {
2716
2724
  ids: (value: number|string|number[]|string[]) => this;
2717
2725
  }
2718
2726
 
2719
- export interface PutProductsParametersRequest extends AppendableGateway<PutProductsParametersRequest, JSObject> {
2727
+ export interface PutProductsParametersRequest extends AppendableGateway<PutProductsParametersRequest> {
2720
2728
  /** Sections, parameters or valued to add or edit. */
2721
2729
  items: (value: Array<JSObject>) => this;
2722
2730
  /** Settings */
@@ -2741,22 +2749,22 @@ export interface PutProductsParametersRequest extends AppendableGateway<PutProdu
2741
2749
  context_value_id: (context_value_id: string) => this
2742
2750
  }
2743
2751
 
2744
- export interface SearchProductsParametersRequest extends PagableGateway<SearchProductsParametersRequest,SearchProductsParametersResponse> {
2752
+ export interface SearchProductsParametersRequest extends PagableGateway<SearchProductsParametersRequest, SearchProductsParametersResponse, RequestParams.SearchProductsParametersParams> {
2745
2753
  /** List of identifiers */
2746
2754
  ids: (value: number|string|number[]|string[]) => this;
2747
2755
  /** Element text ID - can be entered instead of "id". */
2748
- textIds: (value: Array<JSObject>) => this;
2756
+ textIds: (value: RequestParams.SearchProductsParametersParams["textIds"]) => this;
2749
2757
  /** List of languages */
2750
2758
  languagesIds: (value: string|string[]) => this;
2751
2759
  /** Whether to return a list of parameter value IDs */
2752
- parameterValueIds: (value: Boolean) => this;
2760
+ parameterValueIds: (value: boolean) => this;
2753
2761
  /** Page with results number. Numeration starts from 0 */
2754
2762
  resultsPage: (value: number|string) => this;
2755
2763
  /** Number of results on page. Value from 1 to 100 */
2756
2764
  resultsLimit: (value: number|string) => this;
2757
2765
  }
2758
2766
 
2759
- export interface DeleteProductsRequest extends AppendableGateway<DeleteProductsRequest, JSObject> {
2767
+ export interface DeleteProductsRequest extends AppendableGateway<DeleteProductsRequest> {
2760
2768
  /** Products list. */
2761
2769
  products: (value: Array<JSObject>) => this;
2762
2770
  /** Product IAI code */
@@ -2818,7 +2826,7 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2818
2826
  /** 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
2827
  priceChangeMode: (priceChangeMode: string) => this
2820
2828
  /** The JavaScript formula calculating prices */
2821
- priceFormula: (priceFormula: JSObject) => this
2829
+ priceFormula: (priceFormula: RequestParams.PostProductsParams["products"][number]["priceFormula"]) => this
2822
2830
  /** Gross price */
2823
2831
  productRetailPrice: (productRetailPrice: number) => this
2824
2832
  /** Wholesale price */
@@ -2834,9 +2842,9 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2834
2842
  /** Is product VAT free Allowed values "y" - yes, "n" - no. */
2835
2843
  productVatFree: (productVatFree: string) => this
2836
2844
  /** Different prices for price comparison websites. */
2837
- productPriceComparisonSitesPrices: (productPriceComparisonSitesPrices: Array<JSObject>) => this
2845
+ productPriceComparisonSitesPrices: (productPriceComparisonSitesPrices: RequestParams.PostProductsParams["products"][number]["productPriceComparisonSitesPrices"]) => this
2838
2846
  /** Object determines if the product is available in POS sale Available values: "n" - no, "y" - yes. */
2839
- productEnableInPos: (productEnableInPos: string) => this
2847
+ productEnableInPos: (productEnableInPos: "n" | "y") => this
2840
2848
  /** Required advance payment in percents */
2841
2849
  productAdvancePrice: (productAdvancePrice: number) => this
2842
2850
  /** Annotation. */
@@ -2848,17 +2856,17 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2848
2856
  /** Product visibility. Allowed values "y" - product visible, "n" - product not visible. */
2849
2857
  productInVisible: (productInVisible: string) => this
2850
2858
  /** 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
2859
+ productInPersistent: (productInPersistent: "y" | "n") => this
2852
2860
  /** 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
2861
  shopsMask: (shopsMask: number|string) => this
2854
2862
  /** Complex rating Available values: "0" - no, "1" - yes. */
2855
2863
  productComplexNotes: (productComplexNotes: number|string) => this
2856
2864
  /** Product visibility in export to price comparison and marketplaces. Available values: "y" - Visible, "selected" - yes (selected), "n" - invisible. */
2857
- productInExportToPriceComparisonSites: (productInExportToPriceComparisonSites: string) => this
2865
+ productInExportToPriceComparisonSites: (productInExportToPriceComparisonSites: "y" | "selected" | "n") => this
2858
2866
  /** Selection of comparison sites for which the product visibility will be changed */
2859
- priceComparisonSites: (priceComparisonSites: Array<JSObject>) => this
2867
+ priceComparisonSites: (priceComparisonSites: RequestParams.PostProductsParams["products"][number]["priceComparisonSites"]) => this
2860
2868
  /** 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
2869
+ productInExportToAmazonMarketplace: (productInExportToAmazonMarketplace: "y" | "selected" | "n") => this
2862
2870
  /** Availability profile ID. */
2863
2871
  availableProfile: (availableProfile: number|string) => this
2864
2872
  /** Discount profile ID */
@@ -2878,41 +2886,41 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2878
2886
  /** List of photos descriptions */
2879
2887
  productDescriptionPictures: (productDescriptionPictures: string|string[]) => this
2880
2888
  /** Reduced price */
2881
- productPromotion: (productPromotion: JSObject) => this
2889
+ productPromotion: (productPromotion: RequestParams.PostProductsParams["products"][number]["productPromotion"]) => this
2882
2890
  /** Discount for shop. */
2883
- productDiscount: (productDiscount: JSObject) => this
2891
+ productDiscount: (productDiscount: RequestParams.PostProductsParams["products"][number]["productDiscount"]) => this
2884
2892
  /** Distinguished product in store. */
2885
- productDistinguished: (productDistinguished: JSObject) => this
2893
+ productDistinguished: (productDistinguished: RequestParams.PostProductsParams["products"][number]["productDistinguished"]) => this
2886
2894
  /** Special product in store. */
2887
- productSpecial: (productSpecial: JSObject) => this
2895
+ productSpecial: (productSpecial: RequestParams.PostProductsParams["products"][number]["productSpecial"]) => this
2888
2896
  /** Parameters (distinguished). */
2889
- productParametersDistinction: (productParametersDistinction: Array<JSObject>) => this
2897
+ productParametersDistinction: (productParametersDistinction: RequestParams.PostProductsParams["products"][number]["productParametersDistinction"]) => this
2890
2898
  /** List of products recommended with this product */
2891
- associatedProducts: (associatedProducts: Array<JSObject>) => this
2899
+ associatedProducts: (associatedProducts: RequestParams.PostProductsParams["products"][number]["associatedProducts"]) => this
2892
2900
  /** Sizes available for products data. */
2893
- productSizes: (productSizes: Array<JSObject>) => this
2901
+ productSizes: (productSizes: RequestParams.PostProductsParams["products"][number]["productSizes"]) => this
2894
2902
  /** Data concerning attributes dependent on indicated stores with particular product assigned. */
2895
- productShopsAttributes: (productShopsAttributes: Array<JSObject>) => this
2903
+ productShopsAttributes: (productShopsAttributes: RequestParams.PostProductsParams["products"][number]["productShopsAttributes"]) => this
2896
2904
  /** Products subscription settings. */
2897
- subscription: (subscription: Array<JSObject>) => this
2905
+ subscription: (subscription: RequestParams.PostProductsParams["products"][number]["subscription"]) => this
2898
2906
  /** Product name. */
2899
- productNames: (productNames: JSObject) => this
2907
+ productNames: (productNames: RequestParams.PostProductsParams["products"][number]["productNames"]) => this
2900
2908
  /** */
2901
- productDescriptions: (productDescriptions: JSObject) => this
2909
+ productDescriptions: (productDescriptions: RequestParams.PostProductsParams["products"][number]["productDescriptions"]) => this
2902
2910
  /** Long product description */
2903
- productLongDescriptions: (productLongDescriptions: JSObject) => this
2911
+ productLongDescriptions: (productLongDescriptions: RequestParams.PostProductsParams["products"][number]["productLongDescriptions"]) => this
2904
2912
  /** Product data for auction services */
2905
- productAuctionDescriptionsData: (productAuctionDescriptionsData: Array<JSObject>) => this
2913
+ productAuctionDescriptionsData: (productAuctionDescriptionsData: RequestParams.PostProductsParams["products"][number]["productAuctionDescriptionsData"]) => this
2906
2914
  /** Product meta title */
2907
- productMetaTitles: (productMetaTitles: JSObject) => this
2915
+ productMetaTitles: (productMetaTitles: RequestParams.PostProductsParams["products"][number]["productMetaTitles"]) => this
2908
2916
  /** Product meta description */
2909
- productMetaDescriptions: (productMetaDescriptions: JSObject) => this
2917
+ productMetaDescriptions: (productMetaDescriptions: RequestParams.PostProductsParams["products"][number]["productMetaDescriptions"]) => this
2910
2918
  /** Product meta keywords. */
2911
- productMetaKeywords: (productMetaKeywords: JSObject) => this
2919
+ productMetaKeywords: (productMetaKeywords: RequestParams.PostProductsParams["products"][number]["productMetaKeywords"]) => this
2912
2920
  /** #!AdresURLDlaTowaru!#. */
2913
- productUrl: (productUrl: JSObject) => this
2921
+ productUrl: (productUrl: RequestParams.PostProductsParams["products"][number]["productUrl"]) => this
2914
2922
  /** Data on product groups (variants) */
2915
- productVersion: (productVersion: JSObject) => this
2923
+ productVersion: (productVersion: RequestParams.PostProductsParams["products"][number]["productVersion"]) => this
2916
2924
  /** Currency ID */
2917
2925
  currencyId: (currencyId: string) => this
2918
2926
  /** Supplier ID. */
@@ -2920,17 +2928,17 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2920
2928
  /** 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
2929
  productParametersDistinctionChangeMode: (productParametersDistinctionChangeMode: 'add'|'delete'|'delete_group'|'replace') => this
2922
2930
  /** Product delivery time from the producer to the shop */
2923
- productDeliveryTime: (productDeliveryTime: JSObject) => this
2931
+ productDeliveryTime: (productDeliveryTime: RequestParams.PostProductsParams["products"][number]["productDeliveryTime"]) => this
2924
2932
  /** 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
2933
+ productSumInBasket: (productSumInBasket: "y" | "n") => this
2926
2934
  /** Shipping, returns and complaints settings */
2927
- dispatchSettings: (dispatchSettings: JSObject) => this
2935
+ dispatchSettings: (dispatchSettings: RequestParams.PostProductsParams["products"][number]["dispatchSettings"]) => this
2928
2936
  /** Standard unit settings */
2929
- standardUnit: (standardUnit: JSObject) => this
2937
+ standardUnit: (standardUnit: RequestParams.PostProductsParams["products"][number]["standardUnit"]) => this
2930
2938
  /** Minimal number of products in an order */
2931
- minQuantityPerOrder: (minQuantityPerOrder: JSObject) => this
2939
+ minQuantityPerOrder: (minQuantityPerOrder: RequestParams.PostProductsParams["products"][number]["minQuantityPerOrder"]) => this
2932
2940
  /** Dimensions and overall weight */
2933
- productDimensions: (productDimensions: JSObject) => this
2941
+ productDimensions: (productDimensions: RequestParams.PostProductsParams["products"][number]["productDimensions"]) => this
2934
2942
  /** Responsible producer code */
2935
2943
  responsibleProducerCode: (responsibleProducerCode: string) => this
2936
2944
  /** Responsible person code */
@@ -3031,19 +3039,19 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3031
3039
  /** Is product VAT free Allowed values "y" - yes, "n" - no. */
3032
3040
  productVatFree: (productVatFree: string) => this
3033
3041
  /** Different prices for price comparison websites. */
3034
- productPriceComparisonSitesPrices: (productPriceComparisonSitesPrices: Array<JSObject>) => this
3042
+ productPriceComparisonSitesPrices: (productPriceComparisonSitesPrices: RequestParams.PutProductsParams["products"][number]["productPriceComparisonSitesPrices"]) => this
3035
3043
  /** Object determines if the product is available in POS sale Available values: "n" - no, "y" - yes. */
3036
- productEnableInPos: (productEnableInPos: string) => this
3044
+ productEnableInPos: (productEnableInPos: "n" | "y") => this
3037
3045
  /** Required advance payment in percents */
3038
3046
  productAdvancePrice: (productAdvancePrice: number) => this
3039
3047
  /** Annotation. */
3040
3048
  productNote: (productNote: string) => this
3041
3049
  /** Settings of hotspots display. */
3042
- productHotspotsZones: (productHotspotsZones: Array<JSObject>) => this
3050
+ productHotspotsZones: (productHotspotsZones: RequestParams.PutProductsParams["products"][number]["productHotspotsZones"]) => this
3043
3051
  /** Loyalty points. */
3044
- priceInPoints: (priceInPoints: JSObject) => this
3052
+ priceInPoints: (priceInPoints: RequestParams.PutProductsParams["products"][number]["priceInPoints"]) => this
3045
3053
  /** Loyalty points. */
3046
- loyaltyPoints: (loyaltyPoints: Array<JSObject>) => this
3054
+ loyaltyPoints: (loyaltyPoints: RequestParams.PutProductsParams["products"][number]["loyaltyPoints"]) => this
3047
3055
  /** Weight. */
3048
3056
  productWeight: (productWeight: number|string) => this
3049
3057
  /** Product visibility. Allowed values "y" - product visible, "n" - product not visible. */
@@ -3055,9 +3063,9 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3055
3063
  /** 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
3064
  productInExportToPriceComparisonSites: (productInExportToPriceComparisonSites: 'y'|'selected'|'n') => this
3057
3065
  /** Selection of comparison sites for which the product visibility will be changed */
3058
- priceComparisonSites: (priceComparisonSites: Array<JSObject>) => this
3066
+ priceComparisonSites: (priceComparisonSites: RequestParams.PutProductsParams["products"][number]["priceComparisonSites"]) => this
3059
3067
  /** 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
3068
+ productInExportToAmazonMarketplace: (productInExportToAmazonMarketplace: "y" | "selected" | "n") => this
3061
3069
  /** Array */
3062
3070
  exportToAmazonMarketplacesList: (exportToAmazonMarketplacesList: string|string[]) => this
3063
3071
  /** Export sizes to Amazon: Available values: "y" - all, "n" - leave without change. */
@@ -3077,7 +3085,7 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3077
3085
  /** Name of warranty for indicated product. */
3078
3086
  warrantyName: (warrantyName: string) => this
3079
3087
  /** The JavaScript formula calculating prices */
3080
- priceFormula: (priceFormula: JSObject) => this
3088
+ priceFormula: (priceFormula: RequestParams.PutProductsParams["products"][number]["priceFormula"]) => this
3081
3089
  /** Size chart ID */
3082
3090
  sizeChartId: (sizeChartId: number|string) => this
3083
3091
  /** Size chart name */
@@ -3085,7 +3093,7 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3085
3093
  /** Priority. Allowed values from 1 to 10. */
3086
3094
  productPriority: (productPriority: number|string) => this
3087
3095
  /** Product priority in menu node. */
3088
- productPriorityInMenuNodes: (productPriorityInMenuNodes: Array<JSObject>) => this
3096
+ productPriorityInMenuNodes: (productPriorityInMenuNodes: RequestParams.PutProductsParams["products"][number]["productPriorityInMenuNodes"]) => this
3089
3097
  /** Product icon link. */
3090
3098
  productIconLink: (productIconLink: string) => this
3091
3099
  /** Photo without background. */
@@ -3093,67 +3101,67 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3093
3101
  /** Icon for a product group. */
3094
3102
  productGroupIconLink: (productGroupIconLink: string) => this
3095
3103
  /** List of product photos */
3096
- productPictures: (productPictures: Array<JSObject>) => this
3104
+ productPictures: (productPictures: RequestParams.PutProductsParams["products"][number]["productPictures"]) => this
3097
3105
  /** List of a product's photos with indication of a particular number of the photo. */
3098
- productPicturesReplace: (productPicturesReplace: Array<JSObject>) => this
3106
+ productPicturesReplace: (productPicturesReplace: RequestParams.PutProductsParams["products"][number]["productPicturesReplace"]) => this
3099
3107
  /** Reduced price */
3100
- productPromotion: (productPromotion: JSObject) => this
3108
+ productPromotion: (productPromotion: RequestParams.PutProductsParams["products"][number]["productPromotion"]) => this
3101
3109
  /** Discount for shop. */
3102
- productDiscount: (productDiscount: JSObject) => this
3110
+ productDiscount: (productDiscount: RequestParams.PutProductsParams["products"][number]["productDiscount"]) => this
3103
3111
  /** Distinguished product in store. */
3104
- productDistinguished: (productDistinguished: JSObject) => this
3112
+ productDistinguished: (productDistinguished: RequestParams.PutProductsParams["products"][number]["productDistinguished"]) => this
3105
3113
  /** Special product in store. */
3106
- productSpecial: (productSpecial: JSObject) => this
3114
+ productSpecial: (productSpecial: RequestParams.PutProductsParams["products"][number]["productSpecial"]) => this
3107
3115
  /** Parameters (distinguished). */
3108
- productParametersDistinction: (productParametersDistinction: Array<JSObject>) => this
3116
+ productParametersDistinction: (productParametersDistinction: RequestParams.PutProductsParams["products"][number]["productParametersDistinction"]) => this
3109
3117
  /** Configuration parameters */
3110
- parametersConfigurable: (parametersConfigurable: Array<JSObject>) => this
3118
+ parametersConfigurable: (parametersConfigurable: RequestParams.PutProductsParams["products"][number]["parametersConfigurable"]) => this
3111
3119
  /** List of products recommended with this product */
3112
- associatedProducts: (associatedProducts: Array<JSObject>) => this
3120
+ associatedProducts: (associatedProducts: RequestParams.PutProductsParams["products"][number]["associatedProducts"]) => this
3113
3121
  /** Sizes available for products data. */
3114
- productSizes: (productSizes: Array<JSObject>) => this
3122
+ productSizes: (productSizes: RequestParams.PutProductsParams["products"][number]["productSizes"]) => this
3115
3123
  /** Product attachments list. */
3116
- attachments: (attachments: Array<JSObject>) => this
3124
+ attachments: (attachments: RequestParams.PutProductsParams["products"][number]["attachments"]) => this
3117
3125
  /** The list of attachments to be deleted. */
3118
- removeAttachments: (removeAttachments: Array<JSObject>) => this
3126
+ removeAttachments: (removeAttachments: RequestParams.PutProductsParams["products"][number]["removeAttachments"]) => this
3119
3127
  /** Do you want to delete attachments for digital files. */
3120
3128
  virtualAttachmentsToRemove: (virtualAttachmentsToRemove: boolean) => this
3121
3129
  /** List of product's virtual attachments. */
3122
- virtualAttachments: (virtualAttachments: Array<JSObject>) => this
3130
+ virtualAttachments: (virtualAttachments: RequestParams.PutProductsParams["products"][number]["virtualAttachments"]) => this
3123
3131
  /** Operation, that will be performed on attachments to product. */
3124
3132
  attachmentOperationValues: (attachmentOperationValues: 'edit'|'add'|'remove') => this
3125
3133
  /** Data concerning attributes dependent on indicated stores with particular product assigned. */
3126
- productShopsAttributes: (productShopsAttributes: Array<JSObject>) => this
3134
+ productShopsAttributes: (productShopsAttributes: RequestParams.PutProductsParams["products"][number]["productShopsAttributes"]) => this
3127
3135
  /** Products subscription settings. */
3128
- subscription: (subscription: Array<JSObject>) => this
3136
+ subscription: (subscription: RequestParams.PutProductsParams["products"][number]["subscription"]) => this
3129
3137
  /** Product name. */
3130
- productNames: (productNames: JSObject) => this
3138
+ productNames: (productNames: RequestParams.PutProductsParams["products"][number]["productNames"]) => this
3131
3139
  /** DEPRECATED. This parameter is deprecated. Product name for online auctions. */
3132
- productNamesInAuction: (productNamesInAuction: JSObject) => this
3140
+ productNamesInAuction: (productNamesInAuction: RequestParams.PutProductsParams["products"][number]["productNamesInAuction"]) => this
3133
3141
  /** Product name for price comparison websites. */
3134
- productNamesInPriceComparer: (productNamesInPriceComparer: JSObject) => this
3142
+ productNamesInPriceComparer: (productNamesInPriceComparer: RequestParams.PutProductsParams["products"][number]["productNamesInPriceComparer"]) => this
3135
3143
  /** Product short description */
3136
- productParamDescriptions: (productParamDescriptions: JSObject) => this
3144
+ productParamDescriptions: (productParamDescriptions: RequestParams.PutProductsParams["products"][number]["productParamDescriptions"]) => this
3137
3145
  /** Long product description */
3138
- productLongDescriptions: (productLongDescriptions: JSObject) => this
3146
+ productLongDescriptions: (productLongDescriptions: RequestParams.PutProductsParams["products"][number]["productLongDescriptions"]) => this
3139
3147
  /** DEPRECATED. This parameter is deprecated. Product description for marketplaces. */
3140
- productLongDescriptionsInAuction: (productLongDescriptionsInAuction: JSObject) => this
3148
+ productLongDescriptionsInAuction: (productLongDescriptionsInAuction: RequestParams.PutProductsParams["products"][number]["productLongDescriptionsInAuction"]) => this
3141
3149
  /** Product data for auction services */
3142
- productAuctionDescriptionsData: (productAuctionDescriptionsData: Array<JSObject>) => this
3150
+ productAuctionDescriptionsData: (productAuctionDescriptionsData: RequestParams.PutProductsParams["products"][number]["productAuctionDescriptionsData"]) => this
3143
3151
  /** Product meta title */
3144
- productMetaTitles: (productMetaTitles: JSObject) => this
3152
+ productMetaTitles: (productMetaTitles: RequestParams.PutProductsParams["products"][number]["productMetaTitles"]) => this
3145
3153
  /** Product meta description */
3146
- productMetaDescriptions: (productMetaDescriptions: JSObject) => this
3154
+ productMetaDescriptions: (productMetaDescriptions: RequestParams.PutProductsParams["products"][number]["productMetaDescriptions"]) => this
3147
3155
  /** Product meta keywords. */
3148
- productMetaKeywords: (productMetaKeywords: JSObject) => this
3156
+ productMetaKeywords: (productMetaKeywords: RequestParams.PutProductsParams["products"][number]["productMetaKeywords"]) => this
3149
3157
  /** URL for the product */
3150
- productUrl: (productUrl: JSObject) => this
3158
+ productUrl: (productUrl: RequestParams.PutProductsParams["products"][number]["productUrl"]) => this
3151
3159
  /** Data on product groups (variants) */
3152
- productVersion: (productVersion: JSObject) => this
3160
+ productVersion: (productVersion: RequestParams.PutProductsParams["products"][number]["productVersion"]) => this
3153
3161
  /** Currency ID */
3154
3162
  currencyId: (currencyId: string) => this
3155
3163
  /** Currency, in which product prices are stored. */
3156
- productCurrenciesShops: (productCurrenciesShops: Array<JSObject>) => this
3164
+ productCurrenciesShops: (productCurrenciesShops: RequestParams.PutProductsParams["products"][number]["productCurrenciesShops"]) => this
3157
3165
  /** Supplier ID. */
3158
3166
  delivererId: (delivererId: number|string) => this
3159
3167
  /** Supplier name. */
@@ -3161,21 +3169,21 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3161
3169
  /** 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
3170
  productParametersDistinctionChangeMode: (productParametersDistinctionChangeMode: 'add'|'delete'|'delete_group'|'replace') => this
3163
3171
  /** Product delivery time from the producer to the shop */
3164
- productDeliveryTime: (productDeliveryTime: JSObject) => this
3172
+ productDeliveryTime: (productDeliveryTime: RequestParams.PutProductsParams["products"][number]["productDeliveryTime"]) => this
3165
3173
  /** Parameters. */
3166
- productParameters: (productParameters: Array<JSObject>) => this
3174
+ productParameters: (productParameters: RequestParams.PutProductsParams["products"][number]["productParameters"]) => this
3167
3175
  /** */
3168
3176
  clearProductParameters: (clearProductParameters: boolean) => this
3169
3177
  /** Change parameter distinction. */
3170
- changeParametersDistinction: (changeParametersDistinction: Array<JSObject>) => this
3178
+ changeParametersDistinction: (changeParametersDistinction: RequestParams.PutProductsParams["products"][number]["changeParametersDistinction"]) => this
3171
3179
  /** 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
3180
  productPriceVatChangeMode: (productPriceVatChangeMode: 'change_net'|'change_gross') => this
3173
3181
  /** An array of menu elements */
3174
- productMenuItems: (productMenuItems: Array<JSObject>) => this
3182
+ productMenuItems: (productMenuItems: RequestParams.PutProductsParams["products"][number]["productMenuItems"]) => this
3175
3183
  /** Deletes all items assigned to the product of the selected menu */
3176
- removeAllProductsAssignedToMenu: (removeAllProductsAssignedToMenu: JSObject) => this
3184
+ removeAllProductsAssignedToMenu: (removeAllProductsAssignedToMenu: RequestParams.PutProductsParams["products"][number]["removeAllProductsAssignedToMenu"]) => this
3177
3185
  /** 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
3186
+ productSumInBasket: (productSumInBasket: "y" | "n") => this
3179
3187
  /** 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
3188
  productShopsPricesConfig: (productShopsPricesConfig: 'same_prices'|'different_prices') => this
3181
3189
  /** 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 +3199,23 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3191
3199
  /** Remove all unused sizes. */
3192
3200
  removeAllUnusedProductSizes: (removeAllUnusedProductSizes: boolean) => this
3193
3201
  /** 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
3202
+ producerCodesStandard: (producerCodesStandard: 'auto'|'GTIN14'|'GTIN13'|'ISBN13'|'GTIN12'|'ISBN10'|'GTIN8'|'UPCE'|'MPN'|'other') => this
3195
3203
  /** JavaScript code displayed in the product page of the IdoSell Shop */
3196
- javaScriptInTheItemCard: (javaScriptInTheItemCard: Array<JSObject>) => this
3204
+ javaScriptInTheItemCard: (javaScriptInTheItemCard: RequestParams.PutProductsParams["products"][number]["javaScriptInTheItemCard"]) => this
3197
3205
  /** Saving serial numbers Available values: "na" - not used, "optional" - Optional, "required" - required. */
3198
3206
  serialNumbersOption: (serialNumbersOption: 'na'|'optional'|'required') => this
3199
3207
  /** Shipping, returns and complaints settings */
3200
- dispatchSettings: (dispatchSettings: JSObject) => this
3208
+ dispatchSettings: (dispatchSettings: RequestParams.PutProductsParams["products"][number]["dispatchSettings"]) => this
3201
3209
  /** Standard unit settings */
3202
- standardUnit: (standardUnit: JSObject) => this
3210
+ standardUnit: (standardUnit: RequestParams.PutProductsParams["products"][number]["standardUnit"]) => this
3203
3211
  /** Minimal number of products in an order */
3204
- minQuantityPerOrder: (minQuantityPerOrder: JSObject) => this
3212
+ minQuantityPerOrder: (minQuantityPerOrder: RequestParams.PutProductsParams["products"][number]["minQuantityPerOrder"]) => this
3205
3213
  /** */
3206
3214
  dynamicPricingEnabled: (dynamicPricingEnabled: string) => this
3207
3215
  /** The setting allows you to reset the inventory to zero */
3208
- clearStockQuantities: (clearStockQuantities: JSObject) => this
3216
+ clearStockQuantities: (clearStockQuantities: RequestParams.PutProductsParams["products"][number]["clearStockQuantities"]) => this
3209
3217
  /** Dimensions and overall weight */
3210
- productDimensions: (productDimensions: JSObject) => this
3218
+ productDimensions: (productDimensions: RequestParams.PutProductsParams["products"][number]["productDimensions"]) => this
3211
3219
  /** Responsible producer code */
3212
3220
  responsibleProducerCode: (responsibleProducerCode: string) => this
3213
3221
  /** Responsible person code */
@@ -3228,56 +3236,56 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3228
3236
  pictures: (picturesArray: string|string[]) => this;
3229
3237
  }
3230
3238
 
3231
- export interface SearchProductsRequest extends PagableGateway<SearchProductsRequest,SearchProductsResponse> {
3232
- dispatchSettings: (value: JSObject) => this;
3239
+ export interface SearchProductsRequest extends PagableGateway<SearchProductsRequest, SearchProductsResponse, RequestParams.SearchProductsParams> {
3240
+ dispatchSettings: (value: RequestParams.SearchProductsParams["dispatchSettings"]) => this;
3233
3241
  /** 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;
3242
+ returnProducts: (value: "active" | "deleted" | "in_trash") => this;
3235
3243
  /** 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
3244
  returnElements: (value: string|string[]) => this;
3237
3245
  /** Product availability. Available values: "y" - available, "n" - unavailable. */
3238
- productIsAvailable: (value: string) => this;
3246
+ productIsAvailable: (value: "y" | "n") => this;
3239
3247
  /** Product visibility in store Available values: "y" - Visible, "n" - Invisible. */
3240
- productIsVisible: (value: string) => this;
3248
+ productIsVisible: (value: "y" | "n") => this;
3241
3249
  /** Product group ID */
3242
3250
  productVersionId: (value: number|string) => this;
3243
3251
  /** Promoted product. Available values: "y" - promoted, "n" - not promoted. */
3244
- productInPromotion: (value: string) => this;
3252
+ productInPromotion: (value: "y" | "n") => this;
3245
3253
  /** Product on sale. Available values: "y" - on sale, "n" - not on sale. */
3246
- productInDiscount: (value: string) => this;
3254
+ productInDiscount: (value: "y" | "n") => this;
3247
3255
  /** Distinguished product. Available values: "y" - distinguished, "n" - not distinguished. */
3248
- productInDistinguished: (value: string) => this;
3256
+ productInDistinguished: (value: "y" | "n") => this;
3249
3257
  /** Special product. Available values: "y" - #!specjalny!#, "n" - not special. */
3250
- productInSpecial: (value: string) => this;
3258
+ productInSpecial: (value: "y" | "n") => this;
3251
3259
  /** Product available for points. Available values: "y" - Available for points, "n" - Unavailable for points. */
3252
- productInForPointsSelling: (value: string) => this;
3260
+ productInForPointsSelling: (value: "y" | "n") => this;
3253
3261
  /** Observed product. Available values: "Y" - observed, "n" - not observed. */
3254
- productIsObservedByClients: (value: string) => this;
3262
+ productIsObservedByClients: (value: "Y" | "n") => this;
3255
3263
  /** 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;
3264
+ skipDefaultProduct: (value: "y" | "n") => this;
3257
3265
  /** 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;
3266
+ showPromotionsPrices: (value: "y" | "n") => this;
3259
3267
  /** List of categories in which sought products are present. */
3260
- categories: (value: Array<JSObject>) => this;
3268
+ categories: (value: RequestParams.SearchProductsParams["categories"]) => this;
3261
3269
  /** List of manufacturers assigned to sought products. */
3262
- producers: (value: Array<JSObject>) => this;
3270
+ producers: (value: RequestParams.SearchProductsParams["producers"]) => this;
3263
3271
  /** List of sought products. This parameter can be used, when there have been no other parameter entered productIndexes. */
3264
- productParams: (value: Array<JSObject>) => this;
3272
+ productParams: (value: RequestParams.SearchProductsParams["productParams"]) => this;
3265
3273
  /** List of sought products by indexes. */
3266
- productIndexes: (value: Array<JSObject>) => this;
3274
+ productIndexes: (value: RequestParams.SearchProductsParams["productIndexes"]) => this;
3267
3275
  /** Data of stores product is assigned to. */
3268
- productShops: (value: Array<JSObject>) => this;
3276
+ productShops: (value: RequestParams.SearchProductsParams["productShops"]) => this;
3269
3277
  /** List of special offers, sought products are assigned to. */
3270
3278
  productPromotionsIds: (value: number|string|number[]|string[]) => this;
3271
3279
  /** Settings concerning narrowing list of products found by date. */
3272
- productDate: (value: JSObject) => this;
3280
+ productDate: (value: RequestParams.SearchProductsParams["productDate"]) => this;
3273
3281
  /** Parameters */
3274
- productParametersParams: (value: Array<JSObject>) => this;
3282
+ productParametersParams: (value: RequestParams.SearchProductsParams["productParametersParams"]) => this;
3275
3283
  /** Series, sought products are assigned to. */
3276
- productSeriesParams: (value: Array<JSObject>) => this;
3284
+ productSeriesParams: (value: RequestParams.SearchProductsParams["productSeriesParams"]) => this;
3277
3285
  /** List of units of measure assigned to sought products. */
3278
- productUnits: (value: Array<JSObject>) => this;
3286
+ productUnits: (value: RequestParams.SearchProductsParams["productUnits"]) => this;
3279
3287
  /** Narrowing list of products by set warranties. */
3280
- productWarranties: (value: Array<JSObject>) => this;
3288
+ productWarranties: (value: RequestParams.SearchProductsParams["productWarranties"]) => this;
3281
3289
  /** Suppliers, sought products are assigned to. */
3282
3290
  deliverersIds: (value: number|string|number[]|string[]) => this;
3283
3291
  /** Product contains text (searches in short and long description). */
@@ -3285,15 +3293,15 @@ export interface SearchProductsRequest extends PagableGateway<SearchProductsRequ
3285
3293
  /** 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
3294
  containsCodePart: (value: string) => this;
3287
3295
  /** Product availability in stocks */
3288
- productAvailableInStocks: (value: JSObject) => this;
3296
+ productAvailableInStocks: (value: RequestParams.SearchProductsParams["productAvailableInStocks"]) => this;
3289
3297
  /** Product availability on auctions */
3290
- productAvailableInAuctions: (value: JSObject) => this;
3298
+ productAvailableInAuctions: (value: RequestParams.SearchProductsParams["productAvailableInAuctions"]) => this;
3291
3299
  /** Page with results number. Numeration starts from 0 */
3292
3300
  resultsPage: (value: number|string) => this;
3293
3301
  /** Number of results on page. Value from 1 to 100 */
3294
3302
  resultsLimit: (value: number|string) => this;
3295
3303
  /** Possibility of sorting returned list */
3296
- ordersBy: (value: Array<JSObject>) => this;
3304
+ ordersBy: (value: RequestParams.SearchProductsParams["ordersBy"]) => this;
3297
3305
  /** 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
3306
  productSearchingLangId: (value: string) => this;
3299
3307
  /** 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 +3311,45 @@ export interface SearchProductsRequest extends PagableGateway<SearchProductsRequ
3303
3311
  /** Annotation contains text. */
3304
3312
  productHasNote: (value: string) => this;
3305
3313
  /** 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;
3314
+ productInExportToPriceComparisonSites: (value: "y" | "selected" | "assign_selected" | "unassign_selected" | "n") => this;
3307
3315
  /** 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;
3316
+ productInExportToAmazonMarketplace: (value: "y" | "selected" | "n") => this;
3309
3317
  /** List of Amazon regional sites to which the product is exported (only in case of "selected" option) */
3310
3318
  selectedAmazonMarketplacesList: (value: string|string[]) => this;
3311
3319
  /** Product is bestseller. Available values: "n" - no, "y" - yes. */
3312
- productInBestseller: (value: string) => this;
3320
+ productInBestseller: (value: "n" | "y") => this;
3313
3321
  /** Product is new. Available values: "y" - is new, "n" - is not new. */
3314
- productInNew: (value: string) => this;
3322
+ productInNew: (value: "y" | "n") => this;
3315
3323
  /** Shops */
3316
- searchByShops: (value: JSObject) => this;
3324
+ searchByShops: (value: RequestParams.SearchProductsParams["searchByShops"]) => this;
3317
3325
  /** Price range for sought products. */
3318
- productSearchPriceRange: (value: JSObject) => this;
3326
+ productSearchPriceRange: (value: RequestParams.SearchProductsParams["productSearchPriceRange"]) => this;
3319
3327
  /** VAT value for sought products */
3320
3328
  productVatRates: (value: Array<Number>) => this;
3321
3329
  /** Is product VAT-free Allowed values "y" - yes, "n" - no. */
3322
3330
  productIsVatFree: (value: string) => this;
3323
3331
  /** Product has defined wholesale price. Available values: "y" - has wholesale price, "n" - does not have wholesale price. */
3324
- productHasWholesalePrice: (value: string) => this;
3332
+ productHasWholesalePrice: (value: "y" | "n") => this;
3325
3333
  /** 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;
3334
+ productInPersistent: (value: "y" | "n") => this;
3327
3335
  /** 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
3336
  returnProductsVersions: (value: string) => this;
3329
3337
  /** 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;
3338
+ productInSumInBasket: (value: "y" | "n") => this;
3331
3339
  /** 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;
3340
+ productType: (value: RequestParams.SearchProductsParams["productType"]) => this;
3333
3341
  /** An array of menu elements */
3334
- productMenuItems: (value: JSObject) => this;
3342
+ productMenuItems: (value: RequestParams.SearchProductsParams["productMenuItems"]) => this;
3335
3343
  /** Warehouse location ID */
3336
3344
  productLocationId: (value: number|string) => this;
3337
3345
  /** 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
3346
  productLocationTextId: (value: string) => this;
3339
3347
  /** 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;
3348
+ alwaysReturnProductShopSizesAttributes: (value: boolean) => this;
3341
3349
  /** Returns reservation information regardless of inventory levels */
3342
- returnEmptyStocksWithReservation: (value: Boolean) => this;
3350
+ returnEmptyStocksWithReservation: (value: boolean) => this;
3343
3351
  /** Data for operations on individual photos */
3344
- picturesData: (value: JSObject) => this;
3352
+ picturesData: (value: RequestParams.SearchProductsParams["picturesData"]) => this;
3345
3353
  /** Responsible producer code */
3346
3354
  responsibleProducerCode: (value: string) => this;
3347
3355
  /** Responsible person code */
@@ -3349,9 +3357,9 @@ export interface SearchProductsRequest extends PagableGateway<SearchProductsRequ
3349
3357
  byMenus: (value: number|string|number[]|string[]) => this;
3350
3358
  byShops: (value: number|string|number[]|string[]) => this;
3351
3359
  /** Define range of dates and their type */
3352
- dates: (dateFrom: DateLike, dateTo: DateLike, type: "added"|"finished"|"resumed"|"modified"|"quantity_changed"|"price_changed"|"modified_and_quantity_changed") => this;
3360
+ dates: (dateFrom: DateLike, dateTo: DateLike, type?: "added"|"finished"|"resumed"|"modified"|"quantity_changed"|"price_changed"|"modified_and_quantity_changed") => this;
3353
3361
  /** Define ordering of records */
3354
- orderBy: (elementName: "id"|"name"|"code"|"product_sizecode"|"code_producer"|"retail_price"|"pos_price"|"vat"|"wholesale_price"|"minimal_price"|"pictures_count"|"auction_name"|"pricecomparer_name"|"version_name"|"series_name"|"category_name"|"deliverer_name"|"adding_time"|"modification_time"|"price_changed_time"|"quantity_changed_time"|"currency"|"currency_shop"|"taxcode"|"meta_title"|"meta_description"|"meta_keywords"|"suggested_price"|"observed_clients"|"observed_time"|"wishes_clients"|"wishes_time", descending: boolean) => this;
3362
+ orderBy: (elementName: "id"|"name"|"code"|"product_sizecode"|"code_producer"|"retail_price"|"pos_price"|"vat"|"wholesale_price"|"minimal_price"|"pictures_count"|"auction_name"|"pricecomparer_name"|"version_name"|"series_name"|"category_name"|"deliverer_name"|"adding_time"|"modification_time"|"price_changed_time"|"quantity_changed_time"|"currency"|"currency_shop"|"taxcode"|"meta_title"|"meta_description"|"meta_keywords"|"suggested_price"|"observed_clients"|"observed_time"|"wishes_clients"|"wishes_time", descending?: boolean) => this;
3355
3363
  /** Define productShops values by passing them as an array */
3356
3364
  shops: (values: number|string|number[]|string[]) => this;
3357
3365
  /** Define productParams values by passing them as an array */
@@ -3369,11 +3377,11 @@ export interface SearchProductsRequest extends PagableGateway<SearchProductsRequ
3369
3377
  /** Define productIndexes values by passing them as an array */
3370
3378
  byIndexes: (values: number|string|number[]|string[]) => this;
3371
3379
  /** Toogle to return only main versions */
3372
- onlyMainVersion: (onlyMain: boolean) => this;
3380
+ onlyMainVersion: (onlyMain?: boolean) => this;
3373
3381
  /** Filter by minimum and maximum price */
3374
- byPrice: (minPrice: number, maxPrice: number, priceType: "retail_price"|"wholesale_price"|"minimal_price"|"pos_price"|"last_purchase_price") => this;
3382
+ byPrice: (minPrice: number, maxPrice: number, priceType?: "retail_price"|"wholesale_price"|"minimal_price"|"pos_price"|"last_purchase_price") => this;
3375
3383
  /** Filter by availibility on any stock or selected stocks */
3376
- inStock: (stockIds: boolean|number|string|number[]|string[]) => this;
3384
+ inStock: (stockIds?: boolean|number|string|number[]|string[]) => this;
3377
3385
  }
3378
3386
 
3379
3387
  export interface DeleteProductsProductsToFacebookCatalogRequest extends Gateway {
@@ -3422,7 +3430,7 @@ export interface GetProductsQuestionsRequest extends Gateway {
3422
3430
  productId: (value: number|string) => this;
3423
3431
  }
3424
3432
 
3425
- export interface PutProductsQuestionsRequest extends AppendableGateway<PutProductsQuestionsRequest, JSObject> {
3433
+ export interface PutProductsQuestionsRequest extends AppendableGateway<PutProductsQuestionsRequest> {
3426
3434
  /** Question Board. */
3427
3435
  questions: (value: Array<JSObject>) => this;
3428
3436
  /** Question ID. */
@@ -3483,7 +3491,7 @@ export interface GetProductsSeriesFilterRequest extends Gateway {
3483
3491
  serieId: (value: number|string) => this;
3484
3492
  }
3485
3493
 
3486
- export interface PutProductsSeriesFilterRequest extends AppendableGateway<PutProductsSeriesFilterRequest, JSObject> {
3494
+ export interface PutProductsSeriesFilterRequest extends AppendableGateway<PutProductsSeriesFilterRequest> {
3487
3495
  /** Shop Id */
3488
3496
  shopId: (value: number|string) => this;
3489
3497
  /** Language ID (code in ISO 639-2). */
@@ -3505,7 +3513,7 @@ export interface PutProductsSeriesFilterRequest extends AppendableGateway<PutPro
3505
3513
  filterDefaultEnabled: (filterDefaultEnabled: 'y'|'n') => this
3506
3514
  }
3507
3515
 
3508
- export interface GetProductsSeriesRequest extends PagableGateway<GetProductsSeriesRequest,GetProductsSeriesResponse> {
3516
+ export interface GetProductsSeriesRequest extends PagableGateway<GetProductsSeriesRequest, GetProductsSeriesResponse> {
3509
3517
  /** With "y" value it returns the last series modification date in YYYY-MM-DD HH:MM:SS format. */
3510
3518
  return_last_changed_time: (value: string) => this;
3511
3519
  /** IDs */
@@ -3520,7 +3528,7 @@ export interface GetProductsSeriesRequest extends PagableGateway<GetProductsSeri
3520
3528
  resultsLimit: (value: number|string) => this;
3521
3529
  }
3522
3530
 
3523
- export interface PutProductsSeriesRequest extends AppendableGateway<PutProductsSeriesRequest, JSObject> {
3531
+ export interface PutProductsSeriesRequest extends AppendableGateway<PutProductsSeriesRequest> {
3524
3532
  /** Series list. */
3525
3533
  series: (value: Array<JSObject>) => this;
3526
3534
  /** Id */
@@ -3531,7 +3539,7 @@ export interface PutProductsSeriesRequest extends AppendableGateway<PutProductsS
3531
3539
  shopsConfigurations: (shopsConfigurations: Array<JSObject>) => this
3532
3540
  }
3533
3541
 
3534
- export interface DeleteProductsSizesRequest extends AppendableGateway<DeleteProductsSizesRequest, JSObject> {
3542
+ export interface DeleteProductsSizesRequest extends AppendableGateway<DeleteProductsSizesRequest> {
3535
3543
  /** Edition mode */
3536
3544
  mode: (value: 'delete_by_size'|'delete_all') => this;
3537
3545
  /** Parameters transmitted to method */
@@ -3549,7 +3557,7 @@ export interface GetProductsSizesRequest extends Gateway<GetProductsSizesRespons
3549
3557
  page: (pagenumber: number, pageSize?: number) => this;
3550
3558
  }
3551
3559
 
3552
- export interface PutProductsSizesRequest extends AppendableGateway<PutProductsSizesRequest, JSObject> {
3560
+ export interface PutProductsSizesRequest extends AppendableGateway<PutProductsSizesRequest> {
3553
3561
  /** Edition mode */
3554
3562
  mode: (value: 'edit'|'add'|'replace') => this;
3555
3563
  /** Product parameters recognized by product ID or its sizes */
@@ -3562,7 +3570,7 @@ export interface PutProductsSizesRequest extends AppendableGateway<PutProductsSi
3562
3570
  sizes: (sizes: Array<JSObject>) => this
3563
3571
  }
3564
3572
 
3565
- export interface PutProductsStockQuantityRequest extends AppendableGateway<PutProductsStockQuantityRequest, JSObject> {
3573
+ export interface PutProductsStockQuantityRequest extends AppendableGateway<PutProductsStockQuantityRequest> {
3566
3574
  /** Products list. */
3567
3575
  products: (value: Array<JSObject>) => this;
3568
3576
  /** Product index */
@@ -3589,7 +3597,7 @@ export interface GetProductsStocksRequest extends Gateway<GetProductsStocksRespo
3589
3597
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3590
3598
  }
3591
3599
 
3592
- export interface PutProductsStocksRequest extends AppendableGateway<PutProductsStocksRequest, JSObject> {
3600
+ export interface PutProductsStocksRequest extends AppendableGateway<PutProductsStocksRequest> {
3593
3601
  /** Products list. */
3594
3602
  products: (value: Array<JSObject>) => this;
3595
3603
  /** */
@@ -3610,7 +3618,7 @@ export interface GetProductsStrikethroughPricesRequest extends Gateway<GetProduc
3610
3618
  productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3611
3619
  }
3612
3620
 
3613
- export interface PutProductsStrikethroughPricesRequest extends AppendableGateway<PutProductsStrikethroughPricesRequest, JSObject> {
3621
+ export interface PutProductsStrikethroughPricesRequest extends AppendableGateway<PutProductsStrikethroughPricesRequest> {
3614
3622
  /** Products list. */
3615
3623
  products: (value: Array<JSObject>) => this;
3616
3624
  /** Identifier type. */
@@ -3631,7 +3639,7 @@ export interface PutProductsStrikethroughPricesRequest extends AppendableGateway
3631
3639
  addPricePercent: (value: number, wholesale?: boolean, base?: 'price' | 'price_minimal' | 'price_pos' | 'price_srp' | 'price_crossed') => this;
3632
3640
  }
3633
3641
 
3634
- export interface PutProductsSupplierCodeRequest extends AppendableGateway<PutProductsSupplierCodeRequest, JSObject> {
3642
+ export interface PutProductsSupplierCodeRequest extends AppendableGateway<PutProductsSupplierCodeRequest> {
3635
3643
  /** Products list. */
3636
3644
  products: (value: Array<JSObject>) => this;
3637
3645
  /** Product IAI code */
@@ -3640,7 +3648,7 @@ export interface PutProductsSupplierCodeRequest extends AppendableGateway<PutPro
3640
3648
  productDeliverers: (productDeliverers: Array<JSObject>) => this
3641
3649
  }
3642
3650
 
3643
- export interface PutProductsSupplierProductDataRequest extends AppendableGateway<PutProductsSupplierProductDataRequest, JSObject> {
3651
+ export interface PutProductsSupplierProductDataRequest extends AppendableGateway<PutProductsSupplierProductDataRequest> {
3644
3652
  /** Products list. */
3645
3653
  products: (value: Array<JSObject>) => this;
3646
3654
  /** Product IAI code */
@@ -3672,7 +3680,7 @@ export interface PutProductsSynchronizationFinishUploadRequest extends Gateway {
3672
3680
  /** Total number of files in the parcel. */
3673
3681
  filesInPackage: (value: number|string) => this;
3674
3682
  /** Whether to verify the package by sparsifying files and preparing requests. It may take a few minutes to answer. */
3675
- verifyFiles: (value: Boolean) => this;
3683
+ verifyFiles: (value: boolean) => this;
3676
3684
  }
3677
3685
 
3678
3686
  export interface PostRefundsAddAutomaticRefundRequest extends Gateway {
@@ -3686,7 +3694,7 @@ export interface PostRefundsAddAutomaticRefundForOrderRequest extends Gateway {
3686
3694
  /** Source ID. */
3687
3695
  sourceId: (value: number|string) => this;
3688
3696
  /** Amount. */
3689
- refundValue: (value: Number) => this;
3697
+ refundValue: (value: number) => this;
3690
3698
  /** Payment ID. */
3691
3699
  paymentId: (value: number|string) => this;
3692
3700
  /** Payment currency. */
@@ -3699,7 +3707,7 @@ export interface PostRefundsAddManualRefundRequest extends Gateway {
3699
3707
  /** Source ID. */
3700
3708
  sourceId: (value: number|string) => this;
3701
3709
  /** Amount. */
3702
- refundValue: (value: Number) => this;
3710
+ refundValue: (value: number) => this;
3703
3711
  /** Payment currency. */
3704
3712
  refundCurrency: (value: string) => this;
3705
3713
  refundDetails: (value: JSObject) => this;
@@ -3756,12 +3764,12 @@ export interface PutRefundsUpdateRefundRequest extends Gateway {
3756
3764
  /** Payment ID. */
3757
3765
  paymentId: (value: string) => this;
3758
3766
  /** Amount. */
3759
- refundValue: (value: Number) => this;
3767
+ refundValue: (value: number) => this;
3760
3768
  /** Payment currency. */
3761
3769
  refundCurrency: (value: string) => this;
3762
3770
  }
3763
3771
 
3764
- export interface GetResponsibilityEntitiesRequest extends PagableGateway<GetResponsibilityEntitiesRequest,GetResponsibilityEntitiesResponse> {
3772
+ export interface GetResponsibilityEntitiesRequest extends PagableGateway<GetResponsibilityEntitiesRequest, GetResponsibilityEntitiesResponse> {
3765
3773
  /** List of codes */
3766
3774
  code: (value: string|string[]) => this;
3767
3775
  /** Type of entity */
@@ -3772,8 +3780,8 @@ export interface GetResponsibilityEntitiesRequest extends PagableGateway<GetResp
3772
3780
  resultsLimit: (value: number|string) => this;
3773
3781
  }
3774
3782
 
3775
- export interface PostResponsibilityEntitiesRequest extends AppendableGateway<PostResponsibilityEntitiesRequest, JSObject> {
3776
- entities: (value: Array<JSObject>) => this;
3783
+ export interface PostResponsibilityEntitiesRequest extends AppendableGateway<PostResponsibilityEntitiesRequest, PostResponsibilityEntitiesResponse, RequestParams.PostResponsibilityEntitiesParams> {
3784
+ entities: (value: RequestParams.PostResponsibilityEntitiesParams["entities"]) => this;
3777
3785
  /** Type of entity */
3778
3786
  type: (value: 'producer'|'person') => this;
3779
3787
  /** Identificator of the entity. */
@@ -3804,7 +3812,7 @@ export interface PostResponsibilityEntitiesRequest extends AppendableGateway<Pos
3804
3812
  url: (url: string) => this
3805
3813
  }
3806
3814
 
3807
- export interface PutResponsibilityEntitiesRequest extends AppendableGateway<PutResponsibilityEntitiesRequest, JSObject> {
3815
+ export interface PutResponsibilityEntitiesRequest extends AppendableGateway<PutResponsibilityEntitiesRequest> {
3808
3816
  entities: (value: Array<JSObject>) => this;
3809
3817
  /** Type of entity */
3810
3818
  type: (value: 'producer'|'person') => this;
@@ -3843,7 +3851,7 @@ export interface DeleteResponsibilityEntitiesRequest extends Gateway {
3843
3851
  type: (value: string) => this;
3844
3852
  }
3845
3853
 
3846
- export interface GetReturnsRequest extends PagableGateway<GetReturnsRequest,GetReturnsResponse> {
3854
+ export interface GetReturnsRequest extends PagableGateway<GetReturnsRequest, GetReturnsResponse> {
3847
3855
  /** Search by the order serial number to which a return was added. */
3848
3856
  order_sn: (value: number|string) => this;
3849
3857
  /** Search by return ID. */
@@ -3863,23 +3871,23 @@ export interface GetReturnsRequest extends PagableGateway<GetReturnsRequest,GetR
3863
3871
  /** Search by ID of a stock to which a return is sent. */
3864
3872
  stock_id: (value: number|string) => this;
3865
3873
  /** Return a set as its constituent products */
3866
- bundleAsProducts: (value: Boolean) => this;
3874
+ bundleAsProducts: (value: boolean) => this;
3867
3875
  /** Define range of dates and their type */
3868
- dates: (dateFrom: DateLike, dateTo: DateLike, type: "date_add"|"date_end") => this;
3876
+ dates: (dateFrom: DateLike, dateTo: DateLike, type?: "date_add"|"date_end") => this;
3869
3877
  }
3870
3878
 
3871
- export interface PostReturnsRequest extends AppendableGateway<PostReturnsRequest, JSObject> {
3879
+ export interface PostReturnsRequest extends AppendableGateway<PostReturnsRequest, PostReturnsResponse, RequestParams.PostReturnsParams> {
3872
3880
  /** Order serial number */
3873
3881
  order_sn: (value: number|string) => this;
3874
3882
  stock_id: (value: number|string) => this;
3875
3883
  /** Products list. */
3876
- products: (value: Array<JSObject>) => this;
3884
+ products: (value: RequestParams.PostReturnsParams["products"]) => this;
3877
3885
  status: (value: number|string) => this;
3878
- client_received: (value: Boolean) => this;
3879
- change_status: (value: Boolean) => this;
3886
+ client_received: (value: boolean) => this;
3887
+ change_status: (value: boolean) => this;
3880
3888
  courier_id: (value: number|string) => this;
3881
3889
  return_operator: (value: string) => this;
3882
- tryCorrectInvoice: (value: Boolean) => this;
3890
+ tryCorrectInvoice: (value: boolean) => this;
3883
3891
  include_shipping_cost: (value: string) => this;
3884
3892
  additional_payment_cost: (value: string) => this;
3885
3893
  emptyReturn: (value: 'n'|'y') => this;
@@ -3897,16 +3905,16 @@ export interface PostReturnsRequest extends AppendableGateway<PostReturnsRequest
3897
3905
  productOrderAdditional: (productOrderAdditional: string) => this
3898
3906
  }
3899
3907
 
3900
- export interface PutReturnsRequest extends AppendableGateway<PutReturnsRequest, JSObject> {
3901
- returns: (value: Array<JSObject>) => this;
3908
+ export interface PutReturnsRequest extends AppendableGateway<PutReturnsRequest, PutReturnsResponse, RequestParams.PutReturnsParams> {
3909
+ returns: (value: RequestParams.PutReturnsParams["returns"]) => this;
3902
3910
  /** */
3903
3911
  id: (id: number|string) => this
3904
3912
  /** */
3905
3913
  status: (status: number|string) => this
3906
3914
  /** 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
3915
+ apiFlag: (apiFlag: RequestParams.PutReturnsParams["returns"][number]["apiFlag"]) => this
3908
3916
  /** Products list. */
3909
- products: (products: Array<JSObject>) => this
3917
+ products: (products: RequestParams.PutReturnsParams["returns"][number]["products"]) => this
3910
3918
  /** */
3911
3919
  userNote: (userNote: string) => this
3912
3920
  /** Notes from customer. */
@@ -3915,7 +3923,7 @@ export interface PutReturnsRequest extends AppendableGateway<PutReturnsRequest,
3915
3923
  tryCorrectInvoice: (tryCorrectInvoice: boolean) => this
3916
3924
  }
3917
3925
 
3918
- export interface PutReturnsSerialNumberRequest extends AppendableGateway<PutReturnsSerialNumberRequest, JSObject> {
3926
+ export interface PutReturnsSerialNumberRequest extends AppendableGateway<PutReturnsSerialNumberRequest> {
3919
3927
  /** Return number. */
3920
3928
  return_id: (value: number|string) => this;
3921
3929
  /** Products list. */
@@ -3930,7 +3938,7 @@ export interface PutReturnsSerialNumberRequest extends AppendableGateway<PutRetu
3930
3938
 
3931
3939
  export interface GetReturnsStatusesRequest extends Gateway {}
3932
3940
 
3933
- export interface GetRmaRequest extends PagableGateway<GetRmaRequest,GetRmaResponse> {
3941
+ export interface GetRmaRequest extends PagableGateway<GetRmaRequest, GetRmaResponse> {
3934
3942
  rmaIds: (value: number|string|number[]|string[]) => this;
3935
3943
  /** Stock ID */
3936
3944
  stockId: (value: number|string) => this;
@@ -3956,15 +3964,15 @@ export interface GetRmaRequest extends PagableGateway<GetRmaRequest,GetRmaRespon
3956
3964
  ended: (dateFrom: DateLike, dateTo: DateLike) => this;
3957
3965
  }
3958
3966
 
3959
- export interface PutRmaRequest extends AppendableGateway<PutRmaRequest, JSObject> {
3967
+ export interface PutRmaRequest extends AppendableGateway<PutRmaRequest, PutRmaResponse, RequestParams.PutRmaParams> {
3960
3968
  /** Complaints. */
3961
- rmas: (value: Array<JSObject>) => this;
3969
+ rmas: (value: RequestParams.PutRmaParams["rmas"]) => this;
3962
3970
  /** Complaint id. */
3963
3971
  rmaId: (rmaId: number|string) => this
3964
3972
  /** 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
3973
  rmaStatusId: (rmaStatusId: number|string) => this
3966
3974
  /** Customer correspondence. */
3967
- rmaChat: (rmaChat: Array<JSObject>) => this
3975
+ rmaChat: (rmaChat: RequestParams.PutRmaParams["rmas"][number]["rmaChat"]) => this
3968
3976
  }
3969
3977
 
3970
3978
  export interface GetRmaStatusesRequest extends Gateway {}
@@ -3978,7 +3986,7 @@ export interface DeleteSizechartsRequest extends Gateway {
3978
3986
  ids: (value: number|string|number[]|string[]) => this;
3979
3987
  }
3980
3988
 
3981
- export interface GetSizechartsRequest extends PagableGateway<GetSizechartsRequest,GetSizechartsResponse> {
3989
+ export interface GetSizechartsRequest extends PagableGateway<GetSizechartsRequest, GetSizechartsResponse> {
3982
3990
  /** IDs */
3983
3991
  ids: (value: number|string|number[]|string[]) => this;
3984
3992
  /** Names of size charts */
@@ -3991,7 +3999,7 @@ export interface GetSizechartsRequest extends PagableGateway<GetSizechartsReques
3991
3999
  resultsLimit: (value: number|string) => this;
3992
4000
  }
3993
4001
 
3994
- export interface PutSizechartsRequest extends AppendableGateway<PutSizechartsRequest, JSObject> {
4002
+ export interface PutSizechartsRequest extends AppendableGateway<PutSizechartsRequest> {
3995
4003
  sizeCharts: (value: Array<JSObject>) => this;
3996
4004
  /** Id */
3997
4005
  id: (id: number|string) => this
@@ -4008,7 +4016,7 @@ export interface GetSizesRequest extends Gateway<GetSizesResponse> {
4008
4016
  return_last_changed_time: (value: string) => this;
4009
4017
  }
4010
4018
 
4011
- export interface PutSizesRequest extends AppendableGateway<PutSizesRequest, JSObject> {
4019
+ export interface PutSizesRequest extends AppendableGateway<PutSizesRequest> {
4012
4020
  /** Size table. */
4013
4021
  sizes: (value: Array<JSObject>) => this;
4014
4022
  /** Error code. */
@@ -4029,7 +4037,7 @@ export interface PutSizesRequest extends AppendableGateway<PutSizesRequest, JSOb
4029
4037
  lang_data: (lang_data: Array<JSObject>) => this
4030
4038
  }
4031
4039
 
4032
- export interface GetSnippetsCampaignRequest extends PagableGateway<GetSnippetsCampaignRequest,GetSnippetsCampaignResponse> {
4040
+ export interface GetSnippetsCampaignRequest extends PagableGateway<GetSnippetsCampaignRequest, GetSnippetsCampaignResponse> {
4033
4041
  /** List of shop identifiers */
4034
4042
  shopId: (value: number|string|number[]|string[]) => this;
4035
4043
  /** List of identifiers */
@@ -4042,7 +4050,7 @@ export interface GetSnippetsCampaignRequest extends PagableGateway<GetSnippetsCa
4042
4050
  resultsLimit: (value: number|string) => this;
4043
4051
  }
4044
4052
 
4045
- export interface PostSnippetsCampaignRequest extends AppendableGateway<PostSnippetsCampaignRequest, JSObject> {
4053
+ export interface PostSnippetsCampaignRequest extends AppendableGateway<PostSnippetsCampaignRequest> {
4046
4054
  campaigns: (value: Array<JSObject>) => this;
4047
4055
  /** undefined */
4048
4056
  id: (id: number|string) => this
@@ -4060,7 +4068,7 @@ export interface PostSnippetsCampaignRequest extends AppendableGateway<PostSnipp
4060
4068
  configVariables: (configVariables: Array<JSObject>) => this
4061
4069
  }
4062
4070
 
4063
- export interface PutSnippetsCampaignRequest extends AppendableGateway<PutSnippetsCampaignRequest, JSObject> {
4071
+ export interface PutSnippetsCampaignRequest extends AppendableGateway<PutSnippetsCampaignRequest> {
4064
4072
  campaigns: (value: Array<JSObject>) => this;
4065
4073
  /** Snippet campaign id */
4066
4074
  id: (id: number|string) => this
@@ -4083,7 +4091,7 @@ export interface DeleteSnippetsCampaignRequest extends Gateway {
4083
4091
  id: (value: number|string|number[]|string[]) => this;
4084
4092
  }
4085
4093
 
4086
- export interface GetSnippetsCookiesRequest extends PagableGateway<GetSnippetsCookiesRequest,GetSnippetsCookiesResponse> {
4094
+ export interface GetSnippetsCookiesRequest extends PagableGateway<GetSnippetsCookiesRequest, GetSnippetsCookiesResponse> {
4087
4095
  /** List of identifiers for specific cookies */
4088
4096
  id: (value: number|string|number[]|string[]) => this;
4089
4097
  /** Page with results number. Numeration starts from 0 */
@@ -4092,7 +4100,7 @@ export interface GetSnippetsCookiesRequest extends PagableGateway<GetSnippetsCoo
4092
4100
  resultsLimit: (value: number|string) => this;
4093
4101
  }
4094
4102
 
4095
- export interface PostSnippetsCookiesRequest extends AppendableGateway<PostSnippetsCookiesRequest, JSObject> {
4103
+ export interface PostSnippetsCookiesRequest extends AppendableGateway<PostSnippetsCookiesRequest> {
4096
4104
  cookies: (value: Array<JSObject>) => this;
4097
4105
  /** undefined */
4098
4106
  id: (id: number|string) => this
@@ -4107,14 +4115,14 @@ export interface PostSnippetsCookiesRequest extends AppendableGateway<PostSnippe
4107
4115
  /** Name of the cookie. */
4108
4116
  name: (name: string) => this
4109
4117
  /** Type of the cookie */
4110
- type: (type: 'cookie'|'pixel'|'localstorage') => this
4118
+ type: (type: 'cookie'|'pixel'|'localStorage') => this
4111
4119
  /** Cookie lifetime mode */
4112
4120
  lifeTimeType: (lifeTimeType: 'temporary'|'days'|'minutes') => this
4113
4121
  /** Cookie lifetime */
4114
4122
  lifeTime: (lifeTime: number|string) => this
4115
4123
  }
4116
4124
 
4117
- export interface PutSnippetsCookiesRequest extends AppendableGateway<PutSnippetsCookiesRequest, JSObject> {
4125
+ export interface PutSnippetsCookiesRequest extends AppendableGateway<PutSnippetsCookiesRequest> {
4118
4126
  cookies: (value: Array<JSObject>) => this;
4119
4127
  /** undefined */
4120
4128
  id: (id: number|string) => this
@@ -4129,7 +4137,7 @@ export interface PutSnippetsCookiesRequest extends AppendableGateway<PutSnippets
4129
4137
  /** Name of the cookie. */
4130
4138
  name: (name: string) => this
4131
4139
  /** Type of the cookie */
4132
- type: (type: 'cookie'|'pixel'|'localstorage') => this
4140
+ type: (type: 'cookie'|'pixel'|'localStorage') => this
4133
4141
  /** Cookie lifetime mode */
4134
4142
  lifeTimeType: (lifeTimeType: 'temporary'|'days'|'minutes') => this
4135
4143
  /** Cookie lifetime */
@@ -4141,7 +4149,7 @@ export interface DeleteSnippetsCookiesRequest extends Gateway {
4141
4149
  id: (value: number|string|number[]|string[]) => this;
4142
4150
  }
4143
4151
 
4144
- export interface GetSnippetsRequest extends PagableGateway<GetSnippetsRequest,GetSnippetsResponse> {
4152
+ export interface GetSnippetsRequest extends PagableGateway<GetSnippetsRequest, GetSnippetsResponse> {
4145
4153
  /** List of campaign identifiers */
4146
4154
  campaign: (value: number|string|number[]|string[]) => this;
4147
4155
  /** List of identifiers */
@@ -4154,7 +4162,7 @@ export interface GetSnippetsRequest extends PagableGateway<GetSnippetsRequest,Ge
4154
4162
  resultsLimit: (value: number|string) => this;
4155
4163
  }
4156
4164
 
4157
- export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsRequest, JSObject> {
4165
+ export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsRequest> {
4158
4166
  snippets: (value: Array<JSObject>) => this;
4159
4167
  /** undefined */
4160
4168
  id: (id: number|string) => this
@@ -4177,7 +4185,7 @@ export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsReque
4177
4185
  /** Content waiting time (timeout) in seconds. */
4178
4186
  timeout: (timeout: number|string) => this
4179
4187
  /** The place where the code snippet is loaded. */
4180
- zone: (zone: 'head'|'bodybegin'|'bodyend') => this
4188
+ zone: (zone: 'head'|'bodyBegin'|'bodyEnd') => this
4181
4189
  /** The order in which the code snippet will be displayed. */
4182
4190
  order: (order: number|string) => this
4183
4191
  /** Snippet content for each language. */
@@ -4190,7 +4198,7 @@ export interface PostSnippetsRequest extends AppendableGateway<PostSnippetsReque
4190
4198
  sources: (sources: JSObject) => this
4191
4199
  }
4192
4200
 
4193
- export interface PutSnippetsRequest extends AppendableGateway<PutSnippetsRequest, JSObject> {
4201
+ export interface PutSnippetsRequest extends AppendableGateway<PutSnippetsRequest> {
4194
4202
  snippets: (value: Array<JSObject>) => this;
4195
4203
  /** undefined */
4196
4204
  id: (id: number|string) => this
@@ -4213,7 +4221,7 @@ export interface PutSnippetsRequest extends AppendableGateway<PutSnippetsRequest
4213
4221
  /** Content waiting time (timeout) in seconds. */
4214
4222
  timeout: (timeout: number|string) => this
4215
4223
  /** The place where the code snippet is loaded. */
4216
- zone: (zone: 'head'|'bodybegin'|'bodyend') => this
4224
+ zone: (zone: 'head'|'bodyBegin'|'bodyEnd') => this
4217
4225
  /** The order in which the code snippet will be displayed. */
4218
4226
  order: (order: number|string) => this
4219
4227
  /** Snippet content for each language. */
@@ -4244,14 +4252,14 @@ export interface PostSubscriptionsChangeDeliveryDatesRequest extends Gateway {
4244
4252
  /** Settings that determinates if price should be updated automaticly */
4245
4253
  upcomingDeliveryDate: (value: string) => this;
4246
4254
  /** A setting that determines whether to also change the date of the next delivery. */
4247
- changeNextDeliveryDate: (value: Boolean) => this;
4255
+ changeNextDeliveryDate: (value: boolean) => this;
4248
4256
  }
4249
4257
 
4250
4258
  export interface PostSubscriptionsChangePriceAutoUpdateRequest extends Gateway {
4251
4259
  /** Subscription ids */
4252
4260
  subscriptionIds: (value: number|string|number[]|string[]) => this;
4253
4261
  /** Settings that determinates if price should be updated automaticly */
4254
- autoPriceUpdate: (value: Boolean) => this;
4262
+ autoPriceUpdate: (value: boolean) => this;
4255
4263
  }
4256
4264
 
4257
4265
  export interface PostSubscriptionsChangeStatusRequest extends Gateway {
@@ -4260,9 +4268,9 @@ export interface PostSubscriptionsChangeStatusRequest extends Gateway {
4260
4268
  /** Status to set */
4261
4269
  subscriptionStatus: (value: 'active'|'hold'|'nonpayment'|'finished') => this;
4262
4270
  /** Option allowing sending e-mail after status change */
4263
- sendMailAfterStatusChange: (value: Boolean) => this;
4271
+ sendMailAfterStatusChange: (value: boolean) => this;
4264
4272
  /** Optian allowing sending SMS after status change */
4265
- sendSMSAfterStatusChange: (value: Boolean) => this;
4273
+ sendSMSAfterStatusChange: (value: boolean) => this;
4266
4274
  }
4267
4275
 
4268
4276
  export interface PostSubscriptionsDeleteProductRequest extends Gateway {
@@ -4350,7 +4358,7 @@ export interface GetSystemCurrenciesRequest extends Gateway<GetSystemCurrenciesR
4350
4358
  date: (value: string) => this;
4351
4359
  }
4352
4360
 
4353
- export interface PutSystemCurrenciesRequest extends AppendableGateway<PutSystemCurrenciesRequest, JSObject> {
4361
+ export interface PutSystemCurrenciesRequest extends AppendableGateway<PutSystemCurrenciesRequest> {
4354
4362
  currencies: (value: Array<JSObject>) => this;
4355
4363
  /** Currency code in ISO 4217 standard. */
4356
4364
  id: (id: string) => this
@@ -4383,7 +4391,7 @@ export interface GetSystemUnitsRequest extends Gateway<GetSystemUnitsResponse> {
4383
4391
  languagesIds: (value: string|string[]) => this;
4384
4392
  }
4385
4393
 
4386
- export interface PutSystemUnitsRequest extends AppendableGateway<PutSystemUnitsRequest, JSObject> {
4394
+ export interface PutSystemUnitsRequest extends AppendableGateway<PutSystemUnitsRequest> {
4387
4395
  units: (value: Array<JSObject>) => this;
4388
4396
  /** #!IdentyfikatorJednostki!# */
4389
4397
  id: (id: number|string) => this
@@ -4402,7 +4410,7 @@ export interface GetSystemUsersRequest extends Gateway<GetSystemUsersResponse> {
4402
4410
  userType: (value: 'all'|'active') => this;
4403
4411
  }
4404
4412
 
4405
- export interface PutVouchersBlockRequest extends AppendableGateway<PutVouchersBlockRequest, JSObject> {
4413
+ export interface PutVouchersBlockRequest extends AppendableGateway<PutVouchersBlockRequest> {
4406
4414
  vouchers: (value: Array<JSObject>) => this;
4407
4415
  /** Voucher ID */
4408
4416
  id: (id: number|string) => this
@@ -4410,14 +4418,14 @@ export interface PutVouchersBlockRequest extends AppendableGateway<PutVouchersBl
4410
4418
  number: (number: string) => this
4411
4419
  }
4412
4420
 
4413
- export interface GetVouchersTypesRequest extends PagableGateway<GetVouchersTypesRequest,GetVouchersTypesResponse> {
4421
+ export interface GetVouchersTypesRequest extends PagableGateway<GetVouchersTypesRequest, GetVouchersTypesResponse> {
4414
4422
  /** Page with results number. Numeration starts from 0 */
4415
4423
  resultsPage: (value: number|string) => this;
4416
4424
  /** Number of results on page. Value from 1 to 100 */
4417
4425
  resultsLimit: (value: number|string) => this;
4418
4426
  }
4419
4427
 
4420
- export interface PutVouchersUnblockRequest extends AppendableGateway<PutVouchersUnblockRequest, JSObject> {
4428
+ export interface PutVouchersUnblockRequest extends AppendableGateway<PutVouchersUnblockRequest> {
4421
4429
  vouchers: (value: Array<JSObject>) => this;
4422
4430
  /** Voucher ID */
4423
4431
  id: (id: number|string) => this
@@ -4425,7 +4433,7 @@ export interface PutVouchersUnblockRequest extends AppendableGateway<PutVouchers
4425
4433
  number: (number: string) => this
4426
4434
  }
4427
4435
 
4428
- export interface DeleteVouchersRequest extends AppendableGateway<DeleteVouchersRequest, JSObject> {
4436
+ export interface DeleteVouchersRequest extends AppendableGateway<DeleteVouchersRequest> {
4429
4437
  vouchers: (value: Array<JSObject>) => this;
4430
4438
  /** Voucher ID */
4431
4439
  id: (id: number|string) => this
@@ -4433,7 +4441,7 @@ export interface DeleteVouchersRequest extends AppendableGateway<DeleteVouchersR
4433
4441
  number: (number: string) => this
4434
4442
  }
4435
4443
 
4436
- export interface GetVouchersRequest extends PagableGateway<GetVouchersRequest,GetVouchersResponse> {
4444
+ export interface GetVouchersRequest extends PagableGateway<GetVouchersRequest, GetVouchersResponse> {
4437
4445
  vouchers: (value: Array<JSObject>) => this;
4438
4446
  /** Discount code campaign ID */
4439
4447
  voucherTypeId: (value: number|string) => this;
@@ -4446,9 +4454,9 @@ export interface GetVouchersRequest extends PagableGateway<GetVouchersRequest,Ge
4446
4454
  /** Notes contain */
4447
4455
  noteContain: (value: string) => this;
4448
4456
  /** Value from */
4449
- balanceFrom: (value: Number) => this;
4457
+ balanceFrom: (value: number) => this;
4450
4458
  /** Value to */
4451
- balanceTo: (value: Number) => this;
4459
+ balanceTo: (value: number) => this;
4452
4460
  /** Expiration date from */
4453
4461
  expirationDateFrom: (value: string) => this;
4454
4462
  /** Expiration date to */
@@ -4477,7 +4485,7 @@ export interface GetVouchersRequest extends PagableGateway<GetVouchersRequest,Ge
4477
4485
  numbers: (values: number|string|number[]|string[]) => this;
4478
4486
  }
4479
4487
 
4480
- export interface PostVouchersRequest extends AppendableGateway<PostVouchersRequest, JSObject> {
4488
+ export interface PostVouchersRequest extends AppendableGateway<PostVouchersRequest> {
4481
4489
  /** List of vouchers to add */
4482
4490
  vouchers: (value: Array<JSObject>) => this;
4483
4491
  /** Gift voucher type id */
@@ -4496,7 +4504,7 @@ export interface PostVouchersRequest extends AppendableGateway<PostVouchersReque
4496
4504
  note: (note: string) => this
4497
4505
  }
4498
4506
 
4499
- export interface PutVouchersRequest extends AppendableGateway<PutVouchersRequest, JSObject> {
4507
+ export interface PutVouchersRequest extends AppendableGateway<PutVouchersRequest> {
4500
4508
  /** List of vouchers to edit */
4501
4509
  vouchers: (value: Array<JSObject>) => this;
4502
4510
  /** Voucher ID */
@@ -4523,7 +4531,7 @@ export interface GetWarrantiesCountTotalRequest extends Gateway {
4523
4531
  warranty_ids: (value: string|string[]) => this;
4524
4532
  }
4525
4533
 
4526
- export interface PutWarrantiesLanguageDataRequest extends AppendableGateway<PutWarrantiesLanguageDataRequest, JSObject> {
4534
+ export interface PutWarrantiesLanguageDataRequest extends AppendableGateway<PutWarrantiesLanguageDataRequest> {
4527
4535
  lang_data: (value: Array<JSObject>) => this;
4528
4536
  /** Warranty ID (numeric or text based). */
4529
4537
  warranty_id: (warranty_id: string) => this
@@ -4535,7 +4543,7 @@ export interface DeleteWarrantiesRequest extends Gateway {
4535
4543
  warranty_ids: (value: string|string[]) => this;
4536
4544
  }
4537
4545
 
4538
- export interface GetWarrantiesRequest extends PagableGateway<GetWarrantiesRequest,GetWarrantiesResponse> {
4546
+ export interface GetWarrantiesRequest extends PagableGateway<GetWarrantiesRequest, GetWarrantiesResponse> {
4539
4547
  warranty_ids: (value: string|string[]) => this;
4540
4548
  /** Number of results on page. */
4541
4549
  results_limit: (value: number|string) => this;
@@ -4544,7 +4552,7 @@ export interface GetWarrantiesRequest extends PagableGateway<GetWarrantiesReques
4544
4552
  results_order: (value: JSObject) => this;
4545
4553
  }
4546
4554
 
4547
- export interface PostWarrantiesRequest extends AppendableGateway<PostWarrantiesRequest, JSObject> {
4555
+ export interface PostWarrantiesRequest extends AppendableGateway<PostWarrantiesRequest> {
4548
4556
  warranties: (value: Array<JSObject>) => this;
4549
4557
  /** Name. */
4550
4558
  name: (name: string) => this
@@ -4558,7 +4566,7 @@ export interface PostWarrantiesRequest extends AppendableGateway<PostWarrantiesR
4558
4566
  description: (description: JSObject) => this
4559
4567
  }
4560
4568
 
4561
- export interface PutWarrantiesRequest extends AppendableGateway<PutWarrantiesRequest, JSObject> {
4569
+ export interface PutWarrantiesRequest extends AppendableGateway<PutWarrantiesRequest> {
4562
4570
  warranties: (value: Array<JSObject>) => this;
4563
4571
  /** Warranty ID (numeric or text based). */
4564
4572
  id: (id: string) => this
@@ -4570,7 +4578,7 @@ export interface PutWarrantiesRequest extends AppendableGateway<PutWarrantiesReq
4570
4578
  period: (period: number|string) => this
4571
4579
  }
4572
4580
 
4573
- export interface GetWmsLocationsRequest extends PagableGateway<GetWmsLocationsRequest,GetWmsLocationsResponse> {
4581
+ export interface GetWmsLocationsRequest extends PagableGateway<GetWmsLocationsRequest, GetWmsLocationsResponse> {
4574
4582
  /** Warehouse location ID */
4575
4583
  locationId: (value: number|string) => this;
4576
4584
  /** Storage location code */
@@ -4602,7 +4610,7 @@ export interface DeleteWmsStocksdocumentsDocumentsRequest extends Gateway {
4602
4610
  id: (value: number|string) => this;
4603
4611
  }
4604
4612
 
4605
- export interface GetWmsStocksdocumentsDocumentsRequest extends PagableGateway<GetWmsStocksdocumentsDocumentsRequest,GetWmsStocksdocumentsDocumentsResponse> {
4613
+ export interface GetWmsStocksdocumentsDocumentsRequest extends PagableGateway<GetWmsStocksdocumentsDocumentsRequest, GetWmsStocksdocumentsDocumentsResponse> {
4606
4614
  /** Document type. */
4607
4615
  stockDocumentType: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'wz'|'mm'|'zw') => this;
4608
4616
  /** Document status. */
@@ -4620,10 +4628,10 @@ export interface GetWmsStocksdocumentsDocumentsRequest extends PagableGateway<Ge
4620
4628
  /** Number of results on page. Value from 1 to 100 */
4621
4629
  resultsLimit: (value: number|string) => this;
4622
4630
  /** Define range of dates and their type */
4623
- dates: (dateFrom: DateLike, dateTo: DateLike, type: "open"|"modify"|"close"|"stockOperation") => this;
4631
+ dates: (dateFrom: DateLike, dateTo: DateLike, type?: "open"|"modify"|"close"|"stockOperation") => this;
4624
4632
  }
4625
4633
 
4626
- export interface PostWmsStocksdocumentsDocumentsRequest extends Gateway {
4634
+ export interface PostWmsStocksdocumentsDocumentsRequest extends Gateway<PostWmsStocksdocumentsDocumentsResponse, RequestParams.PostWmsStocksdocumentsDocumentsParams> {
4627
4635
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm') => this;
4628
4636
  /** 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
4637
  stockId: (value: number|string) => this;
@@ -4679,7 +4687,7 @@ export interface PutWmsStocksdocumentsDocumentsRequest extends Gateway {
4679
4687
  /** Purchase price currency, e.g. PLN, USD, GBP */
4680
4688
  currencyForPurchasePrice: (value: string) => this;
4681
4689
  /** Currency exchange rate (Currency conversion) */
4682
- currencyForPurchasePriceRate: (value: Number) => this;
4690
+ currencyForPurchasePriceRate: (value: number) => this;
4683
4691
  /** 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
4692
  currencyForPurchasePriceRateType: (value: 'custom'|'currentDay'|'customDay'|'previousDay') => this;
4685
4693
  /** Currency rate of the day. Correct format is yyyy-mm-dd, e.g. 2007-12-31.. */
@@ -4708,10 +4716,10 @@ export interface GetWmsStocksdocumentsOpenedDocumentsRequest extends PagableGate
4708
4716
  /** Number of results on page. Value from 1 to 100 */
4709
4717
  resultsLimit: (value: number|string) => this;
4710
4718
  /** Define range of dates and their type */
4711
- dates: (dateFrom: DateLike, dateTo: DateLike, type: "open"|"modify") => this;
4719
+ dates: (dateFrom: DateLike, dateTo: DateLike, type?: "open"|"modify") => this;
4712
4720
  }
4713
4721
 
4714
- export interface DeleteWmsStocksdocumentsProductsRequest extends AppendableGateway<DeleteWmsStocksdocumentsProductsRequest, JSObject> {
4722
+ export interface DeleteWmsStocksdocumentsProductsRequest extends AppendableGateway<DeleteWmsStocksdocumentsProductsRequest> {
4715
4723
  /** Products list. */
4716
4724
  products: (value: Array<JSObject>) => this;
4717
4725
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm') => this;
@@ -4723,7 +4731,7 @@ export interface DeleteWmsStocksdocumentsProductsRequest extends AppendableGatew
4723
4731
  size: (size: string) => this
4724
4732
  }
4725
4733
 
4726
- export interface GetWmsStocksdocumentsProductsRequest extends PagableGateway<GetWmsStocksdocumentsProductsRequest,GetWmsStocksdocumentsProductsResponse> {
4734
+ export interface GetWmsStocksdocumentsProductsRequest extends PagableGateway<GetWmsStocksdocumentsProductsRequest, GetWmsStocksdocumentsProductsResponse> {
4727
4735
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm'|'wz'|'zw') => this;
4728
4736
  /** Document identifier. */
4729
4737
  id: (value: number|string) => this;
@@ -4733,9 +4741,9 @@ export interface GetWmsStocksdocumentsProductsRequest extends PagableGateway<Get
4733
4741
  results_limit: (value: number|string) => this;
4734
4742
  }
4735
4743
 
4736
- export interface PostWmsStocksdocumentsProductsRequest extends AppendableGateway<PostWmsStocksdocumentsProductsRequest, JSObject> {
4744
+ export interface PostWmsStocksdocumentsProductsRequest extends AppendableGateway<PostWmsStocksdocumentsProductsRequest, PostWmsStocksdocumentsProductsResponse, RequestParams.PostWmsStocksdocumentsProductsParams> {
4737
4745
  /** Products list. */
4738
- products: (value: Array<JSObject>) => this;
4746
+ products: (value: RequestParams.PostWmsStocksdocumentsProductsParams["products"]) => this;
4739
4747
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm') => this;
4740
4748
  /** Document identifier. */
4741
4749
  id: (value: number|string) => this;
@@ -4755,9 +4763,9 @@ export interface PostWmsStocksdocumentsProductsRequest extends AppendableGateway
4755
4763
  locationTextId: (locationTextId: string) => this
4756
4764
  }
4757
4765
 
4758
- export interface PutWmsStocksdocumentsProductsRequest extends AppendableGateway<PutWmsStocksdocumentsProductsRequest, JSObject> {
4766
+ export interface PutWmsStocksdocumentsProductsRequest extends AppendableGateway<PutWmsStocksdocumentsProductsRequest, PutWmsStocksdocumentsProductsResponse, RequestParams.PutWmsStocksdocumentsProductsParams> {
4759
4767
  /** Products list. */
4760
- products: (value: Array<JSObject>) => this;
4768
+ products: (value: RequestParams.PutWmsStocksdocumentsProductsParams["products"]) => this;
4761
4769
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm') => this;
4762
4770
  /** Document identifier. */
4763
4771
  id: (value: number|string) => this;
@@ -4787,20 +4795,20 @@ export interface DeleteWmsSuppliersRequest extends Gateway {
4787
4795
  ids: (value: number|string|number[]|string[]) => this;
4788
4796
  }
4789
4797
 
4790
- export interface GetWmsSuppliersRequest extends PagableGateway<GetWmsSuppliersRequest,GetWmsSuppliersResponse> {
4798
+ export interface GetWmsSuppliersRequest extends PagableGateway<GetWmsSuppliersRequest, GetWmsSuppliersResponse> {
4791
4799
  /** Page with results number. Numeration starts from 0 */
4792
4800
  resultsPage: (value: number|string) => this;
4793
4801
  /** Number of results on page. Value from 1 to 100 */
4794
4802
  resultsLimit: (value: number|string) => this;
4795
4803
  /** Return quantity of products assigned to supplier */
4796
- returnProductsCount: (value: Boolean) => this;
4804
+ returnProductsCount: (value: boolean) => this;
4797
4805
  /** Names */
4798
4806
  names: (value: string|string[]) => this;
4799
4807
  /** IDs */
4800
4808
  ids: (value: number|string|number[]|string[]) => this;
4801
4809
  }
4802
4810
 
4803
- export interface PutWmsSuppliersRequest extends AppendableGateway<PutWmsSuppliersRequest, JSObject> {
4811
+ export interface PutWmsSuppliersRequest extends AppendableGateway<PutWmsSuppliersRequest> {
4804
4812
  suppliers: (value: Array<JSObject>) => this;
4805
4813
  /** Id */
4806
4814
  id: (id: number|string) => this
@@ -5180,4 +5188,4 @@ export interface Gateways {
5180
5188
 
5181
5189
  declare const defaultExport: (url: string, apiKey: string, version?: number | string) => Gateways;
5182
5190
  export default defaultExport;
5183
- export { ENUMS }
5191
+ export { ENUMS, RequestParams }