Class PaymentTermRecord
- Namespace
- NanoQL.Extensions.Conventions
- Assembly
- NanoQL.Extensions.dll
A commodity payment term (PaymentTerm), which PaymentTerm takes.
[Experimental("NQL0001")]
public sealed record PaymentTermRecord : ConventionRecord, IEquatable<ConventionRecord>, IEquatable<PaymentTermRecord>
- Inheritance
-
PaymentTermRecord
- Implements
- Inherited Members
Constructors
PaymentTermRecord(string, string?)
Initializes a new instance of the PaymentTermRecord class.
public PaymentTermRecord(string name, string? @base = null)
Parameters
Properties
Calendar
Gets the calendar the payment date is adjusted on, or null to take the base's.
public string? Calendar { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
EventType
Gets the event the payment date is counted from, or null to take the base's.
public PaymentTermEventType? EventType { get; init; }
Property Value
OffsetDays
Gets the days from the event to the payment, or null to take the base's.
public int? OffsetDays { get; init; }
Property Value
- int?
TermName
Gets the payment term's name, its identity, or null to take the base's: the record's by default.
public string? TermName { get; init; }
Property Value
Methods
Equals(ConventionRecord?)
public override sealed bool Equals(ConventionRecord? other)
Parameters
otherConventionRecord
Returns
Equals(PaymentTermRecord?)
public bool Equals(PaymentTermRecord? other)
Parameters
otherPaymentTermRecord
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(PaymentTermRecord?, PaymentTermRecord?)
public static bool operator ==(PaymentTermRecord? left, PaymentTermRecord? right)
Parameters
leftPaymentTermRecordrightPaymentTermRecord
Returns
operator !=(PaymentTermRecord?, PaymentTermRecord?)
public static bool operator !=(PaymentTermRecord? left, PaymentTermRecord? right)
Parameters
leftPaymentTermRecordrightPaymentTermRecord