Skip to content

Commit

Permalink
chore: run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperswitch-bot[bot] committed Feb 24, 2025
1 parent 5ddc77a commit fb1abce
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions crates/api_models/src/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4933,9 +4933,9 @@ pub struct PaymentsResponse {
#[schema(value_type = Option<CardDiscovery>, example = "manual")]
pub card_discovery: Option<enums::CardDiscovery>,

/// Whether the payment is overcaptureable or not
#[schema(value_type = Option<OverCaptureStatus>)]
pub overcapture_status: Option<common_enums::OverCaptureStatus>,
/// Whether the payment is overcaptureable or not
#[schema(value_type = Option<OverCaptureStatus>)]
pub overcapture_status: Option<common_enums::OverCaptureStatus>,
}

#[cfg(feature = "v2")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ impl PaymentAttemptUpdate {
fingerprint_id,
payment_method_billing_address_id,
updated_by,
request_overcapture
request_overcapture,
},
Self::UpdateTrackers {
payment_token,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,9 @@ impl<F: Send + Clone + Sync> GetTracker<F, PaymentData<F>, api::PaymentsRequest>

payment_attempt.request_overcapture = helpers::validate_and_get_overcapture_request(
&payment_attempt.capture_method,
&request.request_overcapture.or(payment_attempt.request_overcapture),
&request
.request_overcapture
.or(payment_attempt.request_overcapture),
&business_profile,
request.confirm.unwrap_or_default(),
)?;
Expand Down
4 changes: 3 additions & 1 deletion crates/router/src/core/payments/operations/payment_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,9 @@ impl<F: Send + Clone + Sync> GetTracker<F, PaymentData<F>, api::PaymentsRequest>

payment_attempt.request_overcapture = helpers::validate_and_get_overcapture_request(
&payment_attempt.capture_method,
&payment_attempt.request_overcapture.or(request.request_overcapture),
&payment_attempt
.request_overcapture
.or(request.request_overcapture),
&business_profile,
request.confirm.unwrap_or_default(),
)?;
Expand Down

0 comments on commit fb1abce

Please sign in to comment.