Class: Razorpay::PaymentLink

Inherits:
Entity
  • Object
show all
Defined in:
lib/razorpay/payment_link.rb

Overview

Payment Links are URLs that you can send to your customers through SMS and email to collect payments from them.

Instance Attribute Summary

Attributes inherited from Entity

#attributes

Class Method Summary collapse

Methods inherited from Entity

#initialize, #method_missing, #respond_to_missing?, #to_json, #with_a_bang

Constructor Details

This class inherits a constructor from Razorpay::Entity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Razorpay::Entity

Class Method Details

.all(options = {}) ⇒ Object



24
25
26
# File 'lib/razorpay/payment_link.rb', line 24

def self.all(options = {})
  request.all options
end

.cancel(id) ⇒ Object



28
29
30
# File 'lib/razorpay/payment_link.rb', line 28

def self.cancel(id)
  request.post "#{id}/cancel"
end

.create(options) ⇒ Object



12
13
14
# File 'lib/razorpay/payment_link.rb', line 12

def self.create(options)
  request.create options
end

.edit(id, options = {}) ⇒ Object



20
21
22
# File 'lib/razorpay/payment_link.rb', line 20

def self.edit(id, options = {})
  request.patch id, options
end

.fetch(id) ⇒ Object



16
17
18
# File 'lib/razorpay/payment_link.rb', line 16

def self.fetch(id)
  request.fetch id
end

.notify_by(id, medium) ⇒ Object



32
33
34
# File 'lib/razorpay/payment_link.rb', line 32

def self.notify_by(id,medium)
  request.post "#{id}/notify_by/#{medium}"
end

.requestObject



8
9
10
# File 'lib/razorpay/payment_link.rb', line 8

def self.request
  Razorpay::Request.new('payment_links')
end