Class CreateCreditRequest
- Namespace
- Integrations.Contracts.Tax
- Assembly
- Integrations.Contracts.dll
Credit memo against a committed document. Omit Lines to credit everything not yet credited.
public sealed record CreateCreditRequest : IEquatable<CreateCreditRequest>
- Inheritance
-
CreateCreditRequest
- Implements
- Inherited Members
Constructors
CreateCreditRequest(string, IReadOnlyList<CreditLineRequest>?, DateOnly?, string?, bool, string?)
Credit memo against a committed document. Omit Lines to credit everything not yet credited.
public CreateCreditRequest(string SourceDocumentId, IReadOnlyList<CreditLineRequest>? Lines = null, DateOnly? Date = null, string? InvoiceNumber = null, bool Commit = true, string? SourceSystem = null)
Parameters
SourceDocumentIdstringCaller's credit memo id; makes the credit idempotent.
LinesIReadOnlyList<CreditLineRequest>Lines to credit; omit for a full credit of what remains.
DateDateOnly?Credit memo date; tax is still reversed at the original invoice's tax date and rate.
InvoiceNumberstringCredit memo number.
CommitboolCommit the credit (default) or only save it.
SourceSystemstringCalling system; defaults to the original document's.
Properties
Commit
Commit the credit (default) or only save it.
public bool Commit { get; init; }
Property Value
Date
Credit memo date; tax is still reversed at the original invoice's tax date and rate.
public DateOnly? Date { get; init; }
Property Value
InvoiceNumber
Credit memo number.
public string? InvoiceNumber { get; init; }
Property Value
Lines
Lines to credit; omit for a full credit of what remains.
public IReadOnlyList<CreditLineRequest>? Lines { get; init; }
Property Value
SourceDocumentId
Caller's credit memo id; makes the credit idempotent.
public string SourceDocumentId { get; init; }
Property Value
SourceSystem
Calling system; defaults to the original document's.
public string? SourceSystem { get; init; }