Sha256: 53a0cd0189eb61e3f882d09eff95299310111c2c3e55cb61fb09982b4282f484
Contents?: true
Size: 491 Bytes
Versions: 7
Compression:
Stored size: 491 Bytes
Contents
module Conekta class LineItem < Resource include Conekta::Operations::Delete include Conekta::Operations::Update include Conekta::Operations::CustomAction attr_accessor :name, :description, :unit_price, :quantity, :sku, :shippable, :tags, :brand, :type, :parent_id def _url ensure_id "#{self.order._url}#{self.class._url}/#{id}" end def delete self.delete_member('order','line_items') end end end
Version data entries
7 entries across 7 versions & 2 rubygems