Skip to content

Commit

Permalink
Remove unused using statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Viincenttt committed May 14, 2024
1 parent 130b6da commit f041862
Show file tree
Hide file tree
Showing 70 changed files with 86 additions and 216 deletions.
3 changes: 1 addition & 2 deletions src/Mollie.Api/Client/Abstract/IBalanceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Mollie.Api.Models.Balance.Response;
using Mollie.Api.Models.Balance.Response.BalanceReport;
using Mollie.Api.Models.Balance.Response.BalanceTransaction;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Url;

Expand All @@ -19,4 +18,4 @@ public interface IBalanceClient : IBaseMollieClient {
Task<BalanceTransactionResponse> ListBalanceTransactionsAsync(string balanceId, string? from = null, int? limit = null);
Task<BalanceTransactionResponse> ListPrimaryBalanceTransactionsAsync(string? from = null, int? limit = null);
}
}
}
4 changes: 1 addition & 3 deletions src/Mollie.Api/Client/Abstract/ICaptureClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.Capture;
using Mollie.Api.Models.Capture.Request;
using Mollie.Api.Models.Capture.Response;
using Mollie.Api.Models.List.Response;
Expand All @@ -14,4 +12,4 @@ public interface ICaptureClient : IBaseMollieClient {
Task<ListResponse<CaptureResponse>> GetCapturesListAsync(UrlObjectLink<ListResponse<CaptureResponse>> url);
Task<CaptureResponse> CreateCapture(string paymentId, CaptureRequest captureRequest, bool testmode = false);
}
}
}
4 changes: 1 addition & 3 deletions src/Mollie.Api/Client/Abstract/IChargebacksClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Threading.Tasks;
using Mollie.Api.Models.Chargeback;
using Mollie.Api.Models.Chargeback.Response;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Url;

Expand All @@ -12,4 +10,4 @@ public interface IChargebacksClient : IBaseMollieClient {
Task<ListResponse<ChargebackResponse>> GetChargebacksListAsync(string? profileId = null, bool testmode = false);
Task<ListResponse<ChargebackResponse>> GetChargebacksListAsync(UrlObjectLink<ListResponse<ChargebackResponse>> url);
}
}
}
7 changes: 3 additions & 4 deletions src/Mollie.Api/Client/Abstract/IConnectClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Mollie.Api.Models.Connect;
using Mollie.Api.Models.Connect.Request;
using Mollie.Api.Models.Connect.Response;

Expand All @@ -25,8 +24,8 @@ public interface IConnectClient : IDisposable
/// merchant, even when it is not necessary
/// </param>
/// <param name="locale">
/// Allows you to preset the language to be used in the login / sign up / authorize flow if the merchant is not known by Mollie.
/// When this parameter is omitted, the browser language will be used instead.
/// Allows you to preset the language to be used in the login / sign up / authorize flow if the merchant is not known by Mollie.
/// When this parameter is omitted, the browser language will be used instead.
/// You can provide any ISO 15897 locale, but the authorize flow currently only supports the following languages:
/// Possible values: en_US nl_NL nl_BE fr_FR fr_BE de_DE es_ES it_IT
/// </param>
Expand Down Expand Up @@ -58,4 +57,4 @@ string GetAuthorizationUrl(
/// <returns></returns>
Task RevokeTokenAsync(RevokeTokenRequest request);
}
}
}
4 changes: 1 addition & 3 deletions src/Mollie.Api/Client/Abstract/ICustomerClient.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Threading.Tasks;
using Mollie.Api.Models.Customer;
using Mollie.Api.Models.Customer.Request;
using Mollie.Api.Models.Customer.Response;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Payment.Request;
using Mollie.Api.Models.Payment.Response;
Expand All @@ -20,4 +18,4 @@ public interface ICustomerClient : IBaseMollieClient {
Task<ListResponse<PaymentResponse>> GetCustomerPaymentListAsync(string customerId, string? from = null, int? limit = null, string? profileId = null, bool testmode = false);
Task<PaymentResponse> CreateCustomerPayment(string customerId, PaymentRequest paymentRequest);
}
}
}
4 changes: 1 addition & 3 deletions src/Mollie.Api/Client/Abstract/IInvoicesClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Threading.Tasks;
using Mollie.Api.Models.Invoice;
using Mollie.Api.Models.Invoice.Response;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Url;

Expand All @@ -13,4 +11,4 @@ Task<ListResponse<InvoiceResponse>> GetInvoiceListAsync(
string? reference = null, int? year = null, string? from = null, int? limit = null);
Task<ListResponse<InvoiceResponse>> GetInvoiceListAsync(UrlObjectLink<ListResponse<InvoiceResponse>> url);
}
}
}
4 changes: 1 addition & 3 deletions src/Mollie.Api/Client/Abstract/IMandateClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Mandate;
using Mollie.Api.Models.Mandate.Request;
using Mollie.Api.Models.Mandate.Response;
using Mollie.Api.Models.Url;
Expand All @@ -15,4 +13,4 @@ public interface IMandateClient : IBaseMollieClient {
Task<MandateResponse> GetMandateAsync(UrlObjectLink<MandateResponse> url);
Task RevokeMandate(string customerId, string mandateId, bool testmode = false);
}
}
}
5 changes: 1 addition & 4 deletions src/Mollie.Api/Client/Abstract/IOrderClient.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System.Threading.Tasks;
using Mollie.Api.Models;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Order;
using Mollie.Api.Models.Order.Request;
using Mollie.Api.Models.Order.Request.ManageOrderLines;
using Mollie.Api.Models.Order.Response;
using Mollie.Api.Models.Payment.Response;
using Mollie.Api.Models.Refund;
using Mollie.Api.Models.Refund.Response;
using Mollie.Api.Models.Url;

