File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Exceptionless.Web/Controllers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ public async Task<ActionResult<Invoice>> GetInvoiceAsync(string id)
239
239
OrganizationId = organization . Id ,
240
240
OrganizationName = organization . Name ,
241
241
Date = stripeInvoice . Created ,
242
- Paid = stripeInvoice . Status == "paid" ,
242
+ Paid = String . Equals ( stripeInvoice . Status , "paid" ) ,
243
243
Total = stripeInvoice . Total / 100.0m
244
244
} ;
245
245
@@ -260,7 +260,7 @@ public async Task<ActionResult<Invoice>> GetInvoiceAsync(string id)
260
260
invoice . Items . Add ( item ) ;
261
261
}
262
262
263
- var coupon = stripeInvoice . Discounts ? . FirstOrDefault ( ) ? . Coupon ;
263
+ var coupon = stripeInvoice . Discounts ? . FirstOrDefault ( d => d . Deleted is false ) ? . Coupon ;
264
264
if ( coupon is not null )
265
265
{
266
266
if ( coupon . AmountOff . HasValue )
You can’t perform that action at this time.
0 commit comments