Class StockData
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.StockData
-
public class StockData extends Object
StockData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MARKET_IDENTIFIERstatic StringJSON_PROPERTY_STOCK_NUMBERstatic StringJSON_PROPERTY_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)Return true if this StockData object is equal to 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)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.voidsetMarketIdentifier(String marketIdentifier)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.voidsetStockNumber(String stockNumber)The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-).voidsetTickerSymbol(String tickerSymbol)The stock ticker symbol.StockDatastockNumber(String stockNumber)The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-).StockDatatickerSymbol(String tickerSymbol)The stock ticker symbol.StringtoJson()Convert an instance of StockData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MARKET_IDENTIFIER
public static final String JSON_PROPERTY_MARKET_IDENTIFIER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STOCK_NUMBER
public static final String JSON_PROPERTY_STOCK_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TICKER_SYMBOL
public static final String JSON_PROPERTY_TICKER_SYMBOL
- See Also:
- Constant Field Values
-
-
Method Detail
-
marketIdentifier
public StockData marketIdentifier(String marketIdentifier)
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.- Parameters:
marketIdentifier-- Returns:
- the current
StockDatainstance, allowing for method chaining
-
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)
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.- Parameters:
marketIdentifier-
-
stockNumber
public StockData stockNumber(String stockNumber)
The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-).- Parameters:
stockNumber-- Returns:
- the current
StockDatainstance, allowing for method chaining
-
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)
The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-).- Parameters:
stockNumber-
-
tickerSymbol
public StockData tickerSymbol(String tickerSymbol)
The stock ticker symbol.- Parameters:
tickerSymbol-- Returns:
- the current
StockDatainstance, allowing for method chaining
-
getTickerSymbol
public String getTickerSymbol()
The stock ticker symbol.- Returns:
- tickerSymbol
-
setTickerSymbol
public void setTickerSymbol(String tickerSymbol)
The stock ticker symbol.- Parameters:
tickerSymbol-
-
equals
public boolean equals(Object o)
Return true if this StockData object is equal to o.
-
fromJson
public static StockData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StockData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StockData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StockData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StockData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-