Skip to content

Commit

Permalink
WIP: Use ModelName -> Request/Response namespaces everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Viincenttt committed May 12, 2024
1 parent 16ac8e9 commit 0a9bf53
Show file tree
Hide file tree
Showing 98 changed files with 164 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

@using Mollie.WebApplication.Blazor.Models.Customer
@using Mollie.Api.Client
@using Mollie.Api.Models.Customer.Request

@inject ICustomerClient CustomerClient
@inject NavigationManager NavigationManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/customer/overview"
@using Mollie.Api.Models.Customer.Response
@using Mollie.Api.Models.List.Response

@inject ICustomerClient CustomerClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@page "/customer/{customerId}/mandate/create"
@using Mollie.WebApplication.Blazor.Models.Mandate
@using Mollie.Api.Client
@using Mollie.Api.Models.Mandate.Request

@inject IMandateClient MandateClient
@inject NavigationManager NavigationManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/customer/{customerId}/mandate/overview"
@using Mollie.Api.Models.List.Response
@using Mollie.Api.Models.Mandate.Response

@inject IMandateClient MandateClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@page "/order/overview"
@using Mollie.Api.Models.Order.Response
@using Mollie.Api.Models.List.Response

@inject IOrderClient OrderClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@page "/payment/overview"
@using Mollie.Api.Models.List.Response

@inject IPaymentClient PaymentClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@page "/payment-method/overview"
@using Mollie.Api.Models.List.Response

@inject IPaymentMethodClient PaymentMethodClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@page "/customer/{customerId}/subscription/overview"
@using Mollie.Api.Models.List.Response

@inject ISubscriptionClient SubscriptionClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@page "/terminal/overview"
@using Mollie.Api.Models.List.Response

@inject ITerminalClient TerminalClient

Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/IBalanceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
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;

