/// <summary /> public QuittanceType(SupplierBillIDType supplierBillID, DateTime creationDate, AcknowledgmentStatusType billStatus, PaymentIdType paymentId) { SupplierBillID = supplierBillID; CreationDate = creationDate; BillStatus = billStatus; PaymentId = paymentId; }
/// <summary/> public RefundApplication(string appNum, DateTime appDate, PaymentIdType paymentIdType, int cashType, ulong amount, string purpose) { AppNum = appNum; AppDate = appDate; PaymentId = paymentIdType; CashType = cashType; Amount = amount; Purpose = purpose; }
/// <summary /> public NoticePayment( ChangeStatusInfo changeStatusInfo, PaymentIdType paymentId, DateTime paymentDate, PaymentOrgType paymentOrg, Payee payee, string purpose, ulong amount, TransKindType transKind) : base(paymentId, paymentDate, paymentOrg, payee, purpose, amount, transKind) => ChangeStatusInfo = changeStatusInfo;
/// <summary /> public PaymentType( PaymentIdType paymentId, DateTime paymentDate, PaymentOrgType paymentOrg, Payee payee, string purpose, ulong amount, TransKindType transKind ) : base(paymentOrg, payee, purpose, amount, transKind) { PaymentId = paymentId; PaymentDate = paymentDate; }
public async Task <IActionResult> Details(string id) { TempData["actionInitiated"] = true; var payment = await paymentRepository.Find(id); var provider = Enum.Parse <Provider>(payment.Provider); var identifier = payment.TransactionId ?? payment.Token; PaymentIdType idType = payment.TransactionId == null ? PaymentIdType.Token : PaymentIdType.TransactionId; GetDetailsResponse response = await rcpgClient.GetDetails(provider, identifier, idType); if (response.Errors.Any()) { TempData["hasErrors"] = true; TempData["notificationText"] = $"Notikusi kļūda. Kļūdas avots: \"{response.Errors.First().Source}\", kļūdas kods: \"{response.Errors.First().ErrorCode}\""; return(redirectToLandingPage()); } string json = JObject.Parse(response.Details).ToString(Formatting.Indented); return(View("Details", json)); }
/// <summary> public ComparisonResult(PaymentIdType paymentId, ulong comparisonWeight) { PaymentId = paymentId; ComparisonWeight = comparisonWeight; }
public NoticeQuittance(SupplierBillIDType supplierBillID, DateTime creationDate, AcknowledgmentStatusType billStatus, PaymentIdType paymentId) : base(supplierBillID, creationDate, billStatus, paymentId) { }
public async Task <GetDetailsResponse> GetDetails(Provider provider, string id, PaymentIdType idType) { if (channel.State == ChannelState.Shutdown) { var response = new GetDetailsResponse(); response.Errors.Add(setClientShutDownError()); return(response); } GetDetailsRequest request = new GetDetailsRequest() { Provider = provider, Identifier = id, IdType = idType }; try { return(await client.GetDetailsAsync(request)); } catch (RpcException ex) { var response = new GetDetailsResponse(); response.Errors.Add(setGatewayError(ex.Message)); return(response); } }