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
Caption
The caption of the payment.
public string Caption { get; set; }
Property Value
CurrencyIsoCode
The currency code of the payment.
public string CurrencyIsoCode { get; set; }
Property Value
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
ForeignAmountExchangeRate
The exchange rate for the foreign amount to the currency of the FiscalClient.
public decimal ForeignAmountExchangeRate { get; set; }
Property Value
IsCash
True if it is an cash payment; otherwise false (electronic, voucher, etc.)
public bool IsCash { get; set; }
Property Value
PaymentType
The type of the payment. Default is Cash.
public PaymentType PaymentType { get; set; }
Property Value
TaxValue
A possible tax value for single purpose vouchers.
public decimal? TaxValue { get; set; }
Property Value
UniqueReadablePaymentIdentifier
The unique identifier for this payment.
public string UniqueReadablePaymentIdentifier { get; set; }
Property Value
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
VoucherId
A possible voucher id if needed for PaymentType.SinglePurposeVoucher or MultiPurposeVoucher
public string VoucherId { get; set; }
Property Value
Methods
Equals(DocumentPayment)
Determines whether the specified object is equal to the current object.
public bool Equals(DocumentPayment payment)
Parameters
paymentDocumentPayment
Returns
Equals(Payment)
Determines whether the specified object is equal to the current object.
public bool Equals(Payment other)
Parameters
otherPayment
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
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
paymentDocumentPaymentpayment1Payment
Returns
operator ==(Payment, DocumentPayment)
public static bool operator ==(Payment payment1, DocumentPayment payment)
Parameters
payment1PaymentpaymentDocumentPayment
Returns
operator ==(Payment, Payment)
public static bool operator ==(Payment payment1, Payment payment2)
Parameters
Returns
operator !=(DocumentPayment, Payment)
public static bool operator !=(DocumentPayment payment, Payment payment1)
Parameters
paymentDocumentPaymentpayment1Payment
Returns
operator !=(Payment, DocumentPayment)
public static bool operator !=(Payment payment1, DocumentPayment payment)
Parameters
payment1PaymentpaymentDocumentPayment
Returns
operator !=(Payment, Payment)
public static bool operator !=(Payment payment1, Payment payment2)