-
Notifications
You must be signed in to change notification settings - Fork 0
/
rating.ts
5116 lines (5097 loc) · 200 KB
/
rating.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference path="./custom.d.ts" />
// tslint:disable
/**
* Rate
* The Rating API is used when rating or shopping a shipment.
*
* OpenAPI spec version: 1.0.1
*
*
* NOTE: This file is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the file manually.
*/
import * as url from "url";
import isomorphicFetch, { Response } from "node-fetch";
import { Configuration } from "./configuration";
const BASE_PATH = "https://wwwcie.ups.com/api/".replace(/\/+$/, "");
/**
*
* @export
*/
export const COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
pipes: "|",
};
/**
*
* @export
* @interface FetchAPI
*/
export interface FetchAPI {
(url: string, init?: any): Promise<Response>;
}
/**
*
* @export
* @interface FetchArgs
*/
export interface FetchArgs {
url: string;
options: any;
}
/**
*
* @export
* @class BaseAPI
*/
export class BaseAPI {
protected configuration: Configuration;
constructor(
configuration?: Configuration,
protected basePath: string = BASE_PATH,
protected fetch: FetchAPI = isomorphicFetch
) {
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
}
}
}
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
}
}
/**
* Access Point COD Currency Code. Required if Access Point COD container is present. UPS does not support all international currency codes. Refer to the appendix for a list of valid codes.
* @export
*/
export type AccessPointCODCurrencyCode = string;
/**
* Access Point COD Monetary Value. Required if Access Point COD container is present.
* @export
*/
export type AccessPointCODMonetaryValue = string;
/**
* Code for Accessorial Indicator.
* @export
*/
export type AccessorialCode = string;
/**
* Description for Accessorial Indicator.
* @export
*/
export type AccessorialDescription = string;
/**
* The UPS Access Point's street address, including name and number (when applicable). Length is not validated.
* @export
*/
export type AddressAddressLine = string;
/**
* UPS Access Point city.
* @export
*/
export type AddressCity = string;
/**
* Country or Territory code for the UPS accounts & billing address. Country or Territory Code is required when the FRS Payment Information type = 02 and type= 03.
* @export
*/
export type AddressCountryCode = string;
/**
* Presence/Absence Indicator. Any value inside is ignored. This field is a flag to indicate if the Alternate Delivery location is a PO box location. True if POBoxIndicator tag exists; false otherwise. Not valid with Shipment Indication Types: 01 Hold for Pickup at UPS Access Point 02 UPS Access Point� Delivery
* @export
*/
export type AddressPOBoxIndicator = string;
/**
* Postal Code for UPS accounts billing address. Postal Code may be present when the FRS Payment Information type = 02 and type = 03.
* @export
*/
export type AddressPostalCode = string;
/**
* Presence/Absence Indicator. Any value inside is ignored.This field is a flag to indicate if the Alternate Delivery location is a residential location. True if ResidentialAddressIndicator tag exists. For future use.
* @export
*/
export type AddressResidentialAddressIndicator = string;
/**
* UPS Access Point State or Province code.
* @export
*/
export type AddressStateProvinceCode = string;
/**
* Unit of Measurement container for the Adjusted height.
* @export
* @interface AdjustedHeightUnitOfMeasurement
*/
export interface AdjustedHeightUnitOfMeasurement {
/**
* The code associated with the unit of measure for the billable weight of a package.
* @type {string}
* @memberof AdjustedHeightUnitOfMeasurement
*/
Code: string;
/**
* The Description for the Unit Of Measurement.
* @type {string}
* @memberof AdjustedHeightUnitOfMeasurement
*/
Description: string;
}
/**
* Adjusted Height value for the handling unit. Adjusted Height is done only when Handling unit type is SKD = Skid or PLT = Pallet.
* @export
*/
export type AdjustedHeightValue = string;
/**
* Warning code returned by the system.
* @export
*/
export type AlertCode = string;
/**
* Warning messages returned by the system.
* @export
*/
export type AlertDescription = string;
/**
* Warning code returned by the system.
* @export
*/
export type AlertDetailCode = string;
/**
* Warning messages returned by the system.
* @export
*/
export type AlertDetailDescription = string;
/**
* Provides more information about the element that represents the alert.
* @export
* @interface AlertDetailElementLevelInformation
*/
export interface AlertDetailElementLevelInformation {
/**
* Define type of element in request. Possible values are - 'H� for the header details level, �S� for the shipment level, �P� for the package level, �C� for the commodity level.
* @type {string}
* @memberof AlertDetailElementLevelInformation
*/
Level: string;
/**
*
* @type {Array<ElementLevelInformationElementIdentifier>}
* @memberof AlertDetailElementLevelInformation
*/
ElementIdentifier?: Array<ElementLevelInformationElementIdentifier>;
}
/**
* Address container for Alternate Delivery Address.
* @export
* @interface AlternateDeliveryAddressAddress
*/
export interface AlternateDeliveryAddressAddress {
/**
* The UPS Access Point's street address, including name and number (when applicable). Length is not validated.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
AddressLine: string;
/**
* UPS Access Point city.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
City?: string;
/**
* UPS Access Point State or Province code.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
StateProvinceCode?: string;
/**
* Postal Code for UPS accounts billing address. Postal Code may be present when the FRS Payment Information type = 02 and type = 03.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
PostalCode?: string;
/**
* Country or Territory code for the UPS accounts & billing address. Country or Territory Code is required when the FRS Payment Information type = 02 and type= 03.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
CountryCode: string;
/**
* Presence/Absence Indicator. Any value inside is ignored.This field is a flag to indicate if the Alternate Delivery location is a residential location. True if ResidentialAddressIndicator tag exists. For future use.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
ResidentialAddressIndicator?: string;
/**
* Presence/Absence Indicator. Any value inside is ignored. This field is a flag to indicate if the Alternate Delivery location is a PO box location. True if POBoxIndicator tag exists; false otherwise. Not valid with Shipment Indication Types: 01 Hold for Pickup at UPS Access Point 02 UPS Access Point� Delivery
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
POBoxIndicator?: string;
}
/**
* UPS Access Point� location name.
* @export
*/
export type AlternateDeliveryAddressName = string;
/**
* Scheduled Local Delivery Date. Format: YYYYMMDD
* @export
*/
export type ArrivalDate = string;
/**
* The time UPS will pick up the shipment. This is commit Time. Military Time Format HHMMSS or HHMM
* @export
*/
export type ArrivalTime = string;
/**
* The IATA currency code associated with the base service charge costs for the shipment.
* @export
*/
export type BaseServiceChargeCurrencyCode = string;
/**
* The base value of the specific service for the shipment. This is equal to transportation charges - fuel surcharges.
* @export
*/
export type BaseServiceChargeMonetaryValue = string;
/**
* The IATA currency code associated with the amount for the package. UPS does not support all international currency codes. Refer to the appendix for a list of valid codes. Valid for UPS World Wide Express Freight shipments.
* @export
*/
export type BasicFlexibleParcelIndicatorCurrencyCode = string;
/**
* The monetary value associated with the package. Valid for UPS World Wide Express Freight shipments.
* @export
*/
export type BasicFlexibleParcelIndicatorMonetaryValue = string;
/**
* The UPS account number. The account must be a valid UPS account number that is active. For US, PR and CA accounts, the account must be a daily pickup account, an occasional account, a customer B.I.N account, or a dropper shipper account. All other accounts must be either a daily pickup account, an occasional account, a drop shipper account, or a non-shipping account.
* @export
*/
export type BillReceiverAccountNumber = string;
/**
* Container for additional information for the bill receiver�s UPS accounts address.
* @export
* @interface BillReceiverAddress
*/
export interface BillReceiverAddress {
/**
* Postal Code for UPS accounts billing address. Postal Code may be present when the FRS Payment Information type = 02 and type = 03.
* @type {string}
* @memberof BillReceiverAddress
*/
PostalCode?: string;
}
/**
* UPS account number Must be the same UPS account number as the one provided in Shipper/ShipperNumber.
* @export
*/
export type BillShipperAccountNumber = string;
/**
* The UPS account number of the third party shipper. The account must be a valid UPS account number that is active. For US, PR and CA accounts, the account must be either a daily pickup account, an occasional account, or a customer B.I.N account, or a drop shipper account. All other accounts must be either a daily pickup account, an occasional account, a drop shipper account, or a non-shipping account.
* @export
*/
export type BillThirdPartyAccountNumber = string;
/**
* Container for additional information for the third party UPS accounts address.
* @export
* @interface BillThirdPartyAddress
*/
export interface BillThirdPartyAddress {
/**
* Postal Code for UPS accounts billing address. Postal Code may be present when the FRS Payment Information type = 02 and type = 03.
* @type {string}
* @memberof BillThirdPartyAddress
*/
PostalCode?: string;
/**
* Country or Territory code for the UPS accounts & billing address. Country or Territory Code is required when the FRS Payment Information type = 02 and type= 03.
* @type {string}
* @memberof BillThirdPartyAddress
*/
CountryCode: string;
}
/**
* Unit Of Measurement Container.
* @export
* @interface BillingWeightUnitOfMeasurement
*/
export interface BillingWeightUnitOfMeasurement {
/**
* The code associated with the unit of measure for the billable weight of a package.
* @type {string}
* @memberof BillingWeightUnitOfMeasurement
*/
Code: string;
/**
* The Description for the Unit Of Measurement.
* @type {string}
* @memberof BillingWeightUnitOfMeasurement
*/
Description: string;
}
/**
* The value for the billable weight associated with the package. When using a negotiated divisor different from the published UPS divisor (139 for inches and 5,000 for cm), the weight returned is based on the published divisor. Rates, however, are based on the negotiated divisor.
* @export
*/
export type BillingWeightWeight = string;
/**
* COD amount currency code type. N/A
* @export
*/
export type CODAmountCurrencyCode = string;
/**
* COD Amount.
* @export
*/
export type CODAmountMonetaryValue = string;
/**
* CODAmount Container. UPS does not support all international currency codes. Refer to the appendix for a list of valid codes.
* @export
* @interface CODCODAmount
*/
export interface CODCODAmount {
/**
* COD amount currency code type. N/A
* @type {string}
* @memberof CODCODAmount
*/
CurrencyCode: string;
/**
* COD Amount.
* @type {string}
* @memberof CODCODAmount
*/
MonetaryValue: string;
}
/**
* For valid values, refer to�Rating and Shipping COD Supported Countries or Territories in the Appendix.
* @export
*/
export type CODCODFundsCode = string;
/**
* Freight Classification. Freight class partially determines the freight rate for the article. See Appendix of the Rating Ground Freight Web Services Developers Guide for list of Freight classes. For GFP Only.
* @export
*/
export type CommodityFreightClass = string;
/**
* NMFC Commodity container. For GFP Only.
* @export
* @interface CommodityNMFC
*/
export interface CommodityNMFC {
/**
* Value of NMFC Prime. Contact your service representative if you need information concerning NMFC Codes. Required if NMFC Container is present. For GFP Only.
* @type {string}
* @memberof CommodityNMFC
*/
PrimeCode: string;
/**
* Value of NMFC Sub. Contact your service representative if you need information concerning NMFC Codes. Needs to be provided when the SubCode associated with the PrimeCode is other than 00. API defaults the sub value to 00 if not provided. If provided the Sub Code should be associated with the PrimeCode of the NMFC.
* @type {string}
* @memberof CommodityNMFC
*/
SubCode?: string;
}
/**
* Customer classification code. Valid values: 00 - Rates Associated with Shipper Number 01 - Daily Rates 04 - Retail Rates 05 - Regional Rates 06 - General List Rates 53 - Standard List Rates Length is not validated. If customer classification code is not a valid value please refer to Rate Types Table on page 11.
* @export
*/
export type CustomerClassificationCode = string;
/**
* Customer classification description of the code above. Ignored if provided in the Request. Length is not validated.
* @export
*/
export type CustomerClassificationDescription = string;
/**
* The IATA currency code associated with the declared value amount for the package. Required if a value for the package declared value amount exists in the MonetaryValue tag. Must match one of the IATA currency codes. Length is not validated. UPS does not support all international currency codes. Refer to Currency Codes in the Appendix for a list of valid codes.
* @export
*/
export type DeclaredValueCurrencyCode = string;
/**
* The monetary value for the declared value amount associated with the package. Max value of 5,000 USD for Local and 50,000 USD for Remote. Absolute maximum value is 21474836.47
* @export
*/
export type DeclaredValueMonetaryValue = string;
/**
* Type of delivery confirmation. Valid values: 1 - Delivery Confirmation Signature Required 2 - Delivery Confirmation Adult Signature Required
* @export
*/
export type DeliveryConfirmationDCISType = string;
/**
* The presence of the tag DropOffAtUPSFacilityIndicator indicates the package will be dropped at a UPS facility for shipment.
* @export
*/
export type DeliveryOptionsDropOffAtUPSFacilityIndicator = string;
/**
* The presence of the tag LiftGateAtDeliveryIndicator indicates that the shipment requires a lift gate for delivery.
* @export
*/
export type DeliveryOptionsLiftGateAtDeliveryIndicator = string;
/**
* Valid values are: 02 - Document only 03 - Non-Document 04 - WWEF Pallet 07 - Domestic Pallet If 04 is included, Worldwide Express Freight and UPS Worldwide Express Freight Midday services (if applicable) will be included in the response.
* @export
*/
export type DeliveryTimeInformationPackageBillType = string;
/**
* Pickup container.
* @export
* @interface DeliveryTimeInformationPickup
*/
export interface DeliveryTimeInformationPickup {
/**
* The date UPS picks up the package from the origin. Format: YYYYMMDD. In the event the Pickup date differs from the Ship On Date, provided in the request, a warning message will be returned.
* @type {string}
* @memberof DeliveryTimeInformationPickup
*/
Date: string;
/**
* The time UPS will pick up the shipment. Military Time Format HHMMSS or HHMM
* @type {string}
* @memberof DeliveryTimeInformationPickup
*/
Time?: string;
}
/**
* Return contract services container
* @export
* @interface DeliveryTimeInformationReturnContractServices
*/
export interface DeliveryTimeInformationReturnContractServices {
/**
* Return contract Service code. Valid Code \"01\" - Heavy Goods. If 01 will return Heavy Goods service transit times for a given origin and destination (if applicable) Invalid Code will be ignore.
* @type {string}
* @memberof DeliveryTimeInformationReturnContractServices
*/
Code: string;
/**
* Return contract service Description
* @type {string}
* @memberof DeliveryTimeInformationReturnContractServices
*/
Description?: string;
}
/**
* UnitOfMeasurement Container. N/A
* @export
* @interface DimWeightUnitOfMeasurement
*/
export interface DimWeightUnitOfMeasurement {
/**
* The code associated with the unit of measure for the billable weight of a package.
* Valid values: KGS, LBS
* @type {string}
* @memberof DimWeightUnitOfMeasurement
*/
Code: string;
/**
* The Description for the Unit Of Measurement.
* @type {string}
* @memberof DimWeightUnitOfMeasurement
*/
Description: string;
}
/**
* Dimensional weight of the package. Decimal values are not accepted, however there is one implied decimal place for values in this field (i.e. 115 = 11.5).
* @export
*/
export type DimWeightWeight = string;
/**
* The height of the line item used to determine dimensional weight.
* @export
*/
export type DimensionsHeight = string;
/**
* The length of the line item used to determine dimensional weight.
* @export
*/
export type DimensionsLength = string;
/**
* UnitOfMeasurement container.
* @export
* @interface DimensionsUnitOfMeasurement
*/
export interface DimensionsUnitOfMeasurement {
/**
* The code associated with the unit of measure for the billable dimensions of a package.
* Valid values: IN, CM
* @type {string}
* @memberof DimensionsUnitOfMeasurement
*/
Code: string;
/**
* The Description for the Unit Of Measurement.
* @type {string}
* @memberof DimensionsUnitOfMeasurement
*/
Description: string;
}
/**
* The width of the line item used to determine dimensional weight.
* @export
*/
export type DimensionsWidth = string;
/**
* Code representing type of Disclaimer. Refer to the Appendix for possible code values.
* @export
*/
export type DisclaimerCode = string;
/**
* Disclaimer description. Please refer to Appendix for possible descriptions.
* @export
*/
export type DisclaimerDescription = string;
/**
* The IATA currency code associated with the transportation costs for the shipment.
* @export
*/
export type DiscountAmountCurrencyCode = string;
/**
* Total charges Monetary value. Valid values are from 0 to 9999999999999999.99
* @export
*/
export type DiscountAmountMonetaryValue = string;
/**
* Presence/Absence Indicator. Any value inside is ignored. Indicates a Dry Ice audit will be performed per the Regulation Set requirements. Empty tag means indicator is present.
* @export
*/
export type DryIceAuditRequired = string;
/**
* Container for Weight information for Dry Ice.
* @export
* @interface DryIceDryIceWeight
*/
export interface DryIceDryIceWeight {
/**
*
* @type {DryIceWeightUnitOfMeasurement}
* @memberof DryIceDryIceWeight
*/
UnitOfMeasurement: DryIceWeightUnitOfMeasurement;
/**
* Weight for Dry Ice. Cannot be more than package weight. Should be more than 0.0. Valid characters are 0-9 and \".\" (Decimal point). Limit to 1 digit after the decimal. The maximum length of the field is 5 including \".\" and can hold up to 1 decimal place.
* @type {string}
* @memberof DryIceDryIceWeight
*/
Weight: string;
}
/**
* Presence/Absence Indicator. Any value inside is ignored. Relevant only in CFR regulation set. If present it is used to designate the Dry Ice is for any medical use and rates are adjusted for DryIce weight more than 2.5 KGS or 5.5 LBS.
* @export
*/
export type DryIceMedicalUseIndicator = string;
/**
* Regulation set for DryIce Shipment. Valid values: CFR = For HazMat regulated by US Dept of Transportation within the U.S. or ground shipments to Canada, IATA = For Worldwide Air movement. The following values are valid: CFR and IATA.
* @export
*/
export type DryIceRegulationSet = string;
/**
* Container for Unit Of Measurement for Dry Ice.
* @export
* @interface DryIceWeightUnitOfMeasurement
*/
export interface DryIceWeightUnitOfMeasurement {
/**
* The code associated with the unit of measure for the billable weight of a package.
* @type {string}
* @memberof DryIceWeightUnitOfMeasurement
*/
Code: string;
/**
* The Description for the Unit Of Measurement.
* @type {string}
* @memberof DryIceWeightUnitOfMeasurement
*/
Description: string;
}
/**
* Weight for Dry Ice. Cannot be more than package weight. Should be more than 0.0. Valid characters are 0-9 and \".\" (Decimal point). Limit to 1 digit after the decimal. The maximum length of the field is 5 including \".\" and can hold up to 1 decimal place.
* @export
*/
export type DryIceWeightWeight = string;
/**
* Represents the type of element. Possible values are 'P' and 'C'.
* @export
*/
export type ElementIdentifierCode = string;
/**
* Represents the value of element.
* @export
*/
export type ElementIdentifierValue = string;
/**
* Contains more information about the type of element. Returned if Level is 'P' or 'C'.
* @export
* @interface ElementLevelInformationElementIdentifier
*/
export interface ElementLevelInformationElementIdentifier {
/**
* Represents the type of element. Possible values are 'P' and 'C'.
* @type {string}
* @memberof ElementLevelInformationElementIdentifier
*/
Code: string;
/**
* Represents the value of element.
* @type {string}
* @memberof ElementLevelInformationElementIdentifier
*/
Value: string;
}
/**
* Define type of element in request. Possible values are - 'H� for the header details level, �S� for the shipment level, �P� for the package level, �C� for the commodity level.
* @export
*/
export type ElementLevelInformationLevel = string;
/**
* Container for the Time-In-Transit arrival information by service. This is the most accurate delivery information available via the Rating API and will reflect changes in delivery schedules due to peak business seasons or holidays.
* @export
* @interface EstimatedArrivalArrival
*/
export interface EstimatedArrivalArrival {
/**
* Scheduled Local Delivery Date. Format: YYYYMMDD
* @type {string}
* @memberof EstimatedArrivalArrival
*/
Date: string;
/**
* The time UPS will pick up the shipment. This is commit Time. Military Time Format HHMMSS or HHMM
* @type {string}
* @memberof EstimatedArrivalArrival
*/
Time?: string;
}
/**
* Number of business days from Origin to Destination Locations.
* @export
*/
export type EstimatedArrivalBusinessDaysInTransit = string;
/**
* Customer Service call time. Returned for domestic as well as international requests.
* @export
*/
export type EstimatedArrivalCustomerCenterCutoff = string;
/**
* Day of week for arrival. Valid values are: MON TUE WED THU FRI SAT
* @export
*/
export type EstimatedArrivalDayOfWeek = string;
/**
* Number of days delayed at customs. Returned for International requests.
* @export
*/
export type EstimatedArrivalDelayCount = string;
/**
* Number of National holidays during transit. Returned for International requests.
* @export
*/
export type EstimatedArrivalHolidayCount = string;
/**
* The date and pick up time container.
* @export
* @interface EstimatedArrivalPickup
*/
export interface EstimatedArrivalPickup {
/**
* The date UPS picks up the package from the origin. Format: YYYYMMDD. In the event the Pickup date differs from the Ship On Date, provided in the request, a warning message will be returned.
* @type {string}
* @memberof EstimatedArrivalPickup
*/
Date: string;
/**
* The time UPS will pick up the shipment. Military Time Format HHMMSS or HHMM
* @type {string}
* @memberof EstimatedArrivalPickup
*/
Time?: string;
}
/**
* Number of rest days, i.e. non movement. Returned for International requests.
* @export
*/
export type EstimatedArrivalRestDays = string;
/**
* The total number of days in transit from one location to the next. Returned for International requests.
* @export
*/
export type EstimatedArrivalTotalTransitDays = string;
/**
* The IATA currency code associated with the amount for the package. UPS does not support all international currency codes. Refer to the appendix for a list of valid codes. Valid for UPS World Wide Express Freight shipments.
* @export
*/
export type ExtendedFlexibleParcelIndicatorCurrencyCode = string;
/**
* The monetary value associated with the package. Valid for UPS World Wide Express Freight shipments.
* @export
*/
export type ExtendedFlexibleParcelIndicatorMonetaryValue = string;
/**
* UPS Account Number.
* @export
*/
export type FRSPaymentInformationAccountNumber = string;
/**
* Payer Address Container. Address container may be present for FRS Payment Information type = 02 and required when the FRS Payment Information type = 03.
* @export
* @interface FRSPaymentInformationAddress
*/
export interface FRSPaymentInformationAddress {
/**
* Postal Code for UPS accounts billing address. Postal Code may be present when the FRS Payment Information type = 02 and type = 03.
* @type {string}
* @memberof FRSPaymentInformationAddress
*/
PostalCode?: string;
/**
* Country or Territory code for the UPS accounts & billing address. Country or Territory Code is required when the FRS Payment Information type = 02 and type= 03.
* @type {string}
* @memberof FRSPaymentInformationAddress
*/
CountryCode: string;
}
/**
* GFP Payment Information Type container. GFP only.
* @export
* @interface FRSPaymentInformationType
*/
export interface FRSPaymentInformationType {
/**
* The code associated with Handling Unit Type. Valid values: SKD = Skid CBY = Carboy PLT = Pallet TOT = Totes LOO = Loose OTH = Other
* @type {string}
* @memberof FRSPaymentInformationType
*/
Code: string;
/**
* A description of the code for the Handling Unit type.
* @type {string}
* @memberof FRSPaymentInformationType
*/
Description?: string;
}
/**
* FreightDensityRate container for Density based rating.
* @export
* @interface FRSShipmentDataFreightDensityRate
*/
export interface FRSShipmentDataFreightDensityRate {
/**
* Density is returned if the Shipper is eligible for Density based rate. Valid values:0 to 999.9
* @type {string}
* @memberof FRSShipmentDataFreightDensityRate
*/
Density: string;
/**
* TotalCubic feet is returned if the Shipper is eligible for Density based rate. Valid values:0 to 99999.999
* @type {string}
* @memberof FRSShipmentDataFreightDensityRate
*/
TotalCubicFeet: string;
}
/**
* Handling Unit for Density based rating container.
* @export
* @interface FRSShipmentDataHandlingUnits
*/
export interface FRSShipmentDataHandlingUnits {
/**
* Handling Unit Quantity for Density based rating.
* @type {string}
* @memberof FRSShipmentDataHandlingUnits
*/
Quantity: string;
/**
*
* @type {HandlingUnitsType}
* @memberof FRSShipmentDataHandlingUnits
*/
Type: HandlingUnitsType;
/**
*
* @type {HandlingUnitsDimensions}
* @memberof FRSShipmentDataHandlingUnits
*/
Dimensions: HandlingUnitsDimensions;
/**
*
* @type {HandlingUnitsAdjustedHeight}
* @memberof FRSShipmentDataHandlingUnits
*/
AdjustedHeight?: HandlingUnitsAdjustedHeight;
}
/**
* Transportation Charges Container
* @export
* @interface FRSShipmentDataTransportationCharges
*/
export interface FRSShipmentDataTransportationCharges {
/**
*
* @type {TransportationChargesGrossCharge}
* @memberof FRSShipmentDataTransportationCharges
*/
GrossCharge: TransportationChargesGrossCharge;
/**
*
* @type {TransportationChargesDiscountAmount}
* @memberof FRSShipmentDataTransportationCharges
*/
DiscountAmount: TransportationChargesDiscountAmount;
/**
* Discount Percentage
* @type {string}
* @memberof FRSShipmentDataTransportationCharges
*/
DiscountPercentage: string;
/**
*
* @type {TransportationChargesNetCharge}
* @memberof FRSShipmentDataTransportationCharges
*/
NetCharge: TransportationChargesNetCharge;
}
/**
* Container to hold Adjusted Height information. Required if AdjustedHeightIndicator is present.
* @export
* @interface FreightDensityInfoAdjustedHeight
*/
export interface FreightDensityInfoAdjustedHeight {
/**
* Adjusted Height value for the handling unit. Adjusted Height is done only when Handling unit type is SKD = Skid or PLT = Pallet.
* @type {string}
* @memberof FreightDensityInfoAdjustedHeight
*/
Value: string;
/**
*
* @type {AdjustedHeightUnitOfMeasurement}
* @memberof FreightDensityInfoAdjustedHeight
*/
UnitOfMeasurement: AdjustedHeightUnitOfMeasurement;
}
/**
* The presence of the AdjustedHeightIndicator allows UPS to do height reduction adjustment for density based rate request.
* @export
*/
export type FreightDensityInfoAdjustedHeightIndicator = string;
/**
* Handling Unit for Density based rating container.
* @export
* @interface FreightDensityInfoHandlingUnits
*/
export interface FreightDensityInfoHandlingUnits {
/**
* Handling Unit Quantity for Density based rating.
* @type {string}
* @memberof FreightDensityInfoHandlingUnits
*/
Quantity: string;
/**
*
* @type {HandlingUnitsType}
* @memberof FreightDensityInfoHandlingUnits
*/
Type: HandlingUnitsType;
/**
*
* @type {HandlingUnitsDimensions}
* @memberof FreightDensityInfoHandlingUnits
*/
Dimensions: HandlingUnitsDimensions;
}
/**
* Density is returned if the Shipper is eligible for Density based rate. Valid values:0 to 999.9
* @export
*/
export type FreightDensityRateDensity = string;
/**
* TotalCubic feet is returned if the Shipper is eligible for Density based rate. Valid values:0 to 99999.999
* @export
*/
export type FreightDensityRateTotalCubicFeet = string;
/**
* The presence of the tag indicates that the rate request is density based. For Density Based Rating (DBR), the customer must have DBR Contract Service.
* @export
*/
export type FreightShipmentInformationDensityEligibleIndicator = string;
/**
* Freight Density Info container. Required if DensityEligibleIndicator is present.
* @export
* @interface FreightShipmentInformationFreightDensityInfo
*/
export interface FreightShipmentInformationFreightDensityInfo {
/**
* The presence of the AdjustedHeightIndicator allows UPS to do height reduction adjustment for density based rate request.
* @type {string}
* @memberof FreightShipmentInformationFreightDensityInfo
*/
AdjustedHeightIndicator?: string;
/**
*
* @type {FreightDensityInfoAdjustedHeight}
* @memberof FreightShipmentInformationFreightDensityInfo
*/
AdjustedHeight?: FreightDensityInfoAdjustedHeight;
/**
*
* @type {FreightDensityInfoHandlingUnits}
* @memberof FreightShipmentInformationFreightDensityInfo
*/
HandlingUnits: FreightDensityInfoHandlingUnits;
}
/**
* The IATA currency code associated with the transportation costs for the shipment.
* @export
*/
export type GrossChargeCurrencyCode = string;
/**
* Total charges Monetary value. Valid values are from 0 to 9999999999999999.99
* @export
*/
export type GrossChargeMonetaryValue = string;
/**
* Container to hold Adjusted Height information.
* @export
* @interface HandlingUnitsAdjustedHeight
*/
export interface HandlingUnitsAdjustedHeight {
/**
* Adjusted Height value for the handling unit. Adjusted Height is done only when Handling unit type is SKD = Skid or PLT = Pallet.
* @type {string}
* @memberof HandlingUnitsAdjustedHeight
*/
Value: string;
/**
*
* @type {AdjustedHeightUnitOfMeasurement}
* @memberof HandlingUnitsAdjustedHeight
*/
UnitOfMeasurement: AdjustedHeightUnitOfMeasurement;
}
/**
* Dimension of the HandlingUnit container for density based pricing.
* @export
* @interface HandlingUnitsDimensions
*/
export interface HandlingUnitsDimensions {
/**
*
* @type {DimensionsUnitOfMeasurement}
* @memberof HandlingUnitsDimensions
*/