Coupons.sol¶
合约作用¶
Coupons主要指的是消费卡劵,是一种储值卡,不同的商户发行的Coupon不同。但是都可以完成基本的发行,增发,转账,销毁等功能。
合约方法¶
转账卡劵余额¶
方法名:couponTransfer
| 输入参数 | 参数含义 | 类型 |
|---|---|---|
| recipient | 收款方地址- | Address |
| amount | 转账数量 | uint256 |
| _orderId | 订单编号 | string |
| _orderDetailId | 订单详情编号 | string |
| _orderContent | 订单内容 | string |
| _orderDetailContent | 订单详情内容 | string |
退款¶
方法名:couponRefund
| 输入参数 | 参数含义 | 类型 |
|---|---|---|
| recipient | 收款方地址- | Address |
| amount | 转账数量 | uint256 |
| _orderId | 订单编号 | string |
| _orderDetailId | 订单详情编号 | string |
| _orderContent | 订单内容 | string |
| _orderDetailContent | 订单详情内容 | string |