You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/09/03 11:46:30 UTC

[camel] 09/10: CAMEL-15478: Nicer enum constant names

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 4674724ebcf856ce082588350ef1a3dbefd5e2c6
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Sep 3 13:26:14 2020 +0200

    CAMEL-15478: Nicer enum constant names
---
 .../braintree/internal/BraintreeApiCollection.java | 54 +++++++++++-----------
 .../braintree/internal/BraintreeApiName.java       | 18 ++++----
 .../camel/component/braintree/braintree.json       |  2 +-
 .../src/main/docs/braintree-component.adoc         |  2 +-
 .../braintree/BraintreeComponentTest.java          |  4 +-
 .../builder/endpoint/StaticEndpointBuilders.java   | 20 ++++----
 .../dsl/BraintreeEndpointBuilderFactory.java       | 20 ++++----
 7 files changed, 60 insertions(+), 60 deletions(-)

diff --git a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiCollection.java b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiCollection.java
index 55980d3..cf8e1ed 100644
--- a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiCollection.java
+++ b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiCollection.java
@@ -49,8 +49,8 @@ public final class BraintreeApiCollection extends ApiCollection<BraintreeApiName
 
         aliases.clear();
         nullableArgs = Arrays.asList();
-        apiHelpers.put(BraintreeApiName.ADDON, new ApiMethodHelper<AddOnGatewayApiMethod>(AddOnGatewayApiMethod.class, aliases, nullableArgs));
-        apiMethods.put(AddOnGatewayApiMethod.class, BraintreeApiName.ADDON);
+        apiHelpers.put(BraintreeApiName.ADD_ON, new ApiMethodHelper<AddOnGatewayApiMethod>(AddOnGatewayApiMethod.class, aliases, nullableArgs));
+        apiMethods.put(AddOnGatewayApiMethod.class, BraintreeApiName.ADD_ON);
 
         aliases.clear();
         nullableArgs = Arrays.asList();
@@ -59,13 +59,13 @@ public final class BraintreeApiCollection extends ApiCollection<BraintreeApiName
 
         aliases.clear();
         nullableArgs = Arrays.asList();
-        apiHelpers.put(BraintreeApiName.CLIENTTOKEN, new ApiMethodHelper<ClientTokenGatewayApiMethod>(ClientTokenGatewayApiMethod.class, aliases, nullableArgs));
-        apiMethods.put(ClientTokenGatewayApiMethod.class, BraintreeApiName.CLIENTTOKEN);
+        apiHelpers.put(BraintreeApiName.CLIENT_TOKEN, new ApiMethodHelper<ClientTokenGatewayApiMethod>(ClientTokenGatewayApiMethod.class, aliases, nullableArgs));
+        apiMethods.put(ClientTokenGatewayApiMethod.class, BraintreeApiName.CLIENT_TOKEN);
 
         aliases.clear();
         nullableArgs = Arrays.asList();
-        apiHelpers.put(BraintreeApiName.CREDITCARDVERIFICATION, new ApiMethodHelper<CreditCardVerificationGatewayApiMethod>(CreditCardVerificationGatewayApiMethod.class, aliases, nullableArgs));
-        apiMethods.put(CreditCardVerificationGatewayApiMethod.class, BraintreeApiName.CREDITCARDVERIFICATION);
+        apiHelpers.put(BraintreeApiName.CREDIT_CARD_VERIFICATION, new ApiMethodHelper<CreditCardVerificationGatewayApiMethod>(CreditCardVerificationGatewayApiMethod.class, aliases, nullableArgs));
+        apiMethods.put(CreditCardVerificationGatewayApiMethod.class, BraintreeApiName.CREDIT_CARD_VERIFICATION);
 
         aliases.clear();
         nullableArgs = Arrays.asList();
@@ -84,23 +84,23 @@ public final class BraintreeApiCollection extends ApiCollection<BraintreeApiName
 
         aliases.clear();
         nullableArgs = Arrays.asList();
