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

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

@Data
public class AccountsResponse {
    private String nextPage;
    private String pageCount;
    private String pageNumber;
    private String pageSize;
    private Accounts[] accounts;

    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Accounts {
        private String currency;
        private String feePlanI18N;
        private String id;
        private Identification identification;
        private String nameI18N;
        private String productI18N;
        private Servicer servicer;
        private String[] ownersNames;

        @NoArgsConstructor
        @AllArgsConstructor
        @Data
        public static class Identification {
            private String iban;
            private String other;
        }

        @NoArgsConstructor
        @AllArgsConstructor
        @Data
        public static class Servicer {
            private String bankCode;
            private String bic;
            private String countryCode;
        }
    }
}