* 通过此接口可查询代金券信息,包括代金券的基础信息、状态。如代金券已核销,会包括代金券核销的订单信息(订单号、单品信息等)。 + *
+ * 2021-1 微信侧不再返回{@code consume_information}字段 * * @param params the params * @return the wechat response entity diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/model/RefundGoodsDetail.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/model/RefundGoodsDetail.java new file mode 100644 index 0000000..48145d9 --- /dev/null +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/model/RefundGoodsDetail.java @@ -0,0 +1,53 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.felord.payment.wechat.v3.model; + +import lombok.Data; + +/** + * 退款订单的商品信息 + * + * @author felord.cn + * @since 1.0.6.RELEASE + */ +@Data +public class RefundGoodsDetail { + /** + * 商户侧商品编码 + */ + private String merchantGoodsId; + /** + * 微信侧商品编码 + */ + private String wechatpayGoodsId; + /** + * 商品名称 + */ + private String goodsName; + /** + * 商品单价金额,单位为分。 + */ + private Integer unitPrice; + /** + * 商品退款金额,单位为分。 + */ + private Integer refundAmount; + /** + * 单品的退款数量。 + */ + private Integer refundQuantity; +} diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/model/RefundParams.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/model/RefundParams.java new file mode 100644 index 0000000..5adb83d --- /dev/null +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/model/RefundParams.java @@ -0,0 +1,92 @@ +/* + * + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +package cn.felord.payment.wechat.v3.model; + +import lombok.Data; + +import java.util.List; + +/** + * 退款请求参数 + * + * @author felord.cn + * @since 1.0.6.RELEASE + */ +@Data +public class RefundParams { + /** + * 微信支付订单号,同{@link RefundParams#outTradeNo} 二选一 + */ + private String transactionId; + /** + * 商户订单号,同{@link RefundParams#transactionId} 二选一 + */ + private String outTradeNo; + /** + * 商户退款单号 + */ + private String outRefundNo; + /** + * 退款原因 + */ + private String reason; + /** + * 退款结果回调url + */ + private String notifyUrl; + /** + * 退款资金来源,若传递此参数则使用对应的资金账户退款,否则默认使用未结算资金退款(仅对老资金流商户适用)。 + * 枚举值: + *