diff --git a/Classes.html b/Classes.html index 39b1f57..f80d23e 100644 --- a/Classes.html +++ b/Classes.html @@ -60,53 +60,48 @@ Enumerations - - - + @@ -165,7 +160,7 @@

Declaration

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 - - - + @@ -283,9 +278,9 @@

Parameters

  • - + - getAccounts(completion:) + getAccounts(completion:)
    @@ -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

    -

    Result with an array of Accounts or an Account.AccountError

    +

    Result with an array of Accounts or an Account.AccountError

    @@ -332,9 +327,9 @@

    Parameters

  • - + - getPositions(in:date:completion:) + getPositions(in:date:completion:)
    @@ -342,14 +337,14 @@

    Parameters

    -

    Get all Positions from one Account

    +

    Get all Positions from one Account

    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

    -

    Result with an array of Positions or an Position.PositionError

    +

    Result with an array of Positions or an Position.PositionError

    @@ -405,9 +400,9 @@

    Parameters

  • - + - getTransactions(in:startDate:completion:) + getTransactions(in:startDate:completion:)
    @@ -415,14 +410,14 @@

    Parameters

    -

    Get all Transactionss from one Account

    +

    Get all Transactionss from one Account

    Declaration

    Swift

    -
    public func getTransactions(in account: Account, startDate: Date?, completion: @escaping (Result<[Transaction], Transaction.TransactionError>) -> Void)
    +
    public func getTransactions(in account: Account, startDate: Date?, completion: @escaping (Result<[Transaction], TransactionError>) -> Void)
    @@ -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 -
  • - - + @@ -157,6 +152,226 @@

    Declaration

  • +
  • +
    + + + + TransactionError + +
    +
    +
    +
    +
    +
    +

    Errors which can happen when retrieving a Transaction

    + + See more +
    +
    +

    Declaration

    +
    +

    Swift

    +
    public enum TransactionError : Error
    +
    extension TransactionError: LocalizedError
    + +
    +
    + +
    +
    +
  • +
  • +
    + + + + AccountError + +
    +
    +
    +
    +
    +
    +

    Errors which can happen when retrieving an Account

    + + See more +
    +
    +

    Declaration

    +
    +

    Swift

    +
    public enum AccountError : Error
    + +
    +
    + +
    +
    +
  • +
  • +
    + + + + AccountType + +
    +
    +
    +
    +
    +
    +

    Type of the account

    + +

    Note: Currently only Canadian Accounts are supported

    + + See more +
    +
    +

    Declaration

    +
    +

    Swift

    +
    public enum AccountType : String
    + +
    +
    + +
    +
    +
  • +
  • +
    + + + + AssetError + +
    +
    +
    +
    +
    +
    +

    Errors which can happen when retrieving an Asset

    + + See more +
    +
    +

    Declaration

    +
    +

    Swift

    +
    public enum AssetError : Error
    + +
    +
    + +
    +
    +
  • +
  • +
    + + + + AssetType + +
    +
    +
    +
    +
    +
    +

    Type of the asset

    + + See more +
    +
    +

    Declaration

    +
    +

    Swift

    +
    public enum AssetType : String
    + +
    +
    + +
    +
    +
  • +
  • +
    + + + + PositionError + +
    +
    +
    +
    +
    +
    +

    Errors which can happen when retrieving a Position

    + + See more +
    +
    +

    Declaration

    +
    +

    Swift

    +
    public enum PositionError : Error
    + +
    +
    + +
    +
    +
  • +
  • +
    + + + + TransactionType + +
    +
    +
    +
    +
    +
    +

    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 Reference - - + + - - + + @@ -17,7 +17,7 @@

    - + Wealthsimple Docs (100% documented) @@ -26,22 +26,22 @@

    - + View on GitHub

    - + Install in Dash

    @@ -49,64 +49,59 @@