Class: TencentCloud::Trp::V20210515::CreateCodePackRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Trp::V20210515::CreateCodePackRequest
- Defined in:
- lib/v20210515/models.rb
Overview
CreateCodePack请求参数结构体
Instance Attribute Summary collapse
- #Amount ⇒ Object
- #BatchId ⇒ Object
- #CodeLength ⇒ Object
- #CodeType ⇒ Object
- #CorpId ⇒ Object
- #MerchantId ⇒ Object
- #PackLevel ⇒ Object
- #PackSpec ⇒ Object
- #PackType ⇒ Object
- #ProductId ⇒ Object
- #RelateType ⇒ Object
- #SceneCode ⇒ Object
- #SerialType ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(merchantid = nil, codelength = nil, codetype = nil, amount = nil, corpid = nil, packtype = nil, packlevel = nil, packspec = nil, batchid = nil, serialtype = nil, productid = nil, relatetype = nil, scenecode = nil) ⇒ CreateCodePackRequest
constructor
A new instance of CreateCodePackRequest.
Constructor Details
#initialize(merchantid = nil, codelength = nil, codetype = nil, amount = nil, corpid = nil, packtype = nil, packlevel = nil, packspec = nil, batchid = nil, serialtype = nil, productid = nil, relatetype = nil, scenecode = nil) ⇒ CreateCodePackRequest
Returns a new instance of CreateCodePackRequest.
676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 |
# File 'lib/v20210515/models.rb', line 676 def initialize(merchantid=nil, codelength=nil, codetype=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, batchid=nil, serialtype=nil, productid=nil, relatetype=nil, scenecode=nil) @MerchantId = merchantid @CodeLength = codelength @CodeType = codetype @Amount = amount @CorpId = corpid @PackType = packtype @PackLevel = packlevel @PackSpec = packspec @BatchId = batchid @SerialType = serialtype @ProductId = productid @RelateType = relatetype @SceneCode = scenecode end |
Instance Attribute Details
#Amount ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def Amount @Amount end |
#BatchId ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def BatchId @BatchId end |
#CodeLength ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def CodeLength @CodeLength end |
#CodeType ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def CodeType @CodeType end |
#CorpId ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def CorpId @CorpId end |
#MerchantId ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def MerchantId @MerchantId end |
#PackLevel ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def PackLevel @PackLevel end |
#PackSpec ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def PackSpec @PackSpec end |
#PackType ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def PackType @PackType end |
#ProductId ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def ProductId @ProductId end |
#RelateType ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def RelateType @RelateType end |
#SceneCode ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def SceneCode @SceneCode end |
#SerialType ⇒ Object
674 675 676 |
# File 'lib/v20210515/models.rb', line 674 def SerialType @SerialType end |
Instance Method Details
#deserialize(params) ⇒ Object
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 |
# File 'lib/v20210515/models.rb', line 692 def deserialize(params) @MerchantId = params['MerchantId'] @CodeLength = params['CodeLength'] @CodeType = params['CodeType'] @Amount = params['Amount'] @CorpId = params['CorpId'] @PackType = params['PackType'] @PackLevel = params['PackLevel'] unless params['PackSpec'].nil? @PackSpec = [] params['PackSpec'].each do |i| packspec_tmp = PackSpec.new packspec_tmp.deserialize(i) @PackSpec << packspec_tmp end end @BatchId = params['BatchId'] @SerialType = params['SerialType'] @ProductId = params['ProductId'] @RelateType = params['RelateType'] @SceneCode = params['SceneCode'] end |