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/02/29 07:07:44 UTC

[camel] branch master updated: CAMEL-14568 - Fixed braintree

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


The following commit(s) were added to refs/heads/master by this push:
     new 4c1c43e  CAMEL-14568 - Fixed braintree
4c1c43e is described below

commit 4c1c43e64d9d1e0152b95399cbd836d6c9c67c16
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Feb 29 08:07:13 2020 +0100

    CAMEL-14568 - Fixed braintree
---
 .../braintree/BraintreeComponentConfigurer.java    |  32 +---
 .../camel/component/braintree/braintree.json       |  13 +-
 .../src/main/docs/braintree-component.adoc         |  15 +-
 .../component/braintree/BraintreeComponent.java    |  31 +---
 .../braintree/BraintreeComponentTest.java          |   3 +-
 .../dsl/BraintreeComponentBuilderFactory.java      | 166 +--------------------
 6 files changed, 14 insertions(+), 246 deletions(-)

diff --git a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/BraintreeComponentConfigurer.java b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/BraintreeComponentConfigurer.java
index 0397a2f..90c42ab 100644
--- a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/BraintreeComponentConfigurer.java
+++ b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/BraintreeComponentConfigurer.java
@@ -11,47 +11,17 @@ import org.apache.camel.support.component.PropertyConfigurerSupport;
 @SuppressWarnings("unchecked")
 public class BraintreeComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
 
-    private org.apache.camel.component.braintree.BraintreeConfiguration getOrCreateConfiguration(BraintreeComponent target) {
-        if (target.getConfiguration() == null) {
-            target.setConfiguration(new org.apache.camel.component.braintree.BraintreeConfiguration());
-        }
-        return target.getConfiguration();
-    }
-
     @Override
     public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
         BraintreeComponent target = (BraintreeComponent) obj;
         switch (ignoreCase ? name.toLowerCase() : name) {
-        case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.braintree.BraintreeConfiguration.class, value)); return true;
-        case "environment": getOrCreateConfiguration(target).setEnvironment(property(camelContext, java.lang.String.class, value)); return true;
-        case "merchantid":
-        case "merchantId": getOrCreateConfiguration(target).setMerchantId(property(camelContext, java.lang.String.class, value)); return true;
         case "bridgeerrorhandler":
         case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
         case "lazystartproducer":
         case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
         case "basicpropertybinding":
         case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
-        case "httpreadtimeout":
-        case "httpReadTimeout": getOrCreateConfiguration(target).setHttpReadTimeout(property(camelContext, java.lang.Integer.class, value)); return true;
-        case "httploglevel":
-        case "httpLogLevel": getOrCreateConfiguration(target).setHttpLogLevel(property(camelContext, java.lang.String.class, value)); return true;
-        case "httplogname":
-        case "httpLogName": getOrCreateConfiguration(target).setHttpLogName(property(camelContext, java.lang.String.class, value)); return true;
-        case "loghandlerenabled":
-        case "logHandlerEnabled": target.setLogHandlerEnabled(property(camelContext, boolean.class, value)); return true;
-        case "loghandlerenabled":
-        case "logHandlerEnabled": getOrCreateConfiguration(target).setLogHandlerEnabled(property(camelContext, boolean.class, value)); return true;
-        case "proxyhost":
-        case "proxyHost": getOrCreateConfiguration(target).setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
-        case "proxyport":
-        case "proxyPort": getOrCreateConfiguration(target).setProxyPort(property(camelContext, java.lang.Integer.class, value)); return true;
-        case "accesstoken":
-        case "accessToken": getOrCreateConfiguration(target).setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
-        case "privatekey":
-        case "privateKey": getOrCreateConfiguration(target).setPrivateKey(property(camelContext, java.lang.String.class, value)); return true;
-        case "publickey":
-        case "publicKey": getOrCreateConfiguration(target).setPublicKey(property(camelContext, java.lang.String.class, value)); return true;
+        case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.braintree.BraintreeConfiguration.class, value)); return true;
         default: return false;
         }
     }
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 3b5ebe5..28986b8 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
@@ -19,21 +19,10 @@
     "version": "3.2.0-SNAPSHOT"
   },
   "componentProperties": {
-    "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.braintree.BraintreeConfiguration", "deprecated": false, "secret": false, "description": "To use the shared configuration" },
-    "environment": { "kind": "property", "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" },
-    "merchantId": { "kind": "property", "displayName": "Merchant Id", "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 merchant id provided by Braintree." },
     "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by [...]
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the r [...]
     "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" },
