Commit graph

4559 commits

Author SHA1 Message Date
PCoder
91695eaee4 Check if multiple line items belong to the same subscription
We are just fine in this case to create a Monthly hosting bill
Also return None explicitly if MonthlyHostingBill is not created
2019-04-20 07:23:16 +02:00
PCoder
a3cca03edb Merge branch 'master' into feature/6561/invoices-webhook 2019-04-18 08:16:15 +02:00
PCoder
0969c97eca Add missing string to debug code 2019-04-18 08:13:56 +02:00
PCoder
da3d462505 Update Changelog for 2.5.1 2019-04-17 08:50:29 +02:00
PCoder
6f08a0e7da Redirect users to invoice instead of orders 2019-04-16 00:15:37 +02:00
PCoder
22accdd0d0 Fallback to vm_id from order if its not set in metadata 2019-04-16 00:02:44 +02:00
PCoder
d64b6329ab Fallback to obtain VM_ID from order if not in metadata 2019-04-15 23:17:38 +02:00
PCoder
3c215638f5 Send error mails to admin only 2019-04-15 22:57:02 +02:00
PCoder
3b26b94fd3 Add logger message 2019-04-15 22:27:11 +02:00
PCoder
eb360c7406 Make HostingOrder not mandatory in MonthlyHostingBill 2019-04-15 21:53:35 +02:00
PCoder
c081f9e73a Handle error better 2019-04-14 11:17:48 +02:00
PCoder
e7196af1f9 Fix a typo 2019-04-14 02:04:12 +02:00
PCoder
5cb1c136cf Fex checking webhook_id in options 2019-04-14 02:03:06 +02:00
PCoder
dc4ad93de8 Add list/delete functionality to webhook 2019-04-14 01:59:29 +02:00
PCoder
3b84d6f646 Handle presence of HTTP_STRIPE_SIGNATURE header in META 2019-04-14 01:36:03 +02:00
PCoder
d71bf87470 Add webhooks url 2019-04-14 01:09:53 +02:00
PCoder
0ed3c84461 Log unhandled case 2019-04-14 00:59:25 +02:00
PCoder
8a59c2da1e Implement handling invoice.payment_succeeded and invoice.payment_failed webhooks 2019-04-14 00:58:13 +02:00
PCoder
9b32290964 Add webhook app and create_webhook management command 2019-04-13 23:52:41 +02:00
PCoder
68538ac981 Update stripe version (supports stripe.Webhook) 2019-04-13 22:20:09 +02:00
PCoder
4b0ffbbc5d Update Changelog 2019-04-13 21:22:09 +02:00
c9fb034ebd Merge branch 'feature/monthly-invoices' into 'master'
Feature/monthly invoices

See merge request ungleich-public/dynamicweb!689
2019-04-13 21:18:36 +02:00
PCoder
c3842a5ed5 Get periods from line items in invoice detail also 2019-04-13 15:43:27 +02:00
PCoder
c5f72792d2 Show period of the first line item as the period of the invoice 2019-04-13 15:35:36 +02:00
PCoder
a3a2016cb4 Attempt period from line_items 2019-04-13 15:24:37 +02:00
PCoder
77669c962c Fix passing correct created value 2019-04-13 15:00:19 +02:00
PCoder
869f74e4e6 Fix typo 2019-04-13 14:43:39 +02:00
PCoder
a4427dd3af Set empty string for description if not available 2019-04-13 14:40:20 +02:00
PCoder
ed6059feaa Set unit amount to 0 if not available in Stripe response 2019-04-13 14:34:42 +02:00
PCoder
4a01036ab5 Attempt correction to gt dict to be passed for created greater than 2019-04-13 14:34:17 +02:00
PCoder
94c7873397 Fix getting line_items 2019-04-13 13:50:09 +02:00
PCoder
8816793803 Add Line item 2019-04-13 13:42:04 +02:00
PCoder
061ef7d036 Fetch invoices whose date is greater than given date only 2019-04-13 12:54:57 +02:00
PCoder
9ee21b9bc3 Allow admin to see invoices 2019-04-13 12:37:37 +02:00
PCoder
3bf4f4dca7 Merge branch 'master' into feature/monthly-invoices 2019-04-13 12:13:38 +02:00
d1d161ac49 Merge branch 'feature/enhance-logging' into 'master'
Feature/enhance logging

See merge request ungleich-public/dynamicweb!693
2019-04-13 12:08:44 +02:00
PCoder
f50af4f2aa Improve log formatting 2019-04-13 12:04:18 +02:00
PCoder
4cf7b93ee2 Create logs directory 2019-04-13 12:02:48 +02:00
PCoder
fefcdb5647 Pass correct key email 2019-04-12 09:10:19 +02:00
PCoder
c232f4c1da Fix error in obtaining customuser for mab 2019-04-12 08:41:05 +02:00
PCoder
6a7b5459ce Allow admin to list invoices 2019-04-12 08:14:52 +02:00
PCoder
b34425d24b Merge branch 'opennebula-5.8.1/misc' 2019-04-11 02:13:23 +02:00
PCoder
f8458f369d Update Changelog 2.5 2019-04-11 02:12:24 +02:00
19e03f218a Merge branch 'opennebula-5.8.1/misc' into 'master'
Revert back to old serializer code

See merge request ungleich-public/dynamicweb!692
2019-04-11 02:05:45 +02:00
PCoder
7f9ada60ee Revert back to old serializer code 2019-04-11 01:58:51 +02:00
3ba37207d1 Merge branch 'opennebula-5.8.1/get-ips' into 'master'
Opennebula 5.8.1/get ips

See merge request ungleich-public/dynamicweb!691
2019-04-11 01:52:06 +02:00
PCoder
5f8cc2199b Change vm_pool infoextended to retrieve VMs in any state except DONE 2019-04-11 01:39:06 +02:00
PCoder
3f75fac158 Make use of the infoextended method where needed 2019-04-11 01:05:34 +02:00
67d39a905d Merge branch 'bugfix/upgrade_to_opennebula_5.8.1' into 'master'
Bugfix/upgrade to opennebula 5.8.1

See merge request ungleich-public/dynamicweb!690
2019-04-09 09:22:50 +02:00
PCoder
a8caa035c0 Set configuration to empty string if not available 2019-04-09 09:12:09 +02:00