From e6ca7a484d9cc213fb00c34ebf7cb55ace892c04 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 31 Mar 2021 18:00:22 +0200 Subject: Initial commit --- src/IOL.VippsEcommerce/IVippsEcommerceService.cs | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/IOL.VippsEcommerce/IVippsEcommerceService.cs (limited to 'src/IOL.VippsEcommerce/IVippsEcommerceService.cs') diff --git a/src/IOL.VippsEcommerce/IVippsEcommerceService.cs b/src/IOL.VippsEcommerce/IVippsEcommerceService.cs new file mode 100644 index 0000000..f300e73 --- /dev/null +++ b/src/IOL.VippsEcommerce/IVippsEcommerceService.cs @@ -0,0 +1,49 @@ +using System.Threading; +using System.Threading.Tasks; +using IOL.VippsEcommerce.Models.Api; + +namespace IOL.VippsEcommerce +{ + public interface IVippsEcommerceService + { + public Task InitiatePaymentAsync( + VippsInitiatePaymentRequest payload, + CancellationToken ct = default + ); + + public Task CapturePaymentAsync( + string orderId, + VippsPaymentActionRequest payload, + CancellationToken ct = default + ); + + public Task CancelPaymentAsync( + string orderId, + VippsPaymentActionRequest payload, + CancellationToken ct = default + ); + + public Task AuthorizePaymentAsync( + string orderId, + VippsPaymentActionRequest payload, + CancellationToken ct = default + ); + + public Task RefundPaymentAsync( + string orderId, + VippsPaymentActionRequest payload, + CancellationToken ct = default + ); + + public Task ForceApprovePaymentAsync( + string orderId, + VippsForceApproveRequest payload, + CancellationToken ct = default + ); + + public Task GetPaymentDetailsAsync( + string orderId, + CancellationToken ct = default + ); + } +} \ No newline at end of file -- cgit v1.3