Class: LockstepSdk::ProvisioningFinalizeRequestModel

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ ProvisioningFinalizeRequestModel

Initialize the ProvisioningFinalizeRequestModel using the provided prototype



28
29
30
31
32
33
34
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 28

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

#companyCompanyModel

Returns The company information for the user and group.

Returns:

  • (CompanyModel)

    The company information for the user and group



50
51
52
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 50

def company
  @company
end

#default_currencyString

Returns The default currency of the user.

Returns:

  • (String)

    The default currency of the user



46
47
48
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 46

def default_currency
  @default_currency
end

#email_connectorErpInfoModel

Returns Optional connector information needed to enroll user to their email connector.

Returns:

  • (ErpInfoModel)

    Optional connector information needed to enroll user to their email connector



54
55
56
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 54

def email_connector
  @email_connector
end

#full_nameString

Returns The full name of the user.

Returns:

  • (String)

    The full name of the user



38
39
40
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 38

def full_name
  @full_name
end

#time_zoneString

Returns The time zone of the user.

Returns:

  • (String)

    The time zone of the user



42
43
44
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 42

def time_zone
  @time_zone
end

Instance Method Details

#as_json(options = {}) ⇒ object

Returns This object as a JSON key-value structure.

Returns:

  • (object)

    This object as a JSON key-value structure



58
59
60
61
62
63
64
65
66
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 58

def as_json(options={})
    {
        '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.

Returns:

  • (String)

    This object converted to a JSON string



70
71
72
# File 'lib/lockstep_sdk/models/provisioning_finalize_request_model.rb', line 70

def to_json(*options)
    "[#{as_json(*options).to_json(*options)}]"
end