-
-
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
cbb61a1
commit 45f40d1
Showing
16 changed files
with
150 additions
and
40 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,13 @@ | ||
namespace Going.Plaid.Beacon; | ||
|
||
/// <summary> | ||
/// <para>Request input for getting a Beacon Report</para> | ||
/// </summary> | ||
public partial class BeaconReportGetRequest : RequestBase | ||
{ | ||
/// <summary> | ||
/// <para>ID of the associated Beacon Report.</para> | ||
/// </summary> | ||
[JsonPropertyName("beacon_report_id")] | ||
public string BeaconReportId { 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,53 @@ | ||
namespace Going.Plaid.Beacon; | ||
|
||
/// <summary> | ||
/// <para>A Beacon Report describes the type of fraud committed by a user as well as the date the fraud was committed and the total amount of money lost due to the fraud incident.</para> | ||
/// <para>This information is used to block similar fraud attempts on your platform as well as alert other companies who screen a user with matching identity information.</para> | ||
/// <para>Other companies will not receive any new identity information, just what matched, plus information such as industry, type of fraud, and date of fraud.</para> | ||
/// <para>You can manage your fraud reports by adding, deleting, or editing reports as you get additional information on fraudulent users.</para> | ||
/// </summary> | ||
public record BeaconReportGetResponse : ResponseBase | ||
{ | ||
/// <summary> | ||
/// <para>ID of the associated Beacon Report.</para> | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public string Id { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>ID of the associated Beacon User.</para> | ||
/// </summary> | ||
[JsonPropertyName("beacon_user_id")] | ||
public string BeaconUserId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An ISO8601 formatted timestamp.</para> | ||
/// </summary> | ||
[JsonPropertyName("created_at")] | ||
public DateTimeOffset CreatedAt { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The type of Beacon Report.</para> | ||
/// </summary> | ||
[JsonPropertyName("type")] | ||
public Entity.BeaconReportType Type { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A date in the format YYYY-MM-DD (RFC 3339 Section 5.6).</para> | ||
/// </summary> | ||
[JsonPropertyName("fraud_date")] | ||
public DateOnly FraudDate { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The amount and currency of the fraud or attempted fraud.</para> | ||
/// <para><c>fraud_amount</c> should be omitted to indicate an unknown fraud amount.</para> | ||
/// </summary> | ||
[JsonPropertyName("fraud_amount")] | ||
public Entity.FraudAmount? FraudAmount { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Information about the last change made to the parent object specifying what caused the change as well as when it occurred.</para> | ||
/// </summary> | ||
[JsonPropertyName("audit_trail")] | ||
public Entity.BeaconAuditTrail AuditTrail { 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,13 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>A map containing data to pass in for the Card Switch flow.</para> | ||
/// </summary> | ||
public class LinkTokenCreateCardSwitch | ||
{ | ||
/// <summary> | ||
/// <para>The BIN (Bank Identification Number) of the card to switch.</para> | ||
/// </summary> | ||
[JsonPropertyName("card_bin")] | ||
public string CardBin { 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
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 was deleted.
Oops, something went wrong.
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,33 @@ | ||
namespace Going.Plaid.Webhook; | ||
|
||
/// <summary> | ||
/// <para>Contains the state of a hosted same-day microdeposits verification session.</para> | ||
/// </summary> | ||
public record HostedMMDVerificationWebhook : WebhookBase | ||
{ | ||
/// <inheritdoc /> | ||
[JsonPropertyName("webhook_type")] | ||
public override WebhookType WebhookType => WebhookType.Auth; | ||
|
||
/// <inheritdoc /> | ||
[JsonPropertyName("webhook_code")] | ||
public override WebhookCode WebhookCode => WebhookCode.HostedVerification; | ||
|
||
/// <summary> | ||
/// <para>The final status of the same-day microdeposits verification. Will always be "MANUALLY_VERIFIED" or "VERIFICATION_FAILED".</para> | ||
/// </summary> | ||
[JsonPropertyName("status")] | ||
public string Status { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The <c>item_id</c> of the Item associated with this webhook, warning, or error</para> | ||
/// </summary> | ||
[JsonPropertyName("item_id")] | ||
public string ItemId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The external account ID of the affected account</para> | ||
/// </summary> | ||
[JsonPropertyName("account_id")] | ||
public string AccountId { get; init; } = default!; | ||
} |