Table of Contents

Struct PaymentTransactionKey

Namespace
Dynamicweb.Ecommerce.Orders.PaymentTransactions
Assembly
Dynamicweb.Ecommerce.dll

Represents a payment transaction, which consists of a combination of PaymentTransaction ID and Payment ID.

public readonly record struct PaymentTransactionKey : IEquatable<PaymentTransactionKey>
Implements
Inherited Members

Constructors

PaymentTransactionKey(string, string)

Initializes a new instance of the PaymentTransactionKey class.

public PaymentTransactionKey(string TransactionNumber, string PaymentId)

Parameters

TransactionNumber string
PaymentId string

Exceptions

ArgumentException

If TransactionNumber or PaymentId is null or empty.

Properties

PaymentId

The ID of the Payment.

public string PaymentId { get; }

Property Value

string

TransactionNumber

The Transaction Number related to PaymentTransaction.

public string TransactionNumber { get; }

Property Value

string

Methods

Equals(PaymentTransactionKey)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PaymentTransactionKey other)

Parameters

other PaymentTransactionKey

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

To top