mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
refactor(merchant_id): create domain type for merchant_id (#5408)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -32,8 +32,8 @@ pub struct RefundRequest {
|
||||
pub refund_id: Option<String>,
|
||||
|
||||
/// The identifier for the Merchant Account
|
||||
#[schema(max_length = 255, example = "y3oqhf46pyzuxjbcn2giaqnb44")]
|
||||
pub merchant_id: Option<String>,
|
||||
#[schema(max_length = 255, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = Option<String>)]
|
||||
pub merchant_id: Option<common_utils::id_type::MerchantId>,
|
||||
|
||||
/// Total amount for which the refund is to be initiated. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc., If not provided, this will default to the full payment amount
|
||||
#[schema(value_type = Option<i64> , minimum = 100, example = 6540)]
|
||||
@ -103,7 +103,8 @@ pub struct RefundManualUpdateRequest {
|
||||
#[serde(skip)]
|
||||
pub refund_id: String,
|
||||
/// Merchant ID
|
||||
pub merchant_id: String,
|
||||
#[schema(value_type = String)]
|
||||
pub merchant_id: common_utils::id_type::MerchantId,
|
||||
/// The status for refund
|
||||
pub status: Option<RefundStatus>,
|
||||
/// The code for the error
|
||||
|
||||
Reference in New Issue
Block a user