package cz.moneta.test.dsl.cagw.api.cbl.psd.pisp.my.payments;

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

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class CreditorAccount {
    private String currency;
    private CreditorIdentification identification;

    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class CreditorIdentification {
        private String iban;
        private Other other;
    }

    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Other {
        private String identification;
    }
}