com.lehuipay.leona.model.QRCodePayRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leona-java Show documentation
Show all versions of leona-java Show documentation
leona-java is a http development kit.
package com.lehuipay.leona.model;
import com.alibaba.fastjson.annotation.JSONField;
import com.lehuipay.leona.utils.CommonUtil;
public class QRCodePayRequest {
public QRCodePayRequest(String merchantID, String terminalID, String orderNo, Integer amount,
String notifyURL, String callbackURL) {
if (CommonUtil.isEmpty(merchantID)) {
throw new IllegalArgumentException("init com.lehuipay.leona.model.QRCodePayRequest, merchantID should not be empty");
}
if (CommonUtil.isEmpty(orderNo)) {
throw new IllegalArgumentException("init com.lehuipay.leona.model.QRCodePayRequest, merchantID should not be empty");
}
if (amount <= 0) {
throw new IllegalArgumentException("init com.lehuipay.leona.model.QRCodePayRequest, amount should be greater than zero");
}
this.merchantID = merchantID;
this.terminalID = terminalID;
this.orderNo = orderNo;
this.amount = amount;
this.notifyURL = notifyURL;
this.callbackURL = callbackURL;
}
@JSONField(name = "merchant_id")
private String merchantID;
@JSONField(name = "terminal_id")
private String terminalID;
@JSONField(name = "order_no")
private String orderNo;
@JSONField(name = "amount")
private Integer amount;
@JSONField(name = "notify_url")
private String notifyURL;
@JSONField(name = "callback_url")
private String callbackURL;
public String getMerchantID() {
return merchantID;
}
public String getTerminalID() {
return terminalID;
}
public String getOrderNo() {
return orderNo;
}
public Integer getAmount() {
return amount;
}
public String getNotifyURL() {
return notifyURL;
}
public String getCallbackURL() {
return callbackURL;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy