50 Commits

Author SHA1 Message Date
Sven Efftinge
89d0b7df3f [admin] add admin endpoints for usage 2022-11-18 12:57:47 +02:00
Jan Keromnes
56a4fe2895 [usage] Introduce an explicit CostCenter.BillingCycleStart time 2022-11-11 13:32:41 +02:00
Milan Pavlik
a8638e4a14 [usage] Add UsageService.ResetUsage RPC 2022-10-26 16:17:41 +02:00
Laurie T. Malau
f52f5817a6 [usage] Fix proto for CreateStripeSubscription response message 2022-10-20 12:29:35 +02:00
Laurie T. Malau
e61ab5bf8e [usage] Proto changes Stripe RPC 2022-10-18 16:31:33 +02:00
Milan Pavlik
d7ed1f005c [billing] Define CreateStripeCustomer RPC 2022-10-18 12:14:33 +02:00
Milan Pavlik
922024d202 [usage] Return CostCenter from UsageService.SetCostCenter 2022-10-12 11:28:27 +02:00
Milan Pavlik
ccaff6ff2b [usage] Add GetStripeCustomer to BillingService 2022-10-07 12:35:22 +02:00
Milan Pavlik
d908e43e85 [usage] Use buf to codegen Go proto/grpc 2022-10-06 11:16:21 +02:00
Manuel Alejandro de Brito Fontes
d5eb5815b5 Update to 1.19 2022-10-04 15:17:22 +02:00
Manuel Alejandro de Brito Fontes
3f6cbd07f1 Update go dependencies 2022-10-04 15:17:22 +02:00
Christian Weichel
d6023c989a Revert "Switch to Go workspaces"
This reverts commit 6bc34cf17512cb0a10a3a6cce44141b1f06b624e.
2022-09-29 05:28:29 +02:00
Christian Weichel
174a09222f Revert "Run go work sync"
This reverts commit 6b23167e09f74062b31150d4044a8fe7cacbc34b.
2022-09-29 05:28:29 +02:00
Christian Weichel
6b23167e09 Run go work sync 2022-09-28 08:45:28 +02:00
Christian Weichel
6bc34cf175 Switch to Go workspaces 2022-09-28 08:45:28 +02:00
Sven Efftinge
5670a5500e [usage] show sum of usage not balance
fixes #13067
2022-09-23 10:03:24 +02:00
Sven Efftinge
1b995ef47f [usage] introduce getBalance API 2022-09-23 07:34:23 +02:00
Sven Efftinge
4d35f4db8f [usage] remove unused GetUpcomingInvoice 2022-09-19 11:22:20 +02:00
Milan Pavlik
23419beead [usage] Remove BillingService.SetBilledSession proto 2022-09-16 17:20:17 +02:00
Sven Efftinge
9c9369b4e5 [usage-api] add CancelSubscription API
This API is called by Stripe when a customer cancels their subscription
2022-09-16 16:24:17 +02:00
Sven Efftinge
2701ec7bdc [usage] added costcenter nextBillingTime 2022-09-15 19:18:16 +02:00
Milan Pavlik
c3673e3fdc [usage] Rename ReconcileUsageWithLedger to ReconcileUsage 2022-09-13 15:55:14 +02:00
Sven Efftinge
74bc751ec7 [cost center] Add save API 2022-09-09 11:25:24 +02:00
Milan Pavlik
066b577b6d [usage] Remove unused RPCs from proto 2022-09-09 07:19:23 +02:00
Sven Efftinge
15e3de7b96 [usage-api] remove superceded API 2022-09-08 12:37:23 +02:00
Sven Efftinge
5e72785abc [usage] remove ListBilledUsage API 2022-09-08 08:54:23 +02:00
Milan Pavlik
60c9bc2c8c [billing] Add ReconcileInvoices RPC to BillingService protos 2022-09-07 09:55:22 +02:00
Sven Efftinge
29388c9764 Added API call to fetch usage data 2022-09-06 09:04:21 +02:00
Milan Pavlik
f0f159efc4 [usage] Usage ledger API protos 2022-09-05 11:30:20 +02:00
Alex Tugarev
a8d0889405 Add pagination to list usage 2022-08-31 15:14:16 +02:00
Milan Pavlik
e605e81c99 [usage] Deprecate sessions in ReconcileUsage & UpdateInvoices 2022-08-30 08:42:14 +02:00
Alex Tugarev
030c183993 Use upcoming invoice 2022-08-25 16:07:10 +02:00
Laurie T. Malau
f0e6ee3bed [usage] Proto changes for GetCostCenter RPC 2022-08-24 11:38:40 +02:00
Milan Pavlik
cb478da342 [usage] Add report_id to ReconcileUsage response 2022-08-24 09:52:40 +02:00
Milan Pavlik
1cd0fbfd1d [billing] Add report_id to UpdateInvoices RPC 2022-08-23 15:40:39 +02:00
Alex Tugarev
d3147bcb55 regenerate usage-api 2022-08-23 12:08:39 +02:00
Manuel Alejandro de Brito Fontes
438ffab694 Update k8s dependencies to v0.24.4 2022-08-23 08:18:39 +02:00
Manuel Alejandro de Brito Fontes
7b4a885ee3 Update k8s dependencies to v0.24.3 2022-08-23 08:18:39 +02:00
Laurie T. Malau
e782d3ab0c Proto changes 2022-08-05 12:14:49 -03:00
Andrew Farries
bc6c018cf5 Run ./generate.sh 2022-08-05 04:56:49 -03:00
Milan Pavlik
6c6d2689e8 [billing] GetLatestInvoice RPC protos 2022-07-27 11:58:22 -03:00
Milan Pavlik
66578f1793 [usage] Rename CollectUsage to ReconcileUsage 2022-07-27 06:35:22 -03:00
Milan Pavlik
6e3faa703c [usage] Add CollectUsage RPC 2022-07-27 06:35:22 -03:00
Milan Pavlik
c582420eb0 [usage] Fix BilledSession credits precision 2022-07-27 04:11:21 -03:00
Milan Pavlik
91c61f496c [usage] Add BillingService with UpdateInvoices RPC 2022-07-26 11:23:21 -03:00
Milan Pavlik
96bcd3e943 [usage] ListBilledUsage allows to specify ordering 2022-07-22 08:28:17 -03:00
Milan Pavlik
2defdf8801 [usage] Add proto definitions for timerange in list billed usage 2022-07-20 10:30:15 -03:00
Andrew Farries
e2385352a4 [usage] Implement GetBilledUsage rpc 2022-07-18 13:57:13 +02:00
Gero Posmyk-Leinemann
9ad2345b55 [usage-api] Add TS client and basic, empty getBilledUsage 2022-07-12 11:49:59 +05:30
Andrew Farries
c83333fc3a Add usage-api component
Add Placeholder .proto files and script to generate Go client/server
SDKs.

Adapted from the `public-api` component.
2022-07-08 16:25:55 +05:30