Class: TencentCloud::Billing::V20180709::VoucherInfos
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::VoucherInfos
- Defined in:
- lib/v20180709/models.rb
Overview
代金券相关信息
Instance Attribute Summary collapse
- #ApplicableProducts ⇒ Object
- #Balance ⇒ Object
- #BeginTime ⇒ Object
- #CreateTime ⇒ Object
- #EndTime ⇒ Object
- #ExcludedProducts ⇒ Object
- #NominalValue ⇒ Object
- #OwnerUin ⇒ Object
- #PayMode ⇒ Object
- #PayScene ⇒ Object
- #PolicyRemark ⇒ Object
- #Status ⇒ Object
- #VoucherId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(owneruin = nil, status = nil, nominalvalue = nil, balance = nil, voucherid = nil, paymode = nil, payscene = nil, begintime = nil, endtime = nil, applicableproducts = nil, excludedproducts = nil, policyremark = nil, createtime = nil) ⇒ VoucherInfos
constructor
A new instance of VoucherInfos.
Constructor Details
#initialize(owneruin = nil, status = nil, nominalvalue = nil, balance = nil, voucherid = nil, paymode = nil, payscene = nil, begintime = nil, endtime = nil, applicableproducts = nil, excludedproducts = nil, policyremark = nil, createtime = nil) ⇒ VoucherInfos
Returns a new instance of VoucherInfos.
11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 |
# File 'lib/v20180709/models.rb', line 11124 def initialize(owneruin=nil, status=nil, nominalvalue=nil, balance=nil, voucherid=nil, paymode=nil, payscene=nil, begintime=nil, endtime=nil, applicableproducts=nil, excludedproducts=nil, policyremark=nil, createtime=nil) @OwnerUin = owneruin @Status = status @NominalValue = nominalvalue @Balance = balance @VoucherId = voucherid @PayMode = paymode @PayScene = payscene @BeginTime = begintime @EndTime = endtime @ApplicableProducts = applicableproducts @ExcludedProducts = excludedproducts @PolicyRemark = policyremark @CreateTime = createtime end |
Instance Attribute Details
#ApplicableProducts ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def ApplicableProducts @ApplicableProducts end |
#Balance ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def Balance @Balance end |
#BeginTime ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def BeginTime @BeginTime end |
#CreateTime ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def CreateTime @CreateTime end |
#EndTime ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def EndTime @EndTime end |
#ExcludedProducts ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def ExcludedProducts @ExcludedProducts end |
#NominalValue ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def NominalValue @NominalValue end |
#OwnerUin ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def OwnerUin @OwnerUin end |
#PayMode ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def PayMode @PayMode end |
#PayScene ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def PayScene @PayScene end |
#PolicyRemark ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def PolicyRemark @PolicyRemark end |
#Status ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def Status @Status end |
#VoucherId ⇒ Object
11122 11123 11124 |
# File 'lib/v20180709/models.rb', line 11122 def VoucherId @VoucherId end |
Instance Method Details
#deserialize(params) ⇒ Object
11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 |
# File 'lib/v20180709/models.rb', line 11140 def deserialize(params) @OwnerUin = params['OwnerUin'] @Status = params['Status'] @NominalValue = params['NominalValue'] @Balance = params['Balance'] @VoucherId = params['VoucherId'] @PayMode = params['PayMode'] @PayScene = params['PayScene'] @BeginTime = params['BeginTime'] @EndTime = params['EndTime'] unless params['ApplicableProducts'].nil? @ApplicableProducts = ApplicableProducts.new @ApplicableProducts.deserialize(params['ApplicableProducts']) end unless params['ExcludedProducts'].nil? @ExcludedProducts = [] params['ExcludedProducts'].each do |i| excludedproducts_tmp = ExcludedProducts.new excludedproducts_tmp.deserialize(i) @ExcludedProducts << excludedproducts_tmp end end @PolicyRemark = params['PolicyRemark'] @CreateTime = params['CreateTime'] end |