Sha256: aaa3227912b6eba30f9e955539efd69cc0430f6118e717f299d4c2fe13dca3fa
Contents?: true
Size: 831 Bytes
Versions: 5
Compression:
Stored size: 831 Bytes
Contents
module Conekta class PayoutMethod < Resource include Conekta::Operations::Delete include Conekta::Operations::Update include Conekta::Operations::CustomAction def _url if (id.nil? || id.to_s.empty?) exception = Error.new({ "message" => I18n.t('error.resource.id', { resource: self.class.class_name, locale: :en }), "message_to_purchaser" => I18n.t('error.resource.id_purchaser', { locale: Conekta.locale.to_sym }) }) if Conekta.api_version == "2.0.0" error_list = Conekta::ErrorList.new error_list.details << exception exception = error_list end raise exception end self.payee._url + self.class._url + "/" + id end def delete self.delete_member('payee','payout_methods') end end end
Version data entries
5 entries across 5 versions & 1 rubygems