diff --git a/src/Mollie.Api/Framework/Factories/PaymentResponseFactory.cs b/src/Mollie.Api/Framework/Factories/PaymentResponseFactory.cs index fad6b0f4..e83adc90 100644 --- a/src/Mollie.Api/Framework/Factories/PaymentResponseFactory.cs +++ b/src/Mollie.Api/Framework/Factories/PaymentResponseFactory.cs @@ -1,7 +1,7 @@ using System; using Mollie.Api.Models.Payment; using Mollie.Api.Models.Payment.Response; -using Mollie.Api.Models.Payment.Response.Specific; +using Mollie.Api.Models.Payment.Response.PaymentSpecificParameters; namespace Mollie.Api.Framework.Factories { internal class PaymentResponseFactory { diff --git a/src/Mollie.Api/Models/Payment/Request/ApplePayPaymentRequest.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/ApplePayPaymentRequest.cs similarity index 87% rename from src/Mollie.Api/Models/Payment/Request/ApplePayPaymentRequest.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/ApplePayPaymentRequest.cs index 3e13dcce..e81d3395 100644 --- a/src/Mollie.Api/Models/Payment/Request/ApplePayPaymentRequest.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/ApplePayPaymentRequest.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Request { +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public record ApplePayPaymentRequest : PaymentRequest { public ApplePayPaymentRequest() { diff --git a/src/Mollie.Api/Models/Payment/Request/BankTransferPaymentRequest.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/BankTransferPaymentRequest.cs similarity index 92% rename from src/Mollie.Api/Models/Payment/Request/BankTransferPaymentRequest.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/BankTransferPaymentRequest.cs index c4c696ed..d4959b54 100644 --- a/src/Mollie.Api/Models/Payment/Request/BankTransferPaymentRequest.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/BankTransferPaymentRequest.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Request { +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public record BankTransferPaymentRequest : PaymentRequest { public BankTransferPaymentRequest() { Method = PaymentMethod.BankTransfer; diff --git a/src/Mollie.Api/Models/Payment/Request/CreditCardPaymentRequest.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/CreditCardPaymentRequest.cs similarity index 93% rename from src/Mollie.Api/Models/Payment/Request/CreditCardPaymentRequest.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/CreditCardPaymentRequest.cs index e0a14b57..b60af7d2 100644 --- a/src/Mollie.Api/Models/Payment/Request/CreditCardPaymentRequest.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/CreditCardPaymentRequest.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Request { +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public record CreditCardPaymentRequest : PaymentRequest { public CreditCardPaymentRequest() { Method = PaymentMethod.CreditCard; diff --git a/src/Mollie.Api/Models/Payment/Request/GiftcardPaymentRequest.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/GiftcardPaymentRequest.cs similarity index 92% rename from src/Mollie.Api/Models/Payment/Request/GiftcardPaymentRequest.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/GiftcardPaymentRequest.cs index 9ac9ce24..235a21a1 100644 --- a/src/Mollie.Api/Models/Payment/Request/GiftcardPaymentRequest.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/GiftcardPaymentRequest.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Request { +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public record GiftcardPaymentRequest : PaymentRequest { public GiftcardPaymentRequest() { Method = PaymentMethod.GiftCard; diff --git a/src/Mollie.Api/Models/Payment/Request/IDealPaymentRequest.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/IDealPaymentRequest.cs similarity index 85% rename from src/Mollie.Api/Models/Payment/Request/IDealPaymentRequest.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/IDealPaymentRequest.cs index 88b10afc..a6926a2e 100644 --- a/src/Mollie.Api/Models/Payment/Request/IDealPaymentRequest.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/IDealPaymentRequest.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Request { +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public record IdealPaymentRequest : PaymentRequest { public IdealPaymentRequest() { Method = PaymentMethod.Ideal; diff --git a/src/Mollie.Api/Models/Payment/Request/KbcIssuer.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/KbcIssuer.cs similarity index 61% rename from src/Mollie.Api/Models/Payment/Request/KbcIssuer.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/KbcIssuer.cs index 8f40b4ba..3558b78e 100644 --- a/src/Mollie.Api/Models/Payment/Request/KbcIssuer.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/KbcIssuer.cs @@ -1,6 +1,6 @@ -namespace Mollie.Api.Models.Payment.Request { +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public static class KbcIssuer { public const string Kbc = "kbc"; public const string Cbc = "cbc"; } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Request/KbcPaymentRequest.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/KbcPaymentRequest.cs similarity index 87% rename from src/Mollie.Api/Models/Payment/Request/KbcPaymentRequest.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/KbcPaymentRequest.cs index 41b44241..092a7375 100644 --- a/src/Mollie.Api/Models/Payment/Request/KbcPaymentRequest.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/KbcPaymentRequest.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Request { +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public record KbcPaymentRequest : PaymentRequest { public KbcPaymentRequest() { Method = PaymentMethod.Kbc; diff --git a/src/Mollie.Api/Models/Payment/Request/PayPalPaymentRequest.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/PayPalPaymentRequest.cs similarity index 94% rename from src/Mollie.Api/Models/Payment/Request/PayPalPaymentRequest.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/PayPalPaymentRequest.cs index d20e3daf..204f19e1 100644 --- a/src/Mollie.Api/Models/Payment/Request/PayPalPaymentRequest.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/PayPalPaymentRequest.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Request { +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public record PayPalPaymentRequest : PaymentRequest { public PayPalPaymentRequest() { Method = PaymentMethod.PayPal; diff --git a/src/Mollie.Api/Models/Payment/Request/PaySafeCardPaymentRequest.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/PaySafeCardPaymentRequest.cs similarity index 83% rename from src/Mollie.Api/Models/Payment/Request/PaySafeCardPaymentRequest.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/PaySafeCardPaymentRequest.cs index 949b526f..cc596b2e 100644 --- a/src/Mollie.Api/Models/Payment/Request/PaySafeCardPaymentRequest.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/PaySafeCardPaymentRequest.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Request { +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public record PaySafeCardPaymentRequest : PaymentRequest { public PaySafeCardPaymentRequest() { Method = PaymentMethod.PaySafeCard; diff --git a/src/Mollie.Api/Models/Payment/Request/Przelewy24PaymentRequest.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/Przelewy24PaymentRequest.cs similarity index 83% rename from src/Mollie.Api/Models/Payment/Request/Przelewy24PaymentRequest.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/Przelewy24PaymentRequest.cs index 95445a08..b9c4a734 100644 --- a/src/Mollie.Api/Models/Payment/Request/Przelewy24PaymentRequest.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/Przelewy24PaymentRequest.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Request +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public record Przelewy24PaymentRequest : PaymentRequest { diff --git a/src/Mollie.Api/Models/Payment/Request/SepaDirectDebitRequest.cs b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/SepaDirectDebitRequest.cs similarity index 86% rename from src/Mollie.Api/Models/Payment/Request/SepaDirectDebitRequest.cs rename to src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/SepaDirectDebitRequest.cs index 0851a753..77a0ff0e 100644 --- a/src/Mollie.Api/Models/Payment/Request/SepaDirectDebitRequest.cs +++ b/src/Mollie.Api/Models/Payment/Request/PaymentSpecificParameters/SepaDirectDebitRequest.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Request { +namespace Mollie.Api.Models.Payment.Request.PaymentSpecificParameters { public record SepaDirectDebitRequest : PaymentRequest { public SepaDirectDebitRequest() { Method = PaymentMethod.DirectDebit; diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/BancontactPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/BancontactPaymentResponse.cs similarity index 86% rename from src/Mollie.Api/Models/Payment/Response/Specific/BancontactPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/BancontactPaymentResponse.cs index 53d1e7cf..e5b96b2d 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/BancontactPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/BancontactPaymentResponse.cs @@ -1,6 +1,6 @@ using System; -namespace Mollie.Api.Models.Payment.Response.Specific { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record BancontactPaymentResponse : PaymentResponse { public required BancontactPaymentResponseDetails Details { get; init; } } @@ -12,21 +12,21 @@ public record BancontactPaymentResponseDetails { public string? CardNumber { get; set; } /// - /// Only available if the payment is completed - Unique alphanumeric representation of card, usable for - /// identifying returning customers. This field is deprecated as of November 28th, 2019. The fingerprint - /// is now unique per transaction what makes it not usefull anymore for identifying returning customers. + /// Only available if the payment is completed - Unique alphanumeric representation of card, usable for + /// identifying returning customers. This field is deprecated as of November 28th, 2019. The fingerprint + /// is now unique per transaction what makes it not usefull anymore for identifying returning customers. /// Use the consumerAccount field instead. /// - [Obsolete(@"This field is deprecated as of November 28th, 2019. The fingerprint is now unique per + [Obsolete(@"This field is deprecated as of November 28th, 2019. The fingerprint is now unique per transaction what makes it not usefull anymore for identifying returning customers. Use the consumerAccount field instead.")] public string? CardFingerprint { get; set; } /// - /// Only available if requested during payment creation - The QR code that can be scanned by the mobile + /// Only available if requested during payment creation - The QR code that can be scanned by the mobile /// Bancontact application. This enables the desktop to mobile feature. /// public QrCode? QrCode { get; set; } - + /// /// Only available if the payment is completed – The consumer’s bank account. This may be an IBAN, or it may be a domestic account number. /// @@ -41,10 +41,10 @@ public record BancontactPaymentResponseDetails { /// Only available if the payment is completed – The consumer’s bank’s BIC / SWIFT code. /// public string? ConsumerBic { get; set; } - + /// /// The reason why the payment did not succeed. Only available when there's a reason known. /// public string? FailureReason { get; set; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/BankTransferPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/BankTransferPaymentResponse.cs similarity index 95% rename from src/Mollie.Api/Models/Payment/Response/Specific/BankTransferPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/BankTransferPaymentResponse.cs index 38ff56c2..857f8544 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/BankTransferPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/BankTransferPaymentResponse.cs @@ -1,7 +1,7 @@ using Mollie.Api.Models.Url; using Newtonsoft.Json; -namespace Mollie.Api.Models.Payment.Response.Specific { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record BankTransferPaymentResponse : PaymentResponse { public required BankTransferPaymentResponseDetails Details { get; init; } @@ -51,7 +51,7 @@ public record BankTransferPaymentResponseDetails { public string? ConsumerBic { get; set; } /// - /// Only available if filled out in the API or by the consumer � The email address which the consumer asked the payment + /// Only available if filled out in the API or by the consumer � The email address which the consumer asked the payment /// instructions to be sent to. /// public string? BillingEmail { get; set; } @@ -69,9 +69,9 @@ public record BankTransferPaymentResponseLinks : PaymentResponseLinks { public required UrlLink Status { get; init; } /// - /// A link to a hosted payment page where your customer can finish the payment using an alternative payment method also + /// A link to a hosted payment page where your customer can finish the payment using an alternative payment method also /// activated on your website profile. /// public required UrlLink PayOnline { get; init; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/BelfiusPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/BelfiusPaymentResponse.cs similarity index 90% rename from src/Mollie.Api/Models/Payment/Response/Specific/BelfiusPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/BelfiusPaymentResponse.cs index 40fd95ba..00790c3a 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/BelfiusPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/BelfiusPaymentResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response.Specific { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record BelfiusPaymentResponse : PaymentResponse { public required BelfiusPaymentResponseDetails Details { get; init; } } @@ -19,4 +19,4 @@ public record BelfiusPaymentResponseDetails { /// public string? ConsumerBic { get; set; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/CreditCardPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/CreditCardPaymentResponse.cs similarity index 95% rename from src/Mollie.Api/Models/Payment/Response/Specific/CreditCardPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/CreditCardPaymentResponse.cs index e99e11a1..25325239 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/CreditCardPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/CreditCardPaymentResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record CreditCardPaymentResponse : PaymentResponse { /// /// An object with credit card details. @@ -18,13 +18,13 @@ public record CreditCardPaymentResponseDetails { public string? CardNumber { get; set; } /// - /// Only available if the payment has been completed - Unique alphanumeric representation of card, usable for identifying + /// Only available if the payment has been completed - Unique alphanumeric representation of card, usable for identifying /// returning customers. /// public string? CardFingerprint { get; set; } /// - /// Not always available. – The card's target audience. See the Mollie.Api.Models.Payment.Response.CreditCardAudience + /// Not always available. – The card's target audience. See the Mollie.Api.Models.Payment.Response.CreditCardAudience /// class for a full list of known values /// public string? CardAudience { get; set; } @@ -41,20 +41,20 @@ public record CreditCardPaymentResponseDetails { public string? CardCountryCode { get; set; } /// - /// Only available if the payment succeeded. – The payment's security type. See the + /// Only available if the payment succeeded. – The payment's security type. See the /// Mollie.Api.Models.Payment.Response.CreditCardSecurity class for a full list of known values /// public string? CardSecurity { get; set; } /// /// Only available if the payment succeeded. – The fee region for the payment. See your credit card addendum for - /// details. intra-eu for consumer cards from the EU, and other for all other cards. See the + /// details. intra-eu for consumer cards from the EU, and other for all other cards. See the /// Mollie.Api.Models.Payment.Response.CreditCardFeeRegion class for a full list of known values /// public string? FeeRegion { get; set; } /// - /// Only available for failed payments. Contains a failure reason code. See the + /// Only available for failed payments. Contains a failure reason code. See the /// Mollie.Api.Models.Payment.Response.CreditCardFailureReason class for a full list of known values /// public string? FailureReason { get; set; } @@ -87,7 +87,7 @@ public static class CreditCardSecurity { } /// - /// Only available if the payment has been completed – The fee region for the payment: intra-eu for consumer cards from the EU, and + /// Only available if the payment has been completed – The fee region for the payment: intra-eu for consumer cards from the EU, and /// other for all other cards. /// public static class CreditCardFeeRegion { @@ -124,7 +124,7 @@ public static class CreditCardFailureReason { /// /// The card's label. Note that not all labels can be acquired through Mollie. - /// + /// public static class CreditCardLabel { public const string AmericanExpress = "American Express"; public const string CartaSi = "Carta si"; @@ -139,4 +139,4 @@ public static class CreditCardLabel { public const string Unionpay = nameof(Unionpay); public const string Visa = nameof(Visa); } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/EpsPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/EpsPaymentResponse.cs similarity index 91% rename from src/Mollie.Api/Models/Payment/Response/Specific/EpsPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/EpsPaymentResponse.cs index a662e5d9..232569c5 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/EpsPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/EpsPaymentResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record EpsPaymentResponse : PaymentResponse { /// /// An object with the consumer bank account details. @@ -22,4 +22,4 @@ public record EpsPaymentResponseDetails { /// public string? ConsumerBic { get; set; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/GiftcardPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/GiftcardPaymentResponse.cs similarity index 90% rename from src/Mollie.Api/Models/Payment/Response/Specific/GiftcardPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/GiftcardPaymentResponse.cs index 22e2ad2b..dcfc9cb5 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/GiftcardPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/GiftcardPaymentResponse.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Mollie.Api.Models.Payment.Response.Specific { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record GiftcardPaymentResponse : PaymentResponse { /// /// An object with payment details. @@ -10,7 +10,7 @@ public record GiftcardPaymentResponse : PaymentResponse { public record GiftcardPaymentResponseDetails { /// - /// The voucher number, with the last four digits masked. When multiple gift cards are used, this is the first voucher + /// The voucher number, with the last four digits masked. When multiple gift cards are used, this is the first voucher /// number. Example: 606436353088147****. /// public string? VoucherNumber { get; set; } @@ -21,13 +21,13 @@ public record GiftcardPaymentResponseDetails { public List? Giftcards { get; set; } /// - /// Only available if another payment method was used to pay the remainder amount – The amount that was paid with + /// Only available if another payment method was used to pay the remainder amount – The amount that was paid with /// another payment method for the remainder amount. /// public Amount? RemainderAmount { get; set; } /// - /// Only available if another payment method was used to pay the remainder amount – The payment method that was used to + /// Only available if another payment method was used to pay the remainder amount – The payment method that was used to /// pay the remainder amount. /// public string? RemainderMethod { get; set; } @@ -49,4 +49,4 @@ public record Giftcard { /// public required string VoucherNumber { get; init; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/GiropayPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/GiropayPaymentResponse.cs similarity index 91% rename from src/Mollie.Api/Models/Payment/Response/Specific/GiropayPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/GiropayPaymentResponse.cs index e26b89ad..01604036 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/GiropayPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/GiropayPaymentResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record GiropayPaymentResponse : PaymentResponse { /// /// An object with the consumer bank account details. @@ -22,4 +22,4 @@ public record GiropayPaymentResponseDetails { /// public string? ConsumerBic { get; set; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/IdealPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/IdealPaymentResponse.cs similarity index 93% rename from src/Mollie.Api/Models/Payment/Response/Specific/IdealPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/IdealPaymentResponse.cs index f7aff02a..68a36ac2 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/IdealPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/IdealPaymentResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record IdealPaymentResponse : PaymentResponse { /// /// An object with the consumer bank account details. @@ -27,4 +27,4 @@ public record IdealPaymentResponseDetails { /// public QrCode? QrCode { get; set; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/IngHomePayPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/IngHomePayPaymentResponse.cs similarity index 91% rename from src/Mollie.Api/Models/Payment/Response/Specific/IngHomePayPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/IngHomePayPaymentResponse.cs index 74e17aab..2245c24c 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/IngHomePayPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/IngHomePayPaymentResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response.Specific { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record IngHomePayPaymentResponse : PaymentResponse { /// /// An object with payment details. @@ -22,4 +22,4 @@ public record IngHomePayPaymentResponseDetails { /// public string? ConsumerBic { get; set; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/KbcPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/KbcPaymentResponse.cs similarity index 90% rename from src/Mollie.Api/Models/Payment/Response/Specific/KbcPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/KbcPaymentResponse.cs index ad94cfba..5c5f7670 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/KbcPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/KbcPaymentResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response.Specific { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record KbcPaymentResponse : PaymentResponse { public required KbcPaymentResponseDetails Details { get; init; } } @@ -19,4 +19,4 @@ public record KbcPaymentResponseDetails { /// public string? ConsumerBic { get; set; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/PayPalPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/PayPalPaymentResponse.cs similarity index 91% rename from src/Mollie.Api/Models/Payment/Response/Specific/PayPalPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/PayPalPaymentResponse.cs index e3dd55d3..336ad794 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/PayPalPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/PayPalPaymentResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record PayPalPaymentResponse : PaymentResponse { public PayPalPaymentResponseDetails? Details { get; set; } } @@ -25,7 +25,7 @@ public record PayPalPaymentResponseDetails { public string? PaypalPayerId { get; set; } /// - /// Indicates if the payment is eligible for PayPal's Seller Protection. This parameter is omitted if we did not + /// Indicates if the payment is eligible for PayPal's Seller Protection. This parameter is omitted if we did not /// received the information from PayPal. See the Mollie.Api.Models.Payment.Response.PayPalSellerProtection class /// for a full list of known values. /// @@ -35,9 +35,9 @@ public record PayPalPaymentResponseDetails { /// The shipping address details. /// public AddressObject? ShippingAddress { get; set; } - + /// - /// The amount of fee PayPal will charge for this transaction. This field is omitted if PayPal will not charge a fee + /// The amount of fee PayPal will charge for this transaction. This field is omitted if PayPal will not charge a fee /// for this transaction. /// public Amount? PaypalFee { get; set; } @@ -52,4 +52,4 @@ public static class PayPalSellerProtection { public const string None = nameof(None); public const string ActiveFraudControlUnauthPremiumEligible = "Active Fraud Control - Unauth Premium Eligible"; } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/PaySafeCardPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/PaySafeCardPaymentResponse.cs similarity index 83% rename from src/Mollie.Api/Models/Payment/Response/Specific/PaySafeCardPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/PaySafeCardPaymentResponse.cs index db92f725..532edcd1 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/PaySafeCardPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/PaySafeCardPaymentResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record PaySafeCardPaymentResponse : PaymentResponse { public required PaySafeCardPaymentResponseDetails Details { get; init; } } @@ -9,4 +9,4 @@ public record PaySafeCardPaymentResponseDetails { /// public string? CustomerReference { get; set; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/PointOfSalePaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/PointOfSalePaymentResponse.cs similarity index 94% rename from src/Mollie.Api/Models/Payment/Response/Specific/PointOfSalePaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/PointOfSalePaymentResponse.cs index 728f6037..2c05bcd5 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/PointOfSalePaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/PointOfSalePaymentResponse.cs @@ -1,35 +1,35 @@ -namespace Mollie.Api.Models.Payment.Response.Specific { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record PointOfSalePaymentResponse : PaymentResponse { /// /// An object with payment details. /// public required PointOfSalePaymentResponseDetails Details { get; set; } } - + public record PointOfSalePaymentResponseDetails { /// /// The identifier referring to the terminal this payment was created for. For example, term_utGtYu756h. /// public required string TerminalId { get; set; } - + /// /// Only available if the payment has been completed - The last four digits of the card number. /// public string? CardNumber { get; set; } - + /// /// Only available if the payment has been completed - Unique alphanumeric representation of card, usable for /// identifying returning customers. /// public string? CardFingerprint { get; set; } - + /// /// Only available if the payment has been completed and if the data is available - The card’s target audience. /// /// Check the Mollie.Api.Models.Payment.Response.CreditCardAudience class for a full list of known values. /// public string? CardAudience { get; set; } - + /// /// Only available if the payment has been completed - The card’s label. Note that not all labels can be /// processed through Mollie. @@ -37,11 +37,11 @@ public record PointOfSalePaymentResponseDetails { /// Check the Mollie.Api.Models.Payment.Response.CreditCardLabel class for a full list of known values. /// public string? CardLabel { get; set; } - + /// /// Only available if the payment has been completed - The ISO 3166-1 alpha-2 country code of the country /// the card was issued in. For example: BE. /// public string? CardCountryCode { get; set; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/SepaDirectDebitResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/SepaDirectDebitResponse.cs similarity index 97% rename from src/Mollie.Api/Models/Payment/Response/Specific/SepaDirectDebitResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/SepaDirectDebitResponse.cs index e5d63a8c..cb83f446 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/SepaDirectDebitResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/SepaDirectDebitResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response.Specific { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record SepaDirectDebitResponse : PaymentResponse { public required SepaDirectDebitResponseDetails Details { get; init; } } @@ -74,4 +74,4 @@ public record SepaDirectDebitResponseDetails { public string? FileReference { get; set; } } -} \ No newline at end of file +} diff --git a/src/Mollie.Api/Models/Payment/Response/Specific/SofortPaymentResponse.cs b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/SofortPaymentResponse.cs similarity index 90% rename from src/Mollie.Api/Models/Payment/Response/Specific/SofortPaymentResponse.cs rename to src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/SofortPaymentResponse.cs index 17c3f7ae..53cf1579 100644 --- a/src/Mollie.Api/Models/Payment/Response/Specific/SofortPaymentResponse.cs +++ b/src/Mollie.Api/Models/Payment/Response/PaymentSpecificParameters/SofortPaymentResponse.cs @@ -1,4 +1,4 @@ -namespace Mollie.Api.Models.Payment.Response { +namespace Mollie.Api.Models.Payment.Response.PaymentSpecificParameters { public record SofortPaymentResponse : PaymentResponse { public required SofortPaymentResponseDetails Details { get; init; } } @@ -19,4 +19,4 @@ public record SofortPaymentResponseDetails { /// public string? ConsumerBic { get; set; } } -} \ No newline at end of file +} diff --git a/tests/Mollie.Tests.Integration/Api/OrderTests.cs b/tests/Mollie.Tests.Integration/Api/OrderTests.cs index ce5920a9..08efcebd 100644 --- a/tests/Mollie.Tests.Integration/Api/OrderTests.cs +++ b/tests/Mollie.Tests.Integration/Api/OrderTests.cs @@ -296,7 +296,7 @@ public async Task ManageOrderLinesAsync_AddOperation_OrderLineIsAdded() { updatedOrder.Lines.Should().HaveCount(2); var addedOrderLineRequest = updatedOrder.Lines.SingleOrDefault(line => line.Name == newOrderLineRequest.Name); addedOrderLineRequest.Should().NotBeNull(); - addedOrderLineRequest.Type.Should().Be(newOrderLineRequest.Type); + addedOrderLineRequest!.Type.Should().Be(newOrderLineRequest.Type); addedOrderLineRequest.Quantity.Should().Be(newOrderLineRequest.Quantity); addedOrderLineRequest.UnitPrice.Should().Be(newOrderLineRequest.UnitPrice); addedOrderLineRequest.TotalAmount.Should().Be(newOrderLineRequest.TotalAmount); diff --git a/tests/Mollie.Tests.Integration/Api/PaymentTests.cs b/tests/Mollie.Tests.Integration/Api/PaymentTests.cs index c4a74d33..c6802550 100644 --- a/tests/Mollie.Tests.Integration/Api/PaymentTests.cs +++ b/tests/Mollie.Tests.Integration/Api/PaymentTests.cs @@ -9,7 +9,6 @@ using Mollie.Api.Models.Payment; using Mollie.Api.Models.Payment.Request; using Mollie.Api.Models.Payment.Response; -using Mollie.Api.Models.Payment.Response.Specific; using Mollie.Tests.Integration.Framework; using System.Collections.Generic; using System.Linq; @@ -18,6 +17,8 @@ using Mollie.Api.Models.Customer.Response; using Mollie.Api.Models.List.Response; using Mollie.Api.Models.Mandate.Response; +using Mollie.Api.Models.Payment.Request.PaymentSpecificParameters; +using Mollie.Api.Models.Payment.Response.PaymentSpecificParameters; using Mollie.Api.Models.Terminal.Response; namespace Mollie.Tests.Integration.Api; diff --git a/tests/Mollie.Tests.Integration/Api/RefundTests.cs b/tests/Mollie.Tests.Integration/Api/RefundTests.cs index e856a973..dde3c3a1 100644 --- a/tests/Mollie.Tests.Integration/Api/RefundTests.cs +++ b/tests/Mollie.Tests.Integration/Api/RefundTests.cs @@ -7,6 +7,7 @@ using Mollie.Api.Models; using Mollie.Api.Models.List.Response; using Mollie.Api.Models.Payment.Request; +using Mollie.Api.Models.Payment.Request.PaymentSpecificParameters; using Mollie.Api.Models.Payment.Response; using Mollie.Api.Models.Refund.Request; using Mollie.Api.Models.Refund.Response; diff --git a/tests/Mollie.Tests.Unit/Client/PaymentClientTests.cs b/tests/Mollie.Tests.Unit/Client/PaymentClientTests.cs index 416ad8aa..8e6232cc 100644 --- a/tests/Mollie.Tests.Unit/Client/PaymentClientTests.cs +++ b/tests/Mollie.Tests.Unit/Client/PaymentClientTests.cs @@ -10,7 +10,8 @@ using System.Threading.Tasks; using FluentAssertions; using FluentAssertions.Extensions; -using Mollie.Api.Models.Payment.Response.Specific; +using Mollie.Api.Models.Payment.Request.PaymentSpecificParameters; +using Mollie.Api.Models.Payment.Response.PaymentSpecificParameters; using Xunit; namespace Mollie.Tests.Unit.Client; diff --git a/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs b/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs index 1d14141c..a8c08488 100644 --- a/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs +++ b/tests/Mollie.Tests.Unit/Framework/Factories/PaymentResponseFactoryTests.cs @@ -3,7 +3,7 @@ using Mollie.Api.Framework.Factories; using Mollie.Api.Models.Payment; using Mollie.Api.Models.Payment.Response; -using Mollie.Api.Models.Payment.Response.Specific; +using Mollie.Api.Models.Payment.Response.PaymentSpecificParameters; using Xunit; namespace Mollie.Tests.Unit.Framework.Factories {