073f9ed499
We have 3 types of discounts: 1) Promotional credits/coupons 2) Bonus from depositing STORJ tokens 3) Stripe discounts (e.g. 100% off for Storjlings, 30% off for Early Adopters, etc.) So far the discounts were applied in the above order. But because the Stripe discount is applied on all of the project usage fees, this could sometimes lead to negative total in the invoice. Especially, if the Stripe discount is 100% or all of the project fees are covered by coupons and bonus. To resolve this issue, before applying promotional coupons and deposit bonuses, the Stripe discount will be applied first to the project fees. Change-Id: I5dcbec04ec3a04e7f76b11e0a228ccb3195f2db0 |
||
---|---|---|
.. | ||
accounts.go | ||
clearing.go | ||
conversion.go | ||
coupons_test.go | ||
coupons.go | ||
creditcards.go | ||
credits_test.go | ||
credits.go | ||
customers_test.go | ||
customers.go | ||
db.go | ||
endpoint.go | ||
invoices.go | ||
projectrecords_test.go | ||
projectrecords.go | ||
service.go | ||
tokens.go | ||
transactions_test.go | ||
transactions.go | ||
version.go |