Class: CcbConnectClient::PaymentDetailsQueryRequest
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- CcbConnectClient::PaymentDetailsQueryRequest
- Defined in:
- lib/ccb_connect_client/models/payment_details_query_request.rb
Instance Attribute Summary collapse
-
#order ⇒ Object
Returns the value of attribute order.
Attributes inherited from BaseRequest
Instance Method Summary collapse
-
#initialize ⇒ PaymentDetailsQueryRequest
constructor
A new instance of PaymentDetailsQueryRequest.
- #to_xml ⇒ Object
Methods inherited from BaseRequest
Constructor Details
#initialize ⇒ PaymentDetailsQueryRequest
Returns a new instance of PaymentDetailsQueryRequest.
8 9 10 11 |
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 8 def initialize super @tx_code = '5W1002' end |
Instance Attribute Details
#order ⇒ Object
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 |
Instance Method Details
#to_xml ⇒ Object
13 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 |
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 13 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 "0" xml.ORDER "#{@order}" # xml.ACCOUNT "" # xml.DEXCEL "1" # xml.MONEY "#{@money}" # xml.NORDERBY "1" # xml.PAGE "1" # xml.POS_CODE "" # xml.STATUS "" # xml.Mrch_No "" } } target = xml.target! if CcbConnectClient.debug_mode puts "RefundRequest xml : #{target}" end target end |