Skip to content

feat(SMS-102): add otp service and models#3

Merged
QuentinTournier40 merged 3 commits into
mainfrom
feat/SMS-102_add_otp
Jun 5, 2025
Merged

feat(SMS-102): add otp service and models#3
QuentinTournier40 merged 3 commits into
mainfrom
feat/SMS-102_add_otp

Conversation

@QuentinTournier40
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

@julesmarche julesmarche left a comment

Choose a reason for hiding this comment

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

Pas grand chose à dire, seulement du détail


String responseBody = response.getBody();

return reSMSMapper.fromJson(responseBody, VerifyOtpResponse.class);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

variable inutile, passe direct response.getbody()

"Failed to create otp: " + response.getCode() + " " + response.getBody());
}

String responseBody = response.getBody();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

variable inutile, passe direct response.getbody()


String responseBody = response.getBody();

return reSMSMapper.fromJson(responseBody, CreateOtpResponse.class);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

variable inutile, passe direct response.getbody()

* @return The response indicating the status of the OTP creation.
* @throws ReSMSException If an error occurs while creating the OTP.
*/
public CreateOtpResponse create(CreateOtpResponse createOtpResponse) throws ReSMSException {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pourquoi create() prend en param un objet de type CreateOtpResponse .

Est ce une erreur de nom de classe ? J'aurai plutôt mis par exemple CreateOtpRequest

@QuentinTournier40 QuentinTournier40 self-assigned this Jun 5, 2025
@QuentinTournier40 QuentinTournier40 merged commit 7570c02 into main Jun 5, 2025
1 check passed
@QuentinTournier40 QuentinTournier40 deleted the feat/SMS-102_add_otp branch June 5, 2025 08:03
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.

2 participants