Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

payment transaction data #269

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

payment transaction data #269

wants to merge 5 commits into from

Conversation

Dindexx
Copy link
Contributor

@Dindexx Dindexx commented Feb 14, 2025

Short description of what this resolves:

  • Adds support for transaction data

Changes proposed in this pull request:

Fixes: #

@Dindexx Dindexx requested a review from JoTiTu February 14, 2025 01:41
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Copy link
Contributor

@JoTiTu JoTiTu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor findings

namespace WalletFramework.Core.Uri;

public static class UriFun
{
public static string ToStringWithoutTrail(this System.Uri uri) => uri.ToString().TrimEnd('/');

public static Option<System.Uri> TryToParseUri(string uriString)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused. Is it needed?

@@ -0,0 +1,15 @@
namespace WalletFramework.Oid4Vc.Oid4Vp.Errors;

public record AccessDeniedError : VpError
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • seems unused
  • const can be private

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be used by the fw consumer

@@ -0,0 +1,15 @@
namespace WalletFramework.Oid4Vc.Oid4Vp.Errors;

public record InvalidRequestError : VpError
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • const can be private

/// associated with the OpenID4VP Authorization Request Url and Credentials Candidates that can be used to answer the
/// request.
/// </returns>
// Task<Validation<AuthorizationRequestCandidates>> ProcessAuthorizationRequestUri(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover code

@@ -16,4 +16,6 @@ public class SelectedCredential
/// Gets or Sets the Credential that is used to answer the input descriptor.
/// </summary>
public ICredential Credential { get; set; } = null!;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty lines


public record InvalidTransactionDataError : VpError
{
public const string Code = "invalid_transaction_data";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be private

@@ -312,7 +322,8 @@ from claim in sdJwtRecord.Claims

try
{
return DeserializeObject<AuthorizationResponseCallback>(redirectUriJson);
Uri callback = DeserializeObject<AuthorizationResponseCallback>(redirectUriJson);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug leftover?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for implicit casting

@@ -584,7 +640,8 @@ from claim in sdJwtRecord.Claims

try
{
return DeserializeObject<AuthorizationResponseCallback>(redirectUriJson);
Uri callbackUri = DeserializeObject<AuthorizationResponseCallback>(redirectUriJson);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug leftover?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see first message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants