diff options
Diffstat (limited to 'src/IOL.VippsEcommerce/IVippsEcommerceService.cs')
| -rw-r--r-- | src/IOL.VippsEcommerce/IVippsEcommerceService.cs | 49 |
1 files changed, 49 insertions, 0 deletions
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<VippsInitiatePaymentResponse> InitiatePaymentAsync( + VippsInitiatePaymentRequest 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> AuthorizePaymentAsync( + 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<VippsGetPaymentDetailsResponse> GetPaymentDetailsAsync( + string orderId, + CancellationToken ct = default + ); + } +}
\ No newline at end of file |
