54.5. 生成者端点:


生产者端点可以使用端点前缀,后跟端点名称和后面描述的相关选项。简短的别名可用于某些端点。端点 URI MUST 包含前缀。

不强制的端点选项由 [] 表示。当端点没有强制选项时,需要提供一组 [] 选项之一。生产者端点也可以使用特殊选项 inBody,它应包含端点选项的名称,其值将包含在 Camel Exchange In 消息中。

任何端点选项都可以在端点 URI 中提供,或者在消息标头中动态提供。消息标头名称必须是 CamelBraintree.<option> 的格式。请注意,inBody 选项会覆盖消息标头,即 endpoint 选项 inBody=option 将覆盖 CamelBraintree.option 标头。

有关端点和选项的更多信息,请参阅 Braintree 参考 https://developers.braintreepayments.com/reference/overview

54.5.1. 端点前缀 addOn

以下端点可以通过前缀 addOn 调用,如下所示:

braintree://addOn/endpoint
端点简写别名选项结果正文类型

all

  

List<com.braintreegateway.Addon>

54.5.2. 端点前缀 地址

以下端点可以通过前缀 地址 调用,如下所示:

braintree://address/endpoint?[options]
端点简写别名选项结果正文类型

create

 

customerId, request

com.braintreegateway.Result<com.braintreegateway.Address>

delete

 

customerId, id

com.braintreegateway.Result<com.braintreegateway.Address>

查找

 

customerId, id

com.braintreegateway.Address

update

 

customerId, id, request

com.braintreegateway.Result<com.braintreegateway.Address>

地址的URI 选项

名称类型

customerId

字符串

Request (请求)

com.braintreegateway.AddressRequest

id

字符串

54.5.3. 端点前缀 clientToken

以下端点可以通过前缀 clientToken 调用,如下所示:

braintree://clientToken/endpoint?[options]
端点简写别名选项结果正文类型

generate

 

Request (请求)

字符串

clientToken的 URI Options

名称类型

Request (请求)

com.braintreegateway.ClientTokenrequest

54.5.4. 端点前缀 creditCardVerification

以下端点可以通过前缀 creditCardverification 调用,如下所示:

braintree://creditCardVerification/endpoint?[options]
端点简写别名选项结果正文类型

查找

 

id

com.braintreegateway.CreditCardVerification

search

 

query

com.braintreegateway.ResourceCollection<com.braintreegateway.CreditCardVerification>

creditCardVerification的 URI 选项

名称类型

id

字符串

query

com.braintreegateway.CreditCardVerificationSearchRequest

54.5.5. 端点前缀 客户

以下端点可以通过前缀 客户 调用,如下所示:

braintree://customer/endpoint?[options]
端点简写别名选项结果正文类型

all

   

create

 

Request (请求)

com.braintreegateway.Result<com.braintreegateway.Customer>

delete

 

id

com.braintreegateway.Result<com.braintreegateway.Customer>

查找

 

id

com.braintreegateway.Customer

search

 

query

com.braintreegateway.ResourceCollection<com.braintreegateway.Customer>

update

 

id, request

com.braintreegateway.Result<com.braintreegateway.Customer>

客户的URI 选项

名称类型

id

字符串

Request (请求)

com.braintreegateway.CustomerRequest

query

com.braintreegateway.CustomerSearchRequest

54.5.6. 端点前缀 折现

以下端点可以通过前缀 折扣 调用,如下所示:

braintree://discount/endpoint
端点简写别名选项结果正文类型

all

 

 

List<com.braintreegateway.Discount>

+
+

54.5.7. 端点前缀 分布

以下端点可以使用前缀 dispute 调用  如下所示:

braintree://dispute/endpoint?[options]
端点简写别名选项结果正文类型

accept

 

id

com.braintreegateway.Result

addFileEvidence

 

disputeId, documentId

com.braintreegateway.Result<DisputeEvidence>

addFileEvidence

 

