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.VatAbsenceReasonEnumThe reason for not providing a VAT number.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COUNTRY_OF_GOVERNING_LAWstatic StringJSON_PROPERTY_DATE_OF_INCORPORATIONstatic StringJSON_PROPERTY_DOING_BUSINESS_ASstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESSstatic StringJSON_PROPERTY_REGISTERED_ADDRESSstatic StringJSON_PROPERTY_REGISTRATION_NUMBERstatic StringJSON_PROPERTY_TAX_ABSENTstatic StringJSON_PROPERTY_TAX_INFORMATIONstatic StringJSON_PROPERTY_VAT_ABSENCE_REASONstatic StringJSON_PROPERTY_VAT_NUMBER
-
Constructor Summary
Constructors Constructor Description SoleProprietorship()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SoleProprietorshipaddTaxInformationItem(TaxInformation taxInformationItem)SoleProprietorshipcountryOfGoverningLaw(String countryOfGoverningLaw)The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.SoleProprietorshipdateOfIncorporation(String dateOfIncorporation)The date when the legal arrangement was incorporated in YYYY-MM-DD format.SoleProprietorshipdoingBusinessAs(String doingBusinessAs)The registered name, if different from the `name`.booleanequals(Object o)Return true if this SoleProprietorship object is equal to 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.StringgetDateOfIncorporation()The date when the legal arrangement was incorporated in YYYY-MM-DD format.StringgetDoingBusinessAs()The registered name, if different from the `name`.StringgetName()The legal name.AddressgetPrincipalPlaceOfBusiness()principalPlaceOfBusinessAddressgetRegisteredAddress()registeredAddressStringgetRegistrationNumber()The registration number.BooleangetTaxAbsent()The tax information is absent.List<TaxInformation>getTaxInformation()The tax information of the entity.SoleProprietorship.VatAbsenceReasonEnumgetVatAbsenceReason()The reason for not providing a VAT number.StringgetVatNumber()The VAT number.inthashCode()SoleProprietorshipname(String name)The legal name.SoleProprietorshipprincipalPlaceOfBusiness(Address principalPlaceOfBusiness)principalPlaceOfBusinessSoleProprietorshipregisteredAddress(Address registeredAddress)registeredAddressSoleProprietorshipregistrationNumber(String registrationNumber)The registration number.voidsetCountryOfGoverningLaw(String countryOfGoverningLaw)The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.voidsetDateOfIncorporation(String dateOfIncorporation)The date when the legal arrangement was incorporated in YYYY-MM-DD format.voidsetDoingBusinessAs(String doingBusinessAs)The registered name, if different from the `name`.voidsetName(String name)The legal name.voidsetPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness)principalPlaceOfBusinessvoidsetRegisteredAddress(Address registeredAddress)registeredAddressvoidsetRegistrationNumber(String registrationNumber)The registration number.voidsetTaxAbsent(Boolean taxAbsent)The tax information is absent.voidsetTaxInformation(List<TaxInformation> taxInformation)The tax information of the entity.voidsetVatAbsenceReason(SoleProprietorship.VatAbsenceReasonEnum vatAbsenceReason)The reason for not providing a VAT number.voidsetVatNumber(String vatNumber)The VAT number.SoleProprietorshiptaxAbsent(Boolean taxAbsent)The tax information is absent.SoleProprietorshiptaxInformation(List<TaxInformation> taxInformation)The tax information of the entity.StringtoJson()Convert an instance of SoleProprietorship to an JSON stringStringtoString()SoleProprietorshipvatAbsenceReason(SoleProprietorship.VatAbsenceReasonEnum vatAbsenceReason)The reason for not providing a VAT number.SoleProprietorshipvatNumber(String vatNumber)The VAT number.
-
-
-
Field Detail
-
JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW
public static final String JSON_PROPERTY_COUNTRY_OF_GOVERNING_LAW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DATE_OF_INCORPORATION
public static final String JSON_PROPERTY_DATE_OF_INCORPORATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOING_BUSINESS_AS
public static final String JSON_PROPERTY_DOING_BUSINESS_AS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS
public static final String JSON_PROPERTY_PRINCIPAL_PLACE_OF_BUSINESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REGISTERED_ADDRESS
public static final String JSON_PROPERTY_REGISTERED_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REGISTRATION_NUMBER
public static final String JSON_PROPERTY_REGISTRATION_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_ABSENT
public static final String JSON_PROPERTY_TAX_ABSENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_INFORMATION
public static final String JSON_PROPERTY_TAX_INFORMATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VAT_ABSENCE_REASON
public static final String JSON_PROPERTY_VAT_ABSENCE_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VAT_NUMBER
public static final String JSON_PROPERTY_VAT_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
countryOfGoverningLaw
public SoleProprietorship countryOfGoverningLaw(String countryOfGoverningLaw)
The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.- Parameters:
countryOfGoverningLaw-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
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)
The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.- Parameters:
countryOfGoverningLaw-
-
dateOfIncorporation
public SoleProprietorship dateOfIncorporation(String dateOfIncorporation)
The date when the legal arrangement was incorporated in YYYY-MM-DD format.- Parameters:
dateOfIncorporation-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
getDateOfIncorporation
public String getDateOfIncorporation()
The date when the legal arrangement was incorporated in YYYY-MM-DD format.- Returns:
- dateOfIncorporation
-
setDateOfIncorporation
public void setDateOfIncorporation(String dateOfIncorporation)
The date when the legal arrangement was incorporated in YYYY-MM-DD format.- Parameters:
dateOfIncorporation-
-
doingBusinessAs
public SoleProprietorship doingBusinessAs(String doingBusinessAs)
The registered name, if different from the `name`.- Parameters:
doingBusinessAs-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
getDoingBusinessAs
public String getDoingBusinessAs()
The registered name, if different from the `name`.- Returns:
- doingBusinessAs
-
setDoingBusinessAs
public void setDoingBusinessAs(String doingBusinessAs)
The registered name, if different from the `name`.- Parameters:
doingBusinessAs-
-
name
public SoleProprietorship name(String name)
The legal name.- Parameters:
name-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
getName
public String getName()
The legal name.- Returns:
- name
-
setName
public void setName(String name)
The legal name.- Parameters:
name-
-
principalPlaceOfBusiness
public SoleProprietorship principalPlaceOfBusiness(Address principalPlaceOfBusiness)
principalPlaceOfBusiness- Parameters:
principalPlaceOfBusiness-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
getPrincipalPlaceOfBusiness
public Address getPrincipalPlaceOfBusiness()
principalPlaceOfBusiness- Returns:
- principalPlaceOfBusiness
-
setPrincipalPlaceOfBusiness
public void setPrincipalPlaceOfBusiness(Address principalPlaceOfBusiness)
principalPlaceOfBusiness- Parameters:
principalPlaceOfBusiness-
-
registeredAddress
public SoleProprietorship registeredAddress(Address registeredAddress)
registeredAddress- Parameters:
registeredAddress-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
getRegisteredAddress
public Address getRegisteredAddress()
registeredAddress- Returns:
- registeredAddress
-
setRegisteredAddress
public void setRegisteredAddress(Address registeredAddress)
registeredAddress- Parameters:
registeredAddress-
-
registrationNumber
public SoleProprietorship registrationNumber(String registrationNumber)
The registration number.- Parameters:
registrationNumber-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
getRegistrationNumber
public String getRegistrationNumber()
The registration number.- Returns:
- registrationNumber
-
setRegistrationNumber
public void setRegistrationNumber(String registrationNumber)
The registration number.- Parameters:
registrationNumber-
-
taxAbsent
public SoleProprietorship taxAbsent(Boolean taxAbsent)
The tax information is absent.- Parameters:
taxAbsent-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
getTaxAbsent
public Boolean getTaxAbsent()
The tax information is absent.- Returns:
- taxAbsent
-
setTaxAbsent
public void setTaxAbsent(Boolean taxAbsent)
The tax information is absent.- Parameters:
taxAbsent-
-
taxInformation
public SoleProprietorship taxInformation(List<TaxInformation> taxInformation)
The tax information of the entity.- Parameters:
taxInformation-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
addTaxInformationItem
public SoleProprietorship addTaxInformationItem(TaxInformation taxInformationItem)
-
getTaxInformation
public List<TaxInformation> getTaxInformation()
The tax information of the entity.- Returns:
- taxInformation
-
setTaxInformation
public void setTaxInformation(List<TaxInformation> taxInformation)
The tax information of the entity.- Parameters:
taxInformation-
-
vatAbsenceReason
public SoleProprietorship vatAbsenceReason(SoleProprietorship.VatAbsenceReasonEnum vatAbsenceReason)
The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**.- Parameters:
vatAbsenceReason-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
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)
The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**.- Parameters:
vatAbsenceReason-
-
vatNumber
public SoleProprietorship vatNumber(String vatNumber)
The VAT number.- Parameters:
vatNumber-- Returns:
- the current
SoleProprietorshipinstance, allowing for method chaining
-
getVatNumber
public String getVatNumber()
The VAT number.- Returns:
- vatNumber
-
setVatNumber
public void setVatNumber(String vatNumber)
The VAT number.- Parameters:
vatNumber-
-
equals
public boolean equals(Object o)
Return true if this SoleProprietorship object is equal to o.
-
fromJson
public static SoleProprietorship fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SoleProprietorship given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SoleProprietorship
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SoleProprietorship
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SoleProprietorship to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-