From d09bb3690abded52c8f55a1bb18493d20e7ba0a4 Mon Sep 17 00:00:00 2001 From: Carlos Miceli Date: Thu, 26 Dec 2024 14:38:08 -0300 Subject: [PATCH] add command --- lib/API.jsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/API.jsx b/lib/API.jsx index f8587ba0..610ca38c 100644 --- a/lib/API.jsx +++ b/lib/API.jsx @@ -432,6 +432,20 @@ export default function API(network, args) { return performPOSTRequest(commandName, newParameters); }, + /** + * Resets the status of SMS delivery of a phone number + * @param {Object} parameters + * @param {String} parameters.email + * @returns {ExpensifyAPIDeferred} + */ + resetSMSDeliveryFailureStatus(parameters) { + const commandName = 'ResetSMSDeliveryFailureStatus'; + requireParameters(['email'], parameters, commandName); + + const newParameters = {...parameters, api_setCookie: false}; + return performPOSTRequest(commandName, newParameters); + }, + /** * Sets the password for an account *