@whiplashmerch/whiplash-api-client 0.4.4 → 0.4.6

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.
@@ -335,6 +335,55 @@ export interface APIV21EntitiesCustomer {
335
335
  workday_uuid?: string;
336
336
  }
337
337
 
338
+ export interface APIV21EntitiesCustomsInfo {
339
+ /** AU VAT number */
340
+ au_vat_number?: string;
341
+ /**
342
+ * the customs creation date and time
343
+ * @format date-time
344
+ */
345
+ created_at?: string;
346
+ /**
347
+ * the associated customer id
348
+ * @format int32
349
+ */
350
+ customer_id?: number;
351
+ /** EORI number */
352
+ eori_number?: string;
353
+ /** EU VAT number */
354
+ eu_vat_number?: string;
355
+ /**
356
+ * the customs info id
357
+ * @format int32
358
+ */
359
+ id?: number;
360
+ /**
361
+ * the associated importer of record id
362
+ * @format int32
363
+ */
364
+ importer_of_record_id?: number;
365
+ /** IOSS number */
366
+ ioss_number?: string;
367
+ /** non-EU/AU/UK VAT number */
368
+ misc_vat_number?: string;
369
+ /**
370
+ * the associated order id
371
+ * @format int32
372
+ */
373
+ order_id?: number;
374
+ /** send ETD to carrier */
375
+ send_electonic_trade_docs?: boolean;
376
+ /** e-signature for customs */
377
+ signer?: string;
378
+ /** UK VAT number */
379
+ uk_vat_number?: string;
380
+ /**
381
+ * the customs last update date and time
382
+ * @format date-time
383
+ */
384
+ updated_at?: string;
385
+ }
386
+
338
387
  export interface APIV21EntitiesItem {
339
388
  /** is the item active? */
340
389
  active?: boolean;
@@ -628,6 +677,7 @@ export interface APIV21EntitiesOrder {
628
677
  /** the carrier on the customer provided label (for tracking purposes) */
629
678
  customer_provided_label_carrier?: string;
630
679
  customs_eori_number?: string;
680
+ customs_info?: APIV21EntitiesCustomsInfo;
631
681
  customs_ioss_number?: string;
632
682
  /** does the order require customs documents? */
633
683
  customs_required?: boolean;
@@ -842,10 +892,10 @@ export interface APIV21EntitiesOrder {
842
892
  /** skip street date for this order? */
843
893
  skip_street_date?: boolean;
844
894
  /**
845
- * the order status
895
+ * the order status: 30 (Shipped Externally), 35 (Quote), 40 (Cancelled), 45 (Closed by Originator), 50 (Unpaid), 75 (Pending Return), 77 (Return Verified), 80 (Pre-Order), 90 (Paused), 95 (Insufficient Inventory), 100 (Processing), 120 (Printed), 150 (Picked), 155 (Prepacking in Progress), 160 (Packed), 200 (Label Scheduled for Purchase), 250 (Label Purchased), 300 (Shipped), 325 (Picked Up), 350 (Delivered), 375 (Return Expired), 380 (Replacement Cancelled), 400 (Returned Undeliverable), 410 (Replacement Requested), 430 (Exchanged), 450 (Refund Requested)
846
896
  * @format int32
847
897
  */
848
- status?: number;
898
+ status?: ApiV21EntitiesOrderStatus;
849
899
  /** the order status name */
850
900
  status_name?: string;
851
901
  /** the order tracking numbers */
@@ -864,6 +914,7 @@ export interface APIV21EntitiesOrder {
864
914
  warehouse_id?: number;
865
915
  /** The name of the associated warehouse */
866
916
  warehouse_name?: string;
917
+ wholesale?: APIV21EntitiesWholesale;
867
918
  /**
868
919
  * the date and time the order is workable
869
920
  * @format date-time
@@ -1352,6 +1403,67 @@ export interface APIV21EntitiesWarehouse {
1352
1403
  warehouse_features?: string;
1353
1404
  }
1354
1405
 
1406
+ export interface APIV21EntitiesWholesale {
1407
+ /**
1408
+ * the latest possible arrival time for the shipment
1409
+ * @format date
1410
+ */
1411
+ cancel_date?: string;
1412
+ /** the name of the carrier code used for order goruping and filtering */
1413
+ carrier_code?: string;
1414
+ /** the service of the carrier code used for order goruping and filtering */
1415
+ carrier_service?: string;
1416
+ /**
1417
+ * the wholesale creation date and time
1418
+ * @format date-time
1419
+ */
1420
+ created_at?: string;
1421
+ /** the recipient department */
1422
+ department?: string;
1423
+ /** description of the recipient department */
1424
+ department_description?: string;
1425
+ /** the recipient distribution center */
1426
+ distribution_center?: string;
1427
+ /** FOB code */
1428
+ fob_code?: string;
1429
+ /** the gift message that will need to show up on a packslip or gs1 label */
1430
+ gift_note?: string;
1431
+ /**
1432
+ * the wholesale id
1433
+ * @format int32
1434
+ */
1435
+ id?: number;
1436
+ /** the recipient location */
1437
+ location?: string;
1438
+ /** the order merchandise type code */
1439
+ merchandise_type_code?: string;
1440
+ /**
1441
+ * the associated order id
1442
+ * @format int32
1443
+ */
1444
+ order_id?: number;
1445
+ /** the name of the trading partner for order grouping and filtering */
1446
+ partner?: string;
1447
+ /** the purchase order number */
1448
+ po_number?: string;
1449
+ /** the associated sender */
1450
+ sender?: string;
1451
+ /**
1452
+ * the earliest possible arrival time for the shipment
1453
+ * @format date
1454
+ */
1455
+ start_date?: string;
1456
+ /**
1457
+ * the wholesale last update date and time
1458
+ * @format date-time
1459
+ */
1460
+ updated_at?: string;
1461
+ /** the associated vendor */
1462
+ vendor?: string;
1463
+ /** the vendor number */
1464
+ vendor_number?: string;
1465
+ }
1466
+
1355
1467
  export interface APIV2EntitiesApiError {
1356
1468
  /** error message */
1357
1469
  message?: string;
@@ -2545,10 +2657,10 @@ export interface APIV2EntitiesOrder {
2545
2657
  /** skip street date for this order? */
2546
2658
  skip_street_date?: boolean;
2547
2659
  /**
2548
- * the order status
2660
+ * the order status: 30 (Shipped Externally), 35 (Quote), 40 (Cancelled), 45 (Closed by Originator), 50 (Unpaid), 75 (Pending Return), 77 (Return Verified), 80 (Pre-Order), 90 (Paused), 95 (Insufficient Inventory), 100 (Processing), 120 (Printed), 150 (Picked), 155 (Prepacking in Progress), 160 (Packed), 200 (Label Scheduled for Purchase), 250 (Label Purchased), 300 (Shipped), 325 (Picked Up), 350 (Delivered), 375 (Return Expired), 380 (Replacement Cancelled), 400 (Returned Undeliverable), 410 (Replacement Requested), 430 (Exchanged), 450 (Refund Requested)
2549
2661
  * @format int32
2550
2662
  */
2551
- status?: number;
2663
+ status?: ApiV2EntitiesOrderStatus;
2552
2664
  /** the order status name */
2553
2665
  status_name?: string;
2554
2666
  /** the order tracking numbers */
@@ -4961,6 +5073,39 @@ export enum ApiV21EntitiesOrderIncoterm {
4961
5073
  DDU = "DDU",
4962
5074
  }
4963
5075
 
5076
+ /**
5077
+ * the order status: 30 (Shipped Externally), 35 (Quote), 40 (Cancelled), 45 (Closed by Originator), 50 (Unpaid), 75 (Pending Return), 77 (Return Verified), 80 (Pre-Order), 90 (Paused), 95 (Insufficient Inventory), 100 (Processing), 120 (Printed), 150 (Picked), 155 (Prepacking in Progress), 160 (Packed), 200 (Label Scheduled for Purchase), 250 (Label Purchased), 300 (Shipped), 325 (Picked Up), 350 (Delivered), 375 (Return Expired), 380 (Replacement Cancelled), 400 (Returned Undeliverable), 410 (Replacement Requested), 430 (Exchanged), 450 (Refund Requested)
5078
+ * @format int32
5079
+ */
5080
+ export enum ApiV21EntitiesOrderStatus {
5081
+ Value30 = 30,
5082
+ Value35 = 35,
5083
+ Value40 = 40,
5084
+ Value45 = 45,
5085
+ Value50 = 50,
5086
+ Value75 = 75,
5087
+ Value77 = 77,
5088
+ Value80 = 80,
5089
+ Value90 = 90,
5090
+ Value95 = 95,
5091
+ Value100 = 100,
5092
+ Value120 = 120,
5093
+ Value150 = 150,
5094
+ Value155 = 155,
5095
+ Value160 = 160,
5096
+ Value200 = 200,
5097
+ Value250 = 250,
5098
+ Value300 = 300,
5099
+ Value325 = 325,
5100
+ Value350 = 350,
5101
+ Value375 = 375,
5102
+ Value380 = 380,
5103
+ Value400 = 400,
5104
+ Value410 = 410,
5105
+ Value430 = 430,
5106
+ Value450 = 450,
5107
+ }
5108
+
4964
5109
  /** hazmat class */
4965
5110
  export enum ApiV2EntitiesItemHazmatType {
4966
5111
  Ormd = "ormd",
@@ -5293,6 +5438,39 @@ export enum ApiV2EntitiesOrderIncoterm {
5293
5438
  DDU = "DDU",
5294
5439
  }
5295
5440
 
5441
+ /**
5442
+ * the order status: 30 (Shipped Externally), 35 (Quote), 40 (Cancelled), 45 (Closed by Originator), 50 (Unpaid), 75 (Pending Return), 77 (Return Verified), 80 (Pre-Order), 90 (Paused), 95 (Insufficient Inventory), 100 (Processing), 120 (Printed), 150 (Picked), 155 (Prepacking in Progress), 160 (Packed), 200 (Label Scheduled for Purchase), 250 (Label Purchased), 300 (Shipped), 325 (Picked Up), 350 (Delivered), 375 (Return Expired), 380 (Replacement Cancelled), 400 (Returned Undeliverable), 410 (Replacement Requested), 430 (Exchanged), 450 (Refund Requested)
5443
+ * @format int32
5444
+ */
5445
+ export enum ApiV2EntitiesOrderStatus {
5446
+ Value30 = 30,
5447
+ Value35 = 35,
5448
+ Value40 = 40,
5449
+ Value45 = 45,
5450
+ Value50 = 50,
5451
+ Value75 = 75,
5452
+ Value77 = 77,
5453
+ Value80 = 80,
5454
+ Value90 = 90,
5455
+ Value95 = 95,
5456
+ Value100 = 100,
5457
+ Value120 = 120,
5458
+ Value150 = 150,
5459
+ Value155 = 155,
5460
+ Value160 = 160,
5461
+ Value200 = 200,
5462
+ Value250 = 250,
5463
+ Value300 = 300,
5464
+ Value325 = 325,
5465
+ Value350 = 350,
5466
+ Value375 = 375,
5467
+ Value380 = 380,
5468
+ Value400 = 400,
5469
+ Value410 = 410,
5470
+ Value430 = 430,
5471
+ Value450 = 450,
5472
+ }
5473
+
5296
5474
  /** locale for language settings */
5297
5475
  export enum ApiV2EntitiesUserLocale {
5298
5476
  En = "en",
@@ -6052,11 +6230,6 @@ export interface PostApiV21Orders {
6052
6230
  shipping_address_2?: string;
6053
6231
  /** the order shipping country iso2 (US, GB, CA, etc) */
6054
6232
  shipping_country_iso2?: string;
6055
- /**
6056
- * the order approxiamte delivery date
6057
- * @format date
6058
- */
6059
- approximate_delivery_date?: string;
6060
6233
  /** the order billing city */
6061
6234
  billing_city?: string;
6062
6235
  /** the order billing company */
@@ -6071,8 +6244,6 @@ export interface PostApiV21Orders {
6071
6244
  billing_state?: string;
6072
6245
  /** the order billing zip */
6073
6246
  billing_zip?: string;
6074
- /** the orders calculated return time limit */
6075
- calculated_time_limit?: string;
6076
6247
  /**
6077
6248
  * the carrier account id for this package, if it has shipped (staff only)
6078
6249
  * @format int32
@@ -6082,10 +6253,35 @@ export interface PostApiV21Orders {
6082
6253
  cf_packingslip_pdf_url?: string;
6083
6254
  /** does the order contain alcohol? */
6084
6255
  contains_alcohol?: boolean;
6256
+ /** The name of the associated customer */
6257
+ customer_name?: string;
6085
6258
  /** the carrier on the customer provided label (for tracking purposes) */
6086
6259
  customer_provided_label_carrier?: string;
6087
6260
  /** Economic Operators Registration and Identification number for the sender of the order */
6088
6261
  customs_eori_number?: string;
6262
+ customs_info_attributes?: {
6263
+ /**
6264
+ * the associated importer of record id
6265
+ * @format int32
6266
+ */
6267
+ importer_of_record_id?: number;
6268
+ /** send ETD to carrier */
6269
+ send_electonic_trade_docs?: boolean;
6270
+ /** e-signature for customs */
6271
+ signer?: string;
6272
+ /** AU VAT number */
6273
+ au_vat_number?: string;
6274
+ /** EU VAT number */
6275
+ eu_vat_number?: string;
6276
+ /** non-EU/AU/UK VAT number */
6277
+ misc_vat_number?: string;
6278
+ /** UK VAT number */
6279
+ uk_vat_number?: string;
6280
+ /** IOSS number */
6281
+ ioss_number?: string;
6282
+ /** EORI number */
6283
+ eori_number?: string;
6284
+ };
6089
6285
  /** Import One-Stop Shop number for the sender of the order */
6090
6286
  customs_ioss_number?: string;
6091
6287
  /** does the order require customs documents? */
@@ -6132,6 +6328,8 @@ export interface PostApiV21Orders {
6132
6328
  incoterm?: PostApiV21OrdersIncoterm;
6133
6329
  /** is the order insured? */
6134
6330
  insure?: boolean;
6331
+ /** is the Order an international Order */
6332
+ international?: boolean;
6135
6333
  /** is the order gestating? */
6136
6334
  is_gestating?: boolean;
6137
6335
  /** is the order workable? */
@@ -6149,6 +6347,16 @@ export interface PostApiV21Orders {
6149
6347
  /** Included meta fields for associations */
6150
6348
  association_fields?: object;
6151
6349
  };
6350
+ /**
6351
+ * number of SKUs in this Order
6352
+ * @format int32
6353
+ */
6354
+ order_item_count?: number;
6355
+ /**
6356
+ * total quantity of all SKUs in this Order
6357
+ * @format int32
6358
+ */
6359
+ order_item_quantity?: number;
6152
6360
  order_items_attributes?: {
6153
6361
  /**
6154
6362
  * number of this item in Order
@@ -6261,6 +6469,8 @@ export interface PostApiV21Orders {
6261
6469
  };
6262
6470
  /** Permission limited orders are not editable, but still may be processed/shipped */
6263
6471
  permissions_limited?: boolean;
6472
+ /** is the order a pickup order */
6473
+ pickup?: boolean;
6264
6474
  /** the order public note */
6265
6475
  public_note?: string;
6266
6476
  /** the purchase order this order */
@@ -6313,11 +6523,15 @@ export interface PostApiV21Orders {
6313
6523
  shipping_country?: string;
6314
6524
  /** pickup option for carrier facility on the address destination */
6315
6525
  shipping_hold_for_pickup?: boolean;
6526
+ /** Shipping method carrier name */
6527
+ shipping_method_carrier?: string;
6316
6528
  /**
6317
6529
  * the order shipping method id
6318
6530
  * @format int32
6319
6531
  */
6320
6532
  shipping_method_id?: number;
6533
+ /** Shipping method service name */
6534
+ shipping_method_name?: string;
6321
6535
  /** the order shipping name */
6322
6536
  shipping_name?: string;
6323
6537
  /** the order shipping phone number */
@@ -6352,7 +6566,7 @@ export interface PostApiV21Orders {
6352
6566
  /** skip street date for this order? */
6353
6567
  skip_street_date?: boolean;
6354
6568
  /**
6355
- * the order status
6569
+ * the order status: 30 (Shipped Externally), 35 (Quote), 40 (Cancelled), 45 (Closed by Originator), 50 (Unpaid), 75 (Pending Return), 77 (Return Verified), 80 (Pre-Order), 90 (Paused), 95 (Insufficient Inventory), 100 (Processing), 120 (Printed), 150 (Picked), 155 (Prepacking in Progress), 160 (Packed), 200 (Label Scheduled for Purchase), 250 (Label Purchased), 300 (Shipped), 325 (Picked Up), 350 (Delivered), 375 (Return Expired), 380 (Replacement Cancelled), 400 (Returned Undeliverable), 410 (Replacement Requested), 430 (Exchanged), 450 (Refund Requested)
6356
6570
  * @format int32
6357
6571
  */
6358
6572
  status?: PostApiV21OrdersStatus;
@@ -6360,8 +6574,48 @@ export interface PostApiV21Orders {
6360
6574
  tracking?: string[];
6361
6575
  /** the order tracking links */
6362
6576
  tracking_links?: string[];
6363
- /** is the order within its return time limit */
6364
- within_return_time_limit?: boolean;
6577
+ /** The name of the associated warehouse */
6578
+ warehouse_name?: string;
6579
+ wholesale_attributes?: {
6580
+ /** the name of the carrier code used for order goruping and filtering */
6581
+ carrier_code?: string;
6582
+ /** the service of the carrier code used for order goruping and filtering */
6583
+ carrier_service?: string;
6584
+ /** the recipient department */
6585
+ department?: string;
6586
+ /** description of the recipient department */
6587
+ department_description?: string;
6588
+ /** the recipient distribution center */
6589
+ distribution_center?: string;
6590
+ /** FOB code */
6591
+ fob_code?: string;
6592
+ /** the gift message that will need to show up on a packslip or gs1 label */
6593
+ gift_note?: string;
6594
+ /** the recipient location */
6595
+ location?: string;
6596
+ /** the order merchandise type code */
6597
+ merchandise_type_code?: string;
6598
+ /** the name of the trading partner for order grouping and filtering */
6599
+ partner?: string;
6600
+ /** the purchase order number */
6601
+ po_number?: string;
6602
+ /** the associated sender */
6603
+ sender?: string;
6604
+ /** the associated vendor */
6605
+ vendor?: string;
6606
+ /** the vendor number */
6607
+ vendor_number?: string;
6608
+ /**
6609
+ * the earliest possible arrival time for the shipment
6610
+ * @format date
6611
+ */
6612
+ start_date?: string;
6613
+ /**
6614
+ * the latest possible arrival time for the shipment
6615
+ * @format date
6616
+ */
6617
+ cancel_date?: string;
6618
+ };
6365
6619
  }
6366
6620
 
6367
6621
  /** Create an order document for an order */
@@ -6490,7 +6744,7 @@ export enum PostApiV21OrdersOrderType {
6490
6744
  }
6491
6745
 
6492
6746
  /**
6493
- * the order status
6747
+ * the order status: 30 (Shipped Externally), 35 (Quote), 40 (Cancelled), 45 (Closed by Originator), 50 (Unpaid), 75 (Pending Return), 77 (Return Verified), 80 (Pre-Order), 90 (Paused), 95 (Insufficient Inventory), 100 (Processing), 120 (Printed), 150 (Picked), 155 (Prepacking in Progress), 160 (Packed), 200 (Label Scheduled for Purchase), 250 (Label Purchased), 300 (Shipped), 325 (Picked Up), 350 (Delivered), 375 (Return Expired), 380 (Replacement Cancelled), 400 (Returned Undeliverable), 410 (Replacement Requested), 430 (Exchanged), 450 (Refund Requested)
6494
6748
  * @format int32
6495
6749
  */
6496
6750
  export enum PostApiV21OrdersStatus {
@@ -7806,7 +8060,7 @@ export interface PostApiV2Orders {
7806
8060
  /** skip street date for this order? */
7807
8061
  skip_street_date?: boolean;
7808
8062
  /**
7809
- * the order status
8063
+ * the order status: 30 (Shipped Externally), 35 (Quote), 40 (Cancelled), 45 (Closed by Originator), 50 (Unpaid), 75 (Pending Return), 77 (Return Verified), 80 (Pre-Order), 90 (Paused), 95 (Insufficient Inventory), 100 (Processing), 120 (Printed), 150 (Picked), 155 (Prepacking in Progress), 160 (Packed), 200 (Label Scheduled for Purchase), 250 (Label Purchased), 300 (Shipped), 325 (Picked Up), 350 (Delivered), 375 (Return Expired), 380 (Replacement Cancelled), 400 (Returned Undeliverable), 410 (Replacement Requested), 430 (Exchanged), 450 (Refund Requested)
7810
8064
  * @format int32
7811
8065
  */
7812
8066
  status?: PostApiV2OrdersStatus;
@@ -7944,7 +8198,7 @@ export enum PostApiV2OrdersOrderType {
7944
8198
  }
7945
8199
 
7946
8200
  /**
7947
- * the order status
8201
+ * the order status: 30 (Shipped Externally), 35 (Quote), 40 (Cancelled), 45 (Closed by Originator), 50 (Unpaid), 75 (Pending Return), 77 (Return Verified), 80 (Pre-Order), 90 (Paused), 95 (Insufficient Inventory), 100 (Processing), 120 (Printed), 150 (Picked), 155 (Prepacking in Progress), 160 (Packed), 200 (Label Scheduled for Purchase), 250 (Label Purchased), 300 (Shipped), 325 (Picked Up), 350 (Delivered), 375 (Return Expired), 380 (Replacement Cancelled), 400 (Returned Undeliverable), 410 (Replacement Requested), 430 (Exchanged), 450 (Refund Requested)
7948
8202
  * @format int32
7949
8203
  */
7950
8204
  export enum PostApiV2OrdersStatus {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whiplashmerch/whiplash-api-client",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "",
5
5
  "devDependencies": {},
6
6
  "scripts": {
@@ -15,7 +15,13 @@
15
15
  "license": "ISC",
16
16
  "type": "module",
17
17
  "peerDependencies": {
18
- "axios": ">= 1.2.1"
18
+ "axios": ">= 1.2.1",
19
+ "pusher-js": ">= 8.3.0"
20
+ },
21
+ "peerDependenciesMeta": {
22
+ "pusher-js": {
23
+ "optional": true
24
+ }
19
25
  },
20
26
  "main": "dist/client.esm.js",
21
27
  "module": "dist/client.esm.js",