Class DocumentPositionBooking
- Namespace
- RetailForce.Fiscalisation.Model.Document
- Assembly
- RetailForce.Fiscalisation.Model.dll
Represents a booking position. A booking position can be used for booking values (instead of items).
public class DocumentPositionBooking : DocumentPositionVatPosition, IBusinessTransactionTypePosition, IVatPosition
- Inheritance
-
ValidationBase<DocumentValidationError>ValidationPropertyBase<DocumentValidationError>DocumentPositionBooking
- Implements
- Inherited Members
-
ValidationPropertyBase<DocumentValidationError>.Validate()
- Extension Methods
Remarks
You can use a booking for instance for a payin, payout, vouchers...
Properties
BusinessTransactionType
The type of this booking.
[Required]
public BusinessTransactionType BusinessTransactionType { get; set; }
Property Value
Caption
The caption of the booking.
[Required]
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string Caption { get; set; }
Property Value
Identifier
An additional identifier for the booking.
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string Identifier { get; set; }
Property Value
PayOutType
The type of the payout when business transaction type = payout.
public PayOutType? PayOutType { get; set; }
Property Value
Type
The type of the position. For possible types see DocumentPositionType.
public override DocumentPositionType Type { get; }
Property Value
Methods
GetVoucherId()
Returns the voucher id of the additional fields collections.
public string GetVoucherId()
Returns
- string
The voucher id of the additional fields collections.
ToString()
Returns the string representation for this DocumentPositionBase.
public override string ToString()
Returns
- string
The string representation for this DocumentPositionBase.
ValidateElement()
Validates the element with element specific validation and returns a list of validation errors.
protected override List<DocumentValidationError> ValidateElement()
Returns
- List<DocumentValidationError>
A list of RetailForce.Common.Validation.ValidationError objects.