Skip to content

Latest commit

 

History

History
138 lines (97 loc) · 3.62 KB

Charge.md

File metadata and controls

138 lines (97 loc) · 3.62 KB

Classes

BaseDirective

Charge 用于生成Charge指令的类

Charge

BaseDirective

Charge 用于生成Charge指令的类

Kind: global class

Charge

Kind: global class

new Charge(amount, sellerOrderId, productName, description)

Charge构造方法

Param Type Description
amount string 数量
sellerOrderId string 卖家ID
productName string 产品名称
description string 描述

charge.setToken(token)

设置directive的token. 默认在构造时自动生成了token,可以覆盖

Kind: instance method of Charge
Access: public

Param Type Description
token string 视频的token

charge.getToken() ⇒ string

获取directive的token. 默认在构造时自动生成了token

Kind: instance method of Charge
Returns: string - token
Access: public

charge.setAmount(amount, currencyCode)

set amount

Kind: instance method of Charge
Access: public

Param Type Description
amount string 数量
currencyCode string 币种

charge.setSellerAuthorizationNote(sellerAuthorizationNote)

设置sellerAuthorizationNote

Kind: instance method of Charge
Access: public

Param Type Description
sellerAuthorizationNote string 卖家授权

charge.setSellerOrderId(sellerOrderId)

set sellerOrderId

Kind: instance method of Charge
Access: public

Param Type Description
sellerOrderId string 卖家ID

charge.setProductName(productName)

set productName

Kind: instance method of Charge
Access: public

Param Type Description
productName string 商品名称

charge.setDescription(description)

set description

Kind: instance method of Charge
Access: public

Param Type Description
description string 描述

charge.setSellerNode(sellerNode)

set sellerNode

Kind: instance method of Charge
Access: public

Param Type Description
sellerNode string sellerNode