feat(analytics): add customer_id as filter for payment intents (#6344)

This commit is contained in:
Sandeep Kumar
2024-10-30 12:56:26 +05:30
committed by GitHub
parent cae75314c4
commit d697def0b7
8 changed files with 190 additions and 1 deletions

View File

@ -652,10 +652,15 @@ impl<'a> FromRow<'a, PgRow> for super::payment_intents::filters::PaymentIntentFi
ColumnNotFound(_) => Ok(Default::default()),
e => Err(e),
})?;
let customer_id: Option<String> = row.try_get("customer_id").or_else(|e| match e {
ColumnNotFound(_) => Ok(Default::default()),
e => Err(e),
})?;
Ok(Self {
status,
currency,
profile_id,
customer_id,
})
}
}