mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor: separate DB queries and HTML creation for payout links (#4967)
Signed-off-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-C02FC60MMD6M.local> Signed-off-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com> Signed-off-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-G961M60MK7.local> Co-authored-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com> Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-C02FC60MMD6M.local> Co-authored-by: Srujan chikke <chikke.srujan@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-G961M60MK7.local>
This commit is contained in:
@ -89,6 +89,8 @@ impl<T: DatabaseStore> PayoutsInterface for KVRouterStore<T> {
|
||||
status: new.status,
|
||||
attempt_count: new.attempt_count,
|
||||
confirm: new.confirm,
|
||||
payout_link_id: new.payout_link_id.clone(),
|
||||
client_secret: new.client_secret.clone(),
|
||||
priority: new.priority,
|
||||
};
|
||||
|
||||
@ -689,6 +691,8 @@ impl DataModelExt for Payouts {
|
||||
status: self.status,
|
||||
attempt_count: self.attempt_count,
|
||||
confirm: self.confirm,
|
||||
payout_link_id: self.payout_link_id,
|
||||
client_secret: self.client_secret,
|
||||
priority: self.priority,
|
||||
}
|
||||
}
|
||||
@ -716,6 +720,8 @@ impl DataModelExt for Payouts {
|
||||
status: storage_model.status,
|
||||
attempt_count: storage_model.attempt_count,
|
||||
confirm: storage_model.confirm,
|
||||
payout_link_id: storage_model.payout_link_id,
|
||||
client_secret: storage_model.client_secret,
|
||||
priority: storage_model.priority,
|
||||
}
|
||||
}
|
||||
@ -746,6 +752,8 @@ impl DataModelExt for PayoutsNew {
|
||||
status: self.status,
|
||||
attempt_count: self.attempt_count,
|
||||
confirm: self.confirm,
|
||||
payout_link_id: self.payout_link_id,
|
||||
client_secret: self.client_secret,
|
||||
priority: self.priority,
|
||||
}
|
||||
}
|
||||
@ -773,6 +781,8 @@ impl DataModelExt for PayoutsNew {
|
||||
status: storage_model.status,
|
||||
attempt_count: storage_model.attempt_count,
|
||||
confirm: storage_model.confirm,
|
||||
payout_link_id: storage_model.payout_link_id,
|
||||
client_secret: storage_model.client_secret,
|
||||
priority: storage_model.priority,
|
||||
}
|
||||
}
|
||||
@ -794,6 +804,7 @@ impl DataModelExt for PayoutsUpdate {
|
||||
profile_id,
|
||||
status,
|
||||
confirm,
|
||||
payout_type,
|
||||
} => DieselPayoutsUpdate::Update {
|
||||
amount,
|
||||
destination_currency,
|
||||
@ -807,6 +818,7 @@ impl DataModelExt for PayoutsUpdate {
|
||||
profile_id,
|
||||
status,
|
||||
confirm,
|
||||
payout_type,
|
||||
},
|
||||
Self::PayoutMethodIdUpdate { payout_method_id } => {
|
||||
DieselPayoutsUpdate::PayoutMethodIdUpdate { payout_method_id }
|
||||
|
||||
Reference in New Issue
Block a user