Class: TencentCloud::Billing::V20180709::DescribeVoucherUsageDetailsResponse

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

Overview

DescribeVoucherUsageDetails返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, totalusedamount = nil, usagerecords = nil, requestid = nil) ⇒ DescribeVoucherUsageDetailsResponse

Returns a new instance of DescribeVoucherUsageDetailsResponse.



9810
9811
9812
9813
9814
9815
# File 'lib/v20180709/models.rb', line 9810

def initialize(totalcount=nil, totalusedamount=nil, usagerecords=nil, requestid=nil)
  @TotalCount = totalcount
  @TotalUsedAmount = totalusedamount
  @UsageRecords = usagerecords
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    券总数

  • TotalUsedAmount:

    总已用金额(微分)

  • UsageRecords:

    代金券使用记录细节

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9808
9809
9810
# File 'lib/v20180709/models.rb', line 9808

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    券总数

  • TotalUsedAmount:

    总已用金额(微分)

  • UsageRecords:

    代金券使用记录细节

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9808
9809
9810
# File 'lib/v20180709/models.rb', line 9808

def TotalCount
  @TotalCount
end

#TotalUsedAmountObject

Parameters:

  • TotalCount:

    券总数

  • TotalUsedAmount:

    总已用金额(微分)

  • UsageRecords:

    代金券使用记录细节

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9808
9809
9810
# File 'lib/v20180709/models.rb', line 9808

def TotalUsedAmount
  @TotalUsedAmount
end

#UsageRecordsObject

Parameters:

  • TotalCount:

    券总数

  • TotalUsedAmount:

    总已用金额(微分)

  • UsageRecords:

    代金券使用记录细节

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9808
9809
9810
# File 'lib/v20180709/models.rb', line 9808

def UsageRecords
  @UsageRecords
end

Instance Method Details

#deserialize(params) ⇒ Object



9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
# File 'lib/v20180709/models.rb', line 9817

def deserialize(params)
  @TotalCount = params['TotalCount']
  @TotalUsedAmount = params['TotalUsedAmount']
  unless params['UsageRecords'].nil?
    @UsageRecords = []
    params['UsageRecords'].each do |i|
      usagerecords_tmp = UsageRecords.new
      usagerecords_tmp.deserialize(i)
      @UsageRecords << usagerecords_tmp
    end
  end
  @RequestId = params['RequestId']
end