Table of Contents

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

name string

The record's name.

base string

The record it is based on, or null.

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

string

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EventType

Gets the event the payment date is counted from, or null to take the base's.

public PaymentTermEventType? EventType { get; init; }

Property Value

PaymentTermEventType?

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

string

Methods

Equals(ConventionRecord?)

public override sealed bool Equals(ConventionRecord? other)

Parameters

other ConventionRecord

Returns

bool

Equals(PaymentTermRecord?)

public bool Equals(PaymentTermRecord? other)

Parameters

other PaymentTermRecord

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(PaymentTermRecord?, PaymentTermRecord?)

public static bool operator ==(PaymentTermRecord? left, PaymentTermRecord? right)

Parameters

left PaymentTermRecord
right PaymentTermRecord

Returns

bool

operator !=(PaymentTermRecord?, PaymentTermRecord?)

public static bool operator !=(PaymentTermRecord? left, PaymentTermRecord? right)

Parameters

left PaymentTermRecord
right PaymentTermRecord

Returns

bool