Sha256: 88cc06ec88081c44c043b8363f64e766a0cd1e34408852d3e8b87c04638fb52d
Contents?: true
Size: 484 Bytes
Versions: 1
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true module ErpIntegration # The `Order` class exposes available ERP Order operations # assigning them to the proper adapter class Order < Resource attr_accessor :id, :number # Allows cancelling the entire sales order. # @param id [Integer|String] The ID of the to be cancelled order. # @return [boolean] Whether the sales order was cancelled successfully or not. def self.cancel(id) adapter.new.cancel(id) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_integration-0.2.0 | lib/erp_integration/order.rb |