storj/satellite
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
..
abtesting console/abTesting: add support for AB testing 2022-10-27 10:57:12 +00:00
accounting satellite/accounting/tally: fix looping over all buckets 2022-12-07 10:32:23 +00:00
admin sat/console update the updateProject to set user specified limits 2022-12-13 16:44:41 +00:00
analytics satellite/{analytics, web}: segment ui error tracking implemented 2022-12-13 18:11:53 +00:00
attribution {cmd/satellite/reports, satellite/attribution}: type and variable name adjustments 2022-04-26 20:12:38 +00:00
audit satellite/audit: merge support for reservoirs 2022-12-16 15:27:55 +00:00
buckets satellite/accounting/tally: fix looping over all buckets 2022-12-07 10:32:23 +00:00
compensation all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
console satellite/{console,satellitedb}: implement account freeze event DB 2022-12-15 14:16:24 +00:00
contact satellite/contact: emit evenkit events in case of node checkin 2022-11-14 10:38:58 +00:00
gc satellite/gc/sender: avoid sending BF to disqualified and exited nodes 2022-11-29 09:56:32 +00:00
geoip satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
gracefulexit satellite/gracefulexit: observer cleanup 2022-11-05 12:10:44 +00:00
inspector {satellite/metabase, satellite/metainfo, satellite/inspector} : Use metabase.GetObjectLastCommitted instead metabase.GetObjectExactVersion 2022-09-08 07:27:22 +00:00
internalpb all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
mailservice satellite/consoleweb: fix flaky TestAuth tests 2022-08-04 19:06:07 +00:00
metabase cmd/tools/segment-verify: tool for checking duplicate net 2022-12-15 22:58:36 +00:00
metainfo satellite/metabase: handle copies with GetStreamPieceCountByNodeID 2022-12-13 12:32:56 +01:00
metrics satellite/rangedloop: wire up metrics observer 2022-12-12 19:06:23 +00:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeevents satellite/nodeevents: validate emails before notifying 2022-12-06 09:59:45 -05:00
nodeselection/uploadselection satellite/repairer: handle excluded countries 2022-03-14 10:59:36 -04:00
nodestats satellite: return interval_end_time in DailyStorageUsage endpoint 2022-07-27 18:24:27 +00:00
oidc all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
orders satellite/orders: decrease order expiration time to 24hours 2022-11-21 14:52:32 +00:00
overlay satellite/overlaycache: fix typo in UpdateCheckIn request 2022-12-14 22:21:45 +01:00
payments satellite/payments/stripecoinpayments: skip line item generation for records with no usage 2022-12-16 17:02:50 +00:00
repair satellite/audit: teach Reporter about piecewise audits 2022-12-12 11:28:02 +00:00
reputation satellite/audit: teach Reporter about piecewise audits 2022-12-12 11:28:02 +00:00
revocation satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
rewards satellite/rewards: adding SeaweedFS to partners list (#4230) 2021-10-19 21:30:31 +02:00
satellitedb satellite/audit: delete now-unused code 2022-12-16 14:53:39 +00:00
snopayouts all: fix error naming 2021-04-29 15:38:21 +03:00
admin.go satellite/payments/stripecoinpayments: add config for price overrides 2022-12-09 15:33:27 +00:00
api.go satellite/payments/stripecoinpayments: add config for price overrides 2022-12-09 15:33:27 +00:00
configlock_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
core.go satellite/audit: delete now-unused code 2022-12-16 14:53:39 +00:00
gc-bf.go satellite/gc: Optionally run the GC bloomfilter process once, instead of in a loop 2022-11-01 18:19:40 +00:00
gc.go satellite/gc/sender: new service to send retain filters 2022-09-20 11:49:40 +00:00
peer.go satellite/audit: delete now-unused code 2022-12-16 14:53:39 +00:00
rangedloop.go satellite/rangedloop: wire up metrics observer 2022-12-12 19:06:23 +00:00
repairer.go satellite/audit: delete now-unused code 2022-12-16 14:53:39 +00:00