forked from Adyen/adyen-dotnet-api-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPosPaymentCloudApi.cs
62 lines (56 loc) · 2.58 KB
/
PosPaymentCloudApi.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using System;
using System.Threading.Tasks;
using Adyen.Model.Nexo;
namespace Adyen.Service
{
public class PosPaymentCloudApi : AbstractService, IPosPaymentCloudApi
{
private readonly TerminalCloudApi _terminalCloudApi;
[Obsolete("This in person payment class is deprecated and will be removed in the next major, please refer to TerminalCloudApi.cs")]
public PosPaymentCloudApi(Client client)
: base(client)
{
_terminalCloudApi = new TerminalCloudApi(client);
}
/// <summary>
/// CloudApi asynchronous call
/// </summary>
/// <param name="saleToPoiRequest"></param>
/// <returns></returns>
[Obsolete("This in person payment class is deprecated and will be removed in the next major, please refer to TerminalCloudApi.cs")]
public SaleToPOIResponse TerminalApiCloudAsync(SaleToPOIMessage saleToPoiRequest)
{
return _terminalCloudApi.TerminalRequestAsync(saleToPoiRequest);
}
/// <summary>
/// CloudApi synchronous call
/// </summary>
/// <param name="saleToPoiRequest"></param>
/// <returns></returns>
[Obsolete("This in person payment class is deprecated and will be removed in the next major, please refer to TerminalCloudApi.cs")]
public SaleToPOIResponse TerminalApiCloudSync(SaleToPOIMessage saleToPoiRequest)
{
return _terminalCloudApi.TerminalRequestSync(saleToPoiRequest);
}
/// <summary>
/// Task async CloudApi asynchronous call
/// </summary>
/// <param name="saleToPoiRequest"></param>
/// <returns></returns>
[Obsolete("This in person payment class is deprecated and will be removed in the next major, please refer to TerminalCloudApi.cs")]
public async Task<SaleToPOIResponse> TerminalApiCloudAsynchronousAsync(SaleToPOIMessage saleToPoiRequest)
{
return await _terminalCloudApi.TerminalRequestAsynchronousAsync(saleToPoiRequest);
}
/// <summary>
/// Task async CloudApi synchronous call
/// </summary>
/// <param name="saleToPoiRequest"></param>
/// <returns></returns>
[Obsolete("This in person payment class is deprecated and will be removed in the next major, please refer to TerminalCloudApi.cs")]
public async Task<SaleToPOIResponse> TerminalApiCloudSynchronousAsync(SaleToPOIMessage saleToPoiRequest)
{
return await _terminalCloudApi.TerminalRequestSynchronousAsync(saleToPoiRequest);
}
}
}