Sha256: b030cc2ce2a8bcbecc4ef217be8a3c0e9415cd248fc99469d5af3715b2dd31ef

Contents?: true

Size: 1005 Bytes

Versions: 11

Compression:

Stored size: 1005 Bytes

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
      #
      # Validates a payment method and checks it for contingencies.
      #
      class OrdersValidateRequest
        attr_accessor :path, :body, :headers, :verb

        def initialize(order_id)
          @headers = {}
          @body = nil
          @verb = "POST"
          @path = "/v2/checkout/orders/{order_id}/validate-payment-method?"

          @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 request_body(order_action_request)
          @body = order_action_request
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solidus_paypal_commerce_platform-1.0.3 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb
solidus_paypal_commerce_platform-1.0.2 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb
solidus_paypal_commerce_platform-0.7.1 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb
solidus_paypal_commerce_platform-1.0.1 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb
solidus_paypal_commerce_platform-1.0.0 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb
solidus_paypal_commerce_platform-0.7.0 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb
solidus_paypal_commerce_platform-1.0.0.beta3 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb
solidus_paypal_commerce_platform-1.0.0.beta2 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb
solidus_paypal_commerce_platform-1.0.0.beta1 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb
solidus_paypal_commerce_platform-0.6.0 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb
solidus_paypal_commerce_platform-0.5.0 lib/solidus_paypal_commerce_platform/paypal_checkout_sdk/orders/orders_validate_request.rb