fix(connectors): [Stripe] update overcapture handling and add CLF currency to db (#9880)

This commit is contained in:
AkshayaFoiger
2025-10-23 17:21:26 +05:30
committed by GitHub
parent 175d0f5baf
commit 16ee54ad09
3 changed files with 14 additions and 2 deletions

View File

@@ -2629,8 +2629,16 @@ impl StripeChargeEnum {
match payment_method_details {
StripePaymentMethodDetailsResponse::Card { card } => card
.overcapture
.as_ref()
.and_then(|overcapture| overcapture.maximum_amount_capturable),
.clone()
.filter(|overcapture| {
matches!(
overcapture.status,
Some(StripeOvercaptureStatus::Available)
)
})
.and_then(|overcapture_data| {
overcapture_data.maximum_amount_capturable
}),
_ => None,
}
} else {

View File

@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
SELECT 1;

View File

@@ -0,0 +1,2 @@
-- Your SQL goes here
ALTER TYPE "Currency" ADD VALUE IF NOT EXISTS 'CLF' AFTER 'CHF';