-
-
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
7191a34
commit ec01acb
Showing
56 changed files
with
563 additions
and
40 deletions.
There are no files selected for viewing
Submodule plaid-openapi
updated
3 files
+728 −159 | 2020-09-14.yml | |
+61 −1 | CHANGELOG.md | |
+1 −1 | README.md |
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.Beacon; | ||
|
||
/// <summary> | ||
/// <para>Request input for getting a Beacon Report Syndication</para> | ||
/// </summary> | ||
public partial class BeaconReportSyndicationGetRequest : RequestBase | ||
{ | ||
/// <summary> | ||
/// <para>ID of the associated Beacon Report Syndication.</para> | ||
/// </summary> | ||
[JsonPropertyName("beacon_report_syndication_id")] | ||
public string BeaconReportSyndicationId { 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,28 @@ | ||
namespace Going.Plaid.Beacon; | ||
|
||
/// <summary> | ||
/// <para>A Beacon Report Syndication represents a Beacon Report created either by your organization or another Beacon customer that matches a specific Beacon User you've created.</para> | ||
/// <para>The <c>analysis</c> field in the response indicates which fields matched between the originally reported Beacon User and the Beacon User that the report was syndicated to.</para> | ||
/// <para>The <c>report</c> field in the response contains a subset of information from the original report.</para> | ||
/// </summary> | ||
public record BeaconReportSyndicationGetResponse : ResponseBase | ||
{ | ||
/// <summary> | ||
/// <para>ID of the associated Beacon Report Syndication.</para> | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public string Id { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A subset of information from a Beacon Report that has been syndicated to a matching Beacon User in your program.</para> | ||
/// <para>The <c>id</c> field in the response is the ID of the original report that was syndicated. If the original report was created by your organization, the field will be filled with the ID of the report. Otherwise, the field will be <c>null</c> indicating that the original report was created by another Beacon customer.</para> | ||
/// </summary> | ||
[JsonPropertyName("report")] | ||
public Entity.BeaconReportSyndicationOriginalReport Report { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Analysis of which fields matched between the originally reported Beacon User and the Beacon User that the report was syndicated to.</para> | ||
/// </summary> | ||
[JsonPropertyName("analysis")] | ||
public Entity.BeaconReportSyndicationAnalysis 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Going.Plaid.Beacon; | ||
|
||
/// <summary> | ||
/// <para>Request input for updating the identity data of a Beacon User.</para> | ||
/// </summary> | ||
public partial class BeaconUserUpdateRequest : RequestBase | ||
{ | ||
/// <summary> | ||
/// <para>ID of the associated Beacon User.</para> | ||
/// </summary> | ||
[JsonPropertyName("beacon_user_id")] | ||
public string BeaconUserId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A subset of a Beacon User's data which is used to patch the existing identity data associated with a Beacon User. At least one field must be provided,.</para> | ||
/// </summary> | ||
[JsonPropertyName("user")] | ||
public Entity.BeaconUserUpdateRequestData User { 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,55 @@ | ||
namespace Going.Plaid.Beacon; | ||
|
||
/// <summary> | ||
/// <para>A Beacon User represents an end user that has been scanned against the Beacon Network.</para> | ||
/// </summary> | ||
public record BeaconUserUpdateResponse : ResponseBase | ||
{ | ||
/// <summary> | ||
/// <para>ID of the associated Beacon User.</para> | ||
/// </summary> | ||
[JsonPropertyName("id")] | ||
public string Id { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An ISO8601 formatted timestamp.</para> | ||
/// </summary> | ||
[JsonPropertyName("created_at")] | ||
public DateTimeOffset CreatedAt { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An ISO8601 formatted timestamp. This field indicates the last time the resource was modified.</para> | ||
/// </summary> | ||
[JsonPropertyName("updated_at")] | ||
public DateTimeOffset UpdatedAt { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A status of a Beacon User.</para> | ||
/// </summary> | ||
[JsonPropertyName("status")] | ||
public Entity.BeaconUserStatus Status { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>ID of the associated Beacon Program.</para> | ||
/// </summary> | ||
[JsonPropertyName("program_id")] | ||
public string ProgramId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A unique ID that identifies the end user in your system. This ID can also be used to associate user-specific data from other Plaid products. Financial Account Matching requires this field and the <c>/link/token/create</c> <c>client_user_id</c> to be consistent. Personally identifiable information, such as an email address or phone number, should not be used in the <c>client_user_id</c>.</para> | ||
/// </summary> | ||
[JsonPropertyName("client_user_id")] | ||
public string ClientUserId { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A Beacon User's data and resulting analysis when checked against duplicate records and the Beacon Fraud Network.</para> | ||
/// </summary> | ||
[JsonPropertyName("user")] | ||
public Entity.BeaconUserData User { 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
32 changes: 32 additions & 0 deletions
32
src/Plaid/Entity/AccountsBalanceGetRequestPaymentDetails.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,32 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>An optional object containing payment details. If set, a payment risk assessment is performed and returned as AccountsBalanceGetResponsePaymentRiskAssessment.</para> | ||
/// </summary> | ||
public class AccountsBalanceGetRequestPaymentDetails | ||
{ | ||
/// <summary> | ||
/// <para>The Plaid <c>account_id</c> of the account that is the funding source for the proposed transaction. The <c>account_id</c> is returned in the <c>/accounts/get</c> endpoint as well as the <a href="https://plaid.com/docs/link/ios/#link-ios-onsuccess-linkSuccess-metadata-accounts-id"><c>onSuccess</c></a> callback metadata.</para> | ||
/// <para>This will return an <a href="https://plaid.com/docs/errors/invalid-input/#invalid_account_id"><c>INVALID_ACCOUNT_ID</c></a> error if the account has been removed at the bank or if the <c>account_id</c> is no longer valid.</para> | ||
/// </summary> | ||
[JsonPropertyName("account_id")] | ||
public string? AccountId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The unique ID that you would like to use to refer to this transaction. For your convenience mapping your internal data, you could use your internal identifier for this transaction. The max length for this field is 36 characters.</para> | ||
/// </summary> | ||
[JsonPropertyName("client_transaction_id")] | ||
public string? ClientTransactionId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The transaction amount, in USD (e.g. <c>102.05</c>)</para> | ||
/// </summary> | ||
[JsonPropertyName("amount")] | ||
public decimal? Amount { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The threshold percentage of the account balance used for comparison with the requested ACH debit amount.</para> | ||
/// </summary> | ||
[JsonPropertyName("balance_threshold_percentage")] | ||
public int? BalanceThresholdPercentage { get; set; } = default!; | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Plaid/Entity/AccountsBalanceGetResponsePaymentRiskAssessment.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,19 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>This object provides detailed risk assessment for the requested transaction</para> | ||
/// </summary> | ||
public record AccountsBalanceGetResponsePaymentRiskAssessment | ||
{ | ||
/// <summary> | ||
/// <para>A five-tier risk assessment for the transaction based on the probability of return.</para> | ||
/// </summary> | ||
[JsonPropertyName("risk_level")] | ||
public string? RiskLevel { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Indicates whether the requested ACH debit amount is greater than the threshold (set by customers) of the available or current balance.</para> | ||
/// </summary> | ||
[JsonPropertyName("exceeds_balance_threshold")] | ||
public bool? ExceedsBalanceThreshold { 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,49 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>A subset of a Beacon User's data which is used to patch the existing identity data associated with a Beacon User. At least one field must be provided,.</para> | ||
/// </summary> | ||
public class BeaconUserUpdateRequestData | ||
{ | ||
/// <summary> | ||
/// <para>A date in the format YYYY-MM-DD (RFC 3339 Section 5.6).</para> | ||
/// </summary> | ||
[JsonPropertyName("date_of_birth")] | ||
public DateOnly? DateOfBirth { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The full name for a given Beacon User.</para> | ||
/// </summary> | ||
[JsonPropertyName("name")] | ||
public Entity.BeaconUserName? Name { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>Home address for the associated user. For more context on this field, see <a href="https://plaid.com/docs/identity-verification/hybrid-input-validation/#input-validation-by-country">Input Validation by Country</a>.</para> | ||
/// </summary> | ||
[JsonPropertyName("address")] | ||
public Entity.BeaconUserRequestAddress? Address { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A valid email address.</para> | ||
/// </summary> | ||
[JsonPropertyName("email_address")] | ||
public string? EmailAddress { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>A phone number in E.164 format.</para> | ||
/// </summary> | ||
[JsonPropertyName("phone_number")] | ||
public string? PhoneNumber { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>The ID number associated with a Beacon User.</para> | ||
/// </summary> | ||
[JsonPropertyName("id_number")] | ||
public Entity.BeaconUserIDNumber? IdNumber { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// <para>An IPv4 or IPV6 address.</para> | ||
/// </summary> | ||
[JsonPropertyName("ip_address")] | ||
public string? IpAddress { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Going.Plaid.Entity; | ||
|
||
/// <summary> | ||
/// <para>Document object with metadata of the document uploaded</para> | ||
/// </summary> | ||
public record IdentityDocument | ||
{ | ||
/// <summary> | ||
/// <para>In closed beta. Object representing metadata pertaining to the document.</para> | ||
/// </summary> | ||
[JsonPropertyName("metadata")] | ||
public Entity.IdentityDocumentMetadata? Metadata { get; init; } = default!; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[JsonPropertyName("document_id")] | ||
public string? DocumentId { get; init; } = default!; | ||
} |
Oops, something went wrong.