@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.
@@ -322,6 +322,54 @@ export interface APIV21EntitiesCustomer {
322
322
  /** Workday UUID */
323
323
  workday_uuid?: string;
324
324
  }
325
+ export interface APIV21EntitiesCustomsInfo {
326
+ /** AU VAT number */
327
+ au_vat_number?: string;
328
+ /**
329
+ * the customs creation date and time
330
+ * @format date-time
331
+ */
332
+ created_at?: string;
333
+ /**
334
+ * the associated customer id
335
+ * @format int32
336
+ */
337
+ customer_id?: number;
338
+ /** EORI number */
339
+ eori_number?: string;
340
+ /** EU VAT number */
341
+ eu_vat_number?: string;
342
+ /**
343
+ * the customs info id
344
+ * @format int32
345
+ */
346
+ id?: number;
347
+ /**
348
+ * the associated importer of record id
349
+ * @format int32
350
+ */
351
+ importer_of_record_id?: number;
352
+ /** IOSS number */
353
+ ioss_number?: string;
354
+ /** non-EU/AU/UK VAT number */
355
+ misc_vat_number?: string;
356
+ /**
357
+ * the associated order id
358
+ * @format int32
359
+ */
360
+ order_id?: number;
361
+ /** send ETD to carrier */
362
+ send_electonic_trade_docs?: boolean;
363
+ /** e-signature for customs */
364
+ signer?: string;
365
+ /** UK VAT number */
366
+ uk_vat_number?: string;
367
+ /**
368
+ * the customs last update date and time
369
+ * @format date-time
370
+ */
371
+ updated_at?: string;
372
+ }
325
373
  export interface APIV21EntitiesItem {
326
374
  /** is the item active? */
327
375
  active?: boolean;
@@ -613,6 +661,7 @@ export interface APIV21EntitiesOrder {
613
661
  /** the carrier on the customer provided label (for tracking purposes) */
614
662
  customer_provided_label_carrier?: string;
615
663
  customs_eori_number?: string;
664
+ customs_info?: APIV21EntitiesCustomsInfo;
616
665
  customs_ioss_number?: string;
617
666
  /** does the order require customs documents? */
618
667
  customs_required?: boolean;
@@ -827,10 +876,10 @@ export interface APIV21EntitiesOrder {
827
876
  /** skip street date for this order? */
828
877
  skip_street_date?: boolean;
829
878
  /**
830
- * the order status
879
+ * 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)
831
880
  * @format int32
832
881
  */
833
- status?: number;
882
+ status?: ApiV21EntitiesOrderStatus;
834
883
  /** the order status name */
835
884
  status_name?: string;
836
885
  /** the order tracking numbers */
@@ -849,6 +898,7 @@ export interface APIV21EntitiesOrder {
849
898
  warehouse_id?: number;
850
899
  /** The name of the associated warehouse */
851
900
  warehouse_name?: string;
901
+ wholesale?: APIV21EntitiesWholesale;
852
902
  /**
853
903
  * the date and time the order is workable
854
904
  * @format date-time
@@ -1330,6 +1380,66 @@ export interface APIV21EntitiesWarehouse {
1330
1380
  vat?: number;
1331
1381
  warehouse_features?: string;
1332
1382
  }
1383
+ export interface APIV21EntitiesWholesale {
1384
+ /**
1385
+ * the latest possible arrival time for the shipment
1386
+ * @format date
1387
+ */
1388
+ cancel_date?: string;
1389
+ /** the name of the carrier code used for order goruping and filtering */
1390
+ carrier_code?: string;
1391
+ /** the service of the carrier code used for order goruping and filtering */
1392
+ carrier_service?: string;
1393
+ /**
1394
+ * the wholesale creation date and time
1395
+ * @format date-time
1396
+ */
1397
+ created_at?: string;
1398
+ /** the recipient department */
1399
+ department?: string;
1400
+ /** description of the recipient department */
1401
+ department_description?: string;
1402
+ /** the recipient distribution center */
1403
+ distribution_center?: string;
1404
+ /** FOB code */
1405
+ fob_code?: string;
1406
+ /** the gift message that will need to show up on a packslip or gs1 label */
1407
+ gift_note?: string;
1408
+ /**
1409
+ * the wholesale id
1410
+ * @format int32
1411
+ */
1412
+ id?: number;
1413
+ /** the recipient location */
1414
+ location?: string;
1415
+ /** the order merchandise type code */
1416
+ merchandise_type_code?: string;
1417
+ /**
1418
+ * the associated order id
1419
+ * @format int32
1420
+ */
1421
+ order_id?: number;
1422
+ /** the name of the trading partner for order grouping and filtering */
1423
+ partner?: string;
1424
+ /** the purchase order number */
1425
+ po_number?: string;
1426
+ /** the associated sender */
1427
+ sender?: string;
1428
+ /**
1429
+ * the earliest possible arrival time for the shipment
1430
+ * @format date
1431
+ */
1432
+ start_date?: string;
1433
+ /**
1434
+ * the wholesale last update date and time
1435
+ * @format date-time
1436
+ */
1437
+ updated_at?: string;
1438
+ /** the associated vendor */
1439
+ vendor?: string;
1440
+ /** the vendor number */
1441
+ vendor_number?: string;
1442
+ }
1333
1443
  export interface APIV2EntitiesApiError {
1334
1444
  /** error message */
1335
1445
  message?: string;
@@ -2511,10 +2621,10 @@ export interface APIV2EntitiesOrder {
2511
2621
  /** skip street date for this order? */
2512
2622
  skip_street_date?: boolean;
2513
2623
  /**
2514
- * the order status
2624
+ * 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)
2515
2625
  * @format int32
2516
2626
  */
2517
- status?: number;
2627
+ status?: ApiV2EntitiesOrderStatus;
2518
2628
  /** the order status name */
2519
2629
  status_name?: string;
2520
2630
  /** the order tracking numbers */
@@ -4829,6 +4939,38 @@ export declare enum ApiV21EntitiesOrderIncoterm {
4829
4939
  DEQ = "DEQ",
4830
4940
  DDU = "DDU"
4831
4941
  }
4942
+ /**
4943
+ * 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)
4944
+ * @format int32
4945
+ */
4946
+ export declare enum ApiV21EntitiesOrderStatus {
4947
+ Value30 = 30,
4948
+ Value35 = 35,
4949
+ Value40 = 40,
4950
+ Value45 = 45,
4951
+ Value50 = 50,
4952
+ Value75 = 75,
4953
+ Value77 = 77,
4954
+ Value80 = 80,
4955
+ Value90 = 90,
4956
+ Value95 = 95,
4957
+ Value100 = 100,
4958
+ Value120 = 120,
4959
+ Value150 = 150,
4960
+ Value155 = 155,
4961
+ Value160 = 160,
4962
+ Value200 = 200,
4963
+ Value250 = 250,
4964
+ Value300 = 300,
4965
+ Value325 = 325,
4966
+ Value350 = 350,
4967
+ Value375 = 375,
4968
+ Value380 = 380,
4969
+ Value400 = 400,
4970
+ Value410 = 410,
4971
+ Value430 = 430,
4972
+ Value450 = 450
4973
+ }
4832
4974
  /** hazmat class */
4833
4975
  export declare enum ApiV2EntitiesItemHazmatType {
4834
4976
  Ormd = "ormd",
@@ -5157,6 +5299,38 @@ export declare enum ApiV2EntitiesOrderIncoterm {
5157
5299
  DEQ = "DEQ",
5158
5300
  DDU = "DDU"
5159
5301
  }
5302
+ /**
5303
+ * 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)
5304
+ * @format int32
5305
+ */
5306
+ export declare enum ApiV2EntitiesOrderStatus {
5307
+ Value30 = 30,
5308
+ Value35 = 35,
5309
+ Value40 = 40,
5310
+ Value45 = 45,
5311
+ Value50 = 50,
5312
+ Value75 = 75,
5313
+ Value77 = 77,
5314
+ Value80 = 80,
5315
+ Value90 = 90,
5316
+ Value95 = 95,
5317
+ Value100 = 100,
5318
+ Value120 = 120,
5319
+ Value150 = 150,
5320
+ Value155 = 155,
5321
+ Value160 = 160,
5322
+ Value200 = 200,
5323
+ Value250 = 250,
5324
+ Value300 = 300,
5325
+ Value325 = 325,
5326
+ Value350 = 350,
5327
+ Value375 = 375,
5328
+ Value380 = 380,
5329
+ Value400 = 400,
5330
+ Value410 = 410,
5331
+ Value430 = 430,
5332
+ Value450 = 450
5333
+ }
5160
5334
  /** locale for language settings */
5161
5335
  export declare enum ApiV2EntitiesUserLocale {
5162
5336
  En = "en",
@@ -5906,11 +6080,6 @@ export interface PostApiV21Orders {
5906
6080
  shipping_address_2?: string;
5907
6081
  /** the order shipping country iso2 (US, GB, CA, etc) */
5908
6082
  shipping_country_iso2?: string;
5909
- /**
5910
- * the order approxiamte delivery date
5911
- * @format date
5912
- */
5913
- approximate_delivery_date?: string;
5914
6083
  /** the order billing city */
5915
6084
  billing_city?: string;
5916
6085
  /** the order billing company */
@@ -5925,8 +6094,6 @@ export interface PostApiV21Orders {
5925
6094
  billing_state?: string;
5926
6095
  /** the order billing zip */
5927
6096
  billing_zip?: string;
5928
- /** the orders calculated return time limit */
5929
- calculated_time_limit?: string;
5930
6097
  /**
5931
6098
  * the carrier account id for this package, if it has shipped (staff only)
5932
6099
  * @format int32
@@ -5936,10 +6103,35 @@ export interface PostApiV21Orders {
5936
6103
  cf_packingslip_pdf_url?: string;
5937
6104
  /** does the order contain alcohol? */
5938
6105
  contains_alcohol?: boolean;
6106
+ /** The name of the associated customer */
6107
+ customer_name?: string;
5939
6108
  /** the carrier on the customer provided label (for tracking purposes) */
5940
6109
  customer_provided_label_carrier?: string;
5941
6110
  /** Economic Operators Registration and Identification number for the sender of the order */
5942
6111
  customs_eori_number?: string;
6112
+ customs_info_attributes?: {
6113
+ /**
6114
+ * the associated importer of record id
6115
+ * @format int32
6116
+ */
6117
+ importer_of_record_id?: number;
6118
+ /** send ETD to carrier */
6119
+ send_electonic_trade_docs?: boolean;
6120
+ /** e-signature for customs */
6121
+ signer?: string;
6122
+ /** AU VAT number */
6123
+ au_vat_number?: string;
6124
+ /** EU VAT number */
6125
+ eu_vat_number?: string;
6126
+ /** non-EU/AU/UK VAT number */
6127
+ misc_vat_number?: string;
6128
+ /** UK VAT number */
6129
+ uk_vat_number?: string;
6130
+ /** IOSS number */
6131
+ ioss_number?: string;
6132
+ /** EORI number */
6133
+ eori_number?: string;
6134
+ };
5943
6135
  /** Import One-Stop Shop number for the sender of the order */
5944
6136
  customs_ioss_number?: string;
5945
6137
  /** does the order require customs documents? */
@@ -5986,6 +6178,8 @@ export interface PostApiV21Orders {
5986
6178
  incoterm?: PostApiV21OrdersIncoterm;
5987
6179
  /** is the order insured? */
5988
6180
  insure?: boolean;
6181
+ /** is the Order an international Order */
6182
+ international?: boolean;
5989
6183
  /** is the order gestating? */
5990
6184
  is_gestating?: boolean;
5991
6185
  /** is the order workable? */
@@ -6003,6 +6197,16 @@ export interface PostApiV21Orders {
6003
6197
  /** Included meta fields for associations */
6004
6198
  association_fields?: object;
6005
6199
  };
6200
+ /**
6201
+ * number of SKUs in this Order
6202
+ * @format int32
6203
+ */
6204
+ order_item_count?: number;
6205
+ /**
6206
+ * total quantity of all SKUs in this Order
6207
+ * @format int32
6208
+ */
6209
+ order_item_quantity?: number;
6006
6210
  order_items_attributes?: {
6007
6211
  /**
6008
6212
  * number of this item in Order
@@ -6115,6 +6319,8 @@ export interface PostApiV21Orders {
6115
6319
  };
6116
6320
  /** Permission limited orders are not editable, but still may be processed/shipped */
6117
6321
  permissions_limited?: boolean;
6322
+ /** is the order a pickup order */
6323
+ pickup?: boolean;
6118
6324
  /** the order public note */
6119
6325
  public_note?: string;
6120
6326
  /** the purchase order this order */
@@ -6167,11 +6373,15 @@ export interface PostApiV21Orders {
6167
6373
  shipping_country?: string;
6168
6374
  /** pickup option for carrier facility on the address destination */
6169
6375
  shipping_hold_for_pickup?: boolean;
6376
+ /** Shipping method carrier name */
6377
+ shipping_method_carrier?: string;
6170
6378
  /**
6171
6379
  * the order shipping method id
6172
6380
  * @format int32
6173
6381
  */
6174
6382
  shipping_method_id?: number;
6383
+ /** Shipping method service name */
6384
+ shipping_method_name?: string;
6175
6385
  /** the order shipping name */
6176
6386
  shipping_name?: string;
6177
6387
  /** the order shipping phone number */
@@ -6206,7 +6416,7 @@ export interface PostApiV21Orders {
6206
6416
  /** skip street date for this order? */
6207
6417
  skip_street_date?: boolean;
6208
6418
  /**
6209
- * the order status
6419
+ * 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)
6210
6420
  * @format int32
6211
6421
  */
6212
6422
  status?: PostApiV21OrdersStatus;
@@ -6214,8 +6424,48 @@ export interface PostApiV21Orders {
6214
6424
  tracking?: string[];
6215
6425
  /** the order tracking links */
6216
6426
  tracking_links?: string[];
6217
- /** is the order within its return time limit */
6218
- within_return_time_limit?: boolean;
6427
+ /** The name of the associated warehouse */
6428
+ warehouse_name?: string;
6429
+ wholesale_attributes?: {
6430
+ /** the name of the carrier code used for order goruping and filtering */
6431
+ carrier_code?: string;
6432
+ /** the service of the carrier code used for order goruping and filtering */
6433
+ carrier_service?: string;
6434
+ /** the recipient department */
6435
+ department?: string;
6436
+ /** description of the recipient department */
6437
+ department_description?: string;
6438
+ /** the recipient distribution center */
6439
+ distribution_center?: string;
6440
+ /** FOB code */
6441
+ fob_code?: string;
6442
+ /** the gift message that will need to show up on a packslip or gs1 label */
6443
+ gift_note?: string;
6444
+ /** the recipient location */
6445
+ location?: string;
6446
+ /** the order merchandise type code */
6447
+ merchandise_type_code?: string;
6448
+ /** the name of the trading partner for order grouping and filtering */
6449
+ partner?: string;
6450
+ /** the purchase order number */
6451
+ po_number?: string;
6452
+ /** the associated sender */
6453
+ sender?: string;
6454
+ /** the associated vendor */
6455
+ vendor?: string;
6456
+ /** the vendor number */
6457
+ vendor_number?: string;
6458
+ /**
6459
+ * the earliest possible arrival time for the shipment
6460
+ * @format date
6461
+ */
6462
+ start_date?: string;
6463
+ /**
6464
+ * the latest possible arrival time for the shipment
6465
+ * @format date
6466
+ */
6467
+ cancel_date?: string;
6468
+ };
6219
6469
  }
6220
6470
  /** Create an order document for an order */
6221
6471
  export interface PostApiV21OrdersIdOrderDocuments {
@@ -6339,7 +6589,7 @@ export declare enum PostApiV21OrdersOrderType {
6339
6589
  Wholesale = "wholesale"
6340
6590
  }
6341
6591
  /**
6342
- * the order status
6592
+ * 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)
6343
6593
  * @format int32
6344
6594
  */
6345
6595
  export declare enum PostApiV21OrdersStatus {
@@ -7640,7 +7890,7 @@ export interface PostApiV2Orders {
7640
7890
  /** skip street date for this order? */
7641
7891
  skip_street_date?: boolean;
7642
7892
  /**
7643
- * the order status
7893
+ * 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)
7644
7894
  * @format int32
7645
7895
  */
7646
7896
  status?: PostApiV2OrdersStatus;
@@ -7773,7 +8023,7 @@ export declare enum PostApiV2OrdersOrderType {
7773
8023
  Wholesale = "wholesale"
7774
8024
  }
7775
8025
  /**
7776
- * the order status
8026
+ * 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)
7777
8027
  * @format int32
7778
8028
  */
7779
8029
  export declare enum PostApiV2OrdersStatus {