Class: Khipu::PaymentsCreateResponse

Inherits:
BaseObject show all
Defined in:
lib/khipu-api-client/models/payments_create_response.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 55

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[:'webpay_url']
    self.webpay_url = attributes[:'webpay_url']
  end
  
  if attributes[:'hites_url']
    self.hites_url = attributes[:'hites_url']
  end
  
  if attributes[:'payme_url']
    self.payme_url = attributes[:'payme_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_urlObject

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

#hites_urlObject

Returns the value of attribute hites_url.



4
5
6
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 4

def hites_url
  @hites_url
end

#payme_urlObject

Returns the value of attribute payme_url.



4
5
6
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 4

def payme_url
  @payme_url
end

#payment_idObject

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_urlObject

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_terminalObject

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_urlObject

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_urlObject

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

#webpay_urlObject

Returns the value of attribute webpay_url.



4
5
6
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 4

def webpay_url
  @webpay_url
end

Class Method Details

.attribute_mapObject

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
29
30
31
32
33
34
35
36
37
# 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 de pago usando Webpay
    :'webpay_url' => :'webpay_url',
    
    # URL de pago usando Hites
    :'hites_url' => :'hites_url',
    
    # URL de pago usando Hites
    :'payme_url' => :'payme_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_typesObject

attribute type



40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/khipu-api-client/models/payments_create_response.rb', line 40

def self.swagger_types
  {
    :'payment_id' => :'String',
    :'payment_url' => :'String',
    :'simplified_transfer_url' => :'String',
    :'transfer_url' => :'String',
    :'webpay_url' => :'String',
    :'hites_url' => :'String',
    :'payme_url' => :'String',
    :'app_url' => :'String',
    :'ready_for_terminal' => :'BOOLEAN'
    
  }
end