disputeId, fileEvidenceRequest

com.braintreegateway.Result<DisputeEvidence>

addTextEvidence

 

disputeId, content

com.braintreegateway.Result<DisputeEvidence>

addTextEvidence

 

disputeId, textEvidenceRequest

com.braintreegateway.Result<DisputeEvidence>

完成

 

id

com.braintreegateway.Result

查找

 

id

com.braintreegateway.Dispute

removeEvidence

 

id

com.braintreegateway.Result

search

 

disputeSearchRequest

com.braintreegateway.PaginatedCollection<com.braintreegateway.Dispute>

吞吐量的 URI 选项 

名称类型

id

字符串

disputeId

字符串

documentId

字符串

fileEvidenceRequest

com.braintreegateway.FileEvidenceRequest

content

字符串

 

textEvidenceRequest

com.braintreegateway.TextEvidenceRequest

disputeSearchRequest

54.5.8. 端点前缀 文档Upload

以下端点可以通过前缀 文档Upload 调用,如下所示:

braintree://documentUpload/endpoint?[options]
端点简写别名选项结果正文类型

create

 

Request (请求)

com.braintreegateway.Result<com.braintreegateway.DocumentUpload>

文档Upload的 URI 选项

名称类型

Request (请求)

com.braintreegateway.DocumentUploadRequest

54.5.9. 端点前缀 merchantAccount

以下端点可以使用前缀 merchantAccount 调用,如下所示:

 

braintree://merchantAccount/endpoint?[options]
端点简写别名选项结果正文类型

create

 

Request (请求)

com.braintreegateway.Result<com.braintreegateway.MerchantAccount>

createForCurrency

 

currencyRequest

com.braintreegateway.Result<com.braintreegateway.MerchantAccount>

查找

 

id

com.braintreegateway.MerchantAccount

update

 

id, request

com.braintreegateway.Result<com.braintreegateway.MerchantAccount>

merchantAccount的 URI 选项

名称类型

id

字符串

Request (请求)

com.braintreegateway.MerchantAccountRequest

currencyRequest

com.braintreegateway.MerchantAccountCreateForCurrencyRequest

54.5.10. endpoint prefix paymentMethod

以下端点可以通过前缀 paymentMethod 调用,如下所示:

 

braintree://paymentMethod/endpoint?[options]
端点简写别名选项结果正文类型

create

 

Request (请求)

com.braintreegateway.Result<com.braintreegateway.PaymentMethod>

delete

 

token, deleteRequest

com.braintreegateway.Result<com.braintreegateway.PaymentMethod>

查找

 

token

com.braintreegateway.PaymentMethod

update

 

令牌、请求

com.braintreegateway.Result<com.braintreegateway.PaymentMethod>

paymentMethod的 URI 选项

名称类型

token

字符串

Request (请求)

com.braintreegateway.PaymentMethodRequest

deleteRequest

com.braintreegateway.PaymentMethodDeleteRequest

54.5.11. 端点前缀 paymentMethodNonce

以下端点可以通过前缀 paymentMethodNonce 调用,如下所示:

 

braintree://paymentMethodNonce/endpoint?[options]
端点简写别名选项结果正文类型

create

 

paymentMethodToken

com.braintreegateway.Result<com.braintreegateway.PaymentMethodNonce>

查找

 

paymentMethodNonce

com.braintreegateway.PaymentMethodNonce

paymentMethodNonce的 URI 选项

名称类型

paymentMethodToken

字符串

paymentMethodNonce

字符串

54.5.12. 端点前缀 计划

以下端点可以通过前缀 计划 调用,如下所示:

 

braintree://plan/endpoint
端点简写别名选项结果正文类型

all

 

 

List<com.braintreegateway.Plan>

54.5.13. 端点前缀 报告

以下端点可以通过前缀 报告 调用,如下所示:

braintree://plan/report?[options]
端点简写别名选项结果正文类型

transactionLevelFees

 

 Request (请求)

