-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
We're adding the 'Track Expense' action in this PR. After tracking an expense to your selfDM, there will be a whisper action that provides different options you can take
Currently after each tracked transaction, there is another reportAction added which is called ACTIONABLETRACKEXPENSEWHISPER. This will be the actionable whisper.
We already have a similar actionable whisper for inviting people here

There are 4 actions that can be taken
Request someone to pay it (Doc)
This will open up straight to the participant selector for the existing transaction. However, in this case it will move the transaction once the request is created as opposed to creating a new one.
API command: 'ConvertTrackedExpenseToRequest'
Parameters:
- authToken
- payerAccountID
- iouReportID
- chatReportID
- transactionID
- reportActionID
- createdChatReportActionID
- createdIOUReportActionID
- reportPreviewReportActionID
Categorize it (Doc)
This creates a workspace (if necessary), then moves it to the open expense report on the workspace chat, and opens the category editor.
API command: CategorizeTrackedExpense
- authToken
- policyID
- transactionID
- reportID
- reportActionID
- modifiedExpenseReportActionID
- announceChatReportID
- announceCreatedReportActionID
- adminsChatReportID
- adminsCreatedReportActionID
- expenseChatReportID
- expenseCreatedReportActionID
Share it with my accountant (Doc)
This creates a workspace (if necessary), moves it to a report on the workspace chat, and opens the invite flow.
API command: ShareTrackedExpense
- authToken
- policyID
- transactionID
- reportID
- reportActionID
- modifiedExpenseReportActionID
- announceChatReportID
- announceCreatedReportActionID
- adminsChatReportID
- adminsCreatedReportActionID
- expenseChatReportID
- expenseCreatedReportActionID
Nothing for now
Hides the actionable whisper
API command: DismissActionableWhisper
- authToken
- reportActionID
Note: To get started, you will need to branch off this existing PR. We haven't done full flow testing of the API commands, so there may be some additional BE changes that are required that you might find through working on this PR that we can work on in parallel.
We're also trying to launch this ASAP. Please do NOT pick this up unless you can spend your full attention on this
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~015906865d86966bf9
- Upwork Job ID: 1770146045833195520
- Last Price Increase: 2024-05-07



