From 48432ee5e6626deb4128162d7b4a9d447a72a2a5 Mon Sep 17 00:00:00 2001 From: "michal.szpruta" Date: Thu, 10 Aug 2017 13:27:56 +0200 Subject: [PATCH] Version 2.43 - update --- pom.xml | 2 +- .../api/model/enums/APIPaymentMethod.java | 23 +++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 82508b01..c98cfc91 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.testdroid testdroid-api - 2.43-SNAPSHOT + 2.43 jar Testdroid API v2 https://github.com/bitbar/testdroid-api diff --git a/src/main/java/com/testdroid/api/model/enums/APIPaymentMethod.java b/src/main/java/com/testdroid/api/model/enums/APIPaymentMethod.java index 7e62ca35..4608cdb9 100644 --- a/src/main/java/com/testdroid/api/model/enums/APIPaymentMethod.java +++ b/src/main/java/com/testdroid/api/model/enums/APIPaymentMethod.java @@ -1,13 +1,28 @@ package com.testdroid.api.model.enums; +import static java.lang.Boolean.*; /** * @author Ɓukasz Kajda */ public enum APIPaymentMethod { PAYPAL, - BRAINTREE, - INVOICE, + BRAINTREE(TRUE), + INVOICE(FALSE), PROMOTION, - BLUEMIX, - AWS + BLUEMIX(TRUE), + AWS(FALSE); + + private Boolean allowUpdate; + + private APIPaymentMethod(){ + + } + + private APIPaymentMethod(Boolean allowUpdate){ + this.allowUpdate = allowUpdate; + } + + public Boolean getAllowUpdate() { + return allowUpdate; + } }