Skip to content

Commit

Permalink
[ACL-222] Add support for StatementReference in MerchantAccount (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
tl-Roberto-Mancinelli authored Dec 2, 2024
1 parent 852d7b9 commit eb939b4
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 112 deletions.
6 changes: 6 additions & 0 deletions src/TrueLayer/Payments/Model/Beneficiary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public MerchantAccount(string merchantAccountId)
/// Gets or inits verification information for the payment.
/// </summary>
public VerificationUnion? Verification { get; init; }

/// <summary>
/// Gets or inits A statement reference for a payment reference that should be set on the end user's statement.
/// Not all banks support setting such a reference, this value will be used wherever possible.
/// </summary>
public string? StatementReference { get; init; }
}

/// <summary>
Expand Down
5 changes: 3 additions & 2 deletions test/TrueLayer.AcceptanceTests/MerchantAccountsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ var getPaymentSourcesResponse
}

private static CreatePaymentRequest CreatePaymentRequest(string merchantId)
=> new CreatePaymentRequest(
=> new(
100,
Currencies.GBP,
new PaymentMethod.BankTransfer(
Expand All @@ -227,7 +227,8 @@ private static CreatePaymentRequest CreatePaymentRequest(string merchantId)
{
RemitterName = true,
RemitterDateOfBirth = false
}
},
StatementReference = "Statement ref",
}),
new PaymentUserRequest(
name: "Jane Doe",
Expand Down
Loading

0 comments on commit eb939b4

Please sign in to comment.