Table of Contents

Class PaymentCreditNoteRequest

Namespace
NuvTools.Payment.DTOs.Requests
Assembly
NuvTools.Payment.dll

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

InvoiceId string

The invoice being credited.

AmountMinor long

How much, in the currency's minor units; at most what was paid.

IdempotencyKey string

The caller's own key. A customer refunded twice is money gone, so it must never be reused across two different credit notes.

Memo string

Why, printed on the credit note.

Metadata IDictionary<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

long

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

string

InvoiceId

The invoice being credited.

public string InvoiceId { get; init; }

Property Value

string

Memo

Why, printed on the credit note.

public string? Memo { get; init; }

Property Value

string

Metadata

Stored on the credit note; the caller's own identifiers belong here.

public IDictionary<string, string>? Metadata { get; init; }

Property Value

IDictionary<string, string>