public ReceiptAgencyEC2.Receipt GetReceiptV2(ReceiptV2SearchExternalShipmentEC2 shipment)
        {
            var client = GenerateProxy(shipment);

            OperationContext = "ReceiptAgencyGetReceiptV2";
            return(client.GetReceiptECV2(shipment.Username, shipment.Password, shipment.ReceiptSearch));
        }
 public ReceiptAgencyFormEC2()
 {
     InitializeComponent();
     ReceiptExt                = new ReceiptExternal();
     ReceiptV2                 = new ReceiptAgencyEC2.Receipt();
     ReceiptList               = new ReceiptExternalList();
     ReceiptListV2             = new ReceiptList();
     RaeFunc                   = new ReceiptAgencyEndpointFunctionalityEC2();
     RaeFunc.ReturnMessageXml += ReturnMessageXmlHandler;
     SaveReceipt               = new ReceiptExternal();
     UpdateReceipt             = new ReceiptAgencyEC2.Receipt();
     SetupObjectsForPropertyGrid();
     ReceiptSearchShipment       = new ReceiptSearchExternalShipmentEC2();
     ReceiptV2SearchShipment     = new ReceiptV2SearchExternalShipmentEC2();
     ReceiptSaveShipment         = new ReceiptSaveExternalShipmentEC2();
     ReceiptUpdateShipment       = new ReceiptUpdateExternalShipmentEC2();
     ReceiptListSearchShipment   = new ReceiptListSearchExternalShipmentEC2();
     ReceiptListV2SearchShipment = new ReceiptListV2SearchExternalShipmentEC2();
     TestShipment = new BaseShipment();
 }