-
-
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
4711f29
commit d8726f3
Showing
39 changed files
with
592 additions
and
22 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
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 refresh report generation</para> | ||
/// </summary> | ||
public enum BankIncomeCompleteResult | ||
{ | ||
/// <summary> | ||
/// <para>The refreshed report was successfully generated and can be retrieved via <c>/cra/bank_income/get</c>.</para> | ||
/// </summary> | ||
[EnumMember(Value = "SUCCESS")] | ||
Success, | ||
|
||
/// <summary> | ||
/// <para>The refreshed 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>ConsumerReportUserIdentity defines the user identity data collected for consumer report purpose. This field is required to be set if you later use the created user for consumer report purpose.</para> | ||
/// </summary> | ||
public class ConsumerReportUserIdentity | ||
{ | ||
/// <summary> | ||
/// <para>The user's first name</para> | ||
/// </summary> | ||
[JsonPropertyName("first_name")] | ||
public string FirstName { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The user's last name</para> | ||
/// </summary> | ||
[JsonPropertyName("last_name")] | ||
public string LastName { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The user's phone numbers</para> | ||
/// </summary> | ||
[JsonPropertyName("phone_numbers")] | ||
public IReadOnlyList<string> PhoneNumbers { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The user's emails</para> | ||
/// </summary> | ||
[JsonPropertyName("emails")] | ||
public IReadOnlyList<string> Emails { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Data about the components comprising an address.</para> | ||
/// </summary> | ||
[JsonPropertyName("primary_address")] | ||
public Entity.AddressData PrimaryAddress { get; set; } = 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> | ||
/// | ||
/// </summary> | ||
public enum HostedLinkDeliveryMethod | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "sms")] | ||
Sms, | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "email")] | ||
Email, | ||
|
||
/// <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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>An object representing an <a href="https://plaid.com/docs/link/web/#onexit">onExit</a> callback from Link.</para> | ||
/// </summary> | ||
public record LinkSessionExit | ||
{ | ||
/// <summary> | ||
/// <para>We use standard HTTP response codes for success and failure notifications, and our errors are further classified by <c>error_type</c>. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-<c>null</c> error object will only be part of an API response when calling <c>/item/get</c> to view Item status. Otherwise, error fields will be <c>null</c> if no error has occurred; if an error has occurred, an error code will be returned instead.</para> | ||
/// </summary> | ||
[JsonPropertyName("error")] | ||
public Entity.PlaidError? Error { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Displayed if a user exits Link without successfully linking an Item.</para> | ||
/// </summary> | ||
[JsonPropertyName("metadata")] | ||
public Entity.LinkSessionExitMetadata? Metadata { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Displayed if a user exits Link without successfully linking an Item.</para> | ||
/// </summary> | ||
public record LinkSessionExitMetadata | ||
{ | ||
/// <summary> | ||
/// <para>An institution object. If the Item was created via Same-Day micro-deposit verification, will be <c>null</c>.</para> | ||
/// </summary> | ||
[JsonPropertyName("institution")] | ||
public Entity.LinkSessionExitMetadataInstitution? Institution { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The point at which the user exited the Link flow. One of the following values.</para> | ||
/// </summary> | ||
[JsonPropertyName("status")] | ||
public string? Status { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A unique identifier associated with a user's actions and events through the Link flow. Include this identifier when opening a support ticket for faster turnaround.</para> | ||
/// </summary> | ||
[JsonPropertyName("link_session_id")] | ||
public string? LinkSessionId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The request ID for the last request made by Link. This can be shared with Plaid Support to expedite investigation.</para> | ||
/// </summary> | ||
[JsonPropertyName("request_id")] | ||
public string? RequestId { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>An institution object. If the Item was created via Same-Day micro-deposit verification, will be <c>null</c>.</para> | ||
/// </summary> | ||
public record LinkSessionExitMetadataInstitution | ||
{ | ||
/// <summary> | ||
/// <para>The full institution name, such as <c>Wells Fargo</c></para> | ||
/// </summary> | ||
[JsonPropertyName("name")] | ||
public string? Name { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The Plaid institution identifier</para> | ||
/// </summary> | ||
[JsonPropertyName("institution_id")] | ||
public string? InstitutionId { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>An object representing an <a href="https://plaid.com/docs/link/web/#onsuccess">onSuccess</a> callback from Link.</para> | ||
/// </summary> | ||
public record LinkSessionSuccess | ||
{ | ||
/// <summary> | ||
/// <para>Displayed once a user has successfully linked their Item.</para> | ||
/// </summary> | ||
[JsonPropertyName("public_token")] | ||
public string PublicToken { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Displayed once a user has successfully linked their Item.</para> | ||
/// </summary> | ||
[JsonPropertyName("metadata")] | ||
public Entity.LinkSessionSuccessMetadata? Metadata { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Displayed once a user has successfully linked their Item.</para> | ||
/// </summary> | ||
public record LinkSessionSuccessMetadata | ||
{ | ||
/// <summary> | ||
/// <para>An institution object. If the Item was created via Same-Day micro-deposit verification, will be <c>null</c>.</para> | ||
/// </summary> | ||
[JsonPropertyName("institution")] | ||
public Entity.LinkSessionSuccessMetadataInstitution? Institution { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A list of accounts attached to the connected Item. If Account Select is enabled via the developer dashboard, <c>accounts</c> will only include selected accounts.</para> | ||
/// </summary> | ||
[JsonPropertyName("accounts")] | ||
public IReadOnlyList<Entity.LinkSessionSuccessMetadataAccount>? Accounts { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A unique identifier associated with a user's actions and events through the Link flow. Include this identifier when opening a support ticket for faster turnaround.</para> | ||
/// </summary> | ||
[JsonPropertyName("link_session_id")] | ||
public string? LinkSessionId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[JsonPropertyName("transfer_status")] | ||
public Entity.LinkSessionSuccessMetadataTransferStatus? TransferStatus { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>An account attached to the connected Item.</para> | ||
/// </summary> | ||
public record LinkSessionSuccessMetadataAccount | ||
{ | ||
/// <summary> | ||
/// <para>The Plaid <c>account_id</c></para> | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public string? Id { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The official account name</para> | ||
/// </summary> | ||
[JsonPropertyName("name")] | ||
public string? Name { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The last 2-4 alphanumeric characters of an account's official account number. Note that the mask may be non-unique between an Item's accounts. It may also not match the mask that the bank displays to the user.</para> | ||
/// </summary> | ||
[JsonPropertyName("mask")] | ||
public string? Mask { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The account type. See the <a href="https://plaid.com/docs/api/accounts#account-type-schema">Account schema</a> for a full list of possible values</para> | ||
/// </summary> | ||
[JsonPropertyName("type")] | ||
public string? Type { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The account subtype. See the <a href="https://plaid.com/docs/api/accounts#account-type-schema">Account schema</a> for a full list of possible values</para> | ||
/// </summary> | ||
[JsonPropertyName("subtype")] | ||
public string? Subtype { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Indicates an Item's micro-deposit-based verification status. Possible values are:</para> | ||
/// <para><c>pending_automatic_verification</c>: The Item is pending automatic verification</para> | ||
/// <para><c>pending_manual_verification</c>: The Item is pending manual micro-deposit verification. Items remain in this state until the user successfully verifies the two amounts.</para> | ||
/// <para><c>automatically_verified</c>: The Item has successfully been automatically verified</para> | ||
/// <para><c>manually_verified</c>: The Item has successfully been manually verified</para> | ||
/// <para><c>verification_expired</c>: Plaid was unable to automatically verify the deposit within 7 calendar days and will no longer attempt to validate the Item. Users may retry by submitting their information again through Link.</para> | ||
/// <para><c>verification_failed</c>: The Item failed manual micro-deposit verification because the user exhausted all 3 verification attempts. Users may retry by submitting their information again through Link.</para> | ||
/// <para><c>null</c>: micro-deposit-based verification is not being used for the Item.</para> | ||
/// </summary> | ||
[JsonPropertyName("verification_status")] | ||
public string? VerificationStatus { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>If micro-deposit verification is being used, indicates whether the account being verified is a <c>business</c> or <c>personal</c> account.</para> | ||
/// </summary> | ||
[JsonPropertyName("class_type")] | ||
public string? ClassType { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>An institution object. If the Item was created via Same-Day micro-deposit verification, will be <c>null</c>.</para> | ||
/// </summary> | ||
public record LinkSessionSuccessMetadataInstitution | ||
{ | ||
/// <summary> | ||
/// <para>The full institution name, such as <c>'Wells Fargo'</c></para> | ||
/// </summary> | ||
[JsonPropertyName("name")] | ||
public string? Name { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The Plaid institution identifier</para> | ||
/// </summary> | ||
[JsonPropertyName("institution_id")] | ||
public string? InstitutionId { get; init; } = default!; | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Plaid/Entity/LinkSessionSuccessMetadataTransferStatus.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public enum LinkSessionSuccessMetadataTransferStatus | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "COMPLETE")] | ||
Complete, | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "INCOMPLETE")] | ||
Incomplete, | ||
|
||
/// <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, | ||
} |
Oops, something went wrong.