Given I am
authenticated
When I send
/api/customers/K0002/cti-billing-modes
Then I should receive
HTTP/1.1 200 OK
with following body
{
"href": "/api/customers/K0002/cti-billing-modes",
"items": [{
"href": null,
"links": [],
"data": [{
"name": "name",
"value": "ON"
}]
}, {
"href": null,
"links": [],
"data": [{
"name": "name",
"value": "OFF"
}]
}, {
"href": null,
"links": [],
"data": [{
"name": "name",
"value": "TRIAL"
}]
}],
"links": null
}
Given I am
authenticated
and
there is a Customer with ID
K0002
with:
- cti trial period end is set to 2014-01-01T12:00:00+0100
When I send
/api/customers/K0002/cti-billing-modes
Then I should receive
HTTP/1.1 200 OK
with following body
{
"href": "/api/customers/K0002/cti-billing-modes",
"items": [{
"href": null,
"links": [],
"data": [{
"name": "name",
"value": "ON"
}]
}, {
"href": null,
"links": [],
"data": [{
"name": "name",
"value": "OFF"
}]
}],
"links": null
}