Skip to content

Commit

Permalink
Update to Plaid v1.421.0
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin committed Aug 25, 2023
1 parent de23bf1 commit cd6534e
Show file tree
Hide file tree
Showing 11 changed files with 79 additions and 14 deletions.
2 changes: 1 addition & 1 deletion plaid-openapi
Submodule plaid-openapi updated 2 files
+102 −6 2020-09-14.yml
+15 −0 CHANGELOG.md
2 changes: 1 addition & 1 deletion src/Plaid/Credit/CreditRelayGetRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial class CreditRelayGetRequest : RequestBase
public string RelayToken { get; set; } = default!;

/// <summary>
/// <para>The report type. It can be <c>assets</c> or <c>income</c>.</para>
/// <para>The report type. It can be <c>asset</c>. Income report types are not yet supported.</para>
/// </summary>
[JsonPropertyName("report_type")]
public Entity.ReportType ReportType { get; set; } = default!;
Expand Down
2 changes: 1 addition & 1 deletion src/Plaid/Credit/CreditRelayRefreshRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial class CreditRelayRefreshRequest : RequestBase
public string RelayToken { get; set; } = default!;

/// <summary>
/// <para>The report type. It can be <c>assets</c> or <c>income</c>.</para>
/// <para>The report type. It can be <c>asset</c>. Income report types are not yet supported.</para>
/// </summary>
[JsonPropertyName("report_type")]
public Entity.ReportType ReportType { get; set; } = default!;
Expand Down
4 changes: 2 additions & 2 deletions src/Plaid/Entity/ConsumerReportPermissiblePurpose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public enum ConsumerReportPermissiblePurpose
/// <summary>
/// <para>For a legitimate business need in connection with a business transaction made primarily for personal, family, or household initiated by the consumer pursuant to FCRA Section 604(a)(3)(F)(i).</para>
/// </summary>
[EnumMember(Value = "LEGITIMATE_BUSINESS_NEED_TENANT_OTHER")]
LegitimateBusinessNeedTenantOther,
[EnumMember(Value = "LEGITIMATE_BUSINESS_NEED_OTHER")]
LegitimateBusinessNeedOther,

/// <summary>
/// <para>In accordance with the written instructions of the consumer pursuant to FCRA Section 604(a)(2), to evaluate an application’s profile to make an offer to the consumer.</para>
Expand Down
6 changes: 6 additions & 0 deletions src/Plaid/Entity/ProcessorTokenCreateRequestProcessorEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ public enum ProcessorTokenCreateRequestProcessorEnum
[EnumMember(Value = "bakkt")]
Bakkt,

/// <summary>
///
/// </summary>
[EnumMember(Value = "teal")]
Teal,

/// <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>
Expand Down
12 changes: 3 additions & 9 deletions src/Plaid/Entity/ReportType.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
namespace Going.Plaid.Entity;

/// <summary>
/// <para>The report type. It can be <c>assets</c> or <c>income</c>.</para>
/// <para>The report type. It can be <c>asset</c>. Income report types are not yet supported.</para>
/// </summary>
public enum ReportType
{
/// <summary>
///
/// </summary>
[EnumMember(Value = "assets")]
Assets,

/// <summary>
///
/// </summary>
[EnumMember(Value = "income")]
Income,
[EnumMember(Value = "asset")]
Asset,

/// <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>
Expand Down
12 changes: 12 additions & 0 deletions src/Plaid/Entity/TransferDiligenceStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ namespace Going.Plaid.Entity;
/// </summary>
public enum TransferDiligenceStatus
{
/// <summary>
///
/// </summary>
[EnumMember(Value = "not_submitted")]
NotSubmitted,

/// <summary>
///
/// </summary>
[EnumMember(Value = "submitted")]
Submitted,

/// <summary>
///
/// </summary>
Expand Down
19 changes: 19 additions & 0 deletions src/Plaid/Entity/TransferLedgerBalance.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
namespace Going.Plaid.Entity;

/// <summary>
/// <para>Information about the balance of the ledger held with Plaid.</para>
/// </summary>
public record TransferLedgerBalance
{
/// <summary>
/// <para>The amount of this balance available for use (decimal string with two digits of precision e.g. "10.00").</para>
/// </summary>
[JsonPropertyName("available")]
public string Available { get; init; } = default!;

/// <summary>
/// <para>The amount of pending funds that are in processing (decimal string with two digits of precision e.g. "10.00").</para>
/// </summary>
[JsonPropertyName("pending")]
public string Pending { get; init; } = default!;
}
8 changes: 8 additions & 0 deletions src/Plaid/Transfer/PlaidClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ public sealed partial class PlaidClient
PostAsync("/transfer/configuration/get", request)
.ParseResponseAsync<Transfer.TransferConfigurationGetResponse>();

/// <summary>
/// <para>Use the <c>/transfer/ledger/get</c> endpoint to view a balance on the ledger held with Plaid.</para>
/// </summary>
/// <remarks><see href="https://plaid.com/docs/api/products/transfer/#transferledgerget" /></remarks>
public Task<Transfer.TransferLedgerGetResponse> TransferLedgerGetAsync(Transfer.TransferLedgerGetRequest request) =>
PostAsync("/transfer/ledger/get", request)
.ParseResponseAsync<Transfer.TransferLedgerGetResponse>();

/// <summary>
/// <para>Use the <c>/transfer/metrics/get</c> endpoint to view your transfer product usage metrics.</para>
/// </summary>
Expand Down
13 changes: 13 additions & 0 deletions src/Plaid/Transfer/TransferLedgerGetRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace Going.Plaid.Transfer;

/// <summary>
/// <para>Defines the request schema for <c>/transfer/ledger/get</c></para>
/// </summary>
public partial class TransferLedgerGetRequest : RequestBase
{
/// <summary>
/// <para>Client ID of the end customer.</para>
/// </summary>
[JsonPropertyName("originator_client_id")]
public string? OriginatorClientId { get; set; } = default!;
}
13 changes: 13 additions & 0 deletions src/Plaid/Transfer/TransferLedgerGetResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace Going.Plaid.Transfer;

/// <summary>
/// <para>Defines the response schema for <c>/transfer/ledger/get</c></para>
/// </summary>
public record TransferLedgerGetResponse : ResponseBase
{
/// <summary>
/// <para>Information about the balance of the ledger held with Plaid.</para>
/// </summary>
[JsonPropertyName("balance")]
public Entity.TransferLedgerBalance Balance { get; init; } = default!;
}

0 comments on commit cd6534e

Please sign in to comment.