storj/satellite/payments/stripecoinpayments
Michal Niewrzal f6452e9c09 satellite/payments/stripecoinpayments: process customers instead of
projects

Currently, to generate invoices we are listing all projects. This is
problematic because we decided that elements like e.g. coupons should be
calculated per user. We want to have
more user oriented processing. With this change to prepare invoice
elements we are:
* listing Stripe customers
* listing projects for each customer
* processing projects to create project records
* calculating coupons per customer
* calculating credit spending per customer

Change-Id: I48b0063e44e4d301f97c87ecffb342649359968a
2020-05-30 13:16:07 +00:00
..
accounts.go satellite: account balance divided into Free Credits and Coins 2020-05-18 14:25:26 +00:00
clearing.go satellite/payments: remove unused code 2020-02-20 16:04:19 +02:00
client.go satellite/payments/stripecoinpayments: add StripeClient interface to be 2020-05-15 10:52:44 +02:00
conversion.go satellite/payments: token deposit accept cents (#3628) 2019-11-21 16:25:37 +02:00
coupons_test.go satellite/admin: add coupon creation and listing (#3891) 2020-05-19 12:36:13 +02:00
coupons.go satellite/admin: add coupon deletion (#3893) 2020-05-19 15:49:44 +03:00
creditcards.go satellite/payments/stripecoinpayments: add StripeClient interface to be 2020-05-15 10:52:44 +02:00
credits_test.go satellite/payments: all invoice commands require period 2020-05-14 11:50:19 +00:00
credits.go satellite/payments: all invoice commands require period 2020-05-14 11:50:19 +00:00
customers_test.go satellite/payments/stripecoinpayments: fix test flakyness 2020-04-29 12:06:35 +00:00
customers.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
db.go satellite/payments : deposit bonuses (credits) added 2020-02-11 11:11:42 +00:00
invoices.go satellite/payments/stripecoinpayments: add StripeClient interface to be 2020-05-15 10:52:44 +02:00
projectrecords_test.go satellite/payments: all invoice commands require period 2020-05-14 11:50:19 +00:00
projectrecords.go satellite/payments: all invoice commands require period 2020-05-14 11:50:19 +00:00
service_test.go satellite/payments/stripecoinpayments: process customers instead of 2020-05-30 13:16:07 +00:00
service.go satellite/payments/stripecoinpayments: process customers instead of 2020-05-30 13:16:07 +00:00
stripemock.go satellite/payments: Return empty iterator instead of nil from StripeMock List methods 2020-05-27 16:20:18 +00:00
tokens.go satellite/payments/stripecoinpayments: add StripeClient interface to be 2020-05-15 10:52:44 +02:00
transactions_test.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
transactions.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
version.go common: separate repository 2019-12-27 14:11:15 +02:00