Class: ZSGFClient::AlipayTradeQueryResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/zsgf_client/models/alipay_trade_query_response.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AlipayTradeQueryResponse

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 387

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `ZSGFClient::AlipayTradeQueryResponse` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  acceptable_attribute_map = self.class.acceptable_attribute_map
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!acceptable_attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `ZSGFClient::AlipayTradeQueryResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'code')
    self.code = attributes[:'code']
  end

  if attributes.key?(:'msg')
    self.msg = attributes[:'msg']
  end

  if attributes.key?(:'sub_code')
    self.sub_code = attributes[:'sub_code']
  end

  if attributes.key?(:'sub_msg')
    self.sub_msg = attributes[:'sub_msg']
  end

  if attributes.key?(:'is_error')
    self.is_error = attributes[:'is_error']
  end

  if attributes.key?(:'additional_status')
    self.additional_status = attributes[:'additional_status']
  end

  if attributes.key?(:'alipay_store_id')
    self.alipay_store_id = attributes[:'alipay_store_id']
  end

  if attributes.key?(:'alipay_sub_merchant_id')
    self.alipay_sub_merchant_id = attributes[:'alipay_sub_merchant_id']
  end

  if attributes.key?(:'async_pay_apply_status')
    self.async_pay_apply_status = attributes[:'async_pay_apply_status']
  end

  if attributes.key?(:'auth_trade_pay_mode')
    self.auth_trade_pay_mode = attributes[:'auth_trade_pay_mode']
  end

  if attributes.key?(:'biz_settle_mode')
    self.biz_settle_mode = attributes[:'biz_settle_mode']
  end

  if attributes.key?(:'bkagent_resp_info')
    self.bkagent_resp_info = attributes[:'bkagent_resp_info']
  end

  if attributes.key?(:'body')
    self.body = attributes[:'body']
  end

  if attributes.key?(:'buyer_logon_id')
    self.buyer_logon_id = attributes[:'buyer_logon_id']
  end

  if attributes.key?(:'buyer_open_id')
    self.buyer_open_id = attributes[:'buyer_open_id']
  end

  if attributes.key?(:'buyer_pay_amount')
    self.buyer_pay_amount = attributes[:'buyer_pay_amount']
  end

  if attributes.key?(:'buyer_user_id')
    self.buyer_user_id = attributes[:'buyer_user_id']
  end

  if attributes.key?(:'buyer_user_name')
    self.buyer_user_name = attributes[:'buyer_user_name']
  end

  if attributes.key?(:'buyer_user_type')
    self.buyer_user_type = attributes[:'buyer_user_type']
  end

  if attributes.key?(:'cashier_type')
    self.cashier_type = attributes[:'cashier_type']
  end

  if attributes.key?(:'charge_amount')
    self.charge_amount = attributes[:'charge_amount']
  end

  if attributes.key?(:'charge_flags')
    self.charge_flags = attributes[:'charge_flags']
  end

  if attributes.key?(:'charge_info_list')
    if (value = attributes[:'charge_info_list']).is_a?(Array)
      self.charge_info_list = value
    end
  end

  if attributes.key?(:'credit_biz_order_id')
    self.credit_biz_order_id = attributes[:'credit_biz_order_id']
  end

  if attributes.key?(:'credit_pay_mode')
    self.credit_pay_mode = attributes[:'credit_pay_mode']
  end

  if attributes.key?(:'discount_amount')
    self.discount_amount = attributes[:'discount_amount']
  end

  if attributes.key?(:'discount_goods_detail')
    self.discount_goods_detail = attributes[:'discount_goods_detail']
  end

  if attributes.key?(:'enterprise_pay_info')
    self.enterprise_pay_info = attributes[:'enterprise_pay_info']
  end

  if attributes.key?(:'ext_infos')
    self.ext_infos = attributes[:'ext_infos']
  end

  if attributes.key?(:'fulfillment_detail_list')
    if (value = attributes[:'fulfillment_detail_list']).is_a?(Array)
      self.fulfillment_detail_list = value
    end
  end

  if attributes.key?(:'fund_bill_list')
    if (value = attributes[:'fund_bill_list']).is_a?(Array)
      self.fund_bill_list = value
    end
  end

  if attributes.key?(:'hb_fq_pay_info')
    self.hb_fq_pay_info = attributes[:'hb_fq_pay_info']
  end

  if attributes.key?(:'hyb_amount')
    self.hyb_amount = attributes[:'hyb_amount']
  end

  if attributes.key?(:'industry_sepc_detail')
    self.industry_sepc_detail = attributes[:'industry_sepc_detail']
  end

  if attributes.key?(:'industry_sepc_detail_acc')
    self.industry_sepc_detail_acc = attributes[:'industry_sepc_detail_acc']
  end

  if attributes.key?(:'industry_sepc_detail_gov')
    self.industry_sepc_detail_gov = attributes[:'industry_sepc_detail_gov']
  end

  if attributes.key?(:'intact_charge_info_list')
    if (value = attributes[:'intact_charge_info_list']).is_a?(Array)
      self.intact_charge_info_list = value
    end
  end

  if attributes.key?(:'invoice_amount')
    self.invoice_amount = attributes[:'invoice_amount']
  end

  if attributes.key?(:'mdiscount_amount')
    self.mdiscount_amount = attributes[:'mdiscount_amount']
  end

  if attributes.key?(:'medical_insurance_info')
    self.medical_insurance_info = attributes[:'medical_insurance_info']
  end

  if attributes.key?(:'open_id')
    self.open_id = attributes[:'open_id']
  end

  if attributes.key?(:'out_trade_no')
    self.out_trade_no = attributes[:'out_trade_no']
  end

  if attributes.key?(:'passback_params')
    self.passback_params = attributes[:'passback_params']
  end

  if attributes.key?(:'pay_amount')
    self.pay_amount = attributes[:'pay_amount']
  end

  if attributes.key?(:'pay_currency')
    self.pay_currency = attributes[:'pay_currency']
  end

  if attributes.key?(:'payment_info_with_id_list')
    if (value = attributes[:'payment_info_with_id_list']).is_a?(Array)
      self.payment_info_with_id_list = value
    end
  end

  if attributes.key?(:'period_scene')
    self.period_scene = attributes[:'period_scene']
  end

  if attributes.key?(:'point_amount')
    self.point_amount = attributes[:'point_amount']
  end

  if attributes.key?(:'pre_auth_pay_amount')
    self.pre_auth_pay_amount = attributes[:'pre_auth_pay_amount']
  end

  if attributes.key?(:'receipt_amount')
    self.receipt_amount = attributes[:'receipt_amount']
  end

  if attributes.key?(:'receipt_currency_type')
    self.receipt_currency_type = attributes[:'receipt_currency_type']
  end

  if attributes.key?(:'req_goods_detail')
    if (value = attributes[:'req_goods_detail']).is_a?(Array)
      self.req_goods_detail = value
    end
  end

  if attributes.key?(:'send_pay_date')
    self.send_pay_date = attributes[:'send_pay_date']
  end

  if attributes.key?(:'settle_amount')
    self.settle_amount = attributes[:'settle_amount']
  end

  if attributes.key?(:'settle_currency')
    self.settle_currency = attributes[:'settle_currency']
  end

  if attributes.key?(:'settle_trans_rate')
    self.settle_trans_rate = attributes[:'settle_trans_rate']
  end

  if attributes.key?(:'settlement_id')
    self.settlement_id = attributes[:'settlement_id']
  end

  if attributes.key?(:'store_id')
    self.store_id = attributes[:'store_id']
  end

  if attributes.key?(:'store_name')
    self.store_name = attributes[:'store_name']
  end

  if attributes.key?(:'subject')
    self.subject = attributes[:'subject']
  end

  if attributes.key?(:'tap_pay_info')
    self.tap_pay_info = attributes[:'tap_pay_info']
  end

  if attributes.key?(:'terminal_id')
    self.terminal_id = attributes[:'terminal_id']
  end

  if attributes.key?(:'total_amount')
    self.total_amount = attributes[:'total_amount']
  end

  if attributes.key?(:'trade_no')
    self.trade_no = attributes[:'trade_no']
  end

  if attributes.key?(:'trade_settle_info')
    self.trade_settle_info = attributes[:'trade_settle_info']
  end

  if attributes.key?(:'trade_status')
    self.trade_status = attributes[:'trade_status']
  end

  if attributes.key?(:'trans_currency')
    self.trans_currency = attributes[:'trans_currency']
  end

  if attributes.key?(:'trans_pay_rate')
    self.trans_pay_rate = attributes[:'trans_pay_rate']
  end

  if attributes.key?(:'voucher_detail_list')
    if (value = attributes[:'voucher_detail_list']).is_a?(Array)
      self.voucher_detail_list = value
    end
  end
end

Instance Attribute Details

#additional_statusObject

Returns the value of attribute additional_status.



28
29
30
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 28

def additional_status
  @additional_status
end

#alipay_store_idObject

Returns the value of attribute alipay_store_id.



30
31
32
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 30

def alipay_store_id
  @alipay_store_id
end

#alipay_sub_merchant_idObject

Returns the value of attribute alipay_sub_merchant_id.



32
33
34
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 32

def alipay_sub_merchant_id
  @alipay_sub_merchant_id
end

#async_pay_apply_statusObject

Returns the value of attribute async_pay_apply_status.



34
35
36
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 34

def async_pay_apply_status
  @async_pay_apply_status
end

#auth_trade_pay_modeObject

Returns the value of attribute auth_trade_pay_mode.



36
37
38
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 36

def auth_trade_pay_mode
  @auth_trade_pay_mode
end

#biz_settle_modeObject

Returns the value of attribute biz_settle_mode.



38
39
40
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 38

def biz_settle_mode
  @biz_settle_mode
end

#bkagent_resp_infoObject

Returns the value of attribute bkagent_resp_info.



40
41
42
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 40

def bkagent_resp_info
  @bkagent_resp_info
end

#bodyObject

Returns the value of attribute body.



42
43
44
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 42

def body
  @body
end

#buyer_logon_idObject

Returns the value of attribute buyer_logon_id.



44
45
46
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 44

def buyer_logon_id
  @buyer_logon_id
end

#buyer_open_idObject

Returns the value of attribute buyer_open_id.



46
47
48
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 46

def buyer_open_id
  @buyer_open_id
end

#buyer_pay_amountObject

Returns the value of attribute buyer_pay_amount.



48
49
50
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 48

def buyer_pay_amount
  @buyer_pay_amount
end

#buyer_user_idObject

Returns the value of attribute buyer_user_id.



50
51
52
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 50

def buyer_user_id
  @buyer_user_id
end

#buyer_user_nameObject

Returns the value of attribute buyer_user_name.



52
53
54
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 52

def buyer_user_name
  @buyer_user_name
end

#buyer_user_typeObject

Returns the value of attribute buyer_user_type.



54
55
56
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 54

def buyer_user_type
  @buyer_user_type
end

#cashier_typeObject

Returns the value of attribute cashier_type.



56
57
58
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 56

def cashier_type
  @cashier_type
end

#charge_amountObject

Returns the value of attribute charge_amount.



58
59
60
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 58

def charge_amount
  @charge_amount
end

#charge_flagsObject

Returns the value of attribute charge_flags.



60
61
62
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 60

def charge_flags
  @charge_flags
end

#charge_info_listObject

Returns the value of attribute charge_info_list.



62
63
64
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 62

def charge_info_list
  @charge_info_list
end

#codeObject

Returns the value of attribute code.



18
19
20
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 18

def code
  @code
end

#credit_biz_order_idObject

Returns the value of attribute credit_biz_order_id.



64
65
66
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 64

def credit_biz_order_id
  @credit_biz_order_id
end

#credit_pay_modeObject

Returns the value of attribute credit_pay_mode.



66
67
68
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 66

def credit_pay_mode
  @credit_pay_mode
end

#discount_amountObject

Returns the value of attribute discount_amount.



68
69
70
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 68

def discount_amount
  @discount_amount
end

#discount_goods_detailObject

Returns the value of attribute discount_goods_detail.



70
71
72
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 70

def discount_goods_detail
  @discount_goods_detail
end

#enterprise_pay_infoObject

Returns the value of attribute enterprise_pay_info.



72
73
74
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 72

def enterprise_pay_info
  @enterprise_pay_info
end

#ext_infosObject

Returns the value of attribute ext_infos.



74
75
76
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 74

def ext_infos
  @ext_infos
end

#fulfillment_detail_listObject

Returns the value of attribute fulfillment_detail_list.



76
77
78
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 76

def fulfillment_detail_list
  @fulfillment_detail_list
end

#fund_bill_listObject

Returns the value of attribute fund_bill_list.



78
79
80
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 78

def fund_bill_list
  @fund_bill_list
end

#hb_fq_pay_infoObject

Returns the value of attribute hb_fq_pay_info.



80
81
82
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 80

def hb_fq_pay_info
  @hb_fq_pay_info
end

#hyb_amountObject

Returns the value of attribute hyb_amount.



82
83
84
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 82

def hyb_amount
  @hyb_amount
end

#industry_sepc_detailObject

Returns the value of attribute industry_sepc_detail.



84
85
86
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 84

def industry_sepc_detail
  @industry_sepc_detail
end

#industry_sepc_detail_accObject

Returns the value of attribute industry_sepc_detail_acc.



86
87
88
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 86

def industry_sepc_detail_acc
  @industry_sepc_detail_acc
end

#industry_sepc_detail_govObject

Returns the value of attribute industry_sepc_detail_gov.



88
89
90
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 88

def industry_sepc_detail_gov
  @industry_sepc_detail_gov
end

#intact_charge_info_listObject

Returns the value of attribute intact_charge_info_list.



90
91
92
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 90

def intact_charge_info_list
  @intact_charge_info_list
end

#invoice_amountObject

Returns the value of attribute invoice_amount.



92
93
94
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 92

def invoice_amount
  @invoice_amount
end

#is_errorObject

Returns the value of attribute is_error.



26
27
28
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 26

def is_error
  @is_error
end

#mdiscount_amountObject

Returns the value of attribute mdiscount_amount.



94
95
96
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 94

def mdiscount_amount
  @mdiscount_amount
end

#medical_insurance_infoObject

Returns the value of attribute medical_insurance_info.



96
97
98
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 96

def medical_insurance_info
  @medical_insurance_info
end

#msgObject

Returns the value of attribute msg.



20
21
22
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 20

def msg
  @msg
end

#open_idObject

Returns the value of attribute open_id.



98
99
100
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 98

def open_id
  @open_id
end

#out_trade_noObject

Returns the value of attribute out_trade_no.



100
101
102
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 100

def out_trade_no
  @out_trade_no
end

#passback_paramsObject

Returns the value of attribute passback_params.



102
103
104
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 102

def passback_params
  @passback_params
end

#pay_amountObject

Returns the value of attribute pay_amount.



104
105
106
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 104

def pay_amount
  @pay_amount
end

#pay_currencyObject

Returns the value of attribute pay_currency.



106
107
108
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 106

def pay_currency
  @pay_currency
end

#payment_info_with_id_listObject

Returns the value of attribute payment_info_with_id_list.



108
109
110
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 108

def payment_info_with_id_list
  @payment_info_with_id_list
end

#period_sceneObject

Returns the value of attribute period_scene.



110
111
112
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 110

def period_scene
  @period_scene
end

#point_amountObject

Returns the value of attribute point_amount.



112
113
114
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 112

def point_amount
  @point_amount
end

#pre_auth_pay_amountObject

Returns the value of attribute pre_auth_pay_amount.



114
115
116
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 114

def pre_auth_pay_amount
  @pre_auth_pay_amount
end

#receipt_amountObject

Returns the value of attribute receipt_amount.



116
117
118
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 116

def receipt_amount
  @receipt_amount
end

#receipt_currency_typeObject

Returns the value of attribute receipt_currency_type.



118
119
120
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 118

def receipt_currency_type
  @receipt_currency_type
end

#req_goods_detailObject

Returns the value of attribute req_goods_detail.



120
121
122
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 120

def req_goods_detail
  @req_goods_detail
end

#send_pay_dateObject

Returns the value of attribute send_pay_date.



122
123
124
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 122

def send_pay_date
  @send_pay_date
end

#settle_amountObject

Returns the value of attribute settle_amount.



124
125
126
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 124

def settle_amount
  @settle_amount
end

#settle_currencyObject

Returns the value of attribute settle_currency.



126
127
128
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 126

def settle_currency
  @settle_currency
end

#settle_trans_rateObject

Returns the value of attribute settle_trans_rate.



128
129
130
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 128

def settle_trans_rate
  @settle_trans_rate
end

#settlement_idObject

Returns the value of attribute settlement_id.



130
131
132
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 130

def settlement_id
  @settlement_id
end

#store_idObject

Returns the value of attribute store_id.



132
133
134
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 132

def store_id
  @store_id
end

#store_nameObject

Returns the value of attribute store_name.



134
135
136
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 134

def store_name
  @store_name
end

#sub_codeObject

Returns the value of attribute sub_code.



22
23
24
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 22

def sub_code
  @sub_code
end

#sub_msgObject

Returns the value of attribute sub_msg.



24
25
26
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 24

def sub_msg
  @sub_msg
end

#subjectObject

Returns the value of attribute subject.



136
137
138
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 136

def subject
  @subject
end

#tap_pay_infoObject

Returns the value of attribute tap_pay_info.



138
139
140
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 138

def tap_pay_info
  @tap_pay_info
end

#terminal_idObject

Returns the value of attribute terminal_id.



140
141
142
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 140

def terminal_id
  @terminal_id
end

#total_amountObject

Returns the value of attribute total_amount.



142
143
144
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 142

def total_amount
  @total_amount
end

#trade_noObject

Returns the value of attribute trade_no.



144
145
146
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 144

def trade_no
  @trade_no
end

#trade_settle_infoObject

Returns the value of attribute trade_settle_info.



146
147
148
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 146

def trade_settle_info
  @trade_settle_info
end

#trade_statusObject

Returns the value of attribute trade_status.



148
149
150
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 148

def trade_status
  @trade_status
end

#trans_currencyObject

Returns the value of attribute trans_currency.



150
151
152
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 150

def trans_currency
  @trans_currency
end

#trans_pay_rateObject

Returns the value of attribute trans_pay_rate.



152
153
154
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 152

def trans_pay_rate
  @trans_pay_rate
end

#voucher_detail_listObject

Returns the value of attribute voucher_detail_list.



154
155
156
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 154

def voucher_detail_list
  @voucher_detail_list
end

Class Method Details

._deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 822

def self._deserialize(type, value)
  case type.to_sym
  when :Time
    Time.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :Boolean
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    # models (e.g. Pet) or oneOf
    klass = ZSGFClient.const_get(type)
    klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
  end
end

.acceptable_attribute_mapObject

Returns attribute mapping this model knows about



232
233
234
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 232

def self.acceptable_attribute_map
  attribute_map
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



237
238
239
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 237

def self.acceptable_attributes
  acceptable_attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 157

def self.attribute_map
  {
    :'code' => :'code',
    :'msg' => :'msg',
    :'sub_code' => :'subCode',
    :'sub_msg' => :'subMsg',
    :'is_error' => :'isError',
    :'additional_status' => :'additionalStatus',
    :'alipay_store_id' => :'alipayStoreId',
    :'alipay_sub_merchant_id' => :'alipaySubMerchantId',
    :'async_pay_apply_status' => :'asyncPayApplyStatus',
    :'auth_trade_pay_mode' => :'authTradePayMode',
    :'biz_settle_mode' => :'bizSettleMode',
    :'bkagent_resp_info' => :'bkagentRespInfo',
    :'body' => :'body',
    :'buyer_logon_id' => :'buyerLogonId',
    :'buyer_open_id' => :'buyerOpenId',
    :'buyer_pay_amount' => :'buyerPayAmount',
    :'buyer_user_id' => :'buyerUserId',
    :'buyer_user_name' => :'buyerUserName',
    :'buyer_user_type' => :'buyerUserType',
    :'cashier_type' => :'cashierType',
    :'charge_amount' => :'chargeAmount',
    :'charge_flags' => :'chargeFlags',
    :'charge_info_list' => :'chargeInfoList',
    :'credit_biz_order_id' => :'creditBizOrderId',
    :'credit_pay_mode' => :'creditPayMode',
    :'discount_amount' => :'discountAmount',
    :'discount_goods_detail' => :'discountGoodsDetail',
    :'enterprise_pay_info' => :'enterprisePayInfo',
    :'ext_infos' => :'extInfos',
    :'fulfillment_detail_list' => :'fulfillmentDetailList',
    :'fund_bill_list' => :'fundBillList',
    :'hb_fq_pay_info' => :'hbFqPayInfo',
    :'hyb_amount' => :'hybAmount',
    :'industry_sepc_detail' => :'industrySepcDetail',
    :'industry_sepc_detail_acc' => :'industrySepcDetailAcc',
    :'industry_sepc_detail_gov' => :'industrySepcDetailGov',
    :'intact_charge_info_list' => :'intactChargeInfoList',
    :'invoice_amount' => :'invoiceAmount',
    :'mdiscount_amount' => :'mdiscountAmount',
    :'medical_insurance_info' => :'medicalInsuranceInfo',
    :'open_id' => :'openId',
    :'out_trade_no' => :'outTradeNo',
    :'passback_params' => :'passbackParams',
    :'pay_amount' => :'payAmount',
    :'pay_currency' => :'payCurrency',
    :'payment_info_with_id_list' => :'paymentInfoWithIdList',
    :'period_scene' => :'periodScene',
    :'point_amount' => :'pointAmount',
    :'pre_auth_pay_amount' => :'preAuthPayAmount',
    :'receipt_amount' => :'receiptAmount',
    :'receipt_currency_type' => :'receiptCurrencyType',
    :'req_goods_detail' => :'reqGoodsDetail',
    :'send_pay_date' => :'sendPayDate',
    :'settle_amount' => :'settleAmount',
    :'settle_currency' => :'settleCurrency',
    :'settle_trans_rate' => :'settleTransRate',
    :'settlement_id' => :'settlementId',
    :'store_id' => :'storeId',
    :'store_name' => :'storeName',
    :'subject' => :'subject',
    :'tap_pay_info' => :'tapPayInfo',
    :'terminal_id' => :'terminalId',
    :'total_amount' => :'totalAmount',
    :'trade_no' => :'tradeNo',
    :'trade_settle_info' => :'tradeSettleInfo',
    :'trade_status' => :'tradeStatus',
    :'trans_currency' => :'transCurrency',
    :'trans_pay_rate' => :'transPayRate',
    :'voucher_detail_list' => :'voucherDetailList'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 798

def self.build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  transformed_hash = {}
  openapi_types.each_pair do |key, type|
    if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = nil
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[attribute_map[key]].is_a?(Array)
        transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
      end
    elsif !attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
    end
  end
  new(transformed_hash)
end

.openapi_nullableObject

List of attributes with nullable: true



317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 317

def self.openapi_nullable
  Set.new([
    :'code',
    :'msg',
    :'sub_code',
    :'sub_msg',
    :'additional_status',
    :'alipay_store_id',
    :'alipay_sub_merchant_id',
    :'async_pay_apply_status',
    :'auth_trade_pay_mode',
    :'biz_settle_mode',
    :'body',
    :'buyer_logon_id',
    :'buyer_open_id',
    :'buyer_pay_amount',
    :'buyer_user_id',
    :'buyer_user_name',
    :'buyer_user_type',
    :'cashier_type',
    :'charge_amount',
    :'charge_flags',
    :'charge_info_list',
    :'credit_biz_order_id',
    :'credit_pay_mode',
    :'discount_amount',
    :'discount_goods_detail',
    :'ext_infos',
    :'fulfillment_detail_list',
    :'fund_bill_list',
    :'hyb_amount',
    :'industry_sepc_detail',
    :'industry_sepc_detail_acc',
    :'industry_sepc_detail_gov',
    :'intact_charge_info_list',
    :'invoice_amount',
    :'mdiscount_amount',
    :'medical_insurance_info',
    :'open_id',
    :'out_trade_no',
    :'passback_params',
    :'pay_amount',
    :'pay_currency',
    :'payment_info_with_id_list',
    :'period_scene',
    :'point_amount',
    :'pre_auth_pay_amount',
    :'receipt_amount',
    :'receipt_currency_type',
    :'req_goods_detail',
    :'send_pay_date',
    :'settle_amount',
    :'settle_currency',
    :'settle_trans_rate',
    :'settlement_id',
    :'store_id',
    :'store_name',
    :'subject',
    :'terminal_id',
    :'total_amount',
    :'trade_no',
    :'trade_status',
    :'trans_currency',
    :'trans_pay_rate',
    :'voucher_detail_list'
  ])
end

.openapi_typesObject

Attribute type mapping.



242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 242

def self.openapi_types
  {
    :'code' => :'String',
    :'msg' => :'String',
    :'sub_code' => :'String',
    :'sub_msg' => :'String',
    :'is_error' => :'Boolean',
    :'additional_status' => :'String',
    :'alipay_store_id' => :'String',
    :'alipay_sub_merchant_id' => :'String',
    :'async_pay_apply_status' => :'String',
    :'auth_trade_pay_mode' => :'String',
    :'biz_settle_mode' => :'String',
    :'bkagent_resp_info' => :'BkAgentRespInfo',
    :'body' => :'String',
    :'buyer_logon_id' => :'String',
    :'buyer_open_id' => :'String',
    :'buyer_pay_amount' => :'String',
    :'buyer_user_id' => :'String',
    :'buyer_user_name' => :'String',
    :'buyer_user_type' => :'String',
    :'cashier_type' => :'String',
    :'charge_amount' => :'String',
    :'charge_flags' => :'String',
    :'charge_info_list' => :'Array<ChargeInfo>',
    :'credit_biz_order_id' => :'String',
    :'credit_pay_mode' => :'String',
    :'discount_amount' => :'String',
    :'discount_goods_detail' => :'String',
    :'enterprise_pay_info' => :'EnterprisePayInfo',
    :'ext_infos' => :'String',
    :'fulfillment_detail_list' => :'Array<FulfillmentDetail>',
    :'fund_bill_list' => :'Array<TradeFundBill>',
    :'hb_fq_pay_info' => :'HbFqPayInfo',
    :'hyb_amount' => :'String',
    :'industry_sepc_detail' => :'String',
    :'industry_sepc_detail_acc' => :'String',
    :'industry_sepc_detail_gov' => :'String',
    :'intact_charge_info_list' => :'Array<IntactChargeInfo>',
    :'invoice_amount' => :'String',
    :'mdiscount_amount' => :'String',
    :'medical_insurance_info' => :'String',
    :'open_id' => :'String',
    :'out_trade_no' => :'String',
    :'passback_params' => :'String',
    :'pay_amount' => :'String',
    :'pay_currency' => :'String',
    :'payment_info_with_id_list' => :'Array<PaymentInfoWithId>',
    :'period_scene' => :'String',
    :'point_amount' => :'String',
    :'pre_auth_pay_amount' => :'String',
    :'receipt_amount' => :'String',
    :'receipt_currency_type' => :'String',
    :'req_goods_detail' => :'Array<GoodsDetail>',
    :'send_pay_date' => :'String',
    :'settle_amount' => :'String',
    :'settle_currency' => :'String',
    :'settle_trans_rate' => :'String',
    :'settlement_id' => :'String',
    :'store_id' => :'String',
    :'store_name' => :'String',
    :'subject' => :'String',
    :'tap_pay_info' => :'TapPayInfo',
    :'terminal_id' => :'String',
    :'total_amount' => :'String',
    :'trade_no' => :'String',
    :'trade_settle_info' => :'TradeSettleInfo',
    :'trade_status' => :'String',
    :'trans_currency' => :'String',
    :'trans_pay_rate' => :'String',
    :'voucher_detail_list' => :'Array<VoucherDetail>'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 709

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      code == o.code &&
      msg == o.msg &&
      sub_code == o.sub_code &&
      sub_msg == o.sub_msg &&
      is_error == o.is_error &&
      additional_status == o.additional_status &&
      alipay_store_id == o.alipay_store_id &&
      alipay_sub_merchant_id == o.alipay_sub_merchant_id &&
      async_pay_apply_status == o.async_pay_apply_status &&
      auth_trade_pay_mode == o.auth_trade_pay_mode &&
      biz_settle_mode == o.biz_settle_mode &&
      bkagent_resp_info == o.bkagent_resp_info &&
      body == o.body &&
      buyer_logon_id == o.buyer_logon_id &&
      buyer_open_id == o.buyer_open_id &&
      buyer_pay_amount == o.buyer_pay_amount &&
      buyer_user_id == o.buyer_user_id &&
      buyer_user_name == o.buyer_user_name &&
      buyer_user_type == o.buyer_user_type &&
      cashier_type == o.cashier_type &&
      charge_amount == o.charge_amount &&
      charge_flags == o.charge_flags &&
      charge_info_list == o.charge_info_list &&
      credit_biz_order_id == o.credit_biz_order_id &&
      credit_pay_mode == o.credit_pay_mode &&
      discount_amount == o.discount_amount &&
      discount_goods_detail == o.discount_goods_detail &&
      enterprise_pay_info == o.enterprise_pay_info &&
      ext_infos == o.ext_infos &&
      fulfillment_detail_list == o.fulfillment_detail_list &&
      fund_bill_list == o.fund_bill_list &&
      hb_fq_pay_info == o.hb_fq_pay_info &&
      hyb_amount == o.hyb_amount &&
      industry_sepc_detail == o.industry_sepc_detail &&
      industry_sepc_detail_acc == o.industry_sepc_detail_acc &&
      industry_sepc_detail_gov == o.industry_sepc_detail_gov &&
      intact_charge_info_list == o.intact_charge_info_list &&
      invoice_amount == o.invoice_amount &&
      mdiscount_amount == o.mdiscount_amount &&
      medical_insurance_info == o.medical_insurance_info &&
      open_id == o.open_id &&
      out_trade_no == o.out_trade_no &&
      passback_params == o.passback_params &&
      pay_amount == o.pay_amount &&
      pay_currency == o.pay_currency &&
      payment_info_with_id_list == o.payment_info_with_id_list &&
      period_scene == o.period_scene &&
      point_amount == o.point_amount &&
      pre_auth_pay_amount == o.pre_auth_pay_amount &&
      receipt_amount == o.receipt_amount &&
      receipt_currency_type == o.receipt_currency_type &&
      req_goods_detail == o.req_goods_detail &&
      send_pay_date == o.send_pay_date &&
      settle_amount == o.settle_amount &&
      settle_currency == o.settle_currency &&
      settle_trans_rate == o.settle_trans_rate &&
      settlement_id == o.settlement_id &&
      store_id == o.store_id &&
      store_name == o.store_name &&
      subject == o.subject &&
      tap_pay_info == o.tap_pay_info &&
      terminal_id == o.terminal_id &&
      total_amount == o.total_amount &&
      trade_no == o.trade_no &&
      trade_settle_info == o.trade_settle_info &&
      trade_status == o.trade_status &&
      trans_currency == o.trans_currency &&
      trans_pay_rate == o.trans_pay_rate &&
      voucher_detail_list == o.voucher_detail_list
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



893
894
895
896
897
898
899
900
901
902
903
904
905
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 893

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


785
786
787
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 785

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



791
792
793
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 791

def hash
  [code, msg, sub_code, sub_msg, is_error, additional_status, alipay_store_id, alipay_sub_merchant_id, async_pay_apply_status, auth_trade_pay_mode, biz_settle_mode, bkagent_resp_info, body, buyer_logon_id, buyer_open_id, buyer_pay_amount, buyer_user_id, buyer_user_name, buyer_user_type, cashier_type, charge_amount, charge_flags, charge_info_list, credit_biz_order_id, credit_pay_mode, discount_amount, discount_goods_detail, enterprise_pay_info, ext_infos, fulfillment_detail_list, fund_bill_list, hb_fq_pay_info, hyb_amount, industry_sepc_detail, industry_sepc_detail_acc, industry_sepc_detail_gov, intact_charge_info_list, invoice_amount, mdiscount_amount, medical_insurance_info, open_id, out_trade_no, passback_params, pay_amount, pay_currency, payment_info_with_id_list, period_scene, point_amount, pre_auth_pay_amount, receipt_amount, receipt_currency_type, req_goods_detail, send_pay_date, settle_amount, settle_currency, settle_trans_rate, settlement_id, store_id, store_name, subject, tap_pay_info, terminal_id, total_amount, trade_no, trade_settle_info, trade_status, trans_currency, trans_pay_rate, voucher_detail_list].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



694
695
696
697
698
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 694

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



869
870
871
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 869

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



875
876
877
878
879
880
881
882
883
884
885
886
887
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 875

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



863
864
865
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 863

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



702
703
704
705
# File 'lib/zsgf_client/models/alipay_trade_query_response.rb', line 702

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  true
end