From 36afcdf0988e753ae2178fb8220b02f2c4d0b2b2 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 30 Jan 2022 01:41:08 +0100 Subject: refactor: Convert solution for file-scoped namespaces --- src/IOL.VippsEcommerce/IVippsEcommerceService.cs | 89 ++++++++++++------------ 1 file changed, 44 insertions(+), 45 deletions(-) (limited to 'src/IOL.VippsEcommerce/IVippsEcommerceService.cs') 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 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 - ); - } + public VippsConfiguration Configuration { get; } + + 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 + ); } -- cgit v1.3