package com.banesco.module.msg_request_header.domain.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.*;

@Getter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@RegisterForReflection
public class NetworkTrnInfo {
    private String transactionConsecutive;
    private String registerNumber;
    private String originatorName;
    private String operationType;
    private String transactionType;
    private String transactionCode;
    private String transactionDate;
    private String transactionTime;
    private String bankId;
    private String agencyCode;
    private String channelId;
    private String channelUserId;
    private String operationExecIndicator;
    private String configuredTransactionCode;
    private String desc;
    private String userId;
    private String userType;

    @JsonIgnore
    public NetworkTrnInfo withOptions(
        String date,
        String time
    ) {
        this.transactionDate = date;
        this.transactionTime = time;
        return this;
    }
}
