Package com.adyen.model.management
Class CreateCompanyWebhookRequest
- java.lang.Object
-
- com.adyen.model.management.CreateCompanyWebhookRequest
-
public class CreateCompanyWebhookRequest extends Object
CreateCompanyWebhookRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateCompanyWebhookRequest.CommunicationFormatEnumFormat or protocol for receiving webhooks.static classCreateCompanyWebhookRequest.EncryptionProtocolEnumSSL version to access the public webhook URL specified in the `url` field.static classCreateCompanyWebhookRequest.FilterMerchantAccountTypeEnumShows how merchant accounts are filtered when configuring the webhook.static classCreateCompanyWebhookRequest.NetworkTypeEnumNetwork type for Terminal API notification webhooks.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCEPTS_EXPIRED_CERTIFICATEstatic StringJSON_PROPERTY_ACCEPTS_SELF_SIGNED_CERTIFICATEstatic StringJSON_PROPERTY_ACCEPTS_UNTRUSTED_ROOT_CERTIFICATEstatic StringJSON_PROPERTY_ACTIVEstatic StringJSON_PROPERTY_ADDITIONAL_SETTINGSstatic StringJSON_PROPERTY_COMMUNICATION_FORMATstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_ENCRYPTION_PROTOCOLstatic StringJSON_PROPERTY_FILTER_MERCHANT_ACCOUNT_TYPEstatic StringJSON_PROPERTY_FILTER_MERCHANT_ACCOUNTSstatic StringJSON_PROPERTY_NETWORK_TYPEstatic StringJSON_PROPERTY_PASSWORDstatic StringJSON_PROPERTY_POPULATE_SOAP_ACTION_HEADERstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_URLstatic StringJSON_PROPERTY_USERNAME
-
Constructor Summary
Constructors Constructor Description CreateCompanyWebhookRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCompanyWebhookRequestacceptsExpiredCertificate(Boolean acceptsExpiredCertificate)Indicates if expired SSL certificates are accepted.CreateCompanyWebhookRequestacceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate)Indicates if self-signed SSL certificates are accepted.CreateCompanyWebhookRequestacceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate)Indicates if untrusted SSL certificates are accepted.CreateCompanyWebhookRequestactive(Boolean active)Indicates if the webhook configuration is active.CreateCompanyWebhookRequestaddFilterMerchantAccountsItem(String filterMerchantAccountsItem)CreateCompanyWebhookRequestadditionalSettings(AdditionalSettings additionalSettings)additionalSettingsCreateCompanyWebhookRequestcommunicationFormat(CreateCompanyWebhookRequest.CommunicationFormatEnum communicationFormat)Format or protocol for receiving webhooks.CreateCompanyWebhookRequestdescription(String description)Your description for this webhook configuration.CreateCompanyWebhookRequestencryptionProtocol(CreateCompanyWebhookRequest.EncryptionProtocolEnum encryptionProtocol)SSL version to access the public webhook URL specified in the `url` field.booleanequals(Object o)Return true if this CreateCompanyWebhookRequest object is equal to o.CreateCompanyWebhookRequestfilterMerchantAccounts(List<String> filterMerchantAccounts)A list of merchant account names that are included or excluded from receiving the webhook.CreateCompanyWebhookRequestfilterMerchantAccountType(CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum filterMerchantAccountType)Shows how merchant accounts are filtered when configuring the webhook.static CreateCompanyWebhookRequestfromJson(String jsonString)Create an instance of CreateCompanyWebhookRequest 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.BooleangetActive()Indicates if the webhook configuration is active.AdditionalSettingsgetAdditionalSettings()additionalSettingsCreateCompanyWebhookRequest.CommunicationFormatEnumgetCommunicationFormat()Format or protocol for receiving webhooks.StringgetDescription()Your description for this webhook configuration.CreateCompanyWebhookRequest.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.CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnumgetFilterMerchantAccountType()Shows how merchant accounts are filtered when configuring the webhook.CreateCompanyWebhookRequest.NetworkTypeEnumgetNetworkType()Network type for Terminal API notification webhooks.StringgetPassword()Password to access the webhook URL.BooleangetPopulateSoapActionHeader()Indicates if the SOAP action header needs to be populated.StringgetType()The type of webhook that is being created.StringgetUrl()Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**.StringgetUsername()Username to access the webhook URL.inthashCode()CreateCompanyWebhookRequestnetworkType(CreateCompanyWebhookRequest.NetworkTypeEnum networkType)Network type for Terminal API notification webhooks.CreateCompanyWebhookRequestpassword(String password)Password to access the webhook URL.CreateCompanyWebhookRequestpopulateSoapActionHeader(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.voidsetActive(Boolean active)Indicates if the webhook configuration is active.voidsetAdditionalSettings(AdditionalSettings additionalSettings)additionalSettingsvoidsetCommunicationFormat(CreateCompanyWebhookRequest.CommunicationFormatEnum communicationFormat)Format or protocol for receiving webhooks.voidsetDescription(String description)Your description for this webhook configuration.voidsetEncryptionProtocol(CreateCompanyWebhookRequest.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(CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum filterMerchantAccountType)Shows how merchant accounts are filtered when configuring the webhook.voidsetNetworkType(CreateCompanyWebhookRequest.NetworkTypeEnum networkType)Network type for Terminal API notification webhooks.voidsetPassword(String password)Password to access the webhook URL.voidsetPopulateSoapActionHeader(Boolean populateSoapActionHeader)Indicates if the SOAP action header needs to be populated.voidsetType(String type)The type of webhook that is being created.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 CreateCompanyWebhookRequest to an JSON stringStringtoString()CreateCompanyWebhookRequesttype(String type)The type of webhook that is being created.CreateCompanyWebhookRequesturl(String url)Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**.CreateCompanyWebhookRequestusername(String username)Username to access the webhook URL.
-
-
-
Field Detail
-
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_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_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_NETWORK_TYPE
public static final String JSON_PROPERTY_NETWORK_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PASSWORD
public static final String JSON_PROPERTY_PASSWORD
- 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
-
acceptsExpiredCertificate
public CreateCompanyWebhookRequest acceptsExpiredCertificate(Boolean acceptsExpiredCertificate)
Indicates if expired SSL certificates are accepted. Default value: **false**.- Parameters:
acceptsExpiredCertificate-- Returns:
- the current
CreateCompanyWebhookRequestinstance, 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 CreateCompanyWebhookRequest acceptsSelfSignedCertificate(Boolean acceptsSelfSignedCertificate)
Indicates if self-signed SSL certificates are accepted. Default value: **false**.- Parameters:
acceptsSelfSignedCertificate-- Returns:
- the current
CreateCompanyWebhookRequestinstance, 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 CreateCompanyWebhookRequest acceptsUntrustedRootCertificate(Boolean acceptsUntrustedRootCertificate)
Indicates if untrusted SSL certificates are accepted. Default value: **false**.- Parameters:
acceptsUntrustedRootCertificate-- Returns:
- the current
CreateCompanyWebhookRequestinstance, 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-
-
active
public CreateCompanyWebhookRequest active(Boolean active)
Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account.- Parameters:
active-- Returns:
- the current
CreateCompanyWebhookRequestinstance, allowing for method chaining
-
getActive
public Boolean getActive()
Indicates if the webhook configuration is active. The field must be **true** for us to send 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 us to send webhooks about events related an account.- Parameters:
active-
-
additionalSettings
public CreateCompanyWebhookRequest additionalSettings(AdditionalSettings additionalSettings)
additionalSettings- Parameters:
additionalSettings-- Returns:
- the current
CreateCompanyWebhookRequestinstance, allowing for method chaining
-
getAdditionalSettings
public AdditionalSettings getAdditionalSettings()
additionalSettings- Returns:
- additionalSettings
-
setAdditionalSettings
public void setAdditionalSettings(AdditionalSettings additionalSettings)
additionalSettings- Parameters:
additionalSettings-
-
communicationFormat
public CreateCompanyWebhookRequest communicationFormat(CreateCompanyWebhookRequest.CommunicationFormatEnum communicationFormat)
Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json**- Parameters:
communicationFormat-- Returns:
- the current
CreateCompanyWebhookRequestinstance, allowing for method chaining
-
getCommunicationFormat
public CreateCompanyWebhookRequest.CommunicationFormatEnum getCommunicationFormat()
Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json**- Returns:
- communicationFormat
-
setCommunicationFormat
public void setCommunicationFormat(CreateCompanyWebhookRequest.CommunicationFormatEnum communicationFormat)
Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json**- Parameters:
communicationFormat-
-
description
public CreateCompanyWebhookRequest description(String description)
Your description for this webhook configuration.- Parameters:
description-- Returns:
- the current
CreateCompanyWebhookRequestinstance, 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 CreateCompanyWebhookRequest encryptionProtocol(CreateCompanyWebhookRequest.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
CreateCompanyWebhookRequestinstance, allowing for method chaining
-
getEncryptionProtocol
public CreateCompanyWebhookRequest.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(CreateCompanyWebhookRequest.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 CreateCompanyWebhookRequest filterMerchantAccountType(CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum filterMerchantAccountType)
Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`.- Parameters:
filterMerchantAccountType-- Returns:
- the current
CreateCompanyWebhookRequestinstance, allowing for method chaining
-
getFilterMerchantAccountType
public CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum getFilterMerchantAccountType()
Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`.- Returns:
- filterMerchantAccountType
-
setFilterMerchantAccountType
public void setFilterMerchantAccountType(CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum filterMerchantAccountType)
Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **allAccounts** : Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. * **includeAccounts** : The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts** : The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`.- Parameters:
filterMerchantAccountType-
-
filterMerchantAccounts
public CreateCompanyWebhookRequest 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
CreateCompanyWebhookRequestinstance, allowing for method chaining
-
addFilterMerchantAccountsItem
public CreateCompanyWebhookRequest 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-
-
networkType
public CreateCompanyWebhookRequest networkType(CreateCompanyWebhookRequest.NetworkTypeEnum networkType)
Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**.- Parameters:
networkType-- Returns:
- the current
CreateCompanyWebhookRequestinstance, allowing for method chaining
-
getNetworkType
public CreateCompanyWebhookRequest.NetworkTypeEnum getNetworkType()
Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**.- Returns:
- networkType
-
setNetworkType
public void setNetworkType(CreateCompanyWebhookRequest.NetworkTypeEnum networkType)
Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**.- Parameters:
networkType-
-
password
public CreateCompanyWebhookRequest password(String password)
Password to access the webhook URL.- Parameters:
password-- Returns:
- the current
CreateCompanyWebhookRequestinstance, allowing for method chaining
-
getPassword
public String getPassword()
Password to access the webhook URL.- Returns:
- password
-
setPassword
public void setPassword(String password)
Password to access the webhook URL.- Parameters:
password-
-
populateSoapActionHeader
public CreateCompanyWebhookRequest 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
CreateCompanyWebhookRequestinstance, 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 CreateCompanyWebhookRequest type(String type)
The type of webhook that is being created. 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** - **rreq-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
CreateCompanyWebhookRequestinstance, allowing for method chaining
-
getType
public String getType()
The type of webhook that is being created. 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** - **rreq-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 that is being created. 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** - **rreq-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 CreateCompanyWebhookRequest url(String url)
Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**.- Parameters:
url-- Returns:
- the current
CreateCompanyWebhookRequestinstance, 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 CreateCompanyWebhookRequest username(String username)
Username to access the webhook URL.- Parameters:
username-- Returns:
- the current
CreateCompanyWebhookRequestinstance, 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 CreateCompanyWebhookRequest object is equal to o.
-
fromJson
public static CreateCompanyWebhookRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateCompanyWebhookRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateCompanyWebhookRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateCompanyWebhookRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateCompanyWebhookRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-