-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Update corpay fields logic, integrate API #52812
Merged
madmax330
merged 32 commits into
Expensify:main
from
callstack-internal:feature/GR-step-two-api-integration
Dec 30, 2024
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
dc0c88f
feat: Update corpay fields logic, integrate API
pasyukevich ac7c181
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich d4b2165
fix: variable value
pasyukevich 54e779f
feat: Add Corpay bank account creation parameters and update related …
pasyukevich 026f483
fix: Update variable name for destination country in currency selection
pasyukevich 8f819ee
feat: Enhance Corpay bank account creation with loading and success s…
pasyukevich f34597b
feat: Add loading and success states for Corpay bank account fields
pasyukevich 8d81057
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich 70d9667
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich 7d70ba6
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich 4fe1b77
Refactor reimbursement account state management to replace isSuccess …
pasyukevich ce518e2
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich d86cfbb
Update title handling for account holder country in confirmation step
pasyukevich 3db5474
Refactor reimbursement account handling to include isSuccess flag and…
pasyukevich ba6e9a8
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich 8bd08c7
Remove unused parameter 'preferredMethod' from Confirmation component
pasyukevich d6eacef
Remove redundant condition from reimbursement account success check i…
pasyukevich c3cd9c6
Add isLoading flag cleaning
pasyukevich 1482c01
Update formID reference in Confirmation component and adjust styles
pasyukevich 199e4db
Add margin styles to submit button in Confirmation component
pasyukevich b59d729
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich 6970071
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich 3fa6692
Add loading indicator to BankAccountDetails and update Confirmation s…
pasyukevich b85737c
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich 2db773b
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich 478a3fd
fix: eslint, policyID update to possible undefined
pasyukevich 00b8ec4
fix: COUNTRY field to reimbursement account form and update related …
pasyukevich eae246d
fix: rollback redundant changes
pasyukevich 1eab5d2
fix: clear draft values for reimbursement account form on currency se…
pasyukevich ccc859e
Merge branch 'main' into feature/GR-step-two-api-integration
pasyukevich fe927bf
fix: clear form errors on confirmation step and update country field …
pasyukevich a87e41f
fix: remove unnecessary flex style from bank account details components
pasyukevich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type BankAccountCreateCorpayParams = { | ||
type: number; | ||
isSavings: boolean; | ||
isWithdrawal: boolean; | ||
inputs: string; | ||
}; | ||
|
||
export default BankAccountCreateCorpayParams; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type GetCorpayBankAccountFieldsParams = { | ||
countryISO: string; | ||
currency: string; | ||
isWithdrawal: boolean; | ||
isBusinessBankAccount: boolean; | ||
}; | ||
|
||
export default GetCorpayBankAccountFieldsParams; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
type VerifyIdentityForBankAccountParams = { | ||
bankAccountID: number; | ||
onfidoData: string; | ||
policyID: string; | ||
policyID?: string; | ||
}; | ||
export default VerifyIdentityForBankAccountParams; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: This is wrong. PolicyID should not be optional. Confirmed this with internal team about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should we handle this case then?
https://github.com/Expensify/App/blob/main/contributingGuides/STYLE.md#case-1-argument-of-type-string--undefined-is-not-assignable-to-parameter-of-type-string
We have the example exactly with
policyID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will handle this. Not to worry here.