Sha256: 1fddf46f55184a962279a3c20517a33c6eca3e5f0667809127750c574227f706

Contents?: true

Size: 945 Bytes

Versions: 8

Compression:

Stored size: 945 Bytes

Contents

require_relative 'models/model_base'
require_relative 'utils/requestor'
require_relative 'models/file_content'

module CorePro
  class Statement < Models::ModelBase
    attr_accessor :statementId
    attr_accessor :customerId
    attr_accessor :type
    attr_accessor :month
    attr_accessor :year

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

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

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
corepro_fvr-1.0.9 lib/corepro/statement.rb
corepro_eg-1.0.8 lib/corepro/statement.rb
corepro_eg-1.0.7 lib/corepro/statement.rb
corepro_eg-1.0.6 lib/corepro/statement.rb
corepro_eg-1.0.5 lib/corepro/statement.rb
corepro_eg-1.0.4 lib/corepro/statement.rb
corepro_eg-1.0.3 lib/corepro/statement.rb
corepro_eg-1.0.2 lib/corepro/statement.rb