Skip to content

Commit

Permalink
Remove empty IResponseObject interface, as we don't need it
Browse files Browse the repository at this point in the history
  • Loading branch information
Viincenttt committed May 12, 2024
1 parent 8222ea3 commit ef73b55
Show file tree
Hide file tree
Showing 28 changed files with 27 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Balance.Response.BalanceReport {
public record BalanceReportResponse : IResponseObject {
public record BalanceReportResponse {
/// <summary>
/// Indicates the response contains a balance report object. Will always contain balance-report for this endpoint.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Balance/Response/BalanceResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Newtonsoft.Json.Converters;

namespace Mollie.Api.Models.Balance.Response {
public class BalanceResponse : IResponseObject {
public class BalanceResponse {
/// <summary>
/// Indicates the response contains a balance object. Will always contain balance for this endpoint.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Capture/Response/CaptureResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Mollie.Api.Models.Capture
{
public record CaptureResponse : IResponseObject {
public record CaptureResponse {
/// <summary>
/// Indicates the response contains a capture object. Will always contain capture for this endpoint.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Chargeback/ChargebackResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Chargeback {
public record ChargebackResponse : IResponseObject {
public record ChargebackResponse {
/// <summary>
/// The chargeback's unique identifier, for example chb_n9z0tp.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Connect/TokenResponse.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Connect {
public record TokenResponse : IResponseObject {
public record TokenResponse {
/// <summary>
/// The access token, with which you will be able to access the Mollie API on the merchant's behalf.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Customer/CustomerResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Newtonsoft.Json.Converters;

namespace Mollie.Api.Models.Customer {
public record CustomerResponse : IResponseObject {
public record CustomerResponse {
/// <summary>
/// Indicates the response contains a customer object. Will always contain customer for this endpoint.
/// </summary>
Expand Down
4 changes: 0 additions & 4 deletions src/Mollie.Api/Models/IResponseObject.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Invoice/InvoiceResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Invoice {
public record InvoiceResponse : IResponseObject {
public record InvoiceResponse {
/// <summary>
/// Indicates the response contains an invoice object. Will always contain invoice for this endpoint.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Issuer/IssuerResponse.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Mollie.Api.Models.Issuer {
public record IssuerResponse : IResponseObject {
public record IssuerResponse {
/// <summary>
/// Contains "issuer"
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/List/ListResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.List {
public record ListResponse<T> where T : IResponseObject{
public record ListResponse<T> where T : class {
public int Count { get; set; }

[JsonConverter(typeof(ListResponseConverter))]
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/List/ListResponseLinks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Mollie.Api.Models.List {
/// <summary>
/// Links to help navigate through the lists of objects, based on the given offset.
/// </summary>
public record ListResponseLinks<T> where T : IResponseObject {
public record ListResponseLinks<T> where T : class {
/// <summary>
/// The URL to the current set of payments.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Mandate/MandateResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Mandate {
public record MandateResponse : IResponseObject {
public record MandateResponse {
/// <summary>
/// Indicates the response contains a mandate object. Will always contain mandate for this endpoint.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Mollie.Api.Models.Order.Response {

public record OrderEmbeddedResponse : IResponseObject {
public record OrderEmbeddedResponse {

public IEnumerable<PaymentResponse>? Payments { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Order/Response/OrderResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Newtonsoft.Json.Converters;

namespace Mollie.Api.Models.Order {
public record OrderResponse : IResponseObject {
public record OrderResponse {
/// <summary>
/// Indicates the response contains an order object. Will always contain order for this endpoint.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Organization/OrganizationResponse.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Organization {
public record OrganizationResponse : IResponseObject {
public record OrganizationResponse {
/// <summary>
/// Indicates the response contains a organization object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Mollie.Api.Models.Refund;

namespace Mollie.Api.Models.Payment.Response {
public record PaymentEmbeddedResponse : IResponseObject {
public record PaymentEmbeddedResponse {
public IEnumerable<RefundResponse>? Refunds { get; set; }
public IEnumerable<ChargebackResponse>? Chargebacks { get; set; }
}
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Payment/Response/PaymentResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Payment.Response {
public record PaymentResponse : IResponseObject
public record PaymentResponse
{
/// <summary>
/// Indicates the response contains a payment object. Will always contain payment for this endpoint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Mollie.Api.Models.PaymentLink.Response
{
public record PaymentLinkResponse : IResponseObject
public record PaymentLinkResponse
{
/// <summary>
/// Indicates the response contains a payment object. Will always contain payment-link for this endpoint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Mollie.Api.Models.PaymentMethod.Pricing;

namespace Mollie.Api.Models.PaymentMethod {
public record PaymentMethodResponse : IResponseObject {
public record PaymentMethodResponse {
/// <summary>
/// Indicates the response contains a method object. Will always contain method for this endpoint.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Mollie.Api.Models.PaymentMethod.Pricing
{
public record FixedPricingResponse : IResponseObject {
public record FixedPricingResponse {
/// <summary>
/// The ISO 4217 currency code.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Mollie.Api.Models.PaymentMethod.Pricing
{
public record PricingResponse : IResponseObject {
public record PricingResponse {
/// <summary>
/// The area or product-type where the pricing is applied for, translated in the optional locale passed.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Permission/PermissionResponse.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Permission {
public record PermissionResponse : IResponseObject {
public record PermissionResponse {
/// <summary>
/// Indicates the response contains a permission object.
/// Possible values: permission
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Profile/Response/ProfileResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Profile.Response {
public record ProfileResponse : IResponseObject {
public record ProfileResponse {
/// <summary>
/// Indicates the response contains a profile object. Will always contain profile for this endpoint.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Refund/RefundResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Refund {
public record RefundResponse : IResponseObject {
public record RefundResponse {
/// <summary>
/// Indicates the response contains a refund object. Will always contain refund for this endpoint.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Settlement/SettlementResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Newtonsoft.Json;

namespace Mollie.Api.Models.Settlement {
public record SettlementResponse : IResponseObject {
public record SettlementResponse {
/// <summary>
/// Indicates the response contains a settlement object. Will always contain settlement for this endpoint.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Mollie.Api.Models.Shipment
{
public record ShipmentResponse : IResponseObject
public record ShipmentResponse
{
/// <summary>
/// Indicates the response contains a shipment object. Will always contain shipment for this endpoint.
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Subscription/SubscriptionResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Newtonsoft.Json.Converters;

namespace Mollie.Api.Models.Subscription {
public record SubscriptionResponse : IResponseObject {
public record SubscriptionResponse {
/// <summary>
/// Indicates the response contains a subscription object.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie.Api/Models/Terminal/TerminalResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Mollie.Api.Models.Terminal
/// <summary>
/// Full documentation for this class can be found at https://docs.mollie.com/reference/v2/terminals-api/overview
/// </summary>
public record TerminalResponse : IResponseObject
public record TerminalResponse
{
/// <summary>
/// The unique identifier used for referring to a terminal. Mollie assigns this identifier at terminal creation time.
Expand Down

0 comments on commit ef73b55

Please sign in to comment.