Sha256: 3d81fa4ff7244de282fe5e1f145e51db0427a308f32716b35e9ab5534083f6b9

Contents?: true

Size: 859 Bytes

Versions: 7

Compression:

Stored size: 859 Bytes

Contents

# frozen_string_literal: true

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
      ].freeze

      attribute :address, String
      attribute :event,   String
    end

    class WebhookAdapter < BaseAdapter
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gecko-ruby-0.12.3 lib/gecko/record/webhook.rb
gecko-ruby-0.12.2 lib/gecko/record/webhook.rb
gecko-ruby-0.12.1 lib/gecko/record/webhook.rb
gecko-ruby-0.12.0 lib/gecko/record/webhook.rb
gecko-ruby-0.11.1 lib/gecko/record/webhook.rb
gecko-ruby-0.11.0 lib/gecko/record/webhook.rb
gecko-ruby-0.10.0 lib/gecko/record/webhook.rb