Sha256: d4a24d46e5f46a2e9de6792efc26a455cd39da4830a8279ce208f9c60a396618
Contents?: true
Size: 1.14 KB
Versions: 11
Compression:
Stored size: 1.14 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 Orders # # Captures a payment for an order. # class OrdersCaptureRequest attr_accessor :path, :body, :headers, :verb def initialize(order_id) @headers = {} @body = nil @verb = "POST" @path = "/v2/checkout/orders/{order_id}/capture?" @path = @path.gsub("{order_id}", CGI.escape(order_id.to_s)) @headers["Content-Type"] = "application/json" end def pay_pal_client_metadata_id(pay_pal_client_metadata_id) @headers["PayPal-Client-Metadata-Id"] = pay_pal_client_metadata_id 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(order_action_request) @body = order_action_request end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems