Sha256: 368717d8ba0073a0ce8885c511d6a24d12fc81fd58c7245efcf9b3fa75df1935
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
conekta-1.0.0 | lib/conekta/payout_method.rb |
conekta-0.5.8 | lib/conekta/payout_method.rb |
conekta-0.5.7 | lib/conekta/payout_method.rb |