Automattic\WooCommerce\Internal\PushNotifications\Enums

SendOutcome{} │ final │ WC 1.0

What happened to one attempt at sending a notification.

The WordPress.com endpoint queues every token in a request or none of them, so one outcome describes the whole batch.

Хуков нет.

Использование

$SendOutcome = new SendOutcome();
// use class methods

Методы

Нет Методов у класса.

Код SendOutcome{} WC 11.3.0

final class SendOutcome {

	/**
	 * WordPress.com queued the notification.
	 *
	 * @var string
	 */
	public const ACCEPTED = 'accepted';

	/**
	 * WordPress.com had already received this notification and did not queue it again.
	 *
	 * @var string
	 */
	public const DEDUPLICATED = 'deduplicated';

	/**
	 * WordPress.com refused the request because a token cannot be delivered to.
	 *
	 * @var string
	 */
	public const REJECTED_INVALID_TOKEN = 'rejected_invalid_token';

	/**
	 * WordPress.com refused the request because the notification itself failed validation.
	 *
	 * @var string
	 */
	public const REJECTED_INVALID_NOTIFICATION = 'rejected_invalid_notification';

	/**
	 * We could not send, because the store has no Jetpack site ID.
	 *
	 * @var string
	 */
	public const SITE_ID_MISSING = 'site_id_missing';

	/**
	 * We could not send, because the order, review or product no longer exists.
	 *
	 * @var string
	 */
	public const RESOURCE_MISSING = 'resource_missing';

	/**
	 * The request to WordPress.com did not complete.
	 *
	 * @var string
	 */
	public const REQUEST_FAILED = 'request_failed';

	/**
	 * WordPress.com refused the request for a reason it did not name.
	 *
	 * @var string
	 */
	public const FAILED = 'failed';
}