Skip to content

Commit

Permalink
Merge pull request #3695 from Expensify/jasper-requestCallAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
deetergp authored Jun 21, 2021
2 parents 5e00c66 + 44e2b21 commit c1536a8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/libs/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,21 @@ function Policy_Create(parameters) {
return Network.post(commandName, parameters);
}

/**
* @param {Object} parameters
* @param {String} parameters.taskID
* @param {String} parameters.policyID
* @param {String} parameters.firstName
* @param {String} parameters.lastName
* @param {String} parameters.phoneNumber
* @returns {Promise}
*/
function Inbox_CallUser(parameters) {
const commandName = 'Inbox_CallUser';
requireParameters(['taskID', 'policyID', 'firstName', 'lastName', 'phoneNumber'], parameters, commandName);
return Network.post(commandName, parameters);
}

export {
Authenticate,
BankAccount_Create,
Expand All @@ -956,6 +971,7 @@ export {
GetPolicySummaryList,
GetRequestCountryCode,
Graphite_Timer,
Inbox_CallUser,
Log,
PayIOU,
PayWithWallet,
Expand Down
14 changes: 14 additions & 0 deletions src/libs/actions/Inbox.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {Inbox_CallUser} from '../API';

function requestConciergeDMCall(policyID, firstName, lastName, phoneNumber) {
return Inbox_CallUser({
policyID,
firstName,
lastName,
phoneNumber,
taskID: 'ExpensifyCashConciergeDM',
});
}

// eslint-disable-next-line import/prefer-default-export
export {requestConciergeDMCall};

0 comments on commit c1536a8

Please sign in to comment.