diff --git a/Classes.html b/Classes.html
index 39b1f57..f80d23e 100644
--- a/Classes.html
+++ b/Classes.html
@@ -60,53 +60,48 @@
Enumerations
-
-
- Protocols
-
-
-
- Structures
-
+
+
+ Protocols
+
@@ -165,7 +160,7 @@ Declaration
@@ -17,7 +17,7 @@
- Wealthsimple Reference
-
+ Wealthsimple Reference
+
AccountError Enumeration Reference
@@ -49,64 +49,59 @@
@@ -17,7 +17,7 @@
- Wealthsimple Reference
-
+ Wealthsimple Reference
+
AccountType Enumeration Reference
@@ -49,64 +49,59 @@
@@ -17,7 +17,7 @@
- Wealthsimple Reference
-
+ Wealthsimple Reference
+
AssetError Enumeration Reference
@@ -49,64 +49,59 @@
@@ -17,7 +17,7 @@
- Wealthsimple Reference
-
+ Wealthsimple Reference
+
AssetType Enumeration Reference
@@ -49,64 +49,59 @@
@@ -17,7 +17,7 @@
- Wealthsimple Reference
-
+ Wealthsimple Reference
+
PositionError Enumeration Reference
@@ -49,64 +49,59 @@
@@ -17,7 +17,7 @@
- Wealthsimple Reference
-
+ Wealthsimple Reference
+
TransactionError Enumeration Reference
@@ -49,64 +49,59 @@
@@ -17,7 +17,7 @@
- Wealthsimple Reference
-
+ Wealthsimple Reference
+
TransactionType Enumeration Reference
@@ -49,64 +49,59 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
- Wealthsimple Reference
-
- Structures Reference
-
-
-
-
-
-
-
-
-
Structures
-
The following structures are available globally.
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
An Account at Wealthsimple
-
-
See more
-
-
-
Declaration
-
-
Swift
-
public struct Account
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
An asset, like a stock or a currency
-
-
See more
-
-
-
Declaration
-
-
Swift
-
public struct Asset
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
A Position, like certain amount of a stock or a currency held in an account
-
-
See more
-
-
-
Declaration
-
-
Swift
-
public struct Position
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
A Transaction, like buying or selling stock
-
-
See more
-
-
-
Declaration
-
-
Swift
-
public struct Transaction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Classes/WealthsimpleDownloader.html b/Classes/WealthsimpleDownloader.html
index fa2970e..f618913 100644
--- a/Classes/WealthsimpleDownloader.html
+++ b/Classes/WealthsimpleDownloader.html
@@ -60,53 +60,48 @@
Enumerations
-
-
- Protocols
-
-
-
- Structures
-
+
+
+ Protocols
+
@@ -283,9 +278,9 @@
Parameters
@@ -300,7 +295,7 @@
Parameters
Declaration
Swift
-
public func getAccounts(completion: @escaping (Result<[Account], Account.AccountError>) -> Void)
+
public func getAccounts(completion: @escaping (Result<[Account], AccountError>) -> Void)
@@ -316,7 +311,7 @@ Parameters
|
@@ -332,9 +327,9 @@ Parameters
@@ -342,14 +337,14 @@
Parameters
Declaration
Swift
-
public func getPositions(in account: Account, date: Date?, completion: @escaping (Result<[Position], Position.PositionError>) -> Void)
+
public func getPositions(in account: Account, date: Date?, completion: @escaping (Result<[Position], PositionError>) -> Void)
@@ -389,7 +384,7 @@ Parameters
|
@@ -405,9 +400,9 @@ Parameters
@@ -415,14 +410,14 @@
Parameters
-
Get all Transactions
s from one Account
+
Get all Transactions
s from one Account
@@ -483,7 +478,7 @@ Parameters
diff --git a/Enums.html b/Enums.html
index dc4cc2f..47a67d8 100644
--- a/Enums.html
+++ b/Enums.html
@@ -60,53 +60,48 @@
Enumerations
-
-
- Protocols
-
-
-
- Structures
-
+
+
+ Protocols
+
@@ -157,6 +152,226 @@ Declaration
+
+
+
+
+
+
+
+
Errors which can happen when retrieving a Transaction
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum TransactionError : Error
+
extension TransactionError: LocalizedError
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Errors which can happen when retrieving an Account
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum AccountError : Error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Type of the account
+
+
Note: Currently only Canadian Accounts are supported
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum AccountType : String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Errors which can happen when retrieving an Asset
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum AssetError : Error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Declaration
+
+
Swift
+
public enum AssetType : String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Errors which can happen when retrieving a Position
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum PositionError : Error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Type for the transaction, e.g. buying or selling
+
+
See more
+
+
+
Declaration
+
+
Swift
+
public enum TransactionType : String
+
+
+
+
+
+
+
@@ -165,7 +380,7 @@
Declaration
diff --git a/Structs/Account/AccountError.html b/Enums/AccountError.html
similarity index 72%
rename from Structs/Account/AccountError.html
rename to Enums/AccountError.html
index 50b4dfe..9ec2cd9 100644
--- a/Structs/Account/AccountError.html
+++ b/Enums/AccountError.html
@@ -2,11 +2,11 @@
AccountError Enumeration ReferenceAccountType Enumeration ReferenceAssetError Enumeration ReferenceAssetType Enumeration ReferencePositionError Enumeration ReferenceTransactionError Enumeration ReferenceTransactionType Enumeration Reference
-
-
+
+
-
-
+
+
diff --git a/docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Account/AccountType.html b/Enums/AccountType.html
similarity index 74%
rename from docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Account/AccountType.html
rename to Enums/AccountType.html
index 6a6d943..f975514 100644
--- a/docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Account/AccountType.html
+++ b/Enums/AccountType.html
@@ -2,11 +2,11 @@
-
-
+
+
-
-
+
+
diff --git a/Structs/Asset/AssetError.html b/Enums/AssetError.html
similarity index 66%
rename from Structs/Asset/AssetError.html
rename to Enums/AssetError.html
index df60e00..90a8a2f 100644
--- a/Structs/Asset/AssetError.html
+++ b/Enums/AssetError.html
@@ -2,11 +2,11 @@
-
-
+
+
-
-
+
+
diff --git a/docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Asset/AssetType.html b/Enums/AssetType.html
similarity index 70%
rename from docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Asset/AssetType.html
rename to Enums/AssetType.html
index bddfbcb..e100689 100644
--- a/docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Asset/AssetType.html
+++ b/Enums/AssetType.html
@@ -2,11 +2,11 @@
-
-
+
+
-
-
+
+
diff --git a/Structs/Position/PositionError.html b/Enums/PositionError.html
similarity index 72%
rename from Structs/Position/PositionError.html
rename to Enums/PositionError.html
index b0f7eb9..0941b5f 100644
--- a/Structs/Position/PositionError.html
+++ b/Enums/PositionError.html
@@ -2,11 +2,11 @@
-
-
+
+
-
-
+
+
diff --git a/Enums/TokenError.html b/Enums/TokenError.html
index 731acbf..ef952d5 100644
--- a/Enums/TokenError.html
+++ b/Enums/TokenError.html
@@ -60,53 +60,48 @@
Enumerations
-
-
- Protocols
-
-
-
- Structures
-
+
+
+ Protocols
+
@@ -354,7 +349,7 @@
Declaration
diff --git a/Structs/Transaction/TransactionError.html b/Enums/TransactionError.html
similarity index 76%
rename from Structs/Transaction/TransactionError.html
rename to Enums/TransactionError.html
index 3493ef7..0fb2c19 100644
--- a/Structs/Transaction/TransactionError.html
+++ b/Enums/TransactionError.html
@@ -2,11 +2,11 @@
-
-
+
+
-
-
+
+
diff --git a/Structs/Transaction/TransactionType.html b/Enums/TransactionType.html
similarity index 77%
rename from Structs/Transaction/TransactionType.html
rename to Enums/TransactionType.html
index 3eca9ef..b09512d 100644
--- a/Structs/Transaction/TransactionType.html
+++ b/Enums/TransactionType.html
@@ -2,11 +2,11 @@
-
-
+
+
-
-
+
+
diff --git a/Protocols.html b/Protocols.html
index 3b5ebf1..e4e0d1c 100644
--- a/Protocols.html
+++ b/Protocols.html
@@ -60,53 +60,48 @@
Enumerations
-
-
- Protocols
-
-
-
- Structures
-
+
+
+ Protocols
+
@@ -126,6 +121,68 @@
Protocols
@@ -167,7 +286,7 @@
Declaration
diff --git a/Structs/Account.html b/Protocols/Account.html
similarity index 58%
rename from Structs/Account.html
rename to Protocols/Account.html
index 2451442..237c6ce 100644
--- a/Structs/Account.html
+++ b/Protocols/Account.html
@@ -1,7 +1,7 @@
-
Account Structure Reference
+
Account Protocol Reference
@@ -11,9 +11,9 @@
diff --git a/docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Asset.html b/Protocols/Asset.html
similarity index 59%
rename from docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Asset.html
rename to Protocols/Asset.html
index 5e1341b..1348468 100644
--- a/docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Asset.html
+++ b/Protocols/Asset.html
@@ -1,7 +1,7 @@
-
Asset Structure Reference
+
Asset Protocol Reference
@@ -11,9 +11,9 @@
diff --git a/Protocols/CredentialStorage.html b/Protocols/CredentialStorage.html
index fdea930..4cd83c1 100644
--- a/Protocols/CredentialStorage.html
+++ b/Protocols/CredentialStorage.html
@@ -60,53 +60,48 @@
Enumerations
-
-
- Protocols
-
-
-
- Structures
-
+
+
+ Protocols
+
@@ -260,7 +255,7 @@
Return Value
diff --git a/docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Position.html b/Protocols/Position.html
similarity index 67%
rename from docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Position.html
rename to Protocols/Position.html
index c1b3b18..11d5b79 100644
--- a/docsets/Wealthsimple.docset/Contents/Resources/Documents/Structs/Position.html
+++ b/Protocols/Position.html
@@ -1,7 +1,7 @@
-
Position Structure Reference
+
Position Protocol Reference
@@ -11,9 +11,9 @@
diff --git a/Structs/Transaction.html b/Protocols/Transaction.html
similarity index 67%
rename from Structs/Transaction.html
rename to Protocols/Transaction.html
index 17cadfd..1c9b41c 100644
--- a/Structs/Transaction.html
+++ b/Protocols/Transaction.html
@@ -1,7 +1,7 @@
-
Transaction Structure Reference
+
Transaction Protocol Reference
@@ -11,9 +11,9 @@
diff --git a/Structs.html b/Structs.html
deleted file mode 100644
index c91a818..0000000
--- a/Structs.html
+++ /dev/null
@@ -1,266 +0,0 @@
-
-
-
-
Structures Reference
-
-
-
-
-
-
-
-
-
-