namespace Mollie.Api.Client.Abstract {
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/ICaptureClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Mollie.Api.Models.Capture;
using Mollie.Api.Models.Capture.Request;
using Mollie.Api.Models.Capture.Response;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Url;

namespace Mollie.Api.Client.Abstract {
Expand Down
2 changes: 2 additions & 0 deletions src/Mollie.Api/Client/Abstract/IChargebacksClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
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;

namespace Mollie.Api.Client.Abstract {
Expand Down
2 changes: 2 additions & 0 deletions src/Mollie.Api/Client/Abstract/IConnectClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
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;

namespace Mollie.Api.Client.Abstract {
public interface IConnectClient : IDisposable
Expand Down
3 changes: 3 additions & 0 deletions src/Mollie.Api/Client/Abstract/ICustomerClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
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;
using Mollie.Api.Models.Url;
Expand Down
3 changes: 2 additions & 1 deletion src/Mollie.Api/Client/Abstract/IInvoicesClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
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;

namespace Mollie.Api.Client.Abstract {
Expand Down
3 changes: 3 additions & 0 deletions src/Mollie.Api/Client/Abstract/IMandateClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
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;

namespace Mollie.Api.Client.Abstract {
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/IOrderClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/IOrganizationsClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
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 Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/IPaymentClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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;
using Mollie.Api.Models.Url;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/IPaymentLinkClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
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;
using Mollie.Api.Models.Url;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/IPaymentMethodClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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.Url;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/IPermissionsClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Permission;
using Mollie.Api.Models.Url;

Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/IProfileClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.PaymentMethod;
using Mollie.Api.Models.Profile.Request;
using Mollie.Api.Models.Profile.Response;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/IRefundClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Refund;
using Mollie.Api.Models.Url;

Expand Down
2 changes: 2 additions & 0 deletions src/Mollie.Api/Client/Abstract/ISettlementsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
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.Settlement;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/IShipmentClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
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;
using Mollie.Api.Models.Url;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/ISubscriptionClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +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.Url;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/Abstract/ITerminalClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading.Tasks;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Terminal;
using Mollie.Api.Models.Url;

Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/BalanceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
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;

namespace Mollie.Api.Client {
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/CaptureClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Mollie.Api.Models.Capture.Request;
using Mollie.Api.Models.Capture.Response;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Url;

namespace Mollie.Api.Client
Expand Down
2 changes: 2 additions & 0 deletions src/Mollie.Api/Client/ChargebacksClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
using Mollie.Api.Client.Abstract;
using Mollie.Api.Extensions;
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;

namespace Mollie.Api.Client {
Expand Down
2 changes: 2 additions & 0 deletions src/Mollie.Api/Client/ConnectClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
using Mollie.Api.Client.Abstract;
using Mollie.Api.Extensions;
using Mollie.Api.Models.Connect;
using Mollie.Api.Models.Connect.Request;
using Mollie.Api.Models.Connect.Response;

namespace Mollie.Api.Client {
public class ConnectClient : BaseMollieClient, IConnectClient {
Expand Down
3 changes: 3 additions & 0 deletions src/Mollie.Api/Client/CustomerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
using Mollie.Api.Extensions;
using Mollie.Api.Models;
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;
using Mollie.Api.Models.Url;
Expand Down
2 changes: 2 additions & 0 deletions src/Mollie.Api/Client/InvoicesClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
using Mollie.Api.Client.Abstract;
using Mollie.Api.Extensions;
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;

namespace Mollie.Api.Client {
Expand Down
3 changes: 3 additions & 0 deletions src/Mollie.Api/Client/MandateClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
using Mollie.Api.Extensions;
using Mollie.Api.Models;
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;

namespace Mollie.Api.Client {
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/OrderClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Mollie.Api.Extensions;
using Mollie.Api.Models;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Order.Request;
using Mollie.Api.Models.Order.Request.ManageOrderLines;
using Mollie.Api.Models.Order.Response;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/OrganizationsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Threading.Tasks;
using Mollie.Api.Client.Abstract;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Organization;
using Mollie.Api.Models.Url;

Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/PaymentClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Mollie.Api.Extensions;
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;
using Mollie.Api.Models.Url;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/PaymentLinkClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Mollie.Api.Client.Abstract;
using Mollie.Api.Extensions;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.PaymentLink.Request;
using Mollie.Api.Models.PaymentLink.Response;
using Mollie.Api.Models.Url;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/PaymentMethodClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Mollie.Api.Extensions;
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.Url;
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Client/PermissionsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Threading.Tasks;
using Mollie.Api.Client.Abstract;
using Mollie.Api.Models.List;

using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Permission;
using Mollie.Api.Models.Url;

Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/ProfileClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Threading.Tasks;
using Mollie.Api.Client.Abstract;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.PaymentMethod;
using Mollie.Api.Models.Profile.Request;
using Mollie.Api.Models.Profile.Response;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/RefundClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Mollie.Api.Client.Abstract;
using Mollie.Api.Extensions;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Refund;
using Mollie.Api.Models.Url;

Expand Down
2 changes: 2 additions & 0 deletions src/Mollie.Api/Client/SettlementsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
using Mollie.Api.Client.Abstract;
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.Settlement;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/ShipmentClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Mollie.Api.Client.Abstract;
using Mollie.Api.Extensions;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Shipment.Request;
using Mollie.Api.Models.Shipment.Response;
using Mollie.Api.Models.Url;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/SubscriptionClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Mollie.Api.Extensions;
using Mollie.Api.Models;
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.Url;
Expand Down
1 change: 1 addition & 0 deletions src/Mollie.Api/Client/TerminalClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Mollie.Api.Client.Abstract;
using Mollie.Api.Extensions;
using Mollie.Api.Models.List;
using Mollie.Api.Models.List.Response;
using Mollie.Api.Models.Terminal;
using Mollie.Api.Models.Url;

Expand Down
Loading

0 comments on commit 0a9bf53

Please sign in to comment.