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:
Debarati Ghatak
2024-12-19 18:31:48 +05:30
committed by GitHub
parent 092c79ec40
commit 46aad503b0
11 changed files with 53 additions and 1 deletions

View File

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