mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
fix(connector): [STRIPE] Retrieving Connect Account Id from Mandate Metadata in MITs (#8326)
Co-authored-by: Sayak Bhattacharya <sayak.b@Sayak-Bhattacharya-G092THXJ34.local>
This commit is contained in:
committed by
GitHub
parent
aee3f6441f
commit
17c30b6105
@ -13,6 +13,7 @@ use std::{
|
||||
borrow::Cow,
|
||||
fmt::Display,
|
||||
iter::Sum,
|
||||
num::NonZeroI64,
|
||||
ops::{Add, Mul, Sub},
|
||||
primitive::i64,
|
||||
str::FromStr,
|
||||
@ -452,6 +453,12 @@ impl MinorUnit {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<NonZeroI64> for MinorUnit {
|
||||
fn from(val: NonZeroI64) -> Self {
|
||||
Self::new(val.get())
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for MinorUnit {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{}", self.0)
|
||||
|
||||
Reference in New Issue
Block a user