-        apiHelpers.put(BraintreeApiName.DOCUMENTUPLOAD, new ApiMethodHelper<DocumentUploadGatewayApiMethod>(DocumentUploadGatewayApiMethod.class, aliases, nullableArgs));
-        apiMethods.put(DocumentUploadGatewayApiMethod.class, BraintreeApiName.DOCUMENTUPLOAD);
+        apiHelpers.put(BraintreeApiName.DOCUMENT_UPLOAD, new ApiMethodHelper<DocumentUploadGatewayApiMethod>(DocumentUploadGatewayApiMethod.class, aliases, nullableArgs));
+        apiMethods.put(DocumentUploadGatewayApiMethod.class, BraintreeApiName.DOCUMENT_UPLOAD);
 
         aliases.clear();
         nullableArgs = Arrays.asList();
-        apiHelpers.put(BraintreeApiName.MERCHANTACCOUNT, new ApiMethodHelper<MerchantAccountGatewayApiMethod>(MerchantAccountGatewayApiMethod.class, aliases, nullableArgs));
-        apiMethods.put(MerchantAccountGatewayApiMethod.class, BraintreeApiName.MERCHANTACCOUNT);
+        apiHelpers.put(BraintreeApiName.MERCHANT_ACCOUNT, new ApiMethodHelper<MerchantAccountGatewayApiMethod>(MerchantAccountGatewayApiMethod.class, aliases, nullableArgs));
+        apiMethods.put(MerchantAccountGatewayApiMethod.class, BraintreeApiName.MERCHANT_ACCOUNT);
 
         aliases.clear();
         nullableArgs = Arrays.asList();
-        apiHelpers.put(BraintreeApiName.PAYMENTMETHOD, new ApiMethodHelper<PaymentMethodGatewayApiMethod>(PaymentMethodGatewayApiMethod.class, aliases, nullableArgs));
-        apiMethods.put(PaymentMethodGatewayApiMethod.class, BraintreeApiName.PAYMENTMETHOD);
+        apiHelpers.put(BraintreeApiName.PAYMENT_METHOD, new ApiMethodHelper<PaymentMethodGatewayApiMethod>(PaymentMethodGatewayApiMethod.class, aliases, nullableArgs));
+        apiMethods.put(PaymentMethodGatewayApiMethod.class, BraintreeApiName.PAYMENT_METHOD);
 
         aliases.clear();
         nullableArgs = Arrays.asList();
-        apiHelpers.put(BraintreeApiName.PAYMENTMETHODNONCE, new ApiMethodHelper<PaymentMethodNonceGatewayApiMethod>(PaymentMethodNonceGatewayApiMethod.class, aliases, nullableArgs));
-        apiMethods.put(PaymentMethodNonceGatewayApiMethod.class, BraintreeApiName.PAYMENTMETHODNONCE);
+        apiHelpers.put(BraintreeApiName.PAYMENT_METHOD_NONCE, new ApiMethodHelper<PaymentMethodNonceGatewayApiMethod>(PaymentMethodNonceGatewayApiMethod.class, aliases, nullableArgs));
+        apiMethods.put(PaymentMethodNonceGatewayApiMethod.class, BraintreeApiName.PAYMENT_METHOD_NONCE);
 
         aliases.clear();
         nullableArgs = Arrays.asList();
@@ -114,8 +114,8 @@ public final class BraintreeApiCollection extends ApiCollection<BraintreeApiName
 
         aliases.clear();
         nullableArgs = Arrays.asList();
-        apiHelpers.put(BraintreeApiName.SETTLEMENTBATCHSUMMARY, new ApiMethodHelper<SettlementBatchSummaryGatewayApiMethod>(SettlementBatchSummaryGatewayApiMethod.class, aliases, nullableArgs));
-        apiMethods.put(SettlementBatchSummaryGatewayApiMethod.class, BraintreeApiName.SETTLEMENTBATCHSUMMARY);
+        apiHelpers.put(BraintreeApiName.SETTLEMENT_BATCH_SUMMARY, new ApiMethodHelper<SettlementBatchSummaryGatewayApiMethod>(SettlementBatchSummaryGatewayApiMethod.class, aliases, nullableArgs));
+        apiMethods.put(SettlementBatchSummaryGatewayApiMethod.class, BraintreeApiName.SETTLEMENT_BATCH_SUMMARY);
 
         aliases.clear();
         nullableArgs = Arrays.asList();
