2024-11-18 18:58:54 +01:00
|
|
|
/**
|
|
|
|
* Name of the module-store in the main Redux store.
|
|
|
|
*
|
|
|
|
* Helps to isolate data, used by reducer and selectors.
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
2024-11-20 17:21:09 +01:00
|
|
|
export const STORE_NAME = 'wc/paypal/common';
|
2024-11-18 18:58:54 +01:00
|
|
|
|
|
|
|
/**
|
2024-12-06 19:07:44 +01:00
|
|
|
* REST path to hydrate data of this module by loading data from the WP DB.
|
2024-11-18 18:58:54 +01:00
|
|
|
*
|
|
|
|
* Used by resolvers.
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
2024-11-20 17:21:09 +01:00
|
|
|
export const REST_HYDRATE_PATH = '/wc/v3/wc_paypal/common';
|
2024-11-18 18:58:54 +01:00
|
|
|
|
2024-12-06 19:10:33 +01:00
|
|
|
/**
|
|
|
|
* REST path to fetch merchant details from the WordPress DB.
|
|
|
|
*
|
|
|
|
* Used by controls.
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
|
|
|
export const REST_HYDRATE_MERCHANT_PATH = '/wc/v3/wc_paypal/common/merchant';
|
|
|
|
|
2024-11-18 18:58:54 +01:00
|
|
|
/**
|
|
|
|
* REST path to persist data of this module to the WP DB.
|
|
|
|
*
|
|
|
|
* Used by controls.
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
2024-11-20 17:21:09 +01:00
|
|
|
export const REST_PERSIST_PATH = '/wc/v3/wc_paypal/common';
|
2024-11-21 16:16:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* REST path to perform the manual connection check, using client ID and secret,
|
|
|
|
*
|
|
|
|
* Used by: Controls
|
2025-01-02 12:26:40 +01:00
|
|
|
* See: AuthenticateRestEndpoint.php
|
2024-11-21 16:16:20 +01:00
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
2025-01-02 12:26:40 +01:00
|
|
|
export const REST_MANUAL_CONNECTION_PATH = '/wc/v3/wc_paypal/authenticate';
|
2024-11-21 19:07:32 +01:00
|
|
|
|
|
|
|
/**
|
2024-12-03 16:28:28 +01:00
|
|
|
* REST path to generate an ISU URL for the PayPal-login.
|
2024-11-21 19:07:32 +01:00
|
|
|
*
|
|
|
|
* Used by: Controls
|
|
|
|
* See: LoginLinkRestEndpoint.php
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
2024-12-03 16:28:28 +01:00
|
|
|
export const REST_CONNECTION_URL_PATH = '/wc/v3/wc_paypal/login_link';
|
2024-12-16 13:12:38 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* REST path to refresh the feature status.
|
|
|
|
*
|
|
|
|
* Used by: Controls
|
|
|
|
* See: RefreshFeatureStatusEndpoint.php
|
|
|
|
*
|
|
|
|
* @type {string}
|
|
|
|
*/
|
|
|
|
export const REST_REFRESH_FEATURES_PATH =
|
|
|
|
'/wc/v3/wc_paypal/refresh-feature-status';
|