@whiplashmerch/whiplash-api-client 2.0.35 → 3.0.0

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.
Files changed (127) hide show
  1. package/dist/client.esm.js +3953 -16323
  2. package/dist/client.esm.js.map +1 -1
  3. package/dist/generated/AccountTransactions.d.ts +2 -2
  4. package/dist/generated/Accounts.d.ts +9 -9
  5. package/dist/generated/BillOfLadings.d.ts +4 -4
  6. package/dist/generated/Broadcasts.d.ts +2 -2
  7. package/dist/generated/BundleItems.d.ts +2 -2
  8. package/dist/generated/CarrierAccounts.d.ts +12 -12
  9. package/dist/generated/Carriers.d.ts +37 -1
  10. package/dist/generated/Chromalists.d.ts +2 -2
  11. package/dist/generated/ConsumerReturns.d.ts +10 -10
  12. package/dist/generated/Currencies.d.ts +2 -2
  13. package/dist/generated/Customers.d.ts +15 -15
  14. package/dist/generated/Documents.d.ts +3 -3
  15. package/dist/generated/FilterSets.d.ts +10 -10
  16. package/dist/generated/ImporterOfRecords.d.ts +5 -5
  17. package/dist/generated/Incidents.d.ts +2 -2
  18. package/dist/generated/InvoiceItems.d.ts +4 -4
  19. package/dist/generated/Invoices.d.ts +4 -4
  20. package/dist/generated/Items.d.ts +31 -31
  21. package/dist/generated/Loads.d.ts +4 -4
  22. package/dist/generated/LocationAdjustments.d.ts +5 -5
  23. package/dist/generated/LocationAudits.d.ts +3 -3
  24. package/dist/generated/LocationTransfers.d.ts +3 -3
  25. package/dist/generated/Locations.d.ts +11 -11
  26. package/dist/generated/Lots.d.ts +10 -10
  27. package/dist/generated/Manifests.d.ts +7 -7
  28. package/dist/generated/MetaKeys.d.ts +4 -4
  29. package/dist/generated/Nav.d.ts +2 -2
  30. package/dist/generated/NavItems.d.ts +2 -2
  31. package/dist/generated/NotificationEvents.d.ts +3 -3
  32. package/dist/generated/NotificationSubscriptions.d.ts +8 -8
  33. package/dist/generated/OrderBatchItems.d.ts +3 -3
  34. package/dist/generated/OrderBatchRequests.d.ts +2 -2
  35. package/dist/generated/OrderBatches.d.ts +17 -17
  36. package/dist/generated/OrderDocuments.d.ts +2 -2
  37. package/dist/generated/OrderItems.d.ts +13 -13
  38. package/dist/generated/OrderTotes.d.ts +4 -4
  39. package/dist/generated/Orders.d.ts +29 -29
  40. package/dist/generated/Originators.d.ts +8 -8
  41. package/dist/generated/Packages.d.ts +12 -12
  42. package/dist/generated/Pallets.d.ts +5 -5
  43. package/dist/generated/Partners.d.ts +2 -2
  44. package/dist/generated/ProjectTasks.d.ts +2 -2
  45. package/dist/generated/Projects.d.ts +4 -4
  46. package/dist/generated/Public.d.ts +2 -2
  47. package/dist/generated/Rates.d.ts +10 -10
  48. package/dist/generated/ReasonCodes.d.ts +3 -3
  49. package/dist/generated/RelocateInventoryTransfers.d.ts +2 -2
  50. package/dist/generated/ReturnAddresses.d.ts +7 -7
  51. package/dist/generated/Rules.d.ts +8 -8
  52. package/dist/generated/ScancodeAliases.d.ts +2 -2
  53. package/dist/generated/Scancodes.d.ts +2 -2
  54. package/dist/generated/Schemas.d.ts +20 -0
  55. package/dist/generated/SerialNumbers.d.ts +2 -2
  56. package/dist/generated/ShipnoticeItems.d.ts +18 -18
  57. package/dist/generated/Shipnotices.d.ts +22 -22
  58. package/dist/generated/ShippingAliases.d.ts +8 -8
  59. package/dist/generated/ShippingBlacklistedMethods.d.ts +2 -2
  60. package/dist/generated/ShippingMethodMarkups.d.ts +7 -7
  61. package/dist/generated/ShippingMethods.d.ts +4 -4
  62. package/dist/generated/Shops.d.ts +9 -9
  63. package/dist/generated/Stats.d.ts +3 -3
  64. package/dist/generated/SurchargeMarkups.d.ts +4 -4
  65. package/dist/generated/TemplateTypes.d.ts +2 -2
  66. package/dist/generated/Templates.d.ts +14 -14
  67. package/dist/generated/Transactions.d.ts +7 -7
  68. package/dist/generated/TransportationMarkups.d.ts +4 -4
  69. package/dist/generated/Users.d.ts +6 -6
  70. package/dist/generated/WarehouseFeatures.d.ts +2 -2
  71. package/dist/generated/Warehouses.d.ts +7 -7
  72. package/dist/generated/Wholesales.d.ts +2 -2
  73. package/dist/generated/data-contracts.d.ts +3341 -1071
  74. package/dist/generated/index.d.ts +1 -0
  75. package/dist/mock-data/index.d.ts +13 -5
  76. package/dist/mock-data/v2/consumer-return/all.d.ts +1 -1087
  77. package/dist/mock-data/v2/consumer-return/in-transit.d.ts +192 -355
  78. package/dist/mock-data/v2/customer/normal.d.ts +1 -0
  79. package/dist/mock-data/v2/item/bundle.d.ts +61 -0
  80. package/dist/mock-data/v2/item/merch.d.ts +121 -0
  81. package/dist/mock-data/v2/item/packaging.d.ts +61 -0
  82. package/dist/mock-data/v2/item/single.d.ts +9 -5
  83. package/dist/mock-data/v2/location/multiple.d.ts +78 -0
  84. package/dist/mock-data/v2/location/single.d.ts +78 -0
  85. package/dist/mock-data/v2/order/all.d.ts +1 -1665
  86. package/dist/mock-data/v2/order/processing.d.ts +67 -20
  87. package/dist/mock-data/v2/shipnotice/all.d.ts +1 -621
  88. package/dist/mock-data/v2/shipnotice/in-transit.d.ts +94 -51
  89. package/dist/mock-data/v2/shipnotice/processing.d.ts +90 -47
  90. package/dist/mock-data/v2_1/consumer-return/all.d.ts +1 -1087
  91. package/dist/mock-data/v2_1/consumer-return/in-transit.d.ts +10 -500
  92. package/dist/mock-data/v2_1/importer-of-record/created.d.ts +1 -0
  93. package/dist/mock-data/v2_1/item/bundle.d.ts +60 -0
  94. package/dist/mock-data/v2_1/item/merch.d.ts +119 -0
  95. package/dist/mock-data/v2_1/item/packaging.d.ts +60 -0
  96. package/dist/mock-data/v2_1/item/single.d.ts +9 -6
  97. package/dist/mock-data/v2_1/location/multiple.d.ts +15 -0
  98. package/dist/mock-data/v2_1/location/single.d.ts +15 -0
  99. package/dist/mock-data/v2_1/order/all.d.ts +1 -384
  100. package/dist/mock-data/v2_1/order/processing.d.ts +49 -86
  101. package/dist/mock-data/v2_1/order-batch/in-load.d.ts +0 -56
  102. package/dist/mock-data/v2_1/order-batch/wholesale-available.d.ts +0 -56
  103. package/dist/mock-data/v2_1/return-address/created.d.ts +1 -0
  104. package/dist/mock-data/v2_1/shipnotice/all.d.ts +1 -367
  105. package/dist/mock-data/v2_1/shipnotice/in-transit.d.ts +20 -198
  106. package/dist/mock-data/v2_1/shipnotice/processing.d.ts +18 -196
  107. package/generated/BundleItems.ts +8 -7
  108. package/generated/CarrierAliases.ts +3 -3
  109. package/generated/ConsumerReturns.ts +22 -20
  110. package/generated/Customers.ts +12 -11
  111. package/generated/Documents.ts +11 -11
  112. package/generated/Items.ts +56 -48
  113. package/generated/NotificationEvents.ts +6 -5
  114. package/generated/NotificationSubscriptions.ts +16 -15
  115. package/generated/OrderDocuments.ts +3 -3
  116. package/generated/OrderItems.ts +25 -24
  117. package/generated/OrderTotes.ts +6 -5
  118. package/generated/Orders.ts +47 -42
  119. package/generated/Originators.ts +4 -3
  120. package/generated/Projects.ts +4 -3
  121. package/generated/ShipnoticeItems.ts +17 -16
  122. package/generated/Shipnotices.ts +32 -30
  123. package/generated/Simulate.ts +13 -13
  124. package/generated/Templates.ts +11 -13
  125. package/generated/WholesaleItems.ts +9 -9
  126. package/generated/data-contracts.ts +558 -48
  127. package/package.json +1 -1
