private async Task <GetSessionResponseAfterChannelDataSupplied> Update3dsMethodCompletionIndicator( string sessionId, ThreeDsMethodCompletionRequest threeDsMethodCompletionRequest, SdkAuthorization sdkAuthorization, CancellationToken cancellationToken = default) { return(await ApiClient.Put <GetSessionResponseAfterChannelDataSupplied>( BuildPath(SessionsPath, sessionId, IssuerFingerprintPath), sdkAuthorization, threeDsMethodCompletionRequest, cancellationToken)); }
private async Task ShouldUpdate3dsMethodCompletionIndicator(bool usingSessionSecret) { var createSessionResponse = await CreateHostedSession(); createSessionResponse.ShouldNotBeNull(); createSessionResponse.Accepted.ShouldNotBeNull(); var created = createSessionResponse.Accepted; var threeDsMethodCompletionRequest = new ThreeDsMethodCompletionRequest() { ThreeDsMethodCompletion = ThreeDsMethodCompletion.Y }; GetSessionResponseAfterChannelDataSupplied updated = usingSessionSecret ? await DefaultApi.SessionsClient().Update3dsMethodCompletionIndicator(created.Id, threeDsMethodCompletionRequest, CancellationToken.None) : await DefaultApi.SessionsClient().Update3dsMethodCompletionIndicator(created.SessionSecret, created.Id, threeDsMethodCompletionRequest, CancellationToken.None); updated.ShouldNotBeNull(); updated.HttpStatusCode.ShouldNotBeNull(); updated.ResponseHeaders.ShouldNotBeNull(); }
public Task <GetSessionResponseAfterChannelDataSupplied> Update3dsMethodCompletionIndicator(string sessionSecret, string sessionId, ThreeDsMethodCompletionRequest threeDsMethodCompletionRequest, CancellationToken cancellationToken = default) { CheckoutUtils.ValidateParams("sessionSecret", sessionSecret, "sessionId", sessionId, "threeDsMethodCompletionRequest", threeDsMethodCompletionRequest); return(Update3dsMethodCompletionIndicator(sessionId, threeDsMethodCompletionRequest, SessionSecretAuthorization(sessionSecret), cancellationToken)); }