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.NoArgsConstructor;

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

/**
 * Request model for DLT_EM_CLI_CONTEXTS service
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class DltEmCliContextsRequest {

    @JsonProperty("CIF")
    private String cif;

    @JsonProperty("FEE")
    private String fee;

    @JsonProperty("ORIGINATOR_CIF_LIST")
    private String originatorCifList;

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

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class RsData {
        @JsonProperty("CONTEXT_ID")
        private Long contextId;

        @JsonProperty("USER_ID")
        private Long userId;
    }
}

