-
-
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
a0ec2fa
commit 4c31792
Showing
50 changed files
with
457 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Going.Plaid.Beacon; | ||
|
||
/// <summary> | ||
/// <para>Request input for getting a Beacon Duplicate</para> | ||
/// </summary> | ||
public partial class BeaconDuplicateGetRequest : RequestBase | ||
{ | ||
/// <summary> | ||
/// <para>ID of the associated Beacon Duplicate.</para> | ||
/// </summary> | ||
[JsonPropertyName("beacon_duplicate_id")] | ||
public string BeaconDuplicateId { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
namespace Going.Plaid.Beacon; | ||
|
||
/// <summary> | ||
/// <para>A Beacon Duplicate represents a pair of matching Beacon Users and an analysis of the fields they matched on.</para> | ||
/// </summary> | ||
public record BeaconDuplicateGetResponse : ResponseBase | ||
{ | ||
/// <summary> | ||
/// <para>ID of the associated Beacon Duplicate.</para> | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public string Id { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A Beacon User Revision identifies a Beacon User at some point in its revision history.</para> | ||
/// </summary> | ||
[JsonPropertyName("beacon_user1")] | ||
public Entity.BeaconUserRevision BeaconUser1 { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A Beacon User Revision identifies a Beacon User at some point in its revision history.</para> | ||
/// </summary> | ||
[JsonPropertyName("beacon_user2")] | ||
public Entity.BeaconUserRevision BeaconUser2 { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Analysis of which fields matched between one Beacon User and another.</para> | ||
/// </summary> | ||
[JsonPropertyName("analysis")] | ||
public Entity.BeaconMatchSummaryAnalysis Analysis { 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
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,50 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Analysis of which fields matched between one Beacon User and another.</para> | ||
/// </summary> | ||
public record BeaconMatchSummaryAnalysis | ||
{ | ||
/// <summary> | ||
/// <para>An enum indicating the match type between two Beacon Users.</para> | ||
/// </summary> | ||
[JsonPropertyName("address")] | ||
public Entity.BeaconMatchSummaryCode Address { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An enum indicating the match type between two Beacon Users.</para> | ||
/// </summary> | ||
[JsonPropertyName("date_of_birth")] | ||
public Entity.BeaconMatchSummaryCode DateOfBirth { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An enum indicating the match type between two Beacon Users.</para> | ||
/// </summary> | ||
[JsonPropertyName("email_address")] | ||
public Entity.BeaconMatchSummaryCode EmailAddress { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An enum indicating the match type between two Beacon Users.</para> | ||
/// </summary> | ||
[JsonPropertyName("name")] | ||
public Entity.BeaconMatchSummaryCode Name { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An enum indicating the match type between two Beacon Users.</para> | ||
/// </summary> | ||
[JsonPropertyName("id_number")] | ||
public Entity.BeaconMatchSummaryCode IdNumber { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An enum indicating the match type between two Beacon Users.</para> | ||
/// </summary> | ||
[JsonPropertyName("ip_address")] | ||
public Entity.BeaconMatchSummaryCode IpAddress { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An enum indicating the match type between two Beacon Users.</para> | ||
/// </summary> | ||
[JsonPropertyName("phone_number")] | ||
public Entity.BeaconMatchSummaryCode PhoneNumber { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>A Beacon User Revision identifies a Beacon User at some point in its revision history.</para> | ||
/// </summary> | ||
public record BeaconUserRevision | ||
{ | ||
/// <summary> | ||
/// <para>ID of the associated Beacon User.</para> | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public string Id { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The <c>version</c> field begins with 1 and increments with each subsequent revision.</para> | ||
/// </summary> | ||
[JsonPropertyName("version")] | ||
public int Version { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Even if an address has been autofilled, some fields may be null depending on the region's addressing system. For example:</para> | ||
/// <para>Addresses from the United Kingdom will not include a region</para> | ||
/// <para>Addresses from Hong Kong will not include postal code</para> | ||
/// </summary> | ||
public record IdentityVerificationAutofillAddress | ||
{ | ||
/// <summary> | ||
/// <para>The primary street portion of an address. If an address is provided, this field will always be filled.</para> | ||
/// </summary> | ||
[JsonPropertyName("street")] | ||
public string Street { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Extra street information, like an apartment or suite number.</para> | ||
/// </summary> | ||
[JsonPropertyName("street2")] | ||
public string? Street2 { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>City from the end user's address</para> | ||
/// </summary> | ||
[JsonPropertyName("city")] | ||
public string? City { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An ISO 3166-2 subdivision code. Related terms would be "state", "province", "prefecture", "zone", "subdivision", etc.</para> | ||
/// </summary> | ||
[JsonPropertyName("region")] | ||
public string? Region { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The postal code for the associated address. Between 2 and 10 alphanumeric characters. For US-based addresses this must be 5 numeric digits.</para> | ||
/// </summary> | ||
[JsonPropertyName("postal_code")] | ||
public string? PostalCode { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Valid, capitalized, two-letter ISO code representing the country of this object. Must be in ISO 3166-1 alpha-2 form.</para> | ||
/// </summary> | ||
[JsonPropertyName("country")] | ||
public string Country { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Field describing whether the associated address is a post office box. Will be <c>yes</c> when a P.O. box is detected, <c>no</c> when Plaid confirmed the address is not a P.O. box, and <c>no_data</c> when Plaid was not able to determine if the address is a P.O. box.</para> | ||
/// </summary> | ||
[JsonPropertyName("po_box")] | ||
public Entity.POBoxStatus PoBox { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[JsonPropertyName("type")] | ||
public Entity.AddressPurposeLabel Type { 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,26 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>A status enum indicating whether autofill succeeded or failed.</para> | ||
/// </summary> | ||
public enum IdentityVerificationAutofillStatus | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "success")] | ||
Success, | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[EnumMember(Value = "failed")] | ||
Failed, | ||
|
||
/// <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,28 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>User information that was autofilled. All this information should be confirmed by the user before using.</para> | ||
/// </summary> | ||
public record IdentityVerificationAutofillUserData | ||
{ | ||
/// <summary> | ||
/// <para>The full name provided by the user. If the user has not submitted their name, this field will be null. Otherwise, both fields are guaranteed to be filled.</para> | ||
/// </summary> | ||
[JsonPropertyName("name")] | ||
public Entity.IdentityVerificationResponseUserName? Name { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Even if an address has been autofilled, some fields may be null depending on the region's addressing system. For example:</para> | ||
/// <para>Addresses from the United Kingdom will not include a region</para> | ||
/// <para>Addresses from Hong Kong will not include postal code</para> | ||
/// </summary> | ||
[JsonPropertyName("address")] | ||
public Entity.IdentityVerificationAutofillAddress? Address { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>ID number submitted by the user, currently used only for the Identity Verification product. If the user has not submitted this data yet, this field will be <c>null</c>. Otherwise, both fields are guaranteed to be filled.</para> | ||
/// </summary> | ||
[JsonPropertyName("id_number")] | ||
public Entity.UserIDNumber? IdNumber { 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
Oops, something went wrong.