class Khipu::PaymentMethodItem

Attributes

id[RW]
logo_url[RW]
name[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# File lib/khipu-api-client/models/payment_method_item.rb, line 6
def self.attribute_map
  {
    
    # Identificador del medio de pago
    :'id' => :'id',
    
    # Nombre del medio de pago
    :'name' => :'name',
    
    # URL del logo sugerido para mostrar
    :'logo_url' => :'logo_url'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/khipu-api-client/models/payment_method_item.rb, line 31
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[:'id']
    self.id = attributes[:'id']
  end
  
  if attributes[:'name']
    self.name = attributes[:'name']
  end
  
  if attributes[:'logo_url']
    self.logo_url = attributes[:'logo_url']
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/khipu-api-client/models/payment_method_item.rb, line 22
def self.swagger_types
  {
    :'id' => :'String',
    :'name' => :'String',
    :'logo_url' => :'String'
    
  }
end