mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(payments): [Payment links] Add config for changing button text for payment links (#6860)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -217,6 +217,7 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
background_image,
|
||||
)
|
||||
}),
|
||||
payment_button_text: item.payment_button_text,
|
||||
}
|
||||
}
|
||||
fn convert_back(self) -> api_models::admin::PaymentLinkConfigRequest {
|
||||
@ -232,6 +233,7 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
transaction_details,
|
||||
background_image,
|
||||
details_layout,
|
||||
payment_button_text,
|
||||
} = self;
|
||||
api_models::admin::PaymentLinkConfigRequest {
|
||||
theme,
|
||||
@ -251,6 +253,7 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
}),
|
||||
background_image: background_image
|
||||
.map(|background_image| background_image.convert_back()),
|
||||
payment_button_text,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user