Table of Contents

Class PaymentSubscriptionStartDTO

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

A subscription just started from a saved payment method, and what became of its first payment.

public record PaymentSubscriptionStartDTO : IEquatable<PaymentSubscriptionStartDTO>
Inheritance
PaymentSubscriptionStartDTO
Implements
Inherited Members

Constructors

PaymentSubscriptionStartDTO(PaymentSubscriptionDTO, PaymentStatusType, string?, string?)

A subscription just started from a saved payment method, and what became of its first payment.

public PaymentSubscriptionStartDTO(PaymentSubscriptionDTO Subscription, PaymentStatusType FirstPayment, string? ClientSecret, string? FailureReason)

Parameters

Subscription PaymentSubscriptionDTO

The subscription as it stands now.

FirstPayment PaymentStatusType

The first invoice's payment: Succeeded when it was charged (or there was nothing to charge), RequiresAction when the card wants its owner to confirm, and Failed when it was refused.

ClientSecret string

What the browser confirms the first payment with, on RequiresAction. A credential scoped to that payment: it goes back to the customer who started it and nowhere else.

FailureReason string

Why the first payment was refused, on Failed.

Properties

ClientSecret

What the browser confirms the first payment with, on RequiresAction. A credential scoped to that payment: it goes back to the customer who started it and nowhere else.

public string? ClientSecret { get; init; }

Property Value

string

FailureReason

Why the first payment was refused, on Failed.

public string? FailureReason { get; init; }

Property Value

string

FirstPayment

The first invoice's payment: Succeeded when it was charged (or there was nothing to charge), RequiresAction when the card wants its owner to confirm, and Failed when it was refused.

public PaymentStatusType FirstPayment { get; init; }

Property Value

PaymentStatusType

Subscription

The subscription as it stands now.

public PaymentSubscriptionDTO Subscription { get; init; }

Property Value

PaymentSubscriptionDTO