Commit graph

600 commits

Author SHA1 Message Date
Nico Schottelius
139aca6a61 Remove vms field from vmhost
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-05 14:58:45 +01:00
Nico Schottelius
2a73f0e767 [migration] make vm name optional, use storage class choices
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-05 14:22:56 +01:00
Nico Schottelius
66e224e926 [storage] move choices to uncloud_storage 2020-03-05 14:21:10 +01:00
Nico Schottelius
10f09c7115 add an old client hack (just for reference) 2020-03-05 14:15:33 +01:00
Nico Schottelius
ec7a2a3c3a Correct pricing for VMProduct 2020-03-05 14:00:14 +01:00
b07df26eb2 Move STRIPE_PUBLIC_KEY to secrets (i.e. local configuration) 2020-03-05 11:51:08 +01:00
b958cc77ea Fix duplicates in payment method creation 2020-03-05 11:45:37 +01:00
e9b6a6f277 Fix migration dependencies after rebase 2020-03-05 11:43:07 +01:00
546667d117 Remove unused empty migration 2020-03-05 11:39:48 +01:00
b88dfa4bfe Fix payment update updates 2020-03-05 11:39:48 +01:00
d6ee806467 Fix error in stripe get_customer_id_for 2020-03-05 11:39:48 +01:00
a41184d83d Fix generate-bills, remove debug print in charge method 2020-03-05 11:39:48 +01:00
2f70418f4d Fix dumb logic errors/typo from last commit 2020-03-05 11:39:48 +01:00
21e1a3d220 Revamp stripe error handling 2020-03-05 11:39:48 +01:00
4cc19e1e6e Remove legacy credit card support 2020-03-05 11:39:48 +01:00
08bf7cd320 Add STRIPE_PUBLIC_KEY setting 2020-03-05 11:39:48 +01:00
7e9f2ea561 Cleanup/reorder uncloud_pay views 2020-03-05 11:39:48 +01:00
929211162d Replace legacy Stripe Charge API by Payment{setup, intent} 2020-03-05 11:39:48 +01:00
Nico Schottelius
cf17373b3f Fix ahmed introduced migrations
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-05 11:35:00 +01:00
Nico Schottelius
14a4fa8cc1 Merge remote-tracking branch 'ahmed/migrate-one-to-regular-vm' 2020-03-05 11:34:15 +01:00
Nico Schottelius
4fc1c36ae9 fix incorrect migrations from fnux-stable branch
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-05 11:17:30 +01:00
371c5ccf00 Merge remote-tracking branch 'origin/fnux-hacks' 2020-03-04 12:12:22 +01:00
faca104459 Fix stripe import in uncloud_pay.models 2020-03-04 11:05:21 +01:00
9e8149135b Move bill generation logic to Bill class, initial work for prepaid 2020-03-04 10:55:12 +01:00
02b287eff8 small cleaning 2020-03-04 14:44:41 +05: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
a662b1fe29 Make migrate-one-vm-to-regular command idempotent 2020-03-04 13:25:46 +05:00
88c10e2e4a improve readability 2020-03-03 23:53:45 +05:00
fea0568bb9 init commit 2020-03-03 23:46:39 +05:00
e0cb6ac670 Allow for charging customers 2020-03-03 18:16:25 +01:00
Nico Schottelius
ebc9238845 recreate all migrations
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-03 17:50:52 +01:00
94a39ed81d Properly wire stripe card to payment methods 2020-03-03 16:56:42 +01:00
5c2d2a5b94 Document relations for Orders and Managed Services 2020-03-03 13:14:51 +01:00
Nico Schottelius
e9ef2acb06 Add readme for objects 2020-03-03 12:15:05 +01:00
3846e49395 Fix migration issue introduced in previous merge 2020-03-03 11:40:37 +01:00
a849e642dd Merge remote-tracking branch 'origin/master' into fnux-hacks 2020-03-03 11:36:08 +01:00
28407bf3e3 Quickly document OrderRecord class 2020-03-03 11:34:47 +01:00
Nico Schottelius
ea00e81b1e Move all stripe stuff to stripe.py 2020-03-03 11:31:32 +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
Nico Schottelius
e176ad0817 Remove second stripe key definition 2020-03-03 11:26:16 +01:00
Nico Schottelius
a50095f873 Merge remote-tracking branch 'origin/fnux-stable'
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-03 11:23:29 +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