@@ -9,12 +9,20 @@
9
9
  * ---------------------------------------------------------------
10
10
  */
11
11
 
12
- /** V2 */
13
- export interface ApiV2EntitiesApiError {
12
+ /** Shared */
13
+ export interface ApiSharedEntitiesApiError {
14
14
  /** error message */
15
15
  message?: string;
16
16
  }
17
17
 
18
+ /** Shared */
19
+ export interface ApiSharedEntitiesMetaFields {
20
+ /** Included meta fields for associations */
21
+ association_fields?: object;
22
+ /** Hash of key/value pairs */
23
+ fields?: object;
24
+ }
25
+
18
26
  /** V2 */
19
27
  export interface ApiV2EntitiesBundleItem {
20
28
  /**
@@ -759,8 +767,6 @@ export interface ApiV2EntitiesDocument {
759
767
  customer_id?: number | null;
760
768
  /** associated customer name */
761
769
  customer_name?: string;
762
- /** the document name */
763
- file_name?: string;
764
770
  /**
765
771
  * the document id
766
772
  * @format int32
@@ -1206,14 +1212,6 @@ export interface ApiV2EntitiesLot {
1206
1212
  updated_at?: string;
1207
1213
  }
1208
1214
 
1209
- /** V2 */
1210
- export interface ApiV2EntitiesMetaFields {
1211
- /** Included meta fields for associations */
1212
- association_fields?: object;
1213
- /** Hash of key/value pairs */
1214
- fields?: object;
1215
- }
1216
-
1217
1215
  /** V2 */
1218
1216
  export interface ApiV2EntitiesNotificationEvent {
1219
1217
  /**
@@ -3062,7 +3060,53 @@ export interface ApiV2EntitiesWholesaleItem {
3062
3060
  vendor_part_number?: string | null;
3063
3061
  }
3064
3062
 
3065
- /** V2_1 */
3063
+ /** V3 */
3064
+ export interface ApiV21EntitiesBundleItem {
3065
+ /**
3066
+ * the bundle item bundle id (admins only)
3067
+ * @format int32
3068
+ */
3069
+ bundle_id?: number | null;
3070
+ /**
3071
+ * the bundle item creation date and time
3072
+ * @format date-time
3073
+ */
3074
+ created_at?: string | null;
3075
+ /**
3076
+ * the bundle item id
3077
+ * @format int32
3078
+ */
3079
+ id?: number;
3080
+ /**
3081
+ * the bundle item item id
3082
+ * @format int32
3083
+ */
3084
+ item_id?: number | null;
3085
+ item_name?: string;
3086
+ item_quantity?: string;
3087
+ /**
3088
+ * the bundle item max per package (admins only)
3089
+ * @format int32
3090
+ */
3091
+ max_per_package?: number | null;
3092
+ /**
3093
+ * the bundle item parent item id (admins only)
3094
+ * @format int32
3095
+ */
3096
+ parent_item_id?: number | null;
3097
+ /**
3098
+ * the bundle item quantity
3099
+ * @format int32
3100
+ */
3101
+ quantity?: number | null;
3102
+ /**
3103
+ * the bundle item last update date and time
3104
+ * @format date-time
3105
+ */
3106
+ updated_at?: string | null;
3107
+ }
3108
+
3109
+ /** V3 */
3066
3110
  export interface ApiV21EntitiesCarrierAlias {
3067
3111
  /** carrier alias slug */
3068
3112
  context?: string | null;
@@ -3079,7 +3123,7 @@ export interface ApiV21EntitiesCarrierAlias {
3079
3123
  scac?: string | null;
3080
3124
  }
3081
3125
 
3082
- /** V2_1 */
3126
+ /** V3 */
3083
3127
  export interface ApiV21EntitiesConsumerReturn {
3084
3128
  /**
3085
3129
  * 3rd party cost for the consumer return
@@ -3143,7 +3187,7 @@ export interface ApiV21EntitiesConsumerReturn {
3143
3187
  * @format int32
3144
3188
  */
3145
3189
  order_id?: number | null;
3146
- originator?: ApiV2EntitiesOriginator;
3190
+ originator?: ApiV21EntitiesOriginator;
3147
3191
  /** was postage billed? */
3148
3192
  postage_billed?: boolean | null;
3149
3193
  /** the name of the person who received the consumer return */
@@ -3197,7 +3241,16 @@ export interface ApiV21EntitiesConsumerReturn {
3197
3241
  warehouse_name?: string;
3198
3242
  }
3199
3243
 
3200
- /** V2_1 */
3244
+ /** V3 */
3245
+ export interface ApiV21EntitiesCount {
3246
+ /**
3247
+ * the resource count
3248
+ * @format int32
3249
+ */
3250
+ count?: number;
3251
+ }
3252
+
3253
+ /** V3 */
3201
3254
  export interface ApiV21EntitiesCustomer {
3202
3255
  /** Customer billing address line 1. */
3203
3256
  billing_address1?: string | null;
@@ -3417,7 +3470,7 @@ export interface ApiV21EntitiesCustomer {
3417
3470
  workday_uuid?: string | null;
3418
3471
  }
3419
3472
 
3420
- /** V2_1 */
3473
+ /** V3 */
3421
3474
  export interface ApiV21EntitiesCustomsInfo {
3422
3475
  /** AU VAT number */
3423
3476
  au_vat_number?: string | null;
@@ -3469,7 +3522,7 @@ export interface ApiV21EntitiesCustomsInfo {
3469
3522
  updated_at?: string;
3470
3523
  }
3471
3524
 
3472
- /** V2_1 */
3525
+ /** V3 */
3473
3526
  export interface ApiV21EntitiesDocument {
3474
3527
  context_list?: string[];
3475
3528
  /**
@@ -3484,8 +3537,6 @@ export interface ApiV21EntitiesDocument {
3484
3537
  customer_id?: number | null;
3485
3538
  /** associated customer name */
3486
3539
  customer_name?: string;
3487
- /** the document name */
3488
- file_name?: string;
3489
3540
  /**
3490
3541
  * the document id
3491
3542
  * @format int32
@@ -3513,7 +3564,7 @@ export interface ApiV21EntitiesDocument {
3513
3564
  user_name?: string;
3514
3565
  }
3515
3566
 
3516
- /** V2_1 */
3567
+ /** V3 */
3517
3568
  export interface ApiV21EntitiesItem {
3518
3569
  /** is the item active? */
3519
3570
  active?: boolean | null;
@@ -3629,6 +3680,26 @@ export interface ApiV21EntitiesItem {
3629
3680
  * @format int32
3630
3681
  */
3631
3682
  quantity?: number;
3683
+ /**
3684
+ * the item quantity in backstock
3685
+ * @format int32
3686
+ */
3687
+ quantity_backstock?: number;
3688
+ /**
3689
+ * the item quantity inbound
3690
+ * @format int32
3691
+ */
3692
+ quantity_inbound?: number;
3693
+ /**
3694
+ * the item quantity pickable
3695
+ * @format int32
3696
+ */
3697
+ quantity_pickable?: number;
3698
+ /**
3699
+ * the item quantity assigned to locations
3700
+ * @format int32
3701
+ */
3702
+ quantity_published?: number;
3632
3703
  /**
3633
3704
  * Minimum number of days worth of stock to keep in forward pick locations
3634
3705
  * @format float
@@ -3696,7 +3767,96 @@ export interface ApiV21EntitiesItem {
3696
3767
  width?: number | null;
3697
3768
  }
3698
3769
 
3699
- /** V2_1 */
3770
+ /** V3 */
3771
+ export interface ApiV21EntitiesItemLocation {
3772
+ /** Human readable version of the location name */
3773
+ humanize_shelf_name?: string;
3774
+ /**
3775
+ * the location id
3776
+ * @format int32
3777
+ */
3778
+ id?: number;
3779
+ /**
3780
+ * the number of in progress transfers
3781
+ * @format int32
3782
+ */
3783
+ in_progress_transfers?: number;
3784
+ /**
3785
+ * the lot expiration date
3786
+ * @format date-time
3787
+ */
3788
+ lot_expires_on?: string;
3789
+ /** the lot number associated to the location */
3790
+ lot_number?: string;
3791
+ /** the location name */
3792
+ name?: string;
3793
+ /**
3794
+ * the quantity of the location
3795
+ * @format int32
3796
+ */
3797
+ quantity?: number;
3798
+ /** pickable, backstock, etc */
3799
+ role?: ApiV21EntitiesItemLocationRole;
3800
+ /**
3801
+ * the uncommitted quantity of the location
3802
+ * @format int32
3803
+ */
3804
+ uncommitted?: number;
3805
+ /** the warehouse name for the location */
3806
+ warehouse_name?: string;
3807
+ }
3808
+
3809
+ /** V3 */
3810
+ export interface ApiV21EntitiesItemWarehouseQuantity {
3811
+ /**
3812
+ * item quantity at speficied warehouse, taking incoming orders into account
3813
+ * @format int32
3814
+ */
3815
+ projected_quantity?: number;
3816
+ /**
3817
+ * item shelf quantity at speficied warehouse
3818
+ * @format int32
3819
+ */
3820
+ quantity?: number;
3821
+ /**
3822
+ * item quantity at speficied warehouse, taking incoming orders, ship notices, and returns into account
3823
+ * @format int32
3824
+ */
3825
+ sellable_quantity?: number;
3826
+ }
3827
+
3828
+ /** V3 */
3829
+ export interface ApiV21EntitiesNotificationEvent {
3830
+ /**
3831
+ * the notification event creation date and time
3832
+ * @format date-time
3833
+ */
3834
+ created_at?: string;
3835
+ /** what the event is, and when it fires */
3836
+ description?: string;
3837
+ /** a more readable name of the event */
3838
+ humanized_name?: string;
3839
+ /**
3840
+ * the notification event id
3841
+ * @format int32
3842
+ */
3843
+ id?: number;
3844
+ /** the name of the event */
3845
+ name?: string | null;
3846
+ /** Whether or not this event requires customer subscription */
3847
+ requires_subscription?: boolean | null;
3848
+ /** the verb for this event */
3849
+ resource_message?: string | null;
3850
+ /** the type of resource this event is attached to */
3851
+ resource_type?: string | null;
3852
+ /**
3853
+ * the notification event last update date and time
3854
+ * @format date-time
3855
+ */
3856
+ updated_at?: string;
3857
+ }
3858
+
3859
+ /** V3 */
3700
3860
  export interface ApiV21EntitiesNotificationSubscription {
3701
3861
  /** is the notification subscription active? */
3702
3862
  active?: boolean | null;
@@ -3746,7 +3906,7 @@ export interface ApiV21EntitiesNotificationSubscription {
3746
3906
  version?: number | null;
3747
3907
  }
3748
3908
 
3749
- /** V2_1 */
3909
+ /** V3 */
3750
3910
  export interface ApiV21EntitiesOrder {
3751
3911
  /** the order billing street address 1 */
3752
3912
  billing_address_1?: string | null;
@@ -3911,7 +4071,7 @@ export interface ApiV21EntitiesOrder {
3911
4071
  order_orig?: string | null;
3912
4072
  /** the order type */
3913
4073
  order_type?: ApiV21EntitiesOrderOrderType;
3914
- originator?: ApiV2EntitiesOriginator;
4074
+ originator?: ApiV21EntitiesOriginator;
3915
4075
  /**
3916
4076
  * User-defined reference for shipping labels on packages.
3917
4077
  * Note: this field has a limit of 35 chars.
@@ -4047,6 +4207,11 @@ export interface ApiV21EntitiesOrder {
4047
4207
  * @format date-time
4048
4208
  */
4049
4209
  shop_updated_at?: string | null;
4210
+ /**
4211
+ * the order shop warehouse id
4212
+ * @format int32
4213
+ */
4214
+ shop_warehouse_id?: number | null;
4050
4215
  shop_warehouse_ids?: number[];
4051
4216
  /** skip order shipping address verification? (staff only) */
4052
4217
  skip_address_verification?: boolean | null;
@@ -4059,9 +4224,9 @@ export interface ApiV21EntitiesOrder {
4059
4224
  status?: ApiV21EntitiesOrderStatus;
4060
4225
  /** the order status name */
4061
4226
  status_name?: string;
4062
- /** the order tms id */
4227
+ /** The Transport Management System ID for the order, if applicable */
4063
4228
  tms_id?: string | null;
4064
- /** Whether tms is required */
4229
+ /** Does the order require a Transport Management System ID */
4065
4230
  tms_required?: boolean | null;
4066
4231
  tracking?: string[];
4067
4232
  tracking_links?: string[];
@@ -4085,7 +4250,62 @@ export interface ApiV21EntitiesOrder {
4085
4250
  workable_at?: string | null;
4086
4251
  }
4087
4252
 
4088
- /** V2_1 */
4253
+ /** V3 */
4254
+ export interface ApiV21EntitiesOrderDocument {
4255
+ /**
4256
+ * the order document creation date and time
4257
+ * @format date-time
4258
+ */
4259
+ created_at?: string | null;
4260
+ /**
4261
+ * the order document customer id
4262
+ * @format int32
4263
+ */
4264
+ customer_id?: number | null;
4265
+ /** the order document type */
4266
+ document_type?: string | null;
4267
+ /**
4268
+ * the order document id
4269
+ * @format int32
4270
+ */
4271
+ id?: number;
4272
+ /**
4273
+ * the order document order id
4274
+ * @format int32
4275
+ */
4276
+ order_id?: number | null;
4277
+ /**
4278
+ * the order document last update date and time
4279
+ * @format date-time
4280
+ */
4281
+ updated_at?: string | null;
4282
+ /** the order document file url */
4283
+ url?: string;
4284
+ }
4285
+
4286
+ /** V3 */
4287
+ export interface ApiV21EntitiesOrderEvent {
4288
+ /**
4289
+ * the event date and time
4290
+ * @format date-time
4291
+ */
4292
+ date?: string;
4293
+ /** event description. */
4294
+ description?: string;
4295
+ /** the event type */
4296
+ event_type?: string;
4297
+ /** saved by name (staff only) */
4298
+ saved_by?: string;
4299
+ /**
4300
+ * saved by id (staff only)
4301
+ * @format int32
4302
+ */
4303
+ saved_by_id?: number;
4304
+ /** saved by provider (staff only) */
4305
+ saved_via?: string;
4306
+ }
4307
+
4308
+ /** V3 */
4089
4309
  export interface ApiV21EntitiesOrderItem {
4090
4310
  /** is this item available? */
4091
4311
  available?: boolean | null;
@@ -4124,7 +4344,7 @@ export interface ApiV21EntitiesOrderItem {
4124
4344
  * @format int32
4125
4345
  */
4126
4346
  order_id?: number;
4127
- originator?: ApiV2EntitiesOriginator;
4347
+ originator?: ApiV21EntitiesOriginator;
4128
4348
  /**
4129
4349
  * the order item package id
4130
4350
  * @format int32
@@ -4182,10 +4402,70 @@ export interface ApiV21EntitiesOrderItem {
4182
4402
  * @format float
4183
4403
  */
4184
4404
  wholesale_fee?: number | null;
4185
- wholesale_item?: ApiV2EntitiesWholesaleItem;
4405
+ wholesale_item?: ApiV21EntitiesWholesaleItem;
4186
4406
  }
4187
4407
 
4188
- /** V2_1 */
4408
+ /** V3 */
4409
+ export interface ApiV21EntitiesOriginator {
4410
+ /** is the originator active? */
4411
+ active?: boolean | null;
4412
+ /**
4413
+ * the id of the oauth application
4414
+ * @format int32
4415
+ */
4416
+ application_id?: number | null;
4417
+ /**
4418
+ * the originator creation date and time
4419
+ * @format date-time
4420
+ */
4421
+ created_at?: string;
4422
+ /** the originator distinct key */
4423
+ distinct_originator_key?: string | null;
4424
+ /** the originator group id */
4425
+ group_id?: string | null;
4426
+ /**
4427
+ * the originator id
4428
+ * @format int32
4429
+ */
4430
+ id?: number;
4431
+ /**
4432
+ * the originator integration id
4433
+ * @format int32
4434
+ */
4435
+ integration_id?: number | null;
4436
+ /** the originator last notification status */
4437
+ last_notification_status?: string | null;
4438
+ /**
4439
+ * the originator last notified date and time
4440
+ * @format date-time
4441
+ */
4442
+ last_notified_at?: string | null;
4443
+ /** miscellaneous info for the originator */
4444
+ misc?: string | null;
4445
+ /** the originator original id (from the provider) */
4446
+ original_id?: string | null;
4447
+ /**
4448
+ * the id of the object created by the originator
4449
+ * @format int32
4450
+ */
4451
+ originated_id?: number | null;
4452
+ /** the type of object created by the originator */
4453
+ originated_type?: string | null;
4454
+ /** the originator provider (shopify, magento, bandcamp, etc) */
4455
+ provider?: string | null;
4456
+ /**
4457
+ * the originator shop id
4458
+ * @format int32
4459
+ */
4460
+ shop_id?: number | null;
4461
+ /**
4462
+ * the originator last update date and time
4463
+ * @format date-time
4464
+ */
4465
+ updated_at?: string;
4466
+ }
4467
+
4468
+ /** V3 */
4189
4469
  export interface ApiV21EntitiesPostResponse {
4190
4470
  /**
4191
4471
  * The Whiplash ID of the newly created resource
@@ -4194,7 +4474,123 @@ export interface ApiV21EntitiesPostResponse {
4194
4474
  id?: number;
4195
4475
  }
4196
4476
 
4197
- /** V2_1 */
4477
+ /** V3 */
4478
+ export interface ApiV21EntitiesProjectTask {
4479
+ /**
4480
+ * cost per unit, if task has custom label
4481
+ * @format float
4482
+ */
4483
+ cost_per_unit?: number | null;
4484
+ /**
4485
+ * project_task created_at
4486
+ * @format date-time
4487
+ */
4488
+ created_at?: string;
4489
+ /**
4490
+ * the customer that owns the project and task
4491
+ * @format int32
4492
+ */
4493
+ customer_id?: number;
4494
+ /** the description of the project task */
4495
+ description?: string | null;
4496
+ /** @format int32 */
4497
+ id?: number;
4498
+ /** the type of task, used to determine rates */
4499
+ label?: string;
4500
+ /**
4501
+ * the project id
4502
+ * @format int32
4503
+ */
4504
+ project_id?: number;
4505
+ /**
4506
+ * quantity of units
4507
+ * @format float
4508
+ */
4509
+ quantity?: number;
4510
+ /**
4511
+ * project_task updated_at
4512
+ * @format date-time
4513
+ */
4514
+ updated_at?: string;
4515
+ /**
4516
+ * the warehouse that owns the project and task
4517
+ * @format int32
4518
+ */
4519
+ warehouse_id?: number;
4520
+ }
4521
+
4522
+ /** V3 */
4523
+ export interface ApiV21EntitiesResult {
4524
+ /** the request result */
4525
+ result?: string;
4526
+ }
4527
+
4528
+ /** V3 */
4529
+ export interface ApiV21EntitiesScancode {
4530
+ /** is this scancode active? */
4531
+ active?: boolean | null;
4532
+ /**
4533
+ * scancode creation date
4534
+ * @format date-time
4535
+ */
4536
+ created_at?: string;
4537
+ /**
4538
+ * the customer_id
4539
+ * @format int32
4540
+ */
4541
+ customer_id?: number | null;
4542
+ /**
4543
+ * the scancode id
4544
+ * @format int32
4545
+ */
4546
+ id?: number;
4547
+ /**
4548
+ * the item_id
4549
+ * @format int32
4550
+ */
4551
+ item_id?: number | null;
4552
+ /** label format for the scancode */
4553
+ label_format?: string | null;
4554
+ /** the name for the scancode */
4555
+ name?: string | null;
4556
+ /** is this the primary scancode? */
4557
+ primary?: boolean | null;
4558
+ /** the name for the scancode (legacy) */
4559
+ scancode?: string;
4560
+ /**
4561
+ * scancode last updated date
4562
+ * @format date-time
4563
+ */
4564
+ updated_at?: string;
4565
+ }
4566
+
4567
+ /** V3 */
4568
+ export interface ApiV21EntitiesSerialNumber {
4569
+ /**
4570
+ * if not null, the DateTime when the serial was deleted
4571
+ * @format date-time
4572
+ */
4573
+ deleted_at?: string | null;
4574
+ /**
4575
+ * the serial number id
4576
+ * @format int32
4577
+ */
4578
+ id?: number;
4579
+ /**
4580
+ * the order_item_id for the serial number
4581
+ * @format int32
4582
+ */
4583
+ order_item_id?: number | null;
4584
+ /**
4585
+ * the shipnotice_item_id for the serial number (returns only)
4586
+ * @format int32
4587
+ */
4588
+ shipnotice_item_id?: number | null;
4589
+ /** the serial number itself */
4590
+ text?: string | null;
4591
+ }
4592
+
4593
+ /** V3 */
4198
4594
  export interface ApiV21EntitiesShipnotice {
4199
4595
  /**
4200
4596
  * 3rd party cost for the shipnotice
@@ -4271,7 +4667,7 @@ export interface ApiV21EntitiesShipnotice {
4271
4667
  * @format int32
4272
4668
  */
4273
4669
  order_id?: number | null;
4274
- originator?: ApiV2EntitiesOriginator;
4670
+ originator?: ApiV21EntitiesOriginator;
4275
4671
  /** was postage billed? */
4276
4672
  postage_billed?: boolean | null;
4277
4673
  /**
@@ -4354,7 +4750,7 @@ export interface ApiV21EntitiesShipnotice {
4354
4750
  zone_status?: string | null;
4355
4751
  }
4356
4752
 
4357
- /** V2_1 */
4753
+ /** V3 */
4358
4754
  export interface ApiV21EntitiesShipnoticeItem {
4359
4755
  /**
4360
4756
  * the shipnotice item creation date and time
@@ -4365,6 +4761,8 @@ export interface ApiV21EntitiesShipnoticeItem {
4365
4761
  description?: string | null;
4366
4762
  /** an extended description of the item */
4367
4763
  extended_description?: string | null;
4764
+ /** Garment on hanger? */
4765
+ goh?: boolean;
4368
4766
  /**
4369
4767
  * the shipnotice item id
4370
4768
  * @format int32
@@ -4429,7 +4827,7 @@ export interface ApiV21EntitiesShipnoticeItem {
4429
4827
  updated_at?: string | null;
4430
4828
  }
4431
4829
 
4432
- /** V2_1 */
4830
+ /** V3 */
4433
4831
  export interface ApiV21EntitiesTemplate {
4434
4832
  /** Content of the template */
4435
4833
  content?: string | null;
@@ -4470,7 +4868,68 @@ export interface ApiV21EntitiesTemplate {
4470
4868
  url?: string;
4471
4869
  }
4472
4870
 
4473
- /** V2_1 */
4871
+ /** V3 */
4872
+ export interface ApiV21EntitiesTransaction {
4873
+ /**
4874
+ * the transaction change
4875
+ * @format int32
4876
+ */
4877
+ change?: number | null;
4878
+ /**
4879
+ * the transaction creation date and time
4880
+ * @format date-time
4881
+ */
4882
+ created_at?: string | null;
4883
+ /** the transaction description */
4884
+ description?: string;
4885
+ /**
4886
+ * the transaction id
4887
+ * @format int32
4888
+ */
4889
+ id?: number;
4890
+ /**
4891
+ * the transaction item id
4892
+ * @format int32
4893
+ */
4894
+ item_id?: number;
4895
+ /**
4896
+ * the transaction order id
4897
+ * @format int32
4898
+ */
4899
+ order_id?: number | null;
4900
+ /**
4901
+ * the transaction balance - calculated
4902
+ * @format int32
4903
+ */
4904
+ quantity?: number;
4905
+ /**
4906
+ * the transaction rule id
4907
+ * @format int32
4908
+ */
4909
+ rule_id?: number | null;
4910
+ /**
4911
+ * the transaction shipnotice id
4912
+ * @format int32
4913
+ */
4914
+ shipnotice_id?: number | null;
4915
+ /**
4916
+ * associated shipnotice_item_id if transaction is created from a shipnotice
4917
+ * @format int32
4918
+ */
4919
+ shipnotice_item_id?: number;
4920
+ /**
4921
+ * the transaction last update date and time
4922
+ * @format date-time
4923
+ */
4924
+ updated_at?: string | null;
4925
+ /**
4926
+ * the transaction user id
4927
+ * @format int32
4928
+ */
4929
+ user_id?: number | null;
4930
+ }
4931
+
4932
+ /** V3 */
4474
4933
  export interface ApiV21EntitiesWholesale {
4475
4934
  /**
4476
4935
  * the latest possible arrival time for the shipment
@@ -4552,7 +5011,7 @@ export interface ApiV21EntitiesWholesale {
4552
5011
  vendor_number?: string | null;
4553
5012
  }
4554
5013
 
4555
- /** V2_1 */
5014
+ /** V3 */
4556
5015
  export interface ApiV21EntitiesWholesaleItem {
4557
5016
  /** the alternate barcode */
4558
5017
  alternate_barcode?: string | null;
@@ -6150,7 +6609,6 @@ export interface PostApiV21DocumentsRequest {
6150
6609
  context_list?: string;
6151
6610
  /** associated customer name */
6152
6611
  customer_name?: string;
6153
- /** the document name */
6154
6612
  file_name?: string;
6155
6613
  /** Comma separated list of keyword tags */
6156
6614
  keyword_list?: string;
@@ -6935,11 +7393,6 @@ export interface PostApiV21OrdersRequest {
6935
7393
  shipping_address_2?: string;
6936
7394
  /** the order shipping country iso2 (US, GB, CA, etc) */
6937
7395
  shipping_country_iso2?: string;
6938
- /**
6939
- * the order approxiamte delivery date
6940
- * @format date
6941
- */
6942
- approximate_delivery_date?: string;
6943
7396
  /** the order batch priority */
6944
7397
  batch_priority?: boolean;
6945
7398
  /** the order billing city */
@@ -6967,6 +7420,31 @@ export interface PostApiV21OrdersRequest {
6967
7420
  customer_provided_label_carrier?: string;
6968
7421
  /** Economic Operators Registration and Identification number for the sender of the order */
6969
7422
  customs_eori_number?: string;
7423
+ customs_info_attributes?: {
7424
+ /**
7425
+ * the associated importer of record id
7426
+ * @format int32
7427
+ */
7428
+ importer_of_record_id?: number;
7429
+ /** send ETD to carrier */
7430
+ send_electonic_trade_docs?: boolean;
7431
+ /** e-signature for customs */
7432
+ signer?: string;
7433
+ /** AU VAT number */
7434
+ au_vat_number?: string;
7435
+ /** EU VAT number */
7436
+ eu_vat_number?: string;
7437
+ /** non-EU/AU/UK VAT number */
7438
+ misc_vat_number?: string;
7439
+ /** UK VAT number */
7440
+ uk_vat_number?: string;
7441
+ /** IOSS number */
7442
+ ioss_number?: string;
7443
+ /** EORI number */
7444
+ eori_number?: string;
7445
+ /** Tax id */
7446
+ receiver_tax_id?: string;
7447
+ };
6970
7448
  /** Import One-Stop Shop number for the sender of the order */
6971
7449
  customs_ioss_number?: string;
6972
7450
  /** RFC Tax id */
@@ -8110,7 +8588,6 @@ export interface PostApiV2DocumentsRequest {
8110
8588
  context_list?: string;
8111
8589
  /** associated customer name */
8112
8590
  customer_name?: string;
8113
- /** the document name */
8114
8591
  file_name?: string;
8115
8592
  /** Comma separated list of keyword tags */
8116
8593
  keyword_list?: string;
@@ -8895,11 +9372,6 @@ export interface PostApiV2OrdersRequest {
8895
9372
  shipping_address_2?: string;
8896
9373
  /** the order shipping country iso2 (US, GB, CA, etc) */
8897
9374
  shipping_country_iso2?: string;
8898
- /**
8899
- * the order approxiamte delivery date
8900
- * @format date
8901
- */
8902
- approximate_delivery_date?: string;
8903
9375
  /** the order batch priority */
8904
9376
  batch_priority?: boolean;
8905
9377
  /** the order billing city */
@@ -8927,6 +9399,31 @@ export interface PostApiV2OrdersRequest {
8927
9399
  customer_provided_label_carrier?: string;
8928
9400
  /** Economic Operators Registration and Identification number for the sender of the order */
8929
9401
  customs_eori_number?: string;
9402
+ customs_info_attributes?: {
9403
+ /**
9404
+ * the associated importer of record id
9405
+ * @format int32
9406
+ */
9407
+ importer_of_record_id?: number;
9408
+ /** send ETD to carrier */
9409
+ send_electonic_trade_docs?: boolean;
9410
+ /** e-signature for customs */
9411
+ signer?: string;
9412
+ /** AU VAT number */
9413
+ au_vat_number?: string;
9414
+ /** EU VAT number */
9415
+ eu_vat_number?: string;
9416
+ /** non-EU/AU/UK VAT number */
9417
+ misc_vat_number?: string;
9418
+ /** UK VAT number */
9419
+ uk_vat_number?: string;
9420
+ /** IOSS number */
9421
+ ioss_number?: string;
9422
+ /** EORI number */
9423
+ eori_number?: string;
9424
+ /** Tax id */
9425
+ receiver_tax_id?: string;
9426
+ };
8930
9427
  /** Import One-Stop Shop number for the sender of the order */
8931
9428
  customs_ioss_number?: string;
8932
9429
  /** RFC Tax id */
@@ -12272,6 +12769,19 @@ export enum ApiV21EntitiesItemLabelFormat {
12272
12769
  WhiplashMini = "whiplash_mini",
12273
12770
  }
12274
12771
 
12772
+ /** pickable, backstock, etc */
12773
+ export enum ApiV21EntitiesItemLocationRole {
12774
+ Pickable = "pickable",
12775
+ Backstock = "backstock",
12776
+ Damaged = "damaged",
12777
+ Expired = "expired",
12778
+ Reserved = "reserved",
12779
+ Pending = "pending",
12780
+ External = "external",
12781
+ Dropoff = "dropoff",
12782
+ BStock = "b_stock",
12783
+ }
12784
+
12275
12785
  /** The country of origin for this item (as an iso2 country code) */
12276
12786
  export enum ApiV21EntitiesItemOriginCountry {
12277
12787
  AF = "AF",