Sha256: 744419c88fc9b48551eee7741d978b1a663c63dfb0b4494ccd800d2136eed14c

Contents?: true

Size: 622 Bytes

Versions: 10

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: false

require 'cgi'

module SolidusPaypalCommercePlatform
  module PayPalCheckoutSdk
    module Orders
      class OrdersPatchRequest
        attr_accessor :path, :body, :headers, :verb

        def initialize(order_id)
          @headers = {}
          @body = nil
          @verb = "PATCH"
          @path = "/v2/checkout/orders/{order_id}?"

          @path = @path.gsub("{order_id}", CGI.escape(order_id.to_s))
          @headers["Content-Type"] = "application/json"
        end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
solidus_paypal_commerce_platform-1.0.3 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb
solidus_paypal_commerce_platform-1.0.2 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb
solidus_paypal_commerce_platform-0.7.1 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb
solidus_paypal_commerce_platform-1.0.1 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb
solidus_paypal_commerce_platform-1.0.0 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb
solidus_paypal_commerce_platform-0.7.0 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb
solidus_paypal_commerce_platform-1.0.0.beta3 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb
solidus_paypal_commerce_platform-1.0.0.beta2 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb
solidus_paypal_commerce_platform-1.0.0.beta1 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb
solidus_paypal_commerce_platform-0.6.0 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_patch_request.rb