Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web/rest: added PUT /billable_calls/{callid}/rate endpoint #1160

Merged

Conversation

mmadariaga
Copy link
Contributor

@mmadariaga mmadariaga commented Oct 23, 2019

Added PUT /billable_calls/{callid}/rate endpoint on platoform and brand API

Type Of Change

  • Small bug fix
  • New feature or enhancement
  • Breaking change

Checklist:

  • Commits are named and have tag following commit rules
  • Commits are split per component (schema, web/admin, kamusers, agis, ..)
  • Changes have been tested locally
  • Fixes an existing issue (Fixes #XXXX)

@mmadariaga mmadariaga changed the title web/rest: added PUT /billable_calls/{callid}/rate endpoint on platofo… web/rest: added PUT /billable_calls/{callid}/rate endpoint Oct 23, 2019
@mmadariaga mmadariaga self-assigned this Oct 23, 2019
@mmadariaga mmadariaga added * artemis * IvozProvider 2.x Artemis Release web/rest Rest API labels Oct 23, 2019
@mmadariaga mmadariaga added this to the 2.13.0 milestone Oct 23, 2019
@mmadariaga mmadariaga added the tests Test label Oct 23, 2019
@mmadariaga mmadariaga force-pushed the api-billable-call-endpoints-for-externally-raters branch 4 times, most recently from 90305ca to e927241 Compare October 23, 2019 14:23
@mmadariaga mmadariaga requested review from cruzccl and Kaian October 23, 2019 14:25
@mmadariaga mmadariaga marked this pull request as ready for review October 23, 2019 14:30
@mmadariaga mmadariaga force-pushed the api-billable-call-endpoints-for-externally-raters branch from e927241 to a59f5a7 Compare October 23, 2019 14:30
Comment on lines +75 to +96
if (count($calls) !== 1) {
$errorMsg = sprintf(
'Multiple calls found with callid %s',
$callid
);

throw new \DomainException($errorMsg, 500);
}
Copy link
Member

@Kaian Kaian Oct 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we leave this as is, it would be impossible to tarificate bounced calls within the same brand.
Maybe we should add extra conditions to avoid this scenario (direction with outgoing as default value?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated repository query, thanks :)

@mmadariaga mmadariaga force-pushed the api-billable-call-endpoints-for-externally-raters branch 4 times, most recently from a87949e to c3b3588 Compare October 25, 2019 10:58
@mmadariaga mmadariaga requested a review from Kaian October 25, 2019 11:07
@mmadariaga mmadariaga force-pushed the api-billable-call-endpoints-for-externally-raters branch from c3b3588 to 957eb6f Compare October 25, 2019 11:17
@ironArt3mis
Copy link

Rebase completed.

@ironArt3mis ironArt3mis force-pushed the api-billable-call-endpoints-for-externally-raters branch from 957eb6f to 40a670a Compare October 28, 2019 09:02
@ironArt3mis
Copy link

Rebase completed.

@ironArt3mis ironArt3mis force-pushed the api-billable-call-endpoints-for-externally-raters branch from 40a670a to c8794bf Compare October 29, 2019 09:50
@cruzccl cruzccl force-pushed the api-billable-call-endpoints-for-externally-raters branch from c8794bf to 8dba768 Compare October 29, 2019 11:17
@mmadariaga mmadariaga force-pushed the api-billable-call-endpoints-for-externally-raters branch 5 times, most recently from 25fd202 to 3ffd5d0 Compare October 29, 2019 14:28
@mmadariaga mmadariaga force-pushed the api-billable-call-endpoints-for-externally-raters branch from 3ffd5d0 to 99519ba Compare October 29, 2019 16:04
Copy link
Member

@cruzccl cruzccl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@mmadariaga mmadariaga merged commit a88bf36 into bleeding Oct 29, 2019
@mmadariaga mmadariaga deleted the api-billable-call-endpoints-for-externally-raters branch October 29, 2019 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
* artemis * IvozProvider 2.x Artemis Release tests Test web/rest Rest API
Development

Successfully merging this pull request may close these issues.

4 participants