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): [BANKOFAMERICA] Implement Cards for Bank of America #2765

Merged
merged 34 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
457a386
feat(connector): [BANKOFAMERICA] Add Connector Template Code
deepanshu-iiitu Nov 2, 2023
4b545aa
feat(connector): [BANKOFAMERICA] Address PR comments
deepanshu-iiitu Nov 2, 2023
668b78f
docs(openapi): re-generate OpenAPI specification
github-actions[bot] Nov 2, 2023
c06a93c
feat(connector): [BANKOFAMERICA] Activate Bank of America
deepanshu-iiitu Nov 2, 2023
85659a2
feat(connector): [BANKOFAMERICA] Remove TODO
deepanshu-iiitu Nov 2, 2023
a80fe3c
Merge branch 'boa_template' into boa_card
deepanshu-iiitu Nov 2, 2023
b4cfbc8
docs(openapi): re-generate OpenAPI specification
github-actions[bot] Nov 2, 2023
d2c24c8
feat(connector): [BANKOFAMERICA] Build Headers
deepanshu-iiitu Nov 2, 2023
c80cc12
feat(connector): [BANKOFAMERICA] Add Auth, PSYNC, Capture & Void
deepanshu-iiitu Nov 3, 2023
646a16b
feat(connector): [BANKOFAMERICA] Fix Auth, PSYNC, Capture & Void
deepanshu-iiitu Nov 3, 2023
1575ba5
feat(connector): [BANKOFAMERICA] Fix Capture
deepanshu-iiitu Nov 3, 2023
38fbdb4
feat(connector):[ BANKOFAMERICA] Fix PSYNC
deepanshu-iiitu Nov 6, 2023
9b2d837
feat(connector): [BANKOFAMERICA] Add Refund, RSYNC Flow
deepanshu-iiitu Nov 6, 2023
8eba0e4
Merge branch 'main' into boa_card
deepanshu-iiitu Nov 6, 2023
7cf3aba
feat(connector): [BANKOFAMERICA] Fix
deepanshu-iiitu Nov 6, 2023
c6d5597
feat(connector): [BANKOFAMERICA] Fix Base/Minor amount
deepanshu-iiitu Nov 7, 2023
8f827df
Merge branch 'main' into boa_card
deepanshu-iiitu Nov 7, 2023
c75294c
feat(connector): [BANKOFAMERICA] Add card type function
deepanshu-iiitu Nov 8, 2023
86a96a9
feat(connector): [BANKOFAMERICA] Fix PR comments
deepanshu-iiitu Nov 8, 2023
e31901d
feat(connector): [BANKOFAMERICA] Address PR comments tryfrom
deepanshu-iiitu Nov 8, 2023
0c3e941
chore: Merge branch 'main' into boa_card
deepanshu-iiitu Nov 8, 2023
cd98423
feat(connector): Fix
deepanshu-iiitu Nov 8, 2023
80548e6
feat(connector): [BANKOFAMERICA] Resolve PR Comments Part 3
deepanshu-iiitu Nov 8, 2023
f5fd67c
feat(connector): [BANKOFAMERICA] Resolve PR Comments Part 4
deepanshu-iiitu Nov 9, 2023
7c05fa5
feat(connector): [BANKOFAMERICA] Add Postman Collection
deepanshu-iiitu Nov 10, 2023
5f13814
Merge branch 'main' into boa_card
deepanshu-iiitu Nov 10, 2023
d205fd6
feat: updated credentials for boa connector
swangi-kumari Nov 10, 2023
8519862
feat(connector): [BANKOFAMERICA] Add Auth Reversal
deepanshu-iiitu Nov 14, 2023
24bd5fa
feat(connector): [BANKOFAMERICA] Clippy Check
deepanshu-iiitu Nov 14, 2023
770c095
feat(connector): [BANKOFAMERICA] Add enum BankOfAmericaPaymentsResponse
deepanshu-iiitu Nov 16, 2023
1beaaa8
feat(connector): [BANKOFAMERICA] Resolve PR Comments
deepanshu-iiitu Nov 16, 2023
cc7750e
Merge branch 'main' into boa_card
deepanshu-iiitu Nov 16, 2023
6ab9303
Merge branch 'main' into boa_card
deepanshu-iiitu Nov 16, 2023
7c0a588
Merge branch 'main' into boa_card
deepanshu-iiitu Nov 16, 2023
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
Binary file modified .github/secrets/connector_auth.toml.gpg
Binary file not shown.
4 changes: 2 additions & 2 deletions crates/api_models/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub enum Connector {
Airwallex,
Authorizedotnet,
Bambora,
// Bankofamerica, Added as template code for future usage
Bankofamerica,
Bitpay,
Bluesnap,
Boku,
Expand Down Expand Up @@ -196,7 +196,7 @@ pub enum RoutableConnectors {
Adyen,
Airwallex,
Authorizedotnet,
// Bankofamerica, Added as template code for future usage
Bankofamerica,
Bitpay,
Bambora,
Bluesnap,
Expand Down
3 changes: 2 additions & 1 deletion crates/api_models/src/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,9 @@ impl From<RoutableConnectorChoice> for ast::ConnectorChoice {
RoutableConnectors::Adyen => euclid_enums::Connector::Adyen,
RoutableConnectors::Airwallex => euclid_enums::Connector::Airwallex,
RoutableConnectors::Authorizedotnet => euclid_enums::Connector::Authorizedotnet,
RoutableConnectors::Bitpay => euclid_enums::Connector::Bitpay,
RoutableConnectors::Bambora => euclid_enums::Connector::Bambora,
RoutableConnectors::Bankofamerica => euclid_enums::Connector::Bankofamerica,
RoutableConnectors::Bitpay => euclid_enums::Connector::Bitpay,
RoutableConnectors::Bluesnap => euclid_enums::Connector::Bluesnap,
RoutableConnectors::Boku => euclid_enums::Connector::Boku,
RoutableConnectors::Braintree => euclid_enums::Connector::Braintree,
Expand Down
3 changes: 2 additions & 1 deletion crates/euclid/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ pub enum Connector {
Adyen,
Airwallex,
Authorizedotnet,
Bitpay,
Bambora,
Bankofamerica,
Bitpay,
Bluesnap,
Boku,
Braintree,
Expand Down
132 changes: 132 additions & 0 deletions crates/router/src/configs/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,138 @@ impl Default for super::settings::RequiredFields {
common: HashMap::new(),
}
),
(
enums::Connector::Bankofamerica,
RequiredFieldFinal {
mandate: HashMap::new(),
non_mandate: HashMap::from(
[
(
"payment_method_data.card.card_number".to_string(),
RequiredFieldInfo {
required_field: "payment_method_data.card.card_number".to_string(),
display_name: "card_number".to_string(),
field_type: enums::FieldType::UserCardNumber,
value: None,
}
),
(
"payment_method_data.card.card_exp_month".to_string(),
RequiredFieldInfo {
required_field: "payment_method_data.card.card_exp_month".to_string(),
display_name: "card_exp_month".to_string(),
field_type: enums::FieldType::UserCardExpiryMonth,
value: None,
}
),
(
"payment_method_data.card.card_exp_year".to_string(),
RequiredFieldInfo {
required_field: "payment_method_data.card.card_exp_year".to_string(),
display_name: "card_exp_year".to_string(),
field_type: enums::FieldType::UserCardExpiryYear,
value: None,
}
),
(
"payment_method_data.card.card_cvc".to_string(),
RequiredFieldInfo {
required_field: "payment_method_data.card.card_cvc".to_string(),
display_name: "card_cvc".to_string(),
field_type: enums::FieldType::UserCardCvc,
value: None,
}
),
(
"payment_method_data.card.card_holder_name".to_string(),
RequiredFieldInfo {
required_field: "payment_method_data.card.card_holder_name".to_string(),
display_name: "card_holder_name".to_string(),
field_type: enums::FieldType::UserFullName,
value: None,
}
),
(
"email".to_string(),
RequiredFieldInfo {
required_field: "email".to_string(),
display_name: "email".to_string(),
field_type: enums::FieldType::UserEmailAddress,
value: None,
}
),
(
"billing.address.first_name".to_string(),
RequiredFieldInfo {
required_field: "billing.address.first_name".to_string(),
display_name: "billing_first_name".to_string(),
field_type: enums::FieldType::UserBillingName,
value: None,
}
),
(
"billing.address.last_name".to_string(),
RequiredFieldInfo {
required_field: "billing.address.last_name".to_string(),
display_name: "billing_last_name".to_string(),
field_type: enums::FieldType::UserBillingName,
value: None,
}
),
(
"billing.address.city".to_string(),
RequiredFieldInfo {
required_field: "billing.address.city".to_string(),
display_name: "city".to_string(),
field_type: enums::FieldType::UserAddressCity,
value: None,
}
),
(
"billing.address.state".to_string(),
RequiredFieldInfo {
required_field: "billing.address.state".to_string(),
display_name: "state".to_string(),
field_type: enums::FieldType::UserAddressState,
value: None,
}
),
(
"billing.address.zip".to_string(),
RequiredFieldInfo {
required_field: "billing.address.zip".to_string(),
display_name: "zip".to_string(),
field_type: enums::FieldType::UserAddressPincode,
value: None,
}
),
(
"billing.address.country".to_string(),
RequiredFieldInfo {
required_field: "billing.address.country".to_string(),
display_name: "country".to_string(),
field_type: enums::FieldType::UserAddressCountry{
options: vec![
"ALL".to_string(),
]
},
value: None,
}
),
(
"billing.address.line1".to_string(),
RequiredFieldInfo {
required_field: "billing.address.line1".to_string(),
display_name: "line1".to_string(),
field_type: enums::FieldType::UserAddressline1,
value: None,
}
),
]
),
common: HashMap::new(),
}
),
(
enums::Connector::Bluesnap,
RequiredFieldFinal {
Expand Down
Loading
Loading