Class: Khipu::PaymentsResponse
- Inherits:
-
BaseObject
- Object
- BaseObject
- Khipu::PaymentsResponse
- Defined in:
- lib/khipu-api-client/models/payments_response.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#attachment_urls ⇒ Object
Returns the value of attribute attachment_urls.
-
#bank ⇒ Object
Returns the value of attribute bank.
-
#bank_account_number ⇒ Object
Returns the value of attribute bank_account_number.
-
#bank_id ⇒ Object
Returns the value of attribute bank_id.
-
#body ⇒ Object
Returns the value of attribute body.
-
#cancel_url ⇒ Object
Returns the value of attribute cancel_url.
-
#conciliation_date ⇒ Object
Returns the value of attribute conciliation_date.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#custom ⇒ Object
Returns the value of attribute custom.
-
#expires_date ⇒ Object
Returns the value of attribute expires_date.
-
#hites_url ⇒ Object
Returns the value of attribute hites_url.
-
#notification_token ⇒ Object
Returns the value of attribute notification_token.
-
#notify_api_version ⇒ Object
Returns the value of attribute notify_api_version.
-
#notify_url ⇒ Object
Returns the value of attribute notify_url.
-
#out_of_date_conciliation ⇒ Object
Returns the value of attribute out_of_date_conciliation.
-
#payer_email ⇒ Object
Returns the value of attribute payer_email.
-
#payer_name ⇒ Object
Returns the value of attribute payer_name.
-
#payme_url ⇒ Object
Returns the value of attribute payme_url.
-
#payment_id ⇒ Object
Returns the value of attribute payment_id.
-
#payment_method ⇒ Object
Returns the value of attribute payment_method.
-
#payment_url ⇒ Object
Returns the value of attribute payment_url.
-
#personal_identifier ⇒ Object
Returns the value of attribute personal_identifier.
-
#picture_url ⇒ Object
Returns the value of attribute picture_url.
-
#ready_for_terminal ⇒ Object
Returns the value of attribute ready_for_terminal.
-
#receipt_url ⇒ Object
Returns the value of attribute receipt_url.
-
#receiver_id ⇒ Object
Returns the value of attribute receiver_id.
-
#responsible_user_email ⇒ Object
Returns the value of attribute responsible_user_email.
-
#return_url ⇒ Object
Returns the value of attribute return_url.
-
#send_email ⇒ Object
Returns the value of attribute send_email.
-
#send_reminders ⇒ Object
Returns the value of attribute send_reminders.
-
#simplified_transfer_url ⇒ Object
Returns the value of attribute simplified_transfer_url.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_detail ⇒ Object
Returns the value of attribute status_detail.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
-
#transfer_url ⇒ Object
Returns the value of attribute transfer_url.
-
#webpay_url ⇒ Object
Returns the value of attribute webpay_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 = {}) ⇒ PaymentsResponse
constructor
A new instance of PaymentsResponse.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ PaymentsResponse
Returns a new instance of PaymentsResponse.
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 175 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 if attributes[:'notification_token'] self.notification_token = attributes[:'notification_token'] end if attributes[:'receiver_id'] self.receiver_id = attributes[:'receiver_id'] end if attributes[:'conciliation_date'] self.conciliation_date = attributes[:'conciliation_date'] end if attributes[:'subject'] self.subject = attributes[:'subject'] end if attributes[:'amount'] self.amount = attributes[:'amount'] end if attributes[:'currency'] self.currency = attributes[:'currency'] end if attributes[:'status'] self.status = attributes[:'status'] end if attributes[:'status_detail'] self.status_detail = attributes[:'status_detail'] end if attributes[:'body'] self.body = attributes[:'body'] end if attributes[:'picture_url'] self.picture_url = attributes[:'picture_url'] end if attributes[:'receipt_url'] self.receipt_url = attributes[:'receipt_url'] end if attributes[:'return_url'] self.return_url = attributes[:'return_url'] end if attributes[:'cancel_url'] self.cancel_url = attributes[:'cancel_url'] end if attributes[:'notify_url'] self.notify_url = attributes[:'notify_url'] end if attributes[:'notify_api_version'] self.notify_api_version = attributes[:'notify_api_version'] end if attributes[:'expires_date'] self.expires_date = attributes[:'expires_date'] end if attributes[:'attachment_urls'] if (value = attributes[:'attachment_urls']).is_a?(Array) self. = value end end if attributes[:'bank'] self.bank = attributes[:'bank'] end if attributes[:'bank_id'] self.bank_id = attributes[:'bank_id'] end if attributes[:'payer_name'] self.payer_name = attributes[:'payer_name'] end if attributes[:'payer_email'] self.payer_email = attributes[:'payer_email'] end if attributes[:'personal_identifier'] self.personal_identifier = attributes[:'personal_identifier'] end if attributes[:'bank_account_number'] self.bank_account_number = attributes[:'bank_account_number'] end if attributes[:'out_of_date_conciliation'] self.out_of_date_conciliation = attributes[:'out_of_date_conciliation'] end if attributes[:'transaction_id'] self.transaction_id = attributes[:'transaction_id'] end if attributes[:'custom'] self.custom = attributes[:'custom'] end if attributes[:'responsible_user_email'] self.responsible_user_email = attributes[:'responsible_user_email'] end if attributes[:'send_reminders'] self.send_reminders = attributes[:'send_reminders'] end if attributes[:'send_email'] self.send_email = attributes[:'send_email'] end if attributes[:'payment_method'] self.payment_method = attributes[:'payment_method'] end end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def amount @amount end |
#app_url ⇒ Object
Returns the value of attribute app_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def app_url @app_url end |
#attachment_urls ⇒ Object
Returns the value of attribute attachment_urls.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def @attachment_urls end |
#bank ⇒ Object
Returns the value of attribute bank.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def bank @bank end |
#bank_account_number ⇒ Object
Returns the value of attribute bank_account_number.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def bank_account_number @bank_account_number end |
#bank_id ⇒ Object
Returns the value of attribute bank_id.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def bank_id @bank_id end |
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def body @body end |
#cancel_url ⇒ Object
Returns the value of attribute cancel_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def cancel_url @cancel_url end |
#conciliation_date ⇒ Object
Returns the value of attribute conciliation_date.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def conciliation_date @conciliation_date end |
#currency ⇒ Object
Returns the value of attribute currency.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def currency @currency end |
#custom ⇒ Object
Returns the value of attribute custom.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def custom @custom end |
#expires_date ⇒ Object
Returns the value of attribute expires_date.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def expires_date @expires_date end |
#hites_url ⇒ Object
Returns the value of attribute hites_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def hites_url @hites_url end |
#notification_token ⇒ Object
Returns the value of attribute notification_token.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def notification_token @notification_token end |
#notify_api_version ⇒ Object
Returns the value of attribute notify_api_version.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def notify_api_version @notify_api_version end |
#notify_url ⇒ Object
Returns the value of attribute notify_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def notify_url @notify_url end |
#out_of_date_conciliation ⇒ Object
Returns the value of attribute out_of_date_conciliation.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def out_of_date_conciliation @out_of_date_conciliation end |
#payer_email ⇒ Object
Returns the value of attribute payer_email.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def payer_email @payer_email end |
#payer_name ⇒ Object
Returns the value of attribute payer_name.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def payer_name @payer_name end |
#payme_url ⇒ Object
Returns the value of attribute payme_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def payme_url @payme_url end |
#payment_id ⇒ Object
Returns the value of attribute payment_id.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def payment_id @payment_id end |
#payment_method ⇒ Object
Returns the value of attribute payment_method.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def payment_method @payment_method end |
#payment_url ⇒ Object
Returns the value of attribute payment_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def payment_url @payment_url end |
#personal_identifier ⇒ Object
Returns the value of attribute personal_identifier.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def personal_identifier @personal_identifier end |
#picture_url ⇒ Object
Returns the value of attribute picture_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def picture_url @picture_url end |
#ready_for_terminal ⇒ Object
Returns the value of attribute ready_for_terminal.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def ready_for_terminal @ready_for_terminal end |
#receipt_url ⇒ Object
Returns the value of attribute receipt_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def receipt_url @receipt_url end |
#receiver_id ⇒ Object
Returns the value of attribute receiver_id.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def receiver_id @receiver_id end |
#responsible_user_email ⇒ Object
Returns the value of attribute responsible_user_email.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def responsible_user_email @responsible_user_email end |
#return_url ⇒ Object
Returns the value of attribute return_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def return_url @return_url end |
#send_email ⇒ Object
Returns the value of attribute send_email.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def send_email @send_email end |
#send_reminders ⇒ Object
Returns the value of attribute send_reminders.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def send_reminders @send_reminders end |
#simplified_transfer_url ⇒ Object
Returns the value of attribute simplified_transfer_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def simplified_transfer_url @simplified_transfer_url end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def status @status end |
#status_detail ⇒ Object
Returns the value of attribute status_detail.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def status_detail @status_detail end |
#subject ⇒ Object
Returns the value of attribute subject.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def subject @subject end |
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def transaction_id @transaction_id end |
#transfer_url ⇒ Object
Returns the value of attribute transfer_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def transfer_url @transfer_url end |
#webpay_url ⇒ Object
Returns the value of attribute webpay_url.
4 5 6 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 4 def webpay_url @webpay_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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/khipu-api-client/models/payments_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 con Webpay :'webpay_url' => :'webpay_url', # URL de pago con Hites :'hites_url' => :'hites_url', # URL de pago con 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', # Cadena de caracteres alfanuméricos que identifican unicamente al pago, es el identificador que el servidor de khipu enviará al servidor del comercio cuando notifique que un pago está conciliado :'notification_token' => :'notification_token', # Identificador único de una cuenta de cobro :'receiver_id' => :'receiver_id', # Fecha y hora de conciliación del pago. Formato ISO-8601. Ej: 2017-03-01T13:00:00Z :'conciliation_date' => :'conciliation_date', # Motivo del pago :'subject' => :'subject', # Monto del pago, sin separador de miles y usando '.' como separador de decimales. :'amount' => :'amount', # El código de moneda en formato ISO-4217 :'currency' => :'currency', # Estado del pago, puede ser 'pending' (el pagador aún no comienza a pagar), 'verifying' (se está verificando el pago) o 'done', cuando el pago ya está confirmado :'status' => :'status', # Detalle del estado del pago, 'pending' (el pagadon aún no comienza a pagar), 'normal' (el pago fue verificado y fue cancelado por algún medio de pago estandar), 'marked-paid-by-receiver' (el cobrador marco el cobro como pagado por otro medio), 'rejected-by-payer' (el pagador declaró que no pagará), 'marked-as-abuse' (el pagador declaró que no pagará y que el cobro fue no solicitado) y 'reversed' (el pago fue anulado por el comercio, el dinero fue devuelto al pagador). :'status_detail' => :'status_detail', # Detalle del cobro :'body' => :'body', # URL de cobro :'picture_url' => :'picture_url', # URL del comprobante de pago :'receipt_url' => :'receipt_url', # URL donde se redirige al pagador luego que termina el pago :'return_url' => :'return_url', # URL donde se redirige al pagador luego de que desiste hacer el pago :'cancel_url' => :'cancel_url', # URL del webservice donde se notificará el pago :'notify_url' => :'notify_url', # Versión de la api de notificación :'notify_api_version' => :'notify_api_version', # Fecha de expiración del pago. En formato ISO-8601 :'expires_date' => :'expires_date', # URLs de archivos adjuntos al pago :'attachment_urls' => :'attachment_urls', # Nombre del banco seleccionado por el pagador :'bank' => :'bank', # Identificador del banco seleccionado por el pagador :'bank_id' => :'bank_id', # Nombre del pagador :'payer_name' => :'payer_name', # Correo electrónico del pagador :'payer_email' => :'payer_email', # Identificador personal del pagador :'personal_identifier' => :'personal_identifier', # Número de cuenta bancaria del pagador :'bank_account_number' => :'bank_account_number', # Es 'true' si la conciliación del pago fue hecha luego de la fecha de expiración :'out_of_date_conciliation' => :'out_of_date_conciliation', # Identificador del pago asignado por el cobrador :'transaction_id' => :'transaction_id', # Campo genérico que asigna el cobrador al momento de hacer el pago :'custom' => :'custom', # Correo electrónico de la persona responsable del pago :'responsible_user_email' => :'responsible_user_email', # Es 'true' cuando este es un cobro por correo electrónico y khipu enviará recordatorios :'send_reminders' => :'send_reminders', # Es 'true' cuando khipu enviará el cobro por correo electrónico :'send_email' => :'send_email', # Método de pago usado por el pagador, puede ser 'regular_transfer' (transferencia normal), 'simplified_transfer' (transferencia simplificada) o 'not_available' (para un pago marcado como realizado por otro medio por el cobrador). :'payment_method' => :'payment_method' } end |
.swagger_types ⇒ Object
attribute type
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/khipu-api-client/models/payments_response.rb', line 130 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', :'notification_token' => :'String', :'receiver_id' => :'Integer', :'conciliation_date' => :'DateTime', :'subject' => :'String', :'amount' => :'Float', :'currency' => :'String', :'status' => :'String', :'status_detail' => :'String', :'body' => :'String', :'picture_url' => :'String', :'receipt_url' => :'String', :'return_url' => :'String', :'cancel_url' => :'String', :'notify_url' => :'String', :'notify_api_version' => :'String', :'expires_date' => :'DateTime', :'attachment_urls' => :'Array<String>', :'bank' => :'String', :'bank_id' => :'String', :'payer_name' => :'String', :'payer_email' => :'String', :'personal_identifier' => :'String', :'bank_account_number' => :'String', :'out_of_date_conciliation' => :'BOOLEAN', :'transaction_id' => :'String', :'custom' => :'String', :'responsible_user_email' => :'String', :'send_reminders' => :'BOOLEAN', :'send_email' => :'BOOLEAN', :'payment_method' => :'String' } end |