All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.felord.payment.wechat.v3.model.CouponUseRule Maven / Gradle / Ivy

There is a newer version: 1.0.20.RELEASE
Show newest version
/*
 *
 *  Copyright 2019-2020 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.0.RELEASE
 */
@Data
public class CouponUseRule {

    /**
     * 可核销商品编码
     */
    private List availableItems;
    /**
     * 可用商户
     */
    private List availableMerchants;
    /**
     * 是否可以叠加使用
     */
    private Boolean combineUse;
    /**
     * 券生效时间(暂时未开放,日期2021-1-12,请以微信官方通知为准)
     */
    private CouponAvailableTime couponAvailableTime;
    /**
     * 固定面额满减券使用规则
     */
    private FixedNormalCoupon fixedNormalCoupon;
    /**
     * 订单优惠标记
     */
    private List goodsTag;
    /**
     * 指定支付方式
     */
    private List limitPay;
    /**
     * 指定银行卡BIN
     */
    private LimitCard limitCard;

    /**
     * 支付方式,枚举值:
     *
     * 
    *
  • MICROAPP:小程序支付
  • *
  • APPPAY:APP支付
  • *
  • PPAY:免密支付
  • *
  • CARD:刷卡支付
  • *
  • FACE:人脸支付
  • *
  • OTHER:其他支付
  • *
* 不填则默认“不限” */ private CouponTradeType tradeType; /** * 指定银行卡BIN *

* 限定该批次核销的指定银行卡BIN,当批次限定了指定银行卡时方可生效 */ @Data public static class LimitCard { /** * 银行卡名称 *

* 将在微信支付收银台向用户展示,最多4个中文字 */ private String name; /** * 指定卡BIN *

* 使用指定卡BIN的银行卡支付方可享受优惠,按json格式 * 特殊规则:单个卡BIN的字符长度为【6,9】,条目个数限制为【1,10】。 * 示例值:['62123456','62123457'] */ private List bin; } /** * 代金券核销规则-支付方式. * * @author felord.cn * @since 1.0.4.RELEASE */ public enum CouponTradeType { /** * 小程序支付 * * @since 1.0.4.RELEASE */ MICROAPP, /** * APP支付 * * @since 1.0.4.RELEASE */ APPPAY, /** * 免密支付 * * @since 1.0.4.RELEASE */ PPAY, /** * 刷卡支付 * * @since 1.0.4.RELEASE */ CARD, /** * 人脸支付 * * @since 1.0.4.RELEASE */ FACE, /** * 其他支付 * * @since 1.0.4.RELEASE */ OTHER, } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy