Class: Paystackapi::PaystackSubscription

Inherits:
Object
  • Object
show all
Defined in:
lib/paystackapi.rb

Class Method Summary collapse

Class Method Details

.create(body) ⇒ Object



60
61
62
# File 'lib/paystackapi.rb', line 60

def self.create(body)
	Transaction.create_subscription(body)
end

.disableObject



69
70
71
# File 'lib/paystackapi.rb', line 69

def self.disable
	Transaction.disable_subscription
end

.enableObject



72
73
74
# File 'lib/paystackapi.rb', line 72

def self.enable
	Transaction.enable_subscription
end

.listObject



63
64
65
# File 'lib/paystackapi.rb', line 63

def self.list
	Transaction.list_subscription
end

.list_single(body) ⇒ Object



66
67
68
# File 'lib/paystackapi.rb', line 66

def self.list_single(body)
	Transaction.list_single_subscription(body)
end