Sha256: 733302b921c01bf52f68e73a2494e266a0e187a5009032dc3ed7b05ca8e69783

Contents?: true

Size: 403 Bytes

Versions: 7

Compression:

Stored size: 403 Bytes

Contents

module Conekta
  class TaxLine < Resource
    include Conekta::Operations::Delete
    include Conekta::Operations::Update
    include Conekta::Operations::CustomAction

    attr_accessor :description, :amount, :parent_id, :metadata

    def _url
      ensure_id

      "#{self.order._url}#{self.class._url}/#{id}"
    end

    def delete
      self.delete_member('order', 'tax_lines')
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
conekta-2.6.0 lib/conekta/tax_line.rb
conekta-tiempometa-2.4.2 lib/conekta/tax_line.rb
conekta-2.5.0 lib/conekta/tax_line.rb
conekta-2.4.2 lib/conekta/tax_line.rb
conekta-2.4.1 lib/conekta/tax_line.rb
conekta-2.4.0 lib/conekta/tax_line.rb
conekta-2.3.0 lib/conekta/tax_line.rb