Class: TencentCloud::Cpdp::V20190820::Order

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

Overview

线下查票-订单信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(amounthastax = nil, discount = nil, sellername = nil, invoicetype = nil, name = nil, amount = nil, orderdate = nil, orderid = nil, storeno = nil, items = nil) ⇒ Order

Returns a new instance of Order.



13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
# File 'lib/v20190820/models.rb', line 13303

def initialize(amounthastax=nil, discount=nil, sellername=nil, invoicetype=nil, name=nil, amount=nil, orderdate=nil, orderid=nil, storeno=nil, items=nil)
  @AmountHasTax = amounthastax
  @Discount = discount
  @SellerName = sellername
  @InvoiceType = invoicetype
  @Name = name
  @Amount = amount
  @OrderDate = orderdate
  @OrderId = orderid
  @StoreNo = storeno
  @Items = items
end

Instance Attribute Details

#AmountObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AmountHasTax:

    含税金额

  • Discount:

    优惠金额

  • SellerName:

    销方名称

  • InvoiceType:

    发票类型

  • Name:

    默认“”

  • Amount:

    支付金额

  • OrderDate:

    下单日期

  • OrderId:

    订单号

  • StoreNo:

    门店号

  • Items:

    明细



13301
13302
13303
# File 'lib/v20190820/models.rb', line 13301

def Amount
  @Amount
end

#AmountHasTaxObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AmountHasTax:

    含税金额

  • Discount:

    优惠金额

  • SellerName:

    销方名称

  • InvoiceType:

    发票类型

  • Name:

    默认“”

  • Amount:

    支付金额

  • OrderDate:

    下单日期

  • OrderId:

    订单号

  • StoreNo:

    门店号

  • Items:

    明细



13301
13302
13303
# File 'lib/v20190820/models.rb', line 13301

def AmountHasTax
  @AmountHasTax
end

#DiscountObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AmountHasTax:

    含税金额

  • Discount:

    优惠金额

  • SellerName:

    销方名称

  • InvoiceType:

    发票类型

  • Name:

    默认“”

  • Amount:

    支付金额

  • OrderDate:

    下单日期

  • OrderId:

    订单号

  • StoreNo:

    门店号

  • Items:

    明细



13301
13302
13303
# File 'lib/v20190820/models.rb', line 13301

def Discount
  @Discount
end

#InvoiceTypeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AmountHasTax:

    含税金额

  • Discount:

    优惠金额

  • SellerName:

    销方名称

  • InvoiceType:

    发票类型

  • Name:

    默认“”

  • Amount:

    支付金额

  • OrderDate:

    下单日期

  • OrderId:

    订单号

  • StoreNo:

    门店号

  • Items:

    明细



13301
13302
13303
# File 'lib/v20190820/models.rb', line 13301

def InvoiceType
  @InvoiceType
end

#ItemsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AmountHasTax:

    含税金额

  • Discount:

    优惠金额

  • SellerName:

    销方名称

  • InvoiceType:

    发票类型

  • Name:

    默认“”

  • Amount:

    支付金额

  • OrderDate:

    下单日期

  • OrderId:

    订单号

  • StoreNo:

    门店号

  • Items:

    明细



13301
13302
13303
# File 'lib/v20190820/models.rb', line 13301

def Items
  @Items
end

#NameObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AmountHasTax:

    含税金额

  • Discount:

    优惠金额

  • SellerName:

    销方名称

  • InvoiceType:

    发票类型

  • Name:

    默认“”

  • Amount:

    支付金额

  • OrderDate:

    下单日期

  • OrderId:

    订单号

  • StoreNo:

    门店号

  • Items:

    明细



13301
13302
13303
# File 'lib/v20190820/models.rb', line 13301

def Name
  @Name
end

#OrderDateObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AmountHasTax:

    含税金额

  • Discount:

    优惠金额

  • SellerName:

    销方名称

  • InvoiceType:

    发票类型

  • Name:

    默认“”

  • Amount:

    支付金额

  • OrderDate:

    下单日期

  • OrderId:

    订单号

  • StoreNo:

    门店号

  • Items:

    明细



13301
13302
13303
# File 'lib/v20190820/models.rb', line 13301

def OrderDate
  @OrderDate
end

#OrderIdObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AmountHasTax:

    含税金额

  • Discount:

    优惠金额

  • SellerName:

    销方名称

  • InvoiceType:

    发票类型

  • Name:

    默认“”

  • Amount:

    支付金额

  • OrderDate:

    下单日期

  • OrderId:

    订单号

  • StoreNo:

    门店号

  • Items:

    明细



13301
13302
13303
# File 'lib/v20190820/models.rb', line 13301

def OrderId
  @OrderId
end

#SellerNameObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AmountHasTax:

    含税金额

  • Discount:

    优惠金额

  • SellerName:

    销方名称

  • InvoiceType:

    发票类型

  • Name:

    默认“”

  • Amount:

    支付金额

  • OrderDate:

    下单日期

  • OrderId:

    订单号

  • StoreNo:

    门店号

  • Items:

    明细



13301
13302
13303
# File 'lib/v20190820/models.rb', line 13301

def SellerName
  @SellerName
end

#StoreNoObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AmountHasTax:

    含税金额

  • Discount:

    优惠金额

  • SellerName:

    销方名称

  • InvoiceType:

    发票类型

  • Name:

    默认“”

  • Amount:

    支付金额

  • OrderDate:

    下单日期

  • OrderId:

    订单号

  • StoreNo:

    门店号

  • Items:

    明细



13301
13302
13303
# File 'lib/v20190820/models.rb', line 13301

def StoreNo
  @StoreNo
end

Instance Method Details

#deserialize(params) ⇒ Object



13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
# File 'lib/v20190820/models.rb', line 13316

def deserialize(params)
  @AmountHasTax = params['AmountHasTax']
  @Discount = params['Discount']
  @SellerName = params['SellerName']
  @InvoiceType = params['InvoiceType']
  @Name = params['Name']
  @Amount = params['Amount']
  @OrderDate = params['OrderDate']
  @OrderId = params['OrderId']
  @StoreNo = params['StoreNo']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      orderitem_tmp = OrderItem.new
      orderitem_tmp.deserialize(i)
      @Items << orderitem_tmp
    end
  end
end