Class: TencentCloud::Intlpartnersmgt::V20220928::QueryVoucherAmountByUinResponse

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

Overview

QueryVoucherAmountByUin返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, requestid = nil) ⇒ QueryVoucherAmountByUinResponse

Returns a new instance of QueryVoucherAmountByUinResponse.



608
609
610
611
# File 'lib/v20220928/models.rb', line 608

def initialize(data=nil, requestid=nil)
  @Data = data
  @RequestId = requestid
end

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    子客代金券额度数据

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



606
607
608
# File 'lib/v20220928/models.rb', line 606

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    子客代金券额度数据

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



606
607
608
# File 'lib/v20220928/models.rb', line 606

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



613
614
615
616
617
618
619
620
621
622
623
# File 'lib/v20220928/models.rb', line 613

def deserialize(params)
  unless params['Data'].nil?
    @Data = []
    params['Data'].each do |i|
      queryvoucheramountbyuinitem_tmp = QueryVoucherAmountByUinItem.new
      queryvoucheramountbyuinitem_tmp.deserialize(i)
      @Data << queryvoucheramountbyuinitem_tmp
    end
  end
  @RequestId = params['RequestId']
end