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
Exceptions
- ArgumentException
If
TransactionNumberorPaymentIdisnullor empty.
Properties
PaymentId
The ID of the Payment.
public string PaymentId { get; }
Property Value
TransactionNumber
The Transaction Number related to PaymentTransaction.
public string TransactionNumber { get; }
Property Value
Methods
Equals(PaymentTransactionKey)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PaymentTransactionKey other)
Parameters
otherPaymentTransactionKeyAn object to compare with this object.
Returns
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.