@adyen/api-library
Version:
The Adyen API Library for NodeJS enables you to work with Adyen APIs.
125 lines (124 loc) • 5.53 kB
TypeScript
import { AdditionalSettingsResponse } from "./additionalSettingsResponse";
import { WebhookLinks } from "./webhookLinks";
export declare class Webhook {
"_links"?: WebhookLinks | null;
/**
* Indicates if expired SSL certificates are accepted. Default value: **false**.
*/
"acceptsExpiredCertificate"?: boolean;
/**
* Indicates if self-signed SSL certificates are accepted. Default value: **false**.
*/
"acceptsSelfSignedCertificate"?: boolean;
/**
* Indicates if untrusted SSL certificates are accepted. Default value: **false**.
*/
"acceptsUntrustedRootCertificate"?: boolean;
/**
* Reference to the account the webook is set on.
*/
"accountReference"?: string;
/**
* Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account.
*/
"active": boolean;
"additionalSettings"?: AdditionalSettingsResponse | null;
/**
* The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias.
*/
"certificateAlias"?: string;
/**
* Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json**
*/
"communicationFormat": Webhook.CommunicationFormatEnum;
/**
* Your description for this webhook configuration.
*/
"description"?: string;
/**
* 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**.
*/
"encryptionProtocol"?: Webhook.EncryptionProtocolEnum;
/**
* 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`.
*/
"filterMerchantAccountType"?: Webhook.FilterMerchantAccountTypeEnum;
/**
* 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**.
*/
"filterMerchantAccounts"?: Array<string>;
/**
* 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).
*/
"hasError"?: boolean;
/**
* Indicates if the webhook is password protected.
*/
"hasPassword"?: boolean;
/**
* 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.
*/
"hmacKeyCheckValue"?: string;
/**
* Unique identifier for this webhook.
*/
"id"?: string;
/**
* Network type for Terminal API details webhooks.
*/
"networkType"?: Webhook.NetworkTypeEnum;
/**
* Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**.
*/
"populateSoapActionHeader"?: boolean;
/**
* The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **direct-debit-notice-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).
*/
"type": string;
/**
* Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**.
*/
"url": string;
/**
* Username to access the webhook URL.
*/
"username"?: string;
static readonly discriminator: string | undefined;
static readonly mapping: {
[]: string;
} | undefined;
static readonly attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
format: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
format: string;
}[];
constructor();
}
export declare namespace Webhook {
enum CommunicationFormatEnum {
Http = "http",
Json = "json",
Soap = "soap"
}
enum EncryptionProtocolEnum {
Http = "HTTP",
Tlsv12 = "TLSv1.2",
Tlsv13 = "TLSv1.3"
}
enum FilterMerchantAccountTypeEnum {
AllAccounts = "allAccounts",
ExcludeAccounts = "excludeAccounts",
IncludeAccounts = "includeAccounts"
}
enum NetworkTypeEnum {
Local = "local",
Public = "public"
}
}