-
Notifications
You must be signed in to change notification settings - Fork 2
/
subscription_plan.rb
59 lines (54 loc) · 1.79 KB
/
subscription_plan.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module Wepay
module Api
class SubscriptionPlan < Base
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/subscription_plan](https://www.wepay.com/developer/reference/subscription_plan#lookup)
#
def show(params)
post 'subscription_plan', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/subscription_plan/find](https://www.wepay.com/developer/reference/subscription_plan#find)
#
def find(params)
post 'subscription_plan/find', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/subscription_plan/create](https://www.wepay.com/developer/reference/subscription_plan#create)
#
def create(params)
post 'subscription_plan/create', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/subscription_plan/delete](https://www.wepay.com/developer/reference/subscription_plan#delete)
#
def delete(params)
post 'subscription_plan/delete', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/subscription_plan/get_button](https://www.wepay.com/developer/reference/subscription_plan#get_button)
#
def get_button(params)
post 'subscription_plan/get_button', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/subscription_plan/modify](https://www.wepay.com/developer/reference/subscription_plan#modify)
#
def modify(params)
post 'subscription_plan/modify', params
end
end
end
end