Sha256: a9a5993731b9be4045bb3ffab553b4405a9a260638da7cc65d42e7353296daa9
Contents?: true
Size: 1.36 KB
Versions: 8
Compression:
Stored size: 1.36 KB
Contents
require_relative 'models/model_base' require_relative 'utils/requestor' require_relative 'models/file_content' module CorePro class BankDocument < Models::ModelBase attr_accessor :bankId attr_accessor :customerId attr_accessor :documentId attr_accessor :documentType attr_accessor :culture attr_accessor :html attr_accessor :title attr_accessor :downloadUrl attr_accessor :effectiveDate attr_accessor :expireDate def self.list(culture, documentType = nil, connection = nil, loggingObject = nil) d = BankDocument.new d.culture = culture d.documentType = documentType d.list connection, loggingObject end def list(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.get("/bankdocument/list/#{BankDocument.escape(self.culture)}/#{BankDocument.escape(self.documentType)}", BankDocument, connection, loggingObject) end def self.download(culture, documentId, connection = nil, loggingObject = nil) d = BankDocument.new d.culture = culture d.documentId = documentId d.download connection, loggingObject end def download(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.get("/bankdocument/download/#{BankDocument.escape(self.culture)}/#{self.documentId}", CorePro::Models::FileContent, connection, loggingObject) end end end
Version data entries
8 entries across 8 versions & 2 rubygems