Commit graph

571 commits

Author SHA1 Message Date
9bbe3b3b56 Adapt uncloud_pay tests to support billing addresses 2020-04-18 09:26:34 +02:00
e6eba7542b Minor fixes, DB sync after rebase 2020-04-18 09:26:21 +02:00
0522927c50 Start wiring BillingAddresses to bills & orders 2020-04-18 09:13:52 +02:00
3fa1d5753e Minimal VAT validation on billing address registration 2020-04-18 09:13:04 +02:00
c6ca94800e Add BillingAddress structure to users 2020-04-18 09:13:04 +02:00
ad187c02da Import VAT rates "importer" from dynamicweb 2020-04-18 09:13:04 +02:00
7afb3f8793 Merge branch 'uncloud-product-activation' into 'master'
Handle product activation on payment

See merge request uncloud/uncloud!6
2020-04-18 09:08:32 +02:00
86775af4c8 Fix product activation tests after rebase 2020-04-18 09:02:33 +02:00
83d2cd465d Sync migrations after rebase 2020-04-18 08:42:50 +02:00
b6c976b722 Commit autp-generated migrations (missing from master?) 2020-04-18 08:36:41 +02:00
d1e993140c Add simple product activation test 2020-04-18 08:36:41 +02:00
c57780fb4d Add naive GenericServiceProduct 2020-04-18 08:36:41 +02:00
83a0ca0e4e Adapt billing tests to product activation structure 2020-04-18 08:35:22 +02:00
5d5bf486b5 Initial product activation implementation 2020-04-18 08:34:41 +02:00
839bd5f8a9 Merge branch 'vm-ordering-disk' into 'master'
Wire disk images to VM creation/ordering, make Order records transparents

See merge request uncloud/uncloud!4
2020-04-18 08:32:07 +02:00
aa0702faba Add chromium to path on CI environment 2020-04-13 12:06:03 +02:00
9a57153c4e Commit missing migrations 2020-04-13 12:02:49 +02:00
f5897ed4b1 Adapt recurring price of VM and Matrix to new scheme 2020-04-13 12:00:59 +02:00
14f59430bb Restore Order.add_record, used by uncloud_pay tests 2020-04-13 11:54:41 +02:00
05f8f1f6c0 Fix dependency issue in CI job 2020-04-13 11:40:19 +02:00
1a58508f8b Rename ungleich_service into uncloud_service 2020-04-13 11:39:49 +02:00
e67bd03997 Migration fix after rebase 2020-04-13 11:19:18 +02:00
a4cc4304f9 Adapt managed service to create VMDiskProduct 2020-04-13 11:19:18 +02:00
d3b7470294 Wire disk images to VM creation/ordering 2020-04-13 11:19:18 +02:00
a7e9f3c09d Move Order.add_record to save hook in abstract Product 2020-04-13 10:42:44 +02:00
Nico Schottelius
ff133e81b7 [vpn] update to show reservations, create wireguard config 2020-04-12 22:55:22 +02:00
Nico Schottelius
85b4d70592 [vpn] make a vpn creat-able!
[15:40] line:~% http -a nicoschottelius:$(pass ungleich.ch/nico.schottelius@ungleich.ch)  http://localhost:8000/net/vpn/ network_size=48  wireguard_public_key=$(wg genkey | wg pubkey)
HTTP/1.1 201 Created
Allow: GET, POST, HEAD, OPTIONS
Content-Length: 206
Content-Type: application/json
Date: Sun, 12 Apr 2020 13:40:26 GMT
Server: WSGIServer/0.2 CPython/3.7.3
Vary: Accept
X-Content-Type-Options: nosniff
X-Frame-Options: DENY

{
    "extra_data": null,
    "network": "2a0a:e5c1:203::",
    "order": null,
    "owner": 30,
    "status": "PENDING",
    "uuid": "8f977a8f-e06a-4346-94ae-8f525df58b7b",
    "wireguard_public_key": "JvCuUTZHm9unasJkGsLKN0Bf/hu6ZSIv7dnIGPyJ6xA="
}
2020-04-12 15:40:39 +02:00
Nico Schottelius
b55254b9b1 Merge branch 'master' of code.ungleich.ch:uncloud/uncloud 2020-04-12 14:28:39 +02:00
Nico Schottelius
bc033a9087 Merge branch 'master' of code.ungleich.ch:uncloud/uncloud 2020-04-12 11:36:51 +02:00
Nico Schottelius
05f38d157e add a discounter function to the product model 2020-04-12 11:35:37 +02:00
Nico Schottelius
bab59b1879 Merge branch 'master' of code.ungleich.ch:uncloud/uncloud 2020-04-11 21:37:50 +02:00
Nico Schottelius
50b8b7a5f6 in-between commit 2020-04-11 21:37:36 +02:00
f1bba63f6f Merge branch 'yearly-billing' into 'master'
Implement yearly billing, general billing tests

See merge request uncloud/uncloud!5
2020-04-11 21:37:13 +02:00
276c7e9901 Set VM order starting date on creation 2020-04-09 14:52:56 +02:00
3a37343a73 Set default value for vpnnetworkreservation, rebuild migrations 2020-04-09 14:28:46 +02:00
3588ae88f9 Merge branch 'master' into HEAD 2020-04-09 14:10:01 +02:00
Nico Schottelius
9431f11284 ++notes 2020-04-09 12:09:38 +02:00
Nico Schottelius
e64c2b8ddb Merge branch 'master' of code.ungleich.ch:uncloud/uncloud 2020-04-09 12:08:17 +02:00
Nico Schottelius
d9473e8f33 ++ doc 2020-04-09 12:08:11 +02:00
cb3346303b Fix typo in migration dependencies for uncloud_pay 2020-04-09 12:06:05 +02:00
Nico Schottelius
7d892daff9 [db] stay on psql+socket 2020-04-09 11:59:49 +02:00
Nico Schottelius
08b9886ce3 Remove sample secret key in secrets_sample
No need to worry, this was just a testing key
2020-04-09 11:59:25 +02:00
d6bdf5c991 Merge branch 'sync-old-meowpay-patches' into 'master'
Revamped payment pipeline (imported from nico/mew-cloud)

See merge request uncloud/uncloud!3
2020-04-09 11:31:49 +02:00
cc7056c87c Remove old Stripe settings from secrets_sample.py 2020-04-08 17:55:48 +02:00
a8b81b074b Remove user view from uncloud_pay 2020-04-08 17:40:44 +02:00
89c705f7d2 Set one payment method as primary, allow updates 2020-04-08 17:22:53 +02:00
f2a797874a Merge branch 'master' into stripe-js 2020-04-08 17:08:09 +02:00
Nico Schottelius
d3f2a3e071 in between commit
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-04-08 16:24:39 +02:00
Nico Schottelius
3d2f8574d3 [db] use tcp -> support ssh 2020-04-08 13:09:17 +02:00
Nico Schottelius
1838eaf7dd Merge branch 'master' of code.ungleich.ch:uncloud/uncloud 2020-04-08 12:07:11 +02:00