278 Commits

Author SHA1 Message Date
Brad Harris
0f88afefb8
adding backend support for payment intents (#17309)
* adding support for payment intents

* support payment intents in server

* handling new arg

* adjust hold to be 1.00

* removing old comment
2023-04-22 03:05:42 +08:00
Manuel Alejandro de Brito Fontes
891cd5417d
Update k8s dependencies to v0.26.2 (#17211)
* Update k8s dependencies to v0.26.2

* Update controller-runtime to v0.14.6

* Update cloud storage
 https://github.com/googleapis/google-cloud-go/issues/6857

* Update copy options

* Update wolfi image

* Remove controller-runtime replace directives

* Fix integration tests
2023-04-18 03:59:49 +08:00
Milan Pavlik
044d68e7f1
[usage] Log default price applied when no config exists (#17182)
* [usage] Log default price applied when no config exists

* Fix
2023-04-12 16:55:52 +02:00
Manuel Alejandro de Brito Fontes
27979c9395
Update go dependencies (#17101)
* Update go dependencies

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>

* Update runc to v1.1.5

* Update docker cli to v23.0.2+incompatible

---------

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>
2023-04-12 10:03:52 +02:00
Milan Pavlik
f4babd37a7
[usage] Implement charge dispute handling - WEB-94 (#17039)
* [usage] Implement charge dispute handling

* fix

* fix

* tests

* Fix

* Fix

* fix

* fix

* fix
2023-04-11 15:55:51 +02:00
Milan Pavlik
41c14a137c
[usage] Add server address to config - WEB-94 (#17094)
* [usage] Add server address to config

* Fix

* Fix
2023-04-11 10:42:50 +02:00
Milan Pavlik
c0a5b9a08c
[stripe] Attach billing creator user id to Stripe customer (#16996)
* [stripe] Attach billing creator user id to Stripe customer

* fix

* fix
2023-03-23 16:48:16 +01:00
Sven Efftinge
9f9c9aef3e
[billing] hold 1000 cents when customer subscribes (#16807) 2023-03-14 11:04:06 +01:00
Milan Pavlik
7d8180aae9
[db] Setup go db tracing (#16706)
* [installer] Do not pull blobserve implementation into installer

* fix

* Fix

* [db] Setup go db tracing

* fix

* Fix

* fix

* Fix
2023-03-10 09:23:46 +01:00
Milan Pavlik
e4e05143e2
[baseserver] Initialize tracer with server (#16586)
* [baseserver] Initialize tracer with server

* fix

* Fix

* fix
2023-03-03 14:57:01 +01:00
Sven Efftinge
2fd43d6307 [usage] update stripe usage on finalization
update stripe with current usage immediately, so that
invoices created between now and the next reconcile
are correct.
2023-02-10 14:33:15 +01:00
Milan Pavlik
41dabf9619 [usage] Reduce log level for Fetching usage data log 2023-02-08 14:55:46 +01:00
Manuel Alejandro de Brito Fontes
bcdde44633 Switch from alpine to wolfi 2023-02-05 12:10:43 +01:00
Sven Efftinge
03a5fb6ac7 [billing] provide human readable price info 2023-01-23 11:55:30 +01:00
Sven Efftinge
6868ce095c [dashboard] access invoices after cancellation 2023-01-06 08:27:45 +01:00
Milan Pavlik
0309d14721 [gitpod-db] Helper to construct db connection params from env 2022-12-21 10:07:30 -03:00
Sven Efftinge
aaa0653d54 [ubp] reset usage on chargebee cancellation 2022-12-15 12:32:25 -03:00
Gero Posmyk-Leinemann
8a03b3a156 [installer, gitpod-db] Introduce database.ssl.ca 2022-12-15 12:29:24 -03:00
Sven Efftinge
a6170cad92 [dashboard] display credit usage 2022-12-12 11:09:22 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Jan Keromnes
337beaf7d1 [usage] Ensure Gitpod can detect customers' automatic tax status when creating new subsriptions 2022-12-08 07:49:18 -03:00
Sven Efftinge
aa4a5cafb6 [usage] make increment billing cycle more robust 2022-12-07 05:54:17 -03:00
Sven Efftinge
fcc42fe1a4 [usage] handle no stopping but stopped time 2022-12-06 12:38:17 -03:00
Sven Efftinge
57593bfedd [usage] increment cycle on finalize invoice 2022-12-06 05:24:16 -03:00
Sven Efftinge
797c1b7421 [usage] support multiple entries on invoices 2022-12-05 08:44:15 -03:00
Sven Efftinge
a5d67448b2 Revert "[usage] handle reset usage for chargebee" 2022-12-02 11:47:01 -03:00
Sven Efftinge
6c41fa5e17 [usage] remove dependency on workspace class name 2022-12-02 05:59:01 -03:00
Sven Efftinge
2eead4a625 [usage] handle reset usage for chargebee
chargebee subscriptions that are cancelled get a dedicatd cost center
2022-11-30 09:08:00 -03:00
Sven Efftinge
7252b10b78 [usage] reduce possibility for races in ResetUsage 2022-11-28 11:02:57 -03:00
Milan Pavlik
b30941bc83 [public-api] Implement list personal access tokens 2022-11-22 06:53:51 -03:00
Sven Efftinge
e044c1d49f [admin] allow usage adjustments 2022-11-22 06:31:51 -03:00
Laurie T. Malau
ee08e7863c [db] Move db models to gitpod-db/go module 2022-11-21 08:37:50 -03:00
Alex Tugarev
35599d8bbd [stripe] store currency for a stripe customer 2022-11-21 06:56:50 -03:00
Alex Tugarev
3de193e3fb [stripe] guard resubscribing with another currency
because it currently not supported.
2022-11-21 06:56:50 -03:00
Sven Efftinge
89d0b7df3f [admin] add admin endpoints for usage 2022-11-18 12:57:47 +02:00
Jan Keromnes
0c383311f6 [usage] Always set a CostCenter.nextBillingTime, even when we don't manage the billing 2022-11-16 13:29:45 +02:00
Jan Keromnes
b1161a5094 [stripe] When creating a Subscription, don't specify a custom billing cycle anchor date - let it go from date to date instead 2022-11-16 13:29:45 +02:00
Jan Keromnes
e97e8e91b4 [usage] Address nits from https://github.com/gitpod-io/gitpod/pull/14485 2022-11-16 13:29:45 +02:00
Milan Pavlik
e4daab98a4 [common-go] Move base database connection & types to common-go 2022-11-16 10:59:45 +02:00
Milan Pavlik
a7523ba7d2 [usage] Decrease Usage record create batch size 2022-11-11 14:56:41 +02:00
Jan Keromnes
77bb23fc5e [usage] Don't pass '0001-01-01T00:15:00Z' timestamps through the CostCenter API when it should be undefined 🙃 2022-11-11 13:32:41 +02:00
Jan Keromnes
56a4fe2895 [usage] Introduce an explicit CostCenter.BillingCycleStart time 2022-11-11 13:32:41 +02:00
Milan Pavlik
3c553500f0 [usage]Actually reset usage during ResetUsage RPC 2022-11-02 09:16:07 +01:00
Laurie T. Malau
ee8354aa79 [usage] Implement CreateStripeSubscription 2022-11-01 16:15:06 +01:00
Milan Pavlik
4d1f29895c [usage] Start trigerring ResetUsage RPC 2022-10-31 14:13:05 +01:00
Milan Pavlik
2ec4546105 [usage] List cost centers with expired billing time 2022-10-27 16:56:42 +02:00
Milan Pavlik
7532f3c15f [usage] Setup usage reset job 2022-10-26 14:46:41 +02:00
Milan Pavlik
7a5f156f5a [usage] Configure Stripe Price IDs through installer 2022-10-25 21:53:40 +02:00
Milan Pavlik
8735238f00 [stripe] Populate Stripe Customers from searches, use as lookup 2022-10-20 13:50:35 +02:00
Milan Pavlik
0d566be29a [stripe] Store Stripe Customer in the db on creation 2022-10-20 09:37:35 +02:00