Package com.adyen.model.management
Class Webhook
- java.lang.Object
-
- com.adyen.model.management.Webhook
-
public class Webhook extends Object
Webhook
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhook.CommunicationFormatEnumFormat or protocol for receiving webhooks.static classWebhook.EncryptionProtocolEnumSSL version to access the public webhook URL specified in the `url` field.static classWebhook.FilterMerchantAccountTypeEnumShows how merchant accounts are included in company-level webhooks.static classWebhook.NetworkTypeEnumNetwork type for Terminal API details webhooks.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Webhook()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookacceptsExpiredCertificate(Boolean acceptsExpiredCertificate)Indicates if expired SSL certificates are accepted.WebhookacceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate)Indicates if self-signed SSL certificates are accepted.WebhookacceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate)Indicates if untrusted SSL certificates are accepted.WebhookaccountReference(String accountReference)Reference to the account the webook is set on.Webhookactive(Boolean active)Indicates if the webhook configuration is active.WebhookaddFilterMerchantAccountsItem(String filterMerchantAccountsItem)WebhookadditionalSettings(AdditionalSettingsResponse additionalSettings)additionalSettingsWebhookcertificateAlias(String certificateAlias)The alias of our SSL certificate.WebhookcommunicationFormat(Webhook.CommunicationFormatEnum communicationFormat)Format or protocol for receiving webhooks.Webhookdescription(String description)Your description for this webhook configuration.WebhookencryptionProtocol(Webhook.EncryptionProtocolEnum encryptionProtocol)SSL version to access the public webhook URL specified in the `url` field.booleanequals(Object o)Return true if this Webhook object is equal to o.WebhookfilterMerchantAccounts(List<String> filterMerchantAccounts)A list of merchant account names that are included or excluded from receiving the webhook.WebhookfilterMerchantAccountType(Webhook.FilterMerchantAccountTypeEnum filterMerchantAccountType)Shows how merchant accounts are included in company-level webhooks.static WebhookfromJson(String jsonString)Create an instance of Webhook given an JSON stringBooleangetAcceptsExpiredCertificate()Indicates if expired SSL certificates are accepted.BooleangetAcceptsSelfSignedCertificate()Indicates if self-signed SSL certificates are accepted.BooleangetAcceptsUntrustedRootCertificate()Indicates if untrusted SSL certificates are accepted.StringgetAccountReference()Reference to the account the webook is set on.BooleangetActive()Indicates if the webhook configuration is active.AdditionalSettingsResponsegetAdditionalSettings()additionalSettingsStringgetCertificateAlias()The alias of our SSL certificate.Webhook.CommunicationFormatEnumgetCommunicationFormat()Format or protocol for receiving webhooks.StringgetDescription()Your description for this webhook configuration.Webhook.EncryptionProtocolEnumgetEncryptionProtocol()SSL version to access the public webhook URL specified in the `url` field.List<String>getFilterMerchantAccounts()A list of merchant account names that are included or excluded from receiving the webhook.Webhook.FilterMerchantAccountTypeEnumgetFilterMerchantAccountType()Shows how merchant accounts are included in company-level webhooks.BooleangetHasError()Indicates if the webhook configuration has errors that need troubleshooting.BooleangetHasPassword()Indicates if the webhook is password protected.StringgetHmacKeyCheckValue()The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook.StringgetId()Unique identifier for this webhook.WebhookLinksgetLinks()linksWebhook.NetworkTypeEnumgetNetworkType()Network type for Terminal API details webhooks.BooleangetPopulateSoapActionHeader()Indicates if the SOAP action header needs to be populated.StringgetType()The type of webhook.StringgetUrl()Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**.StringgetUsername()Username to access the webhook URL.WebhookhasError(Boolean hasError)Indicates if the webhook configuration has errors that need troubleshooting.inthashCode()WebhookhasPassword(Boolean hasPassword)Indicates if the webhook is password protected.WebhookhmacKeyCheckValue(String hmacKeyCheckValue)The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook.Webhookid(String id)Unique identifier for this webhook.Webhooklinks(WebhookLinks links)linksWebhooknetworkType(Webhook.NetworkTypeEnum networkType)Network type for Terminal API details webhooks.WebhookpopulateSoapActionHeader(Boolean populateSoapActionHeader)Indicates if the SOAP action header needs to be populated.voidsetAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate)Indicates if expired SSL certificates are accepted.voidsetAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate)Indicates if self-signed SSL certificates are accepted.voidsetAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate)Indicates if untrusted SSL certificates are accepted.voidsetAccountReference(String accountReference)Reference to the account the webook is set on.voidsetActive(Boolean active)Indicates if the webhook configuration is active.voidsetAdditionalSettings(AdditionalSettingsResponse additionalSettings)additionalSettingsvoidsetCertificateAlias(String certificateAlias)The alias of our SSL certificate.voidsetCommunicationFormat(Webhook.CommunicationFormatEnum communicationFormat)Format or protocol for receiving webhooks.voidsetDescription(String description)Your description for this webhook configuration.voidsetEncryptionProtocol(Webhook.EncryptionProtocolEnum encryptionProtocol)SSL version to access the public webhook URL specified in the `url` field.voidsetFilterMerchantAccounts(List<String> filterMerchantAccounts)A list of merchant account names that are included or excluded from receiving the webhook.voidsetFilterMerchantAccountType(Webhook.FilterMerchantAccountTypeEnum filterMerchantAccountType)Shows how merchant accounts are included in company-level webhooks.voidsetHasError(Boolean hasError)Indicates if the webhook configuration has errors that need troubleshooting.voidsetHasPassword(Boolean hasPassword)Indicates if the webhook is password protected.voidsetHmacKeyCheckValue(String hmacKeyCheckValue)The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook.voidsetId(String id)Unique identifier for this webhook.voidsetLinks(WebhookLinks links)linksvoidsetNetworkType(Webhook.NetworkTypeEnum networkType)Network type for Terminal API details webhooks.voidsetPopulateSoapActionHeader(Boolean populateSoapActionHeader)Indicates if the SOAP action header needs to be populated.voidsetType(String type)The type of webhook.voidsetUrl(String url)Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**.voidsetUsername(String username)Username to access the webhook URL.StringtoJson()Convert an instance of Webhook to an JSON stringStringtoString()Webhooktype(String type)The type of webhook.Webhookurl(String url)Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**.Webhookusername(String username)Username to access the webhook URL.
-
-
-
Field Detail
-
JSON_PROPERTY_LINKS
public static final String JSON_PROPERTY_LINKS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE
public static final String JSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE
public static final String JSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE
public static final String JSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCOUNT_REFERENCE
public static final String JSON_PROPERTY_ACCOUNT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACTIVE
public static final String JSON_PROPERTY_ACTIVE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ADDITIONAL_SETTINGS
public static final String JSON_PROPERTY_ADDITIONAL_SETTINGS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CERTIFICATE_ALIAS
public static final String JSON_PROPERTY_CERTIFICATE_ALIAS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMMUNICATION_FORMAT
public static final String JSON_PROPERTY_COMMUNICATION_FORMAT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTION_PROTOCOL
public static final String JSON_PROPERTY_ENCRYPTION_PROTOCOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE
public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS
public static final String JSON_PROPERTY_FILTER_MERCHANT_ACCOUNTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HAS_ERROR
public static final String JSON_PROPERTY_HAS_ERROR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HAS_PASSWORD
public static final String JSON_PROPERTY_HAS_PASSWORD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HMAC_KEY_CHECK_VALUE
public static final String JSON_PROPERTY_HMAC_KEY_CHECK_VALUE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NETWORK_TYPE
public static final String JSON_PROPERTY_NETWORK_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER
public static final String JSON_PROPERTY_POPULATE_SOAP_ACTION_HEADER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_URL
public static final String JSON_PROPERTY_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USERNAME
public static final String JSON_PROPERTY_USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public Webhook links(WebhookLinks links)
links- Parameters:
links-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getLinks
public WebhookLinks getLinks()
links- Returns:
- links
-
setLinks
public void setLinks(WebhookLinks links)
links- Parameters:
links-
-
acceptsExpiredCertificate
public Webhook acceptsExpiredCertificate(Boolean acceptsExpiredCertificate)
Indicates if expired SSL certificates are accepted. Default value: **false**.- Parameters:
acceptsExpiredCertificate-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getAcceptsExpiredCertificate
public Boolean getAcceptsExpiredCertificate()
Indicates if expired SSL certificates are accepted. Default value: **false**.- Returns:
- acceptsExpiredCertificate
-
setAcceptsExpiredCertificate
public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate)
Indicates if expired SSL certificates are accepted. Default value: **false**.- Parameters:
acceptsExpiredCertificate-
-
acceptsSelfSignedCertificate
public Webhook acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate)
Indicates if self-signed SSL certificates are accepted. Default value: **false**.- Parameters:
acceptsSelfSignedCertificate-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getAcceptsSelfSignedCertificate
public Boolean getAcceptsSelfSignedCertificate()
Indicates if self-signed SSL certificates are accepted. Default value: **false**.- Returns:
- acceptsSelfSignedCertificate
-
setAcceptsSelfSignedCertificate
public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate)
Indicates if self-signed SSL certificates are accepted. Default value: **false**.- Parameters:
acceptsSelfSignedCertificate-
-
acceptsUntrustedRootCertificate
public Webhook acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate)
Indicates if untrusted SSL certificates are accepted. Default value: **false**.- Parameters:
acceptsUntrustedRootCertificate-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getAcceptsUntrustedRootCertificate
public Boolean getAcceptsUntrustedRootCertificate()
Indicates if untrusted SSL certificates are accepted. Default value: **false**.- Returns:
- acceptsUntrustedRootCertificate
-
setAcceptsUntrustedRootCertificate
public void setAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate)
Indicates if untrusted SSL certificates are accepted. Default value: **false**.- Parameters:
acceptsUntrustedRootCertificate-
-
accountReference
public Webhook accountReference(String accountReference)
Reference to the account the webook is set on.- Parameters:
accountReference-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getAccountReference
public String getAccountReference()
Reference to the account the webook is set on.- Returns:
- accountReference
-
setAccountReference
public void setAccountReference(String accountReference)
Reference to the account the webook is set on.- Parameters:
accountReference-
-
active
public Webhook active(Boolean active)
Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account.- Parameters:
active-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getActive
public Boolean getActive()
Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account.- Returns:
- active
-
setActive
public void setActive(Boolean active)
Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account.- Parameters:
active-
-
additionalSettings
public Webhook additionalSettings(AdditionalSettingsResponse additionalSettings)
additionalSettings- Parameters:
additionalSettings-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getAdditionalSettings
public AdditionalSettingsResponse getAdditionalSettings()
additionalSettings- Returns:
- additionalSettings
-
setAdditionalSettings
public void setAdditionalSettings(AdditionalSettingsResponse additionalSettings)
additionalSettings- Parameters:
additionalSettings-
-
certificateAlias
public Webhook certificateAlias(String certificateAlias)
The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias.- Parameters:
certificateAlias-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getCertificateAlias
public String getCertificateAlias()
The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias.- Returns:
- certificateAlias
-
setCertificateAlias
public void setCertificateAlias(String certificateAlias)
The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias.- Parameters:
certificateAlias-
-
communicationFormat
public Webhook communicationFormat(Webhook.CommunicationFormatEnum communicationFormat)
Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json**- Parameters:
communicationFormat-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getCommunicationFormat
public Webhook.CommunicationFormatEnum getCommunicationFormat()
Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json**- Returns:
- communicationFormat
-
setCommunicationFormat
public void setCommunicationFormat(Webhook.CommunicationFormatEnum communicationFormat)
Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json**- Parameters:
communicationFormat-
-
description
public Webhook description(String description)
Your description for this webhook configuration.- Parameters:
description-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getDescription
public String getDescription()
Your description for this webhook configuration.- Returns:
- description
-
setDescription
public void setDescription(String description)
Your description for this webhook configuration.- Parameters:
description-
-
encryptionProtocol
public Webhook encryptionProtocol(Webhook.EncryptionProtocolEnum encryptionProtocol)
SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**.- Parameters:
encryptionProtocol-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getEncryptionProtocol
public Webhook.EncryptionProtocolEnum getEncryptionProtocol()
SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**.- Returns:
- encryptionProtocol
-
setEncryptionProtocol
public void setEncryptionProtocol(Webhook.EncryptionProtocolEnum encryptionProtocol)
SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**.- Parameters:
encryptionProtocol-
-
filterMerchantAccountType
public Webhook filterMerchantAccountType(Webhook.FilterMerchantAccountTypeEnum filterMerchantAccountType)
Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`.- Parameters:
filterMerchantAccountType-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getFilterMerchantAccountType
public Webhook.FilterMerchantAccountTypeEnum getFilterMerchantAccountType()
Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`.- Returns:
- filterMerchantAccountType
-
setFilterMerchantAccountType
public void setFilterMerchantAccountType(Webhook.FilterMerchantAccountTypeEnum filterMerchantAccountType)
Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`.- Parameters:
filterMerchantAccountType-
-
filterMerchantAccounts
public Webhook filterMerchantAccounts(List<String> filterMerchantAccounts)
A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**.- Parameters:
filterMerchantAccounts-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
addFilterMerchantAccountsItem
public Webhook addFilterMerchantAccountsItem(String filterMerchantAccountsItem)
-
getFilterMerchantAccounts
public List<String> getFilterMerchantAccounts()
A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**.- Returns:
- filterMerchantAccounts
-
setFilterMerchantAccounts
public void setFilterMerchantAccounts(List<String> filterMerchantAccounts)
A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**.- Parameters:
filterMerchantAccounts-
-
hasError
public Webhook hasError(Boolean hasError)
Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test).- Parameters:
hasError-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getHasError
public Boolean getHasError()
Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test).- Returns:
- hasError
-
setHasError
public void setHasError(Boolean hasError)
Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test).- Parameters:
hasError-
-
hasPassword
public Webhook hasPassword(Boolean hasPassword)
Indicates if the webhook is password protected.- Parameters:
hasPassword-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getHasPassword
public Boolean getHasPassword()
Indicates if the webhook is password protected.- Returns:
- hasPassword
-
setHasPassword
public void setHasPassword(Boolean hasPassword)
Indicates if the webhook is password protected.- Parameters:
hasPassword-
-
hmacKeyCheckValue
public Webhook hmacKeyCheckValue(String hmacKeyCheckValue)
The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook.- Parameters:
hmacKeyCheckValue-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getHmacKeyCheckValue
public String getHmacKeyCheckValue()
The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook.- Returns:
- hmacKeyCheckValue
-
setHmacKeyCheckValue
public void setHmacKeyCheckValue(String hmacKeyCheckValue)
The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook.- Parameters:
hmacKeyCheckValue-
-
id
public Webhook id(String id)
Unique identifier for this webhook.- Parameters:
id-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getId
public String getId()
Unique identifier for this webhook.- Returns:
- id
-
setId
public void setId(String id)
Unique identifier for this webhook.- Parameters:
id-
-
networkType
public Webhook networkType(Webhook.NetworkTypeEnum networkType)
Network type for Terminal API details webhooks.- Parameters:
networkType-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getNetworkType
public Webhook.NetworkTypeEnum getNetworkType()
Network type for Terminal API details webhooks.- Returns:
- networkType
-
setNetworkType
public void setNetworkType(Webhook.NetworkTypeEnum networkType)
Network type for Terminal API details webhooks.- Parameters:
networkType-
-
populateSoapActionHeader
public Webhook populateSoapActionHeader(Boolean populateSoapActionHeader)
Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**.- Parameters:
populateSoapActionHeader-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getPopulateSoapActionHeader
public Boolean getPopulateSoapActionHeader()
Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**.- Returns:
- populateSoapActionHeader
-
setPopulateSoapActionHeader
public void setPopulateSoapActionHeader(Boolean populateSoapActionHeader)
Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**.- Parameters:
populateSoapActionHeader-
-
type
public Webhook type(String type)
The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).- Parameters:
type-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getType
public String getType()
The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).- Returns:
- type
-
setType
public void setType(String type)
The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).- Parameters:
type-
-
url
public Webhook url(String url)
Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**.- Parameters:
url-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getUrl
public String getUrl()
Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**.- Returns:
- url
-
setUrl
public void setUrl(String url)
Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**.- Parameters:
url-
-
username
public Webhook username(String username)
Username to access the webhook URL.- Parameters:
username-- Returns:
- the current
Webhookinstance, allowing for method chaining
-
getUsername
public String getUsername()
Username to access the webhook URL.- Returns:
- username
-
setUsername
public void setUsername(String username)
Username to access the webhook URL.- Parameters:
username-
-
equals
public boolean equals(Object o)
Return true if this Webhook object is equal to o.
-
fromJson
public static Webhook fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Webhook given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Webhook
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Webhook
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Webhook to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-