package cz.moneta.test.dsl.payment_engine.model;

import lombok.*;
import java.util.ArrayList;
import java.util.List;

/**
 * List of reservations in ICBS.
 * Class for API response /t/payments.cluster/GET_HOLDS/001.
 */

@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@ToString
public class IcbsReservationListSuccessResponse {

    public Integer RT1CNT;

    @Builder.Default
    public List<RS_DATA> RS_DATA = new ArrayList<>();

    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    @EqualsAndHashCode(callSuper = false)
    public static class RS_DATA {
        //Account Number
        public Integer OUACCT;
        //Record Number
        public String OUHREC;
        //Record Type
        public String OUTYPE;
        //Record Status
        public String OUSTAT;
        //Date Entered
        public String OUEDT;
        //Expiration Date
        public String OUEXDT;
        //Amount Of Stop-Hold
        public Double OUAMT;
        //Payable To
        public String OUPAYE;
        //Reason For Stop
        public String OURESN;
    }
}
