class Invoiced::PaymentPlan
Constants
- OBJECT_NAME
Public Class Methods
new(client, id=nil, values={})
click to toggle source
Calls superclass method
Invoiced::Object::new
# File lib/invoiced/payment_plan.rb, line 7 def initialize(client, id=nil, values={}) super @endpoint = '/payment_plan' end
Public Instance Methods
cancel()
click to toggle source
# File lib/invoiced/payment_plan.rb, line 24 def cancel delete end
create(params={}, opts={})
click to toggle source
# File lib/invoiced/payment_plan.rb, line 12 def create(params={}, opts={}) response = @client.request(:put, self.endpoint(), params, opts) Util.convert_to_object(self, response[:body]) end
retrieve(params={})
click to toggle source
# File lib/invoiced/payment_plan.rb, line 18 def retrieve(params={}) response = @client.request(:get, self.endpoint(), params) Util.convert_to_object(self, response[:body]) end