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 CreditorAgent {
    private FinancialInstitutionIdentification financialInstitutionIdentification;

    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class FinancialInstitutionIdentification {
        private String name;
        private String bic;
        private PostalAddress postalAddress;
    }

    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class PostalAddress {
        private String addressLine;
        private String country;
        private String townName;
    }
}