Skip to content

Commit

Permalink
Merge branch 'main' into fix/39904-here-is-ur-magic-code-shows-briefly
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Apr 17, 2024
2 parents bdeeb5a + 5c43aa5 commit 23963de
Show file tree
Hide file tree
Showing 252 changed files with 6,280 additions and 4,702 deletions.
4 changes: 4 additions & 0 deletions .github/actions/javascript/awaitStagingDeploys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12738,6 +12738,10 @@ function promiseWhile(condition, action) {
else {
const actionResult = action?.();
console.info('[promiseWhile] promiseWhile() actionResult', actionResult);
if (!actionResult) {
resolve();
return;
}
Promise.resolve(actionResult).then(loop).catch(reject);
}
};
Expand Down
6 changes: 6 additions & 0 deletions .github/libs/promiseWhile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ function promiseWhile(condition: () => boolean, action: (() => Promise<void>) |
} else {
const actionResult = action?.();
console.info('[promiseWhile] promiseWhile() actionResult', actionResult);

if (!actionResult) {
resolve();
return;
}

Promise.resolve(actionResult).then(loop).catch(reject);
}
};
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# - git diff is used to see the files that were added on this branch
# - gh pr view is used to list files touched by this PR. Git diff may give false positives if the branch isn't up-to-date with main
# - wc counts the words in the result of the intersection
count_new_js=$(comm -1 -2 <(git diff --name-only --diff-filter=A origin/main HEAD -- 'src/*.js') <(gh pr view ${{ github.event.pull_request.number }} --json files | jq -r '.files | map(.path) | .[]') | wc -l)
count_new_js=$(comm -1 -2 <(git diff --name-only --diff-filter=A origin/main HEAD -- 'src/*.js' '__mocks__/*.js' '.storybook/*.js' 'assets/*.js' 'config/*.js' 'desktop/*.js' 'jest/*.js' 'scripts/*.js' 'tests/*.js' 'web/*.js' 'workflow_tests/*.js' '.github/libs/*.js' '.github/scripts/*.js') <(gh pr view ${{ github.event.pull_request.number }} --json files | jq -r '.files | map(.path) | .[]') | wc -l)
if [ "$count_new_js" -gt "0" ]; then
echo "ERROR: Found new JavaScript files in the project; use TypeScript instead."
exit 1
Expand Down
4 changes: 2 additions & 2 deletions __mocks__/react-native-onyx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/* eslint-disable rulesdir/prefer-onyx-connect-in-libs */
import type {ConnectOptions, OnyxKey} from 'react-native-onyx';
import Onyx, {withOnyx} from 'react-native-onyx';
import Onyx, {useOnyx, withOnyx} from 'react-native-onyx';

let connectCallbackDelay = 0;
function addDelayToConnectCallback(delay: number) {
Expand Down Expand Up @@ -40,4 +40,4 @@ const reactNativeOnyxMock: ReactNativeOnyxMock = {
};

export default reactNativeOnyxMock;
export {withOnyx};
export {withOnyx, useOnyx};
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001046204
versionName "1.4.62-4"
versionCode 1001046213
versionName "1.4.62-13"
// Supported language variants must be declared here to avoid from being removed during the compilation.
// This also helps us to not include unnecessary language variants in the APK.
resConfigs "en", "es"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
title: Deposit Accounts - USD
description: How to add a deposit account to receive payments for yourself or your business (US)
---
# Overview

There are two types of deposit-only accounts:

1. If you're an employee seeking reimbursement for expenses you’ve incurred, you’ll add a **Personal deposit-only bank account**.
2. If you're a vendor seeking payment for goods or services, you’ll add a **Business deposit-only account**.

# How to connect a personal deposit-only bank account

**Connect a personal deposit-only bank account if you are:**

- An employee based in the US who gets reimbursed by their employer
- An employee based in Australia who gets reimbursed by their company via batch payments
- An international (non-US) employee whose US-based employers send international reimbursements

**To establish the connection to a personal bank account, follow these steps:**

1. Navigate to your **Settings > Account > Payments** and click the **Add Deposit-Only Bank Account** button.
2. Click **Log into your bank** button and click **Continue** on the Plaid connection pop-up window.
3. Search for your bank account in the list of banks and follow the prompts to sign-in to your bank account.
4. Enter your bank login credentials when prompted.
- If your bank doesn't appear, click the 'x' in the upper right corner of the Plaid pop-up window and click **Connect Manually**.
- Enter your account information, then click **Save & Continue**.

You should be all set! You’ll receive reimbursement for your expense reports directly to this bank account.

# How to connect a business deposit-only bank account

**Connect a business deposit-only bank account if you are:**

- A US-based vendor who wants to be paid directly for bills sent to customers/clients
- A US-based vendor who wants to pay invoices directly via Expensify

**To establish the connection to a business bank account, follow these steps:**

1. Navigate to your **Settings > Account > Payments and click the Add Deposit-Only Bank Account** button.
2. Click **Log into your bank** button and click **Continue** on the Plaid connection pop-up window.
3. Search for your bank account in the list of banks and follow the prompts to sign-in to your bank account.
4. Enter your bank login credentials when prompted.
- If your bank doesn't appear, click the 'x' in the upper right corner of the Plaid pop-up window and click **Connect Manually**.
- Enter your account information, then click **Save & Continue**.
5. If you see the option to “Switch to Business” after entering the account owner information, click that link.
6. Enter your Company Name and FEIN or TIN information.
7. Enter your company’s website formatted as https://www.domain.com.

You should be all set! The bank account will display as a deposit-only business account, and you’ll be paid directly for any invoices you submit for payment.

# How to delete a deposit-only bank account

**To delete a deposit-only bank account, do the following:**

1. Navigate to **Settings > Account > Payments > Bank Accounts**
2. Click the **Delete** next to the bank account you want to remove

{% include faq-begin.md %}

## **What happens if my bank requires an additional security check before adding it to a third-party?**

If your bank account has 2FA enabled or another security step, you should be prompted to complete this when adding the account. If not, and you encounter an error, you can always select the option to “Connect Manually”. Either way, please double check that you are entering the correct bank account details to ensure successful payments.

## **What if I also want to pay employees with my business bank account?**

If you’ve added a business deposit-only account and also wish to also pay employees, vendors, or utilize the Expensify Card with this bank account, select “Verify” on the listed bank account. This will take you through the additional verification steps to use this account to issue payments.

## **I connected my deposit-only bank account – Why haven’t I received my reimbursement?**

There are a few reasons a reimbursement may be unsuccessful. The first step is to review the estimated deposit date on the report. If it’s after that date and you still haven’t seen the funds, it could have been unsuccessful because:
- The incorrect account was added. If you believe you may have entered the wrong account, please reach out to Concierge and provide the Report ID for the missing reimbursement.
- Your account wasn’t set up for Direct Deposit/ACH. You may want to contact your bank to confirm.

If you aren’t sure, please reach out to Concierge and we can assist!

{% include faq-end.md %}
Loading

0 comments on commit 23963de

Please sign in to comment.