package cz.moneta.test.dsl.cagw.api.cbl.psd.aisp.my.accounts.id.balance;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

@Data
public class BalanceResponse {
    private Balance[] balances;

    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Balance {
        private Amount amount;
        private String creditDebitIndicator;
        private Date date;
        private Type type;

        @NoArgsConstructor
        @AllArgsConstructor
        @Data
        public static class Amount {
            String currency;
            double value;
        }

        @NoArgsConstructor
        @AllArgsConstructor
        @Data
        public static class Date {
            String dateTime;
        }

        @NoArgsConstructor
        @AllArgsConstructor
        @Data
        public static class Type {
            CodeOrProprietary codeOrProprietary;

            @NoArgsConstructor
            @AllArgsConstructor
            @Data
            public static class CodeOrProprietary {
                String code;
            }
        }
    }
}