@whiplashmerch/whiplash-api-client 2.0.6 → 2.0.8

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.
@@ -538,7 +538,7 @@ export interface ApiV2EntitiesConsumerReturn {
538
538
  * @format date-time
539
539
  */
540
540
  created_at?: string;
541
- customer?: ApiV21EntitiesCustomer;
541
+ customer?: ApiV2EntitiesCustomerShallow;
542
542
  /**
543
543
  * the consumer return customer id
544
544
  * @format int32
@@ -627,7 +627,7 @@ export interface ApiV2EntitiesConsumerReturn {
627
627
  * @format date-time
628
628
  */
629
629
  updated_at?: string;
630
- warehouse?: ApiV21EntitiesWarehouse;
630
+ warehouse?: ApiV2EntitiesWarehouseShallow;
631
631
  /**
632
632
  * the consumer return warehouse id
633
633
  * @format int32
@@ -926,6 +926,222 @@ export interface ApiV2EntitiesCustomer {
926
926
  warehouse_fallback?: number;
927
927
  whitelisted_warehouses?: ApiV2EntitiesWarehouse;
928
928
  }
929
+ export interface ApiV2EntitiesCustomerShallow {
930
+ /** Customer billing address line 1. */
931
+ billing_address1?: string;
932
+ /** Customer billing address line 2. */
933
+ billing_address2?: string;
934
+ /** Customer billing address line 3. */
935
+ billing_address3?: string;
936
+ /** Customer phone 1. */
937
+ billing_phone1?: string;
938
+ /** Customer phone 2. */
939
+ billing_phone2?: string;
940
+ /** GS1 company prefix for barcodes */
941
+ gs1_company_prefix?: string;
942
+ /** Customer return address line 1. */
943
+ return_address_1?: string;
944
+ /** Customer return address line 2. */
945
+ return_address_2?: string;
946
+ /**
947
+ * Account level
948
+ * @format int32
949
+ */
950
+ account_level?: number;
951
+ /** Quote, Direct, Enterprise, or Managed */
952
+ account_level_name?: string;
953
+ /**
954
+ * the customer activation date and time
955
+ * @format date-time
956
+ */
957
+ activated_at?: string;
958
+ /** Customer active? */
959
+ active?: boolean;
960
+ /** Allow "b stock" role for receiving */
961
+ allow_b_stock_receiving?: boolean;
962
+ allowed_warehouse_ids?: number[];
963
+ /**
964
+ * Customer auto merge gestation.
965
+ * @format int32
966
+ */
967
+ auto_merge_gestation?: number;
968
+ /** auto merge SKUs? */
969
+ auto_merge_skus?: boolean;
970
+ /** Customer billing city. */
971
+ billing_city?: string;
972
+ /** Customer billing company. */
973
+ billing_company?: string;
974
+ /** Customer billing contact name. */
975
+ billing_contact_name?: string;
976
+ /** if false, disables hardcoded billing logic (staff only) */
977
+ billing_core?: boolean;
978
+ /** Customer billing country. */
979
+ billing_country?: string;
980
+ /** Customer billing email. */
981
+ billing_email?: string;
982
+ /** Customer billing residential? */
983
+ billing_residential?: boolean;
984
+ /** Customer billing state. */
985
+ billing_state?: string;
986
+ /** Customer billing zip. */
987
+ billing_zip?: string;
988
+ /**
989
+ * the customer creation date and time
990
+ * @format date-time
991
+ */
992
+ created_at?: string;
993
+ /** Data mapping string for this customer. (admins only) */
994
+ data_mapping_string?: string;
995
+ /**
996
+ * the customer deactivation date and time
997
+ * @format date-time
998
+ */
999
+ deactivated_at?: string;
1000
+ /**
1001
+ * Customer default warehouse id.
1002
+ * @format int32
1003
+ */
1004
+ default_warehouse_id?: number;
1005
+ /** Customer EIN / Tax ID */
1006
+ ein?: string;
1007
+ /** Customer email confirmation from. */
1008
+ email_confirmation_from?: string;
1009
+ /** Customer email confirmation name. */
1010
+ email_confirmation_name?: string;
1011
+ /** Customer EORI number. */
1012
+ eori_number?: string;
1013
+ /** Customer estimated monthly volume. */
1014
+ estimated_monthly_volume?: string;
1015
+ /** is this account flagged for exit notice? (admins only) */
1016
+ exit_notice?: boolean;
1017
+ /**
1018
+ * items that are this many days from expiration will not be allowed to ship
1019
+ * @format int32
1020
+ */
1021
+ expiration_period?: number;
1022
+ /** Customer from email. */
1023
+ from_email?: string;
1024
+ /** Customer full logo url. */
1025
+ full_logo_url?: string;
1026
+ /**
1027
+ * the customer id
1028
+ * @format int32
1029
+ */
1030
+ id?: number;
1031
+ /** Customer instructions. */
1032
+ instructions?: string;
1033
+ /** Customer has item scanning preference? */
1034
+ item_scanning_preference?: boolean;
1035
+ /** items exchangeable by default? */
1036
+ items_exchangeable?: boolean;
1037
+ /** items returnable by default? */
1038
+ items_returnable?: boolean;
1039
+ /**
1040
+ * Process Orders setting: Whiplash will automatically turn on Process Orders when an item is received, and turn it off when an item sells. Whiplash will not manage Process Orders. Whiplash will automatically turn on Process Orders only the first time an Item is received. Whiplash will automatically turn on Process Orders when an item is received or adjusted in, and turn it off when an Item sells out.
1041
+ * @format int32
1042
+ */
1043
+ items_unavailable_on_sellout?: number;
1044
+ /** do items for this customer require lot control? */
1045
+ lot_control?: boolean;
1046
+ /**
1047
+ * Quantity where an item in inventory would be considered having low inventory
1048
+ * @format int32
1049
+ */
1050
+ low_inventory_threshold?: number;
1051
+ /** Customer name. */
1052
+ name?: string;
1053
+ /** Customer notes. */
1054
+ notes?: string;
1055
+ /** notify originator? */
1056
+ notify_originator?: boolean;
1057
+ /**
1058
+ * Customer notify originator inventory.
1059
+ * @format int32
1060
+ */
1061
+ notify_originator_inventory?: number;
1062
+ /** originator permissions? */
1063
+ originator_permissions?: boolean;
1064
+ /**
1065
+ * Customer partner id. (admins only)
1066
+ * @format int32
1067
+ */
1068
+ partner_id?: number;
1069
+ /** is this account on hold pending a valid payment method? */
1070
+ payment_hold?: boolean;
1071
+ /** The Customers designated primary contact. */
1072
+ primary_contact?: string;
1073
+ project_task_labels?: string[];
1074
+ receiving_fields?: object[];
1075
+ /**
1076
+ * Minimum number of days worth of stock to keep in forward pick locations
1077
+ * @format float
1078
+ */
1079
+ replenishment_min?: number;
1080
+ /**
1081
+ * Target number of days stock to replenish forward pick locations
1082
+ * @format float
1083
+ */
1084
+ replenishment_target?: number;
1085
+ /** request serial numbers? */
1086
+ request_serial_numbers?: boolean;
1087
+ /** Customer return city. */
1088
+ return_city?: string;
1089
+ /** Customer return company. */
1090
+ return_company?: string;
1091
+ /** Customer return country. */
1092
+ return_country?: string;
1093
+ /** Customer return email. */
1094
+ return_email?: string;
1095
+ /**
1096
+ * Return label expiration time limit.
1097
+ * @format int32
1098
+ */
1099
+ return_label_expires_in?: number;
1100
+ /** Customer return name. */
1101
+ return_name?: string;
1102
+ /** Customer return phone. */
1103
+ return_phone?: string;
1104
+ /** limit exchange to same value or less? */
1105
+ return_price_restricted?: boolean;
1106
+ /** Exchange SKU match policy. */
1107
+ return_sku_match?: string;
1108
+ /** Customer return state. */
1109
+ return_state?: string;
1110
+ /**
1111
+ * Return time limit.
1112
+ * @format int32
1113
+ */
1114
+ return_time_limit?: number;
1115
+ /** Customer return zip. */
1116
+ return_zip?: string;
1117
+ /** display customer logo on returns page? */
1118
+ rma_display_logo?: boolean;
1119
+ /** Return page footer content. */
1120
+ rma_footer_content?: string;
1121
+ /**
1122
+ * Customer shipping method preference.
1123
+ * @format int32
1124
+ */
1125
+ ship_method_preference?: number;
1126
+ /**
1127
+ * which locations to pick first: Default, FIFO, FEFO
1128
+ * @format int32
1129
+ */
1130
+ ship_strategy?: number;
1131
+ /** Customer shipping name. */
1132
+ shipping_name?: string;
1133
+ /** does the customer support return labels? */
1134
+ supports_return_labels?: boolean;
1135
+ /** Customer VAT number. */
1136
+ vat_number?: string;
1137
+ /**
1138
+ * Customer warehouse fallback.
1139
+ * @format int32
1140
+ */
1141
+ warehouse_fallback?: number;
1142
+ /** Workday UUID */
1143
+ workday_uuid?: string;
1144
+ }
929
1145
  export interface ApiV2EntitiesCustomsInfo {
930
1146
  /** AU VAT number */
931
1147
  au_vat_number?: string;
@@ -3510,8 +3726,18 @@ export interface ApiV2EntitiesPackage {
3510
3726
  */
3511
3727
  order_id?: number;
3512
3728
  order_item_ids?: number[];
3729
+ /**
3730
+ * the pallet id this package is on (staff only)
3731
+ * @format int32
3732
+ */
3733
+ pallet_id?: number;
3513
3734
  /** the package scan form url (staff only) */
3514
3735
  scan_form_url?: string;
3736
+ /**
3737
+ * when the package was scanned to a pallet (staff only)
3738
+ * @format date-time
3739
+ */
3740
+ scanned_to_pallet_at?: string;
3515
3741
  /**
3516
3742
  * the package shipping cost
3517
3743
  * @format float
@@ -3556,6 +3782,58 @@ export interface ApiV2EntitiesPackage {
3556
3782
  export interface ApiV2EntitiesPackingslipsArray {
3557
3783
  packingslips_array?: object;
3558
3784
  }
3785
+ export interface ApiV2EntitiesPallet {
3786
+ /**
3787
+ * the pallet creation date and time
3788
+ * @format date-time
3789
+ */
3790
+ created_at?: string;
3791
+ /**
3792
+ * the package id
3793
+ * @format int32
3794
+ */
3795
+ id?: number;
3796
+ /**
3797
+ * the date and time when the LPN label was printed
3798
+ * @format date-time
3799
+ */
3800
+ lpn_label_printed_at?: string;
3801
+ /**
3802
+ * the pallet number (LPN)
3803
+ * @format int32
3804
+ */
3805
+ number?: number;
3806
+ /**
3807
+ * the order batch id associated with the pallet
3808
+ * @format int32
3809
+ */
3810
+ order_batch_id?: number;
3811
+ /**
3812
+ * the total dimensional weight of the pallet
3813
+ * @format float
3814
+ */
3815
+ total_dimensional_weight?: number;
3816
+ /**
3817
+ * the total number of items in the pallet
3818
+ * @format int32
3819
+ */
3820
+ total_item_count?: number;
3821
+ /**
3822
+ * the total number of packages in the pallet
3823
+ * @format int32
3824
+ */
3825
+ total_package_count?: number;
3826
+ /**
3827
+ * the pallet last update date and time
3828
+ * @format date-time
3829
+ */
3830
+ updated_at?: string;
3831
+ /**
3832
+ * the pallet warehouse id
3833
+ * @format int32
3834
+ */
3835
+ warehouse_id?: number;
3836
+ }
3559
3837
  export interface ApiV2EntitiesPartner {
3560
3838
  /** Partner billing address line 1. */
3561
3839
  billing_address1?: string;
@@ -5209,6 +5487,138 @@ export interface ApiV2EntitiesWarehouseFeature {
5209
5487
  updated_at?: string;
5210
5488
  warehouses?: string;
5211
5489
  }
5490
+ export interface ApiV2EntitiesWarehouseShallow {
5491
+ /** Warehouse address line 1 */
5492
+ shipping_address_1?: string;
5493
+ /** Warehouse address line 2 */
5494
+ shipping_address_2?: string;
5495
+ /** Warehouse country code */
5496
+ shipping_country_iso2?: string;
5497
+ /** Is this Warehouse accepting new customers? (partners only) */
5498
+ accepting_new_customers?: boolean;
5499
+ /** Is the Warehouse active? (partners only) */
5500
+ active?: boolean;
5501
+ /**
5502
+ * Maximum cubic volume per bin (staff only)
5503
+ * @format float
5504
+ */
5505
+ bin_cubic_volume_max?: number;
5506
+ /**
5507
+ * Maximum total items per bin (staff only)
5508
+ * @format int32
5509
+ */
5510
+ bin_total_count_max?: number;
5511
+ /** Warehouse contact name (partners only) */
5512
+ contact_name?: string;
5513
+ /** Warehouse contact phone (partners only) */
5514
+ contact_phone?: string;
5515
+ /**
5516
+ * the warehouse creation date and time (partners only)
5517
+ * @format date-time
5518
+ */
5519
+ created_at?: string;
5520
+ /** Warehouse currency (partners only) */
5521
+ currency?: string;
5522
+ /** Paper or Robot scanning by default when batching? (staff only) */
5523
+ default_pick_strategy?: string;
5524
+ /** Does this Warehouse have delivery appointment reminders? (partners only) */
5525
+ delivery_appointment_required?: boolean;
5526
+ /** Warehouse does domestic return labels? (partners only) */
5527
+ domestic_return_labels?: boolean;
5528
+ /** the warehouse email address (partners only) */
5529
+ email?: string;
5530
+ /** Fulfillment cost center */
5531
+ fulfillment_cost_center?: string;
5532
+ /**
5533
+ * the warehouse id
5534
+ * @format int32
5535
+ */
5536
+ id?: number;
5537
+ /** Warehouse does intl return labels? (partners only) */
5538
+ international_return_labels?: boolean;
5539
+ /** Warehouse label format (partners only) */
5540
+ label_format?: string;
5541
+ /**
5542
+ * Warehouse latitude
5543
+ * @format float
5544
+ */
5545
+ latitude?: number;
5546
+ /**
5547
+ * Loading Dock Quantity (partners only)
5548
+ * @format int32
5549
+ */
5550
+ loading_dock_quantity?: number;
5551
+ /**
5552
+ * Warehouse longitude
5553
+ * @format float
5554
+ */
5555
+ longitude?: number;
5556
+ /** the warehouse name */
5557
+ name?: string;
5558
+ /** Miscellaneous notes/info (partners only) */
5559
+ notes?: string;
5560
+ /**
5561
+ * Number of slots/bins in carts--default maximum number of orders in a batch (staff only)
5562
+ * @format int32
5563
+ */
5564
+ number_of_groups?: number;
5565
+ /**
5566
+ * Packaging Customer ID (partners only)
5567
+ * @format int32
5568
+ */
5569
+ packaging_customer_id?: number;
5570
+ /** Parcel cost center */
5571
+ parcel_cost_center?: string;
5572
+ /**
5573
+ * Warehouse partner id
5574
+ * @format int32
5575
+ */
5576
+ partner_id?: number;
5577
+ /** Warehouse pickup hours (partners only) */
5578
+ pickup_hours?: string;
5579
+ /** Warehouse receiving hours (partners only) */
5580
+ receiving_hours?: string;
5581
+ /** Receiving special instructions (partners only) */
5582
+ receiving_special_instructions?: string;
5583
+ /** Warehouse city */
5584
+ shipping_city?: string;
5585
+ /** Warehouse country */
5586
+ shipping_country?: string;
5587
+ /** Warehouse shipping label format - EPL2 or ZPL (partners only) */
5588
+ shipping_label_format?: string;
5589
+ /** Warehouse state or province */
5590
+ shipping_state?: string;
5591
+ /** Warehouse postal code */
5592
+ shipping_zip?: string;
5593
+ /** Single Item Batch Size (partners only) */
5594
+ single_item_batch_size?: string;
5595
+ /** Warehouse slug */
5596
+ slug?: string;
5597
+ /**
5598
+ * Warehouse square footage (partners only)
5599
+ * @format int32
5600
+ */
5601
+ square_footage?: number;
5602
+ /** Warehouse timezone in friendly/legacy format (eg. "Eastern Time (US & Canada)") */
5603
+ timezone?: string;
5604
+ /** Warehouse timezone in standard format (eg. "America/New_York") */
5605
+ timezone_raw?: string;
5606
+ /**
5607
+ * the warehouse last update date and time (partners only)
5608
+ * @format date-time
5609
+ */
5610
+ updated_at?: string;
5611
+ /** Warehouse carrier facility (partners only) */
5612
+ ups_carrier_facility?: string;
5613
+ /** Warehouse UPS shipping number (partners only) */
5614
+ ups_shipper_number?: string;
5615
+ /**
5616
+ * Warehouse VAT number (partners only)
5617
+ * @format float
5618
+ */
5619
+ vat?: number;
5620
+ warehouse_features?: string;
5621
+ }
5212
5622
  export interface ApiV2EntitiesWholesale {
5213
5623
  /**
5214
5624
  * the latest possible arrival time for the shipment
@@ -10050,6 +10460,51 @@ export interface GetApiV21PackagesParams {
10050
10460
  /** Include total count of items */
10051
10461
  page_total?: boolean;
10052
10462
  }
10463
+ export interface GetApiV21PalletsCountParams {
10464
+ /** JSON search string like {"attribute_eq": "Term"} */
10465
+ search?: string;
10466
+ }
10467
+ export interface GetApiV21PalletsIdPackagesParams {
10468
+ /** JSON search string like {"attribute_eq": "Term"} */
10469
+ search?: string;
10470
+ /** Comma-separated list of fields to include in the response */
10471
+ fields?: string;
10472
+ /** A list of sort options (ex: name asc,created_at desc) */
10473
+ sort?: string;
10474
+ /**
10475
+ * Page of results to fetch.
10476
+ * @format int32
10477
+ */
10478
+ page?: number;
10479
+ /**
10480
+ * Number of results to return per page.
10481
+ * @format int32
10482
+ */
10483
+ per_page?: number;
10484
+ /** Include total count of items */
10485
+ page_total?: boolean;
10486
+ id: number;
10487
+ }
10488
+ export interface GetApiV21PalletsParams {
10489
+ /** JSON search string like {"attribute_eq": "Term"} */
10490
+ search?: string;
10491
+ /** Comma-separated list of fields to include in the response */
10492
+ fields?: string;
10493
+ /** A list of sort options (ex: name asc,created_at desc) */
10494
+ sort?: string;
10495
+ /**
10496
+ * Page of results to fetch.
10497
+ * @format int32
10498
+ */
10499
+ page?: number;
10500
+ /**
10501
+ * Number of results to return per page.
10502
+ * @format int32
10503
+ */
10504
+ per_page?: number;
10505
+ /** Include total count of items */
10506
+ page_total?: boolean;
10507
+ }
10053
10508
  export interface GetApiV21PartnersCountParams {
10054
10509
  /** JSON search string like {"attribute_eq": "Term"} */
10055
10510
  search?: string;
@@ -12429,6 +12884,51 @@ export interface GetApiV2PackagesParams {
12429
12884
  /** Include total count of items */
12430
12885
  page_total?: boolean;
12431
12886
  }
12887
+ export interface GetApiV2PalletsCountParams {
12888
+ /** JSON search string like {"attribute_eq": "Term"} */
12889
+ search?: string;
12890
+ }
12891
+ export interface GetApiV2PalletsIdPackagesParams {
12892
+ /** JSON search string like {"attribute_eq": "Term"} */
12893
+ search?: string;
12894
+ /** Comma-separated list of fields to include in the response */
12895
+ fields?: string;
12896
+ /** A list of sort options (ex: name asc,created_at desc) */
12897
+ sort?: string;
12898
+ /**
12899
+ * Page of results to fetch.
12900
+ * @format int32
12901
+ */
12902
+ page?: number;
12903
+ /**
12904
+ * Number of results to return per page.
12905
+ * @format int32
12906
+ */
12907
+ per_page?: number;
12908
+ /** Include total count of items */
12909
+ page_total?: boolean;
12910
+ id: number;
12911
+ }
12912
+ export interface GetApiV2PalletsParams {
12913
+ /** JSON search string like {"attribute_eq": "Term"} */
12914
+ search?: string;
12915
+ /** Comma-separated list of fields to include in the response */
12916
+ fields?: string;
12917
+ /** A list of sort options (ex: name asc,created_at desc) */
12918
+ sort?: string;
12919
+ /**
12920
+ * Page of results to fetch.
12921
+ * @format int32
12922
+ */
12923
+ page?: number;
12924
+ /**
12925
+ * Number of results to return per page.
12926
+ * @format int32
12927
+ */
12928
+ per_page?: number;
12929
+ /** Include total count of items */
12930
+ page_total?: boolean;
12931
+ }
12432
12932
  export interface GetApiV2PartnersCountParams {
12433
12933
  /** JSON search string like {"attribute_eq": "Term"} */
12434
12934
  search?: string;
@@ -25814,6 +26314,18 @@ export interface PutApiV21PackagesIdRequest {
25814
26314
  /** the package tracking number */
25815
26315
  tracking?: string;
25816
26316
  }
26317
+ export interface PutApiV21PalletsIdCallActionRequest {
26318
+ action?: string;
26319
+ /** Method params */
26320
+ args?: object;
26321
+ }
26322
+ export interface PutApiV21PalletsIdRequest {
26323
+ /**
26324
+ * the date and time when the LPN label was printed
26325
+ * @format date-time
26326
+ */
26327
+ lpn_label_printed_at?: string;
26328
+ }
25817
26329
  export interface PutApiV21PartnersIdRequest {
25818
26330
  /** Partner billing address line 1. */
25819
26331
  billing_address1?: string;
@@ -29782,6 +30294,18 @@ export interface PutApiV2PackagesIdRequest {
29782
30294
  /** the package tracking number */
29783
30295
  tracking?: string;
29784
30296
  }
30297
+ export interface PutApiV2PalletsIdCallActionRequest {
30298
+ action?: string;
30299
+ /** Method params */
30300
+ args?: object;
30301
+ }
30302
+ export interface PutApiV2PalletsIdRequest {
30303
+ /**
30304
+ * the date and time when the LPN label was printed
30305
+ * @format date-time
30306
+ */
30307
+ lpn_label_printed_at?: string;
30308
+ }
29785
30309
  export interface PutApiV2PartnersIdRequest {
29786
30310
  /** Partner billing address line 1. */
29787
30311
  billing_address1?: string;
@@ -46,6 +46,7 @@ export * from './OrderTotes';
46
46
  export * from './Orders';
47
47
  export * from './Originators';
48
48
  export * from './Packages';
49
+ export * from './Pallets';
49
50
  export * from './Partners';
50
51
  export * from './Prepacks';
51
52
  export * from './ProjectTasks';
@@ -42,6 +42,7 @@ export * from './v2_1/order/processing';
42
42
  export * from './v2_1/shipnotice/processing';
43
43
  export * from './v2_1/originator/created';
44
44
  export * from './v2_1/package/created';
45
+ export * from './v2_1/pallet/created';
45
46
  export * from './v2_1/partner/created';
46
47
  export * from './v2_1/project-task/created';
47
48
  export * from './v2_1/project/created';
@@ -0,0 +1 @@
1
+ export declare const ApiV21PalletCreatedExample = "{\"id\":123}";