Sha256: 4b44e6e28764a1edc4ed1b9b0827b0680642a2a3f1184e8ce18390be6550cefb
Contents?: true
Size: 545 Bytes
Versions: 10
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: false require 'cgi' 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
Version data entries
10 entries across 10 versions & 1 rubygems