- BaseDirective
Charge 用于生成Charge指令的类
- Charge
Charge 用于生成Charge指令的类
Kind: global class
- Charge
- new Charge(amount, sellerOrderId, productName, description)
- .setToken(token)
- .getToken() ⇒
string
- .setAmount(amount, currencyCode)
- .setSellerAuthorizationNote(sellerAuthorizationNote)
- .setSellerOrderId(sellerOrderId)
- .setProductName(productName)
- .setDescription(description)
- .setSellerNode(sellerNode)
Charge构造方法
Param | Type | Description |
---|---|---|
amount | string |
数量 |
sellerOrderId | string |
卖家ID |
productName | string |
产品名称 |
description | string |
描述 |
设置directive的token. 默认在构造时自动生成了token,可以覆盖
Kind: instance method of Charge
Access: public
Param | Type | Description |
---|---|---|
token | string |
视频的token |
获取directive的token. 默认在构造时自动生成了token
Kind: instance method of Charge
Returns: string
- token
Access: public
set amount
Kind: instance method of Charge
Access: public
Param | Type | Description |
---|---|---|
amount | string |
数量 |
currencyCode | string |
币种 |
设置sellerAuthorizationNote
Kind: instance method of Charge
Access: public
Param | Type | Description |
---|---|---|
sellerAuthorizationNote | string |
卖家授权 |
set sellerOrderId
Kind: instance method of Charge
Access: public
Param | Type | Description |
---|---|---|
sellerOrderId | string |
卖家ID |
set productName
Kind: instance method of Charge
Access: public
Param | Type | Description |
---|---|---|
productName | string |
商品名称 |
set description
Kind: instance method of Charge
Access: public
Param | Type | Description |
---|---|---|
description | string |
描述 |
set sellerNode
Kind: instance method of Charge
Access: public
Param | Type | Description |
---|---|---|
sellerNode | string |
sellerNode |