Class: TencentCloud::Billing::V20180709::DescribeVoucherInfoResponse

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

Overview

DescribeVoucherInfo返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, totalbalance = nil, voucherinfos = nil, requestid = nil) ⇒ DescribeVoucherInfoResponse

Returns a new instance of DescribeVoucherInfoResponse.



9747
9748
9749
9750
9751
9752
# File 'lib/v20180709/models.rb', line 9747

def initialize(totalcount=nil, totalbalance=nil, voucherinfos=nil, requestid=nil)
  @TotalCount = totalcount
  @TotalBalance = totalbalance
  @VoucherInfos = voucherinfos
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    券总数

  • TotalBalance:

    总余额(微分)

  • VoucherInfos:

    代金券相关信息

  • RequestId:

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



9745
9746
9747
# File 'lib/v20180709/models.rb', line 9745

def RequestId
  @RequestId
end

#TotalBalanceObject

Parameters:

  • TotalCount:

    券总数

  • TotalBalance:

    总余额(微分)

  • VoucherInfos:

    代金券相关信息

  • RequestId:

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



9745
9746
9747
# File 'lib/v20180709/models.rb', line 9745

def TotalBalance
  @TotalBalance
end

#TotalCountObject

Parameters:

  • TotalCount:

    券总数

  • TotalBalance:

    总余额(微分)

  • VoucherInfos:

    代金券相关信息

  • RequestId:

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



9745
9746
9747
# File 'lib/v20180709/models.rb', line 9745

def TotalCount
  @TotalCount
end

#VoucherInfosObject

Parameters:

  • TotalCount:

    券总数

  • TotalBalance:

    总余额(微分)

  • VoucherInfos:

    代金券相关信息

  • RequestId:

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



9745
9746
9747
# File 'lib/v20180709/models.rb', line 9745

def VoucherInfos
  @VoucherInfos
end

Instance Method Details

#deserialize(params) ⇒ Object



9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
# File 'lib/v20180709/models.rb', line 9754

def deserialize(params)
  @TotalCount = params['TotalCount']
  @TotalBalance = params['TotalBalance']
  unless params['VoucherInfos'].nil?
    @VoucherInfos = []
    params['VoucherInfos'].each do |i|
      voucherinfos_tmp = VoucherInfos.new
      voucherinfos_tmp.deserialize(i)
      @VoucherInfos << voucherinfos_tmp
    end
  end
  @RequestId = params['RequestId']
end