com.braintreegateway.Result<com.braintreegateway.TransactionLevelFeeReport>

报告的URI 选项

名称类型

Request (请求)

com.braintreegateway.TransactionLevelFeeReportRequest

54.5.14. 端点前缀 settlementBatchSummary

以下端点可以通过前缀 settlementBatchSummary 调用,如下所示:

 

braintree://settlementBatchSummary/endpoint?[options]
端点简写别名选项结果正文类型

generate

 

 Request (请求)

com.braintreegateway.Result<com.braintreegateway.SettlementBatchSummary>

settlement BatchSummary 的URI 选项

名称类型

settlementDate

日历

groupByCustomField

字符串

54.5.15. 端点前缀 订阅

以下端点可以通过前缀 订阅 调用,如下所示:

 

braintree://subscription/endpoint?[options]
端点简写别名选项结果正文类型

取消

 

 id

 com.braintreegateway.Result<com.braintreegateway.Subscription>

create

 

Request (请求)

com.braintreegateway.Result<com.braintreegateway.Subscription>

delete

 

customerId, id

com.braintreegateway.Result<com.braintreegateway.Subscription>

查找

 

id

com.braintreegateway.Subscription

retryCharge

 

subscriptionId, amount

com.braintreegateway.Result<com.braintreegateway.Transaction>

search

 

searchRequest

com.braintreegateway.ResourceCollection<com.braintreegateway.Subscription>

update

 

id, request

com.braintreegateway.Result<com.braintreegateway.Subscription>

订阅的URI 选项

名称类型

id

字符串

Request (请求)

com.braintreegateway.SubscriptionRequest

customerId

字符串

subscriptionId

字符串

amount

BigDecimal

searchRequest

com.braintreegateway.SubscriptionSearchRequest.

 

54.5.16. 端点前缀 事务

以下端点可以通过前缀 事务 调用,如下所示:

 

braintree://transaction/endpoint?[options]
端点简写别名选项结果正文类型

cancelRelease

 

id

com.braintreegateway.Result<com.braintreegateway.Transaction>

cloneTransaction

 

id, cloneRequest

com.braintreegateway.Result<com.braintreegateway.Transaction>

贡献度

 

Request (请求)

com.braintreegateway.Result<com.braintreegateway.Transaction>

查找

 

id

com.braintreegateway.Transaction

holdInEscrow

 

id

com.braintreegateway.Result<com.braintreegateway.Transaction>

releaseFromEscrow

 

id

com.braintreegateway.Result<com.braintreegateway.Transaction>

退款

 

id, amount, refundRequest

com.braintreegateway.Result<com.braintreegateway.Transaction>

sales

 

Request (请求)

com.braintreegateway.Result<com.braintreegateway.Transaction>

search

 

query

com.braintreegateway.ResourceCollection<com.braintreegateway.Transaction>

submitForPartialSettlement

 

id, amount

com.braintreegateway.Result<com.braintreegateway.Transaction>

submitForSettlement

 

id, amount, request

com.braintreegateway.Result<com.braintreegateway.Transaction>

voidTransaction

 

id

com.braintreegateway.Result<com.braintreegateway.Transaction>

事务的 URI 选项 

名称类型

id

字符串

Request (请求)

com.braintreegateway.TransactionCloneRequest

cloneRequest

com.braintreegateway.TransactionCloneRequest

refundRequest

com.braintreegateway.TransactionRefundRequest

amount

BigDecimal

query

com.braintreegateway.TransactionSearchRequest

54.5.17. 端点前缀 WebhookNotification

以下端点可以使用前缀 webhookNotification 调用,如下所示:

 

braintree://webhookNotification/endpoint?[options]
端点简写别名选项结果正文类型

parse

 

 签名, payload

com.braintreegateway.WebhookNotification

验证

 

挑战

字符串

WebhookNotification的 URI 选项

名称类型

signature

字符串

payload

字符串

挑战

字符串

 

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.