Class: CorePro::Statement

Inherits:
Models::ModelBase show all
Defined in:
lib/corepro/statement.rb

Instance Attribute Summary collapse

Attributes inherited from Models::ModelBase

#requestId

Class Method Summary collapse

Methods inherited from Models::ModelBase

escape, #to_s

Methods inherited from Models::JsonBase

#from_json!, #is_hash?, #to_hash, #to_json

Instance Attribute Details

#customerIdObject

Returns the value of attribute customerId.



8
9
10
# File 'lib/corepro/statement.rb', line 8

def customerId
  @customerId
end

#monthObject

Returns the value of attribute month.



10
11
12
# File 'lib/corepro/statement.rb', line 10

def month
  @month
end

#statementIdObject

Returns the value of attribute statementId.



7
8
9
# File 'lib/corepro/statement.rb', line 7

def statementId
  @statementId
end

#typeObject

Returns the value of attribute type.



9
10
11
# File 'lib/corepro/statement.rb', line 9

def type
  @type
end

#yearObject

Returns the value of attribute year.



11
12
13
# File 'lib/corepro/statement.rb', line 11

def year
  @year
end

Class Method Details

.download(customerId, statementId, connection = nil, loggingObject = nil) ⇒ Object



21
22
23
# File 'lib/corepro/statement.rb', line 21

def self.download(customerId, statementId, connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/statement/download/#{customerId}/#{statementId}", CorePro::Models::FileContent, connection, loggingObject)
end

.get(customerId, statementId, connection = nil, loggingObject = nil) ⇒ Object



17
18
19
# File 'lib/corepro/statement.rb', line 17

def self.get(customerId, statementId, connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/statement/get/#{customerId}/#{statementId}", Statement, connection, loggingObject)
end

.list(customerId, connection = nil, loggingObject = nil) ⇒ Object



13
14
15
# File 'lib/corepro/statement.rb', line 13

def self.list(customerId, connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/statement/list/#{customerId}", Statement, connection, loggingObject)
end