Commit Graph

758 Commits

Author SHA1 Message Date
fnux a40da40169 Add recurring_count to bills 2020-03-03 11:15:48 +01:00
fnux 2eaaad49db Handle setup fee in bills 2020-03-03 10:59:21 +01:00
fnux 9fdf66ed74 Fix MatrixService ordering 2020-03-03 10:51:16 +01:00
fnux b31aa72f84 Allow to select billing period when registering VM 2020-03-03 10:14:56 +01:00
fnux 5559d600c7 Move things around for readability in uncloud_pay models and serializer 2020-03-03 09:13:04 +01:00
fnux 4e51670a90 Expand recurring period billing logic for DD/MM/hh/month 2020-03-03 08:53:19 +01:00
fnux 4ad737ed90 Initial stripe playground 2020-03-02 22:29:50 +01:00
fnux c651c4ddaa Cleanup a bit BillRecord 2020-03-02 16:41:49 +01:00
ahmadbilalkhalid 531bfa1768 actual thing name is replaced by pseudo names 2020-03-02 19:20:12 +05:00
ahmadbilalkhalid 750d8c8cbf Use fictional hostname for VMHost 2020-03-02 17:42:54 +05:00
ahmadbilalkhalid 0c3e6d10ae Indentation/Spacing fixes 2020-03-02 17:20:30 +05:00
ahmadbilalkhalid afdba3d7d9 Remove duplicate code 2020-03-02 17:17:30 +05:00
ahmadbilalkhalid 52e74c22cc Merge branch 'nico/meow-pay-master' into HEAD 2020-03-02 17:05:23 +05:00
ahmadbilalkhalid 6c9c63e0da Add sample clean() for model + Add tests for uncloud_vm 2020-03-02 16:54:36 +05:00
fnux 9e9018060e Wire order records to bills, fix user balance 2020-03-02 10:46:04 +01:00
fnux 9e253d497b Wrap VM creation in database transaction 2020-03-02 09:30:51 +01:00
fnux 81bd54116a Add records to orders 2020-03-02 09:25:03 +01:00
fnux 8e41b894c0 Add OrderRecord model 2020-03-02 08:09:42 +01:00
Ahmed Bilal 3228b91038 Merge branch 'master' into 'master'
Merge nico/meow-pay into ahmedbilal/meow-pay

See merge request ahmedbilal/meow-pay!7
2020-03-02 07:17:04 +01:00
Ahmed Bilal 028fd6789f ++cleanup
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-02 07:17:04 +01:00
fnux 4f25086a63 Only generate bill if no overlap 2020-03-01 15:47:27 +01:00
fnux be2b0a8855 Fix a few errors on preview billing rework
Another WIP commit to sync with laptop, do not forget to rebase!
2020-03-01 12:23:04 +01:00
Nico Schottelius 4115eed2a8 +migration
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-29 17:58:10 +01:00
Nico Schottelius 5c33bc5c02 support creating disks
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-29 17:57:57 +01:00
Nico Schottelius 6a38e4e0a4 add url for importing disk image
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-29 17:00:13 +01:00
Nico Schottelius bcbd6f6f83 Introduce disk->image relationship
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-29 16:45:52 +01:00
fnux e319d1d151 WIP revamped bill logic 2020-02-29 09:08:55 +01:00
fnux af1265003e Define custom fields and serializer for MatrixServiceProduct 2020-02-28 16:26:45 +01:00
fnux eaa483e018 Commit forgottem uncloud_vm migrations 2020-02-28 15:08:45 +01:00
fnux 181005ad6c Cleanup VMProduct serializer, add name field to VMProduct 2020-02-28 15:08:00 +01:00
fnux b3bbfafa04 Introduce custom ProductViewSet preventing customer from updating
products
2020-02-28 14:57:45 +01:00
fnux 33cc2b2111 Add uncloud_storage template app 2020-02-28 14:48:01 +01:00
fnux 3b87a47430 Add initial ungleich_service app with MatrixServiceProduct shell 2020-02-28 14:46:33 +01:00
fnux b5a242f176 Merge branch 'master' into fnux-hacks 2020-02-28 14:06:29 +01:00
fnux 1cb1de4876 Add (broken) charge method to payment method endpoint 2020-02-28 11:10:31 +01:00
fnux c0512e54b0 Add handle-overdue-bills 2020-02-28 10:18:24 +01:00
fnux e12575e1de Commit forgotten migration on Orders (Float->Decimal) 2020-02-28 09:59:13 +01:00
fnux adb57c55ca Revamp generate-bills logic to avoid overlapping 2020-02-28 09:58:01 +01:00
Nico Schottelius 89215e47b6 phase in mac 2020-02-28 09:34:29 +01:00
fnux 37ed126bc1 Create payment on strip charging 2020-02-28 09:26:18 +01:00
fnux 4bed53c8a8 Wire charge-negative-balance to payment methods 2020-02-28 09:10:36 +01:00
fnux 059791e2f2 Add initial generate-bills and charge-negative-balance uncloud-pay
commands
2020-02-28 08:59:32 +01:00
fnux ef5e7e8035 Quickly wire vm creation to orders 2020-02-28 07:26:34 +01:00
fnux b1649a6228 Remove product resolution from /order endpoint 2020-02-28 07:25:56 +01:00
fnux 0e28e50bac Revert "Commit WIP changes for /order, if needed at any point"
This reverts commit 83794a1781a1b84506100b39a6997882c654b4f3.
2020-02-28 07:25:18 +01:00
fnux 38d3a3a5d3 Commit WIP changes for /order, if needed at any point 2020-02-28 07:25:18 +01:00
fnux 809a55e1dd Wire VMProduct creation to order 2020-02-28 07:25:18 +01:00
fnux b2fe5014d8 Make recurring_period an Enum, VMProduct a Product, initial wire for
order
2020-02-28 07:25:05 +01:00
fnux 1dd3324275 Wiring initial user balance 2020-02-28 07:24:51 +01:00
fnux 36fcff5149 Add initial structure for payment methods 2020-02-28 07:24:51 +01:00