コード例 #1
0
 public static DebtRequest ProcessCheckRequest(DebtRequest request)
 {
     PayRequest request3;
     DebtRequest request2 = new DebtRequest();
     request3 = new PayRequest {
         Period = System.DateTime.Now,
         Period = request3.Period.AddDays((double) (1 - request3.Period.get_Day())),
         PaymentSystem = request.Sender.PaymentSystem,
         Organization = request.Sender.Organization,
         Office = request.Sender.Office,
         Terminal = request.Sender.Terminal,
         Operator = request.Sender.Operator
     };
     request3.SaveChanges();
     request3.DebtProcessRequest(true, request.RequestParameters.DebtAccountId);
     request3 = ObjectWithId.FindById<PayRequest>(request3.Id);
     request2.ResponseParameters.Paid = request3.TotalDebt;
     request2.ResponseParameters.RequestId = request3.Id;
     request2.ResponseParameters.DebtAccountId = request.RequestParameters.DebtAccountId;
     request2.ResponseParameters.UK = request3.AdditionalInfo;
     request2.ResponseParameters.Address = request3.AddressName;
     request2.ResponseParameters.Account = request3.AccountNumber;
     request2.ResponseParameters.OwnerName = request3.OwnerName;
     return request2;
 }