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

DEVEXP-462 numbers snippets #6

Merged
merged 7 commits into from
Jun 24, 2024
Merged

DEVEXP-462 numbers snippets #6

merged 7 commits into from
Jun 24, 2024

Conversation

JPPortier
Copy link
Contributor

No description provided.

Copy link

@alex-sberna alex-sberna left a comment

Choose a reason for hiding this comment

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

LGTM

Choose a reason for hiding this comment

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

From the name of the folder, I would have expected another action to configure the rented number. For instance, you are also providing the SMS config in the rent_any snippet.
Maybe you can add a second request (update) to set the Voice config ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done; but will sync with doc.
Seems snippet become more than a simple snippet.
We could imagine something like:

  • rentAny snippet: from this PR highlighting rent and configuration for SMS with a single request
  • rent snippet: the 1st part of this snippet source to rent an available number returned by "list available"
  • update snippet: the 2nd part of this snippet source to perform an update onto an already rented number

Will check with doc (@alex-sberna )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.
According to last sync:

  • rent_and_config become simply 'rent' (even if it contains configuration; the purpose of the snippet is to highlight a 'rent' action)
  • a new 'update only' snippet is added


ActiveNumberService activeNumbersService = numbersService.active();

String phoneNumber = "YOUR_phone_number_to_be_rented";

Choose a reason for hiding this comment

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

The phone number is already rented at this step

Choose a reason for hiding this comment

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

Could be something like "YOUR_phone_number_to_be_updated"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right
Thank you.
Fixed

@JPPortier JPPortier merged commit c60847f into main Jun 24, 2024
1 check passed
@JPPortier JPPortier deleted the DEVEXP-462-numbers-snippets branch June 24, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants