All Downloads are FREE. Search and download functionalities are using the official Maven repository.

domain.Booking Maven / Gradle / Ivy

There is a newer version: 5.5.43
Show newest version
package domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * Created by alexg on 07.02.17.
 */
@Data
@ApiModel(description="Single bank booking", value="Booking" )
public class Booking {

    @ApiModelProperty(value = "External ID of this booking", required=true)
    private String externalId;

    @ApiModelProperty(value = "Opposite bank account")
    private BankAccount otherAccount;

    @ApiModelProperty(value = "Date on which the transaction gets effective", example="2018-02-28")
    private LocalDate valutaDate;

    @ApiModelProperty(value = "Booking date", example="2018-02-28")
    private LocalDate bookingDate;

    @ApiModelProperty(value = "Target amount", example="-19.93")
    private BigDecimal amount;

    @ApiModelProperty(value = "Does this reverses a preexisting booking", example="false")
    private boolean reversal;

    @ApiModelProperty(value = "Account balance after this booking", example="1849.1")
    private BigDecimal balance;

    @ApiModelProperty(value = "Reference of the opposite party", example="NONREF")
    private String customerRef;

    @ApiModelProperty(value = "Reference of the corresponding institution")
    private String instRef;

    @ApiModelProperty(value = "Original value", example="-19.93")
    private BigDecimal origValue;

    @ApiModelProperty(value = "Charge value", example="-19.93")
    private BigDecimal chargeValue;

    @ApiModelProperty(value = "Transaction information", example="KARTENZAHLUNG")
    private String text;

    @ApiModelProperty(value = "Additional transaction information", example="KARTENZAHLUNG")
    private String additional;

    @ApiModelProperty(value = "Primanota")
    private String primanota;

    @ApiModelProperty(value = "Usage of this transaction", example="Svwz+2018-02-27t11.47.44 Karte3 2020-12 Abwa+6850 Edeka//Nuernberg/De")
    private String usage;

    @ApiModelProperty(value = "")
    private String addkey;

    @ApiModelProperty(value = "Is this a SEPA transaction", example="true")
    private boolean sepa;

    @ApiModelProperty(value = "Is this a standing order transaction", example="false")
    private boolean standingOrder;

    @ApiModelProperty(value = "Creditor ID", example="5aab866d31a02a0001f72cd5")
    private String creditorId;

    @ApiModelProperty(value = "Reference for the SEPA mandate")
    private String mandateReference;

    @ApiModelProperty(value = "Origin of this booking", example="MOCK")
    private BankApi bankApi;

    @ApiModelProperty(value = "Category of this booking")
    private BookingCategory bookingCategory;

    @ApiModelProperty(value = "Transaction type as DTA Tx Key code", example = "4")
    private String transactionCode;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy