Sha256: e6f52c768f2a63fe376431d985e418cdb985dbdf9987d81d93081130b468156f
Contents?: true
Size: 546 Bytes
Versions: 9
Compression:
Stored size: 546 Bytes
Contents
module Conekta class PayoutMethod < Resource include Conekta::Operations::Delete include Conekta::Operations::Update include Conekta::Operations::CustomAction def url raise Error.new( I18n.t('error.resource.id', { resource: self.class.class_name, locale: :en }), I18n.t('error.resource.id_purchaser', { locale: Conekta.locale.to_sym })) if (id.nil? || id.empty?) self.payee.url + self.class.url + "/" + id end def delete self.delete_member('payee','payout_methods') end end end
Version data entries
9 entries across 9 versions & 1 rubygems