Sha256: 5fdc889cb80b4e049930034efd3fd6c9adeaf4afb89494d7afc4b0e69370fd0b
Contents?: true
Size: 741 Bytes
Versions: 5
Compression:
Stored size: 741 Bytes
Contents
module Conekta class Return < Resource attr_accessor :livemode, :amount, :currency, :charge_id, :reason, :created_at, :parent_id 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.order._url}#{self.class._url}/#{id}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
conekta-2.0.0 | lib/conekta/return.rb |
conekta-1.1.3 | lib/conekta/return.rb |
conekta-1.1.2 | lib/conekta/return.rb |
conekta-1.1.1 | lib/conekta/return.rb |
conekta-1.1.0 | lib/conekta/return.rb |