Class TaxEDeliveryConsentApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.legalentitymanagement.TaxEDeliveryConsentApi
-
public class TaxEDeliveryConsentApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description TaxEDeliveryConsentApi(Client client)Tax eDelivery consent constructor inpackage.TaxEDeliveryConsentApi(Client client, String baseURL)Tax eDelivery consent constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckTaxElectronicDeliveryConsentResponsecheckStatusOfConsentForElectronicDeliveryOfTaxForms(String id)Check the status of consent for electronic delivery of tax formsCheckTaxElectronicDeliveryConsentResponsecheckStatusOfConsentForElectronicDeliveryOfTaxForms(String id, RequestOptions requestOptions)Check the status of consent for electronic delivery of tax formsvoidsetConsentStatusForElectronicDeliveryOfTaxForms(String id, SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest)Set the consent status for electronic delivery of tax formsvoidsetConsentStatusForElectronicDeliveryOfTaxForms(String id, SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest, RequestOptions requestOptions)Set the consent status for electronic delivery of tax forms-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
TaxEDeliveryConsentApi
public TaxEDeliveryConsentApi(Client client)
Tax eDelivery consent constructor inpackage.- Parameters:
client-Client(required)
-
TaxEDeliveryConsentApi
public TaxEDeliveryConsentApi(Client client, String baseURL)
Tax eDelivery consent constructor inpackage. Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant.
-
-
Method Detail
-
checkStatusOfConsentForElectronicDeliveryOfTaxForms
public CheckTaxElectronicDeliveryConsentResponse checkStatusOfConsentForElectronicDeliveryOfTaxForms(String id) throws ApiException, IOException
Check the status of consent for electronic delivery of tax forms- Parameters:
id-StringThe unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required)- Returns:
CheckTaxElectronicDeliveryConsentResponse- Throws:
ApiException- if fails to make API callIOException
-
checkStatusOfConsentForElectronicDeliveryOfTaxForms
public CheckTaxElectronicDeliveryConsentResponse checkStatusOfConsentForElectronicDeliveryOfTaxForms(String id, RequestOptions requestOptions) throws ApiException, IOException
Check the status of consent for electronic delivery of tax forms- Parameters:
id-StringThe unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
CheckTaxElectronicDeliveryConsentResponse- Throws:
ApiException- if fails to make API callIOException
-
setConsentStatusForElectronicDeliveryOfTaxForms
public void setConsentStatusForElectronicDeliveryOfTaxForms(String id, SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest) throws ApiException, IOException
Set the consent status for electronic delivery of tax forms- Parameters:
id-StringThe unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required)setTaxElectronicDeliveryConsentRequest-SetTaxElectronicDeliveryConsentRequest(required)- Throws:
ApiException- if fails to make API callIOException
-
setConsentStatusForElectronicDeliveryOfTaxForms
public void setConsentStatusForElectronicDeliveryOfTaxForms(String id, SetTaxElectronicDeliveryConsentRequest setTaxElectronicDeliveryConsentRequest, RequestOptions requestOptions) throws ApiException, IOException
Set the consent status for electronic delivery of tax forms- Parameters:
id-StringThe unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization. (required)setTaxElectronicDeliveryConsentRequest-SetTaxElectronicDeliveryConsentRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
-