This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 620a0df3d00cda54884de6107d4af9862f93f27b Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Sun Apr 18 19:05:38 2021 +0200 Regen --- camel-dependencies/pom.xml | 2 +- .../org/apache/camel/catalog/components/braintree.json | 4 ++-- .../org/apache/camel/catalog/docs/braintree-component.adoc | 12 ++++++++++-- .../braintree/TransactionGatewayEndpointConfiguration.java | 8 ++++---- .../braintree/internal/TransactionGatewayApiMethod.java | 12 ++++++++++++ .../org/apache/camel/component/braintree/braintree.json | 4 ++-- .../camel-braintree/src/main/docs/braintree-component.adoc | 12 ++++++++++-- docs/components/modules/ROOT/pages/braintree-component.adoc | 12 ++++++++++-- 8 files changed, 51 insertions(+), 15 deletions(-) diff --git a/camel-dependencies/pom.xml b/camel-dependencies/pom.xml index 326e130..f430f5f 100644 --- a/camel-dependencies/pom.xml +++ b/camel-dependencies/pom.xml @@ -79,7 +79,7 @@ <beanstalkd-client-version>1.4.6</beanstalkd-client-version> <bouncycastle-version>1.68</bouncycastle-version> <box-java-sdk-version>2.54.0</box-java-sdk-version> - <braintree-gateway-version>3.7.0</braintree-gateway-version> + <braintree-gateway-version>3.8.0</braintree-gateway-version> <brave-zipkin-version>5.13.3</brave-zipkin-version> <build-helper-maven-plugin-version>3.2.0</build-helper-maven-plugin-version> <c3p0-version>0.9.5.5</c3p0-version> diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/braintree.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/braintree.json index 21baa5a..414078c 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/braintree.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/braintree.json @@ -57,7 +57,7 @@ "report": { "consumerOnly": false, "producerOnly": true, "description": "Provides methods to interact with reports", "methods": { "transactionLevelFees": { "description": "Retrieves a Transaction-Level Fee Report", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.TransactionLevelFeeReport> transactionLevelFees(com.braintreegateway.TransactionLevelFeeReportRequest request)" ] } } }, "settlementBatchSummary": { "consumerOnly": false, "producerOnly": true, "description": "Provides methods to interact wit settlement summaries", "methods": { "generate": { "description": "", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.SettlementBatchSummary> generate(java.util.Calendar settlementDate)", "com.braintreegateway.Result<com.braintreegateway.SettlementBatchSummary> generate(java.util.Calendar settlementDate, String groupByCustomField)" ] } } }, "subscription": { "consumerOnly": false, "producerOnly": true, "description": "Provides methods to interact with Subscriptions", "methods": { "cancel": { "description": "Cancels the Subscription with the given id", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.Subscription> cancel(String id)" ] }, "create": { "description": "Creates a Subscription", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.Subscription> create(com.braintreegateway.Subscrip [...] - "transaction": { "consumerOnly": false, "producerOnly": true, "description": "Provides methods to interact with Transactions", "methods": { "cancelRelease": { "description": "Cancels a pending release of a transaction with the given id from escrow", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.Transaction> cancelRelease(String id)" ] }, "cloneTransaction": { "description": "", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.Transaction> cloneTra [...] + "transaction": { "consumerOnly": false, "producerOnly": true, "description": "Provides methods to interact with Transactions", "methods": { "adjustAuthorization": { "description": "Submits the transaction with the given id to be adjusted for the given amount which must be less than or equal to the authorization amount", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.Transaction> adjustAuthorization(String id, com.braintreegateway.TransactionRequest request)", "com. [...] "webhookNotification": { "consumerOnly": false, "producerOnly": true, "description": "To retrieve notifications via webhooks", "methods": { "parse": { "description": "", "signatures": [ "com.braintreegateway.WebhookNotification parse(String signature, String payload)" ] }, "verify": { "description": "", "signatures": [ "String verify(String challenge)" ] } } } }, "apiProperties": { @@ -73,7 +73,7 @@ "report": { "methods": { "transactionLevelFees": { "properties": { "request": { "kind": "parameter", "displayName": "Request", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "com.braintreegateway.TransactionLevelFeeReportRequest", "deprecated": false, "autowired": false, "secret": false, "description": "The request", "optional": false } } } } }, "settlementBatchSummary": { "methods": { "generate": { "properties": { "groupByCustomField": { "kind": "parameter", "displayName": "Group By Custom Field", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "", "optional": false }, "settlementDate": { "kind": "parameter", "displayName": "Settlement Date", "group": "producer", "label": "", "required": false, "ty [...] "subscription": { "methods": { "cancel": { "properties": { "id": { "kind": "parameter", "displayName": "Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Of the Subscription to cancel", "optional": false } } }, "create": { "properties": { "request": { "kind": "parameter", "displayName": "Request", "group": "producer", "label": "", "required": false, "typ [...] - "transaction": { "methods": { "cancelRelease": { "properties": { "id": { "kind": "parameter", "displayName": "Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Of the transaction to cancel release from escrow of", "optional": false } } }, "cloneTransaction": { "properties": { "cloneRequest": { "kind": "parameter", "displayName": "Clone Request", "group": [...] + "transaction": { "methods": { "adjustAuthorization": { "properties": { "amount": { "kind": "parameter", "displayName": "Amount", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.math.BigDecimal", "deprecated": false, "autowired": false, "secret": false, "description": "To be adjusted", "optional": false }, "id": { "kind": "parameter", "displayName": "Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.l [...] "webhookNotification": { "methods": { "parse": { "properties": { "payload": { "kind": "parameter", "displayName": "Payload", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "", "optional": false }, "signature": { "kind": "parameter", "displayName": "Signature", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.Stri [...] } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/braintree-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/braintree-component.adoc index da92362..3859c88 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/braintree-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/braintree-component.adoc @@ -902,12 +902,16 @@ would override a `CamelBraintree.myParameterNameHere` header. -The transaction API has 13 method(s) which is represented by the following method signatures +The transaction API has 14 method(s) which is represented by the following method signatures (an API method may have multiple signatures due to overloading): [source,java] ---- +com.braintreegateway.Result<com.braintreegateway.Transaction> adjustAuthorization(String id, com.braintreegateway.TransactionRequest request); + +com.braintreegateway.Result<com.braintreegateway.Transaction> adjustAuthorization(String id, java.math.BigDecimal amount); + com.braintreegateway.Result<com.braintreegateway.Transaction> cancelRelease(String id); com.braintreegateway.Result<com.braintreegateway.Transaction> cloneTransaction(String id, com.braintreegateway.TransactionCloneRequest request); @@ -952,12 +956,13 @@ The transaction API is defined in the syntax as follows: braintree:transaction/methodName?[parameters] ---- -The 13 method(s) is listed in the table below. +The 14 method(s) is listed in the table below. (API methods can have a shorthand alias name which can be used in the syntax instead of the name) [width="100%",cols="2,2,6",options="header"] |=== | Method | Alias | Description +| *adjustAuthorization* | | Submits the transaction with the given id to be adjusted for the given amount which must be less than or equal to the authorization amount | *cancelRelease* | | Cancels a pending release of a transaction with the given id from escrow | *cloneTransaction* | | | *credit* | | Creates a credit Transaction @@ -977,6 +982,9 @@ The transaction API method(s) has the following set of parameters listed in the [width="100%",cols="2,2,4,2",options="header"] |=== | Method | Parameter | Description | Type +| adjustAuthorization | *amount* | To be adjusted | BigDecimal +| adjustAuthorization | *id* | Of the transaction to to be adjusted | String +| adjustAuthorization | *request* | Is the TransactionRequest object with amount details | TransactionRequest | cancelRelease | *id* | Of the transaction to cancel release from escrow of | String | cloneTransaction | *cloneRequest* | | TransactionCloneRequest | cloneTransaction | *id* | | String diff --git a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/TransactionGatewayEndpointConfiguration.java b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/TransactionGatewayEndpointConfiguration.java index c705e69..7fcdc82 100644 --- a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/TransactionGatewayEndpointConfiguration.java +++ b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/TransactionGatewayEndpointConfiguration.java @@ -16,18 +16,18 @@ import org.apache.camel.spi.UriParams; */ @ApiParams(apiName = "transaction", description = "Provides methods to interact with Transactions", - apiMethods = {@ApiMethod(methodName = "cancelRelease", description="Cancels a pending release of a transaction with the given id from escrow", signatures={"com.braintreegateway.Result<com.braintreegateway.Transaction> cancelRelease(String id)"}), @ApiMethod(methodName = "cloneTransaction", signatures={"com.braintreegateway.Result<com.braintreegateway.Transaction> cloneTransaction(String id, com.braintreegateway.TransactionCloneRequest request)"}), @ApiMethod(methodName = "cred [...] + apiMethods = {@ApiMethod(methodName = "adjustAuthorization", description="Submits the transaction with the given id to be adjusted for the given amount which must be less than or equal to the authorization amount", signatures={"com.braintreegateway.Result<com.braintreegateway.Transaction> adjustAuthorization(String id, java.math.BigDecimal amount)", "com.braintreegateway.Result<com.braintreegateway.Transaction> adjustAuthorization(String id, com.braintreegateway.TransactionReq [...] @UriParams @Configurer(extended = true) public final class TransactionGatewayEndpointConfiguration extends BraintreeConfiguration { @UriParam - @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "refund"), @ApiMethod(methodName = "submitForPartialSettlement", description="Of the partial settlement"), @ApiMethod(methodName = "submitForSettlement", description="To settle. must be less than or equal to the authorization amount.")}) + @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "adjustAuthorization", description="To be adjusted"), @ApiMethod(methodName = "refund"), @ApiMethod(methodName = "submitForPartialSettlement", description="Of the partial settlement"), @ApiMethod(methodName = "submitForSettlement", description="To settle. must be less than or equal to the authorization amount.")}) private java.math.BigDecimal amount; @UriParam @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "cloneTransaction")}) private com.braintreegateway.TransactionCloneRequest cloneRequest; @UriParam - @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "cancelRelease", description="Of the transaction to cancel release from escrow of"), @ApiMethod(methodName = "cloneTransaction"), @ApiMethod(methodName = "find", description="The id of the Transaction"), @ApiMethod(methodName = "holdInEscrow", description="Of the transaction to hold for escrow"), @ApiMethod(methodName = "refund"), @ApiMethod(methodName = "releaseFromEscrow", description="Of the transaction to submit fo [...] + @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "adjustAuthorization", description="Of the transaction to to be adjusted"), @ApiMethod(methodName = "cancelRelease", description="Of the transaction to cancel release from escrow of"), @ApiMethod(methodName = "cloneTransaction"), @ApiMethod(methodName = "find", description="The id of the Transaction"), @ApiMethod(methodName = "holdInEscrow", description="Of the transaction to hold for escrow"), @ApiMethod(methodName = [...] private String id; @UriParam @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "search", description="The search query")}) @@ -36,7 +36,7 @@ public final class TransactionGatewayEndpointConfiguration extends BraintreeConf @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "refund")}) private com.braintreegateway.TransactionRefundRequest refundRequest; @UriParam - @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "credit", description="The request"), @ApiMethod(methodName = "sale", description="The request"), @ApiMethod(methodName = "submitForPartialSettlement", description="The request"), @ApiMethod(methodName = "submitForSettlement", description="The request"), @ApiMethod(methodName = "updateDetails", description="The request")}) + @ApiParam(optional = false, apiMethods = {@ApiMethod(methodName = "adjustAuthorization", description="Is the TransactionRequest object with amount details"), @ApiMethod(methodName = "credit", description="The request"), @ApiMethod(methodName = "sale", description="The request"), @ApiMethod(methodName = "submitForPartialSettlement", description="The request"), @ApiMethod(methodName = "submitForSettlement", description="The request"), @ApiMethod(methodName = "updateDetails", descriptio [...] private com.braintreegateway.TransactionRequest request; public java.math.BigDecimal getAmount() { diff --git a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/TransactionGatewayApiMethod.java b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/TransactionGatewayApiMethod.java index 64bb0a9..aa85113 100644 --- a/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/TransactionGatewayApiMethod.java +++ b/components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/internal/TransactionGatewayApiMethod.java @@ -20,6 +20,18 @@ import static org.apache.camel.support.component.ApiMethodArg.arg; */ public enum TransactionGatewayApiMethod implements ApiMethod { + ADJUST_AUTHORIZATION( + com.braintreegateway.Result.class, + "adjustAuthorization", + arg("id", String.class), + arg("amount", java.math.BigDecimal.class)), + + ADJUST_AUTHORIZATION_1( + com.braintreegateway.Result.class, + "adjustAuthorization", + arg("id", String.class), + arg("request", com.braintreegateway.TransactionRequest.class)), + CANCEL_RELEASE( com.braintreegateway.Result.class, "cancelRelease", 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 21baa5a..414078c 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 @@ -57,7 +57,7 @@ "report": { "consumerOnly": false, "producerOnly": true, "description": "Provides methods to interact with reports", "methods": { "transactionLevelFees": { "description": "Retrieves a Transaction-Level Fee Report", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.TransactionLevelFeeReport> transactionLevelFees(com.braintreegateway.TransactionLevelFeeReportRequest request)" ] } } }, "settlementBatchSummary": { "consumerOnly": false, "producerOnly": true, "description": "Provides methods to interact wit settlement summaries", "methods": { "generate": { "description": "", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.SettlementBatchSummary> generate(java.util.Calendar settlementDate)", "com.braintreegateway.Result<com.braintreegateway.SettlementBatchSummary> generate(java.util.Calendar settlementDate, String groupByCustomField)" ] } } }, "subscription": { "consumerOnly": false, "producerOnly": true, "description": "Provides methods to interact with Subscriptions", "methods": { "cancel": { "description": "Cancels the Subscription with the given id", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.Subscription> cancel(String id)" ] }, "create": { "description": "Creates a Subscription", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.Subscription> create(com.braintreegateway.Subscrip [...] - "transaction": { "consumerOnly": false, "producerOnly": true, "description": "Provides methods to interact with Transactions", "methods": { "cancelRelease": { "description": "Cancels a pending release of a transaction with the given id from escrow", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.Transaction> cancelRelease(String id)" ] }, "cloneTransaction": { "description": "", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.Transaction> cloneTra [...] + "transaction": { "consumerOnly": false, "producerOnly": true, "description": "Provides methods to interact with Transactions", "methods": { "adjustAuthorization": { "description": "Submits the transaction with the given id to be adjusted for the given amount which must be less than or equal to the authorization amount", "signatures": [ "com.braintreegateway.Result<com.braintreegateway.Transaction> adjustAuthorization(String id, com.braintreegateway.TransactionRequest request)", "com. [...] "webhookNotification": { "consumerOnly": false, "producerOnly": true, "description": "To retrieve notifications via webhooks", "methods": { "parse": { "description": "", "signatures": [ "com.braintreegateway.WebhookNotification parse(String signature, String payload)" ] }, "verify": { "description": "", "signatures": [ "String verify(String challenge)" ] } } } }, "apiProperties": { @@ -73,7 +73,7 @@ "report": { "methods": { "transactionLevelFees": { "properties": { "request": { "kind": "parameter", "displayName": "Request", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "com.braintreegateway.TransactionLevelFeeReportRequest", "deprecated": false, "autowired": false, "secret": false, "description": "The request", "optional": false } } } } }, "settlementBatchSummary": { "methods": { "generate": { "properties": { "groupByCustomField": { "kind": "parameter", "displayName": "Group By Custom Field", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "", "optional": false }, "settlementDate": { "kind": "parameter", "displayName": "Settlement Date", "group": "producer", "label": "", "required": false, "ty [...] "subscription": { "methods": { "cancel": { "properties": { "id": { "kind": "parameter", "displayName": "Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Of the Subscription to cancel", "optional": false } } }, "create": { "properties": { "request": { "kind": "parameter", "displayName": "Request", "group": "producer", "label": "", "required": false, "typ [...] - "transaction": { "methods": { "cancelRelease": { "properties": { "id": { "kind": "parameter", "displayName": "Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Of the transaction to cancel release from escrow of", "optional": false } } }, "cloneTransaction": { "properties": { "cloneRequest": { "kind": "parameter", "displayName": "Clone Request", "group": [...] + "transaction": { "methods": { "adjustAuthorization": { "properties": { "amount": { "kind": "parameter", "displayName": "Amount", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "java.math.BigDecimal", "deprecated": false, "autowired": false, "secret": false, "description": "To be adjusted", "optional": false }, "id": { "kind": "parameter", "displayName": "Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.l [...] "webhookNotification": { "methods": { "parse": { "properties": { "payload": { "kind": "parameter", "displayName": "Payload", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "", "optional": false }, "signature": { "kind": "parameter", "displayName": "Signature", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.Stri [...] } } diff --git a/components/camel-braintree/src/main/docs/braintree-component.adoc b/components/camel-braintree/src/main/docs/braintree-component.adoc index da92362..3859c88 100644 --- a/components/camel-braintree/src/main/docs/braintree-component.adoc +++ b/components/camel-braintree/src/main/docs/braintree-component.adoc @@ -902,12 +902,16 @@ would override a `CamelBraintree.myParameterNameHere` header. -The transaction API has 13 method(s) which is represented by the following method signatures +The transaction API has 14 method(s) which is represented by the following method signatures (an API method may have multiple signatures due to overloading): [source,java] ---- +com.braintreegateway.Result<com.braintreegateway.Transaction> adjustAuthorization(String id, com.braintreegateway.TransactionRequest request); + +com.braintreegateway.Result<com.braintreegateway.Transaction> adjustAuthorization(String id, java.math.BigDecimal amount); + com.braintreegateway.Result<com.braintreegateway.Transaction> cancelRelease(String id); com.braintreegateway.Result<com.braintreegateway.Transaction> cloneTransaction(String id, com.braintreegateway.TransactionCloneRequest request); @@ -952,12 +956,13 @@ The transaction API is defined in the syntax as follows: braintree:transaction/methodName?[parameters] ---- -The 13 method(s) is listed in the table below. +The 14 method(s) is listed in the table below. (API methods can have a shorthand alias name which can be used in the syntax instead of the name) [width="100%",cols="2,2,6",options="header"] |=== | Method | Alias | Description +| *adjustAuthorization* | | Submits the transaction with the given id to be adjusted for the given amount which must be less than or equal to the authorization amount | *cancelRelease* | | Cancels a pending release of a transaction with the given id from escrow | *cloneTransaction* | | | *credit* | | Creates a credit Transaction @@ -977,6 +982,9 @@ The transaction API method(s) has the following set of parameters listed in the [width="100%",cols="2,2,4,2",options="header"] |=== | Method | Parameter | Description | Type +| adjustAuthorization | *amount* | To be adjusted | BigDecimal +| adjustAuthorization | *id* | Of the transaction to to be adjusted | String +| adjustAuthorization | *request* | Is the TransactionRequest object with amount details | TransactionRequest | cancelRelease | *id* | Of the transaction to cancel release from escrow of | String | cloneTransaction | *cloneRequest* | | TransactionCloneRequest | cloneTransaction | *id* | | String diff --git a/docs/components/modules/ROOT/pages/braintree-component.adoc b/docs/components/modules/ROOT/pages/braintree-component.adoc index 15dea4d..aee7b60 100644 --- a/docs/components/modules/ROOT/pages/braintree-component.adoc +++ b/docs/components/modules/ROOT/pages/braintree-component.adoc @@ -904,12 +904,16 @@ would override a `CamelBraintree.myParameterNameHere` header. -The transaction API has 13 method(s) which is represented by the following method signatures +The transaction API has 14 method(s) which is represented by the following method signatures (an API method may have multiple signatures due to overloading): [source,java] ---- +com.braintreegateway.Result<com.braintreegateway.Transaction> adjustAuthorization(String id, com.braintreegateway.TransactionRequest request); + +com.braintreegateway.Result<com.braintreegateway.Transaction> adjustAuthorization(String id, java.math.BigDecimal amount); + com.braintreegateway.Result<com.braintreegateway.Transaction> cancelRelease(String id); com.braintreegateway.Result<com.braintreegateway.Transaction> cloneTransaction(String id, com.braintreegateway.TransactionCloneRequest request); @@ -954,12 +958,13 @@ The transaction API is defined in the syntax as follows: braintree:transaction/methodName?[parameters] ---- -The 13 method(s) is listed in the table below. +The 14 method(s) is listed in the table below. (API methods can have a shorthand alias name which can be used in the syntax instead of the name) [width="100%",cols="2,2,6",options="header"] |=== | Method | Alias | Description +| *adjustAuthorization* | | Submits the transaction with the given id to be adjusted for the given amount which must be less than or equal to the authorization amount | *cancelRelease* | | Cancels a pending release of a transaction with the given id from escrow | *cloneTransaction* | | | *credit* | | Creates a credit Transaction @@ -979,6 +984,9 @@ The transaction API method(s) has the following set of parameters listed in the [width="100%",cols="2,2,4,2",options="header"] |=== | Method | Parameter | Description | Type +| adjustAuthorization | *amount* | To be adjusted | BigDecimal +| adjustAuthorization | *id* | Of the transaction to to be adjusted | String +| adjustAuthorization | *request* | Is the TransactionRequest object with amount details | TransactionRequest | cancelRelease | *id* | Of the transaction to cancel release from escrow of | String | cloneTransaction | *cloneRequest* | | TransactionCloneRequest | cloneTransaction | *id* | | String