com.thebund1st.daming.commands.VerifySmsVerificationCodeCommand Maven / Gradle / Ivy
package com.thebund1st.daming.commands;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.thebund1st.daming.core.MobilePhoneNumber;
import com.thebund1st.daming.core.SmsVerificationCode;
import com.thebund1st.daming.core.SmsVerificationScope;
import com.thebund1st.daming.json.deserializers.MobilePhoneNumberJsonDeserializer;
import com.thebund1st.daming.json.deserializers.SmsVerificationCodeJsonDeserializer;
import com.thebund1st.daming.json.deserializers.SmsVerificationScopeJsonDeserializer;
import com.thebund1st.daming.validation.ValidMobilePhoneNumber;
import com.thebund1st.daming.validation.ValidSmsVerificationCode;
import com.thebund1st.daming.validation.ValidSmsVerificationScope;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@EqualsAndHashCode
public class VerifySmsVerificationCodeCommand {
@ValidMobilePhoneNumber
@JsonDeserialize(using = MobilePhoneNumberJsonDeserializer.class)
private MobilePhoneNumber mobile;
@ValidSmsVerificationScope
@JsonDeserialize(using = SmsVerificationScopeJsonDeserializer.class)
private SmsVerificationScope scope;
@ValidSmsVerificationCode
@JsonDeserialize(using = SmsVerificationCodeJsonDeserializer.class)
private SmsVerificationCode code;
}