Skip to content

Commit 0f5e668

Browse files
chore(ACL-107): Add metadata to GetPayoutsResponse (#222)
1 parent e5f4be0 commit 0f5e668

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/TrueLayer/Payouts/Model/GetPayoutsResponse.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Generic;
23
using System.Text.Json.Serialization;
34
using OneOf;
45
using TrueLayer.Serialization;
@@ -61,6 +62,11 @@ public record PayoutDetails
6162
/// Gets the scheme id
6263
/// </summary>
6364
public string? SchemeId { get; init; } = null;
65+
66+
/// <summary>
67+
/// Gets metadata of the payout
68+
/// </summary>
69+
public Dictionary<string, string>? Metadata { get; init; }
6470
}
6571

6672
/// <summary>

test/TrueLayer.AcceptanceTests/PayoutTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public async Task Can_get_payout()
5858
details.Beneficiary.AsT1.ShouldNotBeNull();
5959
details.Status.ShouldBeOneOf("pending", "authorized", "executed", "failed");
6060
details.CreatedAt.ShouldNotBeOneOf(DateTime.MinValue, DateTime.MaxValue);
61+
details.Metadata.ShouldBe(payoutRequest.Metadata);
6162
}
6263

6364
public Task DisposeAsync() => Task.CompletedTask;

0 commit comments

Comments
 (0)