mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat(router): add support for stateful straight through routing (#752)
This commit is contained in:
@ -15,7 +15,7 @@ pub struct PaymentAttempt {
|
||||
pub amount: i64,
|
||||
pub currency: Option<storage_enums::Currency>,
|
||||
pub save_to_locker: Option<bool>,
|
||||
pub connector: Option<String>,
|
||||
pub connector: Option<serde_json::Value>,
|
||||
pub error_message: Option<String>,
|
||||
pub offer_amount: Option<i64>,
|
||||
pub surcharge_amount: Option<i64>,
|
||||
@ -59,7 +59,7 @@ pub struct PaymentAttemptNew {
|
||||
pub currency: Option<storage_enums::Currency>,
|
||||
// pub auto_capture: Option<bool>,
|
||||
pub save_to_locker: Option<bool>,
|
||||
pub connector: Option<String>,
|
||||
pub connector: Option<serde_json::Value>,
|
||||
pub error_message: Option<String>,
|
||||
pub offer_amount: Option<i64>,
|
||||
pub surcharge_amount: Option<i64>,
|
||||
@ -105,7 +105,7 @@ pub enum PaymentAttemptUpdate {
|
||||
},
|
||||
UpdateTrackers {
|
||||
payment_token: Option<String>,
|
||||
connector: Option<String>,
|
||||
connector: Option<serde_json::Value>,
|
||||
},
|
||||
AuthenticationTypeUpdate {
|
||||
authentication_type: storage_enums::AuthenticationType,
|
||||
@ -117,7 +117,7 @@ pub enum PaymentAttemptUpdate {
|
||||
authentication_type: Option<storage_enums::AuthenticationType>,
|
||||
payment_method: Option<storage_enums::PaymentMethod>,
|
||||
browser_info: Option<serde_json::Value>,
|
||||
connector: Option<String>,
|
||||
connector: Option<serde_json::Value>,
|
||||
payment_token: Option<String>,
|
||||
payment_method_data: Option<serde_json::Value>,
|
||||
payment_method_type: Option<storage_enums::PaymentMethodType>,
|
||||
@ -129,7 +129,7 @@ pub enum PaymentAttemptUpdate {
|
||||
},
|
||||
ResponseUpdate {
|
||||
status: storage_enums::AttemptStatus,
|
||||
connector: Option<String>,
|
||||
connector: Option<serde_json::Value>,
|
||||
connector_transaction_id: Option<String>,
|
||||
authentication_type: Option<storage_enums::AuthenticationType>,
|
||||
payment_method_id: Option<Option<String>>,
|
||||
@ -140,7 +140,7 @@ pub enum PaymentAttemptUpdate {
|
||||
status: storage_enums::AttemptStatus,
|
||||
},
|
||||
ErrorUpdate {
|
||||
connector: Option<String>,
|
||||
connector: Option<serde_json::Value>,
|
||||
status: storage_enums::AttemptStatus,
|
||||
error_code: Option<String>,
|
||||
error_message: Option<String>,
|
||||
@ -154,7 +154,7 @@ pub struct PaymentAttemptUpdateInternal {
|
||||
currency: Option<storage_enums::Currency>,
|
||||
status: Option<storage_enums::AttemptStatus>,
|
||||
connector_transaction_id: Option<String>,
|
||||
connector: Option<String>,
|
||||
connector: Option<serde_json::Value>,
|
||||
authentication_type: Option<storage_enums::AuthenticationType>,
|
||||
payment_method: Option<storage_enums::PaymentMethod>,
|
||||
error_message: Option<String>,
|
||||
|
||||
@ -211,7 +211,7 @@ diesel::table! {
|
||||
amount -> Int8,
|
||||
currency -> Nullable<Currency>,
|
||||
save_to_locker -> Nullable<Bool>,
|
||||
connector -> Nullable<Varchar>,
|
||||
connector -> Nullable<Jsonb>,
|
||||
error_message -> Nullable<Text>,
|
||||
offer_amount -> Nullable<Int8>,
|
||||
surcharge_amount -> Nullable<Int8>,
|
||||
|
||||
Reference in New Issue
Block a user