-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshipping.ts
9893 lines (9860 loc) · 426 KB
/
shipping.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
/**
* Ship
* The Shipping Package API gives the application many ways to manage the shipment of packages to their destination
*
* 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.
* @export
*/
export type AccessPointCODCurrencyCode = string;
/**
* Access Point COD Monetary Value.
* @export
*/
export type AccessPointCODMonetaryValue = string;
/**
* Code for Accessorial Indicator.
* @export
*/
export type AccessorialCode = string;
/**
* Description for Accessorial Indicator.
* @export
*/
export type AccessorialDescription = string;
/**
* SoldTo location�s street address. Applies to NAFTA CO.
* @export
*/
export type AddressAddressLine = string;
/**
* SoldTo location�s city.
* @export
*/
export type AddressCity = string;
/**
* SoldTo location�s country or territory code.
* @export
*/
export type AddressCountryCode = string;
/**
* SoldTo location�s postal code.
* @export
*/
export type AddressPostalCode = string;
/**
* This field is a flag to indicate if the receiver is a residential location. True if ResidentialAddressIndicator tag exists. This is an empty tag, any value inside is ignored.
* @export
*/
export type AddressResidentialAddressIndicator = string;
/**
* SoldTo location�s state or province code. Required for certain countries or territories.
* @export
*/
export type AddressStateProvinceCode = string;
/**
* SoldTo location�s town code.
* @export
*/
export type AddressTown = string;
/**
* Unit of Measurement container for the Adjusted height.
* @export
* @interface AdjustedHeightUnitOfMeasurement
*/
export interface AdjustedHeightUnitOfMeasurement {
/**
* Code of the billing weight measurement units. Values are: KGS or LBS.
* @type {string}
* @memberof AdjustedHeightUnitOfMeasurement
*/
Code: string;
/**
* Description of the billing weight measurement units.
* @type {string}
* @memberof AdjustedHeightUnitOfMeasurement
*/
Description?: string;
}
/**
* Adjusted Height value for the handling unit. Height Adjustment 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;
/**
* Address Container.
* @export
* @interface AlternateDeliveryAddressAddress
*/
export interface AlternateDeliveryAddressAddress {
/**
* SoldTo location�s street address. Applies to NAFTA CO.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
AddressLine: string;
/**
* SoldTo location�s city.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
City: string;
/**
* SoldTo location�s state or province code. Required for certain countries or territories.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
StateProvinceCode?: string;
/**
* SoldTo location�s postal code.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
PostalCode?: string;
/**
* SoldTo location�s country or territory code.
* @type {string}
* @memberof AlternateDeliveryAddressAddress
*/
CountryCode: string;
}
/**
* Attention Name.
* @export
*/
export type AlternateDeliveryAddressAttentionName = string;
/**
* Retail Location Name.
* @export
*/
export type AlternateDeliveryAddressName = string;
/**
* UPS Access Point ID.
* @export
*/
export type AlternateDeliveryAddressUPSAccessPointID = string;
/**
* BaseServiceCharge currency code type. The currency code used in the Shipment request is returned.
* @export
*/
export type BaseServiceChargeCurrencyCode = string;
/**
* Base Service Charge value amount. Valid values are from 0 to 99999999999999.99
* @export
*/
export type BaseServiceChargeMonetaryValue = 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 {
/**
* SoldTo location�s postal code.
* @type {string}
* @memberof BillReceiverAddress
*/
PostalCode?: string;
}
/**
* UPS account number. Must be the same UPS account number as the one provided in Shipper/ShipperNumber. Either this element or one of the sibling elements CreditCard or AlternatePaymentMethod must be provided, but all of them may not be provided.
* @export
*/
export type BillShipperAccountNumber = string;
/**
* Alternate Payment Method. Valid value: 01= PayPal Only valid for forward shipments. It is not valid for Return or Import Control shipments. This element or one of the sibling elements CreditCard or AccountNumber must be provided, but all of them may not be provided. PayPal 01: Is only valid for forward shipments. It is not valid for Return or Import Control shipments. This element or one of the sibling elements CreditCard or AccountNumber must be provided, but all of them may not be provided.
* @export
*/
export type BillShipperAlternatePaymentMethod = string;
/**
* Credit card information container. Required if neither of the following is present: /ShipmentRequest/Shipment/PaymentInformation/ShipmentCharge/BillShipper/AccountNumber or /ShipmentRequest/Shipment/PaymentInformation/ShipmentCharge/BillShipper/AlternatePaymentMethod. Credit card payment is valid for shipments without return service only.
* @export
* @interface BillShipperCreditCard
*/
export interface BillShipperCreditCard {
/**
* Valid values: 01 = American Express 03 = Discover 04 = MasterCard 05 = Optima 06 = VISA 07 = Bravo 08 = Diners Club 13=Dankort 14=Hipercard 15=JCB 17=Postepay 18=UnionPay/ExpressPay 19=Visa Electron 20=VPAY 21=Carte Bleue
* @type {string}
* @memberof BillShipperCreditCard
*/
Type: string;
/**
* Credit Card number.
* @type {string}
* @memberof BillShipperCreditCard
*/
Number: string;
/**
* Format is MMYYYY where MM is the 2 digit month and YYYY is the 4 digit year. Valid month values are 01-12 and valid year values are Present Year � (Present Year + 10 years)
* @type {string}
* @memberof BillShipperCreditCard
*/
ExpirationDate: string;
/**
* Three or four digits that can be found either on top of credit card number or on the back of credit card. Number of digits varies for different type of credit card. Valid values are 3 or 4 digits. It is required to provide the security code if credit card information is provided and when the ShipFrom countries or territories are other than the below mentioned countries or territories. Argentina, Bahamas, Costa Rica, Dominican Republic, Guatemala, Panama, Puerto Rico and Russia.
* @type {string}
* @memberof BillShipperCreditCard
*/
SecurityCode: string;
/**
*
* @type {CreditCardAddress}
* @memberof BillShipperCreditCard
*/
Address?: CreditCardAddress;
}
/**
* 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 {
/**
* SoldTo location�s postal code.
* @type {string}
* @memberof BillThirdPartyAddress
*/
PostalCode?: string;
/**
* SoldTo location�s country or territory code.
* @type {string}
* @memberof BillThirdPartyAddress
*/
CountryCode: string;
}
/**
* Posta Elettronica Certificata (PEC) which is the recipient code for the customers certified electronic mail value.
* @export
*/
export type BillThirdPartyCertifiedElectronicMail = string;
/**
* Sistema Di Interscambio(SDI) which is the recipient code for the customer's interchange value or Interchange System Code
* @export
*/
export type BillThirdPartyInterchangeSystemCode = string;
/**
* Billing weight unit of measurement code.� The unit of measurement used in Shipment request is returned.
* @export
* @interface BillingWeightUnitOfMeasurement
*/
export interface BillingWeightUnitOfMeasurement {
/**
* Code of the billing weight measurement units. Values are: KGS or LBS.
* @type {string}
* @memberof BillingWeightUnitOfMeasurement
*/
Code: string;
/**
* Description of the billing weight measurement units.
* @type {string}
* @memberof BillingWeightUnitOfMeasurement
*/
Description?: string;
}
/**
* Billing weight. Higher of the actual shipment weight versus the shipment dimensional weight. 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;
/**
* Begin date of the blanket period. It is the date upon which the Certificate becomes applicable to the good covered by the blanket Certificate (it may be prior to the date of signing this Certificate). Applies to NAFTA CO form only. Required for NAFTA CO. Format is yyyyMMdd. This is not valid for a paperless shipment.
* @export
*/
export type BlanketPeriodBeginDate = string;
/**
* End Date of the blanket period. It is the date upon which the blanket period expires. Applies to NAFTA CO form only. Required for NAFTA CO. Format is yyyyMMdd. This is not valid for a paperless shipment.
* @export
*/
export type BlanketPeriodEndDate = string;
/**
* Country or Territory of Origin from where the CN22 contents originated.
* @export
*/
export type CN22ContentCN22ContentCountryOfOrigin = string;
/**
* Currently only USD is supported. Required if the CN22 form container is present.
* @export
*/
export type CN22ContentCN22ContentCurrencyCode = string;
/**
* Detailed description of the content. If the combined MI package and CN22 label is requested, only the first 30 characters will appear on the combined label. Required if the CN22 form container is present.
* @export
*/
export type CN22ContentCN22ContentDescription = string;
/**
* Total number of items associated with this content. Required if the CN22 form container is present.
* @export
*/
export type CN22ContentCN22ContentQuantity = string;
/**
* The tariff number associated with the CN22 contents.
* @export
*/
export type CN22ContentCN22ContentTariffNumber = string;
/**
* Total value of the items associated with this content. Required if the CN22 form container is present.
* @export
*/
export type CN22ContentCN22ContentTotalValue = string;
/**
* Container for CN22 content weight.
* @export
* @interface CN22ContentCN22ContentWeight
*/
export interface CN22ContentCN22ContentWeight {
/**
*
* @type {CN22ContentWeightUnitOfMeasurement}
* @memberof CN22ContentCN22ContentWeight
*/
UnitOfMeasurement: CN22ContentWeightUnitOfMeasurement;
/**
* Total weight of the content. Pounds and Ounces are allowed up to 2 decimals. Required if the CN22 form container is present.
* @type {string}
* @memberof CN22ContentCN22ContentWeight
*/
Weight: string;
}
/**
* Container for UOM.
* @export
* @interface CN22ContentWeightUnitOfMeasurement
*/
export interface CN22ContentWeightUnitOfMeasurement {
/**
* Code of the billing weight measurement units. Values are: KGS or LBS.
* @type {string}
* @memberof CN22ContentWeightUnitOfMeasurement
*/
Code: string;
/**
* Description of the billing weight measurement units.
* @type {string}
* @memberof CN22ContentWeightUnitOfMeasurement
*/
Description?: string;
}
/**
* Total weight of the content. Pounds and Ounces are allowed up to 2 decimals. Required if the CN22 form container is present.
* @export
*/
export type CN22ContentWeightWeight = string;
/**
* Container for CN22 content. Required if the CN22 form container is present. Note: The maximum number of goods printed on the CN22 form when a combined MI package and CN22 form label is requested is 30.
* @export
* @interface CN22FormCN22Content
*/
export interface CN22FormCN22Content {
/**
* Total number of items associated with this content. Required if the CN22 form container is present.
* @type {string}
* @memberof CN22FormCN22Content
*/
CN22ContentQuantity: string;
/**
* Detailed description of the content. If the combined MI package and CN22 label is requested, only the first 30 characters will appear on the combined label. Required if the CN22 form container is present.
* @type {string}
* @memberof CN22FormCN22Content
*/
CN22ContentDescription: string;
/**
*
* @type {CN22ContentCN22ContentWeight}
* @memberof CN22FormCN22Content
*/
CN22ContentWeight: CN22ContentCN22ContentWeight;
/**
* Total value of the items associated with this content. Required if the CN22 form container is present.
* @type {string}
* @memberof CN22FormCN22Content
*/
CN22ContentTotalValue: string;
/**
* Currently only USD is supported. Required if the CN22 form container is present.
* @type {string}
* @memberof CN22FormCN22Content
*/
CN22ContentCurrencyCode: string;
/**
* Country or Territory of Origin from where the CN22 contents originated.
* @type {string}
* @memberof CN22FormCN22Content
*/
CN22ContentCountryOfOrigin?: string;
/**
* The tariff number associated with the CN22 contents.
* @type {string}
* @memberof CN22FormCN22Content
*/
CN22ContentTariffNumber?: string;
}
/**
* Required if CN22Type is OTHER. Required if the CN22 form container is present.
* @export
*/
export type CN22FormCN22OtherDescription = string;
/**
* Valid values: 1 = GIFT 2 = DOCUMENTS 3 = COMMERCIAL SAMPLE 4 = OTHER Required if the CN22 form container is present.
* @export
*/
export type CN22FormCN22Type = string;
/**
* String will replace default \"Fold Here\" text displayed on the label.
* @export
*/
export type CN22FormFoldHereText = string;
/**
* Valid Values are pdf, png, gif, zpl, star, epl2 and spl. Required if the CN22 form container is present.
* @export
*/
export type CN22FormLabelPrintType = string;
/**
* Provide the valid values: 6 = 4X6 1 = 8.5X11 Required if the CN22 form container is present.
* @export
*/
export type CN22FormLabelSize = string;
/**
* Number of label per page. Currently 1 per page is supported. Required if the CN22 form container is present.
* @export
*/
export type CN22FormPrintsPerPage = string;
/**
* COD amount currency code type.
* @export
*/
export type CODAmountCurrencyCode = string;
/**
* COD Amount. Valid values: 0.01 USD to 50000.00 USD
* @export
*/
export type CODAmountMonetaryValue = string;
/**
* COD Amount container.
* @export
* @interface CODCODAmount
*/
export interface CODCODAmount {
/**
* COD amount currency code type.
* @type {string}
* @memberof CODCODAmount
*/
CurrencyCode: string;
/**
* COD Amount. Valid values: 0.01 USD to 50000.00 USD
* @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;
/**
* The container of the image for COD Turn In Page. Applicable only for ShipmentResponse and ShipAcceptResponse.
* @export
* @interface CODTurnInPageImage
*/
export interface CODTurnInPageImage {
/**
*
* @type {ImageImageFormat}
* @memberof CODTurnInPageImage
*/
ImageFormat: ImageImageFormat;
/**
* Base 64 Encoded PDF Image.
* @type {string}
* @memberof CODTurnInPageImage
*/
GraphicImage: string;
}
/**
* Freight Classification. Freight class partially determines the freight rate for the article. Required for Ground Freight Pricing Shipments only.
* @export
*/
export type CommodityFreightClass = string;
/**
* Container to hold the NMFC codes.
* @export
* @interface CommodityNMFC
*/
export interface CommodityNMFC {
/**
* Specifies the Commodity�s NMFC prime code. Required if NMFC Container is present.
* @type {string}
* @memberof CommodityNMFC
*/
PrimeCode: string;
/**
* Specifies the Commodity�s NMFC sub code. Needs to be provided when the SubCode associated with the PrimeCode is other than 00. UPS 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;
}
/**
* The forwarding agent is the company or person acting as agent in the trans-shipping of freight to the destination country or territory. Applicable for EEI form only.
* @export
* @interface ContactsForwardAgent
*/
export interface ContactsForwardAgent {
/**
* Company Name or the Individual name of the Forwarding agent. Applicable for EEI form only.
* @type {string}
* @memberof ContactsForwardAgent
*/
CompanyName: string;
/**
* Tax ID of the Forwarding agent. Valid Values: (Below values are applicable for EEIFilingOption Code =3) 94-308351500 13-168669100 Applicable for EEI form only.
* @type {string}
* @memberof ContactsForwardAgent
*/
TaxIdentificationNumber: string;
/**
*
* @type {ForwardAgentAddress}
* @memberof ContactsForwardAgent
*/
Address: ForwardAgentAddress;
}
/**
* The intermediate consignee is the person or company in the importing country or territory that makes final delivery to the ultimate consignee. Applicable for EEI form only.
* @export
* @interface ContactsIntermediateConsignee
*/
export interface ContactsIntermediateConsignee {
/**
* Company Name or the Individual name of the Intermediate consignee. Applicable for EEI form only.
* @type {string}
* @memberof ContactsIntermediateConsignee
*/
CompanyName: string;
/**
*
* @type {IntermediateConsigneeAddress}
* @memberof ContactsIntermediateConsignee
*/
Address: IntermediateConsigneeAddress;
}
/**
* Information of the producer. The NAFTA Certificate of Origin must be completed, signed, and dated by the exporter. When the Certificate is completed by the producer for use by the exporter, it must be completed, signed, and dated by the producer. The date must be the date the Certificate was completed and signed. Applies to NAFTA CO. Required for NAFTA CO forms.
* @export
* @interface ContactsProducer
*/
export interface ContactsProducer {
/**
* The text associated with the code will be printed in the producer section instead of producer contact information. Use attached List if more than one producer�s good is included on the Certificate, attach a list of additional producers, including the legal name, address (including country or territory), and legal tax identification number, cross-referenced to the goods described in the Description of Goods field. Applies to NAFTA CO. Valid values: 01 - AVAILABLE TO CUSTOMS UPON REQUEST 02 - SAME AS EXPORTER 03 - ATTACHED LIST 04 - UNKNOWN
* @type {string}
* @memberof ContactsProducer
*/
Option?: string;
/**
* Company Name or the Individual name of the Producer. Applies to NAFTA CO. Only applicable when producer option is empty or not present. Conditionally required for: NAFTA CO, when Producer option is not specified.
* @type {string}
* @memberof ContactsProducer
*/
CompanyName?: string;
/**
* Tax ID of the Producer. Applies to NAFTA CO. Only applicable when producer option is empty or not present
* @type {string}
* @memberof ContactsProducer
*/
TaxIdentificationNumber?: string;
/**
*
* @type {ProducerAddress}
* @memberof ContactsProducer
*/
Address?: ProducerAddress;
/**
* Contact name at the Producer location. Applies to NAFTA CO.
* @type {string}
* @memberof ContactsProducer
*/
AttentionName?: string;
/**
*
* @type {ProducerPhone}
* @memberof ContactsProducer
*/
Phone?: ProducerPhone;
/**
* Producer email address. Applies to NAFTA CO.
* @type {string}
* @memberof ContactsProducer
*/
EMailAddress?: string;
}
/**
* SoldTo Container. The Sold To party�s country code must be the same as the Ship To party�s country code with the exception of Canada and satellite countries. Applies to Invoice and NAFTA CO Forms. Required if Invoice or NAFTA CO (International Form) is requested.
* @export
* @interface ContactsSoldTo
*/
export interface ContactsSoldTo {
/**
* Company Name.
* @type {string}
* @memberof ContactsSoldTo
*/
Name: string;
/**
* Sold to contact name.
* @type {string}
* @memberof ContactsSoldTo
*/
AttentionName: string;
/**
* SoldTo Tax Identification Number.
* @type {string}
* @memberof ContactsSoldTo
*/
TaxIdentificationNumber?: string;
/**
*
* @type {SoldToPhone}
* @memberof ContactsSoldTo
*/
Phone?: SoldToPhone;
/**
* The text associated with the code will be printed in the sold to section of the NAFTA CO form. The values indicate the following: 01 � Unknown. Applies to NAFTA CO form. Possible Values are 01 and 02.
* @type {string}
* @memberof ContactsSoldTo
*/
Option?: string;
/**
*
* @type {SoldToAddress}
* @memberof ContactsSoldTo
*/
Address: SoldToAddress;
/**
* SoldTo email address.
* @type {string}
* @memberof ContactsSoldTo
*/
EMailAddress?: string;
}
/**
* The ultimate consignee is the person or company who receives the goods for end-use or the person or company listed on the export license. This is the end-user of the goods. Applicable for EEI form only.
* @export
* @interface ContactsUltimateConsignee
*/
export interface ContactsUltimateConsignee {
/**
* Company Name or the Individual name of the Ultimate consignee. Applicable for EEI form only.
* @type {string}
* @memberof ContactsUltimateConsignee
*/
CompanyName: string;
/**
*
* @type {UltimateConsigneeAddress}
* @memberof ContactsUltimateConsignee
*/
Address: UltimateConsigneeAddress;
/**
*
* @type {UltimateConsigneeUltimateConsigneeType}
* @memberof ContactsUltimateConsignee
*/
UltimateConsigneeType?: UltimateConsigneeUltimateConsigneeType;
}
/**
* Base 64 encoded html, EPL2, ZPL or SPL image.� Applicable only for ShipmentResponse and ShipAcceptResponse.
* @export
*/
export type ControlLogReceiptGraphicImage = string;
/**
* Container for the High Value report format required if parent exist. Applicable only for ShipmentResponse and ShipAcceptResponse.
* @export
* @interface ControlLogReceiptImageFormat
*/
export interface ControlLogReceiptImageFormat {
/**
* Code representing the format in which the High Value Report is generated. Valid values: PDF = pdf
* @type {string}
* @memberof ControlLogReceiptImageFormat
*/
Code: string;
/**
* Description of the image format.
* @type {string}
* @memberof ControlLogReceiptImageFormat
*/
Description?: string;
}
/**
* Container to hold the Credit card Billing Address. It is required to provide billing address if credit card information is provided and when the ShipFrom country or territory is the US, PR, and CA.
* @export
* @interface CreditCardAddress
*/
export interface CreditCardAddress {
/**
* SoldTo location�s street address. Applies to NAFTA CO.
* @type {string}
* @memberof CreditCardAddress
*/
AddressLine: string;
/**
* SoldTo location�s city.
* @type {string}
* @memberof CreditCardAddress
*/
City: string;
/**
* SoldTo location�s state or province code. Required for certain countries or territories.
* @type {string}
* @memberof CreditCardAddress
*/
StateProvinceCode?: string;
/**
* SoldTo location�s postal code.
* @type {string}
* @memberof CreditCardAddress
*/
PostalCode?: string;
/**
* SoldTo location�s country or territory code.
* @type {string}
* @memberof CreditCardAddress
*/
CountryCode: string;
}
/**
* Format is MMYYYY where MM is the 2 digit month and YYYY is the 4 digit year. Valid month values are 01-12 and valid year values are Present Year � (Present Year + 10 years)
* @export
*/
export type CreditCardExpirationDate = string;
/**
* Credit Card number.
* @export
*/
export type CreditCardNumber = string;
/**
* Three or four digits that can be found either on top of credit card number or on the back of credit card. Number of digits varies for different type of credit card. Valid values are 3 or 4 digits. It is required to provide the security code if credit card information is provided and when the ShipFrom countries or territories are other than the below mentioned countries or territories. Argentina, Bahamas, Costa Rica, Dominican Republic, Guatemala, Panama, Puerto Rico and Russia.
* @export
*/
export type CreditCardSecurityCode = string;
/**
* Valid values: 01 = American Express 03 = Discover 04 = MasterCard 05 = Optima 06 = VISA 07 = Bravo 08 = Diners Club 13=Dankort 14=Hipercard 15=JCB 17=Postepay 18=UnionPay/ExpressPay 19=Visa Electron 20=VPAY 21=Carte Bleue
* @export
*/
export type CreditCardType = string;
/**
* Approved Community Member Number (ACM). It is required to be provided along with ITARExemptionNumber for some License code (SGB and SAU). The ACM# for the United Kingdom (License code SGB) must begin with UK followed by 9 numbers. The ACM# for Australia (License Code SAU) must begin with DTT followed by 8 numbers. Applies to EEI form only. It is required for EEIFilingOption code 1A and 3.
* @export
*/
export type DDTCInformationACMNumber = string;
/**
* Presence/Absent indicator. Certification by the U.S. exporter that the exporter is an eligible party to participate in the defense trade.
* @export
*/
export type DDTCInformationEligiblePartyIndicator = string;
/**
* The specific citation (exemption number) under the International Traffic in Arms Regulations (ITAR) from the Code of Federal Register (see 22 CFR 120-130) that exempts the shipment from the requirements for a license or other written authorization from the Directorate of Trade Controls (DDTC). Refer to EEI License Codes in the Appendix for valid values. Applies to EEI Form only. This field is applicable for EEIFiling option 1A and 3.
* @export
*/
export type DDTCInformationITARExemptionNumber = string;
/**
* Export Quantity. Applies to EEI form only. It is required for EEIFilingOption code 3. Only positive integer value is valid.
* @export
*/
export type DDTCInformationQuantity = string;
/**
* It is a unique registration code assigned to the registrant. The DDTC registration code consist of a letter prefix, M (assigned to a manufacturer and/or exporter) or K (assigned to a broker), followed by four or five digits (e.g. K-1234 or M12345). It is required for EEIFilingOption code 3.
* @export
*/
export type DDTCInformationRegistrationNumber = string;
/**
* Presence/ Absence Indicator. Applies to EEI form only.
* @export
*/
export type DDTCInformationSignificantMilitaryEquipmentIndicator = string;
/**
* Digit numeric code (e.g. 01-18, 20 or 21). Indicates the U.S. Munitions List (USML) category article, service or related technical data as it applies to the article reported. Applies to EEI form only. It is required for EEIFilingOption code 3.
* @export
*/
export type DDTCInformationUSMLCategoryCode = string;
/**
* Container for unit of measurement. Applies to EEI form only. It is required for EEIFilingOption code 3.
* @export
* @interface DDTCInformationUnitOfMeasurement
*/
export interface DDTCInformationUnitOfMeasurement {
/**
* Code of the billing weight measurement units. Values are: KGS or LBS.
* @type {string}
* @memberof DDTCInformationUnitOfMeasurement
*/
Code: string;
/**
* Description of the billing weight measurement units.
* @type {string}
* @memberof DDTCInformationUnitOfMeasurement
*/
Description?: string;
}
/**
* Date of signing the declaration form. Valid format is YYYYMMDD.
* @export
*/
export type DGSignatoryInfoDate = string;
/**
* Name of the person signing the declaration. Note: The name of person or department he/she is employed with, are both acceptable.
* @export
*/
export type DGSignatoryInfoName = string;
/**
* The city of the Signatory.
* @export
*/
export type DGSignatoryInfoPlace = string;
/**
* Valid values: 01 = Shipment level 02 = Package level Valid only for the Shipper Declaration paper. If missing or invalid DGPaperImage will be returned at package level.
* @export
*/
export type DGSignatoryInfoShipperDeclaration = string;
/**
* Title of the person signing the declaration. Note: The title of the person or department he/she is employed with, are both acceptable.
* @export
*/
export type DGSignatoryInfoTitle = string;
/**
* Dangerous Goods Paper Upload Only Indicator. DG Paper will not be returned in response if UploadOnlyIndicator present.
* @export
*/
export type DGSignatoryInfoUploadOnlyIndicator = string;
/**
* Declared value amount currency type. Defaults to the non-Euro currency used in the shippers country or territory. Code must represent a currency that is a valid for Shipper country or territory.
* @export
*/
export type DeclaredValueCurrencyCode = string;
/**
* Declared value amount.
* @export
*/
export type DeclaredValueMonetaryValue = string;
/**
* Container for Declared Value Type.
* @export
* @interface DeclaredValueType
*/
export interface DeclaredValueType {
/**
* The code associated with Handling Unit Type. Valid values: SKD = Skid CBY = Carboy PLT = Pallet TOT = Totes LOO = Loose OTH = Other
* @type {string}
* @memberof DeclaredValueType
*/
Code: string;
/**
* A description of the code for the Handling Unit type.
* @type {string}
* @memberof DeclaredValueType
*/
Description?: string;
}
/**
* Delivery Confirmation Control number associated with the delivery confirmation for the package. Valid for forward shipments only.
* @export
*/
export type DeliveryConfirmationDCISNumber = string;
/**
* Type of delivery confirmation. Valid values: 1 - Delivery Confirmation 2 - Delivery Confirmation Signature Required 3 - Delivery Confirmation Adult Signature Required
* @export
*/
export type DeliveryConfirmationDCISType = string;
/**
* UnitOfMeasurement Container. N/A
* @export
* @interface DimWeightUnitOfMeasurement
*/
export interface DimWeightUnitOfMeasurement {
/**
* Code of the billing weight measurement units.
* Valid values: KGS, LBS
* @type {string}
* @memberof DimWeightUnitOfMeasurement
*/
Code: string;
/**
* Description of the billing weight measurement units.
* @type {string}
* @memberof DimWeightUnitOfMeasurement
*/
Description?: string;
}
/**
* Actual package weight. Weight accepted for letters/envelopes.
* @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