Package com.adyen.model.management
Class ShippingLocation
- java.lang.Object
-
- com.adyen.model.management.ShippingLocation
-
public class ShippingLocation extends Object
ShippingLocation
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESSstatic StringJSON_PROPERTY_CONTACTstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_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)addressShippingLocationcontact(Contact contact)contactbooleanequals(Object o)Return true if this ShippingLocation object is equal to o.static ShippingLocationfromJson(String jsonString)Create an instance of ShippingLocation given an JSON stringAddressgetAddress()Get addressContactgetContact()Get contactMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()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)The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.ShippingLocationincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.ShippingLocationname(String name)The unique name of the shipping location.voidsetAddress(Address address)addressvoidsetContact(Contact contact)contactvoidsetId(String id)The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetName(String name)The unique name of the shipping location.StringtoJson()Convert an instance of ShippingLocation to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS
public static final String JSON_PROPERTY_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTACT
public static final String JSON_PROPERTY_CONTACT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public ShippingLocation address(Address address)
address- Parameters:
address-- Returns:
- the current
ShippingLocationinstance, allowing for method chaining
-
getAddress
public Address getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address address)
address- Parameters:
address-
-
contact
public ShippingLocation contact(Contact contact)
contact- Parameters:
contact-- Returns:
- the current
ShippingLocationinstance, allowing for method chaining
-
getContact
public Contact getContact()
Get contact- Returns:
- contact
-
setContact
public void setContact(Contact contact)
contact- Parameters:
contact-
-
id
public ShippingLocation id(String id)
The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.- Parameters:
id- The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.- Returns:
- the current
ShippingLocationinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.- Returns:
- id The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.
-
setId
public void setId(String id)
The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.- Parameters:
id- The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order.
-
name
public ShippingLocation name(String name)
The unique name of the shipping location.- Parameters:
name- The unique name of the shipping location.- Returns:
- the current
ShippingLocationinstance, allowing for method chaining
-
getName
public String getName()
The unique name of the shipping location.- Returns:
- name The unique name of the shipping location.
-
setName
public void setName(String name)
The unique name of the shipping location.- Parameters:
name- The unique name of the shipping location.
-
includeNullValues
public ShippingLocation includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this ShippingLocation object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static ShippingLocation fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ShippingLocation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ShippingLocation
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ShippingLocation
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ShippingLocation to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-