Class: ChipRails::Billing
- Inherits:
-
Object
- Object
- ChipRails::Billing
- Defined in:
- lib/chip_rails.rb
Class Method Summary collapse
- .add_subscriber(billing_id, subscriber_details) ⇒ Object
- .create(billing_details) ⇒ Object
- .list ⇒ Object
- .list_client(billing_id) ⇒ Object
- .retrieve(billing_id) ⇒ Object
- .retrieve_billing_template_client(billing_id, billing_template_client_id) ⇒ Object
Class Method Details
.add_subscriber(billing_id, subscriber_details) ⇒ Object
116 117 118 |
# File 'lib/chip_rails.rb', line 116 def self.add_subscriber(billing_id, subscriber_details) ChipRails.make_request(:post, "billing_templates/#{billing_id}/add_subscriber/", body: subscriber_details) end |
.create(billing_details) ⇒ Object
104 105 106 |
# File 'lib/chip_rails.rb', line 104 def self.create(billing_details) ChipRails.make_request(:post, 'billing_templates/', body: billing_details) end |
.list ⇒ Object
112 113 114 |
# File 'lib/chip_rails.rb', line 112 def self.list ChipRails.make_request(:get, 'billing_templates/') end |
.list_client(billing_id) ⇒ Object
120 121 122 |
# File 'lib/chip_rails.rb', line 120 def self.list_client(billing_id) ChipRails.make_request(:get, "billing_templates/#{billing_id}/clients/") end |
.retrieve(billing_id) ⇒ Object
108 109 110 |
# File 'lib/chip_rails.rb', line 108 def self.retrieve(billing_id) ChipRails.make_request(:get, "billing_templates/#{billing_id}/") end |
.retrieve_billing_template_client(billing_id, billing_template_client_id) ⇒ Object
124 125 126 |
# File 'lib/chip_rails.rb', line 124 def self.retrieve_billing_template_client(billing_id, billing_template_client_id) ChipRails.make_request(:get, "billing_templates/#{billing_id}/clients/#{billing_template_client_id}/") end |