mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(router): [worldpayvantiv] add support for moto flag for v1 and extend vantiv api contract (#8800)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Jagan <jaganelavarasan@gmail.com>
This commit is contained in:
@ -1186,6 +1186,10 @@ pub struct PaymentsRequest {
|
||||
#[serde(skip_deserializing)]
|
||||
#[remove_in(PaymentsUpdateRequest, PaymentsCreateRequest, PaymentsConfirmRequest)]
|
||||
pub is_payment_id_from_merchant: bool,
|
||||
|
||||
/// Indicates how the payment was initiated (e.g., ecommerce, mail, or telephone).
|
||||
#[schema(value_type = Option<PaymentChannel>)]
|
||||
pub payment_channel: Option<common_enums::PaymentChannel>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
@ -5156,6 +5160,10 @@ pub struct PaymentsResponse {
|
||||
/// The browser information used for this payment
|
||||
pub browser_info: Option<serde_json::Value>,
|
||||
|
||||
/// Indicates how the payment was initiated (e.g., ecommerce, mail, or telephone).
|
||||
#[schema(value_type = Option<PaymentChannel>)]
|
||||
pub payment_channel: Option<common_enums::PaymentChannel>,
|
||||
|
||||
/// A unique identifier for the payment method used in this payment. If the payment method was saved or tokenized, this ID can be used to reference it for future transactions or recurring payments.
|
||||
pub payment_method_id: Option<String>,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user