private AcEdiUspsD1InvoiceClaimV2R1Tdt createTransportTdt(
     AcUspsD1InvoiceClaimV2R1Transport transport) {
   AcEdiUspsD1InvoiceClaimV2R1Tdt x = new AcEdiUspsD1InvoiceClaimV2R1Tdt();
   x.setCarrier(transport.getCarrierCode());
   x.setFlightNumber(transport.getFlightNumber());
   return x;
 }
  private AcEdiUspsD1InvoiceClaimV2R1Loc createDeliveryTransportLoc(
      AcUspsD1InvoiceClaimV2R1Transport transport) {
    AcEdiUspsD1InvoiceClaimV2R1Loc x = new AcEdiUspsD1InvoiceClaimV2R1Loc();

    if (!transport.hasExpectedAirportCode() && !transport.hasActualAirportCode()) return null;

    x.setDeliveryFieldsFrom(transport);

    return x;
  }
 public void addTransportSegments(
     AcEdiMessage message, AcUspsD1InvoiceClaimV2R1Transport transport) {
   if (transport.isPossession()) addPossessionSegments(message, transport);
   else if (transport.isLoad()) addLoadSegments(message, transport);
   else if (transport.isTransfer1()) addFirstXferSegments(message, transport);
   else if (transport.isTransfer2()) addSecondXferSegments(message, transport);
   else if (transport.isTransfer3()) addThirdXferSegments(message, transport);
   else if (transport.isDeliver()) addDeliverSegments(message, transport);
 }
 private AcEdiSegmentAbstract createDeliveryDtm(AcUspsD1InvoiceClaimV2R1Transport transport) {
   AcEdiUspsD1InvoiceClaimV2R1Dtm x = new AcEdiUspsD1InvoiceClaimV2R1Dtm();
   x.setDeliveryScan();
   x.setPeriodTimestampCCYYMMDDHHMM(transport.getEventLocalTs());
   return x;
 }
 private AcEdiSegmentAbstract createDeliveryTdt(AcUspsD1InvoiceClaimV2R1Transport transport) {
   AcEdiUspsD1InvoiceClaimV2R1Tdt tdt = new AcEdiUspsD1InvoiceClaimV2R1Tdt();
   tdt.setDeliver();
   tdt.setCarrier(transport.getCarrierCode());
   return tdt;
 }