@shipengine/connect-carrier-api 4.6.3 → 4.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/models/documents/document-type.d.ts +1 -1
- package/lib/models/documents/document-type.js +1 -1
- package/lib/models/documents/document-type.js.map +1 -1
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.js +1 -0
- package/lib/models/index.js.map +1 -1
- package/lib/models/labels/label-package.d.ts +3 -0
- package/lib/models/labels/label-package.js +2 -0
- package/lib/models/labels/label-package.js.map +1 -1
- package/lib/models/labels/paperless-details-schema.d.ts +2 -0
- package/lib/models/labels/paperless-details-schema.js +10 -0
- package/lib/models/labels/paperless-details-schema.js.map +1 -0
- package/lib/models/labels/paperless-details.d.ts +5 -0
- package/lib/models/labels/paperless-details.js +10 -0
- package/lib/models/labels/paperless-details.js.map +1 -0
- package/lib/responses/create-label-response-schema.js +2 -0
- package/lib/responses/create-label-response-schema.js.map +1 -1
- package/lib/responses/create-label-response.d.ts +2 -1
- package/lib/responses/create-label-response.js +1 -0
- package/lib/responses/create-label-response.js.map +1 -1
- package/package.json +1 -1
- package/spec.json +327 -20
- package/src/models/documents/document-type.ts +1 -1
- package/src/models/index.ts +1 -0
- package/src/models/labels/label-package.ts +3 -0
- package/src/models/labels/paperless-details-schema.ts +6 -0
- package/src/models/labels/paperless-details.ts +5 -0
- package/src/responses/create-label-response-schema.ts +2 -0
- package/src/responses/create-label-response.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
package/spec.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Shipping API",
|
|
5
5
|
"description": "This API specification describes the canonical ShipEngine Shipping API connector module.",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.20.1"
|
|
7
7
|
},
|
|
8
8
|
"paths": {
|
|
9
9
|
"/Register": {
|
|
@@ -20,7 +20,19 @@
|
|
|
20
20
|
"schema": {
|
|
21
21
|
"$ref": "#/components/schemas/ExampleRegisterRequest"
|
|
22
22
|
},
|
|
23
|
-
"example": {
|
|
23
|
+
"example": {
|
|
24
|
+
"registration_info": {
|
|
25
|
+
"username": "auctane-next-day",
|
|
26
|
+
"password": "password!",
|
|
27
|
+
"meter_number": "8675309"
|
|
28
|
+
},
|
|
29
|
+
"transaction_id": "00000000-0000-0000-0000-000000000000",
|
|
30
|
+
"metadata": {
|
|
31
|
+
"username": "auctane-next-day",
|
|
32
|
+
"password": "password!",
|
|
33
|
+
"meter_number": "8675309"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
24
36
|
}
|
|
25
37
|
}
|
|
26
38
|
},
|
|
@@ -32,7 +44,17 @@
|
|
|
32
44
|
"schema": {
|
|
33
45
|
"$ref": "#/components/schemas/RegisterResponse"
|
|
34
46
|
},
|
|
35
|
-
"example": {
|
|
47
|
+
"example": {
|
|
48
|
+
"credentials": {
|
|
49
|
+
"username": "auctane-next-day",
|
|
50
|
+
"password": "password!"
|
|
51
|
+
},
|
|
52
|
+
"metadata": {
|
|
53
|
+
"username": "auctane-next-day",
|
|
54
|
+
"password": "password!",
|
|
55
|
+
"meter_number": "8675309"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
36
58
|
}
|
|
37
59
|
}
|
|
38
60
|
}
|
|
@@ -188,7 +210,19 @@
|
|
|
188
210
|
"schema": {
|
|
189
211
|
"$ref": "#/components/schemas/ValidateInboundDataRequest"
|
|
190
212
|
},
|
|
191
|
-
"example": {
|
|
213
|
+
"example": {
|
|
214
|
+
"data": "{\"tracking_number\":\"12345678901234567890\",\"status\":11,\"timestamp\":\"2021-08-11T21:15:00Z\"}",
|
|
215
|
+
"headers": {
|
|
216
|
+
"content-type": [ "application/json" ],
|
|
217
|
+
"X-Signature": [ "v1:cedff7d0389299089e4c62c1042ce93059664d455ed0bfdf29cb959a861bda4b", "v2:4b3157c730e498cb1126359fa020017e9e7c97b148f2d55da822fdfcd83e4a19" ]
|
|
218
|
+
},
|
|
219
|
+
"transaction_id": "00000000-0000-0000-0000-000000000000",
|
|
220
|
+
"metadata": {
|
|
221
|
+
"username": "auctane-next-day",
|
|
222
|
+
"password": "password!",
|
|
223
|
+
"meter_number": "8675309"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
192
226
|
}
|
|
193
227
|
}
|
|
194
228
|
},
|
|
@@ -203,7 +237,7 @@
|
|
|
203
237
|
"examples": {
|
|
204
238
|
"Tracking": {
|
|
205
239
|
"summary": "Tracking",
|
|
206
|
-
"value": {"content_types":["tracking"]}
|
|
240
|
+
"value": { "content_types": [ "tracking" ] }
|
|
207
241
|
}
|
|
208
242
|
}
|
|
209
243
|
}
|
|
@@ -226,7 +260,19 @@
|
|
|
226
260
|
"schema": {
|
|
227
261
|
"$ref": "#/components/schemas/NormalizeTrackingDataRequest"
|
|
228
262
|
},
|
|
229
|
-
"example": {
|
|
263
|
+
"example": {
|
|
264
|
+
"data": "{\"tracking_number\":\"12345678901234567890\",\"status\":11,\"timestamp\":\"2021-08-11T21:15:00Z\"}",
|
|
265
|
+
"headers": {
|
|
266
|
+
"content-type": [ "application/json" ],
|
|
267
|
+
"X-Signature": [ "v1:cedff7d0389299089e4c62c1042ce93059664d455ed0bfdf29cb959a861bda4b", "v2:4b3157c730e498cb1126359fa020017e9e7c97b148f2d55da822fdfcd83e4a19" ]
|
|
268
|
+
},
|
|
269
|
+
"transaction_id": "00000000-0000-0000-0000-000000000000",
|
|
270
|
+
"metadata": {
|
|
271
|
+
"username": "auctane-next-day",
|
|
272
|
+
"password": "password!",
|
|
273
|
+
"meter_number": "8675309"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
230
276
|
}
|
|
231
277
|
}
|
|
232
278
|
},
|
|
@@ -241,7 +287,28 @@
|
|
|
241
287
|
"examples": {
|
|
242
288
|
"Delivered": {
|
|
243
289
|
"summary": "Delivered",
|
|
244
|
-
"value": {
|
|
290
|
+
"value": {
|
|
291
|
+
"tracking_info": [
|
|
292
|
+
{
|
|
293
|
+
"carrier_name": "UPS",
|
|
294
|
+
"tracking_number": "12345678901234567890",
|
|
295
|
+
"standardized_status_code": "DE",
|
|
296
|
+
"carrier_status_code": "11",
|
|
297
|
+
"carrier_status_description": "Delivered",
|
|
298
|
+
"estimated_delivery_datetime": "2021-08-11T00:00:00",
|
|
299
|
+
"actual_delivery_datetime": "2021-08-11T21:15:00Z",
|
|
300
|
+
"service": {
|
|
301
|
+
"code": "03",
|
|
302
|
+
"name": "UPS® Ground"
|
|
303
|
+
},
|
|
304
|
+
"packaging": "package",
|
|
305
|
+
"package_count": 1,
|
|
306
|
+
"shipping_problem": false,
|
|
307
|
+
"carrierEnum": 0
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"update_method": "append"
|
|
311
|
+
}
|
|
245
312
|
}
|
|
246
313
|
}
|
|
247
314
|
}
|
|
@@ -539,7 +606,32 @@
|
|
|
539
606
|
"schema": {
|
|
540
607
|
"$ref": "#/components/schemas/TrackingRequest"
|
|
541
608
|
},
|
|
542
|
-
"example": {
|
|
609
|
+
"example": {
|
|
610
|
+
"tracking_number": "12345678901234567890",
|
|
611
|
+
"is_return": false,
|
|
612
|
+
"identifiers": [
|
|
613
|
+
{
|
|
614
|
+
"type": "tracking_number",
|
|
615
|
+
"value": "12345678901234567890"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"type": "carrier_transaction_id",
|
|
619
|
+
"value": "US-12345678901234567890-1"
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"attributes": [
|
|
623
|
+
{
|
|
624
|
+
"type": "marketplace_order_token",
|
|
625
|
+
"value": "123456abcdefg7890"
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
"transaction_id": "00000000-0000-0000-0000-000000000000",
|
|
629
|
+
"metadata": {
|
|
630
|
+
"username": "auctane-next-day",
|
|
631
|
+
"password": "password!",
|
|
632
|
+
"meter_number": "8675309"
|
|
633
|
+
}
|
|
634
|
+
}
|
|
543
635
|
}
|
|
544
636
|
}
|
|
545
637
|
},
|
|
@@ -554,15 +646,211 @@
|
|
|
554
646
|
"examples": {
|
|
555
647
|
"Delivered with Event History": {
|
|
556
648
|
"summary": "Delivered with Event History",
|
|
557
|
-
"value": {
|
|
649
|
+
"value": {
|
|
650
|
+
"tracking_info": {
|
|
651
|
+
"carrier_name": "UPS",
|
|
652
|
+
"tracking_number": "12345678901234567890",
|
|
653
|
+
"standardized_status_code": "DE",
|
|
654
|
+
"carrier_status_code": "11",
|
|
655
|
+
"carrier_status_description": "Delivered",
|
|
656
|
+
"estimated_delivery_datetime": "2021-08-11T00:00:00",
|
|
657
|
+
"actual_delivery_datetime": "2021-08-11T21:15:00Z",
|
|
658
|
+
"weight": 500.0,
|
|
659
|
+
"dimensions": {
|
|
660
|
+
"length": 10.0,
|
|
661
|
+
"width": 10.0,
|
|
662
|
+
"height": 10.0
|
|
663
|
+
},
|
|
664
|
+
"service": {
|
|
665
|
+
"code": "03",
|
|
666
|
+
"name": "UPS® Ground"
|
|
667
|
+
},
|
|
668
|
+
"packaging": "package",
|
|
669
|
+
"package_count": 1,
|
|
670
|
+
"events": [
|
|
671
|
+
{
|
|
672
|
+
"event_datetime": "2021-08-08T21:15:00Z",
|
|
673
|
+
"event_datetime_local": "2021-08-08T16:15:00",
|
|
674
|
+
"event_code": "3",
|
|
675
|
+
"description": "Order Processed: Ready for UPS",
|
|
676
|
+
"city": "Austin",
|
|
677
|
+
"state": "TX",
|
|
678
|
+
"postal_code": "78756",
|
|
679
|
+
"country": "US",
|
|
680
|
+
"geo": {
|
|
681
|
+
"lat": 30.31,
|
|
682
|
+
"long": -97.74
|
|
683
|
+
},
|
|
684
|
+
"status_code": "AC"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"event_datetime": "2021-08-09T09:15:00Z",
|
|
688
|
+
"event_datetime_local": "2021-08-09T04:15:00",
|
|
689
|
+
"event_code": "5",
|
|
690
|
+
"description": "In Transit",
|
|
691
|
+
"city": "Austin",
|
|
692
|
+
"state": "TX",
|
|
693
|
+
"postal_code": "78756",
|
|
694
|
+
"country": "US",
|
|
695
|
+
"geo": {
|
|
696
|
+
"lat": 30.2,
|
|
697
|
+
"long": -97.66
|
|
698
|
+
},
|
|
699
|
+
"status_code": "IT"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"event_datetime": "2021-08-10T09:15:00Z",
|
|
703
|
+
"event_datetime_local": "2021-08-10T04:15:00",
|
|
704
|
+
"event_code": "6",
|
|
705
|
+
"description": "On Vehicle for Delivery",
|
|
706
|
+
"city": "Los Angeles",
|
|
707
|
+
"state": "CA",
|
|
708
|
+
"postal_code": "90045",
|
|
709
|
+
"country": "US",
|
|
710
|
+
"geo": {
|
|
711
|
+
"lat": 33.95,
|
|
712
|
+
"long": -118.38
|
|
713
|
+
},
|
|
714
|
+
"status_code": "IT"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"event_datetime": "2021-08-10T15:15:00Z",
|
|
718
|
+
"event_datetime_local": "2021-08-10T10:15:00",
|
|
719
|
+
"event_code": "21",
|
|
720
|
+
"description": "On Vehicle for Delivery Today",
|
|
721
|
+
"city": "Los Angeles",
|
|
722
|
+
"state": "CA",
|
|
723
|
+
"postal_code": "90045",
|
|
724
|
+
"country": "US",
|
|
725
|
+
"geo": {
|
|
726
|
+
"lat": 33.95,
|
|
727
|
+
"long": -118.38
|
|
728
|
+
},
|
|
729
|
+
"status_code": "IT"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"event_datetime": "2021-08-10T21:15:00Z",
|
|
733
|
+
"event_datetime_local": "2021-08-10T16:15:00",
|
|
734
|
+
"event_code": "22",
|
|
735
|
+
"description": "First Attempt Made",
|
|
736
|
+
"city": "El Segundo",
|
|
737
|
+
"state": "CA",
|
|
738
|
+
"postal_code": "90245",
|
|
739
|
+
"country": "US",
|
|
740
|
+
"geo": {
|
|
741
|
+
"lat": 33.95,
|
|
742
|
+
"long": -118.38
|
|
743
|
+
},
|
|
744
|
+
"status_code": "AT"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"event_datetime": "2021-08-11T03:15:00Z",
|
|
748
|
+
"event_datetime_local": "2021-08-10T22:15:00",
|
|
749
|
+
"event_code": "21",
|
|
750
|
+
"description": "On Vehicle for Delivery Today",
|
|
751
|
+
"city": "Los Angeles",
|
|
752
|
+
"state": "CA",
|
|
753
|
+
"postal_code": "90045",
|
|
754
|
+
"country": "US",
|
|
755
|
+
"geo": {
|
|
756
|
+
"lat": 33.95,
|
|
757
|
+
"long": -118.38
|
|
758
|
+
},
|
|
759
|
+
"status_code": "IT"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"event_datetime": "2021-08-11T21:15:00Z",
|
|
763
|
+
"event_datetime_local": "2021-08-11T16:15:00",
|
|
764
|
+
"event_code": "11",
|
|
765
|
+
"description": "Delivered",
|
|
766
|
+
"city": "El Segundo",
|
|
767
|
+
"state": "CA",
|
|
768
|
+
"postal_code": "90245",
|
|
769
|
+
"country": "US",
|
|
770
|
+
"geo": {
|
|
771
|
+
"lat": 33.95,
|
|
772
|
+
"long": -118.38
|
|
773
|
+
},
|
|
774
|
+
"status_code": "DE"
|
|
775
|
+
}
|
|
776
|
+
],
|
|
777
|
+
"shipping_problem": false,
|
|
778
|
+
"carrierEnum": 0
|
|
779
|
+
}
|
|
780
|
+
}
|
|
558
781
|
},
|
|
559
782
|
"Not Yet in System": {
|
|
560
783
|
"summary": "Not Yet in System",
|
|
561
|
-
"value": {
|
|
784
|
+
"value": {
|
|
785
|
+
"tracking_info": {
|
|
786
|
+
"carrier_name": "UPS",
|
|
787
|
+
"tracking_number": "12345678901234567890",
|
|
788
|
+
"standardized_status_code": "NY",
|
|
789
|
+
"events": [],
|
|
790
|
+
"shipping_problem": false,
|
|
791
|
+
"carrierEnum": 0
|
|
792
|
+
}
|
|
793
|
+
}
|
|
562
794
|
},
|
|
563
795
|
"Fatal Exception": {
|
|
564
796
|
"summary": "Fatal Exception",
|
|
565
|
-
"value": {
|
|
797
|
+
"value": {
|
|
798
|
+
"tracking_info": {
|
|
799
|
+
"carrier_name": "UPS",
|
|
800
|
+
"tracking_number": "12345678901234567890",
|
|
801
|
+
"standardized_status_code": "EX",
|
|
802
|
+
"carrier_status_code": "64",
|
|
803
|
+
"carrier_status_description": "Delivery Refused",
|
|
804
|
+
"estimated_delivery_datetime": "2021-08-11T00:00:00",
|
|
805
|
+
"actual_delivery_datetime": "2021-08-11T21:15:00Z",
|
|
806
|
+
"weight": 500.0,
|
|
807
|
+
"dimensions": {
|
|
808
|
+
"length": 10.0,
|
|
809
|
+
"width": 10.0,
|
|
810
|
+
"height": 10.0
|
|
811
|
+
},
|
|
812
|
+
"service": {
|
|
813
|
+
"code": "03",
|
|
814
|
+
"name": "UPS® Ground"
|
|
815
|
+
},
|
|
816
|
+
"packaging": "package",
|
|
817
|
+
"package_count": 1,
|
|
818
|
+
"events": [
|
|
819
|
+
{
|
|
820
|
+
"event_datetime": "2021-08-09T09:15:00Z",
|
|
821
|
+
"event_datetime_local": "2021-08-09T04:15:00",
|
|
822
|
+
"event_code": "5",
|
|
823
|
+
"description": "In Transit",
|
|
824
|
+
"city": "Austin",
|
|
825
|
+
"state": "TX",
|
|
826
|
+
"postal_code": "78756",
|
|
827
|
+
"country": "US",
|
|
828
|
+
"geo": {
|
|
829
|
+
"lat": 30.2,
|
|
830
|
+
"long": -97.66
|
|
831
|
+
},
|
|
832
|
+
"status_code": "IT"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"event_datetime": "2021-08-11T21:15:00Z",
|
|
836
|
+
"event_datetime_local": "2021-08-11T16:15:00",
|
|
837
|
+
"event_code": "59",
|
|
838
|
+
"description": "Delivery Refused",
|
|
839
|
+
"city": "El Segundo",
|
|
840
|
+
"state": "CA",
|
|
841
|
+
"postal_code": "90245",
|
|
842
|
+
"country": "US",
|
|
843
|
+
"geo": {
|
|
844
|
+
"lat": 33.95,
|
|
845
|
+
"long": -118.38
|
|
846
|
+
},
|
|
847
|
+
"status_code": "EX"
|
|
848
|
+
}
|
|
849
|
+
],
|
|
850
|
+
"shipping_problem": false,
|
|
851
|
+
"carrierEnum": 0
|
|
852
|
+
}
|
|
853
|
+
}
|
|
566
854
|
}
|
|
567
855
|
}
|
|
568
856
|
}
|
|
@@ -845,7 +1133,7 @@
|
|
|
845
1133
|
"description": "Indicates whether the recipient should be notified of events related to the shipment."
|
|
846
1134
|
}
|
|
847
1135
|
},
|
|
848
|
-
"additionalProperties": {
|
|
1136
|
+
"additionalProperties": {},
|
|
849
1137
|
"description": "This is a schemaless object. It is for open ended customizations unique to particular carriers. The documented\r\nkeys are some common options shared by many carriers, but are not definitive. Advanced options you support will\r\nbe defined in ShipEngine. If the field is absent it should be interpreted as the default value for any\r\napplicable options, e.g. false for booleans."
|
|
850
1138
|
},
|
|
851
1139
|
"Authorization": {
|
|
@@ -885,7 +1173,6 @@
|
|
|
885
1173
|
"metadata": {
|
|
886
1174
|
"type": "object",
|
|
887
1175
|
"additionalProperties": {
|
|
888
|
-
"type": "object",
|
|
889
1176
|
"nullable": true
|
|
890
1177
|
},
|
|
891
1178
|
"nullable": true
|
|
@@ -904,7 +1191,6 @@
|
|
|
904
1191
|
"metadata": {
|
|
905
1192
|
"type": "object",
|
|
906
1193
|
"additionalProperties": {
|
|
907
|
-
"type": "object",
|
|
908
1194
|
"nullable": true
|
|
909
1195
|
},
|
|
910
1196
|
"description": "This is an optional schemaless object that you may return with a successful response. Anything returned\r\nunder this key will be included in all future requests. For example, you may store additional static\r\nproperties about the end user or their connection to the carrier. The maximum storage size\r\nfor data under this key is 4KB.",
|
|
@@ -1450,6 +1736,9 @@
|
|
|
1450
1736
|
},
|
|
1451
1737
|
"relay_points": {
|
|
1452
1738
|
"$ref": "#/components/schemas/RelayPointDetails"
|
|
1739
|
+
},
|
|
1740
|
+
"paperless_details": {
|
|
1741
|
+
"$ref": "#/components/schemas/PaperlessDetails"
|
|
1453
1742
|
}
|
|
1454
1743
|
},
|
|
1455
1744
|
"additionalProperties": false,
|
|
@@ -1558,7 +1847,6 @@
|
|
|
1558
1847
|
"manifest_identifiers": {
|
|
1559
1848
|
"type": "object",
|
|
1560
1849
|
"additionalProperties": {
|
|
1561
|
-
"type": "object",
|
|
1562
1850
|
"nullable": true
|
|
1563
1851
|
},
|
|
1564
1852
|
"description": "Carrier information needed to get created manifests.\r\nOnly needed if carrier requires two calls to create and get manifests.",
|
|
@@ -2261,7 +2549,6 @@
|
|
|
2261
2549
|
"manifest_identifiers": {
|
|
2262
2550
|
"type": "object",
|
|
2263
2551
|
"additionalProperties": {
|
|
2264
|
-
"type": "object",
|
|
2265
2552
|
"nullable": true
|
|
2266
2553
|
},
|
|
2267
2554
|
"description": "Carrier specific data needed to retrieve Manifest results",
|
|
@@ -2757,6 +3044,9 @@
|
|
|
2757
3044
|
},
|
|
2758
3045
|
"description": "Documents associated with this package, if documents are not specified at a package level, use the\r\nDocuments array at the CarrierApi.Common.Response.CreateLabelResponse level.",
|
|
2759
3046
|
"nullable": true
|
|
3047
|
+
},
|
|
3048
|
+
"paperless_details": {
|
|
3049
|
+
"$ref": "#/components/schemas/PaperlessDetails"
|
|
2760
3050
|
}
|
|
2761
3051
|
},
|
|
2762
3052
|
"additionalProperties": false,
|
|
@@ -3035,6 +3325,21 @@
|
|
|
3035
3325
|
],
|
|
3036
3326
|
"type": "string"
|
|
3037
3327
|
},
|
|
3328
|
+
"PaperlessDetails": {
|
|
3329
|
+
"type": "object",
|
|
3330
|
+
"properties": {
|
|
3331
|
+
"instructions": {
|
|
3332
|
+
"type": "string",
|
|
3333
|
+
"nullable": true
|
|
3334
|
+
},
|
|
3335
|
+
"handoff_code": {
|
|
3336
|
+
"type": "string",
|
|
3337
|
+
"nullable": true
|
|
3338
|
+
}
|
|
3339
|
+
},
|
|
3340
|
+
"additionalProperties": false,
|
|
3341
|
+
"description": "The Paperless details for the shipment. This consists of additional information for paperless labels."
|
|
3342
|
+
},
|
|
3038
3343
|
"PickupConfirmation": {
|
|
3039
3344
|
"type": "object",
|
|
3040
3345
|
"properties": {
|
|
@@ -3405,7 +3710,6 @@
|
|
|
3405
3710
|
"registration_info": {
|
|
3406
3711
|
"type": "object",
|
|
3407
3712
|
"additionalProperties": {
|
|
3408
|
-
"type": "object",
|
|
3409
3713
|
"nullable": true
|
|
3410
3714
|
},
|
|
3411
3715
|
"description": "This is a schemaless object used to contain any required fields for validating a users credentials or\r\nregistering a new account. These fields will be custom to the shipping service provider, and will be\r\ncollected via a form and sent over as key value pairs.",
|
|
@@ -3428,7 +3732,6 @@
|
|
|
3428
3732
|
"metadata": {
|
|
3429
3733
|
"type": "object",
|
|
3430
3734
|
"additionalProperties": {
|
|
3431
|
-
"type": "object",
|
|
3432
3735
|
"nullable": true
|
|
3433
3736
|
},
|
|
3434
3737
|
"description": "This is an optional schemaless object that should be returned for persisted auth and user information.\r\nAnything returned under this key will be included in all future requests. For example, you may store\r\nadditional static properties about the end user or their connection to the carrier. The maximum\r\nstorage size for data under this key is 4KB.",
|
|
@@ -3857,7 +4160,12 @@
|
|
|
3857
4160
|
"nullable": true
|
|
3858
4161
|
},
|
|
3859
4162
|
"geolocation": {
|
|
3860
|
-
"
|
|
4163
|
+
"type": "array",
|
|
4164
|
+
"items": {
|
|
4165
|
+
"$ref": "#/components/schemas/Geolocation"
|
|
4166
|
+
},
|
|
4167
|
+
"description": "List of Geolocation objects to help identify the location.",
|
|
4168
|
+
"nullable": true
|
|
3861
4169
|
}
|
|
3862
4170
|
},
|
|
3863
4171
|
"additionalProperties": false
|
|
@@ -4372,7 +4680,6 @@
|
|
|
4372
4680
|
"update_settings": {
|
|
4373
4681
|
"type": "object",
|
|
4374
4682
|
"additionalProperties": {
|
|
4375
|
-
"type": "object",
|
|
4376
4683
|
"nullable": true
|
|
4377
4684
|
},
|
|
4378
4685
|
"description": "This is a schemaless object used to contain any required fields for updating carrier settings.",
|
|
@@ -8,6 +8,6 @@ export enum DocumentType {
|
|
|
8
8
|
CommercialInvoice = 'commercial_invoice',
|
|
9
9
|
/** @description A legal document issued by a carrier to a shipper that details the type, quantity, and destination of the goods being carried (does not indicate the ownership of goods nor does it carry a title to the goods being sold) */
|
|
10
10
|
BillOfLading = 'bill_of_lading',
|
|
11
|
-
/** @description A paperless label. For example: a
|
|
11
|
+
/** @description A paperless label. For example: a paperless label that customers can display on their phone */
|
|
12
12
|
PaperlessLabel = 'paperless_label',
|
|
13
13
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Identifier } from '../identifier';
|
|
2
2
|
import { Document } from '../documents';
|
|
3
|
+
import { PaperlessDetails } from './paperless-details';
|
|
3
4
|
|
|
4
5
|
/** @description Package information provided by the carrier */
|
|
5
6
|
export class LabelPackage {
|
|
@@ -11,4 +12,6 @@ export class LabelPackage {
|
|
|
11
12
|
alternative_identifiers?: Identifier[];
|
|
12
13
|
/** @description Documents associated with this package, if documents are not specified at a package level, use the Documents array at the CreateLabelResponse level. */
|
|
13
14
|
documents?: Document[];
|
|
15
|
+
/** @description Paperless details */
|
|
16
|
+
paperless_details?: PaperlessDetails;
|
|
14
17
|
}
|
|
@@ -8,11 +8,13 @@ import { LabelDownloadSchema } from '../models/labels/label-download-schema';
|
|
|
8
8
|
import { LabelPackageSchema } from '../models/labels/label-package-schema';
|
|
9
9
|
import { RelayPointDetailsSchema } from '../models/relay-points/relay-point-details-schema';
|
|
10
10
|
import { TimeWindowSchema } from '../models/time-window-schema';
|
|
11
|
+
import { PaperlessDetailsSchema } from '../models/labels/paperless-details-schema';
|
|
11
12
|
|
|
12
13
|
export const CreateLabelResponseSchema = BaseResponseSchema.keys({
|
|
13
14
|
transaction_id: Joi.string().required(),
|
|
14
15
|
label_download: LabelDownloadSchema.optional(),
|
|
15
16
|
form_download: FormDownloadSchema.optional(),
|
|
17
|
+
paperless_details: PaperlessDetailsSchema.optional(),
|
|
16
18
|
documents: Joi.array().optional().items(DocumentSchema),
|
|
17
19
|
packages: Joi.array().optional().items(LabelPackageSchema),
|
|
18
20
|
billing_line_items: Joi.array().optional().items(BillingLineItemSchema),
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Identifier,
|
|
9
9
|
TimeWindow,
|
|
10
10
|
RelayPointDetails,
|
|
11
|
+
PaperlessDetails,
|
|
11
12
|
} from '../models';
|
|
12
13
|
|
|
13
14
|
/** @description Basic structure for a response to create a label */
|
|
@@ -15,6 +16,7 @@ export class CreateLabelResponse extends BaseResponse {
|
|
|
15
16
|
transaction_id!: string;
|
|
16
17
|
label_download?: LabelDownload;
|
|
17
18
|
form_download?: FormDownload;
|
|
19
|
+
paperless_details?: PaperlessDetails;
|
|
18
20
|
documents?: Document[];
|
|
19
21
|
packages?: LabelPackage[];
|
|
20
22
|
billing_line_items?: BillingLineItem[];
|