Sha256: 7befe94c59ff18f682297577407acb8bf37ebbfbe38576ed675cfba30e6a33f4

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

module FakeShopify
  class StubApp < Sinatra::Base
    # Payouts API Endpoints
    get "/admin/api/:api_version/shopify_payments/payouts.json" do
      json_response 200, fixture(params[:api_version], "shopify_payments/payouts/index")
    end
    # Return a list of all payouts
    get "/admin/api/:api_version/shopify_payments/payouts/:payout_id.json" do
      json_response 200, fixture(params[:api_version], "shopify_payments/payouts/show")
    end
    # Return a single payout

    # Dispute API Endpoints
    get "/admin/api/:api_version/shopify_payments/disputes.json" do
      json_response 200, fixture(params[:api_version], "shopify_payments/disputes/index")
    end
    # Return a list of all disputes
    get "/admin/api/:api_version/shopify_payments/disputes/:dispute_id.json" do
      json_response 200, fixture(params[:api_version], "shopify_payments/disputes/show")
    end
    # Return a single dispute

    # Balance API Endpoints
    get "/admin/api/:api_version/shopify_payments/balance.json" do
      json_response 200, fixture(params[:api_version], "shopify_payments/balance/show")
    end
    # Return the current balance

    # Transactions API Endpoints
    get "/admin/api/:api_version/shopify_payments/balance/transactions.json" do
      json_response 200, fixture(params[:api_version], "shopify_payments/transactions/index")
    end
    # Return a list of all balance transactions
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fake_shopify-0.2.0 lib/fake_shopify/routes/shopify_payments.rb
fake_shopify-0.1.1 lib/fake_shopify/routes/shopify_payments.rb