Class: KillBillClient::Model::Overdue
- Inherits:
-
OverdueAttributes
- Object
- Resource
- OverdueAttributes
- KillBillClient::Model::Overdue
- Defined in:
- lib/killbill_client/models/overdue.rb
Constant Summary collapse
- KILLBILL_API_OVERDUE_PREFIX =
"#{KILLBILL_API_PREFIX}/overdue"
Constants inherited from Resource
Resource::KILLBILL_API_PAGINATION_PREFIX, Resource::KILLBILL_API_PREFIX
Instance Attribute Summary
Attributes inherited from Resource
#clazz, #etag, #response, #session_id, #uri
Class Method Summary collapse
- .get_tenant_overdue_config(format, options = {}) ⇒ Object
- .upload_tenant_overdue_config(format, body, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
- .upload_tenant_overdue_config_xml(overdue_config_xml, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
Instance Method Summary collapse
Methods inherited from Resource
#==, #_to_hash, attribute, create_alias, delete, extract_session_id, from_json, from_response, get, has_many, has_one, #hash, head, #initialize, instantiate_record_from_json, post, put, #refresh, require_multi_tenant_options!, #to_hash, #to_json
Constructor Details
This class inherits a constructor from KillBillClient::Model::Resource
Class Method Details
.get_tenant_overdue_config(format, options = {}) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/killbill_client/models/overdue.rb', line 11 def get_tenant_overdue_config(format, = {}) (, "Retrieving an overdue config is only supported in multi-tenant mode") get KILLBILL_API_OVERDUE_PREFIX, {}, { :head => {'Accept' => "application/#{format}"}, :content_type => "application/#{format}", }.merge() end |
.upload_tenant_overdue_config(format, body, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/killbill_client/models/overdue.rb', line 28 def upload_tenant_overdue_config(format, body, user = nil, reason = nil, comment = nil, = {}) (, "Uploading an overdue config is only supported in multi-tenant mode") post KILLBILL_API_OVERDUE_PREFIX, body, { }, { :head => {'Accept' => "application/#{format}"}, :content_type => "application/#{format}", :user => user, :reason => reason, :comment => comment, }.merge() get_tenant_overdue_config(format, ) end |
.upload_tenant_overdue_config_xml(overdue_config_xml, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
23 24 25 |
# File 'lib/killbill_client/models/overdue.rb', line 23 def upload_tenant_overdue_config_xml(overdue_config_xml, user = nil, reason = nil, comment = nil, = {}) upload_tenant_overdue_config('xml', overdue_config_xml, user, reason, comment, ) end |
Instance Method Details
#upload_tenant_overdue_config_json(user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
48 49 50 |
# File 'lib/killbill_client/models/overdue.rb', line 48 def upload_tenant_overdue_config_json(user = nil, reason = nil, comment = nil, = {}) self.class.upload_tenant_overdue_config('json', to_json, user, reason, comment, ) end |