/** * Represents the result of testing a webhook subscription. Note: The actual API returns these fields at the root level of TestWebhookSubscriptionResponse, not nested under this object. */ export interface SubscriptionTestResult { /** A Square-generated unique ID for the subscription test result. */ id?: string; /** The HTTP status code returned by the notification URL. */ statusCode?: number | null; /** The payload that was sent in the test notification. */ payload?: Record | null; /** * The timestamp of when the subscription was created, in RFC 3339 format. * For example, "2016-09-04T23:59:33.123Z". */ createdAt?: string; /** * The timestamp of when the subscription was updated, in RFC 3339 format. For example, "2016-09-04T23:59:33.123Z". * Because a subscription test result is unique, this field is the same as the `created_at` field. */ updatedAt?: string; /** The URL that was used for the webhook notification test. */ notificationUrl?: string; /** Whether the notification passed any configured filters. */ passesFilter?: boolean | null; }