Package com.adyen.model.management
Class BillingEntity
- java.lang.Object
-
- com.adyen.model.management.BillingEntity
-
public class BillingEntity extends Object
BillingEntity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBillingEntity.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_TAX_ID
-
Constructor Summary
Constructors Constructor Description BillingEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingEntityaddress(Address address)BillingEntityemail(String email)booleanequals(Object o)static BillingEntityfromJson(String jsonString)Create an instance of BillingEntity given an JSON stringAddressgetAddress()Get addressStringgetEmail()The email address of the billing entity.StringgetId()The unique identifier of the billing entity, for use as `billingEntityId` when creating an order.StringgetName()The unique name of the billing entity.StringgetTaxId()The tax number of the billing entity.inthashCode()BillingEntityid(String id)BillingEntityname(String name)voidsetAddress(Address address)voidsetEmail(String email)voidsetId(String id)voidsetName(String name)voidsetTaxId(String taxId)BillingEntitytaxId(String taxId)StringtoJson()Convert an instance of BillingEntity 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_EMAIL
public static final String SERIALIZED_NAME_EMAIL
- 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
-
SERIALIZED_NAME_TAX_ID
public static final String SERIALIZED_NAME_TAX_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public BillingEntity address(Address address)
-
getAddress
public Address getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address address)
-
email
public BillingEntity email(String email)
-
getEmail
public String getEmail()
The email address of the billing entity.- Returns:
-
setEmail
public void setEmail(String email)
-
id
public BillingEntity id(String id)
-
getId
public String getId()
The unique identifier of the billing entity, for use as `billingEntityId` when creating an order.- Returns:
- id
-
setId
public void setId(String id)
-
name
public BillingEntity name(String name)
-
getName
public String getName()
The unique name of the billing entity.- Returns:
- name
-
setName
public void setName(String name)
-
taxId
public BillingEntity taxId(String taxId)
-
getTaxId
public String getTaxId()
The tax number of the billing entity.- Returns:
- taxId
-
setTaxId
public void setTaxId(String taxId)
-
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 BillingEntity
-
fromJson
public static BillingEntity fromJson(String jsonString) throws IOException
Create an instance of BillingEntity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BillingEntity
- Throws:
IOException- if the JSON string is invalid with respect to BillingEntity
-
toJson
public String toJson()
Convert an instance of BillingEntity to an JSON string- Returns:
- JSON string
-
-