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:
Sayak Bhattacharya
2025-06-18 17:21:14 +05:30
committed by GitHub
parent aee3f6441f
commit 17c30b6105
11 changed files with 229 additions and 31 deletions

View File

@ -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)