mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(payments): [Payment links] Add configs for payment link (#7288)
This commit is contained in:
@ -404,6 +404,8 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
)
|
||||
}),
|
||||
payment_button_text: item.payment_button_text,
|
||||
custom_message_for_card_terms: item.custom_message_for_card_terms,
|
||||
payment_button_colour: item.payment_button_colour,
|
||||
}
|
||||
}
|
||||
fn convert_back(self) -> api_models::admin::PaymentLinkConfigRequest {
|
||||
@ -420,6 +422,8 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
background_image,
|
||||
details_layout,
|
||||
payment_button_text,
|
||||
custom_message_for_card_terms,
|
||||
payment_button_colour,
|
||||
} = self;
|
||||
api_models::admin::PaymentLinkConfigRequest {
|
||||
theme,
|
||||
@ -440,6 +444,8 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
background_image: background_image
|
||||
.map(|background_image| background_image.convert_back()),
|
||||
payment_button_text,
|
||||
custom_message_for_card_terms,
|
||||
payment_button_colour,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user