Class: PlaceOrderInfo
- Inherits:
-
Object
- Object
- PlaceOrderInfo
- Defined in:
- lib/compropago_sdk/factory/models/place_order_info.rb
Instance Attribute Summary collapse
-
#app_client_name ⇒ Object
Returns the value of attribute app_client_name.
-
#app_client_version ⇒ Object
Returns the value of attribute app_client_version.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#customer_email ⇒ Object
Returns the value of attribute customer_email.
-
#customer_name ⇒ Object
Returns the value of attribute customer_name.
-
#customer_phone ⇒ Object
Returns the value of attribute customer_phone.
-
#expiration_time ⇒ Object
Returns the value of attribute expiration_time.
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#order_id ⇒ Object
Returns the value of attribute order_id.
-
#order_name ⇒ Object
Returns the value of attribute order_name.
-
#order_price ⇒ Object
Returns the value of attribute order_price.
-
#payment_type ⇒ Object
Returns the value of attribute payment_type.
Instance Method Summary collapse
-
#initialize(order_id, order_name, order_price, customer_name, customer_email, payment_type = 'OXXO', currency = 'MXN', expiration_time = nil, image_url = '', app_client_name = 'sdk-ruby', app_client_version = nil) ⇒ PlaceOrderInfo
constructor
A new instance of PlaceOrderInfo.
Constructor Details
#initialize(order_id, order_name, order_price, customer_name, customer_email, payment_type = 'OXXO', currency = 'MXN', expiration_time = nil, image_url = '', app_client_name = 'sdk-ruby', app_client_version = nil) ⇒ PlaceOrderInfo
Returns a new instance of PlaceOrderInfo.
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 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 16 def initialize( order_id, order_name, order_price, customer_name, customer_email, payment_type='OXXO', currency='MXN', expiration_time=nil, image_url='', app_client_name='sdk-ruby', app_client_version=nil ) @order_id = order_id @order_name = order_name @order_price = order_price @customer_name = customer_name @customer_email = customer_email @payment_type = payment_type @currency = currency @expiration_time = expiration_time @image_url = image_url @app_client_name = app_client_name if app_client_version.nil? @app_client_version = Client::VERSION else @app_client_version = app_client_version end end |
Instance Attribute Details
#app_client_name ⇒ Object
Returns the value of attribute app_client_name.
13 14 15 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 13 def app_client_name @app_client_name end |
#app_client_version ⇒ Object
Returns the value of attribute app_client_version.
14 15 16 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 14 def app_client_version @app_client_version end |
#currency ⇒ Object
Returns the value of attribute currency.
10 11 12 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 10 def currency @currency end |
#customer_email ⇒ Object
Returns the value of attribute customer_email.
7 8 9 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 7 def customer_email @customer_email end |
#customer_name ⇒ Object
Returns the value of attribute customer_name.
6 7 8 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 6 def customer_name @customer_name end |
#customer_phone ⇒ Object
Returns the value of attribute customer_phone.
8 9 10 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 8 def customer_phone @customer_phone end |
#expiration_time ⇒ Object
Returns the value of attribute expiration_time.
11 12 13 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 11 def expiration_time @expiration_time end |
#image_url ⇒ Object
Returns the value of attribute image_url.
12 13 14 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 12 def image_url @image_url end |
#order_id ⇒ Object
Returns the value of attribute order_id.
3 4 5 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 3 def order_id @order_id end |
#order_name ⇒ Object
Returns the value of attribute order_name.
4 5 6 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 4 def order_name @order_name end |
#order_price ⇒ Object
Returns the value of attribute order_price.
5 6 7 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 5 def order_price @order_price end |
#payment_type ⇒ Object
Returns the value of attribute payment_type.
9 10 11 |
# File 'lib/compropago_sdk/factory/models/place_order_info.rb', line 9 def payment_type @payment_type end |