Class: CcbConnectClient::PaymentDetailsQueryRequest

Inherits:
BaseRequest
  • Object
show all
Defined in:
lib/ccb_connect_client/models/payment_details_query_request.rb

Instance Attribute Summary collapse

Attributes inherited from BaseRequest

#request_sn, #tx_code

Instance Method Summary collapse

Methods inherited from BaseRequest

#generate_request_sn

Constructor Details

#initializePaymentDetailsQueryRequest

Returns a new instance of PaymentDetailsQueryRequest.



9
10
11
12
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 9

def initialize
  super
  @tx_code = '5W1002'
end

Instance Attribute Details

#accountObject

Returns the value of attribute account.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def 
  @account
end

#dexcelObject

Returns the value of attribute dexcel.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def dexcel
  @dexcel
end

#end_dayObject

Returns the value of attribute end_day.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def end_day
  @end_day
end

#end_hourObject

Returns the value of attribute end_hour.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def end_hour
  @end_hour
end

#end_minObject

Returns the value of attribute end_min.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def end_min
  @end_min
end

#kindObject

Returns the value of attribute kind.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def kind
  @kind
end

#moneyObject

Returns the value of attribute money.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def money
  @money
end

#mrch_noObject

Returns the value of attribute mrch_no.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def mrch_no
  @mrch_no
end

#norderbyObject

Returns the value of attribute norderby.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def norderby
  @norderby
end

#orderObject

Returns the value of attribute order.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def order
  @order
end

#pageObject

Returns the value of attribute page.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def page
  @page
end

#pos_codeObject

Returns the value of attribute pos_code.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def pos_code
  @pos_code
end

#start_dayObject

Returns the value of attribute start_day.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def start_day
  @start_day
end

#start_hourObject

Returns the value of attribute start_hour.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def start_hour
  @start_hour
end

#start_minObject

Returns the value of attribute start_min.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def start_min
  @start_min
end

#statusObject

Returns the value of attribute status.



6
7
8
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6

def status
  @status
end

Instance Method Details

#to_xmlObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 14

def to_xml
  xml = Builder::XmlMarkup.new(:indent=>2)
  xml.instruct! :xml, :version=>"1.0", :encoding=>"GB2312"
  xml.TX{
    xml.REQUEST_SN "#{@request_sn}"
    xml.CUST_ID "#{CcbConnectClient.cust_id}"
    xml.USER_ID"#{CcbConnectClient.user_id}"
    xml.PASSWORD "#{CcbConnectClient.password}"
    xml.TX_CODE "#{@tx_code}"
    xml.LANGUAGE "#{CcbConnectClient.language}"
    xml.TX_INFO{
      xml.START "#{@start_day}"
      xml.STARTHOUR "#{@start_hour}"
      xml.STARTMIN "#{@start_min}"
      xml.END "#{@end_day}"
      xml.ENDHOUR "#{@end_hour}"
      xml.ENDMIN "#{@end_min}"
      xml.KIND "#{@kind}"
      xml.ORDER "#{@order}"
      xml. "#{@account}"
      xml.DEXCEL "#{@dexcel}"
      xml.MONEY "#{@money}"
      xml.NORDERBY "#{@norderby}"
      xml.PAGE "#{@page}"
      xml.POS_CODE "#{@pos_code}"
      xml.STATUS "#{@status}"
      xml.Mrch_No "#{@mrch_no}"
    }
  }
  target = xml.target!
  if CcbConnectClient.debug_mode
    puts "RefundRequest xml : #{target}"
  end
  target
end