forked from binarywang/WxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: binarywang#3327【微信支付】平台收付通(注销申请)
https://pay.weixin.qq.com/docs/partner/apis/ecommerce-cancel/cancel-applications/create-cancel-application.html 平台收付通(注销申请)-注销申请单-提交注销申请单 平台收付通(注销申请)-注销申请单-查询注销单状态 平台收付通(注销申请)-图片上传-图片上传 Closes binarywang#3327
- Loading branch information
1 parent
17399b5
commit cecdeaf
Showing
7 changed files
with
269 additions
and
7 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...java/com/github/binarywang/wxpay/bean/ecommerce/AccountCancelApplicationsMediaResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.github.binarywang.wxpay.bean.ecommerce; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 图片上传API | ||
* <pre> | ||
* https://pay.weixin.qq.com/docs/partner/apis/ecommerce-cancel/media/upload-media.html | ||
* </pre> | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
public class AccountCancelApplicationsMediaResult implements Serializable { | ||
|
||
/** | ||
* 微信返回的媒体文件标识ID。 | ||
*/ | ||
@SerializedName(value = "media_id") | ||
private String mediaId; | ||
} |
64 changes: 64 additions & 0 deletions
64
...ain/java/com/github/binarywang/wxpay/bean/ecommerce/AccountCancelApplicationsRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package com.github.binarywang.wxpay.bean.ecommerce; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 提交注销申请单 | ||
* <pre> | ||
* https://pay.weixin.qq.com/docs/partner/apis/ecommerce-cancel/cancel-applications/create-cancel-application.html | ||
* </pre> | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
public class AccountCancelApplicationsRequest implements Serializable { | ||
|
||
/** | ||
* 【申请注销的二级商户号】 电商平台二级商户号,由微信支付生成并下发 | ||
*/ | ||
@SerializedName(value = "sub_mchid") | ||
private String subMchid; | ||
|
||
/** | ||
* 【商户注销申请单号】 商户注销申请单号,由商户自定义生成,要求在服务商维度下是唯一的,必须仅包含大小写字母与数字 | ||
*/ | ||
@SerializedName(value = "out_apply_no") | ||
private String outApplyNo; | ||
|
||
/** | ||
* 【注销申请材料】 注销申请材料,详见文档:注销申请材料 | ||
*/ | ||
@SerializedName(value = "application_info") | ||
private List<CancelApplicationInfo> applicationInfo; | ||
|
||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public static class CancelApplicationInfo implements Serializable { | ||
|
||
/** | ||
*【注销申请材料类型】 注销申请材料类型,详见文档:注销申请材料 | ||
* 可选取值: | ||
* SP_MERCHANT_APPLICATION: 此枚举值已废弃,请使用新字段 SP_CANCEL_ACCOUNT_APPLICATION 以及新版本材料 | ||
* SUB_MERCHANT_APPLICATION: 此枚举值已废弃,请使用新字段 SUB_CANCEL_ACCOUNT_APPLICATION 以及新版本材料 | ||
* MISSING_OFFICIAL_SEAL_LETTER: 此材料已废弃,无需上传 | ||
* SP_CANCEL_ACCOUNT_APPLICATION: 电商服务商注销电商子申请书,请下载模板打印纸质版、填写盖章后拍照。模板文档详见:微信支付商户号注销申请书-服务商(纸质版) | ||
* SUB_CANCEL_ACCOUNT_APPLICATION: 电商服务商子商户注销申请书,详见文档:微信支付商户号注销申请书-电商平台子商户适用(纸质版) | ||
*/ | ||
@SerializedName("application_type") | ||
private String applicationType; | ||
|
||
/** | ||
* 【注销申请材料照片ID】 注销申请材料照片ID,请填写通过上传图片接口预先上传图片生成好的media_id | ||
*/ | ||
@SerializedName("application_media_id") | ||
private String applicationMediaId; | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...main/java/com/github/binarywang/wxpay/bean/ecommerce/AccountCancelApplicationsResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package com.github.binarywang.wxpay.bean.ecommerce; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 提交注销申请单 | ||
* <pre> | ||
* https://pay.weixin.qq.com/docs/partner/apis/ecommerce-cancel/cancel-applications/create-cancel-application.html | ||
* </pre> | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
public class AccountCancelApplicationsResult implements Serializable { | ||
|
||
/** | ||
* 【商户注销申请单号】 商户注销申请单号,原样返回请求参数里的内容 | ||
*/ | ||
@SerializedName(value = "out_apply_no") | ||
private String outApplyNo; | ||
|
||
/** | ||
* 【二级商户号】 二级商户号 | ||
*/ | ||
@SerializedName(value = "sub_mchid") | ||
private String subMchid; | ||
|
||
/** | ||
* 【驳回原因】 受理失败原因 | ||
*/ | ||
@SerializedName(value = "reject_reason") | ||
private String rejectReason; | ||
|
||
/** | ||
* 【注销状态】 注销状态 | ||
* 可选取值: | ||
* REVIEWING: 审核中 | ||
* REJECTED: 审核驳回,驳回原因详见reject_reason | ||
* CANCEL_SUCCESS: 注销成功 | ||
*/ | ||
@SerializedName(value = "cancel_state") | ||
private String cancelState; | ||
|
||
/** | ||
* 【最后更新时间】 最后更新时间。遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 | ||
*/ | ||
@SerializedName(value = "update_time") | ||
private String updateTime; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters