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"
Class Method Summary collapse
- .get_tenant_overdue_config_json(options = {}) ⇒ Object
- .get_tenant_overdue_config_xml(options = {}) ⇒ Object
- .upload_tenant_overdue_config_json(body, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
- .upload_tenant_overdue_config_xml(body, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
Class Method Details
.get_tenant_overdue_config_json(options = {}) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/killbill_client/models/overdue.rb', line 22 def get_tenant_overdue_config_json( = {}) (, "Retrieving an overdue config is only supported in multi-tenant mode") get KILLBILL_API_OVERDUE_PREFIX, {}, { :head => {'Accept' => "application/json"} }.merge() end |
.get_tenant_overdue_config_xml(options = {}) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/killbill_client/models/overdue.rb', line 11 def get_tenant_overdue_config_xml( = {}) (, "Retrieving an overdue config is only supported in multi-tenant mode") get "#{KILLBILL_API_OVERDUE_PREFIX}/xml", {}, { :head => {'Accept' => "text/xml"} }.merge() end |
.upload_tenant_overdue_config_json(body, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/killbill_client/models/overdue.rb', line 51 def upload_tenant_overdue_config_json(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/json'}, :content_type => 'application/json', :user => user, :reason => reason, :comment => comment, }.merge() get_tenant_overdue_config_json() end |
.upload_tenant_overdue_config_xml(body, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/killbill_client/models/overdue.rb', line 33 def upload_tenant_overdue_config_xml(body, user = nil, reason = nil, comment = nil, = {}) (, "Uploading an overdue config is only supported in multi-tenant mode") post "#{KILLBILL_API_OVERDUE_PREFIX}/xml", body, { }, { :head => {'Accept' => 'text/xml'}, :content_type => 'text/xml', :user => user, :reason => reason, :comment => comment, }.merge() get_tenant_overdue_config_xml() end |