Class PaymentInvoiceDTO
An invoice as the provider holds it now.
public record PaymentInvoiceDTO : IEquatable<PaymentInvoiceDTO>
- Inheritance
-
PaymentInvoiceDTO
- Implements
- Inherited Members
Remarks
The document itself — its number, its PDF, its hosted page — is the provider's. A caller keeps a copy of what it shows in a list and refreshes it when an event about the invoice arrives.
Constructors
PaymentInvoiceDTO(string, string, string?, PaymentInvoiceStatusType, string, string, long, long, long, DateTimeOffset, DateTimeOffset?, DateTimeOffset?, DateTimeOffset?, string?, string?, string?, string?, string?, IReadOnlyDictionary<string, string>, IReadOnlyList<PaymentInvoiceLineDTO>)
An invoice as the provider holds it now.
public PaymentInvoiceDTO(string InvoiceId, string CustomerId, string? Number, PaymentInvoiceStatusType Status, string ProviderStatus, string CurrencyCode, long TotalMinor, long AmountPaidMinor, long AmountDueMinor, DateTimeOffset CreatedUtc, DateTimeOffset? PeriodStartUtc, DateTimeOffset? PeriodEndUtc, DateTimeOffset? PaidUtc, string? HostedUrl, string? SubscriptionId, string? PaymentIntentId, string? ChargeId, string? FailureReason, IReadOnlyDictionary<string, string> Metadata, IReadOnlyList<PaymentInvoiceLineDTO> Lines)
Parameters
InvoiceIdstringThe provider's identifier for it.
CustomerIdstringWho owes it.
NumberstringThe number printed on it; null while it is a draft.
StatusPaymentInvoiceStatusTypeWhere it stands.
ProviderStatusstringThe provider's own name for the status, kept for Unknown.
CurrencyCodestringISO 4217, upper case.
TotalMinorlongWhat it charges, in the currency's minor units.
AmountPaidMinorlongWhat has been paid of it.
AmountDueMinorlongWhat is still owed.
CreatedUtcDateTimeOffsetWhen it was created.
PeriodStartUtcDateTimeOffset?The start of the period it bills, when it bills one.
PeriodEndUtcDateTimeOffset?The end of the period it bills, when it bills one.
PaidUtcDateTimeOffset?When it was paid.
HostedUrlstringThe provider's page for it, where it can be paid and read.
SubscriptionIdstringThe subscription it bills, when it bills one.
PaymentIntentIdstringThe payment that pays it, once one was attempted.
ChargeIdstringThe charge that took the money, once it was taken — what a transfer funded by it names.
FailureReasonstringWhy its last charge was refused, while it is open after a refusal.
MetadataIReadOnlyDictionary<string, string>What the caller stored on it.
LinesIReadOnlyList<PaymentInvoiceLineDTO>What it charges for.
Remarks
The document itself — its number, its PDF, its hosted page — is the provider's. A caller keeps a copy of what it shows in a list and refreshes it when an event about the invoice arrives.
Properties
AmountDueMinor
What is still owed.
public long AmountDueMinor { get; init; }
Property Value
AmountPaidMinor
What has been paid of it.
public long AmountPaidMinor { get; init; }
Property Value
ChargeId
The charge that took the money, once it was taken — what a transfer funded by it names.
public string? ChargeId { get; init; }
Property Value
CreatedUtc
When it was created.
public DateTimeOffset CreatedUtc { get; init; }
Property Value
CurrencyCode
ISO 4217, upper case.
public string CurrencyCode { get; init; }
Property Value
CustomerId
Who owes it.
public string CustomerId { get; init; }
Property Value
FailureReason
Why its last charge was refused, while it is open after a refusal.
public string? FailureReason { get; init; }
Property Value
HostedUrl
The provider's page for it, where it can be paid and read.
public string? HostedUrl { get; init; }
Property Value
InvoiceId
The provider's identifier for it.
public string InvoiceId { get; init; }
Property Value
Lines
What it charges for.
public IReadOnlyList<PaymentInvoiceLineDTO> Lines { get; init; }
Property Value
Metadata
What the caller stored on it.
public IReadOnlyDictionary<string, string> Metadata { get; init; }
Property Value
Number
The number printed on it; null while it is a draft.
public string? Number { get; init; }
Property Value
PaidUtc
When it was paid.
public DateTimeOffset? PaidUtc { get; init; }
Property Value
PaymentIntentId
The payment that pays it, once one was attempted.
public string? PaymentIntentId { get; init; }
Property Value
PeriodEndUtc
The end of the period it bills, when it bills one.
public DateTimeOffset? PeriodEndUtc { get; init; }
Property Value
PeriodStartUtc
The start of the period it bills, when it bills one.
public DateTimeOffset? PeriodStartUtc { get; init; }
Property Value
ProviderStatus
The provider's own name for the status, kept for Unknown.
public string ProviderStatus { get; init; }
Property Value
Status
Where it stands.
public PaymentInvoiceStatusType Status { get; init; }
Property Value
SubscriptionId
The subscription it bills, when it bills one.
public string? SubscriptionId { get; init; }
Property Value
TotalMinor
What it charges, in the currency's minor units.
public long TotalMinor { get; init; }