Class: TencentCloud::Waf::V20180125::Goods

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180125/models.rb

Overview

计费下单接口出入参Goods

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(paymode = nil, goodsnum = nil, goodsdetail = nil, projectid = nil, goodscategoryid = nil, platform = nil, regionid = nil) ⇒ Goods

Returns a new instance of Goods.



11686
11687
11688
11689
11690
11691
11692
11693
11694
# File 'lib/v20180125/models.rb', line 11686

def initialize(paymode=nil, goodsnum=nil, goodsdetail=nil, projectid=nil, goodscategoryid=nil, platform=nil, regionid=nil)
  @PayMode = paymode
  @GoodsNum = goodsnum
  @GoodsDetail = goodsdetail
  @ProjectId = projectid
  @GoodsCategoryId = goodscategoryid
  @Platform = platform
  @RegionId = regionid
end

Instance Attribute Details

#GoodsCategoryIdObject

Parameters:

  • PayMode:

    付费类型,1:预付费,0:后付费

  • GoodsNum:

    商品数量

  • GoodsDetail:

    商品明细

  • ProjectId:

    默认为0

  • GoodsCategoryId:

    计费类目ID,对应cid

  • Platform:

    平台类型,默认1

  • RegionId:

    购买waf实例区域ID



11684
11685
11686
# File 'lib/v20180125/models.rb', line 11684

def GoodsCategoryId
  @GoodsCategoryId
end

#GoodsDetailObject

Parameters:

  • PayMode:

    付费类型,1:预付费,0:后付费

  • GoodsNum:

    商品数量

  • GoodsDetail:

    商品明细

  • ProjectId:

    默认为0

  • GoodsCategoryId:

    计费类目ID,对应cid

  • Platform:

    平台类型,默认1

  • RegionId:

    购买waf实例区域ID



11684
11685
11686
# File 'lib/v20180125/models.rb', line 11684

def GoodsDetail
  @GoodsDetail
end

#GoodsNumObject

Parameters:

  • PayMode:

    付费类型,1:预付费,0:后付费

  • GoodsNum:

    商品数量

  • GoodsDetail:

    商品明细

  • ProjectId:

    默认为0

  • GoodsCategoryId:

    计费类目ID,对应cid

  • Platform:

    平台类型,默认1

  • RegionId:

    购买waf实例区域ID



11684
11685
11686
# File 'lib/v20180125/models.rb', line 11684

def GoodsNum
  @GoodsNum
end

#PayModeObject

Parameters:

  • PayMode:

    付费类型,1:预付费,0:后付费

  • GoodsNum:

    商品数量

  • GoodsDetail:

    商品明细

  • ProjectId:

    默认为0

  • GoodsCategoryId:

    计费类目ID,对应cid

  • Platform:

    平台类型,默认1

  • RegionId:

    购买waf实例区域ID



11684
11685
11686
# File 'lib/v20180125/models.rb', line 11684

def PayMode
  @PayMode
end

#PlatformObject

Parameters:

  • PayMode:

    付费类型,1:预付费,0:后付费

  • GoodsNum:

    商品数量

  • GoodsDetail:

    商品明细

  • ProjectId:

    默认为0

  • GoodsCategoryId:

    计费类目ID,对应cid

  • Platform:

    平台类型,默认1

  • RegionId:

    购买waf实例区域ID



11684
11685
11686
# File 'lib/v20180125/models.rb', line 11684

def Platform
  @Platform
end

#ProjectIdObject

Parameters:

  • PayMode:

    付费类型,1:预付费,0:后付费

  • GoodsNum:

    商品数量

  • GoodsDetail:

    商品明细

  • ProjectId:

    默认为0

  • GoodsCategoryId:

    计费类目ID,对应cid

  • Platform:

    平台类型,默认1

  • RegionId:

    购买waf实例区域ID



11684
11685
11686
# File 'lib/v20180125/models.rb', line 11684

def ProjectId
  @ProjectId
end

#RegionIdObject

Parameters:

  • PayMode:

    付费类型,1:预付费,0:后付费

  • GoodsNum:

    商品数量

  • GoodsDetail:

    商品明细

  • ProjectId:

    默认为0

  • GoodsCategoryId:

    计费类目ID,对应cid

  • Platform:

    平台类型,默认1

  • RegionId:

    购买waf实例区域ID



11684
11685
11686
# File 'lib/v20180125/models.rb', line 11684

def RegionId
  @RegionId
end

Instance Method Details

#deserialize(params) ⇒ Object



11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
# File 'lib/v20180125/models.rb', line 11696

def deserialize(params)
  @PayMode = params['PayMode']
  @GoodsNum = params['GoodsNum']
  unless params['GoodsDetail'].nil?
    @GoodsDetail = GoodsDetail.new
    @GoodsDetail.deserialize(params['GoodsDetail'])
  end
  @ProjectId = params['ProjectId']
  @GoodsCategoryId = params['GoodsCategoryId']
  @Platform = params['Platform']
  @RegionId = params['RegionId']
end