Skip to content

Commit

Permalink
Retry user verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Giordano committed May 30, 2018
1 parent 9433532 commit 2c39dae
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.liberologico.cloudesire.cmw.model.dto.PasswordRecoveryDTO;
import com.liberologico.cloudesire.cmw.model.dto.PasswordResetDTO;
import com.liberologico.cloudesire.cmw.model.dto.ResellerDTO;
import com.liberologico.cloudesire.cmw.model.dto.VerificationRetryDTO;
import com.liberologico.cloudesire.cmw.model.dto.SepaDataDTO;
import com.liberologico.cloudesire.cmw.model.dto.TokenDataDTO;
import com.liberologico.cloudesire.cmw.model.enums.UserRole;
Expand Down Expand Up @@ -107,8 +108,8 @@ Call<List<MyUserDTO>> getTypeahead( @Path( "query" ) String query, @QueryMap Map
@POST( "user/password/reset" )
Call<Void> passwordReset( @Body PasswordResetDTO request, @Query( "reseller" ) String reseller );

@PATCH( "user" )
Call<Void> retryRegistration( @Body Object input );
@POST( "user/verification" )
Call<Void> retryVerification( @Body VerificationRetryDTO input );

@POST( "user/payment/card" )
Call<Void> saveCardData( @Body CardDataDTO data );
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package com.liberologico.cloudesire.cmw.model.dto;

public final class VerificationRetryDTO
{
private String username;

private String email;

public static VerificationRetryDTO forUsername( String username )
{
return new VerificationRetryDTO( username, null );
}

public static VerificationRetryDTO forEmail( String email )
{
return new VerificationRetryDTO( null, email );
}

private VerificationRetryDTO( String username, String email )
{
this.username = username;
this.email = email;
}

private VerificationRetryDTO()
{
}

public String getUsername()
{
return username;
}

public String getEmail()
{
return email;
}
}

0 comments on commit 2c39dae

Please sign in to comment.