Expand All @@ -29,4 +26,4 @@ Task<ListResponse<OrderResponse>> GetOrderListAsync(
Task<ListResponse<RefundResponse>> GetOrderRefundListAsync(
string orderId, string? from = null, int? limit = null, bool testmode = false);
}
}
}
3 changes: 1 addition & 2 deletions src/Mollie.Api/Client/Abstract/IOrganizationsClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Organization;
using Mollie.Api.Models.Url;
Expand All @@ -12,4 +11,4 @@ public interface IOrganizationsClient : IBaseMollieClient {
Task<ListResponse<OrganizationResponse>> GetOrganizationsListAsync(UrlObjectLink<ListResponse<OrganizationResponse>> url);
Task<OrganizationResponse> GetOrganizationAsync(UrlObjectLink<OrganizationResponse> url);
}
}
}
29 changes: 14 additions & 15 deletions src/Mollie.Api/Client/Abstract/IPaymentClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Threading.Tasks;
using Mollie.Api.Models;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Payment.Request;
using Mollie.Api.Models.Payment.Response;
Expand All @@ -17,11 +16,11 @@ public interface IPaymentClient : IBaseMollieClient {
/// <param name="testmode">Oauth - Optional – Set this to true to get a payment made in test mode. If you omit this parameter, you can only retrieve live mode payments.</param>
/// <returns></returns>
Task<PaymentResponse> GetPaymentAsync(
string paymentId,
bool testmode = false,
bool includeQrCode = false,
bool includeRemainderDetails = false,
bool embedRefunds = false,
string paymentId,
bool testmode = false,
bool includeQrCode = false,
bool includeRemainderDetails = false,
bool embedRefunds = false,
bool embedChargebacks = false);

/// <summary>
Expand All @@ -40,19 +39,19 @@ Task<PaymentResponse> GetPaymentAsync(
/// <param name="testmode"></param>
/// <returns></returns>
Task<ListResponse<PaymentResponse>> GetPaymentListAsync(
string? from = null,
int? limit = null,
string? from = null,
int? limit = null,
string? profileId = null,
bool testmode = false,
bool includeQrCode = false,
bool embedRefunds = false,
bool testmode = false,
bool includeQrCode = false,
bool embedRefunds = false,
bool embedChargebacks = false,
SortDirection? sort = null);

Task<ListResponse<PaymentResponse>> GetPaymentListAsync(UrlObjectLink<ListResponse<PaymentResponse>> url);

Task<PaymentResponse> GetPaymentAsync(UrlObjectLink<PaymentResponse> url);

Task<PaymentResponse> UpdatePaymentAsync(string paymentId, PaymentUpdateRequest paymentUpdateRequest);
}
}
}
7 changes: 3 additions & 4 deletions src/Mollie.Api/Client/Abstract/IPaymentLinkClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.PaymentLink.Request;
using Mollie.Api.Models.PaymentLink.Response;
Expand All @@ -13,7 +12,7 @@ public interface IPaymentLinkClient : IBaseMollieClient {
/// Retrieve a single payment link object by its token.
/// </summary>
Task<PaymentLinkResponse> GetPaymentLinkAsync(string paymentLinkId, bool testmode = false);

/// <summary>
/// Retrieve all payment links created with the current payment link profile, ordered from newest to oldest.
/// </summary>
Expand All @@ -22,6 +21,6 @@ public interface IPaymentLinkClient : IBaseMollieClient {
/// <returns></returns>
Task<ListResponse<PaymentLinkResponse>> GetPaymentLinkListAsync(string? from = null, int? limit = null, string? profileId = null, bool testmode = false);
Task<ListResponse<PaymentLinkResponse>> GetPaymentLinkListAsync(UrlObjectLink<ListResponse<PaymentLinkResponse>> url);
Task<PaymentLinkResponse> GetPaymentLinkAsync(UrlObjectLink<PaymentLinkResponse> url);
Task<PaymentLinkResponse> GetPaymentLinkAsync(UrlObjectLink<PaymentLinkResponse> url);
}
}
}
48 changes: 23 additions & 25 deletions src/Mollie.Api/Client/Abstract/IPaymentMethodClient.cs
Original file line number Diff line number Diff line change
@@ -1,42 +1,40 @@
using System.Threading.Tasks;
using Mollie.Api.Models;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Payment;
using Mollie.Api.Models.PaymentMethod;
using Mollie.Api.Models.PaymentMethod.Response;
using Mollie.Api.Models.Url;

namespace Mollie.Api.Client.Abstract {
public interface IPaymentMethodClient : IBaseMollieClient {
Task<PaymentMethodResponse> GetPaymentMethodAsync(
string paymentMethod,
bool includeIssuers = false,
string? locale = null,
bool includePricing = false,
string? profileId = null,
bool testmode = false,
string paymentMethod,
bool includeIssuers = false,
string? locale = null,
bool includePricing = false,
string? profileId = null,
bool testmode = false,
string? currency = null);

Task<ListResponse<PaymentMethodResponse>> GetAllPaymentMethodListAsync(
string? locale = null,
Amount? amount = null,
bool includeIssuers = false,
bool includePricing = false,
string? locale = null,
Amount? amount = null,
bool includeIssuers = false,
bool includePricing = false,
string? profileId = null);

Task<ListResponse<PaymentMethodResponse>> GetPaymentMethodListAsync(
string? sequenceType = null,
string? locale = null,
Amount? amount = null,
bool includeIssuers = false,
bool includePricing = false,
string? profileId = null,
bool testmode = false,
Resource? resource = null,
string? billingCountry = null,
string? sequenceType = null,
string? locale = null,
Amount? amount = null,
bool includeIssuers = false,
bool includePricing = false,
string? profileId = null,
bool testmode = false,
Resource? resource = null,
string? billingCountry = null,
string? includeWallets = null);

Task<PaymentMethodResponse> GetPaymentMethodAsync(UrlObjectLink<PaymentMethodResponse> url);
}
}
}
4 changes: 1 addition & 3 deletions src/Mollie.Api/Client/Abstract/IPermissionsClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Permission;
using Mollie.Api.Models.Permission.Response;
using Mollie.Api.Models.Url;

Expand All @@ -11,4 +9,4 @@ public interface IPermissionsClient : IBaseMollieClient {
Task<PermissionResponse> GetPermissionAsync(UrlObjectLink<PermissionResponse> url);
Task<ListResponse<PermissionResponse>> GetPermissionListAsync();
}
}
}
4 changes: 1 addition & 3 deletions src/Mollie.Api/Client/Abstract/IProfileClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.PaymentMethod;
using Mollie.Api.Models.PaymentMethod.Response;
using Mollie.Api.Models.Profile.Request;
using Mollie.Api.Models.Profile.Response;
Expand All @@ -26,4 +24,4 @@ public interface IProfileClient : IBaseMollieClient {
Task DisableGiftCardIssuerAsync(string profileId, string issuer);
Task DisableGiftCardIssuerAsync(string issuer);
}
}
}
4 changes: 1 addition & 3 deletions src/Mollie.Api/Client/Abstract/IRefundClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Refund;
using Mollie.Api.Models.Refund.Request;
using Mollie.Api.Models.Refund.Response;
using Mollie.Api.Models.Url;
Expand All @@ -15,4 +13,4 @@ public interface IRefundClient : IBaseMollieClient {
Task<ListResponse<RefundResponse>> GetRefundListAsync(UrlObjectLink<ListResponse<RefundResponse>> url);
Task<RefundResponse> GetRefundAsync(UrlObjectLink<RefundResponse> url);
}
}
}
4 changes: 0 additions & 4 deletions src/Mollie.Api/Client/Abstract/ISettlementsClient.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
using System;
using System.Threading.Tasks;
using Mollie.Api.Models.Capture.Response;
using Mollie.Api.Models.Chargeback;
using Mollie.Api.Models.Chargeback.Response;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Payment.Response;
using Mollie.Api.Models.Refund;
using Mollie.Api.Models.Refund.Response;
using Mollie.Api.Models.Settlement;
using Mollie.Api.Models.Settlement.Response;
using Mollie.Api.Models.Url;

Expand Down
1 change: 0 additions & 1 deletion src/Mollie.Api/Client/Abstract/IShipmentClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Shipment.Request;
using Mollie.Api.Models.Shipment.Response;
Expand Down
4 changes: 1 addition & 3 deletions src/Mollie.Api/Client/Abstract/ISubscriptionClient.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Payment.Response;
using Mollie.Api.Models.Subscription;
using Mollie.Api.Models.Subscription.Request;
using Mollie.Api.Models.Subscription.Response;
using Mollie.Api.Models.Url;
Expand All @@ -19,4 +17,4 @@ public interface ISubscriptionClient : IBaseMollieClient {
Task<SubscriptionResponse> UpdateSubscriptionAsync(string customerId, string subscriptionId, SubscriptionUpdateRequest request);
Task<ListResponse<PaymentResponse>> GetSubscriptionPaymentListAsync(string customerId, string subscriptionId, string? from = null, int? limit = null, bool testmode = false);
}
}
}
2 changes: 0 additions & 2 deletions src/Mollie.Api/Client/Abstract/ITerminalClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Terminal;
using Mollie.Api.Models.Terminal.Response;
using Mollie.Api.Models.Url;

Expand Down
1 change: 0 additions & 1 deletion src/Mollie.Api/Client/BalanceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Mollie.Api.Models.Balance.Response;
using Mollie.Api.Models.Balance.Response.BalanceReport;
using Mollie.Api.Models.Balance.Response.BalanceTransaction;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Url;

Expand Down
Loading

0 comments on commit f041862

Please sign in to comment.