All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.trickl.model.oanda.account.GetAccountResponse Maven / Gradle / Ivy

package com.trickl.model.oanda.account;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import lombok.Builder;
import lombok.Data;

/** The response from the /v3/accounts/{accountId} endpoint. */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "account",
    "lastTransactionID",
})
@Data
@Builder
public class GetAccountResponse {
  /* The full details of the requested Account. */
  @JsonPropertyDescription("The full details of the requested Account.")
  @Valid
  private Account account;

  /* The ID of the most recent Transaction created for the Account. */
  @JsonProperty("lastTransactionID")
  @JsonPropertyDescription("The ID of the most recent Transaction created for the Account")
  @NotBlank
  private String lastTransactionId;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy