Class: TencentCloud::Trp::V20210515::CreateCustomPackRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Trp::V20210515::CreateCustomPackRequest
- Defined in:
- lib/v20210515/models.rb
Overview
CreateCustomPack请求参数结构体
Instance Attribute Summary collapse
-
#Amount ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#BatchId ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#CodeParts ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#CorpId ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#CustomId ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#MerchantId ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#PackLevel ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#PackSpec ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#PackType ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#ProductId ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#RelateType ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#SceneCode ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
-
#SerialType ⇒ Object
0: 否, 1:是 默认为1,仅对层级码有效.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(merchantid = nil, amount = nil, corpid = nil, packtype = nil, packlevel = nil, packspec = nil, customid = nil, codeparts = nil, batchid = nil, serialtype = nil, productid = nil, relatetype = nil, scenecode = nil) ⇒ CreateCustomPackRequest
constructor
A new instance of CreateCustomPackRequest.
Constructor Details
#initialize(merchantid = nil, amount = nil, corpid = nil, packtype = nil, packlevel = nil, packspec = nil, customid = nil, codeparts = nil, batchid = nil, serialtype = nil, productid = nil, relatetype = nil, scenecode = nil) ⇒ CreateCustomPackRequest
837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 |
# File 'lib/v20210515/models.rb', line 837 def initialize(merchantid=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, customid=nil, codeparts=nil, batchid=nil, serialtype=nil, productid=nil, relatetype=nil, scenecode=nil) @MerchantId = merchantid @Amount = amount @CorpId = corpid @PackType = packtype @PackLevel = packlevel @PackSpec = packspec @CustomId = customid @CodeParts = codeparts @BatchId = batchid @SerialType = serialtype @ProductId = productid @RelateType = relatetype @SceneCode = scenecode end |
Instance Attribute Details
#Amount ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def Amount @Amount end |
#BatchId ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def BatchId @BatchId end |
#CodeParts ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def CodeParts @CodeParts end |
#CorpId ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def CorpId @CorpId end |
#CustomId ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def CustomId @CustomId end |
#MerchantId ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def MerchantId @MerchantId end |
#PackLevel ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def PackLevel @PackLevel end |
#PackSpec ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def PackSpec @PackSpec end |
#PackType ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def PackType @PackType end |
#ProductId ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def ProductId @ProductId end |
#RelateType ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def RelateType @RelateType end |
#SceneCode ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def SceneCode @SceneCode end |
#SerialType ⇒ Object
0: 否, 1:是默认为1,仅对层级码有效
835 836 837 |
# File 'lib/v20210515/models.rb', line 835 def SerialType @SerialType end |
Instance Method Details
#deserialize(params) ⇒ Object
853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 |
# File 'lib/v20210515/models.rb', line 853 def deserialize(params) @MerchantId = params['MerchantId'] @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 @CustomId = params['CustomId'] unless params['CodeParts'].nil? @CodeParts = [] params['CodeParts'].each do |i| codepart_tmp = CodePart.new codepart_tmp.deserialize(i) @CodeParts << codepart_tmp end end @BatchId = params['BatchId'] @SerialType = params['SerialType'] @ProductId = params['ProductId'] @RelateType = params['RelateType'] @SceneCode = params['SceneCode'] end |