Package com.adyen.model.management
Class ShippingLocation
- java.lang.Object
-
- com.adyen.model.management.ShippingLocation
-
public class ShippingLocation extends Object
ShippingLocation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShippingLocation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_CONTACTstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_NAME
-
Constructor Summary
Constructors Constructor Description ShippingLocation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShippingLocationaddress(Address address)ShippingLocationcontact(Contact contact)booleanequals(Object o)static ShippingLocationfromJson(String jsonString)Create an instance of ShippingLocation given an JSON stringAddressgetAddress()Get addressContactgetContact()Get contactStringgetId()The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.StringgetName()The unique name of the shipping location.inthashCode()ShippingLocationid(String id)ShippingLocationname(String name)voidsetAddress(Address address)voidsetContact(Contact contact)voidsetId(String id)voidsetName(String name)StringtoJson()Convert an instance of ShippingLocation 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_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTACT
public static final String SERIALIZED_NAME_CONTACT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public ShippingLocation address(Address address)
-
getAddress
public Address getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address address)
-
contact
public ShippingLocation contact(Contact contact)
-
getContact
public Contact getContact()
Get contact- Returns:
- contact
-
setContact
public void setContact(Contact contact)
-
id
public ShippingLocation id(String id)
-
getId
public String getId()
The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.- Returns:
- id
-
setId
public void setId(String id)
-
name
public ShippingLocation name(String name)
-
getName
public String getName()
The unique name of the shipping location.- Returns:
- name
-
setName
public void setName(String name)
-
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 ShippingLocation
-
fromJson
public static ShippingLocation fromJson(String jsonString) throws IOException
Create an instance of ShippingLocation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ShippingLocation
- Throws:
IOException- if the JSON string is invalid with respect to ShippingLocation
-
toJson
public String toJson()
Convert an instance of ShippingLocation to an JSON string- Returns:
- JSON string
-
-