Class: CorePro::BankDocument
- Inherits:
-
Models::ModelBase
- Object
- Models::JsonBase
- Models::ModelBase
- CorePro::BankDocument
- Defined in:
- lib/corepro/bank_document.rb
Instance Attribute Summary collapse
-
#bankId ⇒ Object
Returns the value of attribute bankId.
-
#culture ⇒ Object
Returns the value of attribute culture.
-
#customerId ⇒ Object
Returns the value of attribute customerId.
-
#documentId ⇒ Object
Returns the value of attribute documentId.
-
#documentType ⇒ Object
Returns the value of attribute documentType.
-
#downloadUrl ⇒ Object
Returns the value of attribute downloadUrl.
-
#effectiveDate ⇒ Object
Returns the value of attribute effectiveDate.
-
#expireDate ⇒ Object
Returns the value of attribute expireDate.
-
#html ⇒ Object
Returns the value of attribute html.
-
#title ⇒ Object
Returns the value of attribute title.
Attributes inherited from Models::ModelBase
Class Method Summary collapse
- .download(culture, documentId, connection = nil, loggingObject = nil) ⇒ Object
- .list(culture, documentType = nil, connection = nil, loggingObject = nil) ⇒ Object
Instance Method Summary collapse
- #download(connection = nil, loggingObject = nil) ⇒ Object
- #list(connection = nil, loggingObject = nil) ⇒ Object
Methods inherited from Models::ModelBase
Methods inherited from Models::JsonBase
#from_json!, #is_hash?, #to_hash, #to_json
Instance Attribute Details
#bankId ⇒ Object
Returns the value of attribute bankId.
8 9 10 |
# File 'lib/corepro/bank_document.rb', line 8 def bankId @bankId end |
#culture ⇒ Object
Returns the value of attribute culture.
12 13 14 |
# File 'lib/corepro/bank_document.rb', line 12 def culture @culture end |
#customerId ⇒ Object
Returns the value of attribute customerId.
9 10 11 |
# File 'lib/corepro/bank_document.rb', line 9 def customerId @customerId end |
#documentId ⇒ Object
Returns the value of attribute documentId.
10 11 12 |
# File 'lib/corepro/bank_document.rb', line 10 def documentId @documentId end |
#documentType ⇒ Object
Returns the value of attribute documentType.
11 12 13 |
# File 'lib/corepro/bank_document.rb', line 11 def documentType @documentType end |
#downloadUrl ⇒ Object
Returns the value of attribute downloadUrl.
15 16 17 |
# File 'lib/corepro/bank_document.rb', line 15 def downloadUrl @downloadUrl end |
#effectiveDate ⇒ Object
Returns the value of attribute effectiveDate.
16 17 18 |
# File 'lib/corepro/bank_document.rb', line 16 def effectiveDate @effectiveDate end |
#expireDate ⇒ Object
Returns the value of attribute expireDate.
17 18 19 |
# File 'lib/corepro/bank_document.rb', line 17 def expireDate @expireDate end |
#html ⇒ Object
Returns the value of attribute html.
13 14 15 |
# File 'lib/corepro/bank_document.rb', line 13 def html @html end |
#title ⇒ Object
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 |