mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(storage): make amount as an enum (#98)
This commit is contained in:
@ -136,7 +136,7 @@ pub(crate) struct StripePaymentIntentRequest {
|
||||
impl From<StripePaymentIntentRequest> for PaymentsRequest {
|
||||
fn from(item: StripePaymentIntentRequest) -> Self {
|
||||
PaymentsRequest {
|
||||
amount: item.amount,
|
||||
amount: item.amount.map(|amount| amount.into()),
|
||||
currency: item.currency.as_ref().map(|c| c.to_uppercase()),
|
||||
capture_method: item.capture_method,
|
||||
amount_to_capture: item.amount_capturable,
|
||||
|
||||
Reference in New Issue
Block a user