class SessionCredentials

Methods

__construct(array $params, SenderCredentials $senderCreds)

Initializes the class with the given parameters.

string
getSessionId()

Get Intacct session ID

getEndpoint()

Get endpoint

getSenderCredentials()

Get sender credentials

string
getCurrentCompanyId()

Get session's current company ID

string
getCurrentUserId()

Get session's current user ID

bool
getCurrentUserIsExternal()

Get session's current user is external or not

MockHandler
getMockHandler()

Get mock handler for unit testing

LoggerInterface
getLogger()

No description

int
getLogLevel()

No description

Details

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

Initializes the class with the given parameters.

The constructor accepts the following options:

  • session_id (string) Intacct session ID
  • endpoint_url (string) Endpoint URL
  • current_company_id (string) Current Intacct company ID
  • current_user_id (string) Current Intacct user ID
  • current_user_is_external (bool) Current Intacct user is external
  • mock_handler (GuzzleHttp\Handler\MockHandler) Mock handler for unit tests

Parameters

array $params
SenderCredentials $senderCreds

Exceptions

InvalidArgumentException Initializes the class with the given parameters.

at line line 129
string getSessionId()

Get Intacct session ID

Return Value

string

at line line 139
Endpoint getEndpoint()

Get endpoint

Return Value

Endpoint

at line line 149
SenderCredentials getSenderCredentials()

Get sender credentials

Return Value

SenderCredentials

at line line 159
string getCurrentCompanyId()

Get session's current company ID

Return Value

string

at line line 169
string getCurrentUserId()

Get session's current user ID

Return Value

string

at line line 179
bool getCurrentUserIsExternal()

Get session's current user is external or not

Return Value

bool

at line line 189
MockHandler getMockHandler()

Get mock handler for unit testing

Return Value

MockHandler

at line line 197
LoggerInterface getLogger()

Return Value

LoggerInterface

at line line 205
MessageFormatter getLogMessageFormat()

Return Value

MessageFormatter

at line line 213
int getLogLevel()

Return Value

int