refactor: add surcharge_applicable to payment_intent and remove surcharge_metadata from payment_attempt (#2642)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Hrithikesh
2023-10-19 19:26:00 +05:30
committed by GitHub
parent 41b7742b54
commit e5fbaae0d4
17 changed files with 72 additions and 65 deletions

View File

@ -140,7 +140,6 @@ impl PaymentAttemptInterface for MockDb {
multiple_capture_count: payment_attempt.multiple_capture_count,
connector_response_reference_id: None,
amount_capturable: payment_attempt.amount_capturable,
surcharge_metadata: payment_attempt.surcharge_metadata,
updated_by: storage_scheme.to_string(),
};
payment_attempts.push(payment_attempt.clone());

View File

@ -104,6 +104,7 @@ impl PaymentIntentInterface for MockDb {
payment_link_id: new.payment_link_id,
payment_confirm_source: new.payment_confirm_source,
updated_by: storage_scheme.to_string(),
surcharge_applicable: new.surcharge_applicable,
};
payment_intents.push(payment_intent.clone());
Ok(payment_intent)