Add one more payment request

This commit is contained in:
2025-09-16 12:05:37 +09:00
parent 3c340f783e
commit 90a833834f
6 changed files with 195 additions and 0 deletions

View File

@ -80,6 +80,7 @@ namespace Hcs.TestApp
//orgRegistryCommonScenario.ExportDataProvider();
//orgRegistryCommonScenario.ExportOrgRegistry();
//paymentsScenario.ImportNotificationsOfOrderExecution();
//paymentsScenario.ImportSupplierNotificationsOfOrderExecution();
}
catch (Exception e)

View File

@ -8,6 +8,26 @@ namespace Hcs.TestApp.Scenario
{
private readonly UniClient client = client;
internal void ImportNotificationsOfOrderExecution()
{
var payload = new ImportNotificationsOfOrderExecutionPayload()
{
// TODO: Разобраться, что это за айди
orderId = "",
orderDate = new DateTime(2025, 9, 5),
amount = 4000M,
onlinePayment = true,
year = 2025,
month = 8,
paymentDocumentId = "00АА095186-02-5081",
// TODO: Возможно что не обязательно передавать оба параметра
paymentDocumentGUID = ""
};
var result = client.Payments.ImportNotificationsOfOrderExecutionAsync(payload).Result;
Console.WriteLine("Scenario execution " + (result ? "succeeded" : "failed"));
}
internal void ImportSupplierNotificationsOfOrderExecution()
{
var payload = new ImportSupplierNotificationsOfOrderExecutionPayload()