storj/satellite/payments
Vitalii b31e417546 satellite/payments: use stripe idempotency on create/update invoice items
Add idempotency key for every create/update invoice item request.
Key consists of public project ID, line item description and formatted invoicing period.
This should eliminate the possibility of making duplicate create/update actions.
Also, with this change, we mark a project record as consumed only after the appropriate invoice items are created or the record itself is skipped.

Issue:
https://github.com/storj/storj/issues/6501

Change-Id: I7506a8f3886d7f575bcc0facc3f107513352a312
2023-12-05 11:16:53 +02:00
..
accountfreeze satellite/{console/payment}: wrap freeze code in transactions 2023-11-15 20:40:54 +00:00
billing satellite/{db,console,billing}: fix legal/violation freeze 2023-12-04 21:19:44 +00:00
coinpayments satellite: remove unused coinpayments code and chores 2022-11-30 16:24:48 +00:00
paymentsconfig payments: don't redefine compensation rates twice 2023-06-10 12:40:43 +00:00
storjscan satellite/{payments, console}: added functionality to get wallet's transactions (including pending) 2023-07-18 11:09:29 +00:00
stripe satellite/payments: use stripe idempotency on create/update invoice items 2023-12-05 11:16:53 +02:00
account.go satellite/payments,web/satellite: separate UI cost estimates by partner 2023-04-04 15:56:16 +00:00
balance.go satellite/console: purchase package grants credit 2023-03-31 22:29:54 +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: purchase package grants credit 2023-03-31 22:29:54 +00:00
creditcards.go satellite/{payment,console}: add endpoint to add card by pmID 2023-10-30 13:58:55 +00:00
credits.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
invoices.go satellite/{console,payments}: freeze/warn storjscan users 2023-08-31 13:22:21 +00:00
projectcharges.go satellite/payments/stripe: apply egress discount to project charges 2023-04-13 17:34:50 +00:00
tokens.go satellite/{payments, console}: added functionality to get wallet's transactions (including pending) 2023-07-18 11:09:29 +00:00