Commit graph

42 commits

Author SHA1 Message Date
Nico Schottelius
7a6c8739f6 Rename / prepare for merge with uncloud repo 2020-04-02 19:31:03 +02:00
Nico Schottelius
23203ff418 vmsnapshot progress 2020-03-22 20:55:11 +01:00
Nico Schottelius
10c5257f90 Introduce "extra_data" jsonfield 2020-03-21 11:59:04 +01:00
Nico Schottelius
c6a9bd4363 Make balance a user attribute + decimalfield 2020-03-18 14:53:26 +01:00
Nico Schottelius
cd01f62fde Move user view to uncloud_auth 2020-03-18 14:36:40 +01:00
Nico Schottelius
47148454f6 s/_/-/ for bill id 2020-03-06 11:11:16 +01:00
658262c599 Add human readable reference to bills 2020-03-06 09:39:41 +01:00
9e8149135b Move bill generation logic to Bill class, initial work for prepaid 2020-03-04 10:55:12 +01:00
9aabc66e57 Pay: move some model-related methods from helpers to models
Otherwise we end up in circular dependency hell
2020-03-04 09:39:18 +01:00
e0cb6ac670 Allow for charging customers 2020-03-03 18:16:25 +01:00
94a39ed81d Properly wire stripe card to payment methods 2020-03-03 16:56:42 +01:00
28407bf3e3 Quickly document OrderRecord class 2020-03-03 11:34:47 +01:00
53baf0d9f3 Fix typo in BillRecord 2020-03-03 11:29:57 +01:00
11e22f5001 Consistently use one_time_price instead of setup_fee 2020-03-03 11:27:35 +01:00
a40da40169 Add recurring_count to bills 2020-03-03 11:15:48 +01:00
2eaaad49db Handle setup fee in bills 2020-03-03 10:59:21 +01:00
9fdf66ed74 Fix MatrixService ordering 2020-03-03 10:51:16 +01:00
b31aa72f84 Allow to select billing period when registering VM 2020-03-03 10:14:56 +01:00
5559d600c7 Move things around for readability in uncloud_pay models and serializer 2020-03-03 09:13:04 +01:00
4e51670a90 Expand recurring period billing logic for DD/MM/hh/month 2020-03-03 08:53:19 +01:00
4ad737ed90 Initial stripe playground 2020-03-02 22:29:50 +01:00
c651c4ddaa Cleanup a bit BillRecord 2020-03-02 16:41:49 +01:00
9e9018060e Wire order records to bills, fix user balance 2020-03-02 10:46:04 +01:00
81bd54116a Add records to orders 2020-03-02 09:25:03 +01:00
8e41b894c0 Add OrderRecord model 2020-03-02 08:09:42 +01:00
4f25086a63 Only generate bill if no overlap 2020-03-01 15:47:27 +01:00
e319d1d151 WIP revamped bill logic 2020-02-29 09:08:55 +01:00
af1265003e Define custom fields and serializer for MatrixServiceProduct 2020-02-28 16:26:45 +01:00
37ed126bc1 Create payment on strip charging 2020-02-28 09:26:18 +01:00
059791e2f2 Add initial generate-bills and charge-negative-balance uncloud-pay
commands
2020-02-28 08:59:32 +01:00
ef5e7e8035 Quickly wire vm creation to orders 2020-02-28 07:26:34 +01:00
b1649a6228 Remove product resolution from /order endpoint 2020-02-28 07:25:56 +01:00
0e28e50bac Revert "Commit WIP changes for /order, if needed at any point"
This reverts commit 83794a1781a1b84506100b39a6997882c654b4f3.
2020-02-28 07:25:18 +01:00
38d3a3a5d3 Commit WIP changes for /order, if needed at any point 2020-02-28 07:25:18 +01:00
809a55e1dd Wire VMProduct creation to order 2020-02-28 07:25:18 +01:00
b2fe5014d8 Make recurring_period an Enum, VMProduct a Product, initial wire for
order
2020-02-28 07:25:05 +01:00
1dd3324275 Wiring initial user balance 2020-02-28 07:24:51 +01:00
36fcff5149 Add initial structure for payment methods 2020-02-28 07:24:51 +01:00
225f20c91b Fix typo in payment source model 2020-02-27 12:21:52 +01:00
06ab21c577 Fix python errors on latest hack commits => make runserver happy again 2020-02-27 11:59:28 +01:00
Nico Schottelius
a58a361254 Move snapshot to _pay and _vm 2020-02-27 11:36:50 +01:00
Nico Schottelius
1ca247148c [uncloud_pay] add "prototype" 2020-02-27 11:21:38 +01:00