Class StockData
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.StockData
-
public class StockData extends Object
StockData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStockData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MARKET_IDENTIFIERstatic StringSERIALIZED_NAME_STOCK_NUMBERstatic StringSERIALIZED_NAME_TICKER_SYMBOL
-
Constructor Summary
Constructors Constructor Description StockData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static StockDatafromJson(String jsonString)Create an instance of StockData given an JSON stringStringgetMarketIdentifier()The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded.StringgetStockNumber()The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-).StringgetTickerSymbol()The stock ticker symbol.inthashCode()StockDatamarketIdentifier(String marketIdentifier)voidsetMarketIdentifier(String marketIdentifier)voidsetStockNumber(String stockNumber)voidsetTickerSymbol(String tickerSymbol)StockDatastockNumber(String stockNumber)StockDatatickerSymbol(String tickerSymbol)StringtoJson()Convert an instance of StockData to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_MARKET_IDENTIFIER
public static final String SERIALIZED_NAME_MARKET_IDENTIFIER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STOCK_NUMBER
public static final String SERIALIZED_NAME_STOCK_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TICKER_SYMBOL
public static final String SERIALIZED_NAME_TICKER_SYMBOL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMarketIdentifier
public String getMarketIdentifier()
The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization's stocks are traded.- Returns:
- marketIdentifier
-
setMarketIdentifier
public void setMarketIdentifier(String marketIdentifier)
-
getStockNumber
public String getStockNumber()
The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-).- Returns:
- stockNumber
-
setStockNumber
public void setStockNumber(String stockNumber)
-
getTickerSymbol
public String getTickerSymbol()
The stock ticker symbol.- Returns:
- tickerSymbol
-
setTickerSymbol
public void setTickerSymbol(String tickerSymbol)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to StockData
-
fromJson
public static StockData fromJson(String jsonString) throws IOException
Create an instance of StockData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StockData
- Throws:
IOException- if the JSON string is invalid with respect to StockData
-
toJson
public String toJson()
Convert an instance of StockData to an JSON string- Returns:
- JSON string
-
-