Include Tremendous image_logo_url (#4349)

This commit is contained in:
François-Xavier Talbot
2025-09-08 13:34:51 +01:00
committed by GitHub
parent fda06cfc60
commit ea607c1a04
2 changed files with 8 additions and 0 deletions

View File

@@ -121,6 +121,7 @@ pub struct PayoutMethod {
pub name: String,
pub supported_countries: Vec<String>,
pub image_url: Option<String>,
pub image_logo_url: Option<String>,
pub interval: PayoutInterval,
pub fee: PayoutMethodFee,
}

View File

@@ -408,6 +408,11 @@ impl PayoutsQueue {
.into_iter()
.map(|x| x.abbr)
.collect(),
image_logo_url: product
.images
.iter()
.find(|x| x.type_ == ProductImageType::Logo)
.map(|x| x.src.clone()),
image_url: product
.images
.into_iter()
@@ -486,6 +491,7 @@ impl PayoutsQueue {
name: "PayPal".to_string(),
supported_countries: vec!["US".to_string()],
image_url: None,
image_logo_url: None,
interval: PayoutInterval::Standard {
min: Decimal::from(1) / Decimal::from(4),
max: Decimal::from(100_000),
@@ -518,6 +524,7 @@ impl PayoutsQueue {
.map(|x| x.alpha2.to_string())
.collect(),
image_url: None,
image_logo_url: None,
interval: PayoutInterval::Standard {
min: Decimal::from(1) / Decimal::from(4),
max: Decimal::from(100_000),