Class: CorePro::BankDocument

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

Instance Attribute Summary collapse

Attributes inherited from Models::ModelBase

#requestId

Class Method Summary collapse

Instance 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

#bankIdObject

Returns the value of attribute bankId.



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

def bankId
  @bankId
end

#cultureObject

Returns the value of attribute culture.



12
13
14
# File 'lib/corepro/bank_document.rb', line 12

def culture
  @culture
end

#customerIdObject

Returns the value of attribute customerId.



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

def customerId
  @customerId
end

#documentIdObject

Returns the value of attribute documentId.



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

def documentId
  @documentId
end

#documentTypeObject

Returns the value of attribute documentType.



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

def documentType
  @documentType
end

#downloadUrlObject

Returns the value of attribute downloadUrl.



15
16
17
# File 'lib/corepro/bank_document.rb', line 15

def downloadUrl
  @downloadUrl
end

#effectiveDateObject

Returns the value of attribute effectiveDate.



16
17
18
# File 'lib/corepro/bank_document.rb', line 16

def effectiveDate
  @effectiveDate
end

#expireDateObject

Returns the value of attribute expireDate.



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

def expireDate
  @expireDate
end

#htmlObject

Returns the value of attribute html.



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

def html
  @html
end

#titleObject

Returns the value of attribute title.



14
15
16
# File 'lib/corepro/bank_document.rb', line 14

def title
  @title
end

Class Method Details

.download(culture, documentId, connection = nil, loggingObject = nil) ⇒ Object



30
31
32
33
34
35
# File 'lib/corepro/bank_document.rb', line 30

def self.download(culture, documentId, connection = nil, loggingObject = nil)
  d = BankDocument.new
  d.culture = culture
  d.documentId = documentId
  d.download connection, loggingObject
end

.list(culture, documentType = nil, connection = nil, loggingObject = nil) ⇒ Object



19
20
21
22
23
24
# File 'lib/corepro/bank_document.rb', line 19

def self.list(culture, documentType = nil, connection = nil, loggingObject = nil)
  d = BankDocument.new
  d.culture = culture
  d.documentType = documentType
  d.list connection, loggingObject
end

Instance Method Details

#download(connection = nil, loggingObject = nil) ⇒ Object



37
38
39
# File 'lib/corepro/bank_document.rb', line 37

def download(connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/bankdocument/download/#{BankDocument.escape(self.culture)}/#{self.documentId}", CorePro::Models::FileContent, connection, loggingObject)
end

#list(connection = nil, loggingObject = nil) ⇒ Object



26
27
28
# File 'lib/corepro/bank_document.rb', line 26

def list(connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/bankdocument/list/#{BankDocument.escape(self.culture)}/#{BankDocument.escape(self.documentType)}", BankDocument, connection, loggingObject)
end