Skip to content

Commit

Permalink
Merge pull request #458 from nofrixion/MOOV-3884-External-Invoice-ID
Browse files Browse the repository at this point in the history
Added external invoice ID and provider properties to PayrunInvoice model
  • Loading branch information
sauravmaiti22 authored Nov 14, 2024
2 parents 0d07800 + 91da7f1 commit abce3d9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/NoFrixion.MoneyMoov/Models/Payruns/PayrunInvoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public string? Reference

[EmailAddressMultiple(ErrorMessage = PayrunConstants.REMMITANCE_EMAIL_ADDRESSES_ERROR_MESSAGE)]
public string? RemittanceEmail { get; set; }

public Guid? XeroInvoiceID { get; set; }

public IEnumerable<InvoicePayment>? InvoicePayments { get; set; }
Expand All @@ -94,6 +94,17 @@ public string? Reference
/// </summary>
[MaxLength(PAYRUN_INVOICE_PAYMENT_REFERENCE_MAX_LENGTH, ErrorMessage = "PaymentReference cannot be longer than 18 characters.")]
public string? PaymentReference { get; set; }

/// <summary>
/// If this invoice was created from an external invoice, this will be the ID of the external invoice.
/// </summary>
public string? ExternalInvoiceID { get; set; }

/// <summary>
/// If this invoice was created from an external invoice, this will be the provider of the external invoice.
/// E.g., "Xero", "QuickBooks", etc.
/// </summary>
public string? ExternalInvoiceProvider { get; set; }

public NoFrixionProblem Validate()
{
Expand Down

0 comments on commit abce3d9

Please sign in to comment.