mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #3122 【小程序】增加小程序虚拟支付的相关接口,以及修复短剧点播相关接口字段信息
This commit is contained in:
@@ -848,6 +848,28 @@ public class WxMaApiUrlConstants {
|
||||
String GET_CDN_USAGE_DATA_URL = "https://api.weixin.qq.com/wxa/sec/vod/getcdnusagedata";
|
||||
String GET_CDN_LOGS_URL = "https://api.weixin.qq.com/wxa/sec/vod/getcdnlogs";
|
||||
|
||||
}
|
||||
/**
|
||||
* 小程序虚拟支付服务相关接口
|
||||
* <pre>
|
||||
* 文档地址: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/virtual-payment.html#_2-3-%E6%9C%8D%E5%8A%A1%E5%99%A8API
|
||||
* </pre>
|
||||
*/
|
||||
public interface XPay {
|
||||
String QUERY_USER_BALANCE_URL = "https://api.weixin.qq.com/xpay/query_user_balance?pay_sig=%s&signature=%s";
|
||||
String CURRENCY_PAY_URL = "https://api.weixin.qq.com/xpay/currency_pay?pay_sig=%s&signature=%s";
|
||||
String QUERY_ORDER_URL = "https://api.weixin.qq.com/xpay/query_order?pay_sig=%s";
|
||||
String CANCEL_CURRENCY_PAY_URL = "https://api.weixin.qq.com/xpay/cancel_currency_pay?pay_sig=%s&signature=%s";
|
||||
String NOTIFY_PROVIDE_GOODS_URL = "https://api.weixin.qq.com/xpay/notify_provide_goods?pay_sig=%s";
|
||||
String PRESENT_CURRENCY_URL = "https://api.weixin.qq.com/xpay/present_currency?pay_sig=%s";
|
||||
String DOWNLOAD_BILL_URL = "https://api.weixin.qq.com/xpay/download_bill?pay_sig=%s";
|
||||
String REFUND_ORDER_URL = "https://api.weixin.qq.com/xpay/refund_order?pay_sig=%s";
|
||||
String CREATE_WITHDRAW_ORDER_URL = "https://api.weixin.qq.com/xpay/create_withdraw_order?pay_sig=%s";
|
||||
String QUERY_WITHDRAW_ORDER_URL = "https://api.weixin.qq.com/xpay/query_withdraw_order?pay_sig=%s";
|
||||
String START_UPLOAD_GOODS_URL = "https://api.weixin.qq.com/xpay/start_upload_goods?pay_sig=%s";
|
||||
String QUERY_UPLOAD_GOODS_URL = "https://api.weixin.qq.com/xpay/query_upload_goods?pay_sig=%s";
|
||||
String START_PUBLISH_GOODS_URL = "https://api.weixin.qq.com/xpay/start_publish_goods?pay_sig=%s";
|
||||
String QUERY_PUBLISH_GOODS_URL = "https://api.weixin.qq.com/xpay/query_publish_goods?pay_sig=%s";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,4 +218,89 @@ public class WxMaConstants {
|
||||
public static final int DONE = 3;
|
||||
public static final int FAILED = 4;
|
||||
}
|
||||
|
||||
@UtilityClass
|
||||
public static final class UploadResourceType {
|
||||
public static final int MEDIA = 1;
|
||||
public static final int COVER = 2;
|
||||
}
|
||||
@UtilityClass
|
||||
public static final class XPayEnv {
|
||||
public static final int PRODUCT = 0;
|
||||
public static final int SANDBOX = 1;
|
||||
}
|
||||
@UtilityClass
|
||||
public static final class XPayFirstCharge {
|
||||
public static final int NO = 0;
|
||||
public static final int YES = 1;
|
||||
}
|
||||
@UtilityClass
|
||||
public static final class XPayDeviceType {
|
||||
public static final int ANDROID = 1;
|
||||
public static final int IOS = 2;
|
||||
}
|
||||
@UtilityClass
|
||||
public static final class XPayBizType {
|
||||
public static final int SHORT_DRAMA = 1;
|
||||
}
|
||||
@UtilityClass
|
||||
public static final class XPayOrderType {
|
||||
public static final int PAY_ORDER = 0;//0-支付单
|
||||
public static final int REFUND_ORDER = 1;//1-退款单
|
||||
}
|
||||
@UtilityClass
|
||||
public static final class XPayOrderStatus {
|
||||
public static final int INIT = 0;//0-订单初始化(未创建成功,不可用于支付)
|
||||
public static final int CREATED = 1;// 1-订单创建成功
|
||||
public static final int PAID = 2;//2-订单已经支付,待发货
|
||||
public static final int PROVIDING = 3;// 3-订单发货中
|
||||
public static final int PROVIDED = 4;// 4-订单已发货
|
||||
public static final int REFUNDED = 5;// 5-订单已经退款
|
||||
public static final int CLOSED = 6;// 6-订单已经关闭(不可再使用)
|
||||
public static final int REFUND_FAILED = 7;// 7-订单退款失败
|
||||
}
|
||||
@UtilityClass
|
||||
public static final class XPayNotifyEvent {
|
||||
public static String COIN_PAY = "xpay_coin_pay_notify";
|
||||
public static String GOODS_DELIVER = "xpay_goods_deliver_notify";
|
||||
|
||||
}
|
||||
@UtilityClass
|
||||
public static final class XPayPaymentMode {
|
||||
public static String COIN = "short_series_coin";
|
||||
public static String GOODS = "short_series_goods";
|
||||
|
||||
}
|
||||
|
||||
@UtilityClass
|
||||
public static final class XPayPlatform {
|
||||
public static String ANDROID = "android";
|
||||
}
|
||||
|
||||
@UtilityClass
|
||||
public static final class XPayCurrencyType {
|
||||
public static String CNY = "CNY";
|
||||
|
||||
}
|
||||
|
||||
@UtilityClass
|
||||
public static final class XPayWxApiSigUri {
|
||||
public static String WXAPI = "requestVirtualPayment";
|
||||
|
||||
}
|
||||
|
||||
@UtilityClass
|
||||
public static final class XPayRefundReqFrom {
|
||||
public static final String FROM_CS = "1";//人工客服退款
|
||||
public static final String FROM_USER = "2";//用户自己发起
|
||||
public static final String FROM_MISC = "3";//1-其它
|
||||
}
|
||||
|
||||
@UtilityClass
|
||||
public static final class XPayPublishStatus {
|
||||
public static final int PUBLISH_UPLOADING = 0;//0-上传中
|
||||
public static final int PUBLISH_EXISTED = 1;//1-id已经存在
|
||||
public static final int PUBLISH_SUCCESSFUL = 2;// 2-发布成功
|
||||
public static final int PUBLISH_FAILED = 3;//3-发布失败
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user