-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
357498e
commit 82f1a1e
Showing
84 changed files
with
900 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>A transaction within an investment account.</para> | ||
/// </summary> | ||
public record AssetReportInvestments | ||
{ | ||
/// <summary> | ||
/// <para>The ID of the Investment transaction, unique across all Plaid transactions. Like all Plaid identifiers, the <c>investment_transaction_id</c> is case sensitive.</para> | ||
/// </summary> | ||
[JsonPropertyName("investment_transaction_id")] | ||
public string InvestmentTransactionId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The <c>account_id</c> of the account against which this transaction posted.</para> | ||
/// </summary> | ||
[JsonPropertyName("account_id")] | ||
public string AccountId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The <c>security_id</c> to which this transaction is related.</para> | ||
/// </summary> | ||
[JsonPropertyName("security_id")] | ||
public string? SecurityId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The <a href="https://wikipedia.org/wiki/ISO_8601">ISO 8601</a> posting date for the transaction.</para> | ||
/// </summary> | ||
[JsonPropertyName("date")] | ||
public DateOnly Date { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The institution’s description of the transaction.</para> | ||
/// </summary> | ||
[JsonPropertyName("name")] | ||
public string Name { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The number of units of the security involved in this transaction. Positive for buy transactions; negative for sell transactions.</para> | ||
/// </summary> | ||
[JsonPropertyName("quantity")] | ||
public decimal Quantity { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The complete value of the transaction. Positive values when cash is debited, e.g. purchases of stock; negative values when cash is credited, e.g. sales of stock. Treatment remains the same for cash-only movements unassociated with securities.</para> | ||
/// </summary> | ||
[JsonPropertyName("amount")] | ||
public decimal Amount { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The price of the security at which this transaction occurred.</para> | ||
/// </summary> | ||
[JsonPropertyName("price")] | ||
public decimal Price { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The combined value of all fees applied to this transaction</para> | ||
/// </summary> | ||
[JsonPropertyName("fees")] | ||
public decimal? Fees { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Value is one of the following:</para> | ||
/// </summary> | ||
[JsonPropertyName("type")] | ||
public Entity.InvestmentTransactionType Type { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>For descriptions of possible transaction types and subtypes, see the [Investment transaction types schema](https://plaid.com/docs/api/accounts/#investment-transaction-types-schema).</para> | ||
/// </summary> | ||
[JsonPropertyName("subtype")] | ||
public Entity.InvestmentTransactionSubtype Subtype { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The ISO-4217 currency code of the transaction. Always <c>null</c> if <c>unofficial_currency_code</c> is non-<c>null</c>.</para> | ||
/// </summary> | ||
[JsonPropertyName("iso_currency_code")] | ||
public string? IsoCurrencyCode { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The unofficial currency code associated with the holding. Always <c>null</c> if <c>iso_currency_code</c> is non-<c>null</c>. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries.</para> | ||
/// <para>See the <a href="https://plaid.com/docs/api/accounts#currency-code-schema">currency code schema</a> for a full listing of supported <c>iso_currency_code</c>s.</para> | ||
/// </summary> | ||
[JsonPropertyName("unofficial_currency_code")] | ||
public string? UnofficialCurrencyCode { get; init; } = default!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>The result of the bank income report generation</para> | ||
/// </summary> | ||
public enum CraBankIncomeCompleteResult | ||
{ | ||
/// <summary> | ||
/// <para>The bank income report was successfully generated and can be retrieved via <c>/cra/bank_income/get</c>.</para> | ||
/// </summary> | ||
[EnumMember(Value = "SUCCESS")] | ||
Success, | ||
|
||
/// <summary> | ||
/// <para>The bank income report failed to be generated</para> | ||
/// </summary> | ||
[EnumMember(Value = "FAILURE")] | ||
Failure, | ||
|
||
/// <summary> | ||
/// <para>Catch-all for unknown values returned by Plaid. If you encounter this, please check if there is a later version of the Going.Plaid library.</para> | ||
/// </summary> | ||
[EnumMember(Value = "undefined")] | ||
Undefined, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Plaid/Entity/LinkTokenCreateRequestAuthRerouteToCredentialsEnum.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.