Class: Wepay::Api::SubscriptionPlan

Inherits:
Base
  • Object
show all
Defined in:
lib/wepay/api/subscription_plan.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Wepay::Api::Base

Instance Method Details

#create(params) ⇒ Hashie::Mash

Parameters:

  • params (Hash)

    See documentation below

Returns:

  • (Hashie::Mash)


27
28
29
# File 'lib/wepay/api/subscription_plan.rb', line 27

def create(params)
  post 'subscription_plan/create', params
end

#delete(params) ⇒ Hashie::Mash

Parameters:

  • params (Hash)

    See documentation below

Returns:

  • (Hashie::Mash)


36
37
38
# File 'lib/wepay/api/subscription_plan.rb', line 36

def delete(params)
  post 'subscription_plan/delete', params
end

#find(params) ⇒ Hashie::Mash

Parameters:

  • params (Hash)

    See documentation below

Returns:

  • (Hashie::Mash)


18
19
20
# File 'lib/wepay/api/subscription_plan.rb', line 18

def find(params)
  post 'subscription_plan/find', params
end

#get_button(params) ⇒ Hashie::Mash

Parameters:

  • params (Hash)

    See documentation below

Returns:

  • (Hashie::Mash)


45
46
47
# File 'lib/wepay/api/subscription_plan.rb', line 45

def get_button(params)
  post 'subscription_plan/get_button', params
end

#modify(params) ⇒ Hashie::Mash

Parameters:

  • params (Hash)

    See documentation below

Returns:

  • (Hashie::Mash)


54
55
56
# File 'lib/wepay/api/subscription_plan.rb', line 54

def modify(params)
  post 'subscription_plan/modify', params
end

#show(params) ⇒ Hashie::Mash

Parameters:

  • params (Hash)

    See documentation below

Returns:

  • (Hashie::Mash)


9
10
11
# File 'lib/wepay/api/subscription_plan.rb', line 9

def show(params)
  post 'subscription_plan', params
end