refactor(router): remove the payment type column in payment intent (#2462)

This commit is contained in:
ItsMeShashank
2023-10-05 20:56:44 +05:30
committed by GitHub
parent 80f3b1edae
commit 980aa44863
10 changed files with 14 additions and 37 deletions

View File

@ -106,7 +106,6 @@ impl PaymentIntentInterface for MockDb {
profile_id: new.profile_id,
merchant_decision: new.merchant_decision,
payment_confirm_source: new.payment_confirm_source,
payment_type: new.payment_type,
};
payment_intents.push(payment_intent.clone());
Ok(payment_intent)

View File

@ -91,7 +91,6 @@ impl<T: DatabaseStore> PaymentIntentInterface for KVRouterStore<T> {
profile_id: new.profile_id.clone(),
merchant_decision: new.merchant_decision.clone(),
payment_confirm_source: new.payment_confirm_source,
payment_type: new.payment_type,
};
match self
@ -708,7 +707,6 @@ impl DataModelExt for PaymentIntentNew {
profile_id: self.profile_id,
merchant_decision: self.merchant_decision,
payment_confirm_source: self.payment_confirm_source,
payment_type: self.payment_type,
}
}
@ -746,7 +744,6 @@ impl DataModelExt for PaymentIntentNew {
profile_id: storage_model.profile_id,
merchant_decision: storage_model.merchant_decision,
payment_confirm_source: storage_model.payment_confirm_source,
payment_type: storage_model.payment_type,
}
}
}
@ -789,7 +786,6 @@ impl DataModelExt for PaymentIntent {
profile_id: self.profile_id,
merchant_decision: self.merchant_decision,
payment_confirm_source: self.payment_confirm_source,
payment_type: self.payment_type,
}
}
@ -828,7 +824,6 @@ impl DataModelExt for PaymentIntent {
profile_id: storage_model.profile_id,
merchant_decision: storage_model.merchant_decision,
payment_confirm_source: storage_model.payment_confirm_source,
payment_type: storage_model.payment_type,
}
}
}