Incorrect datamember name used in payer auth response object

Open Beginner friendly
#235 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
csharp
Domain
api

Research direction

Open RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.cs and inspect the AccessToken data member used by PayerAuthenticationAPI.CheckPayerAuthEnrollment(). Compare it with the /risk/v1/authentications response described in the issue; done means the returned "token" value populates apiResponse.ConsumerAuthenticationInformation.AccessToken.

Written by the indexing model from the issue text.

Description

Description

The response object for the /risk/v1/authentications API endpoint is not using the correct field name for the consumerAuthenticationInformation object. RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.AccessToken uses "accessToken" as the datamember but the API returns "token" so this isn't parsed correctly.

Affected sources files
  • RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.cs
Affected methods

PayerAuthenticationAPI:

  • CheckPayerAuthEnrollment()
Steps to reproduce
Dim apiInstance = New PayerAuthenticationApi(ClientConfiguration)
Dim apiResponse = apiInstance.CheckPayerAuthEnrollment(checkEnrollmentRequest)
//Access token will be null
apiResponse.ConsumerAuthenticationInformation.AccessToken 
Dominant language
C#
Stars
25
Forks
50
Avg merge
4h 26m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CyberSource/cybersource-rest-client-dotnet

All issues in CyberSource/cybersource-rest-client-dotnet

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.