storj/satellite/payments
Andrew Harding 99206fca04 satellite/payments/stripecoinpayments: skip line item generation for records with no usage
This change updates the stripecoinpayments service to optionally skip
generating line items for payments records that have no egress, storage,
or segments for the billing period.

This results in a reduction from 4 to 1 Stripe API calls for customers
who have no usage. The final API call is the attempt to generate an
invoice on stripe, which expectedly fails because there are no unapplied line
items. Removing that final API call would require some additional
queries and is out of scope for this change.

This functionality is behind the
`payments.stripe-coin-payments.skip-empty-invoices` feature flag.

https://github.com/storj/storj/issues/5381

Change-Id: Id184969a4c79047c40502336d69c51388ab03bf8
2022-12-16 17:02:50 +00:00
..
billing satellite/payments/billing/billing.go: change default loop interval 2022-09-27 11:42:28 -07:00
coinpayments satellite: remove unused coinpayments code and chores 2022-11-30 16:24:48 +00:00
paymentsconfig satellite/payments/stripecoinpayments: add config for price overrides 2022-12-09 15:33:27 +00:00
storjscan satellite/payments/storjscan: add info level log statement when a user successfully claims a wallet address. 2022-09-29 18:20:06 +00:00
stripecoinpayments satellite/payments/stripecoinpayments: skip line item generation for records with no usage 2022-12-16 17:02:50 +00:00
account.go apigen: project delete endpoint 2022-06-07 12:23:24 +03:00
balance.go satellite/{web/payments}: show token balance on billing overview 2022-12-08 11:47:37 +00:00
charges.go satellite/console: add credit card charges to billing history 2020-01-03 17:34:59 +02:00
coupons.go satellite/{console,payments},web/satellite: save signup promo code to newly registered users 2022-01-21 15:02:22 +00:00
creditcards.go satellite/{payments,admin}: add deletion of user creditcards on account deletion 2020-08-27 10:18:19 +00:00
credits.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
invoices.go satellite/payments: Add old invoice list functionality 2021-10-18 18:18:18 -04:00
projectcharges.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
tokens.go satellite/payments: remove Deposit from Tokens interface 2022-10-17 13:32:06 +02:00