Sha256: 561a1b19755b50035923298fb7aab98daa6ddb14f610fa5827ce0d6895f21c2b

Contents?: true

Size: 821 Bytes

Versions: 6

Compression:

Stored size: 821 Bytes

Contents

require 'gecko/record/base'

module Gecko
  module Record
    class Webhook < Base
      EVENTS = %w[
        address.create
        address.update
        company.create
        company.update
        contact.create
        contact.update
        fulfillment.create
        fulfillment.fulfilled
        fulfillment_return.create
        image.create
        invoice.create
        location.create
        location.update
        order.create
        order.finalized
        order.fulfilled
        payment.create
        procurement.create
        product.create
        purchase_order.create
        stock_adjustment.create
        stock_transfer.create
        variant.create
      ]

      attribute :address, String
      attribute :event,   String
    end

    class WebhookAdapter < BaseAdapter
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gecko-ruby-0.9.1 lib/gecko/record/webhook.rb
gecko-ruby-0.9.0 lib/gecko/record/webhook.rb
gecko-ruby-0.8.0 lib/gecko/record/webhook.rb
gecko-ruby-0.7.1 lib/gecko/record/webhook.rb
gecko-ruby-0.7.0 lib/gecko/record/webhook.rb
gecko-ruby-0.6.0 lib/gecko/record/webhook.rb