feat(business_profile): add field in profile for manual retry (#9266)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sakil Mostak
2025-09-08 15:33:47 +05:30
committed by GitHub
parent c3ea9412f3
commit 9c11a6e66f
11 changed files with 56 additions and 0 deletions

View File

@ -3476,6 +3476,7 @@ impl ProfileCreateBridge for api::ProfileCreate {
merchant_category_code: self.merchant_category_code,
merchant_country_code: self.merchant_country_code,
dispute_polling_interval: self.dispute_polling_interval,
is_manual_retry_enabled: self.is_manual_retry_enabled,
}))
}
@ -3972,6 +3973,7 @@ impl ProfileUpdateBridge for api::ProfileUpdate {
merchant_category_code: self.merchant_category_code,
merchant_country_code: self.merchant_country_code,
dispute_polling_interval: self.dispute_polling_interval,
is_manual_retry_enabled: self.is_manual_retry_enabled,
},
)))
}

View File

@ -1289,6 +1289,7 @@ mod tests {
is_pre_network_tokenization_enabled: false,
merchant_category_code: None,
dispute_polling_interval: None,
is_manual_retry_enabled: None,
});
let business_profile = state

View File

@ -233,6 +233,7 @@ impl ForeignTryFrom<domain::Profile> for ProfileResponse {
merchant_category_code: item.merchant_category_code,
merchant_country_code: item.merchant_country_code,
dispute_polling_interval: item.dispute_polling_interval,
is_manual_retry_enabled: item.is_manual_retry_enabled,
})
}
}
@ -490,5 +491,6 @@ pub async fn create_profile_from_merchant_account(
merchant_category_code: request.merchant_category_code,
merchant_country_code: request.merchant_country_code,
dispute_polling_interval: request.dispute_polling_interval,
is_manual_retry_enabled: request.is_manual_retry_enabled,
}))
}