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
-
#account ⇒ Object
Returns the value of attribute account.
-
#dexcel ⇒ Object
Returns the value of attribute dexcel.
-
#end_day ⇒ Object
Returns the value of attribute end_day.
-
#end_hour ⇒ Object
Returns the value of attribute end_hour.
-
#end_min ⇒ Object
Returns the value of attribute end_min.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#money ⇒ Object
Returns the value of attribute money.
-
#mrch_no ⇒ Object
Returns the value of attribute mrch_no.
-
#norderby ⇒ Object
Returns the value of attribute norderby.
-
#order ⇒ Object
Returns the value of attribute order.
-
#page ⇒ Object
Returns the value of attribute page.
-
#pos_code ⇒ Object
Returns the value of attribute pos_code.
-
#start_day ⇒ Object
Returns the value of attribute start_day.
-
#start_hour ⇒ Object
Returns the value of attribute start_hour.
-
#start_min ⇒ Object
Returns the value of attribute start_min.
-
#status ⇒ Object
Returns the value of attribute status.
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.
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
#account ⇒ Object
Returns the value of attribute account.
6 7 8 |
# File 'lib/ccb_connect_client/models/payment_details_query_request.rb', line 6 def account @account end |
#dexcel ⇒ Object
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_day ⇒ Object
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_hour ⇒ Object
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_min ⇒ Object
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 |
#kind ⇒ Object
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 |
#money ⇒ Object
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_no ⇒ Object
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 |
#norderby ⇒ Object
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 |
#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 |
#page ⇒ Object
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_code ⇒ Object
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_day ⇒ Object
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_hour ⇒ Object
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_min ⇒ Object
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 |
#status ⇒ Object
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_xml ⇒ Object
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 "#{@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 |