Class: VBS::Requests::ListStatements
- Defined in:
- lib/vbs/requests/list_statements.rb
Constant Summary collapse
- HTTP_METHOD =
:post
- PATH =
'/GetStatementsByEDIPIAndVistaAccountNumber'
Instance Attribute Summary collapse
-
#edipi ⇒ Object
Returns the value of attribute edipi.
-
#vista_account_numbers ⇒ Object
Returns the value of attribute vista_account_numbers.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(edipi = nil, vista_account_numbers = []) ⇒ ListStatements
constructor
A new instance of ListStatements.
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, vista_account_numbers = []) @edipi = edipi @vista_account_numbers = vista_account_numbers end |
Instance Attribute Details
#edipi ⇒ Object
Returns the value of attribute edipi.
32 33 34 |
# File 'lib/vbs/requests/list_statements.rb', line 32 def edipi @edipi end |
#vista_account_numbers ⇒ Object
Returns the value of attribute vista_account_numbers.
32 33 34 |
# File 'lib/vbs/requests/list_statements.rb', line 32 def vista_account_numbers @vista_account_numbers end |
Class Method Details
.schema ⇒ Object
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
#data ⇒ Object
39 40 41 42 43 44 |
# File 'lib/vbs/requests/list_statements.rb', line 39 def data { edipi:, vistaAccountNumbers: vista_account_numbers } end |