Class: KillBillClient::Model::Overdue

Inherits:
OverdueAttributes show all
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

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_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(options = {})

  require_multi_tenant_options!(options, "Retrieving an overdue config is only supported in multi-tenant mode")

  get KILLBILL_API_OVERDUE_PREFIX,
      {},
      {
          :head => {'Accept' => "application/json"}
      }.merge(options)
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(options = {})

  require_multi_tenant_options!(options, "Retrieving an overdue config is only supported in multi-tenant mode")

  get "#{KILLBILL_API_OVERDUE_PREFIX}/xml",
      {},
      {
          :head => {'Accept' => "text/xml"}
      }.merge(options)
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, options = {})

  require_multi_tenant_options!(options, "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(options)
  get_tenant_overdue_config_json(options)
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, options = {})

  require_multi_tenant_options!(options, "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(options)
  get_tenant_overdue_config_xml(options)
end