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:
AkshayaFoiger
2025-08-01 16:01:26 +05:30
committed by GitHub
parent 82cf2cb146
commit 8ac5e50422
25 changed files with 347 additions and 60 deletions

View File

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