-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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(core): Create Payout Webhook Flow #4696
Merged
Merged
Changes from 6 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
6987b9e
feat: create payout webhook flow
Sakilmostak cc3acce
feat: add payout webhooks to adyen
Sakilmostak 83b317c
docs(openapi): re-generate OpenAPI specification
hyperswitch-bot[bot] 5707288
refactor: resolve ci checks
Sakilmostak a500203
refactor: resolve msrv check
Sakilmostak 8457acb
refactor: use payout_attempt_id as connector_request_reference_id
Sakilmostak 2c8d279
refactor: add necessary feature flags
Sakilmostak 730f7cd
Merge branch 'main' into payouts_webhook
Sakilmostak e06c78a
docs(openapi): re-generate OpenAPI specification
hyperswitch-bot[bot] 3d062e4
refactor: resolve ci checks
Sakilmostak db57662
refactor: comments
Sakilmostak 834a394
docs(openapi): re-generate OpenAPI specification
hyperswitch-bot[bot] 7c8a896
refactor: add feature flags to enums
Sakilmostak 0f1f62f
refactor: merge main
Sakilmostak d68e801
refactor: resolve conflict with main
Sakilmostak 94f8ea2
refactor: convert created to intiated
Sakilmostak db98a7b
chore: run formatter
hyperswitch-bot[bot] 322e980
docs(openapi): re-generate OpenAPI specification
hyperswitch-bot[bot] a7c466f
refactor: spell check
Sakilmostak e4bfb1d
refactor: resolve clippy
Sakilmostak feb8653
refactor: feature flag for AppState
Sakilmostak 22733ca
Merge branch 'main' into payouts_webhook
Sakilmostak 407f17c
refactor: resolve conflict with main
Sakilmostak 39973a2
refactor: resolve comments
Sakilmostak 7d11db3
refactor: resolve comments
Sakilmostak 2ebb4d5
refactor: comments
Sakilmostak 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 |
---|---|---|
|
@@ -68,6 +68,7 @@ pub enum EventObjectType { | |
RefundDetails, | ||
DisputeDetails, | ||
MandateDetails, | ||
PayoutDetails, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. feature flag? |
||
} | ||
|
||
#[derive( | ||
|
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 |
---|---|---|
|
@@ -81,6 +81,20 @@ impl PayoutAttempt { | |
.await | ||
} | ||
|
||
pub async fn find_by_merchant_id_connector_payout_id( | ||
conn: &PgPooledConn, | ||
merchant_id: &str, | ||
connector_payout_id: &str, | ||
) -> StorageResult<Self> { | ||
generics::generic_find_one::<<Self as HasTable>::Table, _, _>( | ||
conn, | ||
dsl::merchant_id | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we please create an index for merchant_id, connector_payout_id |
||
.eq(merchant_id.to_owned()) | ||
.and(dsl::connector_payout_id.eq(connector_payout_id.to_owned())), | ||
) | ||
.await | ||
} | ||
|
||
pub async fn update_by_merchant_id_payout_id( | ||
conn: &PgPooledConn, | ||
merchant_id: &str, | ||
|
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.
Possible to add
PayoutCreated
? Trigger - when payout is created at connector's end.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.
shouldn't we add feature flags here as well?