Class: VBS::Requests::ListStatements

Inherits:
Base
  • Object
show all
Defined in:
lib/vbs/requests/list_statements.rb

Constant Summary collapse

HTTP_METHOD =
:post
PATH =
'/GetStatementsByEDIPIAndVistaAccountNumber'

Instance Attribute Summary collapse

Attributes inherited from Base

#errors

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#http_method, #path, schema_validation_options, #valid?, #validate!, #validate_request_model!

Constructor Details

#initialize(edipi = nil, vista_account_numbers = []) ⇒ ListStatements

Returns a new instance of ListStatements.



34
35
36
37
# File 'lib/vbs/requests/list_statements.rb', line 34

def initialize(edipi = nil,  = [])
  @edipi = edipi
  @vista_account_numbers = 
end

Instance Attribute Details

#edipiObject

Returns the value of attribute edipi.



32
33
34
# File 'lib/vbs/requests/list_statements.rb', line 32

def edipi
  @edipi
end

#vista_account_numbersObject

Returns the value of attribute vista_account_numbers.



32
33
34
# File 'lib/vbs/requests/list_statements.rb', line 32

def 
  @vista_account_numbers
end

Class Method Details

.schemaObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/vbs/requests/list_statements.rb', line 11

def self.schema
  {
    'type' => 'object',
    'additionalProperties' => false,
    'required' => %w[edipi vistaAccountNumbers],
    'properties' => {
      'edipi' => {
        'type' => 'string'
      },
      'vistaAccountNumbers' => {
        'type' => 'array',
        'items' => {
          'type' => 'string',
          'minLength' => 16,
          'maxLength' => 16
        }
      }
    }
  }
end

Instance Method Details

#dataObject



39
40
41
42
43
44
# File 'lib/vbs/requests/list_statements.rb', line 39

def data
  {
    edipi:,
    vistaAccountNumbers: 
  }
end