Sha256: bdacd9c8e06fe69fa77c482f7bdb7fa0a2d3fc7e3ad01749aebd8f2d74e01120

Contents?: true

Size: 432 Bytes

Versions: 5

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

module Afterpay
  module API
    module Order
      class Find < Base
        def initialize(params = {})
          @token = params[:token]
        end

        private

        attr_reader :token

        def payload
          {
            action: :get,
            endpoint: endpoint
          }
        end

        def endpoint
          "#{URL}/#{token}"
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
afterpay-0.6.0 lib/afterpay/api/order/find.rb
afterpay-0.5.0 lib/afterpay/api/order/find.rb
afterpay-0.4.0 lib/afterpay/api/order/find.rb
afterpay-0.3.0 lib/afterpay/api/order/find.rb
afterpay-0.2.0 lib/afterpay/api/order/find.rb