Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/main/java/com/adyen/model/PaymentResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ public enum ResultCodeEnum {
IDENTIFYSHOPPER("IdentifyShopper"),

@SerializedName("ChallengeShopper")
CHALLENGESHOPPER("ChallengeShopper");
CHALLENGESHOPPER("ChallengeShopper"),

@SerializedName("AuthenticationFinished")
AUTHENTICATIONFINISHED("AuthenticationFinished");

private String value;

Expand Down
39 changes: 39 additions & 0 deletions src/test/java/com/adyen/PaymentResultTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen Java API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/

package com.adyen;

import com.adyen.model.PaymentResult;
import com.google.gson.Gson;
import org.junit.Test;

import static org.junit.Assert.assertNotNull;

public class PaymentResultTest extends BaseTest {

@Test
public void TestAuthenticationFinishedResultCodeDeserialization() {
Gson gson = new Gson();
String response = "{\"resultCode\": \"AuthenticationFinished\"}";
PaymentResult result = gson.fromJson(response, PaymentResult.class);
assertNotNull(result.getResultCode());
}
}