lib/cobrato/entities/payer.rb
module Cobrato
module Entities
class Payer < Base
attribute :id, Integer
attribute :national_identifier_type, String
attribute :national_identifier, String
attribute :name, String
attribute :zipcode, String
attribute :city, String
attribute :state, String
attribute :neighbourhood, String
attribute :number, String
attribute :complement, String
attribute :street, String
%i[national_identifier name].each do |method|
define_method method do |*args|
puts "Warning: '#{self.class.name}##{method}' is deprecated. See API docs for more info."
super(*args)
end
end
end
end
end