Sha256: f9c7a2afd35fb6147ebd75abb47219cd05a36e4756088eda5c0e143fe73ed789
Contents?: true
Size: 1.15 KB
Versions: 11
Compression:
Stored size: 1.15 KB
Contents
# frozen_string_literal: true # frozen_string_literal :true # This module was automatically generated from paypal_checkout_sdk 1.0.1 require 'cgi' module SolidusPaypalCommercePlatform 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 end
Version data entries
11 entries across 11 versions & 1 rubygems