Class: LockstepSdk::ProvisioningFinalizeRequestModel
- Inherits:
-
Object
- Object
- LockstepSdk::ProvisioningFinalizeRequestModel
- Defined in:
- lib/lockstep_sdk/models/provisioning_finalize_request_model.rb
Overview
Represents the data to finalize onboarding for a user
Instance Attribute Summary collapse
-
#company ⇒ CompanyModel
The company information for the user and group.
-
#default_currency ⇒ String
The default currency of the user.
-
#email_connector ⇒ ErpInfoModel
Optional connector information needed to enroll user to their email connector.
-
#full_name ⇒ String
The full name of the user.
-
#time_zone ⇒ String
The time zone of the user.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ ProvisioningFinalizeRequestModel
constructor
Initialize the ProvisioningFinalizeRequestModel using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ ProvisioningFinalizeRequestModel
Initialize the ProvisioningFinalizeRequestModel using the provided prototype
26 27 28 29 30 31 32 |
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 26 def initialize(params = {}) @full_name = params.dig(:full_name) @time_zone = params.dig(:time_zone) @default_currency = params.dig(:default_currency) @company = params.dig(:company) @email_connector = params.dig(:email_connector) end |
Instance Attribute Details
#company ⇒ CompanyModel
Returns The company information for the user and group.
41 42 43 |
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 41 def company @company end |
#default_currency ⇒ String
Returns The default currency of the user.
39 40 41 |
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 39 def default_currency @default_currency end |
#email_connector ⇒ ErpInfoModel
Returns Optional connector information needed to enroll user to their email connector.
43 44 45 |
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 43 def email_connector @email_connector end |
#full_name ⇒ String
Returns The full name of the user.
35 36 37 |
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 35 def full_name @full_name end |
#time_zone ⇒ String
Returns The time zone of the user.
37 38 39 |
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 37 def time_zone @time_zone end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
46 47 48 49 50 51 52 53 54 |
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 46 def as_json(={}) { 'fullName' => @full_name, 'timeZone' => @time_zone, 'defaultCurrency' => @default_currency, 'company' => @company, 'emailConnector' => @email_connector, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
57 58 59 |
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 57 def to_json(*) "[#{as_json(*).to_json(*)}]" end |