mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(payments): [Payment links] add configs for payment link (#7340)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -409,6 +409,9 @@ 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,
|
||||
skip_status_screen: item.skip_status_screen,
|
||||
background_colour: item.background_colour,
|
||||
payment_button_text_colour: item.payment_button_text_colour,
|
||||
}
|
||||
}
|
||||
fn convert_back(self) -> api_models::admin::PaymentLinkConfigRequest {
|
||||
@ -427,6 +430,9 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
payment_button_text,
|
||||
custom_message_for_card_terms,
|
||||
payment_button_colour,
|
||||
skip_status_screen,
|
||||
background_colour,
|
||||
payment_button_text_colour,
|
||||
} = self;
|
||||
api_models::admin::PaymentLinkConfigRequest {
|
||||
theme,
|
||||
@ -449,6 +455,9 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
payment_button_text,
|
||||
custom_message_for_card_terms,
|
||||
payment_button_colour,
|
||||
skip_status_screen,
|
||||
background_colour,
|
||||
payment_button_text_colour,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user