@@ -129,8 +129,8 @@ public final class BraintreeApiCollection extends ApiCollection<BraintreeApiName
 
         aliases.clear();
         nullableArgs = Arrays.asList();
-        apiHelpers.put(BraintreeApiName.WEBHOOKNOTIFICATION, new ApiMethodHelper<WebhookNotificationGatewayApiMethod>(WebhookNotificationGatewayApiMethod.class, aliases, nullableArgs));
-        apiMethods.put(WebhookNotificationGatewayApiMethod.class, BraintreeApiName.WEBHOOKNOTIFICATION);
+        apiHelpers.put(BraintreeApiName.WEBHOOK_NOTIFICATION, new ApiMethodHelper<WebhookNotificationGatewayApiMethod>(WebhookNotificationGatewayApiMethod.class, aliases, nullableArgs));
+        apiMethods.put(WebhookNotificationGatewayApiMethod.class, BraintreeApiName.WEBHOOK_NOTIFICATION);
 
         setApiHelpers(apiHelpers);
         setApiMethods(apiMethods);
@@ -139,16 +139,16 @@ public final class BraintreeApiCollection extends ApiCollection<BraintreeApiName
     public BraintreeConfiguration getEndpointConfiguration(BraintreeApiName apiName) {
         BraintreeConfiguration result = null;
         switch (apiName) {
-            case ADDON:
+            case ADD_ON:
                 result = new AddOnGatewayEndpointConfiguration();
                 break;
             case ADDRESS:
                 result = new AddressGatewayEndpointConfiguration();
                 break;
-            case CLIENTTOKEN:
+            case CLIENT_TOKEN:
                 result = new ClientTokenGatewayEndpointConfiguration();
                 break;
-            case CREDITCARDVERIFICATION:
+            case CREDIT_CARD_VERIFICATION:
                 result = new CreditCardVerificationGatewayEndpointConfiguration();
                 break;
             case CUSTOMER:
@@ -160,16 +160,16 @@ public final class BraintreeApiCollection extends ApiCollection<BraintreeApiName
             case DISPUTE:
                 result = new DisputeGatewayEndpointConfiguration();
                 break;
-            case DOCUMENTUPLOAD:
+            case DOCUMENT_UPLOAD:
                 result = new DocumentUploadGatewayEndpointConfiguration();
                 break;
-            case MERCHANTACCOUNT:
+            case MERCHANT_ACCOUNT:
                 result = new MerchantAccountGatewayEndpointConfiguration();
                 break;
-            case PAYMENTMETHOD:
+            case PAYMENT_METHOD:
                 result = new PaymentMethodGatewayEndpointConfiguration();
                 break;
-            case PAYMENTMETHODNONCE:
+            case PAYMENT_METHOD_NONCE:
                 result = new PaymentMethodNonceGatewayEndpointConfiguration();
                 break;
             case PLAN:
@@ -178,7 +178,7 @@ public final class BraintreeApiCollection extends ApiCollection<BraintreeApiName
             case REPORT:
                 result = new ReportGatewayEndpointConfiguration();
                 break;
-            case SETTLEMENTBATCHSUMMARY:
+            case SETTLEMENT_BATCH_SUMMARY:
                 result = new SettlementBatchSummaryGatewayEndpointConfiguration();
                 break;
             case SUBSCRIPTION:
@@ -187,7 +187,7 @@ public final class BraintreeApiCollection extends ApiCollection<BraintreeApiName
             case TRANSACTION:
                 result = new TransactionGatewayEndpointConfiguration();
                 break;
-            case WEBHOOKNOTIFICATION:
+            case WEBHOOK_NOTIFICATION:
                 result = new WebhookNotificationGatewayEndpointConfiguration();
                 break;
         }
diff --git a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiName.java b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiName.java
index 3e1d936..0615eb7 100644
--- a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiName.java
+++ b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/BraintreeApiName.java
@@ -11,13 +11,13 @@ import org.apache.camel.support.component.ApiName;
  */
 public enum BraintreeApiName implements ApiName {
 
-    ADDON("addOn"),
+    ADD_ON("addOn"),
 
     ADDRESS("address"),
 
-    CLIENTTOKEN("clientToken"),
+    CLIENT_TOKEN("clientToken"),
 
-    CREDITCARDVERIFICATION("creditCardVerification"),
+    CREDIT_CARD_VERIFICATION("creditCardVerification"),
 
     CUSTOMER("customer"),
 
@@ -25,25 +25,25 @@ public enum BraintreeApiName implements ApiName {
 
     DISPUTE("dispute"),
 
-    DOCUMENTUPLOAD("documentUpload"),
+    DOCUMENT_UPLOAD("documentUpload"),
 
-    MERCHANTACCOUNT("merchantAccount"),
+    MERCHANT_ACCOUNT("merchantAccount"),
 
-    PAYMENTMETHOD("paymentMethod"),
+    PAYMENT_METHOD("paymentMethod"),
 
-    PAYMENTMETHODNONCE("paymentMethodNonce"),
+    PAYMENT_METHOD_NONCE("paymentMethodNonce"),
 
     PLAN("plan"),
 
     REPORT("report"),
 
-    SETTLEMENTBATCHSUMMARY("settlementBatchSummary"),
+    SETTLEMENT_BATCH_SUMMARY("settlementBatchSummary"),
 
     SUBSCRIPTION("subscription"),
 
     TRANSACTION("transaction"),
 
-    WEBHOOKNOTIFICATION("webhookNotification");
+    WEBHOOK_NOTIFICATION("webhookNotification");
 
 
     private static final BraintreeApiName[] CACHED_ENUM_VALUES = values();
diff --git a/components/camel-braintree/src/generated/resources/org/apache/camel/component/braintree/braintree.json b/components/camel-braintree/src/generated/resources/org/apache/camel/component/braintree/braintree.json
index d6caef2..8d137ea 100644
--- a/components/camel-braintree/src/generated/resources/org/apache/camel/component/braintree/braintree.json
+++ b/components/camel-braintree/src/generated/resources/org/apache/camel/component/braintree/braintree.json
@@ -29,7 +29,7 @@
     "configuration": { "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.braintree.BraintreeConfiguration", "deprecated": false, "secret": false, "description": "Component configuration" }
   },
   "properties": {
-    "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.braintree.internal.BraintreeApiName", "enum": [ "ADDON", "ADDRESS", "CLIENTTOKEN", "CREDITCARDVERIFICATION", "CUSTOMER", "DISCOUNT", "DISPUTE", "DOCUMENTUPLOAD", "MERCHANTACCOUNT", "PAYMENTMETHOD", "PAYMENTMETHODNONCE", "PLAN", "REPORT", "SETTLEMENTBATCHSUMMARY", "SUBSCRIPTION", "TRANSACTION", "WEBHOOKNOTIFICATION" ], "dep [...]
+    "apiName": { "kind": "path", "displayName": "Api Name", "group": "common", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.braintree.internal.BraintreeApiName", "enum": [ "ADD_ON", "ADDRESS", "CLIENT_TOKEN", "CREDIT_CARD_VERIFICATION", "CUSTOMER", "DISCOUNT", "DISPUTE", "DOCUMENT_UPLOAD", "MERCHANT_ACCOUNT", "PAYMENT_METHOD", "PAYMENT_METHOD_NONCE", "PLAN", "REPORT", "SETTLEMENT_BATCH_SUMMARY", "SUBSCRIPTION", "TRANSACTION", "WEBHOOK_NOTIFICAT [...]
     "methodName": { "kind": "path", "displayName": "Method Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "What sub operation to use for the selected operation" },
     "environment": { "kind": "parameter", "displayName": "Environment", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "The environment Either SANDBOX or PRODUCTION" },
     "inBody": { "kind": "parameter", "displayName": "In Body", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Sets the name of a parameter to be passed in the exchange In Body" },
diff --git a/components/camel-braintree/src/main/docs/braintree-component.adoc b/components/camel-braintree/src/main/docs/braintree-component.adoc
index 0820b52..4f437fc 100644
--- a/components/camel-braintree/src/main/docs/braintree-component.adoc
+++ b/components/camel-braintree/src/main/docs/braintree-component.adoc
@@ -77,7 +77,7 @@ with the following path and query parameters:
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *apiName* | *Required* What kind of operation to perform. There are 17 enums and the value can be one of: ADDON, ADDRESS, CLIENTTOKEN, CREDITCARDVERIFICATION, CUSTOMER, DISCOUNT, DISPUTE, DOCUMENTUPLOAD, MERCHANTACCOUNT, PAYMENTMETHOD, PAYMENTMETHODNONCE, PLAN, REPORT, SETTLEMENTBATCHSUMMARY, SUBSCRIPTION, TRANSACTION, WEBHOOKNOTIFICATION |  | BraintreeApiName
+| *apiName* | *Required* What kind of operation to perform. There are 17 enums and the value can be one of: ADD_ON, ADDRESS, CLIENT_TOKEN, CREDIT_CARD_VERIFICATION, CUSTOMER, DISCOUNT, DISPUTE, DOCUMENT_UPLOAD, MERCHANT_ACCOUNT, PAYMENT_METHOD, PAYMENT_METHOD_NONCE, PLAN, REPORT, SETTLEMENT_BATCH_SUMMARY, SUBSCRIPTION, TRANSACTION, WEBHOOK_NOTIFICATION |  | BraintreeApiName
 | *methodName* | What sub operation to use for the selected operation |  | String
 |===
 
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/BraintreeComponentTest.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/BraintreeComponentTest.java
index 1be24e9..e8daff0 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/BraintreeComponentTest.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/BraintreeComponentTest.java
@@ -35,7 +35,7 @@ public class BraintreeComponentTest {
         configuration.setHttpLogLevel(Level.WARNING.getName());
 
         BraintreeComponent component = new BraintreeComponent();
-        component.createEndpoint("braintree:clientToken", "generate", BraintreeApiName.CLIENTTOKEN, configuration);
+        component.createEndpoint("braintree:clientToken", "generate", BraintreeApiName.CLIENT_TOKEN, configuration);
 
         BraintreeGateway braintreeGateway = component.getGateway(configuration);
         Logger logger = braintreeGateway.getConfiguration().getLogger();
@@ -51,7 +51,7 @@ public class BraintreeComponentTest {
         BraintreeComponent component = new BraintreeComponent();
         component.setConfiguration(configuration);
         component.getConfiguration().setLogHandlerEnabled(false);
-        component.createEndpoint("", "", BraintreeApiName.CLIENTTOKEN, configuration);
+        component.createEndpoint("", "", BraintreeApiName.CLIENT_TOKEN, configuration);
 
         BraintreeGateway braintreeGateway = component.getGateway(configuration);
         Logger logger = braintreeGateway.getConfiguration().getLogger();
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 67442ca..6dce24e 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -2951,11 +2951,11 @@ public class StaticEndpointBuilders {
      * 
      * Path parameter: apiName (required)
      * What kind of operation to perform
-     * There are 17 enums and the value can be one of: ADDON, ADDRESS,
-     * CLIENTTOKEN, CREDITCARDVERIFICATION, CUSTOMER, DISCOUNT, DISPUTE,
-     * DOCUMENTUPLOAD, MERCHANTACCOUNT, PAYMENTMETHOD, PAYMENTMETHODNONCE, PLAN,
-     * REPORT, SETTLEMENTBATCHSUMMARY, SUBSCRIPTION, TRANSACTION,
-     * WEBHOOKNOTIFICATION
+     * There are 17 enums and the value can be one of: ADD_ON, ADDRESS,
+     * CLIENT_TOKEN, CREDIT_CARD_VERIFICATION, CUSTOMER, DISCOUNT, DISPUTE,
+     * DOCUMENT_UPLOAD, MERCHANT_ACCOUNT, PAYMENT_METHOD, PAYMENT_METHOD_NONCE,
+     * PLAN, REPORT, SETTLEMENT_BATCH_SUMMARY, SUBSCRIPTION, TRANSACTION,
+     * WEBHOOK_NOTIFICATION
      * 
      * Path parameter: methodName
      * What sub operation to use for the selected operation
@@ -2978,11 +2978,11 @@ public class StaticEndpointBuilders {
      * 
      * Path parameter: apiName (required)
      * What kind of operation to perform
-     * There are 17 enums and the value can be one of: ADDON, ADDRESS,
-     * CLIENTTOKEN, CREDITCARDVERIFICATION, CUSTOMER, DISCOUNT, DISPUTE,
-     * DOCUMENTUPLOAD, MERCHANTACCOUNT, PAYMENTMETHOD, PAYMENTMETHODNONCE, PLAN,
-     * REPORT, SETTLEMENTBATCHSUMMARY, SUBSCRIPTION, TRANSACTION,
-     * WEBHOOKNOTIFICATION
+     * There are 17 enums and the value can be one of: ADD_ON, ADDRESS,
+     * CLIENT_TOKEN, CREDIT_CARD_VERIFICATION, CUSTOMER, DISCOUNT, DISPUTE,
+     * DOCUMENT_UPLOAD, MERCHANT_ACCOUNT, PAYMENT_METHOD, PAYMENT_METHOD_NONCE,
+     * PLAN, REPORT, SETTLEMENT_BATCH_SUMMARY, SUBSCRIPTION, TRANSACTION,
+     * WEBHOOK_NOTIFICATION
      * 
      * Path parameter: methodName
      * What sub operation to use for the selected operation
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BraintreeEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BraintreeEndpointBuilderFactory.java
index 85e8a07..97cde24 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BraintreeEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BraintreeEndpointBuilderFactory.java
@@ -1416,11 +1416,11 @@ public interface BraintreeEndpointBuilderFactory {
          * 
          * Path parameter: apiName (required)
          * What kind of operation to perform
-         * There are 17 enums and the value can be one of: ADDON, ADDRESS,
-         * CLIENTTOKEN, CREDITCARDVERIFICATION, CUSTOMER, DISCOUNT, DISPUTE,
-         * DOCUMENTUPLOAD, MERCHANTACCOUNT, PAYMENTMETHOD, PAYMENTMETHODNONCE,
-         * PLAN, REPORT, SETTLEMENTBATCHSUMMARY, SUBSCRIPTION, TRANSACTION,
-         * WEBHOOKNOTIFICATION
+         * There are 17 enums and the value can be one of: ADD_ON, ADDRESS,
+         * CLIENT_TOKEN, CREDIT_CARD_VERIFICATION, CUSTOMER, DISCOUNT, DISPUTE,
+         * DOCUMENT_UPLOAD, MERCHANT_ACCOUNT, PAYMENT_METHOD,
+         * PAYMENT_METHOD_NONCE, PLAN, REPORT, SETTLEMENT_BATCH_SUMMARY,
+         * SUBSCRIPTION, TRANSACTION, WEBHOOK_NOTIFICATION
          * 
          * Path parameter: methodName
          * What sub operation to use for the selected operation
@@ -1442,11 +1442,11 @@ public interface BraintreeEndpointBuilderFactory {
          * 
          * Path parameter: apiName (required)
          * What kind of operation to perform
-         * There are 17 enums and the value can be one of: ADDON, ADDRESS,
-         * CLIENTTOKEN, CREDITCARDVERIFICATION, CUSTOMER, DISCOUNT, DISPUTE,
-         * DOCUMENTUPLOAD, MERCHANTACCOUNT, PAYMENTMETHOD, PAYMENTMETHODNONCE,
-         * PLAN, REPORT, SETTLEMENTBATCHSUMMARY, SUBSCRIPTION, TRANSACTION,
-         * WEBHOOKNOTIFICATION
+         * There are 17 enums and the value can be one of: ADD_ON, ADDRESS,
+         * CLIENT_TOKEN, CREDIT_CARD_VERIFICATION, CUSTOMER, DISCOUNT, DISPUTE,
+         * DOCUMENT_UPLOAD, MERCHANT_ACCOUNT, PAYMENT_METHOD,
+         * PAYMENT_METHOD_NONCE, PLAN, REPORT, SETTLEMENT_BATCH_SUMMARY,
+         * SUBSCRIPTION, TRANSACTION, WEBHOOK_NOTIFICATION
          * 
          * Path parameter: methodName
          * What sub operation to use for the selected operation