Add payment import

This commit is contained in:
2025-09-15 11:28:08 +09:00
parent 5ebcdfae6e
commit e37f0b25ef
9 changed files with 250 additions and 0 deletions

View File

@ -0,0 +1,27 @@
using Hcs.Client;
using Hcs.Client.Api.Payload.Payments;
using System;
namespace Hcs.TestApp.Scenario
{
internal class PaymentsScenario(UniClient client)
{
private readonly UniClient client = client;
internal void ImportSupplierNotificationsOfOrderExecution()
{
var payload = new ImportSupplierNotificationsOfOrderExecutionPayload()
{
orderDate = new DateTime(2025, 9, 5),
month = 8,
year = 2025,
paymentDocumentId = "00АА095186-02-5081",
amount = 4000M,
onlinePayment = true
};
var result = client.Payments.ImportSupplierNotificationsOfOrderExecutionAsync(payload).Result;
Console.WriteLine("Scenario execution " + (result ? "succeeded" : "failed"));
}
}
}