cn.jsbintask.wxpay.request.WxPayShortUrlRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wxpay-sdk Show documentation
Show all versions of wxpay-sdk Show documentation
wxpay-sdk is a tool for WX pay.
The newest version!
package cn.jsbintask.wxpay.request;
import cn.jsbintask.wxpay.WxPayConstants;
import cn.jsbintask.wxpay.response.WxPayResponse;
import cn.jsbintask.wxpay.response.WxPayShortUrlResponse;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author [email protected]
* @date 2019/9/10 10:46
*/
@EqualsAndHashCode(callSuper = true)
@Data
@JacksonXmlRootElement(localName = "xml")
public class WxPayShortUrlRequest extends AbstractWxPayRequest {
private String longUrl;
@Override
public Class extends WxPayResponse> responseType() {
return WxPayShortUrlResponse.class;
}
@Override
public boolean ssl() {
return false;
}
@Override
public String apiSuffix() {
return WxPayConstants.SHORTURL_URL_SUFFIX;
}
}