Add one more payment request
This commit is contained in:
@ -80,6 +80,7 @@ namespace Hcs.TestApp
|
||||
//orgRegistryCommonScenario.ExportDataProvider();
|
||||
//orgRegistryCommonScenario.ExportOrgRegistry();
|
||||
|
||||
//paymentsScenario.ImportNotificationsOfOrderExecution();
|
||||
//paymentsScenario.ImportSupplierNotificationsOfOrderExecution();
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user