Table of Contents

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

SourceDocumentId string

Caller's credit memo id; makes the credit idempotent.

Lines IReadOnlyList<CreditLineRequest>

Lines to credit; omit for a full credit of what remains.

Date DateOnly?

Credit memo date; tax is still reversed at the original invoice's tax date and rate.

InvoiceNumber string

Credit memo number.

Commit bool

Commit the credit (default) or only save it.

SourceSystem string

Calling system; defaults to the original document's.

Properties

Commit

Commit the credit (default) or only save it.

public bool Commit { get; init; }

Property Value

bool

Date

Credit memo date; tax is still reversed at the original invoice's tax date and rate.

public DateOnly? Date { get; init; }

Property Value

DateOnly?

InvoiceNumber

Credit memo number.

public string? InvoiceNumber { get; init; }

Property Value

string

Lines

Lines to credit; omit for a full credit of what remains.

public IReadOnlyList<CreditLineRequest>? Lines { get; init; }

Property Value

IReadOnlyList<CreditLineRequest>

SourceDocumentId

Caller's credit memo id; makes the credit idempotent.

public string SourceDocumentId { get; init; }

Property Value

string

SourceSystem

Calling system; defaults to the original document's.

public string? SourceSystem { get; init; }

Property Value

string