public AuctionController(IUserRepository userRepository, ProductClient productClient, AuctionClient auctionClient, BidClient bidClient) { _userRepository = userRepository; _productClient = productClient; _auctionClient = auctionClient; _bidClient = bidClient; }
//주문완료후 주문확인 : 특정 상품 주문을 발주처리 public async Task ConfirmOrderAsync(int OrderNo) { AuctionAuctionServiceSoap.ConfirmReceivingOrderRequestT req = new AuctionAuctionServiceSoap.ConfirmReceivingOrderRequestT(); req.OrderNo = OrderNo; req.OrderNoSpecified = true; await AuctionClient.ConfirmReceivingOrderAsync(req); }
public LKQClient() { VerificationCode = new Guid(ConfigurationManager.AppSettings["Key"]); User = new UserInformation() { VerificationCode = VerificationCode }; PartnerID = Convert.ToInt16(ConfigurationManager.AppSettings["ParnerId"]); Client = new AuctionClient(); }
//주문목록 조회 public async Task <GetShippingAddressListResponse> RequestOrderListAsync() { GetShippingAddressListRequestT req = new GetShippingAddressListRequestT(); req = Generate_GetOrderList(); GetShippingAddressListResponse res = await AuctionClient.GetShippingAddressListAsync(req); return(res); }
//정산상세정보조회 public async Task <GetSettlementDetailResponseT> SyncSettlementDetailAsync(int OrderNo) { GetSettlementDetailRequestT req = new GetSettlementDetailRequestT(); req = Generate_SyncSettlementDetail(OrderNo); GetSettlementDetailResponseT res = await AuctionClient.GetSettlementDetailAsync(req); return(res); }
//송금완료자료 조회 public async Task <GetCompletedRemittanceListResponse> SyncSettlementAsync(DateTime StartDate, DateTime EndDate, int PageIndex) { GetCompletedRemittanceListRequestT req = new GetCompletedRemittanceListRequestT(); req = Generate_SyncSettlement(StartDate, EndDate, PageIndex); GetCompletedRemittanceListResponse res = await AuctionClient.GetCompletedRemittanceListAsync(req); return(res); }
//완료된 주문,반품 목록 조회 - Partner_OrderCancel에 넣는 내용. public async Task <GetOrderCanceledListResponse> SyncOrderClaimAsync(DateTime StartDate, DateTime EndDate) { GetOrderCanceledListRequestT req = new GetOrderCanceledListRequestT(); req = Generate_GetOrderCanceledList(StartDate, EndDate); GetOrderCanceledListResponse res = await AuctionClient.GetOrderCanceledListAsync(req); return(res); }
//취소요청 목록 조회 public async Task <GetCancelApprovalListResponse> GetCancelListAsync(DateTime StartDate, DateTime EndDate) { GetCancelApprovalRequestT req = new GetCancelApprovalRequestT(); req = Generate_GetCancelList(StartDate, EndDate); GetCancelApprovalListResponse res = await AuctionClient.GetCancelApprovalListAsync(req); return(res); }
/// <summary> /// DataRow는 core에서 지원안됨.. /// </summary> /// <param name="Dr"></param> /// <returns></returns> public async Task <DoShippingGeneralResponseT> SetDeliveryOrderInfoAsync()/*DataRow Dr*/ { DoShippingGeneralRequestT req = new DoShippingGeneralRequestT(); //req = Generate_SetDeliveryOrderInfoAsync(Dr); DoShippingGeneralResponseT res = new DoShippingGeneralResponseT(); res = await AuctionClient.DoShippingGeneralAsync(req); return(res); }
/// <summary> /// datarow는 core에서 지원안됨 /// </summary> /// <param name="Dr"></param> /// <returns></returns> private async Task <DoShippingGeneralRequestT> Generate_SetDeliveryOrderInfoAsync()/*DataRow Dr*/ { DoShippingGeneralRequestT generalReq = new DoShippingGeneralRequestT(); ShippingMethodT shippingMtd = new ShippingMethodT(); RemittanceMethodT remittance = new RemittanceMethodT(); GetMyAccountRequestT req = new GetMyAccountRequestT(); GetMyAccountResponseT accRes = new GetMyAccountResponseT(); accRes = await AuctionClient.GetMyAccountAsync(req); remittance.RemittanceMethodType = RemittanceMethodCode.Emoney; remittance.RemittanceMethodTypeSpecified = true; remittance.RemittanceAccountName = accRes.MyAccount.AccountName; remittance.RemittanceAccountNumber = accRes.MyAccount.AccountNumber; remittance.RemittanceBankCode = accRes.MyAccount.BankCode; string deliDate = string.Empty; // Dr["Deli_Date"].ToString(); string deliveryNo = string.Empty; // Dr["DeliveryNo"].ToString(); string bpOffNm = string.Empty; // Dr["BpOffNm"].ToString(); string pOrdDId = string.Empty; // Dr["POrdD_ID"].ToString(); if (bpOffNm.Contains("옐로우") || bpOffNm.ToLower().Contains("kg로지스")) { bpOffNm = "동부익스프레스택배"; } // 발송정보 DateTime shippingDate = DateTime.Now; DateTime.TryParse(deliDate, out shippingDate); shippingMtd.SendDate = shippingDate; deliveryNo = Regex.Replace(deliveryNo, "[^0-9]", "", RegexOptions.IgnoreCase); //숫자외에 문자는 삭제처리함 shippingMtd.InvoiceNo = deliveryNo; shippingMtd.MessageForBuyer = ""; shippingMtd.ShippingMethodClassficationType = ShippingMethodClassficationCode.Door2Door; shippingMtd.DeliveryAgency = Get_DeliveryAgency(bpOffNm); //shippingMtd.DeliveryAgencyName = bpOffNm = bpOffNm.Contains("옐로우") ? "동부익스프레스택배" : bpOffNm; //옥션 요청 옐로우택배, KG로지스 인경우 동부택배로 20151127_이호준 shippingMtd.DeliveryAgencyName = bpOffNm; //옥션 요청 옐로우택배, KG로지스 인경우 동부택배로 20151127_이호준 shippingMtd.SendDateSpecified = true; shippingMtd.ShippingMethodClassficationTypeSpecified = true; shippingMtd.DeliveryAgencySpecified = true; shippingMtd.ShippingEtcMethodSpecified = false; // 배송정보 generalReq.OrderNo = Convert.ToInt32(pOrdDId); generalReq.RemittanceMethod = remittance; generalReq.ShippingMethod = shippingMtd; generalReq.OrderNoSpecified = true; return(generalReq); }
public RFQController(BidClient bidClient, AuctionClient auctionClient) { _bidClient = bidClient; _auctionClient = auctionClient; }
public AuctionController(AuctionClient auctionClient, ProductClient productClient, IUserRepository userRepository) { _auctionClient = auctionClient; _productClient = productClient; _userRepository = userRepository; }