Skip to content
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(connector): [BAMBORA, BITPAY, STAX] Move connector to hyperswitch_connectors #5450

Merged
merged 14 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions crates/common_enums/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,25 @@ pub enum ConnectorType {
AuthenticationProcessor,
}

#[derive(Debug, Eq, PartialEq)]
pub enum PaymentAction {
PSync,
CompleteAuthorize,
PaymentAuthenticateCompleteAuthorize,
}

#[derive(Clone, PartialEq)]
pub enum CallConnectorAction {
Trigger,
Avoid,
StatusUpdate {
status: AttemptStatus,
error_code: Option<String>,
error_message: Option<String>,
},
HandleResponse(Vec<u8>),
}

/// The three letter ISO currency code in uppercase. Eg: 'USD' for the United States Dollar.
#[allow(clippy::upper_case_acronyms)]
#[derive(
Expand Down
1 change: 1 addition & 0 deletions crates/hyperswitch_connectors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"
strum = { version = "0.26", features = ["derive"] }
time = "0.3.35"
url = "2.5.0"
uuid = { version = "1.8.0", features = ["v4"] }

# First party crates
Expand Down
5 changes: 4 additions & 1 deletion crates/hyperswitch_connectors/src/connectors.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
pub mod bambora;
pub mod bitpay;
pub mod fiserv;
pub mod helcim;
pub mod stax;

pub use self::{fiserv::Fiserv, helcim::Helcim};
pub use self::{bambora::Bambora, bitpay::Bitpay, fiserv::Fiserv, helcim::Helcim, stax::Stax};
Loading
Loading