diff options
Diffstat (limited to 'src/IOL.VippsEcommerce/IVippsEcommerceService.cs')
| -rw-r--r-- | src/IOL.VippsEcommerce/IVippsEcommerceService.cs | 75 |
1 files changed, 37 insertions, 38 deletions
diff --git a/src/IOL.VippsEcommerce/IVippsEcommerceService.cs b/src/IOL.VippsEcommerce/IVippsEcommerceService.cs index a93080b..9ee2c69 100644 --- a/src/IOL.VippsEcommerce/IVippsEcommerceService.cs +++ b/src/IOL.VippsEcommerce/IVippsEcommerceService.cs @@ -3,50 +3,49 @@ using System.Threading.Tasks; using IOL.VippsEcommerce.Models; using IOL.VippsEcommerce.Models.Api; -namespace IOL.VippsEcommerce +namespace IOL.VippsEcommerce; + +public interface IVippsEcommerceService { - public interface IVippsEcommerceService - { - public VippsConfiguration Configuration { get; } + public VippsConfiguration Configuration { get; } - public Task<VippsInitiatePaymentResponse> InitiatePaymentAsync( - VippsInitiatePaymentRequest payload, - CancellationToken ct = default - ); + public Task<VippsInitiatePaymentResponse> InitiatePaymentAsync( + VippsInitiatePaymentRequest payload, + CancellationToken ct = default + ); - public Task<VippsPaymentActionResponse> CapturePaymentAsync( - string orderId, - VippsPaymentActionRequest payload, - CancellationToken ct = default - ); + public Task<VippsPaymentActionResponse> CapturePaymentAsync( + string orderId, + VippsPaymentActionRequest payload, + CancellationToken ct = default + ); - public Task<VippsPaymentActionResponse> CancelPaymentAsync( - string orderId, - VippsPaymentActionRequest payload, - CancellationToken ct = default - ); + public Task<VippsPaymentActionResponse> CancelPaymentAsync( + string orderId, + VippsPaymentActionRequest payload, + CancellationToken ct = default + ); - public Task<VippsPaymentActionResponse> AuthorizePaymentAsync( - string orderId, - VippsPaymentActionRequest payload, - CancellationToken ct = default - ); + public Task<VippsPaymentActionResponse> AuthorizePaymentAsync( + string orderId, + VippsPaymentActionRequest payload, + CancellationToken ct = default + ); - public Task<VippsPaymentActionResponse> RefundPaymentAsync( - string orderId, - VippsPaymentActionRequest payload, - CancellationToken ct = default - ); + public Task<VippsPaymentActionResponse> RefundPaymentAsync( + string orderId, + VippsPaymentActionRequest payload, + CancellationToken ct = default + ); - public Task<bool> ForceApprovePaymentAsync( - string orderId, - VippsForceApproveRequest payload, - CancellationToken ct = default - ); + public Task<bool> ForceApprovePaymentAsync( + string orderId, + VippsForceApproveRequest payload, + CancellationToken ct = default + ); - public Task<VippsGetPaymentDetailsResponse> GetPaymentDetailsAsync( - string orderId, - CancellationToken ct = default - ); - } + public Task<VippsGetPaymentDetailsResponse> GetPaymentDetailsAsync( + string orderId, + CancellationToken ct = default + ); } |
