Andreas Granig
3db6117dfd
MT#3931 API: Implement customer contacts.
...
Move update parts into role.
Implement customer contacts.
12 years ago
Andreas Granig
5c5668da28
MT#3949 API: Implement reseller resource handling.
12 years ago
Andreas Granig
c0a6264507
MT#5299 API: Implement implicit zone def for fees
12 years ago
Andreas Granig
d12520982f
MT#5299 API: more billing tests and bug fixes.
12 years ago
Andreas Granig
b3de58ff9c
MT#5299 API: Implement billing zone handling.
12 years ago
Andreas Granig
bdb129ec67
MT#5299 API: Add billing fee handling.
12 years ago
Andreas Granig
cd2d9e47aa
MT#5255 Fix boolean handling and HFH validation
12 years ago
Andreas Granig
5ba6edcadc
MT#5299 API: add first tests for billing profiles.
12 years ago
Andreas Granig
829b432b47
MT#5299 API: PUT/PATCH/GET billingprofiles item
12 years ago
Andreas Granig
3ce79d6703
MT#5299 API: GET and POST billing profiles.
12 years ago
Andreas Granig
45a460a1ce
MT#3949 API: implement contracts handling.
12 years ago
Andreas Granig
14d9374e8c
MT#3949 API: move common contract stuff to role.
12 years ago
Andreas Granig
b64266b969
MT#3949 API: Implement base-line for sys contracts
...
Allows to post, put, patch and get peering and reseller contracts.
Needs tests.
12 years ago
Andreas Granig
7a782eb4fb
MT#5255 API: Create roles for resources.
...
Collections and Items have common functions (e.g. hal_from_xxx),
so move them into separate roles.
12 years ago
Andreas Granig
458852f70e
MT#5255 API: use local time for timestamps.
12 years ago
Andreas Granig
02998dd688
MT#3949 API: base-line for system contracts.
12 years ago
Andreas Granig
6bb57f08f2
MT#3997 Finish API skeleton.
...
We should now have working baselines for
- collections (SystemContacts)
- items (SystemContactsItem)
with support for
- collections: OPTIONS, HEAD, GET, POST
- items: OPTIONS, HEAD, GET, PUT, PATCH, DELETE
covered by according tests and with a proper API documentation.
12 years ago
Andreas Granig
f4a9e39a8a
MT#5255 API: move contacts to systemcontacts.
...
Clearly distinguish between systemcontacts (those without reseller) from
customercontacts (those with resellers). Separating them frees us from
having to handle reseller_id magic.
12 years ago
Andreas Granig
beb93987eb
MT#3997 API: move req/res log functions to Role.
12 years ago
Andreas Granig
a135c00190
MT#5255 API: prevent DELETE of used contact
12 years ago
Andreas Granig
a6c3ecb580
MT#5255 API: Implement DELETE for contacts
12 years ago
Andreas Granig
2c51cbd0fb
MT#3997 Fix PUT with reseller_id=null for contact
12 years ago
Andreas Granig
9aa1560619
MT#3997 Dynamically return collections relations.
12 years ago
Andreas Granig
7b8092f702
MT#3997 Get rid of the remaining tt xml responses
12 years ago
Andreas Granig
5e3b642107
MT#5215 Replace NoPassword cred handler
...
In our catalyst version, there is no NoPassword credentials handler,
so use the Password handler instead.
12 years ago
Andreas Granig
515990623f
MT#3997 Fix general collection/item handling.
...
Use paging.
Start adding tests for contacts/ collection.
Move more common functions to Role.
Use proper forms for field checking.
12 years ago
Andreas Granig
a4a9f703bd
MT#3997 Remove QueryParameter dependency.
12 years ago
Andreas Granig
fd19cf79c1
MT#3997 Return JSON on precondition failures.
12 years ago
Andreas Granig
0fb58d2668
MT#3997 Use JSON in OPTIONS methods.
12 years ago
Andreas Granig
40ecb1e91d
MT#3997 Distinguish collection and item in URI
...
Use /api/foo/ for collections and /api/foo/{:id} for items to easily
distinguish between them. Also, we want to use query params for limiting
the collections, e.g. /api/foo/?name={:name}&something={:else}, which in
turn returns a filtered collection again. This makes it difficult then to
fetch items via /api/foo/?id={:id}, so use /api/foo/{:id} instead.
Also move rest of common functions into API Role.
12 years ago
Andrew Pogrebennyk
d52049a8f7
MT#3997 MT#5193 Fix build_via_routes with only one external sbc.
12 years ago
Gerhard Jungwirth
f11ae484ef
MT#3917 do not alter datetime objects from schema
...
this is now correctly handled in the schema (it gives us localtime, so
we do not have to do anything)
12 years ago
Gerhard Jungwirth
83a4085255
MT#5147 Proper DateTime deflation in Forms
12 years ago
Andreas Granig
6d3fa76e7f
MT#5173 Very basic support for polycom prov
...
Bootstrap Params: 447=2,445=[% server.uri %],264=2
Bootstrap Method: POST
Bootstrap URI: http://[% client.ip %]/form-submit
12 years ago
Gerhard Jungwirth
6524548201
MT#4129 Validate update customer with wrong resellers
...
The reseller of the old billing_profile was tested instead of the new one
(see 4129#c29575)
12 years ago
Gerhard Jungwirth
fdb2b49e1f
MT#4693 show contract balance in euros instead of cents
12 years ago
Gerhard Jungwirth
4fa47ff2b0
MT#4767 Show missing registered devices
...
on a non-multidomain installation, dont check for domain
in customer details - subscribers - registered devices
12 years ago
Andreas Granig
2bff65040d
MT#5103 Add date picker to call distribution graph
12 years ago
Andreas Granig
b84bc50b14
MT#5131 Make CSV fee parsing more tight.
12 years ago
Andreas Granig
2ef9dc16b5
MT#4565 Fix read-only permissions.
...
Properly deny write ops for read-only admins and resellers.
12 years ago
Andreas Granig
59a75ed63e
MT#5103 Add basic call distribution graph.
...
Still needs date picker to limit range.
12 years ago
Gerhard Jungwirth
342ba867d7
MT#4967 Show primary number in subscriber list
...
The wrong relation was used here. Discovered during testing for ticket
MT#4967.
12 years ago
Andreas Granig
c88c69d322
MT#4235 Implement static Jitsi provisioning.
...
Should be reworked in a next step to use the dynamic configuration
management, but currently you'd need a PBX device for that, so keep
it static for now.
12 years ago
Andreas Granig
f8dfb8fcae
MT#5009 Use proper alias number sub-elements.
12 years ago
Andreas Granig
d62a5ac948
MT#5009 Fix syntax error.
12 years ago
Andreas Granig
4384ec33b2
MT#5009 Properly reuse alias numbers also.
...
Previously, we assumed they were already deleted in billing.voip_numbers,
which they're not (anymore).
12 years ago
Andreas Granig
2258395ed7
MT#5009 Properly free voip_numbers on termination.
...
Don't delete voip_numbers (which was forgotten if the status
got set to terminated anyways), rather than free them by
undef'ing the subscriber_id and reseller_id.
12 years ago
Andreas Granig
e3ba8b4243
MT#5009 Properly re-use free numbers.
...
Don't try to insert a number into billing.voip_numbers directly,
rather than using the update_subscriber_numbers helper, which
handles the re-using of free numbers.
12 years ago
Andreas Granig
059607a8c7
MT#4955 Only allow one ss, set dom-pref np-display
...
If a sound set is contract default and you create another default one,
the old gets non-default.
Properly handle contract default setting also when editing sound sets.
And while at it, set np-display as outbound-from-display-name dom-pref
when creating a PBX domain.
12 years ago
Gerhard Jungwirth
2ada158ac6
MT#4967 Let admin/reseller always change subscriber numbers
...
When editing a subscriber as admin, you possibly got a stripped version of the
form, where you cannot change e164 or alias_numbers anymore.
12 years ago