Class SoleProprietorship
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.SoleProprietorship
-
public class SoleProprietorship extends Object
SoleProprietorship
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSoleProprietorship.CustomTypeAdapterFactorystatic classSoleProprietorship.VatAbsenceReasonEnumThe reason for not providing a VAT number.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTRY_OF_GOVERNING_LAWstatic StringSERIALIZED_NAME_DOING_BUSINESS_ASstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PRINCIPAL_PLACE_OF_BUSINESSstatic StringSERIALIZED_NAME_REGISTERED_ADDRESSstatic StringSERIALIZED_NAME_REGISTRATION_NUMBERstatic StringSERIALIZED_NAME_VAT_ABSENCE_REASONstatic StringSERIALIZED_NAME_VAT_NUMBER
-
Constructor Summary
Constructors Constructor Description SoleProprietorship()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SoleProprietorshipcountryOfGoverningLaw(String countryOfGoverningLaw)SoleProprietorshipdoingBusinessAs(String doingBusinessAs)booleanequals(Object o)static SoleProprietorshipfromJson(String jsonString)Create an instance of SoleProprietorship given an JSON stringStringgetCountryOfGoverningLaw()The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.StringgetDoingBusinessAs()The registered name, if different from the `name`.StringgetName()The legal name.AddressgetPrincipalPlaceOfBusiness()Get principalPlaceOfBusinessAddressgetRegisteredAddress()Get registeredAddressStringgetRegistrationNumber()The registration number.SoleProprietorship.VatAbsenceReasonEnumgetVatAbsenceReason()The reason for not providing a VAT number.StringgetVatNumber()The VAT number.inthashCode()SoleProprietorshipname(String name)SoleProprietorshipprincipalPlaceOfBusiness(Address principalPlaceOfBusiness)SoleProprietorshipregisteredAddress(Address registeredAddress)SoleProprietorshipregistrationNumber(String registrationNumber)voidsetCountryOfGoverningLaw(String countryOfGoverningLaw)voidsetDoingBusinessAs(String doingBusinessAs)voidsetName(String name)voidsetPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness)voidsetRegisteredAddress(Address registeredAddress)voidsetRegistrationNumber(String registrationNumber)voidsetVatAbsenceReason(SoleProprietorship.VatAbsenceReasonEnum vatAbsenceReason)voidsetVatNumber(String vatNumber)StringtoJson()Convert an instance of SoleProprietorship to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundSoleProprietorshipvatAbsenceReason(SoleProprietorship.VatAbsenceReasonEnum vatAbsenceReason)SoleProprietorshipvatNumber(String vatNumber)
-
-
-
Field Detail
-
SERIALIZED_NAME_COUNTRY_OF_GOVERNING_LAW
public static final String SERIALIZED_NAME_COUNTRY_OF_GOVERNING_LAW
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOING_BUSINESS_AS
public static final String SERIALIZED_NAME_DOING_BUSINESS_AS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRINCIPAL_PLACE_OF_BUSINESS
public static final String SERIALIZED_NAME_PRINCIPAL_PLACE_OF_BUSINESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REGISTERED_ADDRESS
public static final String SERIALIZED_NAME_REGISTERED_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REGISTRATION_NUMBER
public static final String SERIALIZED_NAME_REGISTRATION_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VAT_ABSENCE_REASON
public static final String SERIALIZED_NAME_VAT_ABSENCE_REASON
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VAT_NUMBER
public static final String SERIALIZED_NAME_VAT_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
countryOfGoverningLaw
public SoleProprietorship countryOfGoverningLaw(String countryOfGoverningLaw)
-
getCountryOfGoverningLaw
public String getCountryOfGoverningLaw()
The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.- Returns:
- countryOfGoverningLaw
-
setCountryOfGoverningLaw
public void setCountryOfGoverningLaw(String countryOfGoverningLaw)
-
doingBusinessAs
public SoleProprietorship doingBusinessAs(String doingBusinessAs)
-
getDoingBusinessAs
public String getDoingBusinessAs()
The registered name, if different from the `name`.- Returns:
- doingBusinessAs
-
setDoingBusinessAs
public void setDoingBusinessAs(String doingBusinessAs)
-
name
public SoleProprietorship name(String name)
-
getName
public String getName()
The legal name.- Returns:
- name
-
setName
public void setName(String name)
-
principalPlaceOfBusiness
public SoleProprietorship principalPlaceOfBusiness(Address principalPlaceOfBusiness)
-
getPrincipalPlaceOfBusiness
public Address getPrincipalPlaceOfBusiness()
Get principalPlaceOfBusiness- Returns:
- principalPlaceOfBusiness
-
setPrincipalPlaceOfBusiness
public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness)
-
registeredAddress
public SoleProprietorship registeredAddress(Address registeredAddress)
-
getRegisteredAddress
public Address getRegisteredAddress()
Get registeredAddress- Returns:
- registeredAddress
-
setRegisteredAddress
public void setRegisteredAddress(Address registeredAddress)
-
registrationNumber
public SoleProprietorship registrationNumber(String registrationNumber)
-
getRegistrationNumber
public String getRegistrationNumber()
The registration number.- Returns:
- registrationNumber
-
setRegistrationNumber
public void setRegistrationNumber(String registrationNumber)
-
vatAbsenceReason
public SoleProprietorship vatAbsenceReason(SoleProprietorship.VatAbsenceReasonEnum vatAbsenceReason)
-
getVatAbsenceReason
public SoleProprietorship.VatAbsenceReasonEnum getVatAbsenceReason()
The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**.- Returns:
- vatAbsenceReason
-
setVatAbsenceReason
public void setVatAbsenceReason(SoleProprietorship.VatAbsenceReasonEnum vatAbsenceReason)
-
vatNumber
public SoleProprietorship vatNumber(String vatNumber)
-
getVatNumber
public String getVatNumber()
The VAT number.- Returns:
- vatNumber
-
setVatNumber
public void setVatNumber(String vatNumber)
-
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 SoleProprietorship
-
fromJson
public static SoleProprietorship fromJson(String jsonString) throws IOException
Create an instance of SoleProprietorship given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SoleProprietorship
- Throws:
IOException- if the JSON string is invalid with respect to SoleProprietorship
-
toJson
public String toJson()
Convert an instance of SoleProprietorship to an JSON string- Returns:
- JSON string
-
-