@revenexx/sdk 0.0.5 → 0.0.7
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/dist/cjs/sdk.js +7188 -5721
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +7185 -5720
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +7188 -5721
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/order-list-kind.ts +4 -0
- package/src/enums/store-asset-request-visibility.ts +4 -0
- package/src/enums/visibility.ts +4 -0
- package/src/index.ts +4 -2
- package/src/models.ts +1232 -294
- package/src/services/customers.ts +14 -6
- package/src/services/markets.ts +317 -0
- package/src/services/orderlists.ts +889 -0
- package/src/services/pages.ts +293 -7
- package/src/services/prices.ts +70 -9
- package/src/services/products.ts +86 -14
- package/src/services/shipping.ts +26 -19
- package/src/services/storage.ts +910 -576
- package/types/enums/order-list-kind.d.ts +4 -0
- package/types/enums/store-asset-request-visibility.d.ts +4 -0
- package/types/enums/visibility.d.ts +4 -0
- package/types/index.d.ts +4 -2
- package/types/models.d.ts +1199 -283
- package/types/services/customers.d.ts +4 -1
- package/types/services/markets.d.ts +112 -0
- package/types/services/orderlists.d.ts +324 -0
- package/types/services/pages.d.ts +96 -1
- package/types/services/prices.d.ts +24 -4
- package/types/services/products.d.ts +28 -2
- package/types/services/shipping.d.ts +8 -5
- package/types/services/storage.d.ts +353 -285
package/src/models.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { LocationType } from "./enums/location-type"
|
|
|
13
13
|
import { MarketStatus } from "./enums/market-status"
|
|
14
14
|
import { OrderCommentVisibility } from "./enums/order-comment-visibility"
|
|
15
15
|
import { OrderItemType } from "./enums/order-item-type"
|
|
16
|
+
import { OrderListKind } from "./enums/order-list-kind"
|
|
16
17
|
import { OrderPaymentStatus } from "./enums/order-payment-status"
|
|
17
18
|
import { OrganizationStatus } from "./enums/organization-status"
|
|
18
19
|
import { PageStatus } from "./enums/page-status"
|
|
@@ -22,6 +23,7 @@ import { PriceEntryType } from "./enums/price-entry-type"
|
|
|
22
23
|
import { PriceListStatus } from "./enums/price-list-status"
|
|
23
24
|
import { ShippingMethodMatrixBasis } from "./enums/shipping-method-matrix-basis"
|
|
24
25
|
import { ShippingMethodPricingType } from "./enums/shipping-method-pricing-type"
|
|
26
|
+
import { StoreAssetRequestVisibility } from "./enums/store-asset-request-visibility"
|
|
25
27
|
import { AttributeBooleanStatus } from "./enums/attribute-boolean-status"
|
|
26
28
|
import { AttributeDatetimeStatus } from "./enums/attribute-datetime-status"
|
|
27
29
|
import { AttributeEmailStatus } from "./enums/attribute-email-status"
|
|
@@ -324,6 +326,116 @@ export namespace Models {
|
|
|
324
326
|
naming_convention?: object | null;
|
|
325
327
|
}
|
|
326
328
|
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
*/
|
|
332
|
+
export type AssetResource = {
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
*/
|
|
336
|
+
alt_text: string | null;
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
*/
|
|
340
|
+
content_hash: string | null;
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
*/
|
|
344
|
+
created_at: string;
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
*/
|
|
348
|
+
deleted_at: string;
|
|
349
|
+
/**
|
|
350
|
+
*
|
|
351
|
+
*/
|
|
352
|
+
description: string | null;
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
*/
|
|
356
|
+
display_name: string | null;
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
*/
|
|
360
|
+
dominant_color: string | null;
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
*/
|
|
364
|
+
duration_ms: number | null;
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
*/
|
|
368
|
+
folder_id: string | null;
|
|
369
|
+
/**
|
|
370
|
+
*
|
|
371
|
+
*/
|
|
372
|
+
height: number | null;
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
*/
|
|
376
|
+
id: string;
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
*/
|
|
380
|
+
kind: string;
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
*/
|
|
384
|
+
metadata: any[];
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
*/
|
|
388
|
+
mime_type: string;
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
*/
|
|
392
|
+
original_name: string;
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
*/
|
|
396
|
+
page_count: number | null;
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
*/
|
|
400
|
+
path_name: string;
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
*/
|
|
404
|
+
processed_at: string;
|
|
405
|
+
/**
|
|
406
|
+
*
|
|
407
|
+
*/
|
|
408
|
+
size_bytes: number;
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
*/
|
|
412
|
+
status: string;
|
|
413
|
+
/**
|
|
414
|
+
*
|
|
415
|
+
*/
|
|
416
|
+
tags: any[];
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
*/
|
|
420
|
+
tenant_id: string;
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
*/
|
|
424
|
+
updated_at: string;
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
*/
|
|
428
|
+
url: string;
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
*/
|
|
432
|
+
visibility: string;
|
|
433
|
+
/**
|
|
434
|
+
*
|
|
435
|
+
*/
|
|
436
|
+
width: number | null;
|
|
437
|
+
}
|
|
438
|
+
|
|
327
439
|
/**
|
|
328
440
|
*
|
|
329
441
|
*/
|
|
@@ -872,6 +984,10 @@ export namespace Models {
|
|
|
872
984
|
*
|
|
873
985
|
*/
|
|
874
986
|
export type AuthMeRequest = {
|
|
987
|
+
/**
|
|
988
|
+
* Optional session to verify — answers 401 when the session is expired or revoked.
|
|
989
|
+
*/
|
|
990
|
+
session_id?: string | null;
|
|
875
991
|
/**
|
|
876
992
|
*
|
|
877
993
|
*/
|
|
@@ -935,23 +1051,23 @@ export namespace Models {
|
|
|
935
1051
|
/**
|
|
936
1052
|
*
|
|
937
1053
|
*/
|
|
938
|
-
first_name?: string;
|
|
1054
|
+
first_name?: string | null;
|
|
939
1055
|
/**
|
|
940
1056
|
*
|
|
941
1057
|
*/
|
|
942
|
-
last_name?: string;
|
|
1058
|
+
last_name?: string | null;
|
|
943
1059
|
/**
|
|
944
1060
|
* BCP 47, e.g. de-DE
|
|
945
1061
|
*/
|
|
946
|
-
locale?: string;
|
|
1062
|
+
locale?: string | null;
|
|
947
1063
|
/**
|
|
948
1064
|
* Join an existing organization.
|
|
949
1065
|
*/
|
|
950
|
-
organization_id?: string;
|
|
1066
|
+
organization_id?: string | null;
|
|
951
1067
|
/**
|
|
952
1068
|
* Found a new organization; the contact becomes its admin.
|
|
953
1069
|
*/
|
|
954
|
-
organization_name?: string;
|
|
1070
|
+
organization_name?: string | null;
|
|
955
1071
|
/**
|
|
956
1072
|
*
|
|
957
1073
|
*/
|
|
@@ -1091,7 +1207,7 @@ export namespace Models {
|
|
|
1091
1207
|
/**
|
|
1092
1208
|
* Merge the session carts into this cart instead of adopting them.
|
|
1093
1209
|
*/
|
|
1094
|
-
target_cart_id?: string;
|
|
1210
|
+
target_cart_id?: string | null;
|
|
1095
1211
|
}
|
|
1096
1212
|
|
|
1097
1213
|
/**
|
|
@@ -1101,35 +1217,35 @@ export namespace Models {
|
|
|
1101
1217
|
/**
|
|
1102
1218
|
*
|
|
1103
1219
|
*/
|
|
1104
|
-
channel_id?: string;
|
|
1220
|
+
channel_id?: string | null;
|
|
1105
1221
|
/**
|
|
1106
1222
|
* Owning customer contact.
|
|
1107
1223
|
*/
|
|
1108
|
-
contact_id?: string;
|
|
1224
|
+
contact_id?: string | null;
|
|
1109
1225
|
/**
|
|
1110
1226
|
* ISO 4217 code (default EUR).
|
|
1111
1227
|
*/
|
|
1112
|
-
currency?: string;
|
|
1228
|
+
currency?: string | null;
|
|
1113
1229
|
/**
|
|
1114
1230
|
* Make this THE current cart of its owner.
|
|
1115
1231
|
*/
|
|
1116
|
-
is_current?: boolean;
|
|
1232
|
+
is_current?: boolean | null;
|
|
1117
1233
|
/**
|
|
1118
1234
|
*
|
|
1119
1235
|
*/
|
|
1120
|
-
market_id?: string;
|
|
1236
|
+
market_id?: string | null;
|
|
1121
1237
|
/**
|
|
1122
1238
|
* Free-form metadata.
|
|
1123
1239
|
*/
|
|
1124
|
-
metadata?: object;
|
|
1240
|
+
metadata?: object | null;
|
|
1125
1241
|
/**
|
|
1126
1242
|
* Display name (default 'Cart').
|
|
1127
1243
|
*/
|
|
1128
|
-
name?: string;
|
|
1244
|
+
name?: string | null;
|
|
1129
1245
|
/**
|
|
1130
1246
|
* Owning guest session.
|
|
1131
1247
|
*/
|
|
1132
|
-
session_key?: string;
|
|
1248
|
+
session_key?: string | null;
|
|
1133
1249
|
}
|
|
1134
1250
|
|
|
1135
1251
|
/**
|
|
@@ -1143,7 +1259,7 @@ export namespace Models {
|
|
|
1143
1259
|
/**
|
|
1144
1260
|
* Export profile to run; ad-hoc JSON/CSV export when omitted.
|
|
1145
1261
|
*/
|
|
1146
|
-
profile_id?: string;
|
|
1262
|
+
profile_id?: string | null;
|
|
1147
1263
|
}
|
|
1148
1264
|
|
|
1149
1265
|
/**
|
|
@@ -1153,7 +1269,7 @@ export namespace Models {
|
|
|
1153
1269
|
/**
|
|
1154
1270
|
* Owner of a newly created cart.
|
|
1155
1271
|
*/
|
|
1156
|
-
contact_id?: string;
|
|
1272
|
+
contact_id?: string | null;
|
|
1157
1273
|
/**
|
|
1158
1274
|
* Raw CSV content (alternative to payload for csv profiles).
|
|
1159
1275
|
*/
|
|
@@ -1169,7 +1285,7 @@ export namespace Models {
|
|
|
1169
1285
|
/**
|
|
1170
1286
|
* Import profile to run; ad-hoc import when omitted.
|
|
1171
1287
|
*/
|
|
1172
|
-
profile_id?: string;
|
|
1288
|
+
profile_id?: string | null;
|
|
1173
1289
|
/**
|
|
1174
1290
|
* Guest owner of a newly created cart.
|
|
1175
1291
|
*/
|
|
@@ -1177,7 +1293,7 @@ export namespace Models {
|
|
|
1177
1293
|
/**
|
|
1178
1294
|
* Existing active cart to import into.
|
|
1179
1295
|
*/
|
|
1180
|
-
target_cart_id?: string;
|
|
1296
|
+
target_cart_id?: string | null;
|
|
1181
1297
|
}
|
|
1182
1298
|
|
|
1183
1299
|
/**
|
|
@@ -1265,43 +1381,43 @@ export namespace Models {
|
|
|
1265
1381
|
/**
|
|
1266
1382
|
* Free-form configuration — configured lines never merge.
|
|
1267
1383
|
*/
|
|
1268
|
-
configuration?: object;
|
|
1384
|
+
configuration?: object | null;
|
|
1269
1385
|
/**
|
|
1270
1386
|
* Defaults to the cart's currency.
|
|
1271
1387
|
*/
|
|
1272
|
-
currency?: string;
|
|
1388
|
+
currency?: string | null;
|
|
1273
1389
|
/**
|
|
1274
1390
|
* Free-form metadata.
|
|
1275
1391
|
*/
|
|
1276
|
-
metadata?: object;
|
|
1392
|
+
metadata?: object | null;
|
|
1277
1393
|
/**
|
|
1278
1394
|
* Falls back to 'sku' when omitted.
|
|
1279
1395
|
*/
|
|
1280
|
-
name?: string;
|
|
1396
|
+
name?: string | null;
|
|
1281
1397
|
/**
|
|
1282
1398
|
*
|
|
1283
1399
|
*/
|
|
1284
|
-
position?: number;
|
|
1400
|
+
position?: number | null;
|
|
1285
1401
|
/**
|
|
1286
1402
|
*
|
|
1287
1403
|
*/
|
|
1288
|
-
product_id?: string;
|
|
1404
|
+
product_id?: string | null;
|
|
1289
1405
|
/**
|
|
1290
1406
|
* Default 1.
|
|
1291
1407
|
*/
|
|
1292
|
-
quantity?: number;
|
|
1408
|
+
quantity?: number | null;
|
|
1293
1409
|
/**
|
|
1294
1410
|
*
|
|
1295
1411
|
*/
|
|
1296
|
-
sku?: string;
|
|
1412
|
+
sku?: string | null;
|
|
1297
1413
|
/**
|
|
1298
1414
|
* Loose product snapshot at add-time (price, name, image, …).
|
|
1299
1415
|
*/
|
|
1300
|
-
snapshot?: object;
|
|
1416
|
+
snapshot?: object | null;
|
|
1301
1417
|
/**
|
|
1302
1418
|
*
|
|
1303
1419
|
*/
|
|
1304
|
-
tax_rate?: number;
|
|
1420
|
+
tax_rate?: number | null;
|
|
1305
1421
|
/**
|
|
1306
1422
|
* Line type (default 'product'). Plain product lines merge by product+price; configurations always stand alone.
|
|
1307
1423
|
*/
|
|
@@ -1309,11 +1425,11 @@ export namespace Models {
|
|
|
1309
1425
|
/**
|
|
1310
1426
|
*
|
|
1311
1427
|
*/
|
|
1312
|
-
unit?: string;
|
|
1428
|
+
unit?: string | null;
|
|
1313
1429
|
/**
|
|
1314
1430
|
* Per-unit net price — line_total is always derived.
|
|
1315
1431
|
*/
|
|
1316
|
-
unit_price?: number;
|
|
1432
|
+
unit_price?: number | null;
|
|
1317
1433
|
}
|
|
1318
1434
|
|
|
1319
1435
|
/**
|
|
@@ -1323,43 +1439,43 @@ export namespace Models {
|
|
|
1323
1439
|
/**
|
|
1324
1440
|
* Free-form configuration — configured lines never merge.
|
|
1325
1441
|
*/
|
|
1326
|
-
configuration?: object;
|
|
1442
|
+
configuration?: object | null;
|
|
1327
1443
|
/**
|
|
1328
1444
|
* Defaults to the cart's currency.
|
|
1329
1445
|
*/
|
|
1330
|
-
currency?: string;
|
|
1446
|
+
currency?: string | null;
|
|
1331
1447
|
/**
|
|
1332
1448
|
* Free-form metadata.
|
|
1333
1449
|
*/
|
|
1334
|
-
metadata?: object;
|
|
1450
|
+
metadata?: object | null;
|
|
1335
1451
|
/**
|
|
1336
1452
|
* Falls back to 'sku' when omitted.
|
|
1337
1453
|
*/
|
|
1338
|
-
name?: string;
|
|
1454
|
+
name?: string | null;
|
|
1339
1455
|
/**
|
|
1340
1456
|
*
|
|
1341
1457
|
*/
|
|
1342
|
-
position?: number;
|
|
1458
|
+
position?: number | null;
|
|
1343
1459
|
/**
|
|
1344
1460
|
*
|
|
1345
1461
|
*/
|
|
1346
|
-
product_id?: string;
|
|
1462
|
+
product_id?: string | null;
|
|
1347
1463
|
/**
|
|
1348
1464
|
* Default 1.
|
|
1349
1465
|
*/
|
|
1350
|
-
quantity?: number;
|
|
1466
|
+
quantity?: number | null;
|
|
1351
1467
|
/**
|
|
1352
1468
|
*
|
|
1353
1469
|
*/
|
|
1354
|
-
sku?: string;
|
|
1470
|
+
sku?: string | null;
|
|
1355
1471
|
/**
|
|
1356
1472
|
* Loose product snapshot at add-time (price, name, image, …).
|
|
1357
1473
|
*/
|
|
1358
|
-
snapshot?: object;
|
|
1474
|
+
snapshot?: object | null;
|
|
1359
1475
|
/**
|
|
1360
1476
|
*
|
|
1361
1477
|
*/
|
|
1362
|
-
tax_rate?: number;
|
|
1478
|
+
tax_rate?: number | null;
|
|
1363
1479
|
/**
|
|
1364
1480
|
* Line type (default 'product'). Plain product lines merge by product+price; configurations always stand alone.
|
|
1365
1481
|
*/
|
|
@@ -1367,11 +1483,11 @@ export namespace Models {
|
|
|
1367
1483
|
/**
|
|
1368
1484
|
*
|
|
1369
1485
|
*/
|
|
1370
|
-
unit?: string;
|
|
1486
|
+
unit?: string | null;
|
|
1371
1487
|
/**
|
|
1372
1488
|
* Per-unit net price — line_total is always derived.
|
|
1373
1489
|
*/
|
|
1374
|
-
unit_price?: number;
|
|
1490
|
+
unit_price?: number | null;
|
|
1375
1491
|
}
|
|
1376
1492
|
|
|
1377
1493
|
/**
|
|
@@ -1405,7 +1521,7 @@ export namespace Models {
|
|
|
1405
1521
|
/**
|
|
1406
1522
|
* External order reference from order management.
|
|
1407
1523
|
*/
|
|
1408
|
-
order_ref?: string;
|
|
1524
|
+
order_ref?: string | null;
|
|
1409
1525
|
}
|
|
1410
1526
|
|
|
1411
1527
|
/**
|
|
@@ -1415,23 +1531,23 @@ export namespace Models {
|
|
|
1415
1531
|
/**
|
|
1416
1532
|
*
|
|
1417
1533
|
*/
|
|
1418
|
-
channel_id?: string;
|
|
1534
|
+
channel_id?: string | null;
|
|
1419
1535
|
/**
|
|
1420
1536
|
* ISO 4217 code.
|
|
1421
1537
|
*/
|
|
1422
|
-
currency?: string;
|
|
1538
|
+
currency?: string | null;
|
|
1423
1539
|
/**
|
|
1424
1540
|
*
|
|
1425
1541
|
*/
|
|
1426
|
-
market_id?: string;
|
|
1542
|
+
market_id?: string | null;
|
|
1427
1543
|
/**
|
|
1428
1544
|
* Free-form metadata.
|
|
1429
1545
|
*/
|
|
1430
|
-
metadata?: object;
|
|
1546
|
+
metadata?: object | null;
|
|
1431
1547
|
/**
|
|
1432
1548
|
*
|
|
1433
1549
|
*/
|
|
1434
|
-
name?: string;
|
|
1550
|
+
name?: string | null;
|
|
1435
1551
|
}
|
|
1436
1552
|
|
|
1437
1553
|
/**
|
|
@@ -1597,7 +1713,7 @@ export namespace Models {
|
|
|
1597
1713
|
/**
|
|
1598
1714
|
* Localized display names keyed by locale.
|
|
1599
1715
|
*/
|
|
1600
|
-
labels?: object;
|
|
1716
|
+
labels?: object | null;
|
|
1601
1717
|
/**
|
|
1602
1718
|
* Display name.
|
|
1603
1719
|
*/
|
|
@@ -1645,7 +1761,7 @@ export namespace Models {
|
|
|
1645
1761
|
/**
|
|
1646
1762
|
* Localized display names keyed by locale.
|
|
1647
1763
|
*/
|
|
1648
|
-
labels?: object;
|
|
1764
|
+
labels?: object | null;
|
|
1649
1765
|
/**
|
|
1650
1766
|
* Display name.
|
|
1651
1767
|
*/
|
|
@@ -1939,7 +2055,7 @@ export namespace Models {
|
|
|
1939
2055
|
/**
|
|
1940
2056
|
*
|
|
1941
2057
|
*/
|
|
1942
|
-
currency?: string;
|
|
2058
|
+
currency?: string | null;
|
|
1943
2059
|
/**
|
|
1944
2060
|
*
|
|
1945
2061
|
*/
|
|
@@ -2230,6 +2346,44 @@ export namespace Models {
|
|
|
2230
2346
|
labels?: object | null;
|
|
2231
2347
|
}
|
|
2232
2348
|
|
|
2349
|
+
/**
|
|
2350
|
+
*
|
|
2351
|
+
*/
|
|
2352
|
+
export type FolderResource = {
|
|
2353
|
+
/**
|
|
2354
|
+
*
|
|
2355
|
+
*/
|
|
2356
|
+
created_at: string;
|
|
2357
|
+
/**
|
|
2358
|
+
*
|
|
2359
|
+
*/
|
|
2360
|
+
id: string;
|
|
2361
|
+
/**
|
|
2362
|
+
*
|
|
2363
|
+
*/
|
|
2364
|
+
is_system: boolean;
|
|
2365
|
+
/**
|
|
2366
|
+
*
|
|
2367
|
+
*/
|
|
2368
|
+
name: string;
|
|
2369
|
+
/**
|
|
2370
|
+
*
|
|
2371
|
+
*/
|
|
2372
|
+
parent_id: string | null;
|
|
2373
|
+
/**
|
|
2374
|
+
*
|
|
2375
|
+
*/
|
|
2376
|
+
path: string;
|
|
2377
|
+
/**
|
|
2378
|
+
*
|
|
2379
|
+
*/
|
|
2380
|
+
tenant_id: string;
|
|
2381
|
+
/**
|
|
2382
|
+
*
|
|
2383
|
+
*/
|
|
2384
|
+
updated_at: string;
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2233
2387
|
/**
|
|
2234
2388
|
*
|
|
2235
2389
|
*/
|
|
@@ -2275,7 +2429,7 @@ export namespace Models {
|
|
|
2275
2429
|
/**
|
|
2276
2430
|
*
|
|
2277
2431
|
*/
|
|
2278
|
-
product_id?: string;
|
|
2432
|
+
product_id?: string | null;
|
|
2279
2433
|
/**
|
|
2280
2434
|
* Signed delta (±on_hand) — must be non-zero.
|
|
2281
2435
|
*/
|
|
@@ -2283,7 +2437,7 @@ export namespace Models {
|
|
|
2283
2437
|
/**
|
|
2284
2438
|
*
|
|
2285
2439
|
*/
|
|
2286
|
-
sku?: string;
|
|
2440
|
+
sku?: string | null;
|
|
2287
2441
|
}
|
|
2288
2442
|
|
|
2289
2443
|
/**
|
|
@@ -2297,7 +2451,7 @@ export namespace Models {
|
|
|
2297
2451
|
/**
|
|
2298
2452
|
* Adjusted location (default 'main').
|
|
2299
2453
|
*/
|
|
2300
|
-
location_code?: string;
|
|
2454
|
+
location_code?: string | null;
|
|
2301
2455
|
/**
|
|
2302
2456
|
* Mandatory audit reason — every adjustment is a ledger row.
|
|
2303
2457
|
*/
|
|
@@ -2311,15 +2465,15 @@ export namespace Models {
|
|
|
2311
2465
|
/**
|
|
2312
2466
|
*
|
|
2313
2467
|
*/
|
|
2314
|
-
product_id?: string;
|
|
2468
|
+
product_id?: string | null;
|
|
2315
2469
|
/**
|
|
2316
2470
|
* Requested quantity for the orderable check (default 1).
|
|
2317
2471
|
*/
|
|
2318
|
-
quantity?: number;
|
|
2472
|
+
quantity?: number | null;
|
|
2319
2473
|
/**
|
|
2320
2474
|
*
|
|
2321
2475
|
*/
|
|
2322
|
-
sku?: string;
|
|
2476
|
+
sku?: string | null;
|
|
2323
2477
|
}
|
|
2324
2478
|
|
|
2325
2479
|
/**
|
|
@@ -2333,7 +2487,7 @@ export namespace Models {
|
|
|
2333
2487
|
/**
|
|
2334
2488
|
* Restrict the check to one location (default: all enabled locations).
|
|
2335
2489
|
*/
|
|
2336
|
-
location_code?: string;
|
|
2490
|
+
location_code?: string | null;
|
|
2337
2491
|
}
|
|
2338
2492
|
|
|
2339
2493
|
/**
|
|
@@ -2357,11 +2511,11 @@ export namespace Models {
|
|
|
2357
2511
|
/**
|
|
2358
2512
|
* Receiving location (default 'main').
|
|
2359
2513
|
*/
|
|
2360
|
-
location_code?: string;
|
|
2514
|
+
location_code?: string | null;
|
|
2361
2515
|
/**
|
|
2362
2516
|
* Ledger note (e.g. delivery note number).
|
|
2363
2517
|
*/
|
|
2364
|
-
reason?: string;
|
|
2518
|
+
reason?: string | null;
|
|
2365
2519
|
}
|
|
2366
2520
|
|
|
2367
2521
|
/**
|
|
@@ -2381,7 +2535,7 @@ export namespace Models {
|
|
|
2381
2535
|
/**
|
|
2382
2536
|
* Optional reservation expiry.
|
|
2383
2537
|
*/
|
|
2384
|
-
expires_at?: string;
|
|
2538
|
+
expires_at?: string | null;
|
|
2385
2539
|
/**
|
|
2386
2540
|
* The items to reserve — all-or-nothing (at most 200).
|
|
2387
2541
|
*/
|
|
@@ -2403,15 +2557,15 @@ export namespace Models {
|
|
|
2403
2557
|
/**
|
|
2404
2558
|
* Restocking location (default 'main').
|
|
2405
2559
|
*/
|
|
2406
|
-
location_code?: string;
|
|
2560
|
+
location_code?: string | null;
|
|
2407
2561
|
/**
|
|
2408
2562
|
* Originating order (ledger reference).
|
|
2409
2563
|
*/
|
|
2410
|
-
order_ref?: string;
|
|
2564
|
+
order_ref?: string | null;
|
|
2411
2565
|
/**
|
|
2412
2566
|
* Ledger note (e.g. return reason).
|
|
2413
2567
|
*/
|
|
2414
|
-
reason?: string;
|
|
2568
|
+
reason?: string | null;
|
|
2415
2569
|
}
|
|
2416
2570
|
|
|
2417
2571
|
/**
|
|
@@ -2421,7 +2575,7 @@ export namespace Models {
|
|
|
2421
2575
|
/**
|
|
2422
2576
|
*
|
|
2423
2577
|
*/
|
|
2424
|
-
product_id?: string;
|
|
2578
|
+
product_id?: string | null;
|
|
2425
2579
|
/**
|
|
2426
2580
|
*
|
|
2427
2581
|
*/
|
|
@@ -2429,7 +2583,7 @@ export namespace Models {
|
|
|
2429
2583
|
/**
|
|
2430
2584
|
*
|
|
2431
2585
|
*/
|
|
2432
|
-
sku?: string;
|
|
2586
|
+
sku?: string | null;
|
|
2433
2587
|
}
|
|
2434
2588
|
|
|
2435
2589
|
/**
|
|
@@ -2695,7 +2849,7 @@ export namespace Models {
|
|
|
2695
2849
|
/**
|
|
2696
2850
|
*
|
|
2697
2851
|
*/
|
|
2698
|
-
address?: object;
|
|
2852
|
+
address?: object | null;
|
|
2699
2853
|
/**
|
|
2700
2854
|
* Unique location code (per tenant).
|
|
2701
2855
|
*/
|
|
@@ -2707,11 +2861,11 @@ export namespace Models {
|
|
|
2707
2861
|
/**
|
|
2708
2862
|
* Localised display names ({de, en, …}).
|
|
2709
2863
|
*/
|
|
2710
|
-
labels?: object;
|
|
2864
|
+
labels?: object | null;
|
|
2711
2865
|
/**
|
|
2712
2866
|
* Free-form metadata.
|
|
2713
2867
|
*/
|
|
2714
|
-
metadata?: object;
|
|
2868
|
+
metadata?: object | null;
|
|
2715
2869
|
/**
|
|
2716
2870
|
*
|
|
2717
2871
|
*/
|
|
@@ -2733,7 +2887,7 @@ export namespace Models {
|
|
|
2733
2887
|
/**
|
|
2734
2888
|
*
|
|
2735
2889
|
*/
|
|
2736
|
-
address?: object;
|
|
2890
|
+
address?: object | null;
|
|
2737
2891
|
/**
|
|
2738
2892
|
* Unique location code (per tenant).
|
|
2739
2893
|
*/
|
|
@@ -2745,11 +2899,11 @@ export namespace Models {
|
|
|
2745
2899
|
/**
|
|
2746
2900
|
* Localised display names ({de, en, …}).
|
|
2747
2901
|
*/
|
|
2748
|
-
labels?: object;
|
|
2902
|
+
labels?: object | null;
|
|
2749
2903
|
/**
|
|
2750
2904
|
* Free-form metadata.
|
|
2751
2905
|
*/
|
|
2752
|
-
metadata?: object;
|
|
2906
|
+
metadata?: object | null;
|
|
2753
2907
|
/**
|
|
2754
2908
|
*
|
|
2755
2909
|
*/
|
|
@@ -2814,6 +2968,10 @@ export namespace Models {
|
|
|
2814
2968
|
*
|
|
2815
2969
|
*/
|
|
2816
2970
|
export type MarketContext = {
|
|
2971
|
+
/**
|
|
2972
|
+
*
|
|
2973
|
+
*/
|
|
2974
|
+
currencies?: MarketCurrency[];
|
|
2817
2975
|
/**
|
|
2818
2976
|
*
|
|
2819
2977
|
*/
|
|
@@ -2865,15 +3023,11 @@ export namespace Models {
|
|
|
2865
3023
|
/**
|
|
2866
3024
|
*
|
|
2867
3025
|
*/
|
|
2868
|
-
export type
|
|
3026
|
+
export type MarketCurrency = {
|
|
2869
3027
|
/**
|
|
2870
3028
|
*
|
|
2871
3029
|
*/
|
|
2872
3030
|
code?: string;
|
|
2873
|
-
/**
|
|
2874
|
-
*
|
|
2875
|
-
*/
|
|
2876
|
-
country?: string;
|
|
2877
3031
|
/**
|
|
2878
3032
|
*
|
|
2879
3033
|
*/
|
|
@@ -2886,10 +3040,6 @@ export namespace Models {
|
|
|
2886
3040
|
*
|
|
2887
3041
|
*/
|
|
2888
3042
|
is_default?: boolean;
|
|
2889
|
-
/**
|
|
2890
|
-
*
|
|
2891
|
-
*/
|
|
2892
|
-
language?: string;
|
|
2893
3043
|
/**
|
|
2894
3044
|
*
|
|
2895
3045
|
*/
|
|
@@ -2903,23 +3053,15 @@ export namespace Models {
|
|
|
2903
3053
|
/**
|
|
2904
3054
|
* The owning market comes from the route path ('market_id').
|
|
2905
3055
|
*/
|
|
2906
|
-
export type
|
|
3056
|
+
export type MarketCurrencyCreateRequest = {
|
|
2907
3057
|
/**
|
|
2908
|
-
*
|
|
3058
|
+
* ISO 4217 code, e.g. EUR (unique per market).
|
|
2909
3059
|
*/
|
|
2910
3060
|
code: string;
|
|
2911
|
-
/**
|
|
2912
|
-
* ISO 3166-1 alpha-2 country code.
|
|
2913
|
-
*/
|
|
2914
|
-
country: string;
|
|
2915
3061
|
/**
|
|
2916
3062
|
*
|
|
2917
3063
|
*/
|
|
2918
3064
|
is_default?: boolean;
|
|
2919
|
-
/**
|
|
2920
|
-
* ISO 639-1 language code.
|
|
2921
|
-
*/
|
|
2922
|
-
language: string;
|
|
2923
3065
|
/**
|
|
2924
3066
|
* Sort position (default 0).
|
|
2925
3067
|
*/
|
|
@@ -2929,23 +3071,15 @@ export namespace Models {
|
|
|
2929
3071
|
/**
|
|
2930
3072
|
* Partial update — omitted fields keep their current value.
|
|
2931
3073
|
*/
|
|
2932
|
-
export type
|
|
3074
|
+
export type MarketCurrencyUpdateRequest = {
|
|
2933
3075
|
/**
|
|
2934
|
-
*
|
|
3076
|
+
* ISO 4217 code, e.g. EUR (unique per market).
|
|
2935
3077
|
*/
|
|
2936
3078
|
code?: string;
|
|
2937
|
-
/**
|
|
2938
|
-
* ISO 3166-1 alpha-2 country code.
|
|
2939
|
-
*/
|
|
2940
|
-
country?: string;
|
|
2941
3079
|
/**
|
|
2942
3080
|
*
|
|
2943
3081
|
*/
|
|
2944
3082
|
is_default?: boolean;
|
|
2945
|
-
/**
|
|
2946
|
-
* ISO 639-1 language code.
|
|
2947
|
-
*/
|
|
2948
|
-
language?: string;
|
|
2949
3083
|
/**
|
|
2950
3084
|
* Sort position (default 0).
|
|
2951
3085
|
*/
|
|
@@ -2955,7 +3089,97 @@ export namespace Models {
|
|
|
2955
3089
|
/**
|
|
2956
3090
|
*
|
|
2957
3091
|
*/
|
|
2958
|
-
export type
|
|
3092
|
+
export type MarketLocale = {
|
|
3093
|
+
/**
|
|
3094
|
+
*
|
|
3095
|
+
*/
|
|
3096
|
+
code?: string;
|
|
3097
|
+
/**
|
|
3098
|
+
*
|
|
3099
|
+
*/
|
|
3100
|
+
country?: string;
|
|
3101
|
+
/**
|
|
3102
|
+
*
|
|
3103
|
+
*/
|
|
3104
|
+
created_at?: string;
|
|
3105
|
+
/**
|
|
3106
|
+
*
|
|
3107
|
+
*/
|
|
3108
|
+
id?: string;
|
|
3109
|
+
/**
|
|
3110
|
+
*
|
|
3111
|
+
*/
|
|
3112
|
+
is_default?: boolean;
|
|
3113
|
+
/**
|
|
3114
|
+
*
|
|
3115
|
+
*/
|
|
3116
|
+
language?: string;
|
|
3117
|
+
/**
|
|
3118
|
+
*
|
|
3119
|
+
*/
|
|
3120
|
+
market_id?: string;
|
|
3121
|
+
/**
|
|
3122
|
+
*
|
|
3123
|
+
*/
|
|
3124
|
+
position?: number;
|
|
3125
|
+
}
|
|
3126
|
+
|
|
3127
|
+
/**
|
|
3128
|
+
* The owning market comes from the route path ('market_id').
|
|
3129
|
+
*/
|
|
3130
|
+
export type MarketLocaleCreateRequest = {
|
|
3131
|
+
/**
|
|
3132
|
+
* Locale code, e.g. 'de-DE' (unique per market).
|
|
3133
|
+
*/
|
|
3134
|
+
code: string;
|
|
3135
|
+
/**
|
|
3136
|
+
* ISO 3166-1 alpha-2 country code.
|
|
3137
|
+
*/
|
|
3138
|
+
country: string;
|
|
3139
|
+
/**
|
|
3140
|
+
*
|
|
3141
|
+
*/
|
|
3142
|
+
is_default?: boolean;
|
|
3143
|
+
/**
|
|
3144
|
+
* ISO 639-1 language code.
|
|
3145
|
+
*/
|
|
3146
|
+
language: string;
|
|
3147
|
+
/**
|
|
3148
|
+
* Sort position (default 0).
|
|
3149
|
+
*/
|
|
3150
|
+
position?: number;
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
/**
|
|
3154
|
+
* Partial update — omitted fields keep their current value.
|
|
3155
|
+
*/
|
|
3156
|
+
export type MarketLocaleUpdateRequest = {
|
|
3157
|
+
/**
|
|
3158
|
+
* Locale code, e.g. 'de-DE' (unique per market).
|
|
3159
|
+
*/
|
|
3160
|
+
code?: string;
|
|
3161
|
+
/**
|
|
3162
|
+
* ISO 3166-1 alpha-2 country code.
|
|
3163
|
+
*/
|
|
3164
|
+
country?: string;
|
|
3165
|
+
/**
|
|
3166
|
+
*
|
|
3167
|
+
*/
|
|
3168
|
+
is_default?: boolean;
|
|
3169
|
+
/**
|
|
3170
|
+
* ISO 639-1 language code.
|
|
3171
|
+
*/
|
|
3172
|
+
language?: string;
|
|
3173
|
+
/**
|
|
3174
|
+
* Sort position (default 0).
|
|
3175
|
+
*/
|
|
3176
|
+
position?: number;
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
/**
|
|
3180
|
+
*
|
|
3181
|
+
*/
|
|
3182
|
+
export type MarketTaxClass = {
|
|
2959
3183
|
/**
|
|
2960
3184
|
*
|
|
2961
3185
|
*/
|
|
@@ -3170,6 +3394,76 @@ export namespace Models {
|
|
|
3170
3394
|
units?: object | null;
|
|
3171
3395
|
}
|
|
3172
3396
|
|
|
3397
|
+
/**
|
|
3398
|
+
*
|
|
3399
|
+
*/
|
|
3400
|
+
export type Menu = {
|
|
3401
|
+
/**
|
|
3402
|
+
*
|
|
3403
|
+
*/
|
|
3404
|
+
created_at?: string;
|
|
3405
|
+
/**
|
|
3406
|
+
*
|
|
3407
|
+
*/
|
|
3408
|
+
created_by?: string | null;
|
|
3409
|
+
/**
|
|
3410
|
+
*
|
|
3411
|
+
*/
|
|
3412
|
+
deleted_at?: string | null;
|
|
3413
|
+
/**
|
|
3414
|
+
*
|
|
3415
|
+
*/
|
|
3416
|
+
id?: string;
|
|
3417
|
+
/**
|
|
3418
|
+
*
|
|
3419
|
+
*/
|
|
3420
|
+
items?: object;
|
|
3421
|
+
/**
|
|
3422
|
+
*
|
|
3423
|
+
*/
|
|
3424
|
+
label?: string;
|
|
3425
|
+
/**
|
|
3426
|
+
*
|
|
3427
|
+
*/
|
|
3428
|
+
menu_key?: string;
|
|
3429
|
+
/**
|
|
3430
|
+
*
|
|
3431
|
+
*/
|
|
3432
|
+
updated_at?: string;
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
/**
|
|
3436
|
+
* Partial update — omitted fields keep their current value.
|
|
3437
|
+
*/
|
|
3438
|
+
export type MenuUpdateRequest = {
|
|
3439
|
+
/**
|
|
3440
|
+
*
|
|
3441
|
+
*/
|
|
3442
|
+
items?: object[];
|
|
3443
|
+
/**
|
|
3444
|
+
*
|
|
3445
|
+
*/
|
|
3446
|
+
label?: string;
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3449
|
+
/**
|
|
3450
|
+
* Create or update the menu identified by menuKey (idempotent per tenant). `items` is the ordered nav tree ([{ label, to, items? }]).
|
|
3451
|
+
*/
|
|
3452
|
+
export type MenuUpsertRequest = {
|
|
3453
|
+
/**
|
|
3454
|
+
* Ordered menu entries ({ label, to?, items? }).
|
|
3455
|
+
*/
|
|
3456
|
+
items?: object[];
|
|
3457
|
+
/**
|
|
3458
|
+
*
|
|
3459
|
+
*/
|
|
3460
|
+
label: string;
|
|
3461
|
+
/**
|
|
3462
|
+
* Stable menu identifier, e.g. "main", "footer", "account".
|
|
3463
|
+
*/
|
|
3464
|
+
menuKey: string;
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3173
3467
|
/**
|
|
3174
3468
|
*
|
|
3175
3469
|
*/
|
|
@@ -3177,11 +3471,11 @@ export namespace Models {
|
|
|
3177
3471
|
/**
|
|
3178
3472
|
*
|
|
3179
3473
|
*/
|
|
3180
|
-
langcode?: string;
|
|
3474
|
+
langcode?: string | null;
|
|
3181
3475
|
/**
|
|
3182
3476
|
*
|
|
3183
3477
|
*/
|
|
3184
|
-
payload?: object;
|
|
3478
|
+
payload?: object | null;
|
|
3185
3479
|
/**
|
|
3186
3480
|
* Mutation plugin id (add, move, delete, duplicate, update_field_value, ...).
|
|
3187
3481
|
*/
|
|
@@ -3731,179 +4025,559 @@ export namespace Models {
|
|
|
3731
4025
|
/**
|
|
3732
4026
|
*
|
|
3733
4027
|
*/
|
|
3734
|
-
id?: string;
|
|
4028
|
+
id?: string;
|
|
4029
|
+
/**
|
|
4030
|
+
*
|
|
4031
|
+
*/
|
|
4032
|
+
line_total?: number;
|
|
4033
|
+
/**
|
|
4034
|
+
*
|
|
4035
|
+
*/
|
|
4036
|
+
metadata?: object | null;
|
|
4037
|
+
/**
|
|
4038
|
+
*
|
|
4039
|
+
*/
|
|
4040
|
+
name?: string;
|
|
4041
|
+
/**
|
|
4042
|
+
*
|
|
4043
|
+
*/
|
|
4044
|
+
order_id?: string;
|
|
4045
|
+
/**
|
|
4046
|
+
*
|
|
4047
|
+
*/
|
|
4048
|
+
position?: number;
|
|
4049
|
+
/**
|
|
4050
|
+
*
|
|
4051
|
+
*/
|
|
4052
|
+
position_text?: string | null;
|
|
4053
|
+
/**
|
|
4054
|
+
*
|
|
4055
|
+
*/
|
|
4056
|
+
product?: object | null;
|
|
4057
|
+
/**
|
|
4058
|
+
*
|
|
4059
|
+
*/
|
|
4060
|
+
product_id?: string | null;
|
|
4061
|
+
/**
|
|
4062
|
+
*
|
|
4063
|
+
*/
|
|
4064
|
+
quantity?: number;
|
|
4065
|
+
/**
|
|
4066
|
+
*
|
|
4067
|
+
*/
|
|
4068
|
+
quantity_cancelled?: number;
|
|
4069
|
+
/**
|
|
4070
|
+
*
|
|
4071
|
+
*/
|
|
4072
|
+
quantity_returned?: number;
|
|
4073
|
+
/**
|
|
4074
|
+
*
|
|
4075
|
+
*/
|
|
4076
|
+
quantity_shipped?: number;
|
|
4077
|
+
/**
|
|
4078
|
+
*
|
|
4079
|
+
*/
|
|
4080
|
+
sku?: string | null;
|
|
4081
|
+
/**
|
|
4082
|
+
*
|
|
4083
|
+
*/
|
|
4084
|
+
tax_amount?: number;
|
|
4085
|
+
/**
|
|
4086
|
+
*
|
|
4087
|
+
*/
|
|
4088
|
+
tax_rate?: number;
|
|
4089
|
+
/**
|
|
4090
|
+
*
|
|
4091
|
+
*/
|
|
4092
|
+
type?: string;
|
|
4093
|
+
/**
|
|
4094
|
+
*
|
|
4095
|
+
*/
|
|
4096
|
+
unit?: string | null;
|
|
4097
|
+
/**
|
|
4098
|
+
*
|
|
4099
|
+
*/
|
|
4100
|
+
unit_price?: number;
|
|
4101
|
+
/**
|
|
4102
|
+
*
|
|
4103
|
+
*/
|
|
4104
|
+
updated_at?: string;
|
|
4105
|
+
/**
|
|
4106
|
+
*
|
|
4107
|
+
*/
|
|
4108
|
+
user_data?: object | null;
|
|
4109
|
+
}
|
|
4110
|
+
|
|
4111
|
+
/**
|
|
4112
|
+
* A position of the placed order — needs an identity: 'name' or 'sku'. Items are SNAPSHOTS: carry the product copy, prices are frozen at place-time.
|
|
4113
|
+
*/
|
|
4114
|
+
export type OrderItemCreateRequest = {
|
|
4115
|
+
/**
|
|
4116
|
+
* Free-form configuration of configured lines.
|
|
4117
|
+
*/
|
|
4118
|
+
configuration?: object | null;
|
|
4119
|
+
/**
|
|
4120
|
+
*
|
|
4121
|
+
*/
|
|
4122
|
+
cost_center?: string | null;
|
|
4123
|
+
/**
|
|
4124
|
+
* Free-form metadata.
|
|
4125
|
+
*/
|
|
4126
|
+
metadata?: object | null;
|
|
4127
|
+
/**
|
|
4128
|
+
* Falls back to 'sku' when omitted.
|
|
4129
|
+
*/
|
|
4130
|
+
name?: string | null;
|
|
4131
|
+
/**
|
|
4132
|
+
* Explicit position number; otherwise numbered in steps of the order range's position_step.
|
|
4133
|
+
*/
|
|
4134
|
+
position?: number | null;
|
|
4135
|
+
/**
|
|
4136
|
+
*
|
|
4137
|
+
*/
|
|
4138
|
+
position_text?: string | null;
|
|
4139
|
+
/**
|
|
4140
|
+
* Frozen product snapshot at place-time ('snapshot' is accepted as an alias).
|
|
4141
|
+
*/
|
|
4142
|
+
product?: object | null;
|
|
4143
|
+
/**
|
|
4144
|
+
*
|
|
4145
|
+
*/
|
|
4146
|
+
product_id?: string | null;
|
|
4147
|
+
/**
|
|
4148
|
+
* Default 1.
|
|
4149
|
+
*/
|
|
4150
|
+
quantity?: number | null;
|
|
4151
|
+
/**
|
|
4152
|
+
*
|
|
4153
|
+
*/
|
|
4154
|
+
sku?: string | null;
|
|
4155
|
+
/**
|
|
4156
|
+
* Alias for 'product'.
|
|
4157
|
+
*/
|
|
4158
|
+
snapshot?: object | null;
|
|
4159
|
+
/**
|
|
4160
|
+
* Derived from line_total and tax_rate when omitted.
|
|
4161
|
+
*/
|
|
4162
|
+
tax_amount?: number | null;
|
|
4163
|
+
/**
|
|
4164
|
+
* Percent (default 0).
|
|
4165
|
+
*/
|
|
4166
|
+
tax_rate?: number | null;
|
|
4167
|
+
/**
|
|
4168
|
+
* Line type (default 'product').
|
|
4169
|
+
*/
|
|
4170
|
+
type?: OrderItemType;
|
|
4171
|
+
/**
|
|
4172
|
+
*
|
|
4173
|
+
*/
|
|
4174
|
+
unit?: string | null;
|
|
4175
|
+
/**
|
|
4176
|
+
* Per-unit net price — line_total is always derived.
|
|
4177
|
+
*/
|
|
4178
|
+
unit_price?: number | null;
|
|
4179
|
+
/**
|
|
4180
|
+
* Free-form user data.
|
|
4181
|
+
*/
|
|
4182
|
+
user_data?: object | null;
|
|
4183
|
+
}
|
|
4184
|
+
|
|
4185
|
+
/**
|
|
4186
|
+
*
|
|
4187
|
+
*/
|
|
4188
|
+
export type OrderItemsCancelRequest = {
|
|
4189
|
+
/**
|
|
4190
|
+
* Acting user/system.
|
|
4191
|
+
*/
|
|
4192
|
+
cancelled_by?: string;
|
|
4193
|
+
/**
|
|
4194
|
+
*
|
|
4195
|
+
*/
|
|
4196
|
+
positions: OrderCancelPosition[];
|
|
4197
|
+
/**
|
|
4198
|
+
*
|
|
4199
|
+
*/
|
|
4200
|
+
reason?: string;
|
|
4201
|
+
}
|
|
4202
|
+
|
|
4203
|
+
/**
|
|
4204
|
+
*
|
|
4205
|
+
*/
|
|
4206
|
+
export type OrderList = {
|
|
4207
|
+
/**
|
|
4208
|
+
*
|
|
4209
|
+
*/
|
|
4210
|
+
created_at?: string;
|
|
4211
|
+
/**
|
|
4212
|
+
*
|
|
4213
|
+
*/
|
|
4214
|
+
id?: string;
|
|
4215
|
+
/**
|
|
4216
|
+
*
|
|
4217
|
+
*/
|
|
4218
|
+
kind?: string;
|
|
4219
|
+
/**
|
|
4220
|
+
*
|
|
4221
|
+
*/
|
|
4222
|
+
metadata?: object | null;
|
|
4223
|
+
/**
|
|
4224
|
+
*
|
|
4225
|
+
*/
|
|
4226
|
+
name?: string;
|
|
4227
|
+
/**
|
|
4228
|
+
*
|
|
4229
|
+
*/
|
|
4230
|
+
organization_id?: string | null;
|
|
4231
|
+
/**
|
|
4232
|
+
*
|
|
4233
|
+
*/
|
|
4234
|
+
owner_id?: string;
|
|
4235
|
+
/**
|
|
4236
|
+
*
|
|
4237
|
+
*/
|
|
4238
|
+
owner_name?: string;
|
|
4239
|
+
/**
|
|
4240
|
+
*
|
|
4241
|
+
*/
|
|
4242
|
+
shared?: boolean;
|
|
4243
|
+
/**
|
|
4244
|
+
*
|
|
4245
|
+
*/
|
|
4246
|
+
updated_at?: string;
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
/**
|
|
4250
|
+
*
|
|
4251
|
+
*/
|
|
4252
|
+
export type OrderListCreateRequest = {
|
|
4253
|
+
/**
|
|
4254
|
+
* Optional initial positions.
|
|
4255
|
+
*/
|
|
4256
|
+
items?: OrderListItemInput[];
|
|
4257
|
+
/**
|
|
4258
|
+
* List kind (default 'shopping').
|
|
4259
|
+
*/
|
|
4260
|
+
kind?: OrderListKind;
|
|
4261
|
+
/**
|
|
4262
|
+
*
|
|
4263
|
+
*/
|
|
4264
|
+
metadata?: object | null;
|
|
4265
|
+
/**
|
|
4266
|
+
*
|
|
4267
|
+
*/
|
|
4268
|
+
name: string;
|
|
4269
|
+
/**
|
|
4270
|
+
* Owning organization (scopes public sharing).
|
|
4271
|
+
*/
|
|
4272
|
+
organization_id?: string | null;
|
|
4273
|
+
/**
|
|
4274
|
+
* Owning contact.
|
|
4275
|
+
*/
|
|
4276
|
+
owner_id: string;
|
|
4277
|
+
/**
|
|
4278
|
+
* Owner display name (snapshot).
|
|
4279
|
+
*/
|
|
4280
|
+
owner_name: string;
|
|
4281
|
+
/**
|
|
4282
|
+
* Shared read-only across the organization (default false).
|
|
4283
|
+
*/
|
|
4284
|
+
shared?: boolean;
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
/**
|
|
4288
|
+
*
|
|
4289
|
+
*/
|
|
4290
|
+
export type OrderListItem = {
|
|
4291
|
+
/**
|
|
4292
|
+
*
|
|
4293
|
+
*/
|
|
4294
|
+
category_slug?: string | null;
|
|
4295
|
+
/**
|
|
4296
|
+
*
|
|
4297
|
+
*/
|
|
4298
|
+
cost_center_id?: string | null;
|
|
4299
|
+
/**
|
|
4300
|
+
*
|
|
4301
|
+
*/
|
|
4302
|
+
created_at?: string;
|
|
4303
|
+
/**
|
|
4304
|
+
*
|
|
4305
|
+
*/
|
|
4306
|
+
custom_sku?: string | null;
|
|
4307
|
+
/**
|
|
4308
|
+
*
|
|
4309
|
+
*/
|
|
4310
|
+
id?: string;
|
|
4311
|
+
/**
|
|
4312
|
+
*
|
|
4313
|
+
*/
|
|
4314
|
+
image?: string | null;
|
|
4315
|
+
/**
|
|
4316
|
+
*
|
|
4317
|
+
*/
|
|
4318
|
+
list_id?: string;
|
|
4319
|
+
/**
|
|
4320
|
+
*
|
|
4321
|
+
*/
|
|
4322
|
+
metadata?: object | null;
|
|
4323
|
+
/**
|
|
4324
|
+
*
|
|
4325
|
+
*/
|
|
4326
|
+
name?: string;
|
|
4327
|
+
/**
|
|
4328
|
+
*
|
|
4329
|
+
*/
|
|
4330
|
+
position?: number;
|
|
4331
|
+
/**
|
|
4332
|
+
*
|
|
4333
|
+
*/
|
|
4334
|
+
position_texts?: object | null;
|
|
4335
|
+
/**
|
|
4336
|
+
*
|
|
4337
|
+
*/
|
|
4338
|
+
price?: number | null;
|
|
4339
|
+
/**
|
|
4340
|
+
*
|
|
4341
|
+
*/
|
|
4342
|
+
product_id?: string | null;
|
|
4343
|
+
/**
|
|
4344
|
+
*
|
|
4345
|
+
*/
|
|
4346
|
+
quantity?: number;
|
|
3735
4347
|
/**
|
|
3736
4348
|
*
|
|
3737
4349
|
*/
|
|
3738
|
-
|
|
4350
|
+
sku?: string | null;
|
|
3739
4351
|
/**
|
|
3740
4352
|
*
|
|
3741
4353
|
*/
|
|
3742
|
-
|
|
4354
|
+
subcategory_slug?: string | null;
|
|
3743
4355
|
/**
|
|
3744
4356
|
*
|
|
3745
4357
|
*/
|
|
3746
|
-
|
|
4358
|
+
tax_rate?: number | null;
|
|
3747
4359
|
/**
|
|
3748
4360
|
*
|
|
3749
4361
|
*/
|
|
3750
|
-
|
|
4362
|
+
unit?: string | null;
|
|
3751
4363
|
/**
|
|
3752
4364
|
*
|
|
3753
4365
|
*/
|
|
3754
|
-
|
|
4366
|
+
updated_at?: string;
|
|
4367
|
+
}
|
|
4368
|
+
|
|
4369
|
+
/**
|
|
4370
|
+
*
|
|
4371
|
+
*/
|
|
4372
|
+
export type OrderListItemInput = {
|
|
3755
4373
|
/**
|
|
3756
4374
|
*
|
|
3757
4375
|
*/
|
|
3758
|
-
|
|
4376
|
+
category_slug?: string | null;
|
|
3759
4377
|
/**
|
|
3760
|
-
*
|
|
4378
|
+
* Cost center reference (free-text).
|
|
3761
4379
|
*/
|
|
3762
|
-
|
|
4380
|
+
cost_center_id?: string | null;
|
|
3763
4381
|
/**
|
|
3764
|
-
*
|
|
4382
|
+
* Customer's own article number.
|
|
3765
4383
|
*/
|
|
3766
|
-
|
|
4384
|
+
custom_sku?: string | null;
|
|
3767
4385
|
/**
|
|
3768
4386
|
*
|
|
3769
4387
|
*/
|
|
3770
|
-
|
|
4388
|
+
image?: string | null;
|
|
3771
4389
|
/**
|
|
3772
4390
|
*
|
|
3773
4391
|
*/
|
|
3774
|
-
|
|
4392
|
+
metadata?: object | null;
|
|
3775
4393
|
/**
|
|
3776
|
-
*
|
|
4394
|
+
* Display name (snapshot).
|
|
3777
4395
|
*/
|
|
3778
|
-
|
|
4396
|
+
name: string;
|
|
3779
4397
|
/**
|
|
3780
|
-
*
|
|
4398
|
+
* Sort order (assigned automatically when omitted).
|
|
3781
4399
|
*/
|
|
3782
|
-
|
|
4400
|
+
position?: number;
|
|
3783
4401
|
/**
|
|
3784
|
-
*
|
|
4402
|
+
* Per-position notes.
|
|
3785
4403
|
*/
|
|
3786
|
-
|
|
4404
|
+
position_texts?: string[] | null;
|
|
3787
4405
|
/**
|
|
3788
|
-
*
|
|
4406
|
+
* Unit price snapshot.
|
|
3789
4407
|
*/
|
|
3790
|
-
|
|
4408
|
+
price?: number | null;
|
|
3791
4409
|
/**
|
|
3792
|
-
*
|
|
4410
|
+
* Catalog product (alternative to sku).
|
|
3793
4411
|
*/
|
|
3794
|
-
|
|
4412
|
+
product_id?: string | null;
|
|
3795
4413
|
/**
|
|
3796
|
-
*
|
|
4414
|
+
* Default 1.
|
|
3797
4415
|
*/
|
|
3798
|
-
|
|
4416
|
+
quantity?: number;
|
|
3799
4417
|
/**
|
|
3800
|
-
*
|
|
4418
|
+
* Article SKU (alternative to product_id).
|
|
3801
4419
|
*/
|
|
3802
|
-
|
|
4420
|
+
sku?: string | null;
|
|
3803
4421
|
/**
|
|
3804
4422
|
*
|
|
3805
4423
|
*/
|
|
3806
|
-
|
|
4424
|
+
subcategory_slug?: string | null;
|
|
3807
4425
|
/**
|
|
3808
4426
|
*
|
|
3809
4427
|
*/
|
|
3810
|
-
|
|
4428
|
+
tax_rate?: number | null;
|
|
3811
4429
|
/**
|
|
3812
4430
|
*
|
|
3813
4431
|
*/
|
|
3814
|
-
|
|
4432
|
+
unit?: string | null;
|
|
3815
4433
|
}
|
|
3816
4434
|
|
|
3817
4435
|
/**
|
|
3818
|
-
*
|
|
4436
|
+
* Partial update — omitted fields keep their current value.
|
|
3819
4437
|
*/
|
|
3820
|
-
export type
|
|
4438
|
+
export type OrderListItemUpdateRequest = {
|
|
3821
4439
|
/**
|
|
3822
|
-
*
|
|
4440
|
+
*
|
|
4441
|
+
*/
|
|
4442
|
+
category_slug?: string | null;
|
|
4443
|
+
/**
|
|
4444
|
+
* Cost center reference (free-text).
|
|
4445
|
+
*/
|
|
4446
|
+
cost_center_id?: string | null;
|
|
4447
|
+
/**
|
|
4448
|
+
* Customer's own article number.
|
|
3823
4449
|
*/
|
|
3824
|
-
|
|
4450
|
+
custom_sku?: string | null;
|
|
3825
4451
|
/**
|
|
3826
4452
|
*
|
|
3827
4453
|
*/
|
|
3828
|
-
|
|
4454
|
+
image?: string | null;
|
|
3829
4455
|
/**
|
|
3830
|
-
*
|
|
4456
|
+
*
|
|
3831
4457
|
*/
|
|
3832
|
-
metadata?: object;
|
|
4458
|
+
metadata?: object | null;
|
|
3833
4459
|
/**
|
|
3834
|
-
*
|
|
4460
|
+
* Display name (snapshot).
|
|
3835
4461
|
*/
|
|
3836
4462
|
name?: string;
|
|
3837
4463
|
/**
|
|
3838
|
-
*
|
|
4464
|
+
* Sort order (assigned automatically when omitted).
|
|
3839
4465
|
*/
|
|
3840
4466
|
position?: number;
|
|
3841
4467
|
/**
|
|
3842
|
-
*
|
|
4468
|
+
* Per-position notes.
|
|
3843
4469
|
*/
|
|
3844
|
-
|
|
4470
|
+
position_texts?: string[] | null;
|
|
3845
4471
|
/**
|
|
3846
|
-
*
|
|
4472
|
+
* Unit price snapshot.
|
|
3847
4473
|
*/
|
|
3848
|
-
|
|
4474
|
+
price?: number | null;
|
|
3849
4475
|
/**
|
|
3850
|
-
*
|
|
4476
|
+
* Catalog product (alternative to sku).
|
|
3851
4477
|
*/
|
|
3852
|
-
product_id?: string;
|
|
4478
|
+
product_id?: string | null;
|
|
3853
4479
|
/**
|
|
3854
4480
|
* Default 1.
|
|
3855
4481
|
*/
|
|
3856
4482
|
quantity?: number;
|
|
4483
|
+
/**
|
|
4484
|
+
* Article SKU (alternative to product_id).
|
|
4485
|
+
*/
|
|
4486
|
+
sku?: string | null;
|
|
3857
4487
|
/**
|
|
3858
4488
|
*
|
|
3859
4489
|
*/
|
|
3860
|
-
|
|
4490
|
+
subcategory_slug?: string | null;
|
|
3861
4491
|
/**
|
|
3862
|
-
*
|
|
4492
|
+
*
|
|
3863
4493
|
*/
|
|
3864
|
-
|
|
4494
|
+
tax_rate?: number | null;
|
|
3865
4495
|
/**
|
|
3866
|
-
*
|
|
4496
|
+
*
|
|
3867
4497
|
*/
|
|
3868
|
-
|
|
4498
|
+
unit?: string | null;
|
|
4499
|
+
}
|
|
4500
|
+
|
|
4501
|
+
/**
|
|
4502
|
+
* Replace ALL positions of the list (set semantics).
|
|
4503
|
+
*/
|
|
4504
|
+
export type OrderListItemsReplaceRequest = {
|
|
3869
4505
|
/**
|
|
3870
|
-
*
|
|
4506
|
+
* The new full set of positions.
|
|
3871
4507
|
*/
|
|
3872
|
-
|
|
4508
|
+
items: OrderListItemInput[];
|
|
4509
|
+
}
|
|
4510
|
+
|
|
4511
|
+
/**
|
|
4512
|
+
* Partial update — rename, visibility or kind. Positions go through the items routes.
|
|
4513
|
+
*/
|
|
4514
|
+
export type OrderListUpdateRequest = {
|
|
3873
4515
|
/**
|
|
3874
|
-
*
|
|
4516
|
+
* List kind (default 'shopping').
|
|
3875
4517
|
*/
|
|
3876
|
-
|
|
4518
|
+
kind?: OrderListKind;
|
|
3877
4519
|
/**
|
|
3878
4520
|
*
|
|
3879
4521
|
*/
|
|
3880
|
-
|
|
4522
|
+
metadata?: object | null;
|
|
3881
4523
|
/**
|
|
3882
|
-
*
|
|
4524
|
+
*
|
|
3883
4525
|
*/
|
|
3884
|
-
|
|
4526
|
+
name?: string;
|
|
3885
4527
|
/**
|
|
3886
|
-
*
|
|
4528
|
+
*
|
|
3887
4529
|
*/
|
|
3888
|
-
|
|
4530
|
+
shared?: boolean;
|
|
3889
4531
|
}
|
|
3890
4532
|
|
|
3891
4533
|
/**
|
|
3892
4534
|
*
|
|
3893
4535
|
*/
|
|
3894
|
-
export type
|
|
4536
|
+
export type OrderListWithItems = {
|
|
3895
4537
|
/**
|
|
3896
|
-
*
|
|
4538
|
+
*
|
|
3897
4539
|
*/
|
|
3898
|
-
|
|
4540
|
+
created_at?: string;
|
|
3899
4541
|
/**
|
|
3900
4542
|
*
|
|
3901
4543
|
*/
|
|
3902
|
-
|
|
4544
|
+
id?: string;
|
|
3903
4545
|
/**
|
|
3904
4546
|
*
|
|
3905
4547
|
*/
|
|
3906
|
-
|
|
4548
|
+
items?: OrderListItem[];
|
|
4549
|
+
/**
|
|
4550
|
+
*
|
|
4551
|
+
*/
|
|
4552
|
+
kind?: string;
|
|
4553
|
+
/**
|
|
4554
|
+
*
|
|
4555
|
+
*/
|
|
4556
|
+
metadata?: object | null;
|
|
4557
|
+
/**
|
|
4558
|
+
*
|
|
4559
|
+
*/
|
|
4560
|
+
name?: string;
|
|
4561
|
+
/**
|
|
4562
|
+
*
|
|
4563
|
+
*/
|
|
4564
|
+
organization_id?: string | null;
|
|
4565
|
+
/**
|
|
4566
|
+
*
|
|
4567
|
+
*/
|
|
4568
|
+
owner_id?: string;
|
|
4569
|
+
/**
|
|
4570
|
+
*
|
|
4571
|
+
*/
|
|
4572
|
+
owner_name?: string;
|
|
4573
|
+
/**
|
|
4574
|
+
*
|
|
4575
|
+
*/
|
|
4576
|
+
shared?: boolean;
|
|
4577
|
+
/**
|
|
4578
|
+
*
|
|
4579
|
+
*/
|
|
4580
|
+
updated_at?: string;
|
|
3907
4581
|
}
|
|
3908
4582
|
|
|
3909
4583
|
/**
|
|
@@ -4011,35 +4685,35 @@ export namespace Models {
|
|
|
4011
4685
|
/**
|
|
4012
4686
|
* Frozen billing address.
|
|
4013
4687
|
*/
|
|
4014
|
-
billing_address?: object;
|
|
4688
|
+
billing_address?: object | null;
|
|
4015
4689
|
/**
|
|
4016
4690
|
* Frozen buyer snapshot (name, email, …).
|
|
4017
4691
|
*/
|
|
4018
|
-
buyer?: object;
|
|
4692
|
+
buyer?: object | null;
|
|
4019
4693
|
/**
|
|
4020
4694
|
* Source cart (the carts.order hand-over).
|
|
4021
4695
|
*/
|
|
4022
|
-
cart_id?: string;
|
|
4696
|
+
cart_id?: string | null;
|
|
4023
4697
|
/**
|
|
4024
4698
|
*
|
|
4025
4699
|
*/
|
|
4026
|
-
channel_id?: string;
|
|
4700
|
+
channel_id?: string | null;
|
|
4027
4701
|
/**
|
|
4028
4702
|
* Ordering customer contact.
|
|
4029
4703
|
*/
|
|
4030
|
-
contact_id?: string;
|
|
4704
|
+
contact_id?: string | null;
|
|
4031
4705
|
/**
|
|
4032
4706
|
* ISO 4217 code (default EUR).
|
|
4033
4707
|
*/
|
|
4034
|
-
currency?: string;
|
|
4708
|
+
currency?: string | null;
|
|
4035
4709
|
/**
|
|
4036
4710
|
* The buyer's own order/PO number.
|
|
4037
4711
|
*/
|
|
4038
|
-
customer_order_number?: string;
|
|
4712
|
+
customer_order_number?: string | null;
|
|
4039
4713
|
/**
|
|
4040
4714
|
* Override — computed as subtotal + shipping + tax when omitted.
|
|
4041
4715
|
*/
|
|
4042
|
-
grand_total?: number;
|
|
4716
|
+
grand_total?: number | null;
|
|
4043
4717
|
/**
|
|
4044
4718
|
* The order positions (at most 500).
|
|
4045
4719
|
*/
|
|
@@ -4047,35 +4721,35 @@ export namespace Models {
|
|
|
4047
4721
|
/**
|
|
4048
4722
|
*
|
|
4049
4723
|
*/
|
|
4050
|
-
market_id?: string;
|
|
4724
|
+
market_id?: string | null;
|
|
4051
4725
|
/**
|
|
4052
4726
|
* Free-form metadata.
|
|
4053
4727
|
*/
|
|
4054
|
-
metadata?: object;
|
|
4728
|
+
metadata?: object | null;
|
|
4055
4729
|
/**
|
|
4056
4730
|
* B2B organization.
|
|
4057
4731
|
*/
|
|
4058
|
-
organization_id?: string;
|
|
4732
|
+
organization_id?: string | null;
|
|
4059
4733
|
/**
|
|
4060
4734
|
* Frozen payment snapshot — a known 'payment.status' seeds payment_status (otherwise 'open').
|
|
4061
4735
|
*/
|
|
4062
|
-
payment?: object;
|
|
4736
|
+
payment?: object | null;
|
|
4063
4737
|
/**
|
|
4064
4738
|
* Frozen shipping snapshot — 'shipping.price' seeds shipping_total.
|
|
4065
4739
|
*/
|
|
4066
|
-
shipping?: object;
|
|
4740
|
+
shipping?: object | null;
|
|
4067
4741
|
/**
|
|
4068
4742
|
* Frozen shipping address.
|
|
4069
4743
|
*/
|
|
4070
|
-
shipping_address?: object;
|
|
4744
|
+
shipping_address?: object | null;
|
|
4071
4745
|
/**
|
|
4072
4746
|
* Shipping total (fallback when 'shipping.price' is absent).
|
|
4073
4747
|
*/
|
|
4074
|
-
shipping_total?: number;
|
|
4748
|
+
shipping_total?: number | null;
|
|
4075
4749
|
/**
|
|
4076
4750
|
* Free-form user data.
|
|
4077
4751
|
*/
|
|
4078
|
-
user_data?: object;
|
|
4752
|
+
user_data?: object | null;
|
|
4079
4753
|
}
|
|
4080
4754
|
|
|
4081
4755
|
/**
|
|
@@ -4487,23 +5161,23 @@ export namespace Models {
|
|
|
4487
5161
|
/**
|
|
4488
5162
|
*
|
|
4489
5163
|
*/
|
|
4490
|
-
bundle?: string;
|
|
5164
|
+
bundle?: string | null;
|
|
4491
5165
|
/**
|
|
4492
5166
|
*
|
|
4493
5167
|
*/
|
|
4494
|
-
hostOptions?: object;
|
|
5168
|
+
hostOptions?: object | null;
|
|
4495
5169
|
/**
|
|
4496
5170
|
*
|
|
4497
5171
|
*/
|
|
4498
|
-
meta?: object;
|
|
5172
|
+
meta?: object | null;
|
|
4499
5173
|
/**
|
|
4500
5174
|
*
|
|
4501
5175
|
*/
|
|
4502
|
-
slug?: string;
|
|
5176
|
+
slug?: string | null;
|
|
4503
5177
|
/**
|
|
4504
5178
|
*
|
|
4505
5179
|
*/
|
|
4506
|
-
sourceLanguage?: string;
|
|
5180
|
+
sourceLanguage?: string | null;
|
|
4507
5181
|
/**
|
|
4508
5182
|
*
|
|
4509
5183
|
*/
|
|
@@ -4689,15 +5363,15 @@ export namespace Models {
|
|
|
4689
5363
|
/**
|
|
4690
5364
|
* The cart this payment pays for.
|
|
4691
5365
|
*/
|
|
4692
|
-
cart_id?: string;
|
|
5366
|
+
cart_id?: string | null;
|
|
4693
5367
|
/**
|
|
4694
5368
|
* Paying customer contact.
|
|
4695
5369
|
*/
|
|
4696
|
-
contact_id?: string;
|
|
5370
|
+
contact_id?: string | null;
|
|
4697
5371
|
/**
|
|
4698
5372
|
* Buyer ISO country code for the eligibility check.
|
|
4699
5373
|
*/
|
|
4700
|
-
country?: string;
|
|
5374
|
+
country?: string | null;
|
|
4701
5375
|
/**
|
|
4702
5376
|
* ISO 4217 code (default EUR).
|
|
4703
5377
|
*/
|
|
@@ -4705,11 +5379,11 @@ export namespace Models {
|
|
|
4705
5379
|
/**
|
|
4706
5380
|
* Same key answers the same payment instead of a duplicate.
|
|
4707
5381
|
*/
|
|
4708
|
-
idempotency_key?: string;
|
|
5382
|
+
idempotency_key?: string | null;
|
|
4709
5383
|
/**
|
|
4710
5384
|
* Free-form metadata.
|
|
4711
5385
|
*/
|
|
4712
|
-
metadata?: object;
|
|
5386
|
+
metadata?: object | null;
|
|
4713
5387
|
/**
|
|
4714
5388
|
* Code of a configured payment method.
|
|
4715
5389
|
*/
|
|
@@ -4717,11 +5391,11 @@ export namespace Models {
|
|
|
4717
5391
|
/**
|
|
4718
5392
|
* External order reference — also the webhook fallback key.
|
|
4719
5393
|
*/
|
|
4720
|
-
order_ref?: string;
|
|
5394
|
+
order_ref?: string | null;
|
|
4721
5395
|
/**
|
|
4722
5396
|
* Where the PSP redirect flow returns the buyer to.
|
|
4723
5397
|
*/
|
|
4724
|
-
return_url?: string;
|
|
5398
|
+
return_url?: string | null;
|
|
4725
5399
|
}
|
|
4726
5400
|
|
|
4727
5401
|
/**
|
|
@@ -4731,15 +5405,15 @@ export namespace Models {
|
|
|
4731
5405
|
/**
|
|
4732
5406
|
* Order amount the fees are computed against (default 0).
|
|
4733
5407
|
*/
|
|
4734
|
-
amount?: number;
|
|
5408
|
+
amount?: number | null;
|
|
4735
5409
|
/**
|
|
4736
5410
|
* Buyer ISO country code — methods with country restrictions need it.
|
|
4737
5411
|
*/
|
|
4738
|
-
country?: string;
|
|
5412
|
+
country?: string | null;
|
|
4739
5413
|
/**
|
|
4740
5414
|
* ISO 4217 code (default EUR).
|
|
4741
5415
|
*/
|
|
4742
|
-
currency?: string;
|
|
5416
|
+
currency?: string | null;
|
|
4743
5417
|
}
|
|
4744
5418
|
|
|
4745
5419
|
/**
|
|
@@ -4835,11 +5509,11 @@ export namespace Models {
|
|
|
4835
5509
|
/**
|
|
4836
5510
|
* Allowed ISO country codes — empty/omitted = unrestricted.
|
|
4837
5511
|
*/
|
|
4838
|
-
countries?: string[];
|
|
5512
|
+
countries?: string[] | null;
|
|
4839
5513
|
/**
|
|
4840
5514
|
*
|
|
4841
5515
|
*/
|
|
4842
|
-
description?: string;
|
|
5516
|
+
description?: string | null;
|
|
4843
5517
|
/**
|
|
4844
5518
|
* Disabled methods are never eligible (default false).
|
|
4845
5519
|
*/
|
|
@@ -4863,19 +5537,19 @@ export namespace Models {
|
|
|
4863
5537
|
/**
|
|
4864
5538
|
* Localized display names ({ de, en, … }).
|
|
4865
5539
|
*/
|
|
4866
|
-
labels?: object;
|
|
5540
|
+
labels?: object | null;
|
|
4867
5541
|
/**
|
|
4868
5542
|
* Maximum order amount — omitted = no upper bound.
|
|
4869
5543
|
*/
|
|
4870
|
-
max_order_value?: number;
|
|
5544
|
+
max_order_value?: number | null;
|
|
4871
5545
|
/**
|
|
4872
5546
|
* Free-form metadata.
|
|
4873
5547
|
*/
|
|
4874
|
-
metadata?: object;
|
|
5548
|
+
metadata?: object | null;
|
|
4875
5549
|
/**
|
|
4876
5550
|
* Minimum order amount — omitted = no lower bound.
|
|
4877
5551
|
*/
|
|
4878
|
-
min_order_value?: number;
|
|
5552
|
+
min_order_value?: number | null;
|
|
4879
5553
|
/**
|
|
4880
5554
|
* Display name.
|
|
4881
5555
|
*/
|
|
@@ -4887,11 +5561,11 @@ export namespace Models {
|
|
|
4887
5561
|
/**
|
|
4888
5562
|
* PSP code from the catalog — only for kind 'psp'.
|
|
4889
5563
|
*/
|
|
4890
|
-
provider?: string;
|
|
5564
|
+
provider?: string | null;
|
|
4891
5565
|
/**
|
|
4892
5566
|
* The provider's payment method id (e.g. 'card', 'paypal').
|
|
4893
5567
|
*/
|
|
4894
|
-
provider_method?: string;
|
|
5568
|
+
provider_method?: string | null;
|
|
4895
5569
|
}
|
|
4896
5570
|
|
|
4897
5571
|
/**
|
|
@@ -4905,11 +5579,11 @@ export namespace Models {
|
|
|
4905
5579
|
/**
|
|
4906
5580
|
* Allowed ISO country codes — empty/omitted = unrestricted.
|
|
4907
5581
|
*/
|
|
4908
|
-
countries?: string[];
|
|
5582
|
+
countries?: string[] | null;
|
|
4909
5583
|
/**
|
|
4910
5584
|
*
|
|
4911
5585
|
*/
|
|
4912
|
-
description?: string;
|
|
5586
|
+
description?: string | null;
|
|
4913
5587
|
/**
|
|
4914
5588
|
* Disabled methods are never eligible (default false).
|
|
4915
5589
|
*/
|
|
@@ -4933,19 +5607,19 @@ export namespace Models {
|
|
|
4933
5607
|
/**
|
|
4934
5608
|
* Localized display names ({ de, en, … }).
|
|
4935
5609
|
*/
|
|
4936
|
-
labels?: object;
|
|
5610
|
+
labels?: object | null;
|
|
4937
5611
|
/**
|
|
4938
5612
|
* Maximum order amount — omitted = no upper bound.
|
|
4939
5613
|
*/
|
|
4940
|
-
max_order_value?: number;
|
|
5614
|
+
max_order_value?: number | null;
|
|
4941
5615
|
/**
|
|
4942
5616
|
* Free-form metadata.
|
|
4943
5617
|
*/
|
|
4944
|
-
metadata?: object;
|
|
5618
|
+
metadata?: object | null;
|
|
4945
5619
|
/**
|
|
4946
5620
|
* Minimum order amount — omitted = no lower bound.
|
|
4947
5621
|
*/
|
|
4948
|
-
min_order_value?: number;
|
|
5622
|
+
min_order_value?: number | null;
|
|
4949
5623
|
/**
|
|
4950
5624
|
* Display name.
|
|
4951
5625
|
*/
|
|
@@ -4957,11 +5631,11 @@ export namespace Models {
|
|
|
4957
5631
|
/**
|
|
4958
5632
|
* PSP code from the catalog — only for kind 'psp'.
|
|
4959
5633
|
*/
|
|
4960
|
-
provider?: string;
|
|
5634
|
+
provider?: string | null;
|
|
4961
5635
|
/**
|
|
4962
5636
|
* The provider's payment method id (e.g. 'card', 'paypal').
|
|
4963
5637
|
*/
|
|
4964
|
-
provider_method?: string;
|
|
5638
|
+
provider_method?: string | null;
|
|
4965
5639
|
}
|
|
4966
5640
|
|
|
4967
5641
|
/**
|
|
@@ -5017,19 +5691,19 @@ export namespace Models {
|
|
|
5017
5691
|
/**
|
|
5018
5692
|
* PSP credentials — the catalog's credential_fields say which keys the auth scheme expects.
|
|
5019
5693
|
*/
|
|
5020
|
-
credentials?: object;
|
|
5694
|
+
credentials?: object | null;
|
|
5021
5695
|
/**
|
|
5022
5696
|
* Only enabled providers transact (default false).
|
|
5023
5697
|
*/
|
|
5024
|
-
enabled?: boolean;
|
|
5698
|
+
enabled?: boolean | null;
|
|
5025
5699
|
/**
|
|
5026
5700
|
* Display name — defaults to the catalog label.
|
|
5027
5701
|
*/
|
|
5028
|
-
name?: string;
|
|
5702
|
+
name?: string | null;
|
|
5029
5703
|
/**
|
|
5030
5704
|
* Free-form provider options.
|
|
5031
5705
|
*/
|
|
5032
|
-
options?: object;
|
|
5706
|
+
options?: object | null;
|
|
5033
5707
|
/**
|
|
5034
5708
|
* Provider code — must exist in the catalog (GET /payments/providers/catalog).
|
|
5035
5709
|
*/
|
|
@@ -5037,11 +5711,11 @@ export namespace Models {
|
|
|
5037
5711
|
/**
|
|
5038
5712
|
* Sandbox/test credentials (default true).
|
|
5039
5713
|
*/
|
|
5040
|
-
test_mode?: boolean;
|
|
5714
|
+
test_mode?: boolean | null;
|
|
5041
5715
|
/**
|
|
5042
5716
|
* Shared secret for PSP callback verification.
|
|
5043
5717
|
*/
|
|
5044
|
-
webhook_secret?: string;
|
|
5718
|
+
webhook_secret?: string | null;
|
|
5045
5719
|
}
|
|
5046
5720
|
|
|
5047
5721
|
/**
|
|
@@ -5051,7 +5725,7 @@ export namespace Models {
|
|
|
5051
5725
|
/**
|
|
5052
5726
|
* PSP credentials — the catalog's credential_fields say which keys the auth scheme expects.
|
|
5053
5727
|
*/
|
|
5054
|
-
credentials?: object;
|
|
5728
|
+
credentials?: object | null;
|
|
5055
5729
|
/**
|
|
5056
5730
|
* Only enabled providers transact (default false).
|
|
5057
5731
|
*/
|
|
@@ -5063,7 +5737,7 @@ export namespace Models {
|
|
|
5063
5737
|
/**
|
|
5064
5738
|
* Free-form provider options.
|
|
5065
5739
|
*/
|
|
5066
|
-
options?: object;
|
|
5740
|
+
options?: object | null;
|
|
5067
5741
|
/**
|
|
5068
5742
|
* Provider code — must exist in the catalog (GET /payments/providers/catalog).
|
|
5069
5743
|
*/
|
|
@@ -5075,7 +5749,7 @@ export namespace Models {
|
|
|
5075
5749
|
/**
|
|
5076
5750
|
* Shared secret for PSP callback verification.
|
|
5077
5751
|
*/
|
|
5078
|
-
webhook_secret?: string;
|
|
5752
|
+
webhook_secret?: string | null;
|
|
5079
5753
|
}
|
|
5080
5754
|
|
|
5081
5755
|
/**
|
|
@@ -5091,7 +5765,7 @@ export namespace Models {
|
|
|
5091
5765
|
/**
|
|
5092
5766
|
* The complete new entry set (set semantics).
|
|
5093
5767
|
*/
|
|
5094
|
-
entries:
|
|
5768
|
+
entries: PriceEntryReplaceItem[];
|
|
5095
5769
|
}
|
|
5096
5770
|
|
|
5097
5771
|
/**
|
|
@@ -5159,7 +5833,7 @@ export namespace Models {
|
|
|
5159
5833
|
/**
|
|
5160
5834
|
* Free-form metadata.
|
|
5161
5835
|
*/
|
|
5162
|
-
metadata?: object;
|
|
5836
|
+
metadata?: object | null;
|
|
5163
5837
|
/**
|
|
5164
5838
|
* Default 'standard'; 'on_request' is the explicit no-price marker — it stops resolution and answers "price on request".
|
|
5165
5839
|
*/
|
|
@@ -5167,7 +5841,7 @@ export namespace Models {
|
|
|
5167
5841
|
/**
|
|
5168
5842
|
* Priced product.
|
|
5169
5843
|
*/
|
|
5170
|
-
product_id?: string;
|
|
5844
|
+
product_id?: string | null;
|
|
5171
5845
|
/**
|
|
5172
5846
|
* Tier threshold (Staffelpreis): this price applies from this quantity (default 1).
|
|
5173
5847
|
*/
|
|
@@ -5175,23 +5849,65 @@ export namespace Models {
|
|
|
5175
5849
|
/**
|
|
5176
5850
|
* Priced SKU (alternative to product_id).
|
|
5177
5851
|
*/
|
|
5178
|
-
sku?: string;
|
|
5852
|
+
sku?: string | null;
|
|
5853
|
+
/**
|
|
5854
|
+
*
|
|
5855
|
+
*/
|
|
5856
|
+
unit?: string | null;
|
|
5857
|
+
/**
|
|
5858
|
+
* Per-unit price (default 0).
|
|
5859
|
+
*/
|
|
5860
|
+
unit_price?: number;
|
|
5861
|
+
/**
|
|
5862
|
+
* Per-entry validity start (promo prices).
|
|
5863
|
+
*/
|
|
5864
|
+
valid_from?: string | null;
|
|
5865
|
+
/**
|
|
5866
|
+
* Per-entry validity end.
|
|
5867
|
+
*/
|
|
5868
|
+
valid_until?: string | null;
|
|
5869
|
+
}
|
|
5870
|
+
|
|
5871
|
+
/**
|
|
5872
|
+
* An entry needs an identity: 'product_id' or 'sku' — every other field is normalized to its default when null/omitted.
|
|
5873
|
+
*/
|
|
5874
|
+
export type PriceEntryReplaceItem = {
|
|
5875
|
+
/**
|
|
5876
|
+
* Free-form metadata.
|
|
5877
|
+
*/
|
|
5878
|
+
metadata?: object | null;
|
|
5879
|
+
/**
|
|
5880
|
+
* Default 'standard'; 'on_request' is the explicit no-price marker — it stops resolution and answers "price on request".
|
|
5881
|
+
*/
|
|
5882
|
+
price_type?: PriceEntryType;
|
|
5883
|
+
/**
|
|
5884
|
+
* Priced product.
|
|
5885
|
+
*/
|
|
5886
|
+
product_id?: string | null;
|
|
5887
|
+
/**
|
|
5888
|
+
* Tier threshold (Staffelpreis): this price applies from this quantity (default 1).
|
|
5889
|
+
*/
|
|
5890
|
+
quantity_min?: number | null;
|
|
5891
|
+
/**
|
|
5892
|
+
* Priced SKU (alternative to product_id).
|
|
5893
|
+
*/
|
|
5894
|
+
sku?: string | null;
|
|
5179
5895
|
/**
|
|
5180
5896
|
*
|
|
5181
5897
|
*/
|
|
5182
|
-
unit?: string;
|
|
5898
|
+
unit?: string | null;
|
|
5183
5899
|
/**
|
|
5184
5900
|
* Per-unit price (default 0).
|
|
5185
5901
|
*/
|
|
5186
|
-
unit_price?: number;
|
|
5902
|
+
unit_price?: number | null;
|
|
5187
5903
|
/**
|
|
5188
5904
|
* Per-entry validity start (promo prices).
|
|
5189
5905
|
*/
|
|
5190
|
-
valid_from?: string;
|
|
5906
|
+
valid_from?: string | null;
|
|
5191
5907
|
/**
|
|
5192
5908
|
* Per-entry validity end.
|
|
5193
5909
|
*/
|
|
5194
|
-
valid_until?: string;
|
|
5910
|
+
valid_until?: string | null;
|
|
5195
5911
|
}
|
|
5196
5912
|
|
|
5197
5913
|
/**
|
|
@@ -5201,7 +5917,7 @@ export namespace Models {
|
|
|
5201
5917
|
/**
|
|
5202
5918
|
* Free-form metadata.
|
|
5203
5919
|
*/
|
|
5204
|
-
metadata?: object;
|
|
5920
|
+
metadata?: object | null;
|
|
5205
5921
|
/**
|
|
5206
5922
|
* Default 'standard'; 'on_request' is the explicit no-price marker — it stops resolution and answers "price on request".
|
|
5207
5923
|
*/
|
|
@@ -5209,7 +5925,7 @@ export namespace Models {
|
|
|
5209
5925
|
/**
|
|
5210
5926
|
* Priced product.
|
|
5211
5927
|
*/
|
|
5212
|
-
product_id?: string;
|
|
5928
|
+
product_id?: string | null;
|
|
5213
5929
|
/**
|
|
5214
5930
|
* Tier threshold (Staffelpreis): this price applies from this quantity (default 1).
|
|
5215
5931
|
*/
|
|
@@ -5217,11 +5933,11 @@ export namespace Models {
|
|
|
5217
5933
|
/**
|
|
5218
5934
|
* Priced SKU (alternative to product_id).
|
|
5219
5935
|
*/
|
|
5220
|
-
sku?: string;
|
|
5936
|
+
sku?: string | null;
|
|
5221
5937
|
/**
|
|
5222
5938
|
*
|
|
5223
5939
|
*/
|
|
5224
|
-
unit?: string;
|
|
5940
|
+
unit?: string | null;
|
|
5225
5941
|
/**
|
|
5226
5942
|
* Per-unit price (default 0).
|
|
5227
5943
|
*/
|
|
@@ -5229,11 +5945,11 @@ export namespace Models {
|
|
|
5229
5945
|
/**
|
|
5230
5946
|
* Per-entry validity start (promo prices).
|
|
5231
5947
|
*/
|
|
5232
|
-
valid_from?: string;
|
|
5948
|
+
valid_from?: string | null;
|
|
5233
5949
|
/**
|
|
5234
5950
|
* Per-entry validity end.
|
|
5235
5951
|
*/
|
|
5236
|
-
valid_until?: string;
|
|
5952
|
+
valid_until?: string | null;
|
|
5237
5953
|
}
|
|
5238
5954
|
|
|
5239
5955
|
/**
|
|
@@ -5325,7 +6041,7 @@ export namespace Models {
|
|
|
5325
6041
|
/**
|
|
5326
6042
|
* Scope: only this channel.
|
|
5327
6043
|
*/
|
|
5328
|
-
channel_id?: string;
|
|
6044
|
+
channel_id?: string | null;
|
|
5329
6045
|
/**
|
|
5330
6046
|
* Unique list code per tenant.
|
|
5331
6047
|
*/
|
|
@@ -5333,7 +6049,7 @@ export namespace Models {
|
|
|
5333
6049
|
/**
|
|
5334
6050
|
* Scope: only this contact — beats every other scope.
|
|
5335
6051
|
*/
|
|
5336
|
-
contact_id?: string;
|
|
6052
|
+
contact_id?: string | null;
|
|
5337
6053
|
/**
|
|
5338
6054
|
* ISO 4217 code (default EUR) — resolution only considers lists matching the requested currency.
|
|
5339
6055
|
*/
|
|
@@ -5341,7 +6057,7 @@ export namespace Models {
|
|
|
5341
6057
|
/**
|
|
5342
6058
|
*
|
|
5343
6059
|
*/
|
|
5344
|
-
description?: string;
|
|
6060
|
+
description?: string | null;
|
|
5345
6061
|
/**
|
|
5346
6062
|
* Default lists resolve last within their group.
|
|
5347
6063
|
*/
|
|
@@ -5349,15 +6065,15 @@ export namespace Models {
|
|
|
5349
6065
|
/**
|
|
5350
6066
|
* Localised names ({de, en, …}).
|
|
5351
6067
|
*/
|
|
5352
|
-
labels?: object;
|
|
6068
|
+
labels?: object | null;
|
|
5353
6069
|
/**
|
|
5354
6070
|
* Scope: only this market.
|
|
5355
6071
|
*/
|
|
5356
|
-
market_id?: string;
|
|
6072
|
+
market_id?: string | null;
|
|
5357
6073
|
/**
|
|
5358
6074
|
* Free-form metadata.
|
|
5359
6075
|
*/
|
|
5360
|
-
metadata?: object;
|
|
6076
|
+
metadata?: object | null;
|
|
5361
6077
|
/**
|
|
5362
6078
|
*
|
|
5363
6079
|
*/
|
|
@@ -5365,7 +6081,7 @@ export namespace Models {
|
|
|
5365
6081
|
/**
|
|
5366
6082
|
* Scope: only this organization.
|
|
5367
6083
|
*/
|
|
5368
|
-
organization_id?: string;
|
|
6084
|
+
organization_id?: string | null;
|
|
5369
6085
|
/**
|
|
5370
6086
|
* Tie-breaker within a specificity group (higher wins, default 0).
|
|
5371
6087
|
*/
|
|
@@ -5381,11 +6097,11 @@ export namespace Models {
|
|
|
5381
6097
|
/**
|
|
5382
6098
|
* Validity window start.
|
|
5383
6099
|
*/
|
|
5384
|
-
valid_from?: string;
|
|
6100
|
+
valid_from?: string | null;
|
|
5385
6101
|
/**
|
|
5386
6102
|
* Validity window end.
|
|
5387
6103
|
*/
|
|
5388
|
-
valid_until?: string;
|
|
6104
|
+
valid_until?: string | null;
|
|
5389
6105
|
}
|
|
5390
6106
|
|
|
5391
6107
|
/**
|
|
@@ -5395,7 +6111,7 @@ export namespace Models {
|
|
|
5395
6111
|
/**
|
|
5396
6112
|
* Scope: only this channel.
|
|
5397
6113
|
*/
|
|
5398
|
-
channel_id?: string;
|
|
6114
|
+
channel_id?: string | null;
|
|
5399
6115
|
/**
|
|
5400
6116
|
* Unique list code per tenant.
|
|
5401
6117
|
*/
|
|
@@ -5403,7 +6119,7 @@ export namespace Models {
|
|
|
5403
6119
|
/**
|
|
5404
6120
|
* Scope: only this contact — beats every other scope.
|
|
5405
6121
|
*/
|
|
5406
|
-
contact_id?: string;
|
|
6122
|
+
contact_id?: string | null;
|
|
5407
6123
|
/**
|
|
5408
6124
|
* ISO 4217 code (default EUR) — resolution only considers lists matching the requested currency.
|
|
5409
6125
|
*/
|
|
@@ -5411,7 +6127,7 @@ export namespace Models {
|
|
|
5411
6127
|
/**
|
|
5412
6128
|
*
|
|
5413
6129
|
*/
|
|
5414
|
-
description?: string;
|
|
6130
|
+
description?: string | null;
|
|
5415
6131
|
/**
|
|
5416
6132
|
* Default lists resolve last within their group.
|
|
5417
6133
|
*/
|
|
@@ -5419,15 +6135,15 @@ export namespace Models {
|
|
|
5419
6135
|
/**
|
|
5420
6136
|
* Localised names ({de, en, …}).
|
|
5421
6137
|
*/
|
|
5422
|
-
labels?: object;
|
|
6138
|
+
labels?: object | null;
|
|
5423
6139
|
/**
|
|
5424
6140
|
* Scope: only this market.
|
|
5425
6141
|
*/
|
|
5426
|
-
market_id?: string;
|
|
6142
|
+
market_id?: string | null;
|
|
5427
6143
|
/**
|
|
5428
6144
|
* Free-form metadata.
|
|
5429
6145
|
*/
|
|
5430
|
-
metadata?: object;
|
|
6146
|
+
metadata?: object | null;
|
|
5431
6147
|
/**
|
|
5432
6148
|
*
|
|
5433
6149
|
*/
|
|
@@ -5435,7 +6151,7 @@ export namespace Models {
|
|
|
5435
6151
|
/**
|
|
5436
6152
|
* Scope: only this organization.
|
|
5437
6153
|
*/
|
|
5438
|
-
organization_id?: string;
|
|
6154
|
+
organization_id?: string | null;
|
|
5439
6155
|
/**
|
|
5440
6156
|
* Tie-breaker within a specificity group (higher wins, default 0).
|
|
5441
6157
|
*/
|
|
@@ -5451,11 +6167,11 @@ export namespace Models {
|
|
|
5451
6167
|
/**
|
|
5452
6168
|
* Validity window start.
|
|
5453
6169
|
*/
|
|
5454
|
-
valid_from?: string;
|
|
6170
|
+
valid_from?: string | null;
|
|
5455
6171
|
/**
|
|
5456
6172
|
* Validity window end.
|
|
5457
6173
|
*/
|
|
5458
|
-
valid_until?: string;
|
|
6174
|
+
valid_until?: string | null;
|
|
5459
6175
|
}
|
|
5460
6176
|
|
|
5461
6177
|
/**
|
|
@@ -5465,15 +6181,15 @@ export namespace Models {
|
|
|
5465
6181
|
/**
|
|
5466
6182
|
* Product to price.
|
|
5467
6183
|
*/
|
|
5468
|
-
product_id?: string;
|
|
6184
|
+
product_id?: string | null;
|
|
5469
6185
|
/**
|
|
5470
6186
|
* Requested quantity for tier selection and line_total (default 1; non-positive values fall back to 1).
|
|
5471
6187
|
*/
|
|
5472
|
-
quantity?: number;
|
|
6188
|
+
quantity?: number | null;
|
|
5473
6189
|
/**
|
|
5474
6190
|
* SKU to price (alternative to product_id).
|
|
5475
6191
|
*/
|
|
5476
|
-
sku?: string;
|
|
6192
|
+
sku?: string | null;
|
|
5477
6193
|
}
|
|
5478
6194
|
|
|
5479
6195
|
/**
|
|
@@ -5483,19 +6199,19 @@ export namespace Models {
|
|
|
5483
6199
|
/**
|
|
5484
6200
|
* Point in time for validity windows (ISO 8601 timestamp, default now).
|
|
5485
6201
|
*/
|
|
5486
|
-
at?: string;
|
|
6202
|
+
at?: string | null;
|
|
5487
6203
|
/**
|
|
5488
6204
|
* Buyer context: channel.
|
|
5489
6205
|
*/
|
|
5490
|
-
channel_id?: string;
|
|
6206
|
+
channel_id?: string | null;
|
|
5491
6207
|
/**
|
|
5492
6208
|
* Buyer context: contact — most specific scope.
|
|
5493
6209
|
*/
|
|
5494
|
-
contact_id?: string;
|
|
6210
|
+
contact_id?: string | null;
|
|
5495
6211
|
/**
|
|
5496
6212
|
* ISO 4217 code (default EUR) — only lists in this currency resolve.
|
|
5497
6213
|
*/
|
|
5498
|
-
currency?: string;
|
|
6214
|
+
currency?: string | null;
|
|
5499
6215
|
/**
|
|
5500
6216
|
* Items to price (at most 200 per call).
|
|
5501
6217
|
*/
|
|
@@ -5503,11 +6219,11 @@ export namespace Models {
|
|
|
5503
6219
|
/**
|
|
5504
6220
|
* Buyer context: market.
|
|
5505
6221
|
*/
|
|
5506
|
-
market_id?: string;
|
|
6222
|
+
market_id?: string | null;
|
|
5507
6223
|
/**
|
|
5508
6224
|
* Buyer context: organization.
|
|
5509
6225
|
*/
|
|
5510
|
-
organization_id?: string;
|
|
6226
|
+
organization_id?: string | null;
|
|
5511
6227
|
}
|
|
5512
6228
|
|
|
5513
6229
|
/**
|
|
@@ -5658,6 +6374,24 @@ export namespace Models {
|
|
|
5658
6374
|
product_id?: string;
|
|
5659
6375
|
}
|
|
5660
6376
|
|
|
6377
|
+
/**
|
|
6378
|
+
*
|
|
6379
|
+
*/
|
|
6380
|
+
export type ProductTaxRef = {
|
|
6381
|
+
/**
|
|
6382
|
+
*
|
|
6383
|
+
*/
|
|
6384
|
+
id?: string;
|
|
6385
|
+
/**
|
|
6386
|
+
*
|
|
6387
|
+
*/
|
|
6388
|
+
sku?: string;
|
|
6389
|
+
/**
|
|
6390
|
+
*
|
|
6391
|
+
*/
|
|
6392
|
+
tax_class?: string | null;
|
|
6393
|
+
}
|
|
6394
|
+
|
|
5661
6395
|
/**
|
|
5662
6396
|
*
|
|
5663
6397
|
*/
|
|
@@ -5710,12 +6444,30 @@ export namespace Models {
|
|
|
5710
6444
|
*
|
|
5711
6445
|
*/
|
|
5712
6446
|
sku?: string;
|
|
6447
|
+
/**
|
|
6448
|
+
*
|
|
6449
|
+
*/
|
|
6450
|
+
tax_class?: string | null;
|
|
5713
6451
|
/**
|
|
5714
6452
|
*
|
|
5715
6453
|
*/
|
|
5716
6454
|
updated_at?: string;
|
|
5717
6455
|
}
|
|
5718
6456
|
|
|
6457
|
+
/**
|
|
6458
|
+
*
|
|
6459
|
+
*/
|
|
6460
|
+
export type ProductsBatchRequest = {
|
|
6461
|
+
/**
|
|
6462
|
+
*
|
|
6463
|
+
*/
|
|
6464
|
+
ids?: string[];
|
|
6465
|
+
/**
|
|
6466
|
+
*
|
|
6467
|
+
*/
|
|
6468
|
+
skus?: string[];
|
|
6469
|
+
}
|
|
6470
|
+
|
|
5719
6471
|
/**
|
|
5720
6472
|
*
|
|
5721
6473
|
*/
|
|
@@ -5760,6 +6512,10 @@ export namespace Models {
|
|
|
5760
6512
|
*
|
|
5761
6513
|
*/
|
|
5762
6514
|
sku: string;
|
|
6515
|
+
/**
|
|
6516
|
+
*
|
|
6517
|
+
*/
|
|
6518
|
+
tax_class?: string | null;
|
|
5763
6519
|
}
|
|
5764
6520
|
|
|
5765
6521
|
/**
|
|
@@ -5806,6 +6562,10 @@ export namespace Models {
|
|
|
5806
6562
|
*
|
|
5807
6563
|
*/
|
|
5808
6564
|
sku?: string;
|
|
6565
|
+
/**
|
|
6566
|
+
*
|
|
6567
|
+
*/
|
|
6568
|
+
tax_class?: string | null;
|
|
5809
6569
|
}
|
|
5810
6570
|
|
|
5811
6571
|
/**
|
|
@@ -6034,18 +6794,34 @@ export namespace Models {
|
|
|
6034
6794
|
*
|
|
6035
6795
|
*/
|
|
6036
6796
|
sku?: string | null;
|
|
6797
|
+
/**
|
|
6798
|
+
* Resolved tax class code (from the product, or the market default).
|
|
6799
|
+
*/
|
|
6800
|
+
tax_class?: string | null;
|
|
6037
6801
|
/**
|
|
6038
6802
|
*
|
|
6039
6803
|
*/
|
|
6040
6804
|
tax_included?: boolean | null;
|
|
6805
|
+
/**
|
|
6806
|
+
* Tax rate % from markets.tax_classes for this market + tax_class.
|
|
6807
|
+
*/
|
|
6808
|
+
tax_rate?: number | null;
|
|
6041
6809
|
/**
|
|
6042
6810
|
*
|
|
6043
6811
|
*/
|
|
6044
6812
|
tiers?: object[];
|
|
6045
6813
|
/**
|
|
6046
|
-
*
|
|
6814
|
+
* Stored price as-is (net or gross per tax_included). Prefer unit_price_net/unit_price_gross.
|
|
6047
6815
|
*/
|
|
6048
6816
|
unit_price?: number | null;
|
|
6817
|
+
/**
|
|
6818
|
+
* Gross unit price (incl. tax).
|
|
6819
|
+
*/
|
|
6820
|
+
unit_price_gross?: number | null;
|
|
6821
|
+
/**
|
|
6822
|
+
* Net unit price (excl. tax).
|
|
6823
|
+
*/
|
|
6824
|
+
unit_price_net?: number | null;
|
|
6049
6825
|
}
|
|
6050
6826
|
|
|
6051
6827
|
/**
|
|
@@ -6055,7 +6831,11 @@ export namespace Models {
|
|
|
6055
6831
|
/**
|
|
6056
6832
|
*
|
|
6057
6833
|
*/
|
|
6058
|
-
|
|
6834
|
+
menus?: object[] | null;
|
|
6835
|
+
/**
|
|
6836
|
+
*
|
|
6837
|
+
*/
|
|
6838
|
+
pages?: object[] | null;
|
|
6059
6839
|
}
|
|
6060
6840
|
|
|
6061
6841
|
/**
|
|
@@ -6138,6 +6918,10 @@ export namespace Models {
|
|
|
6138
6918
|
*
|
|
6139
6919
|
*/
|
|
6140
6920
|
pricing_type?: string;
|
|
6921
|
+
/**
|
|
6922
|
+
*
|
|
6923
|
+
*/
|
|
6924
|
+
tax_class?: string | null;
|
|
6141
6925
|
/**
|
|
6142
6926
|
*
|
|
6143
6927
|
*/
|
|
@@ -6344,6 +7128,14 @@ export namespace Models {
|
|
|
6344
7128
|
*
|
|
6345
7129
|
*/
|
|
6346
7130
|
pricing_type?: string;
|
|
7131
|
+
/**
|
|
7132
|
+
* Shipping method tax class (or market default).
|
|
7133
|
+
*/
|
|
7134
|
+
tax_class?: string | null;
|
|
7135
|
+
/**
|
|
7136
|
+
* Tax rate % from markets.tax_classes for this market + tax_class.
|
|
7137
|
+
*/
|
|
7138
|
+
tax_rate?: number | null;
|
|
6347
7139
|
}
|
|
6348
7140
|
|
|
6349
7141
|
/**
|
|
@@ -6398,6 +7190,24 @@ export namespace Models {
|
|
|
6398
7190
|
price?: number;
|
|
6399
7191
|
}
|
|
6400
7192
|
|
|
7193
|
+
/**
|
|
7194
|
+
* A matrix tier of the new set (from_value → price) — null falls back to 0, position derives from the array order.
|
|
7195
|
+
*/
|
|
7196
|
+
export type ShippingRateTierReplaceItem = {
|
|
7197
|
+
/**
|
|
7198
|
+
* Tier threshold (default 0) — the tier with the highest from_value at or below the measured value wins.
|
|
7199
|
+
*/
|
|
7200
|
+
from_value?: number | null;
|
|
7201
|
+
/**
|
|
7202
|
+
* Ignored — derived from the array index.
|
|
7203
|
+
*/
|
|
7204
|
+
position?: number | null;
|
|
7205
|
+
/**
|
|
7206
|
+
* Price of this tier (default 0).
|
|
7207
|
+
*/
|
|
7208
|
+
price?: number | null;
|
|
7209
|
+
}
|
|
7210
|
+
|
|
6401
7211
|
/**
|
|
6402
7212
|
* Partial update — omitted fields keep their current value.
|
|
6403
7213
|
*/
|
|
@@ -6423,7 +7233,7 @@ export namespace Models {
|
|
|
6423
7233
|
/**
|
|
6424
7234
|
* The complete new tier set (set semantics) — positions are derived from the array order.
|
|
6425
7235
|
*/
|
|
6426
|
-
tiers:
|
|
7236
|
+
tiers: ShippingRateTierReplaceItem[];
|
|
6427
7237
|
}
|
|
6428
7238
|
|
|
6429
7239
|
/**
|
|
@@ -6433,27 +7243,31 @@ export namespace Models {
|
|
|
6433
7243
|
/**
|
|
6434
7244
|
* Measure values for attribute matrices, keyed by attribute name.
|
|
6435
7245
|
*/
|
|
6436
|
-
attributes?: object;
|
|
7246
|
+
attributes?: object | null;
|
|
6437
7247
|
/**
|
|
6438
7248
|
* Destination ISO 3166-1 alpha-2 code — checked against method country restrictions.
|
|
6439
7249
|
*/
|
|
6440
|
-
country?: string;
|
|
7250
|
+
country?: string | null;
|
|
6441
7251
|
/**
|
|
6442
7252
|
* Echoed into the rates (default 'EUR').
|
|
6443
7253
|
*/
|
|
6444
|
-
currency?: string;
|
|
7254
|
+
currency?: string | null;
|
|
7255
|
+
/**
|
|
7256
|
+
* Buyer market for tax resolution (else inferred from country, else first market).
|
|
7257
|
+
*/
|
|
7258
|
+
market_id?: string | null;
|
|
6445
7259
|
/**
|
|
6446
7260
|
* Order value (default 0) — drives free-above thresholds and order_value matrices.
|
|
6447
7261
|
*/
|
|
6448
|
-
order_value?: number;
|
|
7262
|
+
order_value?: number | null;
|
|
6449
7263
|
/**
|
|
6450
7264
|
* Total quantity — measure for quantity matrices.
|
|
6451
7265
|
*/
|
|
6452
|
-
quantity?: number;
|
|
7266
|
+
quantity?: number | null;
|
|
6453
7267
|
/**
|
|
6454
7268
|
* Total weight — measure for weight matrices.
|
|
6455
7269
|
*/
|
|
6456
|
-
weight?: number;
|
|
7270
|
+
weight?: number | null;
|
|
6457
7271
|
}
|
|
6458
7272
|
|
|
6459
7273
|
/**
|
|
@@ -6513,7 +7327,7 @@ export namespace Models {
|
|
|
6513
7327
|
/**
|
|
6514
7328
|
* Free-form metadata.
|
|
6515
7329
|
*/
|
|
6516
|
-
metadata?: object;
|
|
7330
|
+
metadata?: object | null;
|
|
6517
7331
|
/**
|
|
6518
7332
|
* Physical stock (default 0).
|
|
6519
7333
|
*/
|
|
@@ -6521,7 +7335,7 @@ export namespace Models {
|
|
|
6521
7335
|
/**
|
|
6522
7336
|
* Tracked product.
|
|
6523
7337
|
*/
|
|
6524
|
-
product_id?: string;
|
|
7338
|
+
product_id?: string | null;
|
|
6525
7339
|
/**
|
|
6526
7340
|
*
|
|
6527
7341
|
*/
|
|
@@ -6533,7 +7347,7 @@ export namespace Models {
|
|
|
6533
7347
|
/**
|
|
6534
7348
|
* Tracked SKU (alternative to product_id).
|
|
6535
7349
|
*/
|
|
6536
|
-
sku?: string;
|
|
7350
|
+
sku?: string | null;
|
|
6537
7351
|
}
|
|
6538
7352
|
|
|
6539
7353
|
/**
|
|
@@ -6547,7 +7361,7 @@ export namespace Models {
|
|
|
6547
7361
|
/**
|
|
6548
7362
|
* Free-form metadata.
|
|
6549
7363
|
*/
|
|
6550
|
-
metadata?: object;
|
|
7364
|
+
metadata?: object | null;
|
|
6551
7365
|
/**
|
|
6552
7366
|
* Physical stock (default 0).
|
|
6553
7367
|
*/
|
|
@@ -6555,7 +7369,7 @@ export namespace Models {
|
|
|
6555
7369
|
/**
|
|
6556
7370
|
* Tracked product.
|
|
6557
7371
|
*/
|
|
6558
|
-
product_id?: string;
|
|
7372
|
+
product_id?: string | null;
|
|
6559
7373
|
/**
|
|
6560
7374
|
*
|
|
6561
7375
|
*/
|
|
@@ -6567,7 +7381,7 @@ export namespace Models {
|
|
|
6567
7381
|
/**
|
|
6568
7382
|
* Tracked SKU (alternative to product_id).
|
|
6569
7383
|
*/
|
|
6570
|
-
sku?: string;
|
|
7384
|
+
sku?: string | null;
|
|
6571
7385
|
}
|
|
6572
7386
|
|
|
6573
7387
|
/**
|
|
@@ -6616,6 +7430,144 @@ export namespace Models {
|
|
|
6616
7430
|
type?: string;
|
|
6617
7431
|
}
|
|
6618
7432
|
|
|
7433
|
+
/**
|
|
7434
|
+
*
|
|
7435
|
+
*/
|
|
7436
|
+
export type StoreAssetRequest = {
|
|
7437
|
+
/**
|
|
7438
|
+
*
|
|
7439
|
+
*/
|
|
7440
|
+
alt_text?: string | null;
|
|
7441
|
+
/**
|
|
7442
|
+
*
|
|
7443
|
+
*/
|
|
7444
|
+
description?: string | null;
|
|
7445
|
+
/**
|
|
7446
|
+
*
|
|
7447
|
+
*/
|
|
7448
|
+
display_name?: string | null;
|
|
7449
|
+
/**
|
|
7450
|
+
*
|
|
7451
|
+
*/
|
|
7452
|
+
file: string;
|
|
7453
|
+
/**
|
|
7454
|
+
*
|
|
7455
|
+
*/
|
|
7456
|
+
folder_id?: string | null;
|
|
7457
|
+
/**
|
|
7458
|
+
*
|
|
7459
|
+
*/
|
|
7460
|
+
keep_archive?: boolean | null;
|
|
7461
|
+
/**
|
|
7462
|
+
*
|
|
7463
|
+
*/
|
|
7464
|
+
tags?: string[] | null;
|
|
7465
|
+
/**
|
|
7466
|
+
* Archives only: unpack the members after upload (see AssetController).
|
|
7467
|
+
*/
|
|
7468
|
+
unpack?: boolean | null;
|
|
7469
|
+
/**
|
|
7470
|
+
*
|
|
7471
|
+
*/
|
|
7472
|
+
visibility?: StoreAssetRequestVisibility;
|
|
7473
|
+
}
|
|
7474
|
+
|
|
7475
|
+
/**
|
|
7476
|
+
*
|
|
7477
|
+
*/
|
|
7478
|
+
export type SyncHistory = {
|
|
7479
|
+
/**
|
|
7480
|
+
*
|
|
7481
|
+
*/
|
|
7482
|
+
bytes_synced: number | null;
|
|
7483
|
+
/**
|
|
7484
|
+
*
|
|
7485
|
+
*/
|
|
7486
|
+
created_at: string | null;
|
|
7487
|
+
/**
|
|
7488
|
+
*
|
|
7489
|
+
*/
|
|
7490
|
+
duration_ms: number | null;
|
|
7491
|
+
/**
|
|
7492
|
+
*
|
|
7493
|
+
*/
|
|
7494
|
+
error: string | null;
|
|
7495
|
+
/**
|
|
7496
|
+
*
|
|
7497
|
+
*/
|
|
7498
|
+
id: number;
|
|
7499
|
+
/**
|
|
7500
|
+
*
|
|
7501
|
+
*/
|
|
7502
|
+
rule_id: string;
|
|
7503
|
+
/**
|
|
7504
|
+
*
|
|
7505
|
+
*/
|
|
7506
|
+
run_id: string;
|
|
7507
|
+
/**
|
|
7508
|
+
*
|
|
7509
|
+
*/
|
|
7510
|
+
source_path: string;
|
|
7511
|
+
/**
|
|
7512
|
+
*
|
|
7513
|
+
*/
|
|
7514
|
+
status: string;
|
|
7515
|
+
/**
|
|
7516
|
+
*
|
|
7517
|
+
*/
|
|
7518
|
+
target_asset_id: string | null;
|
|
7519
|
+
/**
|
|
7520
|
+
*
|
|
7521
|
+
*/
|
|
7522
|
+
tenant_id: string;
|
|
7523
|
+
}
|
|
7524
|
+
|
|
7525
|
+
/**
|
|
7526
|
+
*
|
|
7527
|
+
*/
|
|
7528
|
+
export type SyncRuleResource = {
|
|
7529
|
+
/**
|
|
7530
|
+
*
|
|
7531
|
+
*/
|
|
7532
|
+
created_at: string;
|
|
7533
|
+
/**
|
|
7534
|
+
*
|
|
7535
|
+
*/
|
|
7536
|
+
enabled: boolean;
|
|
7537
|
+
/**
|
|
7538
|
+
*
|
|
7539
|
+
*/
|
|
7540
|
+
id: string;
|
|
7541
|
+
/**
|
|
7542
|
+
*
|
|
7543
|
+
*/
|
|
7544
|
+
last_run_at: string;
|
|
7545
|
+
/**
|
|
7546
|
+
*
|
|
7547
|
+
*/
|
|
7548
|
+
options: any[];
|
|
7549
|
+
/**
|
|
7550
|
+
*
|
|
7551
|
+
*/
|
|
7552
|
+
schedule: string;
|
|
7553
|
+
/**
|
|
7554
|
+
*
|
|
7555
|
+
*/
|
|
7556
|
+
sftp_account_id: string;
|
|
7557
|
+
/**
|
|
7558
|
+
*
|
|
7559
|
+
*/
|
|
7560
|
+
source_path: string;
|
|
7561
|
+
/**
|
|
7562
|
+
*
|
|
7563
|
+
*/
|
|
7564
|
+
target_folder_id: string | null;
|
|
7565
|
+
/**
|
|
7566
|
+
*
|
|
7567
|
+
*/
|
|
7568
|
+
tenant_id: string;
|
|
7569
|
+
}
|
|
7570
|
+
|
|
6619
7571
|
/**
|
|
6620
7572
|
*
|
|
6621
7573
|
*/
|
|
@@ -7570,20 +8522,6 @@ export namespace Models {
|
|
|
7570
8522
|
transformations: boolean;
|
|
7571
8523
|
}
|
|
7572
8524
|
|
|
7573
|
-
/**
|
|
7574
|
-
* Buckets List
|
|
7575
|
-
*/
|
|
7576
|
-
export type BucketList = {
|
|
7577
|
-
/**
|
|
7578
|
-
* List of buckets.
|
|
7579
|
-
*/
|
|
7580
|
-
buckets: Bucket[];
|
|
7581
|
-
/**
|
|
7582
|
-
* Total number of buckets that matched your query.
|
|
7583
|
-
*/
|
|
7584
|
-
total: number;
|
|
7585
|
-
}
|
|
7586
|
-
|
|
7587
8525
|
/**
|
|
7588
8526
|
* Collection
|
|
7589
8527
|
*/
|