feat(payments): [Payment links] Add configs for payment link (#7288)

This commit is contained in:
Debarati Ghatak
2025-02-18 19:36:45 +05:30
committed by GitHub
parent 90fbb62ecd
commit 72080c67c7
16 changed files with 141 additions and 38 deletions

View File

@ -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,
}
}
}