com.alipay.api.request.AlipayAcquireCreateandpayRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alipay-sdk Show documentation
Show all versions of alipay-sdk Show documentation
alipay-sdk project for Spring Project
The newest version!
package com.alipay.api.request;
import java.util.Map;
import com.alipay.api.AlipayRequest;
import com.alipay.api.internal.util.AlipayHashMap;
import com.alipay.api.response.AlipayAcquireCreateandpayResponse;
import com.alipay.api.AlipayObject;
/**
* ALIPAY API: alipay.acquire.createandpay request
*
* @author auto create
* @since 1.0, 2016-11-22 19:31:24
*/
public class AlipayAcquireCreateandpayRequest implements AlipayRequest {
private AlipayHashMap udfParams; // add user-defined text parameters
private String apiVersion="1.0";
/**
* 证书签名
*/
private String alipayCaRequest;
/**
* 对一笔交易的具体描述信息。如果是多种商品,请将商品描述字符串累加传给body。
*/
private String body;
/**
* 买家支付宝账号,可以为email或者手机号。
*/
private String buyerEmail;
/**
* 买家支付宝账号对应的支付宝唯一用户号。
以2088开头的纯16位数字。
*/
private String buyerId;
/**
* 描述多渠道收单的渠道明细信息,json格式,具体请参见“4.5 渠道明细说明”。
*/
private String channelParameters;
/**
* 订单金额币种。
目前只支持传入156(人民币)。
如果为空,则默认设置为156。
*/
private String currency;
/**
* 动态ID。
*/
private String dynamicId;
/**
* 动态ID类型:
soundwave:声波
qrcode:二维码
barcode:条码
wave_code:声波,等同soundwave
qr_code:二维码,等同qrcode
bar_code:条码,等同barcode
建议取值wave_code、qr_code、bar_code。
*/
private String dynamicIdType;
/**
* 用于商户的特定业务信息的传递,只有商户与支付宝约定了传递此参数且约定了参数含义,此参数才有效。
比如可传递声波支付场景下的门店ID等信息,以json格式传输,具体请参见“4.7 业务扩展参数说明”。
*/
private String extendParams;
/**
* xml或json
*/
private String formatType;
/**
* 描述商品明细信息,json格式,具体请参见“4.3 商品明细说明”。
*/
private String goodsDetail;
/**
* 设置未付款交易的超时时间,一旦超时,该笔交易就会自动被关闭。
取值范围:1m~15d。
m-分钟,h-小时,d-天,1c-当天(无论交易何时创建,都在0点关闭)。
该参数数值不接受小数点,如1.5h,可转换为90m。
该功能需要联系支付宝配置关闭时间。
*/
private String itBPay;
/**
* 描述预付卡相关的明细信息,json格式,具体请参见“4.8 预付卡明细参数说明”。
*/
private String mcardParameters;
/**
* 卖家的操作员ID。
*/
private String operatorId;
/**
* 操作员的类型:
0:支付宝操作员
1:商户的操作员
如果传入其它值或者为空,则默认设置为1。
*/
private String operatorType;
/**
* 支付宝合作商户网站唯一订单号。
*/
private String outTradeNo;
/**
* 订单中商品的单价。
如果请求时传入本参数,则必须满足total_fee=price×quantity的条件。
*/
private String price;
/**
* 订单中商品的数量。
如果请求时传入本参数,则必须满足total_fee=price×quantity的条件。
*/
private String quantity;
/**
* 业务关联ID集合,用于放置商户的订单号、支付流水号等信息,json格式,具体请参见“4.6 业务关联ID集合说明”。
*/
private String refIds;
/**
* 描述分账明细信息,json格式,具体请参见“4.4 分账明细说明”。
*/
private String royaltyParameters;
/**
* 卖家的分账类型,目前只支持传入ROYALTY(普通分账类型)。
*/
private String royaltyType;
/**
* 卖家支付宝账号,可以为email或者手机号。
如果seller_id不为空,则以seller_id的值作为卖家账号,忽略本参数。
*/
private String sellerEmail;
/**
* 卖家支付宝账号对应的支付宝唯一用户号。
以2088开头的纯16位数字。
如果和seller_email同时为空,则本参数默认填充partner的值。
*/
private String sellerId;
/**
* 收银台页面上,商品展示的超链接。
*/
private String showUrl;
/**
* 商品的标题/交易标题/订单标题/订单关键字等。
该参数最长为128个汉字。
*/
private String subject;
/**
* 该笔订单的资金总额,取值范围[0.01,100000000],精确到小数点后2位。
*/
private String totalFee;
public void setAlipayCaRequest(String alipayCaRequest) {
this.alipayCaRequest = alipayCaRequest;
}
public String getAlipayCaRequest() {
return this.alipayCaRequest;
}
public void setBody(String body) {
this.body = body;
}
public String getBody() {
return this.body;
}
public void setBuyerEmail(String buyerEmail) {
this.buyerEmail = buyerEmail;
}
public String getBuyerEmail() {
return this.buyerEmail;
}
public void setBuyerId(String buyerId) {
this.buyerId = buyerId;
}
public String getBuyerId() {
return this.buyerId;
}
public void setChannelParameters(String channelParameters) {
this.channelParameters = channelParameters;
}
public String getChannelParameters() {
return this.channelParameters;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public String getCurrency() {
return this.currency;
}
public void setDynamicId(String dynamicId) {
this.dynamicId = dynamicId;
}
public String getDynamicId() {
return this.dynamicId;
}
public void setDynamicIdType(String dynamicIdType) {
this.dynamicIdType = dynamicIdType;
}
public String getDynamicIdType() {
return this.dynamicIdType;
}
public void setExtendParams(String extendParams) {
this.extendParams = extendParams;
}
public String getExtendParams() {
return this.extendParams;
}
public void setFormatType(String formatType) {
this.formatType = formatType;
}
public String getFormatType() {
return this.formatType;
}
public void setGoodsDetail(String goodsDetail) {
this.goodsDetail = goodsDetail;
}
public String getGoodsDetail() {
return this.goodsDetail;
}
public void setItBPay(String itBPay) {
this.itBPay = itBPay;
}
public String getItBPay() {
return this.itBPay;
}
public void setMcardParameters(String mcardParameters) {
this.mcardParameters = mcardParameters;
}
public String getMcardParameters() {
return this.mcardParameters;
}
public void setOperatorId(String operatorId) {
this.operatorId = operatorId;
}
public String getOperatorId() {
return this.operatorId;
}
public void setOperatorType(String operatorType) {
this.operatorType = operatorType;
}
public String getOperatorType() {
return this.operatorType;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getOutTradeNo() {
return this.outTradeNo;
}
public void setPrice(String price) {
this.price = price;
}
public String getPrice() {
return this.price;
}
public void setQuantity(String quantity) {
this.quantity = quantity;
}
public String getQuantity() {
return this.quantity;
}
public void setRefIds(String refIds) {
this.refIds = refIds;
}
public String getRefIds() {
return this.refIds;
}
public void setRoyaltyParameters(String royaltyParameters) {
this.royaltyParameters = royaltyParameters;
}
public String getRoyaltyParameters() {
return this.royaltyParameters;
}
public void setRoyaltyType(String royaltyType) {
this.royaltyType = royaltyType;
}
public String getRoyaltyType() {
return this.royaltyType;
}
public void setSellerEmail(String sellerEmail) {
this.sellerEmail = sellerEmail;
}
public String getSellerEmail() {
return this.sellerEmail;
}
public void setSellerId(String sellerId) {
this.sellerId = sellerId;
}
public String getSellerId() {
return this.sellerId;
}
public void setShowUrl(String showUrl) {
this.showUrl = showUrl;
}
public String getShowUrl() {
return this.showUrl;
}
public void setSubject(String subject) {
this.subject = subject;
}
public String getSubject() {
return this.subject;
}
public void setTotalFee(String totalFee) {
this.totalFee = totalFee;
}
public String getTotalFee() {
return this.totalFee;
}
private String terminalType;
private String terminalInfo;
private String prodCode;
private String notifyUrl;
private String returnUrl;
private boolean needEncrypt=false;
private AlipayObject bizModel=null;
public String getNotifyUrl() {
return this.notifyUrl;
}
public void setNotifyUrl(String notifyUrl) {
this.notifyUrl = notifyUrl;
}
public String getReturnUrl() {
return this.returnUrl;
}
public void setReturnUrl(String returnUrl) {
this.returnUrl = returnUrl;
}
public String getApiVersion() {
return this.apiVersion;
}
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
public void setTerminalType(String terminalType){
this.terminalType=terminalType;
}
public String getTerminalType(){
return this.terminalType;
}
public void setTerminalInfo(String terminalInfo){
this.terminalInfo=terminalInfo;
}
public String getTerminalInfo(){
return this.terminalInfo;
}
public void setProdCode(String prodCode) {
this.prodCode=prodCode;
}
public String getProdCode() {
return this.prodCode;
}
public String getApiMethodName() {
return "alipay.acquire.createandpay";
}
public Map getTextParams() {
AlipayHashMap txtParams = new AlipayHashMap();
txtParams.put("alipay_ca_request", this.alipayCaRequest);
txtParams.put("body", this.body);
txtParams.put("buyer_email", this.buyerEmail);
txtParams.put("buyer_id", this.buyerId);
txtParams.put("channel_parameters", this.channelParameters);
txtParams.put("currency", this.currency);
txtParams.put("dynamic_id", this.dynamicId);
txtParams.put("dynamic_id_type", this.dynamicIdType);
txtParams.put("extend_params", this.extendParams);
txtParams.put("format_type", this.formatType);
txtParams.put("goods_detail", this.goodsDetail);
txtParams.put("it_b_pay", this.itBPay);
txtParams.put("mcard_parameters", this.mcardParameters);
txtParams.put("operator_id", this.operatorId);
txtParams.put("operator_type", this.operatorType);
txtParams.put("out_trade_no", this.outTradeNo);
txtParams.put("price", this.price);
txtParams.put("quantity", this.quantity);
txtParams.put("ref_ids", this.refIds);
txtParams.put("royalty_parameters", this.royaltyParameters);
txtParams.put("royalty_type", this.royaltyType);
txtParams.put("seller_email", this.sellerEmail);
txtParams.put("seller_id", this.sellerId);
txtParams.put("show_url", this.showUrl);
txtParams.put("subject", this.subject);
txtParams.put("total_fee", this.totalFee);
if(udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public void putOtherTextParam(String key, String value) {
if(this.udfParams == null) {
this.udfParams = new AlipayHashMap();
}
this.udfParams.put(key, value);
}
public Class getResponseClass() {
return AlipayAcquireCreateandpayResponse.class;
}
public boolean isNeedEncrypt() {
return this.needEncrypt;
}
public void setNeedEncrypt(boolean needEncrypt) {
this.needEncrypt=needEncrypt;
}
public AlipayObject getBizModel() {
return this.bizModel;
}
public void setBizModel(AlipayObject bizModel) {
this.bizModel=bizModel;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy