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:26 UTC

[camel] 05/10: CAMEL-15498: Use java source parser for camel-braintree API component.

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 3c05750602bd4db162dc640b94b3d70b3f81ab46
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Sep 3 11:31:47 2020 +0200

    CAMEL-15498: Use java source parser for camel-braintree API component.
---
 components/camel-braintree/pom.xml                 | 44 +++++++++++-----------
 .../AddressGatewayEndpointConfiguration.java       |  4 +-
 .../CustomerGatewayEndpointConfiguration.java      |  2 +-
 .../SubscriptionGatewayEndpointConfiguration.java  |  4 +-
 .../camel/component/braintree/braintree.json       |  6 +--
 .../src/main/docs/braintree-component.adoc         | 10 ++---
 6 files changed, 35 insertions(+), 35 deletions(-)

diff --git a/components/camel-braintree/pom.xml b/components/camel-braintree/pom.xml
index c302d0a..44805b5 100644
--- a/components/camel-braintree/pom.xml
+++ b/components/camel-braintree/pom.xml
@@ -66,7 +66,7 @@
             <groupId>com.braintreepayments.gateway</groupId>
             <artifactId>braintree-java</artifactId>
             <version>${braintree-gateway-version}</version>
-            <type>javadoc</type>
+            <classifier>sources</classifier>
             <scope>provided</scope>
             <optional>true</optional>
             <exclusions>
@@ -118,49 +118,49 @@
                                 <api>
                                     <apiName>addOn</apiName>
                                     <proxyClass>com.braintreegateway.AddOnGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>address</apiName>
                                     <proxyClass>com.braintreegateway.AddressGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>clientToken</apiName>
                                     <proxyClass>com.braintreegateway.ClientTokenGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>creditCardVerification</apiName>
                                     <proxyClass>com.braintreegateway.CreditCardVerificationGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>customer</apiName>
                                     <proxyClass>com.braintreegateway.CustomerGateway</proxyClass>
-                                    <fromJavadoc>
+                                    <fromJavasource>
                                         <excludeMethods>.*ransparent.*</excludeMethods>
-                                    </fromJavadoc>
+                                    </fromJavasource>
                                 </api>
                                 <api>
                                     <apiName>discount</apiName>
                                     <proxyClass>com.braintreegateway.DiscountGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>dispute</apiName>
                                     <proxyClass>com.braintreegateway.DisputeGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>documentUpload</apiName>
                                     <proxyClass>com.braintreegateway.DocumentUploadGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>merchantAccount</apiName>
                                     <proxyClass>com.braintreegateway.MerchantAccountGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                     <substitutions>
                                         <substitution>
                                             <method>^.+$</method>
@@ -182,9 +182,9 @@
                                 <api>
                                     <apiName>paymentMethod</apiName>
                                     <proxyClass>com.braintreegateway.PaymentMethodGateway</proxyClass>
-                                    <fromJavadoc>
+                                    <fromJavasource>
                                         <excludeMethods>.*parse.*</excludeMethods>
-                                    </fromJavadoc>
+                                    </fromJavasource>
                                     <substitutions>
                                         <substitution>
                                             <method>^.+$</method>
@@ -205,36 +205,36 @@
                                 <api>
                                     <apiName>paymentMethodNonce</apiName>
                                     <proxyClass>com.braintreegateway.PaymentMethodNonceGateway</proxyClass>
-                                    <fromJavadoc>
+                                    <fromJavasource>
                                         <excludeMethods>.*parse.*</excludeMethods>
-                                    </fromJavadoc>
+                                    </fromJavasource>
                                 </api>
                                 <api>
                                     <apiName>plan</apiName>
                                     <proxyClass>com.braintreegateway.PlanGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>report</apiName>
                                     <proxyClass>com.braintreegateway.ReportGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>settlementBatchSummary</apiName>
                                     <proxyClass>com.braintreegateway.SettlementBatchSummaryGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>subscription</apiName>
                                     <proxyClass>com.braintreegateway.SubscriptionGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                                 <api>
                                     <apiName>transaction</apiName>
                                     <proxyClass>com.braintreegateway.TransactionGateway</proxyClass>
-                                    <fromJavadoc>
+                                    <fromJavasource>
                                         <excludeMethods>.*TrData.*|.*ransparent.*</excludeMethods>
-                                    </fromJavadoc>
+                                    </fromJavasource>
                                     <substitutions>
                                         <substitution>
                                             <method>^.+$</method>
@@ -262,7 +262,7 @@
                                 <api>
                                     <apiName>webhookNotification</apiName>
                                     <proxyClass>com.braintreegateway.WebhookNotificationGateway</proxyClass>
-                                    <fromJavadoc />
+                                    <fromJavasource />
                                 </api>
                             </apis>
                         </configuration>
diff --git a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/AddressGatewayEndpointConfiguration.java b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/AddressGatewayEndpointConfiguration.java
index 43bdff9..84e549b 100644
--- a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/AddressGatewayEndpointConfiguration.java
+++ b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/AddressGatewayEndpointConfiguration.java
@@ -14,9 +14,9 @@ import org.apache.camel.spi.UriParams;
 @UriParams(apiName = "address")
 @Configurer
 public final class AddressGatewayEndpointConfiguration extends BraintreeConfiguration {
-    @UriParam(description = "The id of the")
+    @UriParam(description = "The id of the Customer")
     private String customerId;
-    @UriParam(description = "The id of the")
+    @UriParam(description = "The id of the Address to delete")
     private String id;
     @UriParam(description = "The request object")
     private com.braintreegateway.AddressRequest request;
diff --git a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/CustomerGatewayEndpointConfiguration.java b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/CustomerGatewayEndpointConfiguration.java
index bca9257..97d93f9 100644
--- a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/CustomerGatewayEndpointConfiguration.java
+++ b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/CustomerGatewayEndpointConfiguration.java
@@ -16,7 +16,7 @@ import org.apache.camel.spi.UriParams;
 public final class CustomerGatewayEndpointConfiguration extends BraintreeConfiguration {
     @UriParam(description = "The id of the association filter to use")
     private String associationFilterId;
-    @UriParam(description = "The id of the")
+    @UriParam(description = "The id of the Customer")
     private String id;
     @UriParam(description = "The request query to use for search")
     private com.braintreegateway.CustomerSearchRequest query;
diff --git a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/SubscriptionGatewayEndpointConfiguration.java b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/SubscriptionGatewayEndpointConfiguration.java
index 4820412..ec4ebde 100644
--- a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/SubscriptionGatewayEndpointConfiguration.java
+++ b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/SubscriptionGatewayEndpointConfiguration.java
@@ -18,11 +18,11 @@ public final class SubscriptionGatewayEndpointConfiguration extends BraintreeCon
     private java.math.BigDecimal amount;
     @UriParam
     private String customerId;
-    @UriParam(description = "Of the")
+    @UriParam(description = "Of the Subscription to cancel")
     private String id;
     @UriParam(description = "The request")
     private com.braintreegateway.SubscriptionRequest request;
-    @UriParam(description = "The")
+    @UriParam(description = "The SubscriptionSearchRequest")
     private com.braintreegateway.SubscriptionSearchRequest searchRequest;
     @UriParam
     private Boolean submitForSettlement;
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 d11a361..4ed8caf4 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
@@ -68,10 +68,10 @@
   },
   "apiProperties": {
     "addOn": {  },
-    "address": { "customerId": { "kind": "parameter", "displayName": "Customer Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The id of the" }, "id": { "kind": "parameter", "displayName": "Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The id of the" }, "request": { [...]
+    "address": { "customerId": { "kind": "parameter", "displayName": "Customer Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The id of the Customer" }, "id": { "kind": "parameter", "displayName": "Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The id of the Address [...]
     "clientToken": { "request": { "kind": "parameter", "displayName": "Request", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.braintreegateway.ClientTokenRequest", "deprecated": false, "secret": false, "description": "" } },
     "creditCardVerification": { "id": { "kind": "parameter", "displayName": "Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "" }, "query": { "kind": "parameter", "displayName": "Query", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.braintreegateway.CreditCardVerificationSearchRequest", "deprecated": false, "secret": false, "description":  [...]
-    "customer": { "associationFilterId": { "kind": "parameter", "displayName": "Association Filter Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The id of the association filter to use" }, "id": { "kind": "parameter", "displayName": "Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false,  [...]
+    "customer": { "associationFilterId": { "kind": "parameter", "displayName": "Association Filter Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The id of the association filter to use" }, "id": { "kind": "parameter", "displayName": "Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false,  [...]
     "discount": {  },
     "dispute": { "content": { "kind": "parameter", "displayName": "Content", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The content of the text evidence for the dispute" }, "disputeId": { "kind": "parameter", "displayName": "Dispute Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "de [...]
     "documentUpload": { "request": { "kind": "parameter", "displayName": "Request", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.braintreegateway.DocumentUploadRequest", "deprecated": false, "secret": false, "description": "" } },
@@ -81,7 +81,7 @@
     "plan": {  },
     "report": { "request": { "kind": "parameter", "displayName": "Request", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.braintreegateway.TransactionLevelFeeReportRequest", "deprecated": false, "secret": false, "description": "The request" } },
     "settlementBatchSummary": { "groupByCustomField": { "kind": "parameter", "displayName": "Group By Custom Field", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "" }, "settlementDate": { "kind": "parameter", "displayName": "Settlement Date", "group": "common", "label": "", "required": false, "type": "object", "javaType": "java.util.Calendar", "deprecated": false, "secret": false, [...]
-    "subscription": { "amount": { "kind": "parameter", "displayName": "Amount", "group": "common", "label": "", "required": false, "type": "object", "javaType": "java.math.BigDecimal", "deprecated": false, "secret": false, "description": "" }, "customerId": { "kind": "parameter", "displayName": "Customer Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "" }, "id": { "kind": "para [...]
+    "subscription": { "amount": { "kind": "parameter", "displayName": "Amount", "group": "common", "label": "", "required": false, "type": "object", "javaType": "java.math.BigDecimal", "deprecated": false, "secret": false, "description": "" }, "customerId": { "kind": "parameter", "displayName": "Customer Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "" }, "id": { "kind": "para [...]
     "transaction": { "amount": { "kind": "parameter", "displayName": "Amount", "group": "common", "label": "", "required": false, "type": "object", "javaType": "java.math.BigDecimal", "deprecated": false, "secret": false, "description": "" }, "cloneRequest": { "kind": "parameter", "displayName": "Clone Request", "group": "common", "label": "", "required": false, "type": "object", "javaType": "com.braintreegateway.TransactionCloneRequest", "deprecated": false, "secret": false, "descriptio [...]
     "webhookNotification": { "challenge": { "kind": "parameter", "displayName": "Challenge", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "" }, "payload": { "kind": "parameter", "displayName": "Payload", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "" }, "signature": { "kin [...]
   }
diff --git a/components/camel-braintree/src/main/docs/braintree-component.adoc b/components/camel-braintree/src/main/docs/braintree-component.adoc
index 2bd63b4..39bfa9a 100644
--- a/components/camel-braintree/src/main/docs/braintree-component.adoc
+++ b/components/camel-braintree/src/main/docs/braintree-component.adoc
@@ -149,8 +149,8 @@ The addOn method has no API parameters.
 [width="100%",cols="2,5,3",options="header"]
 |===
 | Name | Description | Type
-| *customerId* | The id of the | String
-| *id* | The id of the | String
+| *customerId* | The id of the Customer | String
+| *id* | The id of the Address to delete | String
 | *request* | The request object | AddressRequest
 |===
 
@@ -181,7 +181,7 @@ The addOn method has no API parameters.
 |===
 | Name | Description | Type
 | *associationFilterId* | The id of the association filter to use | String
-| *id* | The id of the | String
+| *id* | The id of the Customer | String
 | *query* | The request query to use for search | CustomerSearchRequest
 | *request* | The request | CustomerRequest
 |===
@@ -283,9 +283,9 @@ The plan method has no API parameters.
 | Name | Description | Type
 | *amount* |  | BigDecimal
 | *customerId* |  | String
-| *id* | Of the | String
+| *id* | Of the Subscription to cancel | String
 | *request* | The request | SubscriptionRequest
-| *searchRequest* | The | SubscriptionSearchRequest
+| *searchRequest* | The SubscriptionSearchRequest | SubscriptionSearchRequest
 | *submitForSettlement* |  | Boolean
 | *subscriptionId* |  | String
 |===