Class: Freshbooks::API::Recurring

Inherits:
Client
  • Object
show all
Defined in:
lib/freshbooks/api/recurring.rb

Overview

Instance Attribute Summary

Attributes inherited from Client

#api_url, #token

Instance Method Summary collapse

Methods inherited from Client

#call, #hash_to_raw_xml, #initialize, #options, #parse, #post, #to_request, #underscore

Methods included from CRUD

#create, #delete, #get, #list, #update

Methods included from Methods

#callbacks, #categories, #clients, #contractors, #currencies, #default_terms, #email_templates, #estimates, #expenses, #gateways, #invoices, #items, #languages, #payments, #projects, #receipts, #recurring, #reports, #staff, #systems, #tasks, #taxes, #time_entries

Constructor Details

This class inherits a constructor from Freshbooks::Client

Instance Method Details

#add_lines(params = {}) ⇒ Object Also known as: add_line

Add a new line/lines to an existing recurring profile.


8
9
10
# File 'lib/freshbooks/api/recurring.rb', line 8

def add_lines(params = {})
  call('recurring.lines.add', params)
end

#delete_lines(params = {}) ⇒ Object Also known as: delete_line

Deletes a single line from an existing recurring profile.


14
15
16
# File 'lib/freshbooks/api/recurring.rb', line 14

def delete_lines(params = {})
  call('recurring.lines.delete', params)
end

#update_lines(params = {}) ⇒ Object Also known as: update_line

Updates an existing line/lines on an existing recurring profile.


20
21
22
# File 'lib/freshbooks/api/recurring.rb', line 20

def update_lines(params = {})
  call('recurring.lines.update', params)
end