class LoginCredentials

Constants

COMPANY_PROFILE_ENV_NAME

COMPANY_ID_ENV_NAME

USER_ID_ENV_NAME

USER_PASSWORD_ENV_NAME

DEFAULT_COMPANY_PROFILE

Methods

__construct(array $params, SenderCredentials $senderCreds)

Initializes the class with the given parameters.

string
getCompanyId()

Get Intacct company ID

string
getUserId()

Get Intacct user ID

string
getPassword()

Get Intacct user password

getSenderCredentials()

Get sender credentials

getEndpoint()

Get endpoint

MockHandler
getMockHandler()

Get mock handler for unit tests

Details

at line line 73
__construct(array $params, SenderCredentials $senderCreds)

Initializes the class with the given parameters.

The constructor accepts the following options:

  • profile_name (string, default=string "default") Profile name to use
  • profile_file (string) Profile file to load from
  • company_id (string) Intacct company ID
  • user_id (string) Intacct user ID
  • user_password (string) Intacct user password
  • mock_handler (GuzzleHttp\Handler\MockHandler) Mock handler for unit tests

Parameters

array $params Login Credentials configuration options
SenderCredentials $senderCreds

Exceptions

InvalidArgumentException

at line line 123
string getCompanyId()

Get Intacct company ID

Return Value

string

at line line 133
string getUserId()

Get Intacct user ID

Return Value

string

at line line 143
string getPassword()

Get Intacct user password

Return Value

string

at line line 153
SenderCredentials getSenderCredentials()

Get sender credentials

Return Value

SenderCredentials

at line line 163
Endpoint getEndpoint()

Get endpoint

Return Value

Endpoint

at line line 173
MockHandler getMockHandler()

Get mock handler for unit tests

Return Value

MockHandler