Sha256: 0c93395a920a23c2891686e79142777775a2237f54e98a65c29428559826e769

Contents?: true

Size: 435 Bytes

Versions: 7

Compression:

Stored size: 435 Bytes

Contents

module Workarea
  module Paypal
    module Requests
      class CreateWebhook
        attr_accessor :path, :body, :headers, :verb

        def initialize
          @headers = {}
          @body = nil
          @verb = "POST"
          @path = "/v1/notifications/webhooks"
          @headers["Content-Type"] = "application/json"
        end

        def request_body(body)
          @body = body
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
workarea-paypal-3.0.6 lib/workarea/paypal/requests/create_webhook.rb
workarea-paypal-3.0.5 lib/workarea/paypal/requests/create_webhook.rb
workarea-paypal-3.0.4 lib/workarea/paypal/requests/create_webhook.rb
workarea-paypal-3.0.3 lib/workarea/paypal/requests/create_webhook.rb
workarea-paypal-3.0.2 lib/workarea/paypal/requests/create_webhook.rb
workarea-paypal-3.0.1 lib/workarea/paypal/requests/create_webhook.rb
workarea-paypal-3.0.0 lib/workarea/paypal/requests/create_webhook.rb