fix: added onboard url to payout model

This commit is contained in:
Damien Ostler 2024-02-25 02:16:03 -05:00
parent a07a41d530
commit 3c40d74912
2 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,8 @@ public class ArtistController : Controller
{
Enabled = account.PayoutsEnabled,
Balance = balance,
PayoutUrl = _paymentService.CreateDashboardUrl(Artist.StripeAccountId)
PayoutUrl = _paymentService.CreateDashboardUrl(Artist.StripeAccountId),
OnboardUrl = _paymentService.CreateArtistAccountOnboardingUrl(Artist.StripeAccountId)
};
return Ok(result);
}

View File

@ -7,4 +7,5 @@ public class PayoutModel
public double Balance { get; set; }
public bool Enabled { get; set; }
public string PayoutUrl { get; set; }
public string OnboardUrl { get; set; }
}