package cz.moneta.test.dsl.wso2.objects.smallbusiness;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class DoSmeDepositProductOfferResponse {

    @JsonProperty("RS_DATA")
    @Builder.Default
    private List<RsData> rsData = new ArrayList<>();

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class RsData {
        @JsonProperty("PROD_CODE")
        private String prodCode;

        @JsonProperty("FEE_PLAN")
        private String feePlan;

        @JsonProperty("INT_RATE_PLAN")
        private String intRatePlan;

        @JsonProperty("CAMPAIGN_OFFER")
        private Long campaignOffer;

        @JsonProperty("INDIVIDUAL_IR_ALLOWED")
        private Long individualIrAllowed;

        @JsonProperty("MAX_COUNT")
        private Long maxCount;

        @JsonProperty("SALES_PROD_TP")
        private String salesProdTp;

        @JsonProperty("IB_SB_TITLE")
        private String ibSbTitle;

        @JsonProperty("CURRENCY")
        private String currency;
    }
}
