Class: Khipu::PaymentsCreateResponse
- Inherits:
-
BaseObject
- Object
- BaseObject
- Khipu::PaymentsCreateResponse
- Defined in:
- lib/khipu-api-client/models/payments_create_response.rb
Instance Attribute Summary collapse
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#payment_id ⇒ Object
Returns the value of attribute payment_id.
-
#payment_url ⇒ Object
Returns the value of attribute payment_url.
-
#ready_for_terminal ⇒ Object
Returns the value of attribute ready_for_terminal.
-
#simplified_transfer_url ⇒ Object
Returns the value of attribute simplified_transfer_url.
-
#transfer_url ⇒ Object
Returns the value of attribute transfer_url.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PaymentsCreateResponse
constructor
A new instance of PaymentsCreateResponse.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ PaymentsCreateResponse
Returns a new instance of PaymentsCreateResponse.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 43 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'payment_id'] self.payment_id = attributes[:'payment_id'] end if attributes[:'payment_url'] self.payment_url = attributes[:'payment_url'] end if attributes[:'simplified_transfer_url'] self.simplified_transfer_url = attributes[:'simplified_transfer_url'] end if attributes[:'transfer_url'] self.transfer_url = attributes[:'transfer_url'] end if attributes[:'app_url'] self.app_url = attributes[:'app_url'] end if attributes[:'ready_for_terminal'] self.ready_for_terminal = attributes[:'ready_for_terminal'] end end |
Instance Attribute Details
#app_url ⇒ Object
Returns the value of attribute app_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 4 def app_url @app_url end |
#payment_id ⇒ Object
Returns the value of attribute payment_id.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 4 def payment_id @payment_id end |
#payment_url ⇒ Object
Returns the value of attribute payment_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 4 def payment_url @payment_url end |
#ready_for_terminal ⇒ Object
Returns the value of attribute ready_for_terminal.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 4 def ready_for_terminal @ready_for_terminal end |
#simplified_transfer_url ⇒ Object
Returns the value of attribute simplified_transfer_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 4 def simplified_transfer_url @simplified_transfer_url end |
#transfer_url ⇒ Object
Returns the value of attribute transfer_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 4 def transfer_url @transfer_url end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 6 def self.attribute_map { # Identificador único del pago, es una cadena alfanumérica de 12 caracteres :'payment_id' => :'payment_id', # URL principal del pago, si el usuario no ha elegido previamente un método de pago se le muestran las opciones :'payment_url' => :'payment_url', # URL de pago simplificado :'simplified_transfer_url' => :'simplified_transfer_url', # URL de pago normal :'transfer_url' => :'transfer_url', # URL para invocar el pago desde un dispositivo móvil usando la APP de khipu :'app_url' => :'app_url', # Es 'true' si el pago ya cuenta con todos los datos necesarios para abrir directamente la aplicación de pagos khipu :'ready_for_terminal' => :'ready_for_terminal' } end |
.swagger_types ⇒ Object
attribute type
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 31 def self.swagger_types { :'payment_id' => :'String', :'payment_url' => :'String', :'simplified_transfer_url' => :'String', :'transfer_url' => :'String', :'app_url' => :'String', :'ready_for_terminal' => :'BOOLEAN' } end |