mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(payment-link): alternate text for manual captures (#7574)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -2903,6 +2903,8 @@ pub struct PaymentLinkConfigRequest {
|
||||
/// Boolean for controlling whether or not to show the explicit consent for storing cards
|
||||
#[schema(value_type = Option<PaymentLinkShowSdkTerms>, example = "always")]
|
||||
pub show_card_terms: Option<api_enums::PaymentLinkShowSdkTerms>,
|
||||
/// Boolean to control payment button text for setup mandate calls
|
||||
pub is_setup_mandate_flow: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
|
||||
@ -2998,6 +3000,8 @@ pub struct PaymentLinkConfig {
|
||||
/// Boolean for controlling whether or not to show the explicit consent for storing cards
|
||||
#[schema(value_type = Option<PaymentLinkShowSdkTerms>, example = "always")]
|
||||
pub show_card_terms: Option<api_enums::PaymentLinkShowSdkTerms>,
|
||||
/// Boolean to control payment button text for setup mandate calls
|
||||
pub is_setup_mandate_flow: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
|
||||
|
||||
@ -8081,6 +8081,9 @@ pub struct PaymentLinkDetails {
|
||||
pub payment_form_header_text: Option<String>,
|
||||
pub payment_form_label_type: Option<api_enums::PaymentLinkSdkLabelType>,
|
||||
pub show_card_terms: Option<api_enums::PaymentLinkShowSdkTerms>,
|
||||
pub is_setup_mandate_flow: Option<bool>,
|
||||
pub capture_method: Option<common_enums::CaptureMethod>,
|
||||
pub setup_future_usage_applied: Option<common_enums::FutureUsage>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, Clone)]
|
||||
@ -8123,6 +8126,8 @@ pub struct PaymentLinkStatusDetails {
|
||||
pub transaction_details: Option<Vec<admin::PaymentLinkTransactionDetails>>,
|
||||
pub unified_code: Option<String>,
|
||||
pub unified_message: Option<String>,
|
||||
pub capture_method: Option<common_enums::CaptureMethod>,
|
||||
pub setup_future_usage_applied: Option<common_enums::FutureUsage>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, ToSchema, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user