Table of Contents

Class Payment

Namespace
RetailForce.Fiscalisation.Model
Assembly
RetailForce.Fiscalisation.Model.dll

Payment for payment stock.

public class Payment : IEquatable<Payment>
Inheritance
Payment
Implements
Inherited Members

Properties

Amount

The amount of the payment in currency of the fiscal client.

public decimal Amount { get; set; }

Property Value

decimal

Caption

The caption of the payment.

public string Caption { get; set; }

Property Value

string

CurrencyIsoCode

The currency code of the payment.

public string CurrencyIsoCode { get; set; }

Property Value

string

Remarks

It is not allowed to have 2 different currency codes on the same UniqueReadablePaymentIdentifier within one fiscal client closing report.

ForeignAmount

The foreign amount of the payment (according to CurrencyIsoCode).

public decimal ForeignAmount { get; set; }

Property Value

decimal

ForeignAmountExchangeRate

The exchange rate for the foreign amount to the currency of the FiscalClient.

public decimal ForeignAmountExchangeRate { get; set; }

Property Value

decimal

IsCash

True if it is an cash payment; otherwise false (electronic, voucher, etc.)

public bool IsCash { get; set; }

Property Value

bool

PaymentType

The type of the payment. Default is Cash.

public PaymentType PaymentType { get; set; }

Property Value

PaymentType

TaxValue

A possible tax value for single purpose vouchers.

public decimal? TaxValue { get; set; }

Property Value

decimal?

UniqueReadablePaymentIdentifier

The unique identifier for this payment.

public string UniqueReadablePaymentIdentifier { get; set; }

Property Value

string

VatIdentification

A possible vat identification for single purpose vouchers.

public int? VatIdentification { get; set; }

Property Value

int?

VatPercent

A possible vat percent for single purpose vouchers.

public decimal? VatPercent { get; set; }

Property Value

decimal?

VoucherId

A possible voucher id if needed for PaymentType.SinglePurposeVoucher or MultiPurposeVoucher

public string VoucherId { get; set; }

Property Value

string

Methods

Equals(DocumentPayment)

Determines whether the specified object is equal to the current object.

public bool Equals(DocumentPayment payment)

Parameters

payment DocumentPayment

Returns

bool

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

Equals(Payment)

Determines whether the specified object is equal to the current object.

public bool Equals(Payment other)

Parameters

other Payment

Returns

bool

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

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

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

Invert()

Inverts the payment (amount will be turned negative).

public Payment Invert()

Returns

Payment

The inverted payment.

ToDocumentPayment()

Returns a DocumentPayment position out of this payment.

public DocumentPayment ToDocumentPayment()

Returns

DocumentPayment

A converted DocumentPayment position.

Operators

operator ==(DocumentPayment, Payment)

public static bool operator ==(DocumentPayment payment, Payment payment1)

Parameters

payment DocumentPayment
payment1 Payment

Returns

bool

operator ==(Payment, DocumentPayment)

public static bool operator ==(Payment payment1, DocumentPayment payment)

Parameters

payment1 Payment
payment DocumentPayment

Returns

bool

operator ==(Payment, Payment)

public static bool operator ==(Payment payment1, Payment payment2)

Parameters

payment1 Payment
payment2 Payment

Returns

bool

operator !=(DocumentPayment, Payment)

public static bool operator !=(DocumentPayment payment, Payment payment1)

Parameters

payment DocumentPayment
payment1 Payment

Returns

bool

operator !=(Payment, DocumentPayment)

public static bool operator !=(Payment payment1, DocumentPayment payment)

Parameters

payment1 Payment
payment DocumentPayment

Returns

bool

operator !=(Payment, Payment)

public static bool operator !=(Payment payment1, Payment payment2)

Parameters

payment1 Payment
payment2 Payment

Returns

bool