idosell 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +6 -0
- package/dist/app.d.ts +1 -1
- package/dist/gateways.d.ts +395 -395
- package/dist/index.js +1 -1
- package/dist/methods/putProductsAttachments.js +1 -0
- package/dist/reqparams.d.ts +1612 -2
- package/dist/responses.d.ts +313 -66
- package/package.json +1 -1
- package/tests/putProductsAttachments.test.js +2 -2
package/dist/reqparams.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { PagableGateway, AppendableGateway, Gateway, DateLike, JSObject } from "./app.d.ts";
|
|
2
|
-
|
|
3
1
|
export type PostOrdersParams = {
|
|
4
2
|
/** @description Orders. */
|
|
5
3
|
orders: {
|
|
@@ -2257,4 +2255,1616 @@ export type PostOrdersDocumentsCreateParams = {
|
|
|
2257
2255
|
printerId?: number;
|
|
2258
2256
|
};
|
|
2259
2257
|
|
|
2258
|
+
export type PostClientsParams = {
|
|
2259
|
+
/** @description Customer data. */
|
|
2260
|
+
clients: {
|
|
2261
|
+
/** @description Customer's login. */
|
|
2262
|
+
login?: string;
|
|
2263
|
+
/** @description External system code. */
|
|
2264
|
+
code_extern?: string;
|
|
2265
|
+
/** @description Customer e-mail address. */
|
|
2266
|
+
email: string;
|
|
2267
|
+
/** @description Customer's first name. */
|
|
2268
|
+
firstname?: string;
|
|
2269
|
+
/** @description Customer's last name. */
|
|
2270
|
+
lastname?: string;
|
|
2271
|
+
/** @description Address. */
|
|
2272
|
+
street: string;
|
|
2273
|
+
/** @description Customer's postal code. */
|
|
2274
|
+
zipcode: string;
|
|
2275
|
+
/** @description Customer's city. */
|
|
2276
|
+
city: string;
|
|
2277
|
+
/** @description Customer country (ISO 3166-1 alfa-2 code). */
|
|
2278
|
+
country_code?: string;
|
|
2279
|
+
/** @description Administrative region code. */
|
|
2280
|
+
province_code?: string;
|
|
2281
|
+
/** @description Customer password (min. 8 characters). */
|
|
2282
|
+
password?: string;
|
|
2283
|
+
/** @description Date of birth. */
|
|
2284
|
+
birth_date?: string;
|
|
2285
|
+
/** @description Customer phone number. */
|
|
2286
|
+
phone: string;
|
|
2287
|
+
/** @example company */
|
|
2288
|
+
company?: string;
|
|
2289
|
+
/** @description Customer Tax no. */
|
|
2290
|
+
vat_number?: string;
|
|
2291
|
+
/** @description Determines, whether client is a wholesaler. */
|
|
2292
|
+
wholesaler?: boolean;
|
|
2293
|
+
/** @description 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. */
|
|
2294
|
+
client_type?: "person" | "person_male" | "person_female" | "firm";
|
|
2295
|
+
/** @description Customer language ID. */
|
|
2296
|
+
language?: string;
|
|
2297
|
+
/** @description Determines, in which store account should be active. */
|
|
2298
|
+
shops: number[];
|
|
2299
|
+
/** @description Defines availability of log in to other pages than the ones given in the element: shops . */
|
|
2300
|
+
block_autosigning_to_shops?: boolean;
|
|
2301
|
+
/** @description Customer default currency (ISO 4217 code). */
|
|
2302
|
+
currency?: string;
|
|
2303
|
+
delivery_dates?: string[];
|
|
2304
|
+
/** @description Customer account balance in external system. */
|
|
2305
|
+
external_balance_value?: number;
|
|
2306
|
+
/** @description Debt limit. */
|
|
2307
|
+
external_trade_credit_limit_value?: number;
|
|
2308
|
+
/** @description Have customer agreed to a newsletter. List of allowed parameters: "y" - yes, "n" - no. The value will be set in all shops in which the customer account is active. */
|
|
2309
|
+
email_newsletter?: boolean;
|
|
2310
|
+
/** @description Have customer agreed to a newsletter. List of allowed parameters: "y" - yes, "n" - no. The value will be set in all shops in which the customer account is active. */
|
|
2311
|
+
sms_newsletter?: boolean;
|
|
2312
|
+
/** @description Discount group ID. */
|
|
2313
|
+
client_group?: number;
|
|
2314
|
+
/** @description Field used for identifying request-response pairs for the endpoint. */
|
|
2315
|
+
request_reference?: string;
|
|
2316
|
+
/** @description List of shops where a customer agreed or didn't agree to receive email newsletter. */
|
|
2317
|
+
newsletter_email_approvals?: {
|
|
2318
|
+
/** @description Have customer agreed to a newsletter. List of allowed parameters: "y" - yes, "n" - no. */
|
|
2319
|
+
approval?: "y" | "n";
|
|
2320
|
+
/** @description Store ID. */
|
|
2321
|
+
shop_id?: number;
|
|
2322
|
+
}[];
|
|
2323
|
+
/** @description List of shops where a customer agreed or didn't agree to receive sms newsletter. */
|
|
2324
|
+
newsletter_sms_approvals?: {
|
|
2325
|
+
/** @description Have customer agreed to a newsletter. List of allowed parameters: "y" - yes, "n" - no. */
|
|
2326
|
+
approval?: "y" | "n";
|
|
2327
|
+
/** @description Store ID. */
|
|
2328
|
+
shop_id?: number;
|
|
2329
|
+
}[];
|
|
2330
|
+
/** @description Block assigning of discount groups automatically based on order history */
|
|
2331
|
+
block_group_auto_assignment?: boolean;
|
|
2332
|
+
}[];
|
|
2333
|
+
};
|
|
2334
|
+
|
|
2335
|
+
export type PostReturnsParams = {
|
|
2336
|
+
/** @description Order serial number */
|
|
2337
|
+
order_sn: number;
|
|
2338
|
+
/** @example 1 */
|
|
2339
|
+
stock_id: number;
|
|
2340
|
+
/** @description Products list. */
|
|
2341
|
+
products: {
|
|
2342
|
+
/** @example 1 */
|
|
2343
|
+
id?: number;
|
|
2344
|
+
/** @example size */
|
|
2345
|
+
size?: string;
|
|
2346
|
+
/** */
|
|
2347
|
+
quantity?: number;
|
|
2348
|
+
/** @description Price. */
|
|
2349
|
+
price?: number;
|
|
2350
|
+
serialNumbers?: string[];
|
|
2351
|
+
/** @description Additional information. */
|
|
2352
|
+
productOrderAdditional?: string;
|
|
2353
|
+
}[];
|
|
2354
|
+
/** @example 1 */
|
|
2355
|
+
status?: number;
|
|
2356
|
+
client_received?: boolean;
|
|
2357
|
+
change_status?: boolean;
|
|
2358
|
+
/** @example 1 */
|
|
2359
|
+
courier_id?: number;
|
|
2360
|
+
/** @example return_operator */
|
|
2361
|
+
return_operator?: string;
|
|
2362
|
+
tryCorrectInvoice?: boolean;
|
|
2363
|
+
/** @example include_shipping_cost */
|
|
2364
|
+
include_shipping_cost?: string;
|
|
2365
|
+
/** @example additional_payment_cost */
|
|
2366
|
+
additional_payment_cost?: string;
|
|
2367
|
+
/** */
|
|
2368
|
+
emptyReturn?: "n" | "y";
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
export type PostWmsStocksdocumentsDocumentsParams = {
|
|
2372
|
+
/** */
|
|
2373
|
+
type: "pz" | "pw" | "px" | "rx" | "rw" | "mm";
|
|
2374
|
+
/** @description 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>. */
|
|
2375
|
+
stockId: number;
|
|
2376
|
+
/** @description Document number. */
|
|
2377
|
+
stockDocumentNumber?: string;
|
|
2378
|
+
/** @description Source 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>. */
|
|
2379
|
+
stockSourceId?: number;
|
|
2380
|
+
/** @example note */
|
|
2381
|
+
note?: string;
|
|
2382
|
+
/** @description Products available in presales. Available values: "y" - yes, "n" - no. */
|
|
2383
|
+
productsInPreorder?: "y" | "n";
|
|
2384
|
+
/** @description Supplier ID. */
|
|
2385
|
+
delivererId?: number;
|
|
2386
|
+
/** @description Type of purchase document. Available values: "national_VAT_invoice" - National VAT invoice, "other_purchase_document" - Other purchase document, "invoice_without_VAT" - Invoice without VAT (EU), "imports_from_outside_the_EU" - Import from outside EU. */
|
|
2387
|
+
wnt?: "national_VAT_invoice" | "other_purchase_document" | "invoice_without_VAT" | "imports_from_outside_the_EU";
|
|
2388
|
+
/** @description Issue date of purchase document. Correct format is yyyy-mm-dd, e.g. 2007-12-31.. */
|
|
2389
|
+
saleDocumentCreationDate?: string;
|
|
2390
|
+
/** @description Planned date of acceptance of delivery. Correct format is yyyy-mm-dd, e.g. 2007-12-31. Requires parameter: "confirmed=on_the_way". */
|
|
2391
|
+
deliveryOnTheWayPlannedDeliveryDate?: string;
|
|
2392
|
+
/** @description Document status. Available values: "open" - open, "on_the_way" - on the way. */
|
|
2393
|
+
confirmed?: "open" | "on_the_way";
|
|
2394
|
+
/** @description Purchase price currency, e.g. PLN, USD, GBP */
|
|
2395
|
+
currencyForPurchasePrice?: string;
|
|
2396
|
+
/** @description Settlement by prices. Available values: "brutto" - Gross value, "netto" - Net value */
|
|
2397
|
+
priceType?: "brutto" | "netto";
|
|
2398
|
+
/** @description Methods of stock level correction. Available values: "fifo" - first-in, first-out (FIFO), "lifo" - last-in, first-out (LIFO) */
|
|
2399
|
+
queueType?: "fifo" | "lifo";
|
|
2400
|
+
};
|
|
2401
|
+
|
|
2402
|
+
export type PostWmsStocksdocumentsProductsParams = {
|
|
2403
|
+
/** @description Products list. */
|
|
2404
|
+
products: {
|
|
2405
|
+
/** @description Stock keeping unit. */
|
|
2406
|
+
product: number;
|
|
2407
|
+
/** @description Product size ID. */
|
|
2408
|
+
size: string;
|
|
2409
|
+
/** @description Product quantity. */
|
|
2410
|
+
quantity: number;
|
|
2411
|
+
/** @description Cost price */
|
|
2412
|
+
productPurchasePrice?: number;
|
|
2413
|
+
/** @description Warehouse location ID. The list of available warehouse locations can be downloaded via the method <a href = "pl/shop/api/?action=method&function=locations&method=get">#get</a> in gateway <a href = "en/shop/api/?action=documentation&function=locations">Locations</a> . */
|
|
2414
|
+
locationId?: number;
|
|
2415
|
+
/** @description Storage location code */
|
|
2416
|
+
locationCode?: string;
|
|
2417
|
+
/** @description Warehouse location full path. Use a backslash (\) as a separator, for example: M1\Section name\Location name. The list of available warehouse locations can be downloaded via the method <a href = "pl/shop/api/?action=method&function=locations&method=get">#get</a> in gateway <a href = "en/shop/api/?action=documentation&function=locations">Locations</a> . */
|
|
2418
|
+
locationTextId?: string;
|
|
2419
|
+
}[];
|
|
2420
|
+
/** */
|
|
2421
|
+
type: "pz" | "pw" | "px" | "rx" | "rw" | "mm";
|
|
2422
|
+
/** @description Document identifier. */
|
|
2423
|
+
id: number;
|
|
2424
|
+
};
|
|
2425
|
+
|
|
2426
|
+
export type PostPaymentsParams = {
|
|
2427
|
+
/** @description Source ID. */
|
|
2428
|
+
sourceId: number;
|
|
2429
|
+
/** @description Source type. */
|
|
2430
|
+
sourceType: "order" | "return" | "rma";
|
|
2431
|
+
/** @description Payment amount. */
|
|
2432
|
+
value: number;
|
|
2433
|
+
/** @description Number of a bank account to which a payment is sent. */
|
|
2434
|
+
account?: string;
|
|
2435
|
+
/** */
|
|
2436
|
+
type: "payment" | "advance" | "repayment" | "fee";
|
|
2437
|
+
/** @description Form of payment ID. */
|
|
2438
|
+
paymentFormId: number;
|
|
2439
|
+
/** @description Gift card or voucher number */
|
|
2440
|
+
paymentVoucherKey?: string;
|
|
2441
|
+
/** @description Gift card PIN. */
|
|
2442
|
+
giftCardPIN?: number;
|
|
2443
|
+
/** @description Transaction ID in external service */
|
|
2444
|
+
externalPaymentId?: string;
|
|
2445
|
+
};
|
|
2446
|
+
|
|
2447
|
+
export type PutReturnsParams = {
|
|
2448
|
+
returns: {
|
|
2449
|
+
/** @example 1 */
|
|
2450
|
+
id: number;
|
|
2451
|
+
/** @example 1 */
|
|
2452
|
+
status?: number;
|
|
2453
|
+
/** @description 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. */
|
|
2454
|
+
apiFlag?: {
|
|
2455
|
+
/** */
|
|
2456
|
+
flag?: "none" | "registered" | "registration_fault";
|
|
2457
|
+
/** @example note */
|
|
2458
|
+
note?: string;
|
|
2459
|
+
};
|
|
2460
|
+
/** @description Products list. */
|
|
2461
|
+
products?: {
|
|
2462
|
+
/** @example 1 */
|
|
2463
|
+
id?: number;
|
|
2464
|
+
/** @example size */
|
|
2465
|
+
size?: string;
|
|
2466
|
+
/** */
|
|
2467
|
+
quantity?: number;
|
|
2468
|
+
/** @description Price. */
|
|
2469
|
+
price?: number;
|
|
2470
|
+
serialNumbers?: string[];
|
|
2471
|
+
/** @description Additional information. */
|
|
2472
|
+
productOrderAdditional?: string;
|
|
2473
|
+
}[];
|
|
2474
|
+
/** @example userNote */
|
|
2475
|
+
userNote?: string;
|
|
2476
|
+
/** @description Notes from customer. */
|
|
2477
|
+
clientNote?: string;
|
|
2478
|
+
tryCorrectInvoice?: boolean;
|
|
2479
|
+
}[];
|
|
2480
|
+
};
|
|
2481
|
+
|
|
2482
|
+
export type PutRmaParams = {
|
|
2483
|
+
/** @description Complaints. */
|
|
2484
|
+
rmas: {
|
|
2485
|
+
/** @description Complaint id. */
|
|
2486
|
+
rmaId: number;
|
|
2487
|
+
/** @description 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 */
|
|
2488
|
+
rmaStatusId?: number;
|
|
2489
|
+
/** @description Customer correspondence. */
|
|
2490
|
+
rmaChat?: {
|
|
2491
|
+
/** @description Message content */
|
|
2492
|
+
message?: string;
|
|
2493
|
+
}[];
|
|
2494
|
+
}[];
|
|
2495
|
+
};
|
|
2496
|
+
|
|
2497
|
+
export type PutWmsStocksdocumentsProductsParams = {
|
|
2498
|
+
/** @description Products list. */
|
|
2499
|
+
products: {
|
|
2500
|
+
/** @description Stock keeping unit. */
|
|
2501
|
+
product: number;
|
|
2502
|
+
/** @description Product size ID. */
|
|
2503
|
+
size: string;
|
|
2504
|
+
/** @description Product quantity. */
|
|
2505
|
+
quantity?: number;
|
|
2506
|
+
/** @description Cost price */
|
|
2507
|
+
productPurchasePrice?: number;
|
|
2508
|
+
/** @description Warehouse location ID. The list of available warehouse locations can be downloaded via the method <a href = "pl/shop/api/?action=method&function=locations&method=get">#get</a> in gateway <a href = "en/shop/api/?action=documentation&function=locations">Locations</a> . */
|
|
2509
|
+
locationId?: number;
|
|
2510
|
+
/** @description Storage location code */
|
|
2511
|
+
locationCode?: string;
|
|
2512
|
+
/** @description Warehouse location full path. Use a backslash (\) as a separator, for example: M1\Section name\Location name. The list of available warehouse locations can be downloaded via the method <a href = "pl/shop/api/?action=method&function=locations&method=get">#get</a> in gateway <a href = "en/shop/api/?action=documentation&function=locations">Locations</a> . */
|
|
2513
|
+
locationTextId?: string;
|
|
2514
|
+
}[];
|
|
2515
|
+
/** */
|
|
2516
|
+
type: "pz" | "pw" | "px" | "rx" | "rw" | "mm";
|
|
2517
|
+
/** @description Document identifier. */
|
|
2518
|
+
id: number;
|
|
2519
|
+
};
|
|
2520
|
+
|
|
2521
|
+
export type PostMenuParams = {
|
|
2522
|
+
menu_list: {
|
|
2523
|
+
/** @description Shop Id. */
|
|
2524
|
+
shop_id: number;
|
|
2525
|
+
/** @description Menu ID. */
|
|
2526
|
+
menu_id: number;
|
|
2527
|
+
/** @description Parent menu element ID. */
|
|
2528
|
+
parent_id?: string;
|
|
2529
|
+
/** @description Menu element text identifier. Example: "item1\item2". */
|
|
2530
|
+
parent_textid?: string;
|
|
2531
|
+
lang_data: {
|
|
2532
|
+
/** @description Language ID. */
|
|
2533
|
+
lang_id?: string;
|
|
2534
|
+
/** @description Menu element name. */
|
|
2535
|
+
name?: string;
|
|
2536
|
+
/** @description Menu element order. */
|
|
2537
|
+
priority?: number;
|
|
2538
|
+
/** @description Description displayed at the top of products list. */
|
|
2539
|
+
description?: string;
|
|
2540
|
+
/** @description Description displayed at the bottom of products list. */
|
|
2541
|
+
description_bottom?: string;
|
|
2542
|
+
/** @description Own link. */
|
|
2543
|
+
link?: string;
|
|
2544
|
+
/** */
|
|
2545
|
+
item_type?: "products" | "navigation" | "products_with_rich_text" | "navigation_with_rich_text" | "rich_text" | "static" | "link";
|
|
2546
|
+
/** @description Meta - title. */
|
|
2547
|
+
meta_title?: string;
|
|
2548
|
+
/** @description Meta description. */
|
|
2549
|
+
meta_description?: string;
|
|
2550
|
+
/** @description Meta - keywords. */
|
|
2551
|
+
meta_keywords?: string;
|
|
2552
|
+
/** @description URL address */
|
|
2553
|
+
url?: string;
|
|
2554
|
+
/** @description Link target attribute: !_self - open on the same page, !_blank - open in a new page. */
|
|
2555
|
+
href_target?: "_self" | "_blank";
|
|
2556
|
+
sort?: {
|
|
2557
|
+
/** @description Default product list view. */
|
|
2558
|
+
view?: "normal" | "list" | "gallery";
|
|
2559
|
+
/** @description Sort by. */
|
|
2560
|
+
sort_by?: "date" | "priority" | "priorityname" | "name" | "price";
|
|
2561
|
+
/** @description Sort order. */
|
|
2562
|
+
sort_order?: "ASC" | "DESC";
|
|
2563
|
+
}[];
|
|
2564
|
+
display_limit?: {
|
|
2565
|
+
/** @description Default product list view. */
|
|
2566
|
+
view?: "normal" | "list" | "gallery";
|
|
2567
|
+
/** @description Limit. */
|
|
2568
|
+
limit?: number;
|
|
2569
|
+
}[];
|
|
2570
|
+
/** */
|
|
2571
|
+
default_view?: "normal" | "list" | "gallery";
|
|
2572
|
+
/** @description Headline name. Leaving this value empty will automatically generate name basing on a name in menu. */
|
|
2573
|
+
headline_name?: string;
|
|
2574
|
+
/** @description Display by default nested elements. n - no, y - yes. */
|
|
2575
|
+
expand?: "n" | "y";
|
|
2576
|
+
/** @description Element of the menu hidden from the clients: n - no, y - yes. */
|
|
2577
|
+
hidden?: "n" | "y";
|
|
2578
|
+
/** @description After clicking on the element in the menu:: expand - Display subelements of the menu if any available, if not - create, reload - reload the page and open. */
|
|
2579
|
+
action?: "reload" | "expand";
|
|
2580
|
+
/** @description Element "show all" is:: products_list - link to the list of products, navigation_site - link to the "Navigation" page. */
|
|
2581
|
+
display_all_type?: "products_list" | "navigation_site";
|
|
2582
|
+
/** @description Display element "show all": n - no, y - yes. */
|
|
2583
|
+
display_all?: "n" | "y";
|
|
2584
|
+
/** @description Disable changing "sort by" for customers: n - no, y - yes. */
|
|
2585
|
+
allow_sort_change?: "n" | "y";
|
|
2586
|
+
/** @description Disable possibility of changing the number of displayed products on the page by customers : n - no, y - yes. */
|
|
2587
|
+
allow_limit_change?: "n" | "y";
|
|
2588
|
+
/** @description Graphics in menu: n - no, y - yes. */
|
|
2589
|
+
node_gfx?: "n" | "y";
|
|
2590
|
+
/** @description Type of graphics - When the cursor is on the link: img - Image (one size for computers, tablets and smartphones, not recommended), img_rwd - Image (three sizes for RWD). */
|
|
2591
|
+
gfx_active_type?: "img" | "img_rwd";
|
|
2592
|
+
/** @description Type of graphics - When the cursor is outside link: img - Image (one size for computers, tablets and smartphones, not recommended), img_rwd - Image (three sizes for RWD). */
|
|
2593
|
+
gfx_inactive_type?: "img" | "img_rwd";
|
|
2594
|
+
/** @description Type of graphics - When the link is opened: img - Image (one size for computers, tablets and smartphones, not recommended), img_rwd - Image (three sizes for RWD). */
|
|
2595
|
+
gfx_omo_type?: "img" | "img_rwd";
|
|
2596
|
+
/** @description Graphic on the "navigation" page. */
|
|
2597
|
+
gfx_nav?: {
|
|
2598
|
+
/** @description Graphic encoded with Base64 */
|
|
2599
|
+
base64?: string;
|
|
2600
|
+
/** @description Graphic format */
|
|
2601
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2602
|
+
};
|
|
2603
|
+
/** @description Graphic - When the cursor is on the link. */
|
|
2604
|
+
gfx_active?: {
|
|
2605
|
+
/** @description Graphic encoded with Base64 */
|
|
2606
|
+
base64?: string;
|
|
2607
|
+
/** @description Graphic format */
|
|
2608
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2609
|
+
};
|
|
2610
|
+
/** @description Graphic - When the cursor is on the link - Desktop. */
|
|
2611
|
+
gfx_active_desktop?: {
|
|
2612
|
+
/** @description Graphic encoded with Base64 */
|
|
2613
|
+
base64?: string;
|
|
2614
|
+
/** @description Graphic format */
|
|
2615
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2616
|
+
};
|
|
2617
|
+
/** @description Graphic - When the cursor is on the link - Tablet. */
|
|
2618
|
+
gfx_active_tablet?: {
|
|
2619
|
+
/** @description Graphic encoded with Base64 */
|
|
2620
|
+
base64?: string;
|
|
2621
|
+
/** @description Graphic format */
|
|
2622
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2623
|
+
};
|
|
2624
|
+
/** @description Graphic - When the cursor is on the link - Mobile. */
|
|
2625
|
+
gfx_active_mobile?: {
|
|
2626
|
+
/** @description Graphic encoded with Base64 */
|
|
2627
|
+
base64?: string;
|
|
2628
|
+
/** @description Graphic format */
|
|
2629
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2630
|
+
};
|
|
2631
|
+
/** @description Graphic - When the cursor is outside link. */
|
|
2632
|
+
gfx?: {
|
|
2633
|
+
/** @description Graphic encoded with Base64 */
|
|
2634
|
+
base64?: string;
|
|
2635
|
+
/** @description Graphic format */
|
|
2636
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2637
|
+
};
|
|
2638
|
+
/** @description Graphic - When the cursor is outside link - Desktop. */
|
|
2639
|
+
gfx_inactive_desktop?: {
|
|
2640
|
+
/** @description Graphic encoded with Base64 */
|
|
2641
|
+
base64?: string;
|
|
2642
|
+
/** @description Graphic format */
|
|
2643
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2644
|
+
};
|
|
2645
|
+
/** @description Graphic - When the cursor is outside link - Tablet. */
|
|
2646
|
+
gfx_inactive_tablet?: {
|
|
2647
|
+
/** @description Graphic encoded with Base64 */
|
|
2648
|
+
base64?: string;
|
|
2649
|
+
/** @description Graphic format */
|
|
2650
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2651
|
+
};
|
|
2652
|
+
/** @description Graphic - When the cursor is outside link - Mobile. */
|
|
2653
|
+
gfx_inactive_mobile?: {
|
|
2654
|
+
/** @description Graphic encoded with Base64 */
|
|
2655
|
+
base64?: string;
|
|
2656
|
+
/** @description Graphic format */
|
|
2657
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2658
|
+
};
|
|
2659
|
+
/** @description Graphic - When the link is opened. */
|
|
2660
|
+
gfx_onmouseover?: {
|
|
2661
|
+
/** @description Graphic encoded with Base64 */
|
|
2662
|
+
base64?: string;
|
|
2663
|
+
/** @description Graphic format */
|
|
2664
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2665
|
+
};
|
|
2666
|
+
/** @description Graphic - When the link is opened - Desktop. */
|
|
2667
|
+
gfx_omo_desktop?: {
|
|
2668
|
+
/** @description Graphic encoded with Base64 */
|
|
2669
|
+
base64?: string;
|
|
2670
|
+
/** @description Graphic format */
|
|
2671
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2672
|
+
};
|
|
2673
|
+
/** @description Graphic - When the link is opened - Tablet. */
|
|
2674
|
+
gfx_omo_tablet?: {
|
|
2675
|
+
/** @description Graphic encoded with Base64 */
|
|
2676
|
+
base64?: string;
|
|
2677
|
+
/** @description Graphic format */
|
|
2678
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2679
|
+
};
|
|
2680
|
+
/** @description Graphic - When the link is opened - Mobile. */
|
|
2681
|
+
gfx_omo_mobile?: {
|
|
2682
|
+
/** @description Graphic encoded with Base64 */
|
|
2683
|
+
base64?: string;
|
|
2684
|
+
/** @description Graphic format */
|
|
2685
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2686
|
+
};
|
|
2687
|
+
/** @description Add a canonical link that points to the parent menu item: n - no, y - yes. */
|
|
2688
|
+
canonical_to_parent?: "n" | "y";
|
|
2689
|
+
/** @description Meta robots index settings: default - automatically generate, index - index, noindex - noindex. */
|
|
2690
|
+
meta_robots_index?: "default" | "index" | "noindex";
|
|
2691
|
+
/** @description Meta robots follow settings: default - automatically generate, follow - follow, nofollow - nofollow. */
|
|
2692
|
+
meta_robots_follow?: "default" | "follow" | "nofollow";
|
|
2693
|
+
}[];
|
|
2694
|
+
}[];
|
|
2695
|
+
/** @description Settings */
|
|
2696
|
+
settings?: {
|
|
2697
|
+
/** @description Default: "\". */
|
|
2698
|
+
textid_separator?: string;
|
|
2699
|
+
};
|
|
2700
|
+
};
|
|
2701
|
+
|
|
2702
|
+
export type PutClientsDeliveryAddressParams = {
|
|
2703
|
+
/** @description Customer data. */
|
|
2704
|
+
clients: {
|
|
2705
|
+
/** @description Customer's login. */
|
|
2706
|
+
clientLogin: string;
|
|
2707
|
+
/** @description External system code. */
|
|
2708
|
+
clientCodeExternal?: string;
|
|
2709
|
+
/** @description Delivery address ID. */
|
|
2710
|
+
clientDeliveryAddressId: string | number;
|
|
2711
|
+
/** @description List of stores IDs When mask is determined, this parameter is omitted. */
|
|
2712
|
+
shopsIds: number[];
|
|
2713
|
+
/** @description Currency ID */
|
|
2714
|
+
currencyId?: string;
|
|
2715
|
+
/** @description Recipient's first name. */
|
|
2716
|
+
clientDeliveryAddressFirstName?: string;
|
|
2717
|
+
/** @description Recipient's last name. */
|
|
2718
|
+
clientDeliveryAddressLastName?: string;
|
|
2719
|
+
/** @description Additional information. */
|
|
2720
|
+
clientDeliveryAddressAdditional?: string;
|
|
2721
|
+
/** @description Cell phone. */
|
|
2722
|
+
clientDeliveryAddressPhone1?: string;
|
|
2723
|
+
/** @description Recipient's city. */
|
|
2724
|
+
clientDeliveryAddressCity?: string;
|
|
2725
|
+
/** @description Recipient street and number. */
|
|
2726
|
+
clientDeliveryAddressStreet?: string;
|
|
2727
|
+
/** @description Administrative region code. */
|
|
2728
|
+
clientDeliveryAddressRegionId?: string;
|
|
2729
|
+
/** @description Administrative region code. */
|
|
2730
|
+
clientDeliveryAddressProvinceId?: string;
|
|
2731
|
+
/** @description Recipient's postal code. */
|
|
2732
|
+
clientDeliveryAddressZipCode?: string;
|
|
2733
|
+
/** @description Recipient's country. */
|
|
2734
|
+
clientDeliveryAddressCountry?: string;
|
|
2735
|
+
}[];
|
|
2736
|
+
};
|
|
2737
|
+
|
|
2738
|
+
export type PutProductsAttachmentsParams = {
|
|
2739
|
+
productsAttachments: {
|
|
2740
|
+
/** @description Stock keeping unit. */
|
|
2741
|
+
productIdent: {
|
|
2742
|
+
/** @description ID value. */
|
|
2743
|
+
identValue: string | number;
|
|
2744
|
+
/** @description Identifier type. */
|
|
2745
|
+
productIdentType: "id" | "index" | "codeExtern" | "codeProducer";
|
|
2746
|
+
};
|
|
2747
|
+
/** @description Product attachments list. */
|
|
2748
|
+
attachments?: {
|
|
2749
|
+
/** @description Attachment file link. */
|
|
2750
|
+
attachmentUrl: string;
|
|
2751
|
+
/** @description Attachment name. */
|
|
2752
|
+
attachmentName: string;
|
|
2753
|
+
/** @description Language ID */
|
|
2754
|
+
langId: string;
|
|
2755
|
+
/** @description File type: audio, video, doc, other. */
|
|
2756
|
+
attachmentFileType: "audio" | "video" | "doc" | "other" | "image";
|
|
2757
|
+
/** @description Type of customer, attachment should be available for: 'all','ordered','wholesaler','wholesaler_or_ordered','wholesaler_and_ordered'. */
|
|
2758
|
+
attachmentEnable: "all" | "ordered" | "wholesaler" | "wholesaler_or_orderer" | "wholesaler_and_ordered";
|
|
2759
|
+
/** @description Attachment ID. */
|
|
2760
|
+
attachmentId?: number;
|
|
2761
|
+
/** @description Attachment downloads record. */
|
|
2762
|
+
attachmentDownloadLog: "y" | "n";
|
|
2763
|
+
/** @description Attachment file extension. */
|
|
2764
|
+
attachmentFileExtension?: string;
|
|
2765
|
+
/** @description Attachment number. */
|
|
2766
|
+
attachmentPriority?: number;
|
|
2767
|
+
/** @description Flag indicating if an attachment should be removed. */
|
|
2768
|
+
attachmentToDelete?: boolean;
|
|
2769
|
+
/** @description Attachment document types list. */
|
|
2770
|
+
documentTypes?: {
|
|
2771
|
+
/** @description Document type. */
|
|
2772
|
+
documentType?: "energy_label" | "instruction_with_safety_information" | "user_manual" | "installation_instructions" | "product_card" | "guide" | "others";
|
|
2773
|
+
/** @description Additional description. */
|
|
2774
|
+
description?: string;
|
|
2775
|
+
}[];
|
|
2776
|
+
}[];
|
|
2777
|
+
/** @description List of product's virtual attachments. */
|
|
2778
|
+
virtualAttachments?: {
|
|
2779
|
+
/** @description Attachment file link. */
|
|
2780
|
+
attachmentUrl?: string;
|
|
2781
|
+
/** @description Attachment name. */
|
|
2782
|
+
attachmentName?: {
|
|
2783
|
+
/** @description List of languages. */
|
|
2784
|
+
attachmentLanguages?: {
|
|
2785
|
+
/** @description Language ID */
|
|
2786
|
+
langId?: string;
|
|
2787
|
+
/** @description Language name */
|
|
2788
|
+
langName?: string;
|
|
2789
|
+
/** @description Literal in selected language. */
|
|
2790
|
+
langValue?: string;
|
|
2791
|
+
}[];
|
|
2792
|
+
};
|
|
2793
|
+
/** @description Full version or sample. */
|
|
2794
|
+
attachmentType?: "full" | "demo";
|
|
2795
|
+
/** @description Number of attachment downloads limit. */
|
|
2796
|
+
attachmentLimits?: {
|
|
2797
|
+
/** @description Number of downloads limit. */
|
|
2798
|
+
attachmentDownloadsLimit?: number;
|
|
2799
|
+
/** @description Number of days file should be available. */
|
|
2800
|
+
attachmentDaysLimit?: number;
|
|
2801
|
+
};
|
|
2802
|
+
/** @description Attachment ID. */
|
|
2803
|
+
attachmentId?: number;
|
|
2804
|
+
/** @description Attachment number. */
|
|
2805
|
+
attachmentPriority?: number;
|
|
2806
|
+
/** @description Information on error that occurred during gate call. */
|
|
2807
|
+
errors?: {
|
|
2808
|
+
/** @description Error code. */
|
|
2809
|
+
faultCode?: number;
|
|
2810
|
+
/** @description Error description. */
|
|
2811
|
+
faultString?: string;
|
|
2812
|
+
};
|
|
2813
|
+
/** @description Flag indicating if an attachment should be removed. */
|
|
2814
|
+
attachmentToDelete?: boolean;
|
|
2815
|
+
}[];
|
|
2816
|
+
/** @description Information on error that occurred during gate call. */
|
|
2817
|
+
errors?: {
|
|
2818
|
+
/** @description Error code. */
|
|
2819
|
+
faultCode?: number;
|
|
2820
|
+
/** @description Error description. */
|
|
2821
|
+
faultString?: string;
|
|
2822
|
+
};
|
|
2823
|
+
/** @description Flag indicating if there are errors in results of attachments settings. */
|
|
2824
|
+
attachmentsErrorsOccurred?: boolean;
|
|
2825
|
+
/** @description Flag indicating if there are errors in results of virtual attachments settings. */
|
|
2826
|
+
virtualAttachmentsErrorsOccurred?: boolean;
|
|
2827
|
+
}[];
|
|
2828
|
+
};
|
|
2829
|
+
|
|
2830
|
+
export type PutMenuParams = {
|
|
2831
|
+
menu_list: {
|
|
2832
|
+
/** @description Shop Id. */
|
|
2833
|
+
shop_id: number;
|
|
2834
|
+
/** @description Menu ID. */
|
|
2835
|
+
menu_id: number;
|
|
2836
|
+
/** @description Menu element ID. */
|
|
2837
|
+
item_id: string;
|
|
2838
|
+
/** @description Menu element text identifier. Example: "item1\item2\item3". */
|
|
2839
|
+
item_textid?: string;
|
|
2840
|
+
lang_data?: {
|
|
2841
|
+
/** @description Language ID. */
|
|
2842
|
+
lang_id?: string;
|
|
2843
|
+
/** @description Menu element name. */
|
|
2844
|
+
name?: string;
|
|
2845
|
+
/** @description Menu element order. */
|
|
2846
|
+
priority?: number;
|
|
2847
|
+
/** @description Description displayed at the top of products list. */
|
|
2848
|
+
description?: string;
|
|
2849
|
+
/** @description Description displayed at the bottom of products list. */
|
|
2850
|
+
description_bottom?: string;
|
|
2851
|
+
/** @description Own link. */
|
|
2852
|
+
link?: string;
|
|
2853
|
+
/** */
|
|
2854
|
+
item_type?: "products" | "navigation" | "products_with_rich_text" | "navigation_with_rich_text" | "rich_text" | "static" | "link";
|
|
2855
|
+
/** @description Meta title . */
|
|
2856
|
+
meta_title?: string;
|
|
2857
|
+
/** @description Meta description. */
|
|
2858
|
+
meta_description?: string;
|
|
2859
|
+
/** @description Meta - keywords. */
|
|
2860
|
+
meta_keywords?: string;
|
|
2861
|
+
/** @description URL address */
|
|
2862
|
+
url?: string;
|
|
2863
|
+
/** @description Link target attribute: !_self - open on the same page, !_blank - open in a new page. */
|
|
2864
|
+
href_target?: "_self" | "_blank";
|
|
2865
|
+
sort?: {
|
|
2866
|
+
/** @description Default product list view. */
|
|
2867
|
+
view?: "normal" | "list" | "gallery";
|
|
2868
|
+
/** @description Sort by. */
|
|
2869
|
+
sort_by?: "date" | "priority" | "priorityname" | "name" | "price";
|
|
2870
|
+
/** @description Sort order. */
|
|
2871
|
+
sort_order?: "ASC" | "DESC";
|
|
2872
|
+
}[];
|
|
2873
|
+
display_limit?: {
|
|
2874
|
+
/** @description Default product list view. */
|
|
2875
|
+
view?: "normal" | "list" | "gallery";
|
|
2876
|
+
/** @description Limit. */
|
|
2877
|
+
limit?: number;
|
|
2878
|
+
}[];
|
|
2879
|
+
/** */
|
|
2880
|
+
default_view?: "normal" | "list" | "gallery";
|
|
2881
|
+
/** @description Headline name. Leaving this value empty will automatically generate name basing on a name in menu. */
|
|
2882
|
+
headline_name?: string;
|
|
2883
|
+
/** @description Display by default nested elements. n - no, y - yes. */
|
|
2884
|
+
expand?: "n" | "y";
|
|
2885
|
+
/** @description Element of the menu hidden from the clients: n - no, y - yes. */
|
|
2886
|
+
hidden?: "n" | "y";
|
|
2887
|
+
/** @description After clicking on the element in the menu:: expand - Display subelements of the menu if any available, if not - create, reload - reload the page and open. */
|
|
2888
|
+
action?: "reload" | "expand";
|
|
2889
|
+
/** @description Element "show all" is:: products_list - link to the list of products, navigation_site - link to the "Navigation" page. */
|
|
2890
|
+
display_all_type?: "products_list" | "navigation_site";
|
|
2891
|
+
/** @description Display element "show all": n - no, y - yes. */
|
|
2892
|
+
display_all?: "n" | "y";
|
|
2893
|
+
/** @description Disable changing "sort by" for customers: n - no, y - yes. */
|
|
2894
|
+
allow_sort_change?: "n" | "y";
|
|
2895
|
+
/** @description Disable possibility of changing the number of displayed products on the page by customers : n - no, y - yes. */
|
|
2896
|
+
allow_limit_change?: "n" | "y";
|
|
2897
|
+
/** @description Graphics in menu: n - no, y - yes. */
|
|
2898
|
+
node_gfx?: "n" | "y";
|
|
2899
|
+
/** @description Type of graphics - When the cursor is on the link: img - Image (one size for computers, tablets and smartphones, not recommended), img_rwd - Image (three sizes for RWD). */
|
|
2900
|
+
gfx_active_type?: "img" | "img_rwd";
|
|
2901
|
+
/** @description Type of graphics - When the cursor is outside link: img - Image (one size for computers, tablets and smartphones, not recommended), img_rwd - Image (three sizes for RWD). */
|
|
2902
|
+
gfx_inactive_type?: "img" | "img_rwd";
|
|
2903
|
+
/** @description Type of graphics - When the link is opened: img - Image (one size for computers, tablets and smartphones, not recommended), img_rwd - Image (three sizes for RWD). */
|
|
2904
|
+
gfx_omo_type?: "img" | "img_rwd";
|
|
2905
|
+
/** @description Graphic on the "navigation" page. */
|
|
2906
|
+
gfx_nav?: {
|
|
2907
|
+
/** @description Graphic encoded with Base64 */
|
|
2908
|
+
base64?: string;
|
|
2909
|
+
/** @description Graphic format */
|
|
2910
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2911
|
+
};
|
|
2912
|
+
/** @description Graphic - When the cursor is on the link. */
|
|
2913
|
+
gfx_active?: {
|
|
2914
|
+
/** @description Graphic encoded with Base64 */
|
|
2915
|
+
base64?: string;
|
|
2916
|
+
/** @description Graphic format */
|
|
2917
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2918
|
+
};
|
|
2919
|
+
/** @description Graphic - When the cursor is on the link - Desktop. */
|
|
2920
|
+
gfx_active_desktop?: {
|
|
2921
|
+
/** @description Graphic encoded with Base64 */
|
|
2922
|
+
base64?: string;
|
|
2923
|
+
/** @description Graphic format */
|
|
2924
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2925
|
+
};
|
|
2926
|
+
/** @description Graphic - When the cursor is on the link - Tablet. */
|
|
2927
|
+
gfx_active_tablet?: {
|
|
2928
|
+
/** @description Graphic encoded with Base64 */
|
|
2929
|
+
base64?: string;
|
|
2930
|
+
/** @description Graphic format */
|
|
2931
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2932
|
+
};
|
|
2933
|
+
/** @description Graphic - When the cursor is on the link - Mobile. */
|
|
2934
|
+
gfx_active_mobile?: {
|
|
2935
|
+
/** @description Graphic encoded with Base64 */
|
|
2936
|
+
base64?: string;
|
|
2937
|
+
/** @description Graphic format */
|
|
2938
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2939
|
+
};
|
|
2940
|
+
/** @description Graphic - When the cursor is outside link. */
|
|
2941
|
+
gfx?: {
|
|
2942
|
+
/** @description Graphic encoded with Base64 */
|
|
2943
|
+
base64?: string;
|
|
2944
|
+
/** @description Graphic format */
|
|
2945
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2946
|
+
};
|
|
2947
|
+
/** @description Graphic - When the cursor is outside link - Desktop. */
|
|
2948
|
+
gfx_inactive_desktop?: {
|
|
2949
|
+
/** @description Graphic encoded with Base64 */
|
|
2950
|
+
base64?: string;
|
|
2951
|
+
/** @description Graphic format */
|
|
2952
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2953
|
+
};
|
|
2954
|
+
/** @description Graphic - When the cursor is outside link - Tablet. */
|
|
2955
|
+
gfx_inactive_tablet?: {
|
|
2956
|
+
/** @description Graphic encoded with Base64 */
|
|
2957
|
+
base64?: string;
|
|
2958
|
+
/** @description Graphic format */
|
|
2959
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2960
|
+
};
|
|
2961
|
+
/** @description Graphic - When the cursor is outside link - Mobile. */
|
|
2962
|
+
gfx_inactive_mobile?: {
|
|
2963
|
+
/** @description Graphic encoded with Base64 */
|
|
2964
|
+
base64?: string;
|
|
2965
|
+
/** @description Graphic format */
|
|
2966
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2967
|
+
};
|
|
2968
|
+
/** @description Graphic - When the link is opened. */
|
|
2969
|
+
gfx_onmouseover?: {
|
|
2970
|
+
/** @description Graphic encoded with Base64 */
|
|
2971
|
+
base64?: string;
|
|
2972
|
+
/** @description Graphic format */
|
|
2973
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2974
|
+
};
|
|
2975
|
+
/** @description Graphic - When the link is opened - Desktop. */
|
|
2976
|
+
gfx_omo_desktop?: {
|
|
2977
|
+
/** @description Graphic encoded with Base64 */
|
|
2978
|
+
base64?: string;
|
|
2979
|
+
/** @description Graphic format */
|
|
2980
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2981
|
+
};
|
|
2982
|
+
/** @description Graphic - When the link is opened - Tablet. */
|
|
2983
|
+
gfx_omo_tablet?: {
|
|
2984
|
+
/** @description Graphic encoded with Base64 */
|
|
2985
|
+
base64?: string;
|
|
2986
|
+
/** @description Graphic format */
|
|
2987
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2988
|
+
};
|
|
2989
|
+
/** @description Graphic - When the link is opened - Mobile. */
|
|
2990
|
+
gfx_omo_mobile?: {
|
|
2991
|
+
/** @description Graphic encoded with Base64 */
|
|
2992
|
+
base64?: string;
|
|
2993
|
+
/** @description Graphic format */
|
|
2994
|
+
format?: "jpg" | "jpeg" | "png" | "gif" | "svg" | "webp";
|
|
2995
|
+
};
|
|
2996
|
+
/** @description Add a canonical link that points to the parent menu item: n - no, y - yes. */
|
|
2997
|
+
canonical_to_parent?: "n" | "y";
|
|
2998
|
+
/** @description Meta robots index settings: default - automatically generate, index - index, noindex - noindex. */
|
|
2999
|
+
meta_robots_index?: "default" | "index" | "noindex";
|
|
3000
|
+
/** @description Meta robots follow settings: default - automatically generate, follow - follow, nofollow - nofollow. */
|
|
3001
|
+
meta_robots_follow?: "default" | "follow" | "nofollow";
|
|
3002
|
+
}[];
|
|
3003
|
+
}[];
|
|
3004
|
+
/** @description Settings. */
|
|
3005
|
+
settings?: {
|
|
3006
|
+
/** @description Default: "\". */
|
|
3007
|
+
textid_separator?: string;
|
|
3008
|
+
};
|
|
3009
|
+
};
|
|
3010
|
+
|
|
3011
|
+
export type PostPaymentsRepaymentParams = {
|
|
3012
|
+
/** @description Returns ID. */
|
|
3013
|
+
source_id: number;
|
|
3014
|
+
/** @description Defines payment category. For the payments regarding returns, enter 'return'. */
|
|
3015
|
+
source_type: string;
|
|
3016
|
+
/** @description Refund value. */
|
|
3017
|
+
value: number;
|
|
3018
|
+
/** @description Payment method ID. Check getPaymentForms. */
|
|
3019
|
+
payment_form_id: number;
|
|
3020
|
+
/** @description Number of a bank account to which a payment is sent. */
|
|
3021
|
+
account?: string;
|
|
3022
|
+
/** @description Customer account. */
|
|
3023
|
+
client_account?: string;
|
|
3024
|
+
/** @description Other. */
|
|
3025
|
+
other?: {
|
|
3026
|
+
/** @description Payment system. */
|
|
3027
|
+
system?: number;
|
|
3028
|
+
/** @description Number. */
|
|
3029
|
+
number?: string;
|
|
3030
|
+
/** @description Month. */
|
|
3031
|
+
month?: number;
|
|
3032
|
+
/** @description Year. */
|
|
3033
|
+
year?: number;
|
|
3034
|
+
/** @description Security code. */
|
|
3035
|
+
securityCode?: string;
|
|
3036
|
+
/** @description Name. */
|
|
3037
|
+
name?: string;
|
|
3038
|
+
};
|
|
3039
|
+
};
|
|
3040
|
+
|
|
3041
|
+
export type PostResponsibilityEntitiesParams = {
|
|
3042
|
+
entities: {
|
|
3043
|
+
/** @description Identificator of the entity. */
|
|
3044
|
+
id?: number;
|
|
3045
|
+
/** @description Short name/code. */
|
|
3046
|
+
code: string;
|
|
3047
|
+
/** @description Full name. */
|
|
3048
|
+
name: string;
|
|
3049
|
+
/** @description E-mail address. */
|
|
3050
|
+
mail: string;
|
|
3051
|
+
/** @description Street. */
|
|
3052
|
+
street: string;
|
|
3053
|
+
/** @description Building number. */
|
|
3054
|
+
number?: number | null;
|
|
3055
|
+
/** @description Apartment number. */
|
|
3056
|
+
subnumber?: number | null;
|
|
3057
|
+
/** @description Zipcode. */
|
|
3058
|
+
zipcode: string;
|
|
3059
|
+
/** @description City. */
|
|
3060
|
+
city: string;
|
|
3061
|
+
/** @description 2-letter ISO country code. */
|
|
3062
|
+
country: string;
|
|
3063
|
+
/** @description Phone number. */
|
|
3064
|
+
phone?: string | null;
|
|
3065
|
+
/** @description Additional description. */
|
|
3066
|
+
description?: string | null;
|
|
3067
|
+
/** @description URL to contact page. */
|
|
3068
|
+
url?: string | null;
|
|
3069
|
+
}[];
|
|
3070
|
+
/** @description Type of entity */
|
|
3071
|
+
type: "producer" | "person";
|
|
3072
|
+
};
|
|
3073
|
+
|
|
3074
|
+
export type PutProductsCategoriesParams = {
|
|
3075
|
+
/** @description List of categories in which sought products are present. */
|
|
3076
|
+
categories: {
|
|
3077
|
+
/** @description Category id. */
|
|
3078
|
+
id: number;
|
|
3079
|
+
/** @description Parent category ID. */
|
|
3080
|
+
parent_id?: number;
|
|
3081
|
+
/** @description Category priority. Value from 1 to 19. */
|
|
3082
|
+
priority?: number;
|
|
3083
|
+
/** @description Operation code. Allowed values. "add" - adds new category, "edit" - edits existing category, "del" - deletes existing category. */
|
|
3084
|
+
operation?: string;
|
|
3085
|
+
lang_data?: {
|
|
3086
|
+
/** @description Language code. Codes are compliant with ISO-639-3 standard. */
|
|
3087
|
+
lang_id?: string;
|
|
3088
|
+
/** @description Category singular name. */
|
|
3089
|
+
singular_name?: string;
|
|
3090
|
+
/** @description Category plural name. */
|
|
3091
|
+
plural_name?: string;
|
|
3092
|
+
}[];
|
|
3093
|
+
}[];
|
|
3094
|
+
};
|
|
3095
|
+
|
|
3096
|
+
export type SearchProductsParams = {
|
|
3097
|
+
dispatchSettings?: {
|
|
3098
|
+
enabled?: boolean;
|
|
3099
|
+
shippingSettings?: {
|
|
3100
|
+
/** */
|
|
3101
|
+
codDisabled?: "true" | "false";
|
|
3102
|
+
/** */
|
|
3103
|
+
dvpOnly?: "true" | "false";
|
|
3104
|
+
/** */
|
|
3105
|
+
insuranceOnly?: "true" | "false";
|
|
3106
|
+
atypicalSize?: boolean;
|
|
3107
|
+
/** @description Exclusion from the Smile service */
|
|
3108
|
+
excludeSmileService?: boolean;
|
|
3109
|
+
/** @description List of courier services which cannot be used to ship this product. IDs couriers */
|
|
3110
|
+
disallowedCouriers?: number[];
|
|
3111
|
+
};
|
|
3112
|
+
freeShippingSettings?: {
|
|
3113
|
+
/** @description Edition mode */
|
|
3114
|
+
mode?: "no" | "onlyProduct" | "wholeBasket";
|
|
3115
|
+
/** @description Set free shipping for the payment method only */
|
|
3116
|
+
availablePaymentForms?: {
|
|
3117
|
+
prepaid?: boolean;
|
|
3118
|
+
/** @description Cash on delivery. */
|
|
3119
|
+
cashOnDelivery?: boolean;
|
|
3120
|
+
tradeCredit?: boolean;
|
|
3121
|
+
};
|
|
3122
|
+
/** @description List of courier services for which shipping is free. IDs couriers */
|
|
3123
|
+
availableCouriers?: number[];
|
|
3124
|
+
/** @description List of courier services by which the products can be sent free of charge. IDs couriers */
|
|
3125
|
+
availableCouriersForSingleProduct?: number[];
|
|
3126
|
+
/** @description List of regions with free shipment. IDs Delivery regions */
|
|
3127
|
+
availableRegions?: number[];
|
|
3128
|
+
};
|
|
3129
|
+
returnProductSettings?: {
|
|
3130
|
+
/** @description Product can be returned */
|
|
3131
|
+
returnOptions?: {
|
|
3132
|
+
enabled?: boolean;
|
|
3133
|
+
firm?: boolean;
|
|
3134
|
+
hurt?: boolean;
|
|
3135
|
+
detalist?: boolean;
|
|
3136
|
+
};
|
|
3137
|
+
/** */
|
|
3138
|
+
byOwnService?: "true" | "false";
|
|
3139
|
+
/** */
|
|
3140
|
+
byInPostSzybkieZwrotyByIAI?: "true" | "false";
|
|
3141
|
+
};
|
|
3142
|
+
};
|
|
3143
|
+
/** @description 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. */
|
|
3144
|
+
returnProducts?: string;
|
|
3145
|
+
/** @description 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 */
|
|
3146
|
+
returnElements?: string[];
|
|
3147
|
+
/** @description Product availability. Available values: "y" - available, "n" - unavailable. */
|
|
3148
|
+
productIsAvailable?: string;
|
|
3149
|
+
/** @description Product visibility in store Available values: "y" - Visible, "n" - Invisible. */
|
|
3150
|
+
productIsVisible?: string;
|
|
3151
|
+
/** @description Product group ID */
|
|
3152
|
+
productVersionId?: number;
|
|
3153
|
+
/** @description Promoted product. Available values: "y" - promoted, "n" - not promoted. */
|
|
3154
|
+
productInPromotion?: string;
|
|
3155
|
+
/** @description Product on sale. Available values: "y" - on sale, "n" - not on sale. */
|
|
3156
|
+
productInDiscount?: string;
|
|
3157
|
+
/** @description Distinguished product. Available values: "y" - distinguished, "n" - not distinguished. */
|
|
3158
|
+
productInDistinguished?: string;
|
|
3159
|
+
/** @description Special product. Available values: "y" - #!specjalny!#, "n" - not special. */
|
|
3160
|
+
productInSpecial?: string;
|
|
3161
|
+
/** @description Product available for points. Available values: "y" - Available for points, "n" - Unavailable for points. */
|
|
3162
|
+
productInForPointsSelling?: string;
|
|
3163
|
+
/** @description Observed product. Available values: "Y" - observed, "n" - not observed. */
|
|
3164
|
+
productIsObservedByClients?: string;
|
|
3165
|
+
/** @description 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. */
|
|
3166
|
+
skipDefaultProduct?: string;
|
|
3167
|
+
/** @description 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) */
|
|
3168
|
+
showPromotionsPrices?: string;
|
|
3169
|
+
/** @description List of categories in which sought products are present. */
|
|
3170
|
+
categories?: {
|
|
3171
|
+
/** @description Category id */
|
|
3172
|
+
categoryId?: number;
|
|
3173
|
+
/** @description Category name */
|
|
3174
|
+
categoryName?: string;
|
|
3175
|
+
}[];
|
|
3176
|
+
/** @description List of manufacturers assigned to sought products. */
|
|
3177
|
+
producers?: {
|
|
3178
|
+
/** @description Brand ID */
|
|
3179
|
+
producerId?: number;
|
|
3180
|
+
/** @description Brand name */
|
|
3181
|
+
producerName?: string;
|
|
3182
|
+
}[];
|
|
3183
|
+
/** @description List of sought products. This parameter can be used, when there have been no other parameter entered productIndexes. */
|
|
3184
|
+
productParams?: {
|
|
3185
|
+
/** @description Product IAI code */
|
|
3186
|
+
productId?: number;
|
|
3187
|
+
/** @description External product system code */
|
|
3188
|
+
productCode?: string;
|
|
3189
|
+
/** @description Product name. */
|
|
3190
|
+
productName?: string;
|
|
3191
|
+
/** @description External product system code for size. */
|
|
3192
|
+
productSizeCodeExternal?: string;
|
|
3193
|
+
/** @description Producer code */
|
|
3194
|
+
productProducerCode?: string;
|
|
3195
|
+
/** @description The product is free of charge. Possible values: "y" - is free of charge, "n" - is not free of charge. */
|
|
3196
|
+
productIsGratis?: string;
|
|
3197
|
+
}[];
|
|
3198
|
+
/** @description List of sought products by indexes. */
|
|
3199
|
+
productIndexes?: {
|
|
3200
|
+
/** @description One of the unique, indexed product codes (IAI code / External system code / Producer code) */
|
|
3201
|
+
productIndex?: string;
|
|
3202
|
+
}[];
|
|
3203
|
+
/** @description Data of stores product is assigned to. */
|
|
3204
|
+
productShops?: {
|
|
3205
|
+
/** @description 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. */
|
|
3206
|
+
shopsMask?: number;
|
|
3207
|
+
/** @description Shop Id */
|
|
3208
|
+
shopId?: number;
|
|
3209
|
+
}[];
|
|
3210
|
+
/** @description List of special offers, sought products are assigned to. */
|
|
3211
|
+
productPromotionsIds?: number[];
|
|
3212
|
+
/** @description Settings concerning narrowing list of products found by date. */
|
|
3213
|
+
productDate?: {
|
|
3214
|
+
/** @description Date type. Allowed values "added" - #!dataDodaniaProduktu!#, "finished" - date of running out of product, "resumed" - date of resuming product, "modified" - date of last modification of product, "quantity_changed" - date of last product stock quantity modification, "price_changed" - date of last price change, "modified_and_quantity_changed" - date of last modification and stock quantity change. */
|
|
3215
|
+
productDateMode?: string;
|
|
3216
|
+
/** @description Starting date in the YYYY-MM-DD format */
|
|
3217
|
+
productDateBegin?: string;
|
|
3218
|
+
/** @description End date in the YYYY-MM-DD format */
|
|
3219
|
+
productDateEnd?: string;
|
|
3220
|
+
};
|
|
3221
|
+
/** @description Parameters */
|
|
3222
|
+
productParametersParams?: {
|
|
3223
|
+
/** @description Parameters group name */
|
|
3224
|
+
parameterNames?: string[];
|
|
3225
|
+
/** @description Properties IDs */
|
|
3226
|
+
parameterValuesIds?: number[];
|
|
3227
|
+
/** @description Parameters name */
|
|
3228
|
+
parameterValuesNames?: string[];
|
|
3229
|
+
/** @description Parameters group ID */
|
|
3230
|
+
productParameterIds?: {
|
|
3231
|
+
/** @description Set properties groups ID. */
|
|
3232
|
+
productParameterIdsEnabled?: number[];
|
|
3233
|
+
/** @description Unset properties groups ID. */
|
|
3234
|
+
productParameterIdsDisabled?: number[];
|
|
3235
|
+
};
|
|
3236
|
+
}[];
|
|
3237
|
+
/** @description Series, sought products are assigned to. */
|
|
3238
|
+
productSeriesParams?: {
|
|
3239
|
+
/** @description ID of series, to which product belongs. */
|
|
3240
|
+
seriesId?: number;
|
|
3241
|
+
/** @description Name of series, to which the product belongs, visible in panel. */
|
|
3242
|
+
seriesPanelName?: string;
|
|
3243
|
+
/** @description Names of series in indicated language visible in shop. */
|
|
3244
|
+
seriesDescriptionsLangData?: {
|
|
3245
|
+
/** @description Name of series in indicated language */
|
|
3246
|
+
seriesName?: string;
|
|
3247
|
+
/** @description Language ID */
|
|
3248
|
+
langId?: string;
|
|
3249
|
+
}[];
|
|
3250
|
+
}[];
|
|
3251
|
+
/** @description List of units of measure assigned to sought products. */
|
|
3252
|
+
productUnits?: {
|
|
3253
|
+
/** @description Product unit of measure ID. */
|
|
3254
|
+
unitId?: number;
|
|
3255
|
+
/** @description Product unit of measure name. */
|
|
3256
|
+
unitName?: string;
|
|
3257
|
+
/** @description Unit of measure precision. */
|
|
3258
|
+
unitPrecision?: number;
|
|
3259
|
+
}[];
|
|
3260
|
+
/** @description Narrowing list of products by set warranties. */
|
|
3261
|
+
productWarranties?: {
|
|
3262
|
+
/** @description Product warranty ID. */
|
|
3263
|
+
warrantyId?: number;
|
|
3264
|
+
/** @description Name of warranty for indicated product. */
|
|
3265
|
+
warrantyName?: string;
|
|
3266
|
+
}[];
|
|
3267
|
+
/** @description Suppliers, sought products are assigned to. */
|
|
3268
|
+
deliverersIds?: number[];
|
|
3269
|
+
/** @description Product contains text (searches in short and long description). */
|
|
3270
|
+
containsText?: string;
|
|
3271
|
+
/** @description 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. */
|
|
3272
|
+
containsCodePart?: string;
|
|
3273
|
+
/** @description Product availability in stocks */
|
|
3274
|
+
productAvailableInStocks?: {
|
|
3275
|
+
/** @description Determines whether availability in stocks has been set. Available values: "y" - is available in stocks, "n" - unavailable in stocks. */
|
|
3276
|
+
productIsAvailableInStocks?: string;
|
|
3277
|
+
/** @description Narrowing list to stocks sought trough Empty list concerns all stocks. */
|
|
3278
|
+
productAvailableInStocksIds?: number[];
|
|
3279
|
+
};
|
|
3280
|
+
/** @description Product availability on auctions */
|
|
3281
|
+
productAvailableInAuctions?: {
|
|
3282
|
+
/** @description Determines whether availability on auctions has been set. Available values: "y" - is available on auctions, "n" - is not available on auctions. */
|
|
3283
|
+
productIsAvailableInAuctions?: string;
|
|
3284
|
+
/** @description Narrow list of auction accounts sought through. */
|
|
3285
|
+
productAvailableInAuctionsAccountsIds?: number[];
|
|
3286
|
+
};
|
|
3287
|
+
/** @description Page with results number. Numeration starts from 0 */
|
|
3288
|
+
resultsPage?: number;
|
|
3289
|
+
/** @description Number of results on page. Value from 1 to 100 */
|
|
3290
|
+
resultsLimit?: number;
|
|
3291
|
+
/** @description Possibility of sorting returned list */
|
|
3292
|
+
ordersBy?: {
|
|
3293
|
+
/** @description Name of field, list will be sorted by. Available values: "id" - product ID, "name" - Product name, "code" - Product code, "product_sizecode" - External system code, "code_producer" - Producer code, "retail_price" - Retail price of the product, "pos_price" - price for POS, "vat" - Value of VAT, "wholesale_price" - wholesale price, "minimal_price" - Minimal price, "pictures_count" - number of product photos, "auction_name" - product name for auction sites, "pricecomparer_name" - Product name for price comparison websites, "version_name" - Name of the good in the group, "series_name" - Name of the batch, "category_name" - Category name, "deliverer_name" - Supplier name, "adding_time" - Date of entry, "modification_time" - date modified, "price_changed_time" - Date of last price change, "quantity_changed_time" - Date of modification of stock levels, "currency" - Currency DEPRECATED. This parameter is deprecated, "currency_shop" - Currency, "taxcode" - PKWiU [PCPandS], "meta_title" - Products meta titles, "meta_description" - Products meta description, "meta_keywords" - Products meta keywords, "suggested_price" - Recommended price. "observed_clients" - Number of visitors, who signed up to re-availability notifications "observed_time" - Average time of waiting for availability notification "wishes_clients" - Customers, who added product to favorites "wishes_time" - Average number of days, product is in favorites */
|
|
3294
|
+
elementName?: string;
|
|
3295
|
+
/** @description Determines sorting direction. Available values: "ASC" - ascending, "DESC" - descending. */
|
|
3296
|
+
sortDirection?: string;
|
|
3297
|
+
}[];
|
|
3298
|
+
/** @description 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. */
|
|
3299
|
+
productSearchingLangId?: string;
|
|
3300
|
+
/** @description 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. */
|
|
3301
|
+
productSearchingCurrencyId?: string;
|
|
3302
|
+
/** @description Currency ID allowing for returning all product prices in an indicated currency */
|
|
3303
|
+
returnPricesCurrency?: string;
|
|
3304
|
+
/** @description Annotation contains text. */
|
|
3305
|
+
productHasNote?: string;
|
|
3306
|
+
/** @description 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. */
|
|
3307
|
+
productInExportToPriceComparisonSites?: string;
|
|
3308
|
+
/** @description Visibility of an item in an export to Amazon Marketplace. Available values: "y" - Visible, "selected" - Visible on selected regional services, "n" - invisible. */
|
|
3309
|
+
productInExportToAmazonMarketplace?: string;
|
|
3310
|
+
/** @description List of Amazon regional sites to which the product is exported (only in case of "selected" option) */
|
|
3311
|
+
selectedAmazonMarketplacesList?: string[];
|
|
3312
|
+
/** @description Product is bestseller. Available values: "n" - no, "y" - yes. */
|
|
3313
|
+
productInBestseller?: string;
|
|
3314
|
+
/** @description Product is new. Available values: "y" - is new, "n" - is not new. */
|
|
3315
|
+
productInNew?: string;
|
|
3316
|
+
/** @description Shops */
|
|
3317
|
+
searchByShops?: {
|
|
3318
|
+
/** @description Determine data search method on basis of options set for stores. Available values: "in_one_of_selected" - in one of indicated stores, "in_all_of_selected" - in all indicated stores, This parameter is optional. When it's lacking, search is performed by option: in one of indicated stores (in_one_of_selected). */
|
|
3319
|
+
searchModeInShops?: string;
|
|
3320
|
+
/** @description 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. */
|
|
3321
|
+
shopsMask?: number;
|
|
3322
|
+
/** @description List of stores IDs When mask is determined, this parameter is omitted. */
|
|
3323
|
+
shopsIds?: number[];
|
|
3324
|
+
};
|
|
3325
|
+
/** @description Price range for sought products. */
|
|
3326
|
+
productSearchPriceRange?: {
|
|
3327
|
+
/** @description Determines price type for indicated values. Available values: "retail_price" - Retail price of the product, "wholesale_price" - Wholesale price of the product, "minimal_price" - Product minimal price, "pos_price" - price for POS, "last_purchase_price" - Last purchase price. */
|
|
3328
|
+
productSearchPriceMode?: string;
|
|
3329
|
+
/** @description Minimal price for product. */
|
|
3330
|
+
productSearchPriceMin?: number;
|
|
3331
|
+
/** @description Maximum price for product. */
|
|
3332
|
+
productSearchPriceMax?: number;
|
|
3333
|
+
/** @description Shop Id */
|
|
3334
|
+
shopId?: number;
|
|
3335
|
+
};
|
|
3336
|
+
/** @description VAT value for sought products */
|
|
3337
|
+
productVatRates?: number[];
|
|
3338
|
+
/** @description Is product VAT-free Allowed values "y" - yes, "n" - no. */
|
|
3339
|
+
productIsVatFree?: string;
|
|
3340
|
+
/** @description Product has defined wholesale price. Available values: "y" - has wholesale price, "n" - does not have wholesale price. */
|
|
3341
|
+
productHasWholesalePrice?: string;
|
|
3342
|
+
/** @description Product visible even though out of stock Available values: "y" - visible even though out of stock, "n" - not visible when out of stock. */
|
|
3343
|
+
productInPersistent?: string;
|
|
3344
|
+
/** @description 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. */
|
|
3345
|
+
returnProductsVersions?: string;
|
|
3346
|
+
/** @description Do You wish to sum up the products in the basket as a one order? Available values: "y" - yes, "n" - no. */
|
|
3347
|
+
productInSumInBasket?: string;
|
|
3348
|
+
/** @description 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. */
|
|
3349
|
+
productType?: {
|
|
3350
|
+
/** @description Should products be returned on list. By default this parameter is set on true. */
|
|
3351
|
+
productTypeInItem?: boolean;
|
|
3352
|
+
/** @description Should sets be returned on list. By default this parameter is set on true. */
|
|
3353
|
+
productTypeInBundle?: boolean;
|
|
3354
|
+
/** @description Should collections be returned. By default this parameter is set on true. */
|
|
3355
|
+
productTypeInCollection?: boolean;
|
|
3356
|
+
/** @description Should packagings be returned on list. By default this parameter is set on true. */
|
|
3357
|
+
productTypeInPackaging?: boolean;
|
|
3358
|
+
/** @description Should services be returned. By default this parameter is set on true. */
|
|
3359
|
+
productTypeInService?: boolean;
|
|
3360
|
+
/** @description Should virtuals be returned. By default this parameter is set on true. */
|
|
3361
|
+
productTypeInVirtual?: boolean;
|
|
3362
|
+
/** @description Should configurable be returned. By default this parameter is set on true. */
|
|
3363
|
+
productTypeInConfigurable?: boolean;
|
|
3364
|
+
};
|
|
3365
|
+
/** @description An array of menu elements */
|
|
3366
|
+
productMenuItems?: {
|
|
3367
|
+
/** @description An array of IDs */
|
|
3368
|
+
menuItemsIds?: number[];
|
|
3369
|
+
/** @description An array of text IDs */
|
|
3370
|
+
menuItemsTextIds?: {
|
|
3371
|
+
/** @description Menu element text identifier. Example: "item1\item2\item3". */
|
|
3372
|
+
menuItemTextId?: string;
|
|
3373
|
+
/** @description Shop Id */
|
|
3374
|
+
shopId?: number;
|
|
3375
|
+
/** @description ID of the menu zone displayed in the mask */
|
|
3376
|
+
menuId?: number;
|
|
3377
|
+
/** @description The separator separates the individual elements of a text id. Default: "\". */
|
|
3378
|
+
menuItemTextIdSeparator?: string;
|
|
3379
|
+
}[];
|
|
3380
|
+
};
|
|
3381
|
+
/** @description Warehouse location ID */
|
|
3382
|
+
productLocationId?: number;
|
|
3383
|
+
/** @description 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 */
|
|
3384
|
+
productLocationTextId?: string;
|
|
3385
|
+
/** @description 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. */
|
|
3386
|
+
alwaysReturnProductShopSizesAttributes?: boolean;
|
|
3387
|
+
/** @description Returns reservation information regardless of inventory levels */
|
|
3388
|
+
returnEmptyStocksWithReservation?: boolean;
|
|
3389
|
+
/** @description Data for operations on individual photos */
|
|
3390
|
+
picturesData?: {
|
|
3391
|
+
/** @description Shop Id */
|
|
3392
|
+
shopId?: number;
|
|
3393
|
+
/** @description External service identifier */
|
|
3394
|
+
serviceId?: number;
|
|
3395
|
+
};
|
|
3396
|
+
/** @description Responsible producer code */
|
|
3397
|
+
responsibleProducerCode?: string;
|
|
3398
|
+
/** @description Responsible person code */
|
|
3399
|
+
responsiblePersonCode?: string;
|
|
3400
|
+
};
|
|
3401
|
+
|
|
3402
|
+
export type SearchOrdersParams = {
|
|
3403
|
+
/** @description Prepayment status. Status list: "unpaid" - not paid, "restored" - returned, "waiting" - not registered. */
|
|
3404
|
+
orderPrepaidStatus?: string;
|
|
3405
|
+
/** @description 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. */
|
|
3406
|
+
ordersStatuses?: string[];
|
|
3407
|
+
/** @description Order statusses ids. */
|
|
3408
|
+
ordersStatusesIds?: number[];
|
|
3409
|
+
/** */
|
|
3410
|
+
shippmentStatus?: "all" | "received" | "non-received";
|
|
3411
|
+
/** @description Shipping companies (packages deliverers). */
|
|
3412
|
+
couriersName?: string[];
|
|
3413
|
+
/** @description Courier service identifiers */
|
|
3414
|
+
couriersId?: number[];
|
|
3415
|
+
/** @description Order payment method. Allowed values. "cash_on_delivery" - cash on delivery, "prepaid" - prepayment, "tradecredit" - Trade credit. */
|
|
3416
|
+
orderPaymentType?: string;
|
|
3417
|
+
withMissingSalesDocuments?: string[];
|
|
3418
|
+
/** @description Order type. Allowed values. "retail" - retail order, "wholesale" - wholesale order (can be added only by customer with wholesale account registered). Default value:: "retail" */
|
|
3419
|
+
orderType?: "wholesale" | "retail" | "dropshipping" | "deliverer";
|
|
3420
|
+
/** */
|
|
3421
|
+
dropshippingOrderStatus?: "all" | "finished" | "canceled" | "notCanceled";
|
|
3422
|
+
/** @description Orders IDs. */
|
|
3423
|
+
ordersIds?: string[];
|
|
3424
|
+
/** @description Order serial numbers. */
|
|
3425
|
+
ordersSerialNumbers?: number[];
|
|
3426
|
+
/** @description Customer data. */
|
|
3427
|
+
clients?: {
|
|
3428
|
+
/** @description Customer's login. */
|
|
3429
|
+
clientLogin?: string;
|
|
3430
|
+
/** @description Unique client's number. */
|
|
3431
|
+
clientId?: number;
|
|
3432
|
+
/** @description Customer's first name. */
|
|
3433
|
+
clientFirstName?: string;
|
|
3434
|
+
/** @description Customer's last name. */
|
|
3435
|
+
clientLastName?: string;
|
|
3436
|
+
/** @description Customer's city. */
|
|
3437
|
+
clientCity?: string;
|
|
3438
|
+
/** @description E-mail address. */
|
|
3439
|
+
clientEmail?: string;
|
|
3440
|
+
/** @description Parameter can be used to search for orders assigned to customer with VAT number. Available values: "y" - customer has VAT number, "n" - customer does not have VAT number. */
|
|
3441
|
+
clientHasTaxNumber?: string;
|
|
3442
|
+
/** @description Parameter allows to choose, by which data orders should be searched. Includes city, firstname, lastname. Available values: "billing_data" - search by billing data - default, "delivery_data"- search by delivery data, "billing_delivery_data" - search by billing and delivery data. */
|
|
3443
|
+
clientSearchingMode?: string;
|
|
3444
|
+
/** @description Customer's company name. */
|
|
3445
|
+
clientFirm?: string;
|
|
3446
|
+
/** @description Customer Tax no. */
|
|
3447
|
+
clientNip?: string;
|
|
3448
|
+
/** @description Country ID in accordance with ISO-3166. */
|
|
3449
|
+
clientCountryId?: string;
|
|
3450
|
+
/** @description Region name takes priority over clientCountryId. */
|
|
3451
|
+
clientCountryName?: string;
|
|
3452
|
+
}[];
|
|
3453
|
+
/** @description Ranges of dates or serial numbers. */
|
|
3454
|
+
ordersRange?: {
|
|
3455
|
+
/** @description Data for date range */
|
|
3456
|
+
ordersDateRange?: {
|
|
3457
|
+
/** @description Type of date according to the orders are searched. Type of date listing: "add" - date of order was placed, "modified" - date of order modification, "dispatch" - date or order dispatch, "payment" - date of order payment, "last_payments_operation" - date of last payment operation, "declared_payments" - date of last payment. */
|
|
3458
|
+
ordersDateType?: "add" | "modified" | "dispatch" | "payment" | "last_payments_operation" | "declared_payments";
|
|
3459
|
+
/** @description Date chart according to which orders are searched. Type of date listing: "add" - date of order was placed, "modified" - date of order modification, "dispatch" - date or order dispatch, "payment" - date of order payment. "last_payments_operation" - date of last payment operation, "declared_payments" - date of last payment. */
|
|
3460
|
+
ordersDatesTypes?: {
|
|
3461
|
+
/** */
|
|
3462
|
+
ordersDatesType?: "add" | "modified" | "dispatch" | "payment" | "last_payments_operation" | "declared_payments";
|
|
3463
|
+
}[];
|
|
3464
|
+
/** @description Beginning date in YYYY-MM-DD HH:MM:SS format. */
|
|
3465
|
+
ordersDateBegin?: string;
|
|
3466
|
+
/** @description Ending date in YYYY-MM-DD HH:MM:SS format. */
|
|
3467
|
+
ordersDateEnd?: string;
|
|
3468
|
+
};
|
|
3469
|
+
/** @description Data for serial number range. */
|
|
3470
|
+
ordersSerialNumberRange?: {
|
|
3471
|
+
/** @description Starting number of serial numbers range for sought products. */
|
|
3472
|
+
ordersSerialNumberBegin?: number;
|
|
3473
|
+
/** @description Ending number for serial number range. */
|
|
3474
|
+
ordersSerialNumberEnd?: number;
|
|
3475
|
+
};
|
|
3476
|
+
};
|
|
3477
|
+
/** @description Order source data. */
|
|
3478
|
+
orderSource?: {
|
|
3479
|
+
/** @description 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. */
|
|
3480
|
+
shopsMask?: number;
|
|
3481
|
+
/** @description List of stores IDs When mask is determined, this parameter is omitted. */
|
|
3482
|
+
shopsIds?: number[];
|
|
3483
|
+
/** @description Object used for order searching based on auctions' parameters. */
|
|
3484
|
+
auctionsParams?: {
|
|
3485
|
+
/** @description Auction sites names. Auction sites listing: "allegro" - Allegro.pl, "testwebapi" - Allegro.pl test site, "ebay" - eBay. */
|
|
3486
|
+
auctionsServicesNames?: string[];
|
|
3487
|
+
/** @description Auctions' numbers. */
|
|
3488
|
+
auctionsItemsIds?: number[];
|
|
3489
|
+
/** @description Auction sites accounts' data. */
|
|
3490
|
+
auctionsAccounts?: {
|
|
3491
|
+
/** @description Auction service account Id . */
|
|
3492
|
+
auctionsAccountId?: number;
|
|
3493
|
+
/** @description External marketplace service account name (which the listing was created from). */
|
|
3494
|
+
auctionsAccountLogin?: string;
|
|
3495
|
+
}[];
|
|
3496
|
+
/** @description Client's account on auction site data. */
|
|
3497
|
+
auctionsClients?: {
|
|
3498
|
+
/** @description Account ID on auction site. */
|
|
3499
|
+
auctionClientId?: string;
|
|
3500
|
+
/** @description Account login on auction site. */
|
|
3501
|
+
auctionClientLogin?: string;
|
|
3502
|
+
}[];
|
|
3503
|
+
};
|
|
3504
|
+
};
|
|
3505
|
+
/** @description Products list. */
|
|
3506
|
+
products?: {
|
|
3507
|
+
/** @description Product IAI code */
|
|
3508
|
+
productId?: number;
|
|
3509
|
+
/** @description Product name. */
|
|
3510
|
+
productName?: string;
|
|
3511
|
+
/** @description Size identifier */
|
|
3512
|
+
sizeId?: string;
|
|
3513
|
+
/** @description Size name */
|
|
3514
|
+
sizePanelName?: string;
|
|
3515
|
+
}[];
|
|
3516
|
+
/** @description Page with results number. Numeration starts from 0 */
|
|
3517
|
+
resultsPage?: number;
|
|
3518
|
+
/** @description Number of results on page. Value from 1 to 100 */
|
|
3519
|
+
resultsLimit?: number;
|
|
3520
|
+
/** @description Customer asked for invoice. List of parameters: "y" - yes (paper invoicing ), "e" - yes (electronic invoicing ), "n" - no. */
|
|
3521
|
+
clientRequestInvoice?: string;
|
|
3522
|
+
/** @description Information on consignments. */
|
|
3523
|
+
packages?: {
|
|
3524
|
+
/** @description Consignments numbers. */
|
|
3525
|
+
packagesNumbers?: string[];
|
|
3526
|
+
/** @description Does order have consignment number assigned. Available values: "y" - yes, "n" - no. */
|
|
3527
|
+
orderHasPackageNumbers?: string;
|
|
3528
|
+
/** @description Multipack order. Available values: "y" - yes, "n" - no. */
|
|
3529
|
+
hasMultiPackages?: "y" | "n";
|
|
3530
|
+
};
|
|
3531
|
+
/** @description Stock quantities data. */
|
|
3532
|
+
stocks?: {
|
|
3533
|
+
/** @description Stock ID */
|
|
3534
|
+
stockId?: number;
|
|
3535
|
+
}[];
|
|
3536
|
+
/** @description Used discount codes data. */
|
|
3537
|
+
campaign?: {
|
|
3538
|
+
/** @description Campaign ID. */
|
|
3539
|
+
campaignId?: number;
|
|
3540
|
+
/** @description Discount codes. */
|
|
3541
|
+
discountCodes?: string[];
|
|
3542
|
+
};
|
|
3543
|
+
/** @description Loyalty points. */
|
|
3544
|
+
loyaltyPointsMode?: "all" | "given" | "taken" | "given_or_taken" | "given_and_taken" | "not_given_nor_taken";
|
|
3545
|
+
/** @description Order handler. */
|
|
3546
|
+
orderOperatorLogin?: string;
|
|
3547
|
+
/** @description Order picker. */
|
|
3548
|
+
orderPackingPersonLogin?: string;
|
|
3549
|
+
/** @description Possibility of sorting returned list */
|
|
3550
|
+
ordersBy?: {
|
|
3551
|
+
/** @description Name of field, list will be sorted by. Available values: "id" - product ID, "name" - Product name, "code" - Product code, "product_sizecode" - External system code, "code_producer" - Producer code, "retail_price" - Retail price of the product, "pos_price" - price for POS, "vat" - Value of VAT, "wholesale_price" - wholesale price, "minimal_price" - Minimal price, "pictures_count" - number of product photos, "auction_name" - product name for auction sites, "pricecomparer_name" - Product name for price comparison websites, "version_name" - Name of the good in the group, "series_name" - Name of the batch, "category_name" - Category name, "deliverer_name" - Supplier name, "adding_time" - Date of entry, "modification_time" - date modified, "price_changed_time" - Date of last price change, "quantity_changed_time" - Date of modification of stock levels, "currency" - Currency DEPRECATED. This parameter is deprecated, "currency_shop" - Currency, "taxcode" - PKWiU [PCPandS], "meta_title" - Products meta titles, "meta_description" - Products meta description, "meta_keywords" - Products meta keywords, "suggested_price" - Recommended price. "observed_clients" - Number of visitors, who signed up to re-availability notifications "observed_time" - Average time of waiting for availability notification "wishes_clients" - Customers, who added product to favorites "wishes_time" - Average number of days, product is in favorites */
|
|
3552
|
+
elementName?: string;
|
|
3553
|
+
/** @description Determines sorting direction. Available values: "ASC" - ascending, "DESC" - descending. */
|
|
3554
|
+
sortDirection?: string;
|
|
3555
|
+
}[];
|
|
3556
|
+
/** @description Method of searching orders by handler. */
|
|
3557
|
+
searchingOperatorTypeMatch?: "no_assignment" | "no_empty" | "empty";
|
|
3558
|
+
/** @description Orders with the exceeded date of shipment. */
|
|
3559
|
+
ordersDelayed?: "y" | "n";
|
|
3560
|
+
/** @description Combine the components of the set into one item */
|
|
3561
|
+
showBundles?: boolean;
|
|
3562
|
+
/** @description The order ID of the external service */
|
|
3563
|
+
orderExternalId?: string;
|
|
3564
|
+
/** @description Order currency */
|
|
3565
|
+
orderCurrency?: string;
|
|
3566
|
+
};
|
|
3567
|
+
|
|
3568
|
+
export type SearchProductsParametersParams = {
|
|
3569
|
+
/** @description List of identifiers */
|
|
3570
|
+
ids?: number[];
|
|
3571
|
+
/** @description Element text ID - can be entered instead of "id". */
|
|
3572
|
+
textIds?: {
|
|
3573
|
+
/** @description Language ID */
|
|
3574
|
+
languageId?: string;
|
|
3575
|
+
/** @description Text value */
|
|
3576
|
+
value?: string;
|
|
3577
|
+
}[];
|
|
3578
|
+
/** @description List of languages */
|
|
3579
|
+
languagesIds?: string[];
|
|
3580
|
+
/** @description Whether to return a list of parameter value IDs */
|
|
3581
|
+
parameterValueIds?: boolean;
|
|
3582
|
+
/** @description Page with results number. Numeration starts from 0 */
|
|
3583
|
+
resultsPage?: number;
|
|
3584
|
+
/** @description Number of results on page. Value from 1 to 100 */
|
|
3585
|
+
resultsLimit?: number;
|
|
3586
|
+
};
|
|
3587
|
+
|
|
3588
|
+
export type SearchProductsDeliveryTimeParams = {
|
|
3589
|
+
/** @description Stock ID */
|
|
3590
|
+
stockId?: number;
|
|
3591
|
+
/** @description Should products be prepared for personal collection? */
|
|
3592
|
+
isCollectionInPerson?: boolean;
|
|
3593
|
+
products: {
|
|
3594
|
+
/** @description Product Id */
|
|
3595
|
+
productId?: number;
|
|
3596
|
+
/** @description Size identifier */
|
|
3597
|
+
sizeId?: string;
|
|
3598
|
+
/** @description Size name */
|
|
3599
|
+
sizePanelName?: string;
|
|
3600
|
+
/** @description Product IAI code */
|
|
3601
|
+
productIndex?: string;
|
|
3602
|
+
/** @description Product quantity. */
|
|
3603
|
+
productSizeQuantity?: number;
|
|
3604
|
+
}[];
|
|
3605
|
+
};
|
|
3606
|
+
|
|
3607
|
+
export type SearchPackagesParams = {
|
|
3608
|
+
/** @description Consignments numbers. */
|
|
3609
|
+
deliveryPackageNumbers?: string[];
|
|
3610
|
+
/** @description Element, package is assigned to */
|
|
3611
|
+
events: {
|
|
3612
|
+
/** @description Type. */
|
|
3613
|
+
eventType?: "order" | "rma" | "return";
|
|
3614
|
+
/** @description IDs. */
|
|
3615
|
+
eventsIds?: number[];
|
|
3616
|
+
}[];
|
|
3617
|
+
/** @description Return parcel labels. */
|
|
3618
|
+
returnLabels?: boolean;
|
|
3619
|
+
};
|
|
3620
|
+
|
|
3621
|
+
export type SearchClientsCrmParams = {
|
|
3622
|
+
/** @description Customer's login. */
|
|
3623
|
+
clientLogin?: string;
|
|
3624
|
+
/** @description Determines, whether client is a wholesaler. */
|
|
3625
|
+
clientIsWholesaler?: "yes" | "no";
|
|
3626
|
+
/** @description Country ID in accordance with ISO-3166. */
|
|
3627
|
+
clientCountryId?: string;
|
|
3628
|
+
/** @description Language ID */
|
|
3629
|
+
langId?: string;
|
|
3630
|
+
/** @description Customer service representative. */
|
|
3631
|
+
clientCustomerServiceRepresentativeLogin?: string;
|
|
3632
|
+
/** @description Customer group number */
|
|
3633
|
+
clientDiscountGroupNumber?: number;
|
|
3634
|
+
/** @description Date range of customer registrations */
|
|
3635
|
+
clientRegistrationDate?: {
|
|
3636
|
+
/** @description Start date (YYYY-MM-DD). */
|
|
3637
|
+
clientRegistrationDateBegin?: string;
|
|
3638
|
+
/** @description End date (YYYY-MM-DD). */
|
|
3639
|
+
clientRegistrationDateEnd?: string;
|
|
3640
|
+
};
|
|
3641
|
+
/** @description Date of last customer login (YYYY-MM-DD) */
|
|
3642
|
+
clientLastLoginDate?: {
|
|
3643
|
+
/** @description Start date (YYYY-MM-DD). */
|
|
3644
|
+
clientLastLoginDateBegin?: string;
|
|
3645
|
+
/** @description End date (YYYY-MM-DD). */
|
|
3646
|
+
clientLastLoginDateEnd?: string;
|
|
3647
|
+
};
|
|
3648
|
+
/** @description 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. */
|
|
3649
|
+
clientType?: "person" | "person_male" | "person_female" | "firm";
|
|
3650
|
+
/** @description 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. */
|
|
3651
|
+
clientAffiliateProgram?: {
|
|
3652
|
+
/** @description Does the customer participate in the loyalty program: - yes_voucher_cash, - yes_voucher, - no, - banned. */
|
|
3653
|
+
clientAffiliateProgramValue?: "yes_voucher" | "yes_voucher_cash" | "yes_clients" | "yes_orders" | "no" | "banned";
|
|
3654
|
+
}[];
|
|
3655
|
+
/** @description Permission to E-mail Newsletter. */
|
|
3656
|
+
newsletterEmailApproval?: string;
|
|
3657
|
+
/** @description Permission to SMS Newsletter. */
|
|
3658
|
+
newsletterSmsApproval?: string;
|
|
3659
|
+
/** @description Shops */
|
|
3660
|
+
searchByShops?: {
|
|
3661
|
+
/** @description How to match shops. - one_of_selected - searches for customers assigned to at least one shop present in shopsList. - exactly_selected - searches for customers assigned to all shops present in shopsList. */
|
|
3662
|
+
searchModeInShops?: "one_of_selected" | "exactly_selected";
|
|
3663
|
+
/** @description List of stores IDs When mask is determined, this parameter is omitted. */
|
|
3664
|
+
shopsIds?: number[];
|
|
3665
|
+
};
|
|
3666
|
+
/** @description Loyalty cards: */
|
|
3667
|
+
clientLoyaltyCard?: {
|
|
3668
|
+
/** @description Does the customer have a loyalty card. - yes_active, - yes_not_active, - no. */
|
|
3669
|
+
clientHasLoyaltyCard?: "yes_active" | "yes_not_active" | "no";
|
|
3670
|
+
/** @description Customer loyalty card ID, omitted when has_loyalty_card = no. */
|
|
3671
|
+
clientLoyaltyCardId?: number;
|
|
3672
|
+
/** @description Customer loyalty card number, omitted when has_loyalty_card = no. */
|
|
3673
|
+
clientLoyaltyCardNumber?: string;
|
|
3674
|
+
};
|
|
3675
|
+
/** @description External system code. */
|
|
3676
|
+
clientCodeExternal?: string;
|
|
3677
|
+
/** @description External system codes list. */
|
|
3678
|
+
clientCodesExternal?: string[];
|
|
3679
|
+
/** @description Customer's first name. */
|
|
3680
|
+
clientFirstName?: string;
|
|
3681
|
+
/** @description Customer's last name. */
|
|
3682
|
+
clientLastName?: string;
|
|
3683
|
+
/** @description Customer Tax no. */
|
|
3684
|
+
clientNip?: string;
|
|
3685
|
+
/** @description Customer's company name. */
|
|
3686
|
+
clientFirm?: string;
|
|
3687
|
+
/** @description E-mail address. */
|
|
3688
|
+
clientEmail?: string;
|
|
3689
|
+
/** @description List of shops where a customer agreed or didn't agree to receive email newsletter. */
|
|
3690
|
+
newsletterEmailApprovalsData?: {
|
|
3691
|
+
/** @description Permission to E-mail Newsletter. */
|
|
3692
|
+
inNewsletterEmailApproval?: "y" | "n";
|
|
3693
|
+
/** @description Shop Id */
|
|
3694
|
+
shopId?: number;
|
|
3695
|
+
}[];
|
|
3696
|
+
/** @description List of shops where a customer agreed or didn't agree to receive sms newsletter. */
|
|
3697
|
+
newsletterSmsApprovalsData?: {
|
|
3698
|
+
/** @description Permission to SMS Newsletter. */
|
|
3699
|
+
inNewsletterSmsApproval?: "y" | "n";
|
|
3700
|
+
/** @description Shop Id */
|
|
3701
|
+
shopId?: number;
|
|
3702
|
+
}[];
|
|
3703
|
+
/** @description Customer loyalty card number, omitted when has_loyalty_card = no. */
|
|
3704
|
+
clientLoyaltyCardNumber?: string;
|
|
3705
|
+
/** @description Orders. */
|
|
3706
|
+
orders?: {
|
|
3707
|
+
/** @description Has the customer made an order. - yes, - no. */
|
|
3708
|
+
clientHasOrders?: "yes" | "no";
|
|
3709
|
+
/** @description Minimum order value, omitted when hasOrders = no. */
|
|
3710
|
+
ordersMinimalValue?: number;
|
|
3711
|
+
/** @description Data for serial number range. */
|
|
3712
|
+
ordersSerialNumberRange?: {
|
|
3713
|
+
/** @description Starting number of serial numbers range for sought products. */
|
|
3714
|
+
ordersSerialNumberBegin?: string;
|
|
3715
|
+
/** @description Ending number for serial number range. */
|
|
3716
|
+
ordersSerialNumberEnd?: string;
|
|
3717
|
+
};
|
|
3718
|
+
/** @description Date range of orders made by customers, omitted when hasOrders = no. */
|
|
3719
|
+
ordersAddDate?: {
|
|
3720
|
+
/** @description Start date (YYYY-MM-DD). */
|
|
3721
|
+
ordersAddDateBegin?: string;
|
|
3722
|
+
/** @description End date (YYYY-MM-DD). */
|
|
3723
|
+
ordersAddDateEnd?: string;
|
|
3724
|
+
};
|
|
3725
|
+
};
|
|
3726
|
+
/** @description Elements to be returned by the endpoint. By default all elements are returned */
|
|
3727
|
+
returnElements?: string[];
|
|
3728
|
+
/** @description Page with results number. Numeration starts from 0 */
|
|
3729
|
+
resultsPage?: number;
|
|
3730
|
+
/** @description Number of results on page. Value from 1 to 100 */
|
|
3731
|
+
resultsLimit?: number;
|
|
3732
|
+
/** @description Determines, if data - that will be returned - will be exactly as entered values, or values should be fragment of customer data. */
|
|
3733
|
+
settingsExactSearch?: boolean;
|
|
3734
|
+
};
|
|
3735
|
+
|
|
3736
|
+
export type SearchClientsGiftcardsParams = {
|
|
3737
|
+
/** @description List of gift cards */
|
|
3738
|
+
giftCards?: {
|
|
3739
|
+
/** @description Card ID */
|
|
3740
|
+
id?: number;
|
|
3741
|
+
/** @description Card number */
|
|
3742
|
+
number?: string;
|
|
3743
|
+
/** @description Card PIN */
|
|
3744
|
+
pin?: string;
|
|
3745
|
+
}[];
|
|
3746
|
+
/** @description element is an element array of type searchGiftCards */
|
|
3747
|
+
searchGiftCards?: {
|
|
3748
|
+
/** @description Gift cards type ID */
|
|
3749
|
+
giftCardTypeId?: number;
|
|
3750
|
+
/** @description Name */
|
|
3751
|
+
name?: string;
|
|
3752
|
+
/** @description Notes contain */
|
|
3753
|
+
noteContain?: string;
|
|
3754
|
+
/** @description Value from */
|
|
3755
|
+
balanceFrom?: number;
|
|
3756
|
+
/** @description Value to */
|
|
3757
|
+
balanceTo?: number;
|
|
3758
|
+
/** @description Expiration date from */
|
|
3759
|
+
expirationDateFrom?: string;
|
|
3760
|
+
/** @description Expiration date to */
|
|
3761
|
+
expirationDateTo?: string;
|
|
3762
|
+
/** @description Created from */
|
|
3763
|
+
issueDateFrom?: string;
|
|
3764
|
+
/** @description Created to */
|
|
3765
|
+
issueDateTo?: string;
|
|
3766
|
+
/** @description Page with results number. Numeration starts from 0 */
|
|
3767
|
+
resultsPage?: number;
|
|
3768
|
+
/** @description Number of results on page. Value from 1 to 100 */
|
|
3769
|
+
resultsLimit?: number;
|
|
3770
|
+
};
|
|
3771
|
+
};
|
|
3772
|
+
|
|
3773
|
+
export type SearchClientsNewsletterEmailParams = {
|
|
3774
|
+
shops?: {
|
|
3775
|
+
/** @description Store ID. */
|
|
3776
|
+
shop_id?: number;
|
|
3777
|
+
/** @description Have customer agreed to a newsletter. List of allowed parameters: "y" - yes, "n" - no. */
|
|
3778
|
+
approval?: "y" | "n";
|
|
3779
|
+
/** @description Is registered: y - only registered customers, n - only non-registered customers, null (argument not sent) - all. */
|
|
3780
|
+
registered?: "y" | "n";
|
|
3781
|
+
}[];
|
|
3782
|
+
/** @description Customer language ID. */
|
|
3783
|
+
language?: string;
|
|
3784
|
+
date?: {
|
|
3785
|
+
/** @description Start date (YYYY-MM-DD HH:MM:SS). */
|
|
3786
|
+
from?: string;
|
|
3787
|
+
/** @description End date (YYYY-MM-DD HH:MM:SS). */
|
|
3788
|
+
to?: string;
|
|
3789
|
+
};
|
|
3790
|
+
/** @description Elements to be returned by the endpoint. By default all elements are returned */
|
|
3791
|
+
return_elements?: string[];
|
|
3792
|
+
/** @description Results page number. Numbering begins at 0. Default value: 0. */
|
|
3793
|
+
results_page?: number;
|
|
3794
|
+
/** @description Maximum number of results on a single page. Default is 100. */
|
|
3795
|
+
results_limit?: number;
|
|
3796
|
+
};
|
|
3797
|
+
|
|
3798
|
+
export type SearchOrdersOpinionsParams = {
|
|
3799
|
+
/** @description Review identification */
|
|
3800
|
+
opinion?: {
|
|
3801
|
+
/** @example 1 */
|
|
3802
|
+
id?: number;
|
|
3803
|
+
/** @description Customer language ID. */
|
|
3804
|
+
language?: string;
|
|
3805
|
+
confirmed?: boolean;
|
|
3806
|
+
/** @example host */
|
|
3807
|
+
host?: string;
|
|
3808
|
+
/** @description Shop Id */
|
|
3809
|
+
shopId?: number;
|
|
3810
|
+
};
|
|
3811
|
+
/** @description Orders. */
|
|
3812
|
+
orders?: {
|
|
3813
|
+
/** */
|
|
3814
|
+
type?: "id" | "serialNumber";
|
|
3815
|
+
/** @example value */
|
|
3816
|
+
value?: string;
|
|
3817
|
+
};
|
|
3818
|
+
/** @description Customer data. */
|
|
3819
|
+
clients?: {
|
|
3820
|
+
/** */
|
|
3821
|
+
type?: "id" | "login" | "codeExtern";
|
|
3822
|
+
/** @example value */
|
|
3823
|
+
value?: string;
|
|
3824
|
+
};
|
|
3825
|
+
/** @description Date range */
|
|
3826
|
+
dateRange?: {
|
|
3827
|
+
/** @example begin */
|
|
3828
|
+
begin?: string;
|
|
3829
|
+
/** @example end */
|
|
3830
|
+
end?: string;
|
|
3831
|
+
};
|
|
3832
|
+
/** @description Page with results number. Numeration starts from 0 */
|
|
3833
|
+
resultsPage?: number;
|
|
3834
|
+
/** @description Number of results on page. Value from 1 to 100 */
|
|
3835
|
+
resultsLimit?: number;
|
|
3836
|
+
/** @description Possibility of sorting returned list */
|
|
3837
|
+
ordersBy?: {
|
|
3838
|
+
/** @description Field name by which a list will be sorted. Available values: "date" - Date of adding an opinion, "rating" - Rating attached to opinion, "scorePositive" - Usefulness of the opinion - number of positive ratings, "scoreNegative" - Usefulness of the opinion - number of negative ratings, "modificationDatetime" - Last modification date */
|
|
3839
|
+
elementName?: string;
|
|
3840
|
+
/** @description Determines sorting direction. Available values: "ASC" - ascending, "DESC" - descending. */
|
|
3841
|
+
sortDirection?: string;
|
|
3842
|
+
}[];
|
|
3843
|
+
};
|
|
3844
|
+
|
|
3845
|
+
export type SearchClientsNewsletterSmsParams = {
|
|
3846
|
+
shops?: {
|
|
3847
|
+
/** @description Store ID. */
|
|
3848
|
+
shop_id?: number;
|
|
3849
|
+
/** @description Have customer agreed to a newsletter. List of allowed parameters: "y" - yes, "n" - no. */
|
|
3850
|
+
approval?: "y" | "n";
|
|
3851
|
+
/** @description Is registered: yes - only registered customers, no - only non-registered customers, null (argument not sent) - all. */
|
|
3852
|
+
registered?: "y" | "n";
|
|
3853
|
+
}[];
|
|
3854
|
+
/** @description Customer language ID. */
|
|
3855
|
+
language?: string;
|
|
3856
|
+
date?: {
|
|
3857
|
+
/** @description Start date (YYYY-MM-DD HH:MM:SS). */
|
|
3858
|
+
from?: string;
|
|
3859
|
+
/** @description End date (YYYY-MM-DD HH:MM:SS). */
|
|
3860
|
+
to?: string;
|
|
3861
|
+
};
|
|
3862
|
+
/** @description Elements to be returned by the endpoint. By default all elements are returned */
|
|
3863
|
+
return_elements?: string[];
|
|
3864
|
+
/** @description Results page number. Numbering begins at 0. Default value: 0. */
|
|
3865
|
+
results_page?: number;
|
|
3866
|
+
/** @description Maximum number of results on a single page. Default is 100. */
|
|
3867
|
+
results_limit?: number;
|
|
3868
|
+
};
|
|
3869
|
+
|
|
2260
3870
|
export { };
|