travel.wink.wise.partner.client.params.RegistrationCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wise-java-sdk Show documentation
Show all versions of wise-java-sdk Show documentation
Spring Boot implementation to TransferWise
The newest version!
package travel.wink.wise.partner.client.params;
import static java.util.UUID.randomUUID;
/**
* The type Registration code.
*/
public final class RegistrationCode extends Parameter {
/**
* Instantiates a new Registration code.
*/
public RegistrationCode() {
super(randomUUID().toString());
}
/**
* Instantiates a new Registration code.
*
* @param registrationCode the registration code
*/
public RegistrationCode(final String registrationCode) {
super(registrationCode);
}
@Override
public String key() {
return "registration_code";
}
/**
* V 1 v 1 registration code.
*
* @return the v 1 registration code
*/
public V1RegistrationCode v1() {
return new V1RegistrationCode(value());
}
}