Class: OpenPayU::Models::Order
- Inherits:
-
Model
- Object
- Model
- OpenPayU::Models::Order
- Defined in:
- lib/openpayu/models/order.rb
Constant Summary
- STATUSES =
%w(NEW PENDING CANCELLED REJECTED COMPLETED WAITING_FOR_CONFIRMATION)
Instance Attribute Summary (collapse)
-
- (Object) continue_url
Returns the value of attribute continue_url.
-
- (Object) currency_code
Returns the value of attribute currency_code.
-
- (Object) customer_ip
Returns the value of attribute customer_ip.
-
- (Object) description
Returns the value of attribute description.
-
- (Object) ext_order_id
Returns the value of attribute ext_order_id.
-
- (Object) merchant_pos_id
Returns the value of attribute merchant_pos_id.
-
- (Object) notify_url
Returns the value of attribute notify_url.
-
- (Object) order_url
Returns the value of attribute order_url.
-
- (Object) properties
Returns the value of attribute properties.
-
- (Object) ref_req_id
Returns the value of attribute ref_req_id.
-
- (Object) req_id
Returns the value of attribute req_id.
-
- (Object) total_amount
Returns the value of attribute total_amount.
-
- (Object) validity_time
Returns the value of attribute validity_time.
Attributes inherited from Model
Instance Method Summary (collapse)
Methods inherited from Model
#all_objects_valid?, #attributes, define_reader, define_writer, #get_instance_values, has_many_objects, has_one_object, #initialize, #prepare_data, #prepare_keys, #to_flatten_hash, #to_json, #validate_all_objects
Constructor Details
This class inherits a constructor from OpenPayU::Models::Model
Instance Attribute Details
- (Object) continue_url
Returns the value of attribute continue_url
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def continue_url @continue_url end |
- (Object) currency_code
Returns the value of attribute currency_code
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def currency_code @currency_code end |
- (Object) customer_ip
Returns the value of attribute customer_ip
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def customer_ip @customer_ip end |
- (Object) description
Returns the value of attribute description
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def description @description end |
- (Object) ext_order_id
Returns the value of attribute ext_order_id
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def ext_order_id @ext_order_id end |
- (Object) merchant_pos_id
Returns the value of attribute merchant_pos_id
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def merchant_pos_id @merchant_pos_id end |
- (Object) notify_url
Returns the value of attribute notify_url
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def notify_url @notify_url end |
- (Object) order_url
Returns the value of attribute order_url
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def order_url @order_url end |
- (Object) properties
Returns the value of attribute properties
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def properties @properties end |
- (Object) ref_req_id
Returns the value of attribute ref_req_id
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def ref_req_id @ref_req_id end |
- (Object) req_id
Returns the value of attribute req_id
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def req_id @req_id end |
- (Object) total_amount
Returns the value of attribute total_amount
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def total_amount @total_amount end |
- (Object) validity_time
Returns the value of attribute validity_time
9 10 11 |
# File 'lib/openpayu/models/order.rb', line 9 def validity_time @validity_time end |
Instance Method Details
- (Object) after_initialize
19 20 21 22 23 24 |
# File 'lib/openpayu/models/order.rb', line 19 def after_initialize @req_id ||= "{#{SecureRandom.uuid}}" @notify_url ||= OpenPayU::Configuration.notify_url @order_url ||= OpenPayU::Configuration.order_url @continue_url ||= OpenPayU::Configuration.continue_url end |