mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
feat(payment_link): expose configurations for payment links (#7742)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -422,6 +422,9 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
sdk_ui_rules: item.sdk_ui_rules,
|
||||
payment_link_ui_rules: item.payment_link_ui_rules,
|
||||
enable_button_only_on_form_ready: item.enable_button_only_on_form_ready,
|
||||
payment_form_header_text: item.payment_form_header_text,
|
||||
payment_form_label_type: item.payment_form_label_type,
|
||||
show_card_terms: item.show_card_terms,
|
||||
}
|
||||
}
|
||||
fn convert_back(self) -> api_models::admin::PaymentLinkConfigRequest {
|
||||
@ -446,6 +449,9 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
sdk_ui_rules,
|
||||
payment_link_ui_rules,
|
||||
enable_button_only_on_form_ready,
|
||||
payment_form_header_text,
|
||||
payment_form_label_type,
|
||||
show_card_terms,
|
||||
} = self;
|
||||
api_models::admin::PaymentLinkConfigRequest {
|
||||
theme,
|
||||
@ -474,6 +480,9 @@ impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkConfigRequest>
|
||||
sdk_ui_rules,
|
||||
payment_link_ui_rules,
|
||||
enable_button_only_on_form_ready,
|
||||
payment_form_header_text,
|
||||
payment_form_label_type,
|
||||
show_card_terms,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user