diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-01-30 01:41:08 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-01-30 01:41:08 +0100 |
| commit | 36afcdf0988e753ae2178fb8220b02f2c4d0b2b2 (patch) | |
| tree | d27cb629cd53eeef6737ddc86915d51a9ac4b9c3 /src/IOL.VippsEcommerce/IVippsEcommerceService.cs | |
| parent | bbe0fb036a790b6a23a478d3f047add63b3b07a6 (diff) | |
| download | dotnet-vipps-ecommerce-36afcdf0988e753ae2178fb8220b02f2c4d0b2b2.tar.xz dotnet-vipps-ecommerce-36afcdf0988e753ae2178fb8220b02f2c4d0b2b2.zip | |
refactor: Convert solution for file-scoped namespaces
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 + ); } |
