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

import lombok.*;

import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
public class GetAcctsBalancesResponse {
    public List<BalancesList> balancesList;
    public GetAcctsBalancesResponse.TifResponseStatus tifResponseStatus = new TifResponseStatus();

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class BalancesList {
        private String accountIdentification;
        private String dispositionBalance;
        private String accountingBalance;
        private String maxAllowedOverdraftBalance;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class TifResponseStatus {
        private String resultCode;
        private String errorCode;
        private String errorDesc;
    }
}
