Skip to content

Commit

Permalink
refactor: delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbrm committed Dec 19, 2024
1 parent 11c3876 commit 2743d55
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions services/skus/stripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ func (x *stripeNotification) shouldRecordPayFailure() bool {
return x.invoice != nil && x.raw.Type == "invoice.payment_failed"
}

func (x *stripeNotification) hasDiscounts() bool {
isPaid := x.invoice != nil && x.raw.Type == "invoice.paid"

return isPaid && len(x.invoice.Discounts) == 1 && x.invoice.Discount != nil
}

func (x *stripeNotification) ntfType() string {
return x.raw.Type
}
Expand Down

0 comments on commit 2743d55

Please sign in to comment.