-    "httpReadTimeout": { "kind": "property", "displayName": "Http Read Timeout", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "Set read timeout for http calls." },
-    "httpLogLevel": { "kind": "property", "displayName": "Http Log Level", "group": "logging", "label": "logging", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "Set logging level for http calls, see java.util.logging.Level" },
-    "httpLogName": { "kind": "property", "displayName": "Http Log Name", "group": "logging", "label": "logging", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "Braintree", "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "Set log category to use to log http calls." },
-    "logHandlerEnabled": { "kind": "property", "displayName": "Log Handler Enabled", "group": "logging", "label": "logging", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "Sets whether to enable the BraintreeLogHandler. It may be desirable to set this to 'false' where an exis [...]
-    "proxyHost": { "kind": "property", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "The proxy host" },
-    "proxyPort": { "kind": "property", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "The proxy port" },
-    "accessToken": { "kind": "property", "displayName": "Access Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "The access token granted by a merchant to another in order to process transactions on their behalf. Used in place of environment, me [...]
-    "privateKey": { "kind": "property", "displayName": "Private Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "The private key provided by Braintree." },
-    "publicKey": { "kind": "property", "displayName": "Public Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "configurationClass": "org.apache.camel.component.braintree.BraintreeConfiguration", "configurationField": "configuration", "description": "The public key provided by Braintree." }
+    "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 [...]
diff --git a/components/camel-braintree/src/main/docs/braintree-component.adoc b/components/camel-braintree/src/main/docs/braintree-component.adoc
index 0770ab3..9aeb4dc 100644
--- a/components/camel-braintree/src/main/docs/braintree-component.adoc
+++ b/components/camel-braintree/src/main/docs/braintree-component.adoc
@@ -40,28 +40,17 @@ for this component:
 
 
 // component options: START
-The Braintree component supports 15 options, which are listed below.
+The Braintree component supports 4 options, which are listed below.
 
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *configuration* (common) | To use the shared configuration |  | BraintreeConfiguration
-| *environment* (common) | The environment Either SANDBOX or PRODUCTION |  | String
-| *merchantId* (common) | The merchant id provided by Braintree. |  | String
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean
 | *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...]
 | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean
-| *httpReadTimeout* (advanced) | Set read timeout for http calls. |  | Integer
-| *httpLogLevel* (logging) | Set logging level for http calls, see java.util.logging.Level |  | String
-| *httpLogName* (logging) | Set log category to use to log http calls. | Braintree | String
-| *logHandlerEnabled* (logging) | Sets whether to enable the BraintreeLogHandler. It may be desirable to set this to 'false' where an existing JUL - SLF4J logger bridge is on the classpath. This option can also be configured globally on the BraintreeComponent. | true | boolean
-| *proxyHost* (proxy) | The proxy host |  | String
-| *proxyPort* (proxy) | The proxy port |  | Integer
-| *accessToken* (security) | The access token granted by a merchant to another in order to process transactions on their behalf. Used in place of environment, merchant id, public key and private key fields. |  | String
-| *privateKey* (security) | The private key provided by Braintree. |  | String
-| *publicKey* (security) | The public key provided by Braintree. |  | String
+| *configuration* (advanced) | Component configuration |  | BraintreeConfiguration
 |===
 // component options: END
 
diff --git a/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/BraintreeComponent.java b/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/BraintreeComponent.java
index a0e8b68..7932b91 100644
--- a/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/BraintreeComponent.java
+++ b/components/camel-braintree/src/main/java/org/apache/camel/component/braintree/BraintreeComponent.java
@@ -37,9 +37,6 @@ public class BraintreeComponent extends AbstractApiComponent<BraintreeApiName, B
     @Metadata
     private BraintreeConfiguration configuration;
 
-    @Metadata(label = "advanced,logging", defaultValue = "true")
-    private boolean logHandlerEnabled = true;
-
     private final Map<String, BraintreeGateway> gateways;
 
     public BraintreeComponent() {
@@ -61,36 +58,10 @@ public class BraintreeComponent extends AbstractApiComponent<BraintreeApiName, B
     protected Endpoint createEndpoint(String uri, String methodName, BraintreeApiName apiName, BraintreeConfiguration endpointConfiguration) {
         endpointConfiguration.setApiName(apiName);
         endpointConfiguration.setMethodName(methodName);
-        endpointConfiguration.setLogHandlerEnabled(logHandlerEnabled);
-        this.configuration = configuration;
+        this.configuration = endpointConfiguration;
         return new BraintreeEndpoint(uri, this, apiName, methodName, endpointConfiguration);
     }
 
-    /**
-     * To use the shared configuration
-     */
-    @Override
-    public void setConfiguration(BraintreeConfiguration configuration) {
-        super.setConfiguration(configuration);
-    }
-
-    @Override
-    public BraintreeConfiguration getConfiguration() {
-        return super.getConfiguration();
-    }
-
-    /**
-     * Sets whether to enable the BraintreeLogHandler. It may be desirable to set this to
-     * false where an existing JUL - SLF4J logger bridge is on the classpath.
-     */
-    public void setLogHandlerEnabled(boolean logHandlerEnabled) {
-        this.logHandlerEnabled = logHandlerEnabled;
-    }
-
-    public boolean isLogHandlerEnabled() {
-        return logHandlerEnabled;
-    }
-
     public synchronized BraintreeGateway getGateway(BraintreeConfiguration configuration) {
         BraintreeGateway gateway;
         if (configuration.getAccessToken() != null) {
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 dee3d64..644f7e9 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
@@ -49,7 +49,8 @@ public class BraintreeComponentTest {
         BraintreeConfiguration configuration = createBraintreeConfiguration();
 
         BraintreeComponent component = new BraintreeComponent();
-        component.setLogHandlerEnabled(false);
+        component.setConfiguration(configuration);
+        component.getConfiguration().setLogHandlerEnabled(false);
         component.createEndpoint("", "", BraintreeApiName.CLIENTTOKEN, configuration);
 
         BraintreeGateway braintreeGateway = component.getGateway(configuration);
diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/BraintreeComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/BraintreeComponentBuilderFactory.java
index ea693f9..e9ae6aa 100644
--- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/BraintreeComponentBuilderFactory.java
+++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/BraintreeComponentBuilderFactory.java
@@ -51,42 +51,6 @@ public interface BraintreeComponentBuilderFactory {
             extends
                 ComponentBuilder<BraintreeComponent> {
         /**
-         * To use the shared configuration.
-         * 
-         * The option is a:
-         * <code>org.apache.camel.component.braintree.BraintreeConfiguration</code> type.
-         * 
-         * Group: common
-         */
-        default BraintreeComponentBuilder configuration(
-                org.apache.camel.component.braintree.BraintreeConfiguration configuration) {
-            doSetProperty("configuration", configuration);
-            return this;
-        }
-        /**
-         * The environment Either SANDBOX or PRODUCTION.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default BraintreeComponentBuilder environment(
-                java.lang.String environment) {
-            doSetProperty("environment", environment);
-            return this;
-        }
-        /**
-         * The merchant id provided by Braintree.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default BraintreeComponentBuilder merchantId(java.lang.String merchantId) {
-            doSetProperty("merchantId", merchantId);
-            return this;
-        }
-        /**
          * Allows for bridging the consumer to the Camel routing Error Handler,
          * which mean any exceptions occurred while the consumer is trying to
          * pickup incoming messages, or the likes, will now be processed as a
@@ -141,114 +105,16 @@ public interface BraintreeComponentBuilderFactory {
             return this;
         }
         /**
-         * Set read timeout for http calls.
+         * Component configuration.
          * 
-         * The option is a: <code>java.lang.Integer</code> type.
+         * The option is a:
+         * <code>org.apache.camel.component.braintree.BraintreeConfiguration</code> type.
          * 
          * Group: advanced
          */
-        default BraintreeComponentBuilder httpReadTimeout(
-                java.lang.Integer httpReadTimeout) {
-            doSetProperty("httpReadTimeout", httpReadTimeout);
-            return this;
-        }
-        /**
-         * Set logging level for http calls, see java.util.logging.Level.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: logging
-         */
-        default BraintreeComponentBuilder httpLogLevel(
-                java.lang.String httpLogLevel) {
-            doSetProperty("httpLogLevel", httpLogLevel);
-            return this;
-        }
-        /**
-         * Set log category to use to log http calls.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Default: Braintree
-         * Group: logging
-         */
-        default BraintreeComponentBuilder httpLogName(
-                java.lang.String httpLogName) {
-            doSetProperty("httpLogName", httpLogName);
-            return this;
-        }
-        /**
-         * Sets whether to enable the BraintreeLogHandler. It may be desirable
-         * to set this to 'false' where an existing JUL - SLF4J logger bridge is
-         * on the classpath. This option can also be configured globally on the
-         * BraintreeComponent.
-         * 
-         * The option is a: <code>boolean</code> type.
-         * 
-         * Default: true
-         * Group: logging
-         */
-        default BraintreeComponentBuilder logHandlerEnabled(
-                boolean logHandlerEnabled) {
-            doSetProperty("logHandlerEnabled", logHandlerEnabled);
-            return this;
-        }
-        /**
-         * The proxy host.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: proxy
-         */
-        default BraintreeComponentBuilder proxyHost(java.lang.String proxyHost) {
-            doSetProperty("proxyHost", proxyHost);
-            return this;
-        }
-        /**
-         * The proxy port.
-         * 
-         * The option is a: <code>java.lang.Integer</code> type.
-         * 
-         * Group: proxy
-         */
-        default BraintreeComponentBuilder proxyPort(java.lang.Integer proxyPort) {
-            doSetProperty("proxyPort", proxyPort);
-            return this;
-        }
-        /**
-         * The access token granted by a merchant to another in order to process
-         * transactions on their behalf. Used in place of environment, merchant
-         * id, public key and private key fields.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: security
-         */
-        default BraintreeComponentBuilder accessToken(
-                java.lang.String accessToken) {
-            doSetProperty("accessToken", accessToken);
-            return this;
-        }
-        /**
-         * The private key provided by Braintree.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: security
-         */
-        default BraintreeComponentBuilder privateKey(java.lang.String privateKey) {
-            doSetProperty("privateKey", privateKey);
-            return this;
-        }
-        /**
-         * The public key provided by Braintree.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: security
-         */
-        default BraintreeComponentBuilder publicKey(java.lang.String publicKey) {
-            doSetProperty("publicKey", publicKey);
+        default BraintreeComponentBuilder configuration(
+                org.apache.camel.component.braintree.BraintreeConfiguration configuration) {
+            doSetProperty("configuration", configuration);
             return this;
         }
     }
@@ -262,34 +128,16 @@ public interface BraintreeComponentBuilderFactory {
         protected BraintreeComponent buildConcreteComponent() {
             return new BraintreeComponent();
         }
-        private org.apache.camel.component.braintree.BraintreeConfiguration getOrCreateConfiguration(
-                org.apache.camel.component.braintree.BraintreeComponent component) {
-            if (component.getConfiguration() == null) {
-                component.setConfiguration(new org.apache.camel.component.braintree.BraintreeConfiguration());
-            }
-            return component.getConfiguration();
-        }
         @Override
         protected boolean setPropertyOnComponent(
                 Component component,
                 String name,
                 Object value) {
             switch (name) {
-            case "configuration": ((BraintreeComponent) component).setConfiguration((org.apache.camel.component.braintree.BraintreeConfiguration) value); return true;
-            case "environment": getOrCreateConfiguration((BraintreeComponent) component).setEnvironment((java.lang.String) value); return true;
-            case "merchantId": getOrCreateConfiguration((BraintreeComponent) component).setMerchantId((java.lang.String) value); return true;
             case "bridgeErrorHandler": ((BraintreeComponent) component).setBridgeErrorHandler((boolean) value); return true;
             case "lazyStartProducer": ((BraintreeComponent) component).setLazyStartProducer((boolean) value); return true;
             case "basicPropertyBinding": ((BraintreeComponent) component).setBasicPropertyBinding((boolean) value); return true;
-            case "httpReadTimeout": getOrCreateConfiguration((BraintreeComponent) component).setHttpReadTimeout((java.lang.Integer) value); return true;
-            case "httpLogLevel": getOrCreateConfiguration((BraintreeComponent) component).setHttpLogLevel((java.lang.String) value); return true;
-            case "httpLogName": getOrCreateConfiguration((BraintreeComponent) component).setHttpLogName((java.lang.String) value); return true;
-            case "logHandlerEnabled": getOrCreateConfiguration((BraintreeComponent) component).setLogHandlerEnabled((boolean) value); return true;
-            case "proxyHost": getOrCreateConfiguration((BraintreeComponent) component).setProxyHost((java.lang.String) value); return true;
-            case "proxyPort": getOrCreateConfiguration((BraintreeComponent) component).setProxyPort((java.lang.Integer) value); return true;
-            case "accessToken": getOrCreateConfiguration((BraintreeComponent) component).setAccessToken((java.lang.String) value); return true;
-            case "privateKey": getOrCreateConfiguration((BraintreeComponent) component).setPrivateKey((java.lang.String) value); return true;
-            case "publicKey": getOrCreateConfiguration((BraintreeComponent) component).setPublicKey((java.lang.String) value); return true;
+            case "configuration": ((BraintreeComponent) component).setConfiguration((org.apache.camel.component.braintree.BraintreeConfiguration) value); return true;
             default: return false;
             }
         }