x12_types/v005010/element/e03xx.rs
1//! X12 data elements 0300-0399.
2
3crate::code_enum!(
4 /// **363** Note Reference Code
5 ///
6 /// - Data element: 363
7 /// - Type: Identifier (ID)
8 /// - Length: min 3, max 3
9 ///
10 /// Code identifying the functional area or purpose for which the note applies
11 /// (NTE-01, MTX-01). Common codes named below; any other round-trips as `Unknown`.
12 E363 {
13 /// Entire Transaction Set
14 "GEN" => Gen,
15 /// Bill of Lading Note
16 "BOL" => Bol,
17 /// Access Instructions
18 "ACC" => Acc,
19 /// Insurance
20 "INS" => Ins,
21 /// Location
22 "LOC" => Loc,
23 /// Certification
24 "CER" => Cer,
25 /// Description
26 "DGN" => Dgn,
27 /// Reference
28 "REF" => Ref,
29 }
30);
31
32crate::code_enum!(
33 /// **305** Transaction Handling Code
34 ///
35 /// - Data element: 305
36 /// - Type: Identifier (ID)
37 /// - Length: min 1, max 2
38 ///
39 /// Code designating the action to be taken by all parties (BPR-01).
40 E305 {
41 /// Off Invoice (Deduction from Original Invoice)
42 "A" => A,
43 /// Debit/Credit Advice No Remittance Detail
44 "B" => B,
45 /// Payment Accompanies Remittance Advice
46 "C" => C,
47 /// Make Payment Only
48 "D" => D,
49 /// Debit/Credit Advice with Remittance Detail
50 "E" => E,
51 /// Notification Only
52 "H" => H,
53 /// Remittance Information Only
54 "I" => I,
55 /// Prenotification of Future Transfers
56 "P" => P,
57 /// Split Payment and Remittance
58 "U" => U,
59 /// Handling Party's Option to Split Payment and Remittance
60 "X" => X,
61 /// Mutually Defined
62 "Z" => Z,
63 }
64);
65
66crate::code_enum!(
67 /// **346** Application Type Code
68 ///
69 /// - Data element: 346
70 /// - Type: Identifier (ID)
71 /// - Length: min 2, max 2
72 ///
73 /// Code identifying an application. Common codes named below; any other
74 /// round-trips as `Unknown`.
75 E346 {
76 /// Financial Institution Account Statement
77 "BD" => Bd,
78 /// Accounts Reconciliation
79 "BR" => Br,
80 /// Balance and Transaction Reporting
81 "BT" => Bt,
82 /// Cash Letter
83 "CL" => Cl,
84 /// Deposit List
85 "DL" => Dl,
86 /// Bill of Lading
87 "BL" => Bl,
88 /// Booking
89 "BN" => Bn,
90 /// Delivery Order
91 "DO" => Do,
92 /// Freight Tender
93 "FR" => Fr,
94 /// Load Tender - Truckload (TL) Carrier Only
95 "LT" => Lt,
96 /// Manifest
97 "MF" => Mf,
98 /// Single Shipment Invoice
99 "SI" => Si,
100 /// Multiple Shipment Invoice
101 "SP" => Sp,
102 /// Trailer Manifest
103 "TM" => Tm,
104 /// Commercial Invoice
105 "CI" => Ci,
106 /// Mutually Defined
107 "ZZ" => Zz,
108 }
109);
110
111crate::code_enum!(
112 /// **349** Item Description Type
113 ///
114 /// - Data element: 349
115 /// - Type: Identifier (ID)
116 /// - Length: min 1, max 1
117 ///
118 /// Code indicating the format of a description (PID-01).
119 E349 {
120 /// Free-form
121 "F" => F,
122 /// Structured (From Industry Code List)
123 "S" => S,
124 /// Semi-structured (Code and Text)
125 "X" => X,
126 }
127);
128
129crate::code_enum!(
130 /// **306** Action Code
131 ///
132 /// - Data element: 306
133 /// - Type: Identifier (ID)
134 /// - Length: min 1, max 2
135 ///
136 /// Code indicating type of action.
137 E306 {
138 /// Add
139 "1" => N1,
140 /// Change (Update)
141 "2" => N2,
142 /// Delete
143 "3" => N3,
144 /// Verify
145 "4" => N4,
146 /// Send
147 "5" => N5,
148 /// Pending
149 "W" => W,
150 /// Reject
151 "U" => U,
152 }
153);
154
155crate::code_enum!(
156 /// **309** Location Qualifier
157 ///
158 /// - Data element: 309
159 /// - Type: Identifier (ID)
160 /// - Length: min 1, max 2
161 ///
162 /// Code identifying type of location.
163 E309 {
164 /// Origin (Shipping Point)
165 "OR" => Or,
166 /// Destination (Shipping)
167 "DE" => De,
168 /// Delivery Location
169 "DL" => Dl,
170 /// Mailing Address
171 "M" => M,
172 /// Office Address
173 "O" => O,
174 /// Home Address
175 "H" => H,
176 /// Plant
177 "PL" => Pl,
178 /// Warehouse
179 "WH" => Wh,
180 /// Distribution Center Number
181 "DC" => Dc,
182 /// Terminal
183 "TM" => Tm,
184 /// Port of Arrival
185 "PA" => Pa,
186 /// Port of Discharge
187 "PB" => Pb,
188 /// Port of Entry
189 "PE" => Pe,
190 /// Factory
191 "FA" => Fa,
192 /// Place of Business
193 "BS" => Bs,
194 }
195);
196
197crate::code_enum!(
198 /// **336** Terms Type Code
199 ///
200 /// - Data element: 336
201 /// - Type: Identifier (ID)
202 /// - Length: min 2, max 2
203 ///
204 /// Code identifying type of payment terms.
205 E336 {
206 /// Basic
207 "01" => N01,
208 /// End of Month (EOM)
209 "02" => N02,
210 /// Discount Not Applicable
211 "05" => N05,
212 /// Basic Discount Offered
213 "08" => N08,
214 /// Previously Agreed Upon
215 "14" => N14,
216 /// Fixed Date
217 "18" => N18,
218 /// Cash Discount Terms Apply
219 "22" => N22,
220 }
221);
222
223crate::code_enum!(
224 /// **353** Transaction Set Purpose Code
225 ///
226 /// - Data element: 353
227 /// - Type: Identifier (ID)
228 /// - Length: min 2, max 2
229 ///
230 /// Code identifying purpose of transaction set.
231 E353 {
232 /// Original
233 "00" => N00,
234 /// Cancellation
235 "01" => N01,
236 /// Add
237 "02" => N02,
238 /// Delete
239 "03" => N03,
240 /// Change
241 "04" => N04,
242 /// Replace
243 "05" => N05,
244 /// Confirmation
245 "06" => N06,
246 /// Duplicate
247 "07" => N07,
248 /// Status
249 "08" => N08,
250 /// Information Copy
251 "22" => N22,
252 }
253);
254
255crate::code_enum!(
256 /// **355** Unit or Basis for Measurement Code
257 ///
258 /// - Data element: 355
259 /// - Type: Identifier (ID)
260 /// - Length: min 2, max 2
261 ///
262 /// Code specifying the units in which a value is being expressed. The published
263 /// list has 844 codes; the common ones are named below, the rest round-trip as
264 /// `Unknown`.
265 E355 {
266 /// Each
267 "EA" => Ea,
268 /// Pound
269 "LB" => Lb,
270 /// Gallon
271 "GA" => Ga,
272 /// Cubic Feet
273 "CF" => Cf,
274 /// Case
275 "CA" => Ca,
276 /// Carton
277 "CT" => Ct,
278 /// Box
279 "BX" => Bx,
280 /// Dozen
281 "DZ" => Dz,
282 /// Hours
283 "HR" => Hr,
284 /// Days
285 "DA" => Da,
286 /// Months
287 "MO" => Mo,
288 /// Years
289 "YR" => Yr,
290 /// Gram
291 "GR" => Gr,
292 /// Kilogram
293 "KG" => Kg,
294 /// Milliliter
295 "ML" => Ml,
296 /// Centimeter
297 "CM" => Cm,
298 /// Foot
299 "FT" => Ft,
300 /// Inch
301 "IN" => In,
302 /// Ounce - Av
303 "OZ" => Oz,
304 /// Pint
305 "PT" => Pt,
306 /// Quart
307 "QT" => Qt,
308 /// Set
309 "ST" => St,
310 /// Liter
311 "LT" => Lt,
312 /// Meter
313 "MR" => Mr,
314 /// Pallet/Unit Load
315 "PL" => Pl,
316 }
317);
318
319crate::code_enum!(
320 /// **374** Date/Time Qualifier
321 ///
322 /// - Data element: 374
323 /// - Type: Identifier (ID)
324 /// - Length: min 3, max 3
325 ///
326 /// Code specifying type of date or time, or both date and time (gates the
327 /// meaning of the date/time that follows, e.g. in DTM, DTP and G62).
328 ///
329 /// The variants below are the common codes; the published list has ~115. Any
330 /// other code round-trips as `Unknown`.
331 E374 {
332 /// Cancel After
333 "001" => CancelAfter,
334 /// Delivery Requested
335 "002" => DeliveryRequested,
336 /// Invoice
337 "003" => Invoice,
338 /// Purchase Order
339 "004" => PurchaseOrder,
340 /// Effective
341 "007" => Effective,
342 /// Process
343 "009" => Process,
344 /// Requested Ship
345 "010" => RequestedShip,
346 /// Shipped
347 "011" => Shipped,
348 /// Promotion Start
349 "015" => PromotionStart,
350 /// Estimated Delivery
351 "017" => EstimatedDelivery,
352 /// Delivered
353 "035" => Delivered,
354 /// Expiration
355 "036" => Expiration,
356 /// Ship Not Before
357 "037" => ShipNotBefore,
358 /// Ship No Later
359 "038" => ShipNoLater,
360 /// Received
361 "050" => Received,
362 /// Do Not Deliver After
363 "063" => DoNotDeliverAfter,
364 /// Do Not Deliver Before
365 "064" => DoNotDeliverBefore,
366 /// Current Schedule Delivery
367 "067" => CurrentScheduleDelivery,
368 /// Current Schedule Ship
369 "068" => CurrentScheduleShip,
370 /// Promised for Delivery
371 "069" => PromisedForDelivery,
372 /// Created
373 "085" => Created,
374 /// Transaction Creation
375 "097" => TransactionCreation,
376 /// Issue
377 "102" => Issue,
378 /// Required By
379 "106" => RequiredBy,
380 /// Beginning of Period
381 "107" => BeginningOfPeriod,
382 /// End of Period
383 "108" => EndOfPeriod,
384 /// Pickup
385 "110" => Pickup,
386 /// Manifest/Ship Notice
387 "111" => ManifestShipNotice,
388 /// Requested Pickup
389 "118" => RequestedPickup,
390 /// Estimated
391 "139" => Estimated,
392 /// Service Period Start
393 "150" => ServicePeriodStart,
394 /// Service Period End
395 "151" => ServicePeriodEnd,
396 /// Invoice Period Start
397 "186" => InvoicePeriodStart,
398 /// Invoice Period End
399 "187" => InvoicePeriodEnd,
400 /// Start
401 "196" => Start,
402 /// End
403 "197" => End,
404 }
405);
406
407crate::code_enum!(
408 /// **365** Communication Number Qualifier
409 ///
410 /// - Data element: 365
411 /// - Type: Identifier (ID)
412 /// - Length: min 2, max 2
413 ///
414 /// Code identifying the type of communication number (PER-03/05/07).
415 E365 {
416 /// Electronic Mail
417 "EM" => Em,
418 /// Facsimile
419 "FX" => Fx,
420 /// Telephone
421 "TE" => Te,
422 /// Telephone Extension
423 "EX" => Ex,
424 /// Uniform Resource Locator (URL)
425 "UR" => Ur,
426 /// Cellular Phone
427 "CP" => Cp,
428 /// Telex
429 "TL" => Tl,
430 }
431);
432
433crate::code_enum!(
434 /// **366** Contact Function Code
435 ///
436 /// - Data element: 366
437 /// - Type: Identifier (ID)
438 /// - Length: min 2, max 2
439 ///
440 /// Code identifying the major duty or responsibility of the person or group
441 /// named (PER-01).
442 E366 {
443 /// Information Contact
444 "IC" => Ic,
445 /// Buyer Name or Department
446 "BD" => Bd,
447 /// Carrier Contact
448 "CR" => Cr,
449 /// Customer Service
450 "CS" => Cs,
451 /// Delivery Contact
452 "DC" => Dc,
453 /// Expediter
454 "EX" => Ex,
455 /// Order Contact
456 "OC" => Oc,
457 /// Receiving Contact
458 "RC" => Rc,
459 /// Sales Representative or Department
460 "SR" => Sr,
461 /// Shipper Contact
462 "SH" => Sh,
463 }
464);
465
466crate::time_element!(
467 /// **337** Time
468 ///
469 /// - Data element: 337
470 /// - Type: Time (TM)
471 /// - Length: min 4, max 8
472 ///
473 /// Time expressed as `HHMM`, `HHMMSS`, or `HHMMSSdd` (24-hour clock). `time()`
474 /// yields a [`chrono::NaiveTime`]; the raw text is preserved for byte-exact
475 /// rendering.
476 E337
477);
478
479crate::date_element!(
480 /// **373** Date
481 ///
482 /// - Data element: 373
483 /// - Type: Date (DT)
484 /// - Length: min 8, max 8
485 ///
486 /// Date expressed as `CCYYMMDD`. `date()` yields a [`chrono::NaiveDate`]; the
487 /// raw text is preserved for byte-exact rendering.
488 E373
489);
490
491crate::num_element!(
492 /// **330** Quantity Ordered
493 ///
494 /// - Data element: 330
495 /// - Type: Numeric (R)
496 /// - Length: min 1, max 10
497 ///
498 /// Quantity Ordered.
499 E330
500);
501
502crate::num_element!(
503 /// **332** Percent, Decimal Format
504 ///
505 /// - Data element: 332
506 /// - Type: Numeric (R)
507 /// - Length: min 1, max 6
508 ///
509 /// Percent, Decimal Format.
510 E332
511);
512
513crate::num_element!(
514 /// **338** Terms Discount Percent
515 ///
516 /// - Data element: 338
517 /// - Type: Numeric (R)
518 /// - Length: min 1, max 6
519 ///
520 /// Terms Discount Percent.
521 E338
522);
523
524crate::num_element!(
525 /// **342** Percent of Invoice Payable
526 ///
527 /// - Data element: 342
528 /// - Type: Numeric (R)
529 /// - Length: min 1, max 5
530 ///
531 /// Percent of Invoice Payable.
532 E342
533);
534
535crate::num_element!(
536 /// **343** Installment Total Invoice Amount Due
537 ///
538 /// - Data element: 343
539 /// - Type: Numeric (N2)
540 /// - Length: min 1, max 10
541 ///
542 /// Installment Total Invoice Amount Due.
543 E343
544);
545
546crate::num_element!(
547 /// **351** Terms Discount Days Due
548 ///
549 /// - Data element: 351
550 /// - Type: Numeric (N0)
551 /// - Length: min 1, max 3
552 ///
553 /// Terms Discount Days Due.
554 E351
555);
556
557crate::num_element!(
558 /// **356** Pack
559 ///
560 /// - Data element: 356
561 /// - Type: Numeric (N0)
562 /// - Length: min 1, max 6
563 ///
564 /// Pack.
565 E356
566);
567
568crate::num_element!(
569 /// **357** Size
570 ///
571 /// - Data element: 357
572 /// - Type: Numeric (R)
573 /// - Length: min 1, max 8
574 ///
575 /// Size.
576 E357
577);
578
579crate::num_element!(
580 /// **358** Quantity Invoiced
581 ///
582 /// - Data element: 358
583 /// - Type: Numeric (R)
584 /// - Length: min 1, max 15
585 ///
586 /// Quantity Invoiced.
587 E358
588);
589
590crate::num_element!(
591 /// **359** Allowance or Charge Rate
592 ///
593 /// - Data element: 359
594 /// - Type: Numeric (R)
595 /// - Length: min 1, max 15
596 ///
597 /// Allowance or Charge Rate.
598 E359
599);
600
601crate::num_element!(
602 /// **360** Allowance or Charge Total Amount
603 ///
604 /// - Data element: 360
605 /// - Type: Numeric (N2)
606 /// - Length: min 1, max 15
607 ///
608 /// Allowance or Charge Total Amount.
609 E360
610);
611
612crate::num_element!(
613 /// **362** Terms Discount Amount
614 ///
615 /// - Data element: 362
616 /// - Type: Numeric (N2)
617 /// - Length: min 1, max 10
618 ///
619 /// Terms Discount Amount.
620 E362
621);
622
623crate::date_element!(
624 /// **370** Terms Discount Due Date
625 ///
626 /// - Data element: 370
627 /// - Type: Date (DT)
628 /// - Length: min 8, max 8
629 ///
630 /// Terms Discount Due Date.
631 E370
632);
633
634crate::num_element!(
635 /// **382** Number of Units Shipped
636 ///
637 /// - Data element: 382
638 /// - Type: Numeric (R)
639 /// - Length: min 1, max 10
640 ///
641 /// Number of Units Shipped.
642 E382
643);
644
645crate::num_element!(
646 /// **383** Quantity Difference
647 ///
648 /// - Data element: 383
649 /// - Type: Numeric (R)
650 /// - Length: min 1, max 9
651 ///
652 /// Quantity Difference.
653 E383
654);
655
656crate::num_element!(
657 /// **384** Gross Weight per Pack
658 ///
659 /// - Data element: 384
660 /// - Type: Numeric (R)
661 /// - Length: min 1, max 9
662 ///
663 /// Gross Weight per Pack.
664 E384
665);
666
667crate::num_element!(
668 /// **385** Gross Volume per Pack
669 ///
670 /// - Data element: 385
671 /// - Type: Numeric (R)
672 /// - Length: min 1, max 9
673 ///
674 /// Gross Volume per Pack.
675 E385
676);
677
678crate::num_element!(
679 /// **386** Terms Net Days
680 ///
681 /// - Data element: 386
682 /// - Type: Numeric (N0)
683 /// - Length: min 1, max 3
684 ///
685 /// Terms Net Days.
686 E386
687);
688
689crate::num_element!(
690 /// **390** Amount Subject to Terms Discount
691 ///
692 /// - Data element: 390
693 /// - Type: Numeric (N2)
694 /// - Length: min 1, max 10
695 ///
696 /// Amount Subject to Terms Discount.
697 E390
698);
699
700crate::num_element!(
701 /// **391** Discounted Amount Due
702 ///
703 /// - Data element: 391
704 /// - Type: Numeric (N2)
705 /// - Length: min 1, max 10
706 ///
707 /// Discounted Amount Due.
708 E391
709);
710
711crate::num_element!(
712 /// **395** Unit Weight
713 ///
714 /// - Data element: 395
715 /// - Type: Numeric (R)
716 /// - Length: min 1, max 8
717 ///
718 /// Unit Weight.
719 E395
720);
721
722crate::num_element!(
723 /// **398** Order Sizing Factor
724 ///
725 /// - Data element: 398
726 /// - Type: Numeric (R)
727 /// - Length: min 1, max 10
728 ///
729 /// Order Sizing Factor.
730 E398
731);
732
733crate::code_enum!(
734 /// **308** Damage Exception Indicator
735 ///
736 /// - Data element: 308
737 /// - Type: Identifier (ID)
738 /// - Length: min 1, max 1
739 ///
740 /// Damage Exception Indicator. Code values verified against the Stedi X12 reference.
741 E308 {
742 /// Damage Being Reported
743 "Y" => Y,
744 }
745);
746
747crate::code_enum!(
748 /// **311** Shipment Type Code
749 ///
750 /// - Data element: 311
751 /// - Type: Identifier (ID)
752 /// - Length: min 1, max 2
753 ///
754 /// Shipment Type Code. Code values verified against the Stedi X12 reference.
755 E311 {
756 /// Inventory Adjustment (+)
757 "AD" => Ad,
758 /// Inventory Adjustment (-)
759 "AM" => Am,
760 /// Customer Shipment
761 "CS" => Cs,
762 /// Rejected Shipment
763 "RJ" => Rj,
764 /// Stock Transfer
765 "ST" => St,
766 }
767);
768
769crate::code_enum!(
770 /// **312** Special Indicator Code
771 ///
772 /// - Data element: 312
773 /// - Type: Identifier (ID)
774 /// - Length: min 1, max 1
775 ///
776 /// Special Indicator Code. Code values verified against the Stedi X12 reference.
777 E312 {
778 /// In Bond
779 "I" => I,
780 /// Local
781 "L" => L,
782 /// Order Notify
783 "N" => N,
784 /// Origin Common Point (OCP)
785 "O" => O,
786 /// Through
787 "T" => T,
788 }
789);
790
791crate::code_enum!(
792 /// **313** Authority Identifier Code
793 ///
794 /// - Data element: 313
795 /// - Type: Identifier (ID)
796 /// - Length: min 2, max 2
797 ///
798 /// Authority Identifier Code. Code values verified against the Stedi X12 reference.
799 E313 {
800 /// Billing Clerk
801 "BC" => Bc,
802 /// Carrier
803 "CA" => Ca,
804 /// Forwarder
805 "FN" => Fn,
806 /// Lending Official
807 "LO" => Lo,
808 /// Non-Recourse
809 "NR" => Nr,
810 /// Proposer
811 "PP" => Pp,
812 /// Rate Clerk
813 "RC" => Rc,
814 /// Release Value
815 "RV" => Rv,
816 /// Shipper
817 "SH" => Sh,
818 /// School Official
819 "SO" => So,
820 }
821);
822
823crate::code_enum!(
824 /// **322** Load/Empty Status Code
825 ///
826 /// - Data element: 322
827 /// - Type: Identifier (ID)
828 /// - Length: min 1, max 1
829 ///
830 /// Load/Empty Status Code. Code values verified against the Stedi X12 reference.
831 E322 {
832 /// Empty
833 "E" => E,
834 /// Empty Requiring Census Reporting
835 "F" => F,
836 /// Loaded
837 "L" => L,
838 /// Load Requiring Census Reporting
839 "M" => M,
840 /// Total
841 "T" => T,
842 }
843);
844
845crate::code_enum!(
846 /// **331** Allowance or Charge Method of Handling Code
847 ///
848 /// - Data element: 331
849 /// - Type: Identifier (ID)
850 /// - Length: min 2, max 2
851 ///
852 /// Allowance or Charge Method of Handling Code. Code values verified against the Stedi X12 reference.
853 E331 {
854 /// Bill Back
855 "01" => N01,
856 /// Off Invoice
857 "02" => N02,
858 /// Vendor Check to Customer
859 "03" => N03,
860 /// Credit Customer Account
861 "04" => N04,
862 /// Charge to be Paid by Vendor
863 "05" => N05,
864 /// Charge to be Paid by Customer
865 "06" => N06,
866 /// Optional
867 "07" => N07,
868 /// Off Gross Quantity Invoiced
869 "08" => N08,
870 /// Allowance To Be Issued by Vendor
871 "09" => N09,
872 /// Allowance To Be Issued by Reseller
873 "10" => N10,
874 /// Charge Denied by Vendor
875 "11" => N11,
876 /// Cancel Allowance
877 "12" => N12,
878 /// Provide Amount
879 "13" => N13,
880 /// Information Only
881 "15" => N15,
882 /// Non-Payable Tax
883 "18" => N18,
884 /// Accrual Fund
885 "20" => N20,
886 /// Flat Fund
887 "21" => N21,
888 /// Cash in Advance
889 "25" => N25,
890 /// Calculate and Add to Invoice
891 "CA" => Ca,
892 /// Collect
893 "CC" => Cc,
894 /// Prepaid
895 "PP" => Pp,
896 /// Mutually Defined
897 "ZZ" => Zz,
898 }
899);
900
901crate::code_enum!(
902 /// **333** Terms Basis Date Code
903 ///
904 /// - Data element: 333
905 /// - Type: Identifier (ID)
906 /// - Length: min 1, max 2
907 ///
908 /// Terms Basis Date Code. Code values verified against the Stedi X12 reference.
909 E333 {
910 /// Ship Date
911 "1" => N1,
912 /// Delivery Date
913 "2" => N2,
914 /// Invoice Date
915 "3" => N3,
916 /// Specified Date
917 "4" => N4,
918 /// Invoice Receipt Date
919 "5" => N5,
920 /// Anticipated Delivery Date
921 "6" => N6,
922 /// Effective Date
923 "7" => N7,
924 /// Invoice Transmission Date
925 "8" => N8,
926 /// Purchase Order Date
927 "09" => N09,
928 /// Invoice Verification Date
929 "10" => N10,
930 /// Completion And Acceptance Date
931 "11" => N11,
932 /// Approval of Sample Date
933 "12" => N12,
934 /// Approval of Gage Date
935 "13" => N13,
936 /// Quality Approval Date
937 "14" => N14,
938 /// Receipt of Goods
939 "15" => N15,
940 /// Quarter Start Date
941 "16" => N16,
942 /// Mutually Defined
943 "ZZ" => Zz,
944 }
945);
946
947crate::code_enum!(
948 /// **335** Transportation Terms Code
949 ///
950 /// - Data element: 335
951 /// - Type: Identifier (ID)
952 /// - Length: min 3, max 3
953 ///
954 /// Transportation Terms Code. Code values verified against the Stedi X12 reference.
955 E335 {
956 /// Cost and Freight
957 "CFR" => Cfr,
958 /// Cost, Insurance, and Freight
959 "CIF" => Cif,
960 /// Carriage and Insurance Paid To
961 "CIP" => Cip,
962 /// Carriage Paid To
963 "CPT" => Cpt,
964 /// Delivered at Frontier
965 "DAF" => Daf,
966 /// Delivered Duty Paid
967 "DDP" => Ddp,
968 /// Deliver Duty Unpaid
969 "DDU" => Ddu,
970 /// Delivered Ex Quay
971 "DEQ" => Deq,
972 /// Delivered Ex Ship
973 "DES" => Des,
974 /// Domestically Supplied
975 "DOM" => Dom,
976 /// Delivered; Duty Unpaid
977 "DUP" => Dup,
978 /// Ex Quay
979 "EXQ" => Exq,
980 /// Ex Ship
981 "EXS" => Exs,
982 /// Ex Works
983 "EXW" => Exw,
984 /// Free Alongside Ship
985 "FAS" => Fas,
986 /// Free Carrier
987 "FCA" => Fca,
988 /// Freight Carriage and Insurance Paid To
989 "FCI" => Fci,
990 /// Freight Carriage Paid To
991 "FCP" => Fcp,
992 /// Free on Board
993 "FOB" => Fob,
994 /// Free on Rail
995 "FOR" => For,
996 /// Free on Truck
997 "FOT" => Fot,
998 /// Non-privileged Foreign
999 "NPF" => Npf,
1000 /// Privileged Foreign
1001 "PPF" => Ppf,
1002 /// Mutually Defined
1003 "ZZZ" => Zzz,
1004 }
1005);
1006
1007crate::code_enum!(
1008 /// **340** Allowance or Charge Code
1009 ///
1010 /// - Data element: 340
1011 /// - Type: Identifier (ID)
1012 /// - Length: min 1, max 3
1013 ///
1014 /// Allowance or Charge Code. Code values verified against the Stedi X12 reference.
1015 E340 {
1016 /// Free Goods
1017 "1" => N1,
1018 /// Shrink Allowance
1019 "2" => N2,
1020 /// Count and Recount
1021 "3" => N3,
1022 /// Fuel Allowance
1023 "4" => N4,
1024 /// Allowance Non-Performance
1025 "5" => N5,
1026 /// Pallet Charge
1027 "6" => N6,
1028 /// Ocean Freight Charge
1029 "7" => N7,
1030 /// Drayage
1031 "10" => N10,
1032 /// Blast Freezing
1033 "11" => N11,
1034 /// Communication Expense
1035 "12" => N12,
1036 /// Handling In
1037 "13" => N13,
1038 /// Handling Out
1039 "14" => N14,
1040 /// Labor
1041 "15" => N15,
1042 /// Minimum Charge
1043 "16" => N16,
1044 /// Physical Inventory
1045 "17" => N17,
1046 /// Pick Rate
1047 "18" => N18,
1048 /// Postage
1049 "19" => N19,
1050 /// Slow Freezing
1051 "20" => N20,
1052 /// Storage
1053 "21" => N21,
1054 /// Supplies
1055 "22" => N22,
1056 /// Taking Weights
1057 "23" => N23,
1058 /// Telephone, Telex, Fax
1059 "24" => N24,
1060 /// United States Department of Agriculture (USDA) Inspection
1061 "25" => N25,
1062 /// Unloading
1063 "26" => N26,
1064 /// Withdrawal Line Item Rate
1065 "27" => N27,
1066 /// Direct Product Handling (DPC)
1067 "28" => N28,
1068 /// Price Adjustment Percent (PCT)
1069 "29" => N29,
1070 /// Post Damaged Handling (PDC)
1071 "30" => N30,
1072 /// Reclamation Center Handling (Chute)
1073 "31" => N31,
1074 /// Reclamation Shared Responsibility (SRS)
1075 "32" => N32,
1076 /// Maximum Price Percent (MAX)
1077 "33" => N33,
1078 /// Minimum Price Percent (MIN)
1079 "34" => N34,
1080 /// Conversion Allowance
1081 "35" => N35,
1082 /// Slip Sheet Allowance
1083 "40" => N40,
1084 /// Terms Allowance
1085 "41" => N41,
1086 /// Central Buy
1087 "42" => N42,
1088 /// Display Allowance
1089 "43" => N43,
1090 /// Early Buy Allowance
1091 "44" => N44,
1092 /// New Discount
1093 "45" => N45,
1094 /// New Warehouse
1095 "46" => N46,
1096 /// Competitive Marketing Allowance
1097 "47" => N47,
1098 /// Special Buy
1099 "48" => N48,
1100 /// Lump Sum
1101 "50" => N50,
1102 /// Trade Discount
1103 "51" => N51,
1104 /// Quantity Discount
1105 "52" => N52,
1106 /// Freight Allowance
1107 "53" => N53,
1108 /// Pickup Allowance
1109 "54" => N54,
1110 /// Warehouse Allowance
1111 "55" => N55,
1112 /// Vehicle Load Allowance
1113 "57" => N57,
1114 /// Unsaleable Merchandise Allowance
1115 "58" => N58,
1116 /// Label Allowance
1117 "60" => N60,
1118 /// Handling Allowance
1119 "61" => N61,
1120 /// Freshness/Leaker Allowance
1121 "62" => N62,
1122 /// Floor Stock Protection
1123 "63" => N63,
1124 /// Truckload Allowance
1125 "64" => N64,
1126 /// New Item Allowance
1127 "65" => N65,
1128 /// Slotting Allowance
1129 "66" => N66,
1130 /// New Distribution Allowance
1131 "67" => N67,
1132 /// Scanner Allowance
1133 "68" => N68,
1134 /// Allowance for Consignment Merchandise
1135 "70" => N70,
1136 /// New Store Allowance
1137 "75" => N75,
1138 /// Combination Performance and Non-performance
1139 "80" => N80,
1140 /// Direct Plant Ship Allowance
1141 "81" => N81,
1142 /// Mutually Defined
1143 "88" => N88,
1144 /// Performance Allowance
1145 "90" => N90,
1146 /// Glaze Allowance
1147 "91" => N91,
1148 /// In Transit Price Protection
1149 "92" => N92,
1150 /// COOP Credit
1151 "93" => N93,
1152 /// Cigarette Stamping
1153 "94" => N94,
1154 /// Swell
1155 "95" => N95,
1156 /// Grouped Items
1157 "96" => N96,
1158 /// Cents Off
1159 "97" => N97,
1160 /// Advertising Allowance
1161 "100" => N100,
1162 /// Voluntary Price Reduction
1163 "101" => N101,
1164 /// Pallet Allowance
1165 "105" => N105,
1166 /// Show Allowance
1167 "106" => N106,
1168 /// Indirect Customer Allowance
1169 "107" => N107,
1170 /// Adjustment
1171 "110" => N110,
1172 /// Check Adjustment
1173 "111" => N111,
1174 /// Funds Return
1175 "112" => N112,
1176 /// Generic Supply Charge
1177 "113" => N113,
1178 /// Hardware Maintenance Charge
1179 "114" => N114,
1180 /// Media Charge
1181 "116" => N116,
1182 /// Per Claim Charge
1183 "117" => N117,
1184 /// Per Item Media Charge
1185 "118" => N118,
1186 /// Programming Charge
1187 "119" => N119,
1188 /// Service Adjustment
1189 "120" => N120,
1190 /// Software Maintenance Charge
1191 "121" => N121,
1192 /// Goods and Services Credit Allowance
1193 "490" => N490,
1194 /// Tax Credit Allowance
1195 "491" => N491,
1196 /// Other Allowance
1197 "499" => N499,
1198 /// Taxes
1199 "501" => N501,
1200 /// Carrier
1201 "502" => N502,
1202 /// Special Handling
1203 "503" => N503,
1204 /// Freight
1205 "504" => N504,
1206 /// Insurance
1207 "505" => N505,
1208 /// Railcar Loading
1209 "506" => N506,
1210 /// Switch Charge
1211 "507" => N507,
1212 /// USDA Inspected, Stamping Certification
1213 "508" => N508,
1214 /// Labeling
1215 "509" => N509,
1216 /// Koshering
1217 "510" => N510,
1218 /// Warehouse
1219 "511" => N511,
1220 /// Palletizing
1221 "512" => N512,
1222 /// Enclosure
1223 "513" => N513,
1224 /// Surcharge
1225 "514" => N514,
1226 /// Stopcharge
1227 "515" => N515,
1228 /// Delivery Charge
1229 "516" => N516,
1230 /// Demurrage
1231 "517" => N517,
1232 /// Service Charge
1233 "518" => N518,
1234 /// Less Than Truckload Charge
1235 "519" => N519,
1236 /// Cut
1237 "520" => N520,
1238 /// Paralleling
1239 "521" => N521,
1240 /// Broken Lot
1241 "522" => N522,
1242 /// Special Packaging
1243 "523" => N523,
1244 /// Reel
1245 "524" => N524,
1246 /// Deposit Charge - Resale Item
1247 "525" => N525,
1248 /// Beverage Tax
1249 "526" => N526,
1250 /// Environmental Handling Charge
1251 "527" => N527,
1252 /// State or Province Tax
1253 "537" => N537,
1254 /// Deposit Charge - Non-Resale Item
1255 "550" => N550,
1256 /// Equipment Rental Charge
1257 "560" => N560,
1258 /// Equipment Service Charge
1259 "561" => N561,
1260 /// Inter-warehouse Freight Charge
1261 "562" => N562,
1262 /// Inbound Postage
1263 "565" => N565,
1264 /// Outbound Postage
1265 "566" => N566,
1266 /// Goods and Services Charge
1267 "990" => N990,
1268 /// Other Charges
1269 "999" => N999,
1270 }
1271);
1272
1273crate::code_enum!(
1274 /// **344** Unit of Time Period or Interval
1275 ///
1276 /// - Data element: 344
1277 /// - Type: Identifier (ID)
1278 /// - Length: min 2, max 2
1279 ///
1280 /// Unit of Time Period or Interval. Code values verified against the Stedi X12 reference.
1281 E344 {
1282 /// More Than One Year
1283 "AA" => Aa,
1284 /// First Six-Month Period
1285 "AB" => Ab,
1286 /// Second Six-Month Period
1287 "AC" => Ac,
1288 /// Average Daily
1289 "AD" => Ad,
1290 /// Under One Year
1291 "AE" => Ae,
1292 /// Next Three Months
1293 "AF" => Af,
1294 /// Four Month Period
1295 "AG" => Ag,
1296 /// Average Monthly
1297 "AM" => Am,
1298 /// Annual
1299 "AN" => An,
1300 /// Academic Period
1301 "AP" => Ap,
1302 /// Average Year
1303 "AY" => Ay,
1304 /// Buyer's Manufacturing Days
1305 "BD" => Bd,
1306 /// Bimonthly
1307 "BM" => Bm,
1308 /// Bi-weekly
1309 "BW" => Bw,
1310 /// Cycles
1311 "CC" => Cc,
1312 /// Calendar Year
1313 "CY" => Cy,
1314 /// Calendar Days
1315 "DA" => Da,
1316 /// Work Days
1317 "DW" => Dw,
1318 /// Day
1319 "DY" => Dy,
1320 /// Calendar Year-to-Date
1321 "EA" => Ea,
1322 /// Campaign-to-Date
1323 "EB" => Eb,
1324 /// Election Cycle
1325 "EC" => Ec,
1326 /// This Period
1327 "ED" => Ed,
1328 /// To Date
1329 "EE" => Ee,
1330 /// Option Period at End of Lease
1331 "EL" => El,
1332 /// Fiscal Year Plus One Year
1333 "F1" => F1,
1334 /// Fiscal Year Plus Two Years
1335 "F2" => F2,
1336 /// Fiscal Year
1337 "FY" => Fy,
1338 /// Hours
1339 "HR" => Hr,
1340 /// Inception to Date
1341 "ID" => Id,
1342 /// Maximum Calendar Days
1343 "KK" => Kk,
1344 /// As Required
1345 "KL" => Kl,
1346 /// Lease Termination Notification Period
1347 "LN" => Ln,
1348 /// Lease Term
1349 "LT" => Lt,
1350 /// Month to Date
1351 "MD" => Md,
1352 /// Minutes
1353 "MI" => Mi,
1354 /// Month
1355 "MO" => Mo,
1356 /// Mean Time Between Stops
1357 "MS" => Ms,
1358 /// Mean Time Between Failure
1359 "MT" => Mt,
1360 /// Next Six Months
1361 "NX" => Nx,
1362 /// Plan Year to Date
1363 "PA" => Pa,
1364 /// Period to Date
1365 "PD" => Pd,
1366 /// Preceding 12 Months
1367 "PM" => Pm,
1368 /// Preceding Six Months
1369 "PR" => Pr,
1370 /// First Quarter
1371 "Q1" => Q1,
1372 /// Second Quarter
1373 "Q2" => Q2,
1374 /// Third Quarter
1375 "Q3" => Q3,
1376 /// Fourth Quarter
1377 "Q4" => Q4,
1378 /// Quarter of a Year
1379 "QY" => Qy,
1380 /// Semiannual
1381 "SA" => Sa,
1382 /// Seller's Manufacturing Days
1383 "SD" => Sd,
1384 /// Shift
1385 "SH" => Sh,
1386 /// Semimonthly
1387 "SM" => Sm,
1388 /// Summer Period
1389 "SP" => Sp,
1390 /// Tax Year
1391 "TY" => Ty,
1392 /// Weeks
1393 "WK" => Wk,
1394 /// Work Week
1395 "WW" => Ww,
1396 /// Weekly
1397 "WY" => Wy,
1398 /// Year to Date
1399 "YD" => Yd,
1400 /// Mutually Defined
1401 "ZZ" => Zz,
1402 }
1403);
1404
1405crate::code_enum!(
1406 /// **368** Shipment/Order Status Code
1407 ///
1408 /// - Data element: 368
1409 /// - Type: Identifier (ID)
1410 /// - Length: min 2, max 2
1411 ///
1412 /// Shipment/Order Status Code. Code values verified against the Stedi X12 reference.
1413 E368 {
1414 /// Multiple Pickup Same Destination
1415 "AA" => Aa,
1416 /// Available to Ship - Billed Quantity
1417 "AB" => Ab,
1418 /// Available Now - No Shipping Schedule
1419 "AN" => An,
1420 /// Allocation
1421 "AP" => Ap,
1422 /// Available Now - Scheduled to Ship (date)
1423 "AS" => As,
1424 /// Available to Ship - Unbilled Quantity
1425 "AU" => Au,
1426 /// Available
1427 "AV" => Av,
1428 /// Back Ordered from Previous Order
1429 "BK" => Bk,
1430 /// Backordered, Manufacturer, Out-of-Stock
1431 "BM" => Bm,
1432 /// Back Ordered
1433 "BO" => Bo,
1434 /// Shipment Partial, Back Order to Ship on (Date)
1435 "BP" => Bp,
1436 /// Billed total
1437 "BT" => Bt,
1438 /// Billed week-to-date
1439 "BW" => Bw,
1440 /// Customer Inquiry - All Items
1441 "CA" => Ca,
1442 /// Components Missing
1443 "CB" => Cb,
1444 /// Shipment Complete on (Date)
1445 "CC" => Cc,
1446 /// Consolidated Freight
1447 "CD" => Cd,
1448 /// Shipment Includes Extra Items to Meet Price Break
1449 "CE" => Ce,
1450 /// Consolidated Load
1451 "CF" => Cf,
1452 /// Customer Inquiry - Shipped Items Only
1453 "CI" => Ci,
1454 /// Cancelled from Previous Order
1455 "CK" => Ck,
1456 /// Complete
1457 "CL" => Cl,
1458 /// Shipment Complete with Additional Quantity
1459 "CM" => Cm,
1460 /// Next Carrier Move on (Date)
1461 "CN" => Cn,
1462 /// Customer Inquiry - Unshipped Items Only
1463 "CO" => Co,
1464 /// Partial Shipment on (Date), Considered No Backorder
1465 "CP" => Cp,
1466 /// Shipment Complete with Substitution
1467 "CS" => Cs,
1468 /// Combination
1469 "CT" => Ct,
1470 /// Cancelled Line Item
1471 "CU" => Cu,
1472 /// Due for Assortment
1473 "DA" => Da,
1474 /// Delivered to Destination on (Date)
1475 "DD" => Dd,
1476 /// Deleted Order
1477 "DE" => De,
1478 /// Discontinued
1479 "DI" => Di,
1480 /// Diverted Order
1481 "DO" => Do,
1482 /// Dispose
1483 "DP" => Dp,
1484 /// Dating Requirements
1485 "DR" => Dr,
1486 /// Out Of Stock Condition
1487 "DS" => Ds,
1488 /// Equipment Capacity
1489 "EC" => Ec,
1490 /// Expect to Ship By (Date)
1491 "ED" => Ed,
1492 /// Expect To Ship Week of (Date)
1493 "EW" => Ew,
1494 /// Expect to Deliver by
1495 "EX" => Ex,
1496 /// Units Not Shipped By Agent - To Be Shipped From Factory
1497 "FS" => Fs,
1498 /// Held Awaiting Qualification
1499 "HQ" => Hq,
1500 /// Item Canceled
1501 "IC" => Ic,
1502 /// Insufficient Information
1503 "ID" => Id,
1504 /// In Process
1505 "IN" => In,
1506 /// Inquiry by Purchase Order
1507 "IP" => Ip,
1508 /// Item Represents Substitution from Original Order
1509 "IS" => Is,
1510 /// Shipment late
1511 "LM" => Lm,
1512 /// Last Shipment on (Date)
1513 "LS" => Ls,
1514 /// Number of Late Weeks
1515 "LW" => Lw,
1516 /// Missing Components Furnished
1517 "MC" => Mc,
1518 /// Not Yet Published
1519 "NF" => Nf,
1520 /// Not in Process - No Shipping Schedule
1521 "NN" => Nn,
1522 /// Not In Process, Scheduled to Ship on (Date)
1523 "NS" => Ns,
1524 /// No Shipping Schedule
1525 "NY" => Ny,
1526 /// Out of Bill & Hold Goods
1527 "OB" => Ob,
1528 /// Order Sent to Factory for Production on (Date)
1529 "OF" => Of,
1530 /// Out of Print
1531 "OP" => Op,
1532 /// Temporarily Out of Stock - Reorder
1533 "OR" => Or,
1534 /// Purchase Order Inquiry - All Items
1535 "PA" => Pa,
1536 /// Production
1537 "PC" => Pc,
1538 /// Purchase Order Complete
1539 "PD" => Pd,
1540 /// Product On Hold
1541 "PH" => Ph,
1542 /// Purchase Order Inquiry - Shipped Items Only
1543 "PI" => Pi,
1544 /// Packed-to-Date as of (Date)
1545 "PK" => Pk,
1546 /// Part Lot, Stop Off
1547 "PL" => Pl,
1548 /// In Process - No Shipping Schedule
1549 "PN" => Pn,
1550 /// Purchase Order Inquiry - Unshipped Items Only
1551 "PO" => Po,
1552 /// Purchase Order Inquiry - Specific Items
1553 "PP" => Pp,
1554 /// Partial Shipment
1555 "PR" => Pr,
1556 /// In Process, Scheduled to Ship On (Date)
1557 "PS" => Ps,
1558 /// Part Lot
1559 "PT" => Pt,
1560 /// Quantity Net Due
1561 "QN" => Qn,
1562 /// Quantity Past Due
1563 "QP" => Qp,
1564 /// Released to Carrier (Date)
1565 "RC" => Rc,
1566 /// Revised Expect to Ship By (Date)
1567 "RD" => Rd,
1568 /// Recall
1569 "RI" => Ri,
1570 /// Received Total
1571 "RT" => Rt,
1572 /// Revised Expect to Ship Week of (Date)
1573 "RW" => Rw,
1574 /// Shipment Quantity Increase
1575 "SA" => Sa,
1576 /// Seconds Available to Ship - Billed Quantity
1577 "SB" => Sb,
1578 /// Shipment Quantity Decrease
1579 "SC" => Sc,
1580 /// Shipped Damaged
1581 "SD" => Sd,
1582 /// Replacement Shipment
1583 "SE" => Se,
1584 /// Shipped and Held in Bond at Contractor's Plant
1585 "SF" => Sf,
1586 /// Shipped and Held as Government-Furnished Property
1587 "SG" => Sg,
1588 /// Shipped (Date)
1589 "SH" => Sh,
1590 /// Shipment Late, Scheduled to Ship on (Date)
1591 "SI" => Si,
1592 /// Shipped or Performed as Indicated
1593 "SJ" => Sj,
1594 /// Shipment Underrun Quantity
1595 "SK" => Sk,
1596 /// Shipped - to - Date through (Date)
1597 "SL" => Sl,
1598 /// Scheduled for Production at Factory on (Date)
1599 "SP" => Sp,
1600 /// Scheduled to ship (Summary quantity)
1601 "SQ" => Sq,
1602 /// Split Shipment
1603 "SS" => Ss,
1604 /// Stop Off
1605 "ST" => St,
1606 /// Seconds Available to Ship - Unbilled Quantity
1607 "SU" => Su,
1608 /// Unbilled Quantity Balance
1609 "UB" => Ub,
1610 /// Unavailable
1611 "UN" => Un,
1612 /// Unsolicited Report
1613 "UR" => Ur,
1614 /// Item Invoiced - Shipment to Follow
1615 "WS" => Ws,
1616 /// Mutually Defined
1617 "ZZ" => Zz,
1618 }
1619);
1620
1621crate::code_enum!(
1622 /// **372** Lading Liability Code
1623 ///
1624 /// - Data element: 372
1625 /// - Type: Identifier (ID)
1626 /// - Length: min 1, max 1
1627 ///
1628 /// Lading Liability Code. Code values verified against the Stedi X12 reference.
1629 E372 {
1630 /// Full Liability
1631 "F" => F,
1632 /// Limited Liability
1633 "L" => L,
1634 }
1635);
1636
1637crate::code_enum!(
1638 /// **375** Tariff Service Code
1639 ///
1640 /// - Data element: 375
1641 /// - Type: Identifier (ID)
1642 /// - Length: min 2, max 2
1643 ///
1644 /// Tariff Service Code. Code values verified against the Stedi X12 reference.
1645 E375 {
1646 /// Domestic Motor Van Door-to-Door Interstate
1647 "1A" => N1A,
1648 /// Domestic Motor Van Door-to-Door Intrastate
1649 "1B" => N1B,
1650 /// Domestic Container Van Door-to-Door Interstate
1651 "2A" => N2A,
1652 /// Domestic Container Van Door-to-Door Intrastate
1653 "2B" => N2B,
1654 /// Unaccompanied Baggage for Domestic Commercial Air Transport
1655 "B1" => B1,
1656 /// Unaccompanied Baggage for Domestic Transport Not Otherwise Identified
1657 "B2" => B2,
1658 /// Unaccompanied Baggage for Intertheater Military Air Transport
1659 "B3" => B3,
1660 /// Unaccompanied Baggage for Intratheater Military Water Transport
1661 "B4" => B4,
1662 /// Unaccompanied Baggage for Intratheater Commercial Motor Transport
1663 "B5" => B5,
1664 /// Unaccompanied Baggage for Domestic Commercial Motor Transport
1665 "BA" => Ba,
1666 /// Barge-to-Barge
1667 "BB" => Bb,
1668 /// Unaccompanied Baggage for Domestic Military Air Transport
1669 "BC" => Bc,
1670 /// Barge-to-Door
1671 "BD" => Bd,
1672 /// Unaccompanied Baggage for International Military Water Transport
1673 "BE" => Be,
1674 /// Unaccompanied Baggage for International Commercial Air Transport
1675 "BF" => Bf,
1676 /// Unaccompanied Baggage for International Military Air Transport
1677 "BG" => Bg,
1678 /// Unaccompanied Baggage for International Transport Not Otherwise Identified
1679 "BH" => Bh,
1680 /// Unaccompanied Baggage for Intertheater Military Water Transport
1681 "BK" => Bk,
1682 /// Unaccompanied Baggage for Intertheater Commercial Air Transport
1683 "BL" => Bl,
1684 /// Barge-to-Motor
1685 "BM" => Bm,
1686 /// Unaccompanied Baggage for Intertheater Transport Not Otherwise Identified
1687 "BN" => Bn,
1688 /// Barge-to-Terminal
1689 "BO" => Bo,
1690 /// Barge-to-Pier
1691 "BP" => Bp,
1692 /// Barge-to-Rail
1693 "BR" => Br,
1694 /// Unaccompanied Baggage for Intratheater Commercial Air Transport
1695 "BW" => Bw,
1696 /// Unaccompanied Baggage for Intratheater Military Air Transport
1697 "BX" => Bx,
1698 /// Unaccompanied Baggage for Intratheater Transport Not Otherwise Identified
1699 "BY" => By,
1700 /// Door-to-Barge
1701 "DB" => Db,
1702 /// Door-to-Door
1703 "DD" => Dd,
1704 /// Door-to-Motor
1705 "DM" => Dm,
1706 /// Door-to-Terminal
1707 "DO" => Do,
1708 /// Door-to-Pier
1709 "DP" => Dp,
1710 /// Door-to-Rail
1711 "DR" => Dr,
1712 /// Rate Applies for Economy Transportation Service
1713 "EC" => Ec,
1714 /// Household Goods for International Transport Not Otherwise Identified
1715 "H1" => H1,
1716 /// Household Goods for Intratheater Military Water Transport
1717 "H2" => H2,
1718 /// Household Goods for Domestic Commercial Motor Transport
1719 "HA" => Ha,
1720 /// Household Goods for Domestic Commercial Air Transport
1721 "HB" => Hb,
1722 /// Household Goods for Domestic Military Air Transport
1723 "HC" => Hc,
1724 /// Household Goods for Domestic Transport Not Otherwise Identified
1725 "HD" => Hd,
1726 /// Household Goods for International Military Water Transport
1727 "HE" => He,
1728 /// Household Goods for International Commercial Air Transport
1729 "HF" => Hf,
1730 /// Household Goods for International Military Air Transport
1731 "HG" => Hg,
1732 /// House-to-House
1733 "HH" => Hh,
1734 /// Household Goods for Intertheater Military Water Transport
1735 "HK" => Hk,
1736 /// Household Goods for Intertheater Commercial Air Transport
1737 "HL" => Hl,
1738 /// Household Goods for Intertheater Military Air Transport
1739 "HM" => Hm,
1740 /// Household Goods for Intertheater Transport Not Otherwise Identified
1741 "HN" => Hn,
1742 /// House-to-Pier
1743 "HP" => Hp,
1744 /// Household Goods for Intratheater Commercial Motor Transport
1745 "HR" => Hr,
1746 /// Household Goods for Intratheater Commercial Air Transport
1747 "HW" => Hw,
1748 /// Household Goods for Intratheater Military Air Transport
1749 "HX" => Hx,
1750 /// Household Goods for Intratheater Transport Not Otherwise Identified
1751 "HY" => Hy,
1752 /// Motor-to-Barge
1753 "MB" => Mb,
1754 /// Motor-to-Door
1755 "MD" => Md,
1756 /// Rate applies for Mini-Landbridge
1757 "ML" => Ml,
1758 /// Motor-to-Motor
1759 "MM" => Mm,
1760 /// Motor-to-Terminal
1761 "MO" => Mo,
1762 /// Motor-to-Pier
1763 "MP" => Mp,
1764 /// Motor-to-Rail
1765 "MR" => Mr,
1766 /// Rate Applies for Next Day Transportation Service
1767 "ND" => Nd,
1768 /// Rate applies for Overland Common Point
1769 "OC" => Oc,
1770 /// Terminal-to-Door
1771 "OD" => Od,
1772 /// Terminal-to-Motor
1773 "OM" => Om,
1774 /// Terminal-to-Rail
1775 "OR" => Or,
1776 /// Terminal-to-Inland
1777 "OT" => Ot,
1778 /// Rate Applies for Overnight Transportation Service
1779 "OV" => Ov,
1780 /// Pier-to-Barge
1781 "PB" => Pb,
1782 /// Pier-to-Door
1783 "PD" => Pd,
1784 /// Pier-to-House
1785 "PH" => Ph,
1786 /// Pier-to-Motor
1787 "PM" => Pm,
1788 /// Pier-to-Pier
1789 "PP" => Pp,
1790 /// Pier-to-Rail
1791 "PR" => Pr,
1792 /// Rail-to-Barge
1793 "RB" => Rb,
1794 /// Rail-to-Door
1795 "RD" => Rd,
1796 /// Rail-to-Motor
1797 "RM" => Rm,
1798 /// Rail-to-Terminal
1799 "RO" => Ro,
1800 /// Rail-to-Pier
1801 "RP" => Rp,
1802 /// Rail-to-Rail
1803 "RR" => Rr,
1804 }
1805);
1806
1807crate::code_enum!(
1808 /// **378** Allowance/Charge Percent Qualifier
1809 ///
1810 /// - Data element: 378
1811 /// - Type: Identifier (ID)
1812 /// - Length: min 1, max 1
1813 ///
1814 /// Allowance/Charge Percent Qualifier. Code values verified against the Stedi X12 reference.
1815 E378 {
1816 /// Gross
1817 "0" => N0,
1818 /// Item List Cost
1819 "1" => N1,
1820 /// Item Net Cost
1821 "2" => N2,
1822 /// Discount/Gross
1823 "3" => N3,
1824 /// Discount/Net
1825 "4" => N4,
1826 /// Base Price per Unit
1827 "5" => N5,
1828 /// Base Price Amount
1829 "6" => N6,
1830 /// Base Price Amount Less Previous Discount
1831 "7" => N7,
1832 /// Net Monthly On All Invoices Past Due
1833 "8" => N8,
1834 /// Late Payment Charge Base Amount
1835 "9" => N9,
1836 /// Fuel Rate
1837 "A" => A,
1838 /// Item Total Amount
1839 "B" => B,
1840 /// Item Unit Price
1841 "C" => C,
1842 /// Order Total Amount
1843 "D" => D,
1844 /// Hourly Rate
1845 "H" => H,
1846 /// Mutually Defined
1847 "Z" => Z,
1848 }
1849);
1850
1851crate::code_enum!(
1852 /// **381** Price Reason Code
1853 ///
1854 /// - Data element: 381
1855 /// - Type: Identifier (ID)
1856 /// - Length: min 1, max 1
1857 ///
1858 /// Price Reason Code. Code values verified against the Stedi X12 reference.
1859 E381 {
1860 /// Bid
1861 "A" => A,
1862 /// Back Order
1863 "B" => B,
1864 /// Cents Off Label
1865 "C" => C,
1866 /// Distress Merchandise
1867 "D" => D,
1868 /// Reorder
1869 "E" => E,
1870 /// Intro Offering
1871 "F" => F,
1872 /// Grand Opening
1873 "G" => G,
1874 /// Unmatched Manufacturer ID
1875 "H" => H,
1876 /// Unmatched Coupon Family Code
1877 "I" => I,
1878 /// Purchase Requirement Not Satisfied
1879 "J" => J,
1880 /// Consumer Presented More Coupons Than Allowed
1881 "K" => K,
1882 /// Coupon Value Exceeds Retail Price
1883 "L" => L,
1884 /// Provision Sales to Non-Provision Account
1885 "P" => P,
1886 /// Price Quote
1887 "Q" => Q,
1888 /// Temporary Shipping Interruption
1889 "S" => S,
1890 /// Price Protection
1891 "T" => T,
1892 /// Miscellaneous
1893 "X" => X,
1894 }
1895);
1896
1897crate::code_enum!(
1898 /// **399** Pallet Exchange Code
1899 ///
1900 /// - Data element: 399
1901 /// - Type: Identifier (ID)
1902 /// - Length: min 1, max 1
1903 ///
1904 /// Pallet Exchange Code. Code values verified against the Stedi X12 reference.
1905 E399 {
1906 /// No Exchange/No Return
1907 "1" => N1,
1908 /// Exchange Pallets
1909 "2" => N2,
1910 /// Return Pallets
1911 "3" => N3,
1912 /// Pallets to be Purchased by Customer
1913 "4" => N4,
1914 /// Third-Party Pallet Exchange
1915 "5" => N5,
1916 }
1917);
1918
1919crate::num_element!(
1920 /// **315** Compensation Paid
1921 ///
1922 /// - Data element: 315
1923 /// - Type: Numeric (R)
1924 /// - Length: min 2, max 5
1925 ///
1926 /// Compensation Paid.
1927 E315
1928);
1929
1930crate::num_element!(
1931 /// **317** Total Compensation Amount
1932 ///
1933 /// - Data element: 317
1934 /// - Type: Numeric (N0)
1935 /// - Length: min 3, max 10
1936 ///
1937 /// Total Compensation Amount.
1938 E317
1939);