Class: ShellCardManagementApIs::LoggedInUserRequest
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellCardManagementApIs::LoggedInUserRequest
- Defined in:
- lib/shell_card_management_ap_is/models/logged_in_user_request.rb
Overview
This entity models the data that is sent in the http request body for Logged In User operation. This class inherits RequestBase class.
Instance Attribute Summary collapse
-
#include_eid_details ⇒ TrueClass | FalseClass
True/False.
-
#include_payer_group ⇒ TrueClass | FalseClass
True/False.
-
#payer_id ⇒ Integer
Payer id of the customer.</br> Optional.</br> This input is a search criterion.</br> Note: If PayerId or PayerNumber is provided in the input, the given payer will be available in the output if the user has access to the given payer.
-
#payer_number ⇒ String
PayerNumber of the customer.</br> Optional</br> This input is a search criterion.</br> Note: If Payerid or PayerNumber is provided in the input, the given payer will be available in the output if the user has access to the given payer.
-
#requested_api_name ⇒ String
Name of the API on which user access needs to be validated Optional.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(include_payer_group = false, include_eid_details = false, requested_api_name = SKIP, payer_id = SKIP, payer_number = SKIP) ⇒ LoggedInUserRequest
constructor
A new instance of LoggedInUserRequest.
Methods inherited from BaseModel
Constructor Details
#initialize(include_payer_group = false, include_eid_details = false, requested_api_name = SKIP, payer_id = SKIP, payer_number = SKIP) ⇒ LoggedInUserRequest
Returns a new instance of LoggedInUserRequest.
75 76 77 78 79 80 81 82 83 |
# File 'lib/shell_card_management_ap_is/models/logged_in_user_request.rb', line 75 def initialize(include_payer_group = false, include_eid_details = false, requested_api_name = SKIP, payer_id = SKIP, payer_number = SKIP) @include_payer_group = include_payer_group unless include_payer_group == SKIP @include_eid_details = include_eid_details unless include_eid_details == SKIP @requested_api_name = requested_api_name unless requested_api_name == SKIP @payer_id = payer_id unless payer_id == SKIP @payer_number = payer_number unless payer_number == SKIP end |
Instance Attribute Details
#include_eid_details ⇒ TrueClass | FalseClass
True/False. The output will include the EID (Electronic Invoice data) information only when true is passed..
21 22 23 |
# File 'lib/shell_card_management_ap_is/models/logged_in_user_request.rb', line 21 def include_eid_details @include_eid_details end |
#include_payer_group ⇒ TrueClass | FalseClass
True/False. The output will include the payer group information only when true is passed.
16 17 18 |
# File 'lib/shell_card_management_ap_is/models/logged_in_user_request.rb', line 16 def include_payer_group @include_payer_group end |
#payer_id ⇒ Integer
Payer id of the customer.</br> Optional.</br> This input is a search criterion.</br> Note: If PayerId or PayerNumber is provided in the input, the given payer will be available in the output if the user has access to the given payer.
34 35 36 |
# File 'lib/shell_card_management_ap_is/models/logged_in_user_request.rb', line 34 def payer_id @payer_id end |
#payer_number ⇒ String
PayerNumber of the customer.</br> Optional</br> This input is a search criterion.</br> Note: If Payerid or PayerNumber is provided in the input, the given payer will be available in the output if the user has access to the given payer.
42 43 44 |
# File 'lib/shell_card_management_ap_is/models/logged_in_user_request.rb', line 42 def payer_number @payer_number end |
#requested_api_name ⇒ String
Name of the API on which user access needs to be validated Optional.
26 27 28 |
# File 'lib/shell_card_management_ap_is/models/logged_in_user_request.rb', line 26 def requested_api_name @requested_api_name end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/shell_card_management_ap_is/models/logged_in_user_request.rb', line 86 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. include_payer_group = hash['IncludePayerGroup'] ||= false include_eid_details = hash['IncludeEIDDetails'] ||= false requested_api_name = hash.key?('RequestedAPIName') ? hash['RequestedAPIName'] : SKIP payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP # Create object from extracted values. LoggedInUserRequest.new(include_payer_group, include_eid_details, requested_api_name, payer_id, payer_number) end |
.names ⇒ Object
A mapping from model property names to API property names.
45 46 47 48 49 50 51 52 53 |
# File 'lib/shell_card_management_ap_is/models/logged_in_user_request.rb', line 45 def self.names @_hash = {} if @_hash.nil? @_hash['include_payer_group'] = 'IncludePayerGroup' @_hash['include_eid_details'] = 'IncludeEIDDetails' @_hash['requested_api_name'] = 'RequestedAPIName' @_hash['payer_id'] = 'PayerId' @_hash['payer_number'] = 'PayerNumber' @_hash end |
.nullables ⇒ Object
An array for nullable fields
67 68 69 70 71 72 73 |
# File 'lib/shell_card_management_ap_is/models/logged_in_user_request.rb', line 67 def self.nullables %w[ requested_api_name payer_id payer_number ] end |
.optionals ⇒ Object
An array for optional fields
56 57 58 59 60 61 62 63 64 |
# File 'lib/shell_card_management_ap_is/models/logged_in_user_request.rb', line 56 def self.optionals %w[ include_payer_group include_eid_details requested_api_name payer_id payer_number ] end |