public enum CouponCodeMode extends Enum<CouponCodeMode>
| Enum Constant and Description |
|---|
MERCHANT_API
商户发放时接口指定券code。
|
MERCHANT_UPLOAD
商户上传自定义code,发券时系统随机选取上传的券code。
|
WECHATPAY_MODE
系统分配券code。(固定22位纯数字)
|
| Modifier and Type | Method and Description |
|---|---|
static CouponCodeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CouponCodeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CouponCodeMode WECHATPAY_MODE
public static final CouponCodeMode MERCHANT_API
public static final CouponCodeMode MERCHANT_UPLOAD
public static CouponCodeMode[] values()
for (CouponCodeMode c : CouponCodeMode.values()) System.out.println(c);
public static CouponCodeMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023. All rights reserved.