Class PaymentCreditNoteRequest
Part or all of a paid invoice given back to the customer, with the money refunded.
public record PaymentCreditNoteRequest : IEquatable<PaymentCreditNoteRequest>
- Inheritance
-
PaymentCreditNoteRequest
- Implements
- Inherited Members
Constructors
PaymentCreditNoteRequest(string, long, string, string?, IDictionary<string, string>?)
Part or all of a paid invoice given back to the customer, with the money refunded.
public PaymentCreditNoteRequest(string InvoiceId, long AmountMinor, string IdempotencyKey, string? Memo = null, IDictionary<string, string>? Metadata = null)
Parameters
InvoiceIdstringThe invoice being credited.
AmountMinorlongHow much, in the currency's minor units; at most what was paid.
IdempotencyKeystringThe caller's own key. A customer refunded twice is money gone, so it must never be reused across two different credit notes.
MemostringWhy, printed on the credit note.
MetadataIDictionary<string, string>Stored on the credit note; the caller's own identifiers belong here.
Properties
AmountMinor
How much, in the currency's minor units; at most what was paid.
public long AmountMinor { get; init; }
Property Value
IdempotencyKey
The caller's own key. A customer refunded twice is money gone, so it must never be reused across two different credit notes.
public string IdempotencyKey { get; init; }
Property Value
InvoiceId
The invoice being credited.
public string InvoiceId { get; init; }
Property Value
Memo
Why, printed on the credit note.
public string? Memo { get; init; }
Property Value
Metadata
Stored on the credit note; the caller's own identifiers belong here.
public IDictionary<string, string>? Metadata { get; init; }