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)WebhookacceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate)WebhookacceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate)WebhookaccountReference(String accountReference)Webhookactive(Boolean active)WebhookaddFilterMerchantAccountsItem(String filterMerchantAccountsItem)WebhookadditionalSettings(AdditionalSettingsResponse additionalSettings)WebhookcertificateAlias(String certificateAlias)WebhookcommunicationFormat(Webhook.CommunicationFormatEnum communicationFormat)Webhookdescription(String description)WebhookencryptionProtocol(Webhook.EncryptionProtocolEnum encryptionProtocol)booleanequals(Object o)Return true if this Webhook object is equal to o.WebhookfilterMerchantAccounts(List<String> filterMerchantAccounts)WebhookfilterMerchantAccountType(Webhook.FilterMerchantAccountTypeEnum filterMerchantAccountType)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()Get 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()Get 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)inthashCode()WebhookhasPassword(Boolean hasPassword)WebhookhmacKeyCheckValue(String hmacKeyCheckValue)Webhookid(String id)Webhooklinks(WebhookLinks links)WebhooknetworkType(Webhook.NetworkTypeEnum networkType)WebhookpopulateSoapActionHeader(Boolean populateSoapActionHeader)voidsetAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate)voidsetAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate)voidsetAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate)voidsetAccountReference(String accountReference)voidsetActive(Boolean active)voidsetAdditionalSettings(AdditionalSettingsResponse additionalSettings)voidsetCertificateAlias(String certificateAlias)voidsetCommunicationFormat(Webhook.CommunicationFormatEnum communicationFormat)voidsetDescription(String description)voidsetEncryptionProtocol(Webhook.EncryptionProtocolEnum encryptionProtocol)voidsetFilterMerchantAccounts(List<String> filterMerchantAccounts)voidsetFilterMerchantAccountType(Webhook.FilterMerchantAccountTypeEnum filterMerchantAccountType)voidsetHasError(Boolean hasError)voidsetHasPassword(Boolean hasPassword)voidsetHmacKeyCheckValue(String hmacKeyCheckValue)voidsetId(String id)voidsetLinks(WebhookLinks links)voidsetNetworkType(Webhook.NetworkTypeEnum networkType)voidsetPopulateSoapActionHeader(Boolean populateSoapActionHeader)voidsetType(String type)voidsetUrl(String url)voidsetUsername(String username)StringtoJson()Convert an instance of Webhook to an JSON stringStringtoString()Webhooktype(String type)Webhookurl(String url)Webhookusername(String username)
-
-
-
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)
-
getLinks
public WebhookLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(WebhookLinks links)
-
acceptsExpiredCertificate
public Webhook acceptsExpiredCertificate(Boolean acceptsExpiredCertificate)
-
getAcceptsExpiredCertificate
public Boolean getAcceptsExpiredCertificate()
Indicates if expired SSL certificates are accepted. Default value: **false**.- Returns:
- acceptsExpiredCertificate
-
setAcceptsExpiredCertificate
public void setAcceptsExpiredCertificate(Boolean acceptsExpiredCertificate)
-
acceptsSelfSignedCertificate
public Webhook acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate)
-
getAcceptsSelfSignedCertificate
public Boolean getAcceptsSelfSignedCertificate()
Indicates if self-signed SSL certificates are accepted. Default value: **false**.- Returns:
- acceptsSelfSignedCertificate
-
setAcceptsSelfSignedCertificate
public void setAcceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate)
-
acceptsUntrustedRootCertificate
public Webhook acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate)
-
getAcceptsUntrustedRootCertificate
public Boolean getAcceptsUntrustedRootCertificate()
Indicates if untrusted SSL certificates are accepted. Default value: **false**.- Returns:
- acceptsUntrustedRootCertificate
-
setAcceptsUntrustedRootCertificate
public void setAcceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate)
-
getAccountReference
public String getAccountReference()
Reference to the account the webook is set on.- Returns:
- accountReference
-
setAccountReference
public void setAccountReference(String accountReference)
-
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)
-
additionalSettings
public Webhook additionalSettings(AdditionalSettingsResponse additionalSettings)
-
getAdditionalSettings
public AdditionalSettingsResponse getAdditionalSettings()
Get additionalSettings- Returns:
- additionalSettings
-
setAdditionalSettings
public void setAdditionalSettings(AdditionalSettingsResponse additionalSettings)
-
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)
-
communicationFormat
public Webhook communicationFormat(Webhook.CommunicationFormatEnum communicationFormat)
-
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)
-
getDescription
public String getDescription()
Your description for this webhook configuration.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
encryptionProtocol
public Webhook encryptionProtocol(Webhook.EncryptionProtocolEnum encryptionProtocol)
-
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)
-
filterMerchantAccountType
public Webhook filterMerchantAccountType(Webhook.FilterMerchantAccountTypeEnum filterMerchantAccountType)
-
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)
-
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)
-
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)
-
getHasPassword
public Boolean getHasPassword()
Indicates if the webhook is password protected.- Returns:
- hasPassword
-
setHasPassword
public void setHasPassword(Boolean hasPassword)
-
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)
-
getId
public String getId()
Unique identifier for this webhook.- Returns:
- id
-
setId
public void setId(String id)
-
networkType
public Webhook networkType(Webhook.NetworkTypeEnum networkType)
-
getNetworkType
public Webhook.NetworkTypeEnum getNetworkType()
Network type for Terminal API details webhooks.- Returns:
- networkType
-
setNetworkType
public void setNetworkType(Webhook.NetworkTypeEnum networkType)
-
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)
-
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** 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)
-
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)
-
getUsername
public String getUsername()
Username to access the webhook URL.- Returns:
- username
-
setUsername
public void setUsername(String 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
-
-