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 Dec 16, 2024
1 parent 41f5d38 commit c3e7343
Show file tree
Hide file tree
Showing 43 changed files with 115 additions and 110 deletions.
24 changes: 12 additions & 12 deletions crates/diesel_models/src/payment_attempt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,8 @@ impl PaymentAttemptUpdate {
connector_mandate_detail: connector_mandate_detail.or(source.connector_mandate_detail),
request_overcapture: request_overcapture.or(source.request_overcapture),
overcapture_applied: overcapture_applied.or(source.overcapture_applied),
maximum_capturable_amount: maximum_capturable_amount.or(source.maximum_capturable_amount),
maximum_capturable_amount: maximum_capturable_amount
.or(source.maximum_capturable_amount),
..source
}
}
Expand Down Expand Up @@ -2711,8 +2712,8 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
order_tax_amount: None,
connector_mandate_detail,
request_overcapture: None,
overcapture_applied,
maximum_capturable_amount,
overcapture_applied,
maximum_capturable_amount,
}
}
PaymentAttemptUpdate::ErrorUpdate {
Expand Down Expand Up @@ -2787,9 +2788,8 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
order_tax_amount: None,
connector_mandate_detail: None,
request_overcapture: None,
overcapture_applied: None,
maximum_capturable_amount: None,

overcapture_applied: None,
maximum_capturable_amount: None,
}
}
PaymentAttemptUpdate::StatusUpdate { status, updated_by } => Self {
Expand Down Expand Up @@ -2982,8 +2982,8 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
order_tax_amount: None,
connector_mandate_detail: None,
request_overcapture: None,
overcapture_applied: None,
maximum_capturable_amount: None,
overcapture_applied: None,
maximum_capturable_amount: None,
}
}
PaymentAttemptUpdate::PreprocessingUpdate {
Expand Down Expand Up @@ -3243,8 +3243,8 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
order_tax_amount: None,
connector_mandate_detail: None,
request_overcapture: None,
overcapture_applied: None,
maximum_capturable_amount: None,
overcapture_applied: None,
maximum_capturable_amount: None,
}
}
PaymentAttemptUpdate::IncrementalAuthorizationAmountUpdate {
Expand Down Expand Up @@ -3436,8 +3436,8 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
order_tax_amount: None,
connector_mandate_detail: None,
request_overcapture: None,
overcapture_applied: None,
maximum_capturable_amount: None,
overcapture_applied: None,
maximum_capturable_amount: None,
}
}
PaymentAttemptUpdate::PostSessionTokensUpdate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ impl<F> TryFrom<ResponseRouterData<F, BamboraResponse, PaymentsAuthorizeData, Pa
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
}),
Expand Down Expand Up @@ -509,7 +509,7 @@ impl<F> TryFrom<ResponseRouterData<F, BamboraResponse, PaymentsAuthorizeData, Pa
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down Expand Up @@ -489,7 +489,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down Expand Up @@ -637,7 +637,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down Expand Up @@ -918,7 +918,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BillwerkPaymentsResponse, T, PaymentsRe
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
};
Ok(Self {
status: enums::AttemptStatus::from(item.response.state),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
}),
Expand Down Expand Up @@ -406,7 +406,7 @@ impl
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down Expand Up @@ -620,7 +620,7 @@ impl
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down Expand Up @@ -695,7 +695,7 @@ impl
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, DlocalPaymentsResponse, T, PaymentsResp
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
};
Ok(Self {
status: enums::AttemptStatus::from(item.response.status),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
})
}
}
Expand Down Expand Up @@ -456,7 +456,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<ElavonPaymentsResponse>>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
})
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
}),
Expand Down Expand Up @@ -797,7 +797,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down Expand Up @@ -855,7 +855,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
})
};
Ok(Self {
Expand Down Expand Up @@ -903,7 +903,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
})
};
Self {
Expand All @@ -924,7 +924,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
});
Self {
response,
Expand Down Expand Up @@ -1197,7 +1197,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<FiuuPaymentResponse>> for PaymentsSy
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
};
Ok(Self {
status,
Expand Down Expand Up @@ -1260,7 +1260,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<FiuuPaymentResponse>> for PaymentsSy
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
};
Ok(Self {
status,
Expand Down Expand Up @@ -1431,7 +1431,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<PaymentCaptureResponse>>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
};
Ok(Self {
status,
Expand Down Expand Up @@ -1544,7 +1544,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<FiuuPaymentCancelResponse>>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
};
Ok(Self {
status,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, GlobepayPaymentsResponse, T, PaymentsRe
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down Expand Up @@ -298,7 +298,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, GlobepaySyncResponse, T, PaymentsRespon
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, MultisafepayAuthResponse, T, PaymentsRe
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
})
},
..item.data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand All @@ -854,7 +854,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, NovalnetPaymentsResponse, T, PaymentsRe
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down Expand Up @@ -1007,7 +1007,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down Expand Up @@ -1093,7 +1093,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down Expand Up @@ -1264,7 +1264,7 @@ impl<F>
incremental_authorization_allowed: None,
charge_id: None,
overcapture_applied: None,
maximum_capturable_amount: None,
maximum_capturable_amount: None,
}),
..item.data
})
Expand Down
Loading

0 comments on commit c3e7343

Please sign in to comment.