Class: ChargeBee::UsageFile

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/usage_file.rb

Defined Under Namespace

Classes: UploadDetail

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #respond_to_missing?, #to_s, uri_path

Constructor Details

This class inherits a constructor from ChargeBee::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeBee::Model

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def error_code
  @error_code
end

#error_file_pathObject

Returns the value of attribute error_file_path.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def error_file_path
  @error_file_path
end

#error_file_urlObject

Returns the value of attribute error_file_url.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def error_file_url
  @error_file_url
end

#error_reasonObject

Returns the value of attribute error_reason.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def error_reason
  @error_reason
end

#failed_records_countObject

Returns the value of attribute failed_records_count.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def failed_records_count
  @failed_records_count
end

#file_size_in_bytesObject

Returns the value of attribute file_size_in_bytes.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def file_size_in_bytes
  @file_size_in_bytes
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def id
  @id
end

#mime_typeObject

Returns the value of attribute mime_type.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def mime_type
  @mime_type
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def name
  @name
end

#processed_records_countObject

Returns the value of attribute processed_records_count.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def processed_records_count
  @processed_records_count
end

#processing_completed_atObject

Returns the value of attribute processing_completed_at.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def processing_completed_at
  @processing_completed_at
end

#processing_started_atObject

Returns the value of attribute processing_started_at.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def processing_started_at
  @processing_started_at
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def status
  @status
end

#total_records_countObject

Returns the value of attribute total_records_count.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def total_records_count
  @total_records_count
end

#upload_detailsObject

Returns the value of attribute upload_details.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def upload_details
  @upload_details
end

#uploaded_atObject

Returns the value of attribute uploaded_at.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def uploaded_at
  @uploaded_at
end

#uploaded_byObject

Returns the value of attribute uploaded_by.



8
9
10
# File 'lib/chargebee/models/usage_file.rb', line 8

def uploaded_by
  @uploaded_by
end

Class Method Details

.processing_status(id, env = nil, headers = {}) ⇒ Object



22
23
24
25
26
27
# File 'lib/chargebee/models/usage_file.rb', line 22

def self.processing_status(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("usage_files",id.to_s,"processing_status"), {}, env, headers, "file-ingest", false, jsonKeys, options)
end

.upload_url(params, env = nil, headers = {}) ⇒ Object

OPERATIONS




15
16
17
18
19
20
# File 'lib/chargebee/models/usage_file.rb', line 15

def self.upload_url(params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('post', uri_path("usage_files","upload_url"), params, env, headers, "file-ingest", false, jsonKeys, options)
end