Class: TencentCloud::Mna::V20210119::OrderPerLicenseRequest

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

Overview

OrderPerLicense请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deviceid = nil, type = nil, rollback = nil, autovoucher = nil, voucherids = nil) ⇒ OrderPerLicenseRequest

Returns a new instance of OrderPerLicenseRequest.



2479
2480
2481
2482
2483
2484
2485
# File 'lib/v20210119/models.rb', line 2479

def initialize(deviceid=nil, type=nil, rollback=nil, autovoucher=nil, voucherids=nil)
  @DeviceId = deviceid
  @Type = type
  @RollBack = rollback
  @AutoVoucher = autovoucher
  @VoucherIds = voucherids
end

Instance Attribute Details

#AutoVoucherObject

有多张券时的选择策略:按照可支付订单全部金额的券,先到期的券,可抵扣金额最大的券,余额最小的券,现金券 这个优先级进行扣券,且最多只抵扣一张券。注:若指定的代金券不符合订单抵扣条件,则正常支付,不扣券

Parameters:

  • DeviceId:

    购买永久授权License的设备ID,如果是厂商未激活设备采用HardwareId

  • Type:

    设备类型,0: SDK,1: CPE,作为用户创建或激活设备时传0,作为厂商创建待激活设备时传1

  • RollBack:

    购买失败后是否回滚(删除)设备,默认false,如果设备绑定了生效中的流量包则不能回滚。

  • AutoVoucher:

    是否自动选择代金券,默认false。

  • VoucherIds:

    指定代金券ID。自动选择代金券时此参数无效。目前只允许传入一张代金券。



2477
2478
2479
# File 'lib/v20210119/models.rb', line 2477

def AutoVoucher
  @AutoVoucher
end

#DeviceIdObject

有多张券时的选择策略:按照可支付订单全部金额的券,先到期的券,可抵扣金额最大的券,余额最小的券,现金券 这个优先级进行扣券,且最多只抵扣一张券。注:若指定的代金券不符合订单抵扣条件,则正常支付,不扣券

Parameters:

  • DeviceId:

    购买永久授权License的设备ID,如果是厂商未激活设备采用HardwareId

  • Type:

    设备类型,0: SDK,1: CPE,作为用户创建或激活设备时传0,作为厂商创建待激活设备时传1

  • RollBack:

    购买失败后是否回滚(删除)设备,默认false,如果设备绑定了生效中的流量包则不能回滚。

  • AutoVoucher:

    是否自动选择代金券,默认false。

  • VoucherIds:

    指定代金券ID。自动选择代金券时此参数无效。目前只允许传入一张代金券。



2477
2478
2479
# File 'lib/v20210119/models.rb', line 2477

def DeviceId
  @DeviceId
end

#RollBackObject

有多张券时的选择策略:按照可支付订单全部金额的券,先到期的券,可抵扣金额最大的券,余额最小的券,现金券 这个优先级进行扣券,且最多只抵扣一张券。注:若指定的代金券不符合订单抵扣条件,则正常支付,不扣券

Parameters:

  • DeviceId:

    购买永久授权License的设备ID,如果是厂商未激活设备采用HardwareId

  • Type:

    设备类型,0: SDK,1: CPE,作为用户创建或激活设备时传0,作为厂商创建待激活设备时传1

  • RollBack:

    购买失败后是否回滚(删除)设备,默认false,如果设备绑定了生效中的流量包则不能回滚。

  • AutoVoucher:

    是否自动选择代金券,默认false。

  • VoucherIds:

    指定代金券ID。自动选择代金券时此参数无效。目前只允许传入一张代金券。



2477
2478
2479
# File 'lib/v20210119/models.rb', line 2477

def RollBack
  @RollBack
end

#TypeObject

有多张券时的选择策略:按照可支付订单全部金额的券,先到期的券,可抵扣金额最大的券,余额最小的券,现金券 这个优先级进行扣券,且最多只抵扣一张券。注:若指定的代金券不符合订单抵扣条件,则正常支付,不扣券

Parameters:

  • DeviceId:

    购买永久授权License的设备ID,如果是厂商未激活设备采用HardwareId

  • Type:

    设备类型,0: SDK,1: CPE,作为用户创建或激活设备时传0,作为厂商创建待激活设备时传1

  • RollBack:

    购买失败后是否回滚(删除)设备,默认false,如果设备绑定了生效中的流量包则不能回滚。

  • AutoVoucher:

    是否自动选择代金券,默认false。

  • VoucherIds:

    指定代金券ID。自动选择代金券时此参数无效。目前只允许传入一张代金券。



2477
2478
2479
# File 'lib/v20210119/models.rb', line 2477

def Type
  @Type
end

#VoucherIdsObject

有多张券时的选择策略:按照可支付订单全部金额的券,先到期的券,可抵扣金额最大的券,余额最小的券,现金券 这个优先级进行扣券,且最多只抵扣一张券。注:若指定的代金券不符合订单抵扣条件,则正常支付,不扣券

Parameters:

  • DeviceId:

    购买永久授权License的设备ID,如果是厂商未激活设备采用HardwareId

  • Type:

    设备类型,0: SDK,1: CPE,作为用户创建或激活设备时传0,作为厂商创建待激活设备时传1

  • RollBack:

    购买失败后是否回滚(删除)设备,默认false,如果设备绑定了生效中的流量包则不能回滚。

  • AutoVoucher:

    是否自动选择代金券,默认false。

  • VoucherIds:

    指定代金券ID。自动选择代金券时此参数无效。目前只允许传入一张代金券。



2477
2478
2479
# File 'lib/v20210119/models.rb', line 2477

def VoucherIds
  @VoucherIds
end

Instance Method Details

#deserialize(params) ⇒ Object



2487
2488
2489
2490
2491
2492
2493
# File 'lib/v20210119/models.rb', line 2487

def deserialize(params)
  @DeviceId = params['DeviceId']
  @Type = params['Type']
  @RollBack = params['RollBack']
  @AutoVoucher = params['AutoVoucher']
  @VoucherIds = params['VoucherIds']
end