Sha256: c498dfcf8a6a34d62f47922ca10572152b62da45f6a94439424188c0b55928a5

Contents?: true

Size: 685 Bytes

Versions: 7

Compression:

Stored size: 685 Bytes

Contents

# frozen_string_literal: true

module PaypalAPI
  #
  # Refunds APIs `/v2/payments/refunds`
  #
  # @see https://developer.paypal.com/docs/api/payments/v2
  #
  class Refunds < APICollection
    #
    # Common class and instance methods
    #
    module APIs
      #
      # Show refund details
      #
      # @see https://developer.paypal.com/docs/api/payments/v2/#refunds_get
      #
      # @param refund_id [String]
      # @macro request
      #
      def show(refund_id, query: nil, body: nil, headers: nil)
        client.get("/v2/payments/refunds/#{encode(refund_id)}", query: query, body: body, headers: headers)
      end
    end

    include APIs
    extend APIs
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
paypal-rest-api-0.3.1 lib/paypal-api/api_collections/refunds.rb
paypal-rest-api-0.3.0 lib/paypal-api/api_collections/refunds.rb
paypal-rest-api-0.2.1 lib/paypal-api/api_collections/refunds.rb
paypal-rest-api-0.2.0 lib/paypal-api/api_collections/refunds.rb
paypal-rest-api-0.1.1 lib/paypal-api/api_collections/refunds.rb
paypal-rest-api-0.1.0 lib/paypal-api/api_collections/refunds.rb
paypal-rest-api-0.0.4 lib/paypal-api/api_collections/refunds.rb