Sha256: fea076057817a8f5d42b85c6c366baebb680db284329fcb51f351f888fb76cd4
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: false # This class was generated on Mon, 27 Aug 2018 13:52:18 PDT by version 0.1.0-dev+904328-dirty of Braintree SDK Generator require 'cgi' module PayPalCheckoutSdk module Payments # # Refunds a captured payment, by ID. For a full refund, include # an empty payload in the JSON request body. For a partial refund, # include an <code>amount</code> object in the JSON request body. # class CapturesRefundRequest attr_accessor :path, :body, :headers, :verb def initialize(capture_id) @headers = {} @body = nil @verb = "POST" @path = "/v2/payments/captures/{capture_id}/refund?" @path = @path.gsub("{capture_id}", CGI.escape(capture_id.to_s)) @headers["Content-Type"] = "application/json" end def pay_pal_request_id(pay_pal_request_id) @headers["PayPal-Request-Id"] = pay_pal_request_id end def prefer(prefer) @headers["Prefer"] = prefer end def request_body(refund_request) @body = refund_request end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_paypal_commerce_platform-0.5.0 | lib/paypal/paypal_checkout_sdk/payments/captures_refund_request.rb |