-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆕 #2631 【小程序】小程序交易组件-订单服务新增获取订单列表和生成支付参数的接口
- Loading branch information
1 parent
a6d4b6e
commit 4de09fa
Showing
7 changed files
with
204 additions
and
27 deletions.
There are no files selected for viewing
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
39 changes: 39 additions & 0 deletions
39
...-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPromotionInfo.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,39 @@ | ||
package cn.binarywang.wx.miniapp.bean.shop; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 推广员、分享员信息 | ||
* | ||
* @author zhongjun | ||
* @date 2022/5/17 | ||
**/ | ||
@Data | ||
public class WxMaShopPromotionInfo implements Serializable { | ||
private static final long serialVersionUID = -812058443344709898L; | ||
/** | ||
* 推广员唯一ID | ||
*/ | ||
@SerializedName("promoter_id") | ||
private String promoterId; | ||
|
||
/** | ||
* 推广员视频号昵称 | ||
*/ | ||
@SerializedName("finder_nickname") | ||
private String finderNickname; | ||
/** | ||
* 推广员openid | ||
*/ | ||
@SerializedName("promoter_openid") | ||
private String promoterOpenid; | ||
|
||
/** | ||
* 分享员openid | ||
*/ | ||
@SerializedName("sharer_openid") | ||
private String sharerOpenid; | ||
} |
30 changes: 30 additions & 0 deletions
30
...c/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderListResponse.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,30 @@ | ||
package cn.binarywang.wx.miniapp.bean.shop.response; | ||
|
||
import cn.binarywang.wx.miniapp.bean.shop.WxMaShopOrderResult; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @author leiin | ||
* @date 2021/3/23 | ||
*/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class WxMaShopGetOrderListResponse extends WxMaShopBaseResponse implements Serializable { | ||
private static final long serialVersionUID = -81207907908726897L; | ||
|
||
/** | ||
* 订单满足条件的总数 | ||
*/ | ||
@SerializedName("total_num") | ||
private Integer totalNum; | ||
|
||
/** | ||
* 订单列表 | ||
*/ | ||
@SerializedName("order") | ||
private WxMaShopOrderResult order; | ||
} |
41 changes: 41 additions & 0 deletions
41
...in/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetPaymentParamsResponse.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,41 @@ | ||
package cn.binarywang.wx.miniapp.bean.shop.response; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 生成支付参数响应 | ||
* | ||
* @author zhongjun | ||
* @date 2022/5/17 | ||
**/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class WxMaShopGetPaymentParamsResponse extends WxMaShopBaseResponse implements Serializable { | ||
private static final long serialVersionUID = -8796836131438585559L; | ||
|
||
@SerializedName("payment_params") | ||
private PaymentParams paymentParams; | ||
|
||
@Getter | ||
@Setter | ||
public static class PaymentParams { | ||
|
||
private String timeStamp; | ||
|
||
private String nonceStr; | ||
|
||
@SerializedName("package") | ||
private String packageValue; | ||
|
||
private String signType; | ||
|
||
private String paySign; | ||
} | ||
|
||
} |
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