New action to refresh merchant data from server

This commit is contained in:
Philipp Stracker 2024-12-06 19:10:33 +01:00
parent c97464d7e2
commit b4d1596fd1
No known key found for this signature in database
6 changed files with 70 additions and 0 deletions

View file

@ -180,3 +180,12 @@ export const connectViaIdAndSecret = function* () {
useSandbox,
};
};
/**
* Side effect. Clears and refreshes the merchant data via a REST request.
*
* @return {Action} The action.
*/
export const refreshMerchantData = function* () {
return yield { type: ACTION_TYPES.DO_REFRESH_MERCHANT };
};