feat(core): Add cardbrand union fetch logic for click to pay session response (#7858)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Sahkal Poddar <sahkalpoddar@Sahkals-MacBook-Air.local>
This commit is contained in:
Sahkal Poddar
2025-04-28 16:54:15 +05:30
committed by GitHub
parent ac66cbe3da
commit d2ff66bb7e
16 changed files with 193 additions and 56 deletions

View File

@ -8233,7 +8233,8 @@ pub struct ClickToPaySessionResponse {
pub dpa_id: String,
pub dpa_name: String,
pub locale: String,
pub card_brands: Vec<String>,
#[schema(value_type = Vec<CardNetwork>, example = "[Visa, Mastercard]")]
pub card_brands: HashSet<api_enums::CardNetwork>,
pub acquirer_bin: String,
pub acquirer_merchant_id: String,
pub merchant_category_code: String,