Class: KillBillClient::Model::Overdue
- Inherits:
-
OverdueStateAttributes
- Object
- Resource
- OverdueStateAttributes
- 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(options = {}) ⇒ Object
- .upload_tenant_overdue_config(overdue_config_xml, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
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(options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/killbill_client/models/overdue.rb', line 8 def get_tenant_overdue_config( = {}) (, "Retrieving an overdue config is only supported in multi-tenant mode") get KILLBILL_API_OVERDUE_PREFIX, {}, { :head => {'Accept' => 'application/xml'}, }.merge() end |
.upload_tenant_overdue_config(overdue_config_xml, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/killbill_client/models/overdue.rb', line 19 def upload_tenant_overdue_config(overdue_config_xml, user = nil, reason = nil, comment = nil, = {}) (, "Uploading an overdue config is only supported in multi-tenant mode") post KILLBILL_API_OVERDUE_PREFIX, overdue_config_xml, { }, { :head => {'Accept' => 'application/xml'}, :content_type => 'application/xml', :user => user, :reason => reason, :comment => comment, }.merge() get_tenant_overdue_config() end |