Skip to content

Commit

Permalink
chore(ACL-107): Add metadata to GetPayoutsResponse (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
tl-Roberto-Mancinelli authored Nov 7, 2024
1 parent e5f4be0 commit 0f5e668
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/TrueLayer/Payouts/Model/GetPayoutsResponse.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using OneOf;
using TrueLayer.Serialization;
Expand Down Expand Up @@ -61,6 +62,11 @@ public record PayoutDetails
/// Gets the scheme id
/// </summary>
public string? SchemeId { get; init; } = null;

/// <summary>
/// Gets metadata of the payout
/// </summary>
public Dictionary<string, string>? Metadata { get; init; }
}

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions test/TrueLayer.AcceptanceTests/PayoutTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public async Task Can_get_payout()
details.Beneficiary.AsT1.ShouldNotBeNull();
details.Status.ShouldBeOneOf("pending", "authorized", "executed", "failed");
details.CreatedAt.ShouldNotBeOneOf(DateTime.MinValue, DateTime.MaxValue);
details.Metadata.ShouldBe(payoutRequest.Metadata);
}

public Task DisposeAsync() => Task.CompletedTask;
Expand Down

0 comments on commit 0f5e668

Please sign in to comment.