54.5. 生产者端点:
生产者端点可以使用端点前缀,后跟端点名称和关联的选项。可以将简写别名用于某些端点。端点 URI MUST 包含前缀。
未强制的端点选项由 [] 表示。当端点没有强制选项时,必须提供其中一组 [] 选项。生成者端点也可以使用特殊选项 inBody,它应包含端点选项的名称,其值将包含在 Camel Exchange In 消息中。
任何端点选项都可以在端点 URI 中提供,或者在消息标头中动态提供。消息标头名称必须是 CamelBraintree.<option> 格式。请注意,inBody 选项会覆盖消息标头,即 Body=option 中的端点选项会覆盖 CamelBraintree.option 标头。
有关端点和选项的更多信息,请参阅 Braintree 参考 https://developers.braintreepayments.com/reference/overview
54.5.1. 端点前缀 addOn 复制链接链接已复制到粘贴板!
以下端点可以通过 prefix addOn 调用,如下所示:
braintree://addOn/endpoint
braintree://addOn/endpoint
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| all | List<com.braintreegateway.Addon> |
54.5.2. 端点前缀 地址 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 地址 调用,如下所示:
braintree://address/endpoint?[options]
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 选项
| Name | 类型 |
|---|---|
| customerId | 字符串 |
| request | com.braintreegateway.AddressRequest |
| id | 字符串 |
54.5.3. 端点前缀 clientToken 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 clientToken 调用,如下所示:
braintree://clientToken/endpoint?[options]
braintree://clientToken/endpoint?[options]
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| generate | request | 字符串 |
clientToken的 URI 选项
| Name | 类型 |
|---|---|
| request | com.braintreegateway.ClientTokenrequest |
54.5.4. 端点前缀 creditCardVerification 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 creditCardverification 调用,如下所示:
braintree://creditCardVerification/endpoint?[options]
braintree://creditCardVerification/endpoint?[options]
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| 查找 | id | com.braintreegateway.CreditCardVerification | |
| search | query | com.braintreegateway.ResourceCollection<com.braintreegateway.CreditCardVerification> |
creditCardVerification的 URI 选项
| Name | 类型 |
|---|---|
| id | 字符串 |
| query | com.braintreegateway.CreditCardVerificationSearchRequest |
54.5.5. 端点前缀 客户 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 客户 调用:
braintree://customer/endpoint?[options]
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 选项
| Name | 类型 |
|---|---|
| id | 字符串 |
| request | com.braintreegateway.CustomerRequest |
| query | com.braintreegateway.CustomerSearchRequest |
54.5.6. 端点前缀 折扣 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 discount 调用 , 如下所示:
braintree://discount/endpoint
braintree://discount/endpoint
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| all |
| List<com.braintreegateway.Discount> |
+
+
+
+
54.5.7. 端点前缀 冲突 复制链接链接已复制到粘贴板!
以下端点可以使用前缀冲突调用 , 如下所示:
braintree://dispute/endpoint?[options]
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> |
dispute的 URI 选项
| Name | 类型 |
|---|---|
| id | 字符串 |
| disputeId | 字符串 |
| documentId | 字符串 |
| fileEvidenceRequest | com.braintreegateway.FileEvidenceRequest |
| content | 字符串 |
| textEvidenceRequest | |
| com.braintreegateway.TextEvidenceRequest | disputeSearchRequest |
54.5.8. 端点前缀 documentUpload 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 documentUpload 调用,如下所示:
braintree://documentUpload/endpoint?[options]
braintree://documentUpload/endpoint?[options]
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| create |
| request | com.braintreegateway.Result<com.braintreegateway.DocumentUpload> |
documentUpload的 URI 选项
| Name | 类型 |
|---|---|
| request | com.braintreegateway.DocumentUploadRequest |
54.5.9. 端点前缀 merchantAccount 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 merchantAccount 调用,如下所示:
braintree://merchantAccount/endpoint?[options]
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 选项
| Name | 类型 |
|---|---|
| id | 字符串 |
| request | com.braintreegateway.MerchantAccountRequest |
| currencyRequest | com.braintreegateway.MerchantAccountCreateForCurrencyRequest |
54.5.10. 端点前缀 paymentMethod 复制链接链接已复制到粘贴板!
以下端点可以使用前缀 paymentMethod 调用,如下所示:
braintree://paymentMethod/endpoint?[options]
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 选项
| Name | 类型 |
|---|---|
| token | 字符串 |
| request | com.braintreegateway.PaymentMethodRequest |
| deleteRequest | com.braintreegateway.PaymentMethodDeleteRequest |
54.5.11. 端点前缀 paymentMethodNonce 复制链接链接已复制到粘贴板!
以下端点可以使用前缀 paymentMethodNonce 调用,如下所示:
braintree://paymentMethodNonce/endpoint?[options]
braintree://paymentMethodNonce/endpoint?[options]
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| create |
| paymentMethodToken | com.braintreegateway.Result<com.braintreegateway.PaymentMethodNonce> |
| 查找 |
| paymentMethodNonce | com.braintreegateway.PaymentMethodNonce |
paymentMethodNonce的 URI 选项
| Name | 类型 |
|---|---|
| paymentMethodToken | 字符串 |
| paymentMethodNonce | 字符串 |
54.5.12. 端点前缀 计划 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 计划 调用:
braintree://plan/endpoint
braintree://plan/endpoint
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| all |
|
| List<com.braintreegateway.Plan> |
54.5.13. 端点前缀 报告 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 报告 调用:
braintree://plan/report?[options]
braintree://plan/report?[options]
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| transactionLevelFees |
| request | com.braintreegateway.Result<com.braintreegateway.TransactionLevelFeeReport> |
报告的URI 选项
| Name | 类型 |
|---|---|
| request | com.braintreegateway.TransactionLevelFeeReportRequest |
54.5.14. 端点前缀 settlementBatchSummary 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 settlementBatchSummary 调用,如下所示:
braintree://settlementBatchSummary/endpoint?[options]
braintree://settlementBatchSummary/endpoint?[options]
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| generate |
| request | com.braintreegateway.Result<com.braintreegateway.SettlementBatchSummary> |
settlement BatchSummary 的URI 选项
| Name | 类型 |
|---|---|
| settlementDate | 日历 |
| groupByCustomField | 字符串 |
54.5.15. 端点前缀 订阅 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 订阅 调用:
braintree://subscription/endpoint?[options]
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 选项
| Name | 类型 |
|---|---|
| id | 字符串 |
| request | com.braintreegateway.SubscriptionRequest |
| customerId | 字符串 |
| subscriptionId | 字符串 |
| amount | BigDecimal |
| searchRequest | com.braintreegateway.SubscriptionSearchRequest. |
54.5.16. 端点前缀 事务 复制链接链接已复制到粘贴板!
以下端点可以通过前缀 事务 调用:
braintree://transaction/endpoint?[options]
braintree://transaction/endpoint?[options]
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| cancelRelease |
| id | com.braintreegateway.Result<com.braintreegateway.Transaction> |
| cloneTransaction |
| ID, cloneRequest | com.braintreegateway.Result<com.braintreegateway.Transaction> |
| credit |
| 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> |
| 销售 |
| 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 选项
| Name | 类型 |
|---|---|
| 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]
braintree://webhookNotification/endpoint?[options]
| 端点 | 简写别名 | 选项 | 结果正文类型 |
|---|---|---|---|
| parse |
| 签名、有效负载 | com.braintreegateway.WebhookNotification |
| 验证 |
| 挑战 | 字符串 |
WebhookNotification的 URI 选项
| Name | 类型 |
|---|---|
| 签名 | 字符串 |
| payload | 字符串 |
| 挑战 | 字符串 |