Class: TencentCloud::Billing::V20180709::ConsumptionProjectSummaryDataItem

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

Overview

消耗按项目汇总详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(projectid = nil, projectname = nil, realtotalcost = nil, trend = nil, business = nil, cashpayamount = nil, incentivepayamount = nil, voucherpayamount = nil, transferpayamount = nil) ⇒ ConsumptionProjectSummaryDataItem

Returns a new instance of ConsumptionProjectSummaryDataItem.



4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
# File 'lib/v20180709/models.rb', line 4237

def initialize(projectid=nil, projectname=nil, realtotalcost=nil, trend=nil, business=nil, cashpayamount=nil, incentivepayamount=nil, voucherpayamount=nil, transferpayamount=nil)
  @ProjectId = projectid
  @ProjectName = projectname
  @RealTotalCost = realtotalcost
  @Trend = trend
  @Business = business
  @CashPayAmount = cashpayamount
  @IncentivePayAmount = incentivepayamount
  @VoucherPayAmount = voucherpayamount
  @TransferPayAmount = transferpayamount
end

Instance Attribute Details

#BusinessObject

Parameters:

  • ProjectId:

    项目ID

  • ProjectName:

    项目名称

  • RealTotalCost:

    折后总价

  • Trend:

    趋势

  • Business:

    产品消耗详情

  • CashPayAmount:

    现金

  • IncentivePayAmount:

    赠送金

  • VoucherPayAmount:

    代金券

  • TransferPayAmount:

    分成金



4235
4236
4237
# File 'lib/v20180709/models.rb', line 4235

def Business
  @Business
end

#CashPayAmountObject

Parameters:

  • ProjectId:

    项目ID

  • ProjectName:

    项目名称

  • RealTotalCost:

    折后总价

  • Trend:

    趋势

  • Business:

    产品消耗详情

  • CashPayAmount:

    现金

  • IncentivePayAmount:

    赠送金

  • VoucherPayAmount:

    代金券

  • TransferPayAmount:

    分成金



4235
4236
4237
# File 'lib/v20180709/models.rb', line 4235

def CashPayAmount
  @CashPayAmount
end

#IncentivePayAmountObject

Parameters:

  • ProjectId:

    项目ID

  • ProjectName:

    项目名称

  • RealTotalCost:

    折后总价

  • Trend:

    趋势

  • Business:

    产品消耗详情

  • CashPayAmount:

    现金

  • IncentivePayAmount:

    赠送金

  • VoucherPayAmount:

    代金券

  • TransferPayAmount:

    分成金



4235
4236
4237
# File 'lib/v20180709/models.rb', line 4235

def IncentivePayAmount
  @IncentivePayAmount
end

#ProjectIdObject

Parameters:

  • ProjectId:

    项目ID

  • ProjectName:

    项目名称

  • RealTotalCost:

    折后总价

  • Trend:

    趋势

  • Business:

    产品消耗详情

  • CashPayAmount:

    现金

  • IncentivePayAmount:

    赠送金

  • VoucherPayAmount:

    代金券

  • TransferPayAmount:

    分成金



4235
4236
4237
# File 'lib/v20180709/models.rb', line 4235

def ProjectId
  @ProjectId
end

#ProjectNameObject

Parameters:

  • ProjectId:

    项目ID

  • ProjectName:

    项目名称

  • RealTotalCost:

    折后总价

  • Trend:

    趋势

  • Business:

    产品消耗详情

  • CashPayAmount:

    现金

  • IncentivePayAmount:

    赠送金

  • VoucherPayAmount:

    代金券

  • TransferPayAmount:

    分成金



4235
4236
4237
# File 'lib/v20180709/models.rb', line 4235

def ProjectName
  @ProjectName
end

#RealTotalCostObject

Parameters:

  • ProjectId:

    项目ID

  • ProjectName:

    项目名称

  • RealTotalCost:

    折后总价

  • Trend:

    趋势

  • Business:

    产品消耗详情

  • CashPayAmount:

    现金

  • IncentivePayAmount:

    赠送金

  • VoucherPayAmount:

    代金券

  • TransferPayAmount:

    分成金



4235
4236
4237
# File 'lib/v20180709/models.rb', line 4235

def RealTotalCost
  @RealTotalCost
end

#TransferPayAmountObject

Parameters:

  • ProjectId:

    项目ID

  • ProjectName:

    项目名称

  • RealTotalCost:

    折后总价

  • Trend:

    趋势

  • Business:

    产品消耗详情

  • CashPayAmount:

    现金

  • IncentivePayAmount:

    赠送金

  • VoucherPayAmount:

    代金券

  • TransferPayAmount:

    分成金



4235
4236
4237
# File 'lib/v20180709/models.rb', line 4235

def TransferPayAmount
  @TransferPayAmount
end

#TrendObject

Parameters:

  • ProjectId:

    项目ID

  • ProjectName:

    项目名称

  • RealTotalCost:

    折后总价

  • Trend:

    趋势

  • Business:

    产品消耗详情

  • CashPayAmount:

    现金

  • IncentivePayAmount:

    赠送金

  • VoucherPayAmount:

    代金券

  • TransferPayAmount:

    分成金



4235
4236
4237
# File 'lib/v20180709/models.rb', line 4235

def Trend
  @Trend
end

#VoucherPayAmountObject

Parameters:

  • ProjectId:

    项目ID

  • ProjectName:

    项目名称

  • RealTotalCost:

    折后总价

  • Trend:

    趋势

  • Business:

    产品消耗详情

  • CashPayAmount:

    现金

  • IncentivePayAmount:

    赠送金

  • VoucherPayAmount:

    代金券

  • TransferPayAmount:

    分成金



4235
4236
4237
# File 'lib/v20180709/models.rb', line 4235

def VoucherPayAmount
  @VoucherPayAmount
end

Instance Method Details

#deserialize(params) ⇒ Object



4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
# File 'lib/v20180709/models.rb', line 4249

def deserialize(params)
  @ProjectId = params['ProjectId']
  @ProjectName = params['ProjectName']
  @RealTotalCost = params['RealTotalCost']
  unless params['Trend'].nil?
    @Trend = ConsumptionSummaryTrend.new
    @Trend.deserialize(params['Trend'])
  end
  unless params['Business'].nil?
    @Business = []
    params['Business'].each do |i|
      consumptionbusinesssummarydataitem_tmp = ConsumptionBusinessSummaryDataItem.new
      consumptionbusinesssummarydataitem_tmp.deserialize(i)
      @Business << consumptionbusinesssummarydataitem_tmp
    end
  end
  @CashPayAmount = params['CashPayAmount']
  @IncentivePayAmount = params['IncentivePayAmount']
  @VoucherPayAmount = params['VoucherPayAmount']
  @TransferPayAmount = params['TransferPayAmount']
end