package com.honey.honey.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * Response from external POST api/v1/deposit-address (and returned to frontend).
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class DepositAddressResponse {

    @JsonProperty("request_info")
    private RequestInfo requestInfo;

    @JsonProperty("result")
    private Result result;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class RequestInfo {
        @JsonProperty("error_code")
        private Integer errorCode;
        @JsonProperty("error_message")
        private String errorMessage;
    }

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Result {
        @JsonProperty("ps_id")
        private Integer psId;
        @JsonProperty("name")
        private String name;
        @JsonProperty("network")
        private String network;
        @JsonProperty("address")
        private String address;
        @JsonProperty("amount_coins")
        private String amountCoins;
    }
}
