Sha256: 8c52f199c905b8c53255d85d3f31557cdd80bfb7bd9b512c3cc56baa6155d533

Contents?: true

Size: 630 Bytes

Versions: 42

Compression:

Stored size: 630 Bytes

Contents

# frozen_string_literal: true

module ErpIntegration
  # The `ErpIntegration::Webhook` exposes an uniformed API for interaction with
  # third-party ERP vendors.
  class Webhook < Resource
    attr_accessor :id, :active, :attachments, :create_date, :create_uid, :event,
                  :messages, :metadata, :metafields, :private_notes, :public_notes,
                  :rec_blurb, :rec_name, :recent_deliveries, :secret, :url, :write_date,
                  :write_uid

    class << self
      def archive(id)
        adapter.archive(id)
      end

      def restore(id)
        adapter.restore(id)
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
erp_integration-0.57.0 lib/erp_integration/webhook.rb
erp_integration-0.56.0 lib/erp_integration/webhook.rb
erp_integration-0.55.0 lib/erp_integration/webhook.rb
erp_integration-0.54.0 lib/erp_integration/webhook.rb
erp_integration-0.53.1 lib/erp_integration/webhook.rb
erp_integration-0.53.0 lib/erp_integration/webhook.rb
erp_integration-0.52.0 lib/erp_integration/webhook.rb
erp_integration-0.50.0 lib/erp_integration/webhook.rb
erp_integration-0.49.0 lib/erp_integration/webhook.rb
erp_integration-0.48.0 lib/erp_integration/webhook.rb
erp_integration-0.43.0 lib/erp_integration/webhook.rb
erp_integration-0.42.0 lib/erp_integration/webhook.rb
erp_integration-0.41.0 lib/erp_integration/webhook.rb
erp_integration-0.40.0 lib/erp_integration/webhook.rb
erp_integration-0.39.0 lib/erp_integration/webhook.rb
erp_integration-0.38.0 lib/erp_integration/webhook.rb
erp_integration-0.37.0 lib/erp_integration/webhook.rb
erp_integration-0.36.1 lib/erp_integration/webhook.rb
erp_integration-0.36.0 lib/erp_integration/webhook.rb
erp_integration-0.35.0 lib/erp_integration/webhook.rb