Package com.adyen.model.management
Class ShippingLocationsResponse
- java.lang.Object
-
- com.adyen.model.management.ShippingLocationsResponse
-
public class ShippingLocationsResponse extends Object
ShippingLocationsResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShippingLocationsResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATA
-
Constructor Summary
Constructors Constructor Description ShippingLocationsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShippingLocationsResponseaddDataItem(ShippingLocation dataItem)ShippingLocationsResponsedata(List<ShippingLocation> data)booleanequals(Object o)static ShippingLocationsResponsefromJson(String jsonString)Create an instance of ShippingLocationsResponse given an JSON stringList<ShippingLocation>getData()Physical locations where orders can be shipped to.inthashCode()voidsetData(List<ShippingLocation> data)StringtoJson()Convert an instance of ShippingLocationsResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
data
public ShippingLocationsResponse data(List<ShippingLocation> data)
-
addDataItem
public ShippingLocationsResponse addDataItem(ShippingLocation dataItem)
-
getData
public List<ShippingLocation> getData()
Physical locations where orders can be shipped to.- Returns:
- data
-
setData
public void setData(List<ShippingLocation> data)
-
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 ShippingLocationsResponse
-
fromJson
public static ShippingLocationsResponse fromJson(String jsonString) throws IOException
Create an instance of ShippingLocationsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ShippingLocationsResponse
- Throws:
IOException- if the JSON string is invalid with respect to ShippingLocationsResponse
-
toJson
public String toJson()
Convert an instance of ShippingLocationsResponse to an JSON string- Returns:
- JSON string
-
-