-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bancontact-card-dynamic-field
- Loading branch information
Showing
128 changed files
with
5,532 additions
and
1,038 deletions.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
use super::{admin, enums}; | ||
|
||
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)] | ||
pub struct ActionUrlRequest { | ||
pub connector: enums::Connector, | ||
pub connector_id: String, | ||
pub return_url: String, | ||
} | ||
|
||
#[derive(serde::Serialize, Debug, Clone)] | ||
#[serde(rename_all = "lowercase")] | ||
pub enum ActionUrlResponse { | ||
PayPal(PayPalActionUrlResponse), | ||
} | ||
|
||
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)] | ||
pub struct OnboardingSyncRequest { | ||
pub profile_id: String, | ||
pub connector_id: String, | ||
pub connector: enums::Connector, | ||
} | ||
|
||
#[derive(serde::Serialize, Debug, Clone)] | ||
pub struct PayPalActionUrlResponse { | ||
pub action_url: String, | ||
} | ||
|
||
#[derive(serde::Serialize, Debug, Clone)] | ||
#[serde(rename_all = "lowercase")] | ||
pub enum OnboardingStatus { | ||
PayPal(PayPalOnboardingStatus), | ||
} | ||
|
||
#[derive(serde::Serialize, Debug, Clone)] | ||
#[serde(rename_all = "snake_case")] | ||
pub enum PayPalOnboardingStatus { | ||
AccountNotFound, | ||
PaymentsNotReceivable, | ||
PpcpCustomDenied, | ||
MorePermissionsNeeded, | ||
EmailNotVerified, | ||
Success(PayPalOnboardingDone), | ||
ConnectorIntegrated(admin::MerchantConnectorResponse), | ||
} | ||
|
||
#[derive(serde::Serialize, Debug, Clone)] | ||
pub struct PayPalOnboardingDone { | ||
pub payer_id: String, | ||
} | ||
|
||
#[derive(serde::Serialize, Debug, Clone)] | ||
pub struct PayPalIntegrationDone { | ||
pub connector_id: String, | ||
} |
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,3 +1,4 @@ | ||
pub mod connector_onboarding; | ||
pub mod customer; | ||
pub mod gsm; | ||
mod locker_migration; | ||
|
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,12 @@ | ||
use common_utils::events::{ApiEventMetric, ApiEventsType}; | ||
|
||
use crate::connector_onboarding::{ | ||
ActionUrlRequest, ActionUrlResponse, OnboardingStatus, OnboardingSyncRequest, | ||
}; | ||
|
||
common_utils::impl_misc_api_event_type!( | ||
ActionUrlRequest, | ||
ActionUrlResponse, | ||
OnboardingSyncRequest, | ||
OnboardingStatus | ||
); |
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.