Sha256: a602664de479ddf29c9e33715a16903646a5a398446b0702151dc40252b89271
Contents?: true
Size: 515 Bytes
Versions: 10
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: false require 'cgi' module PayPalCheckoutSdk module Orders # # Shows details for an order, by ID. # class OrdersGetRequest attr_accessor :path, :body, :headers, :verb def initialize(order_id) @headers = {} @body = nil @verb = "GET" @path = "/v2/checkout/orders/{order_id}?" @path = @path.gsub("{order_id}", CGI.escape(order_id.to_s)) @headers["Content-Type"] = "application/json" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems