com.sendsafely.dto.request.GetRecipientRequest Maven / Gradle / Ivy
package com.sendsafely.dto.request;
import com.sendsafely.enums.CountryCode;
import com.sendsafely.enums.GetParam;
import com.sendsafely.enums.HTTPMethod;
import com.sendsafely.json.JsonManager;
public class GetRecipientRequest extends BaseRequest
{
private HTTPMethod method = HTTPMethod.GET;
private String path = "/package/" + GetParam.PACKAGE_ID + "/recipient/" + GetParam.RECIPIENT_ID + "/";
public GetRecipientRequest(JsonManager jsonManager) {
initialize(jsonManager, method, path);
}
public void setPhonenumber(String email)
{
super.setPostParam("email", email);
}
public void setPackageId(String packageId)
{
super.setGetParam(GetParam.PACKAGE_ID, packageId);
}
public void setRecipientId(String recipientId)
{
super.setGetParam(GetParam.RECIPIENT_ID, recipientId);
}
public void addPhonenumber(String phonenumber, CountryCode countryCode)
{
super.setPostParam("phoneNumber", phonenumber);
super.setPostParam("countrycode", countryCode);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy