Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BertMaurau committed Oct 17, 2017
2 parents 1372b51 + f65f3b1 commit f0551ea
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,71 @@ Yuki PettyCash CSV import using the SOAP Webservice

// Import the data
$result = $yuki -> import($data);

## Methods

### Common

- Authenticate

**Required**: Access Key
**Throws**: InvalidAccessKeyException

$yuki -> authenticate();

- AuthenticateByUserName (deprecated)

**Required**: UserName & Password
**Throws**: InvalidCredentialsException

$yuki -> authenticateByUserName($userName, $password);

- Domains

**Required**: Session ID
**Throws**: InvalidSessionIDException

$yuki -> domains();

- GetCurrentDomain

**Required**: Session ID
**Throws**: InvalidSessionIDException

$yuki -> getCurrentDomain();

- SetCurrentDomain

**Required**: Session ID
**Throws**: InvalidSessionIDException

$yuki -> setCurrentDomain();


### PettyCash

**Required**: Session ID, Administration ID & Statement Text
**Throws**: Exception

$yuki -> import($statementText);

### Getters & Setters

- getSessionID()
- setSessionID()
- getAdministrationID()
- setAdministrationID()
- getAccessKey()
- setAccessKey()

## Exceptions

The next Exceptions can be thrown:

- **InvalidAccessKeyException**: When there is no Access Key set.
- **InvalidAdministrationIDException**: When there is no Administration ID set.
- **InvalidCredentialsException**: When there is no UserName or Password given (Deprecated).
- **InvalidDomainIDException**: When there is no Domain ID set.
- **InvalidSessionIDException**: When there is no Session ID set (Gets set after Authentication).
- **InvalidStatementTextException**: When there is no Statement Text provided for import.
- **NoAuthenticationResultException**: When the Authenticate didn't return the expected results

0 comments on commit f0551ea

Please sign in to comment.