-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4be2b1
commit 882c998
Showing
21 changed files
with
86 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
using System; | ||
|
||
namespace Mollie.Api.Models.Invoice { | ||
namespace Mollie.Api.Models.Invoice { | ||
public class InvoiceLine { | ||
/// <summary> | ||
/// The administrative period (YYYY) on which the line should be booked. | ||
/// </summary> | ||
public string Period { get; set; } | ||
public required string Period { get; init; } | ||
|
||
/// <summary> | ||
/// Description of the product. | ||
/// </summary> | ||
public string Description { get; set; } | ||
public required string Description { get; init; } | ||
|
||
/// <summary> | ||
/// Number of products invoiced (usually number of payments). | ||
/// </summary> | ||
public int Count { get; set; } | ||
public required int Count { get; init; } | ||
|
||
/// <summary> | ||
/// Optional – VAT percentage rate that applies to this product. | ||
/// </summary> | ||
public decimal VatPercentage { get; set; } | ||
public required decimal VatPercentage { get; init; } | ||
|
||
/// <summary> | ||
/// Amount excluding VAT. | ||
/// </summary> | ||
public Amount Amount { get; set; } | ||
public required Amount Amount { get; init; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
namespace Mollie.Api.Models.Mandate | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Mollie.Api.Models.Mandate | ||
{ | ||
public class PayPalMandateRequest : MandateRequest | ||
{ | ||
public PayPalMandateRequest() { | ||
this.Method = Payment.PaymentMethod.PayPal; | ||
Method = Payment.PaymentMethod.PayPal; | ||
} | ||
|
||
/// <summary> | ||
/// Required For Paypal - The consumer's email address. | ||
/// </summary> | ||
public string ConsumerEmail { get; set; } | ||
public required string ConsumerEmail { get; init; } | ||
|
||
/// <summary> | ||
/// Required for `paypal` mandates - The billing agreement ID given by PayPal. | ||
/// </summary> | ||
public string PaypalBillingAgreementId { get; set; } | ||
public required string PaypalBillingAgreementId { get; init; } | ||
} | ||
} |
10 changes: 6 additions & 4 deletions
10
src/Mollie.Api/Models/Mandate/SepaDirectDebitMandateRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
namespace Mollie.Api.Models.Mandate | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Mollie.Api.Models.Mandate | ||
{ | ||
public class SepaDirectDebitMandateRequest : MandateRequest | ||
{ | ||
public SepaDirectDebitMandateRequest() { | ||
this.Method = Payment.PaymentMethod.DirectDebit; | ||
Method = Payment.PaymentMethod.DirectDebit; | ||
} | ||
|
||
/// <summary> | ||
/// Required for `directdebit` mandates - Consumer's IBAN account | ||
/// </summary> | ||
public string ConsumerAccount { get; set; } | ||
public required string ConsumerAccount { get; init; } | ||
|
||
/// <summary> | ||
/// Optional - The consumer's bank's BIC / SWIFT code. | ||
/// </summary> | ||
public string ConsumerBic { get; set; } | ||
public string? ConsumerBic { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.