Skip to content

Commit 9b58e54

Browse files
committed
4.14.0
1 parent 8990936 commit 9b58e54

23 files changed

Lines changed: 127 additions & 33 deletions

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- [ ] Added changelog entry
66
- [ ] Ran unit tests (`nosetests tests/unit`)
7+
- [ ] I understand that unless this is a Draft PR or has a DO NOT MERGE label, this PR is considered to be in a deploy ready state and can be deployed if merged to main
78

89
<!-- **For Braintree Developers only, don't forget:**
910
- [ ] Does this change require work to be done to the GraphQL API? If you have questions check with the GraphQL team.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 4.14.0
2+
* Add `PaymentMethodCustomerDataUpdated` webhook
3+
14
## 4.13.0
25
* Add plan create/update/find API endpoint
36
* Add `TransactionReview` webhook notification

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _The Python core development community has released [End-of-Life branches](https
1515

1616
## Versions
1717

18-
Braintree employs a deprecation policy for our SDKs. For more information on the statuses of an SDK check our [developer docs](http://developers.braintreepayments.com/reference/general/server-sdk-deprecation-policy).
18+
Braintree employs a deprecation policy for our SDKs. For more information on the statuses of an SDK check our [developer docs](https://developer.paypal.com/braintree/docs/reference/general/server-sdk-deprecation-policy).
1919

2020
| Major version number | Status | Released | Deprecated | Unsupported |
2121
| -------------------- | ------ | -------- | ---------- | ----------- |
@@ -24,9 +24,9 @@ Braintree employs a deprecation policy for our SDKs. For more information on the
2424

2525
## Documentation
2626

27-
* [Official documentation](https://developers.braintreepayments.com/ios+python/start/hello-server)
27+
* [Official documentation](https://developer.paypal.com/braintree/docs/start/hello-server/python)
2828

29-
Updating from an Inactive, Deprecated, or Unsupported version of this SDK? Check our [Migration Guide](https://developers.braintreepayments.com/reference/general/server-sdk-migration-guide/python) for tips.
29+
Updating from an Inactive, Deprecated, or Unsupported version of this SDK? Check our [Migration Guide](https://developer.paypal.com/braintree/docs/reference/general/server-sdk-migration-guide/python) for tips.
3030

3131
## Quick Start Example
3232

braintree/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from braintree.discount_gateway import DiscountGateway
2929
from braintree.dispute import Dispute
3030
from braintree.dispute_search import DisputeSearch
31+
from braintree.enriched_customer_data import EnrichedCustomerData
3132
from braintree.environment import Environment
3233
from braintree.error_codes import ErrorCodes
3334
from braintree.error_result import ErrorResult
@@ -41,6 +42,7 @@
4142
from braintree.partner_merchant import PartnerMerchant
4243
from braintree.payment_instrument_type import PaymentInstrumentType
4344
from braintree.payment_method import PaymentMethod
45+
from braintree.payment_method_customer_data_updated_metadata import PaymentMethodCustomerDataUpdatedMetadata
4446
from braintree.payment_method_nonce import PaymentMethodNonce
4547
from braintree.payment_method_parser import parse_payment_method
4648
from braintree.paypal_account import PayPalAccount
@@ -70,6 +72,7 @@
7072
from braintree.unknown_payment_method import UnknownPaymentMethod
7173
from braintree.validation_error_collection import ValidationErrorCollection
7274
from braintree.venmo_account import VenmoAccount
75+
from braintree.venmo_profile_data import VenmoProfileData
7376
from braintree.version import Version
7477
from braintree.webhook_notification import WebhookNotification
7578
from braintree.webhook_notification_gateway import WebhookNotificationGateway

braintree/credit_card.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CreditCard(Resource):
3838
print(result.credit_card.token)
3939
print(result.credit_card.masked_number)
4040
41-
For more information on CreditCards, see https://developers.braintreepayments.com/reference/request/credit-card/create/python
41+
For more information on CreditCards, see https://developer.paypal.com/braintree/docs/reference/request/credit-card/create/python
4242
4343
"""
4444
class CardType(object):

braintree/customer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Customer(Resource):
6666
print(result.customer.id)
6767
print(result.customer.first_name)
6868
69-
For more information on Customers, see https://developers.braintreepayments.com/reference/request/customer/create/python
69+
For more information on Customers, see https://developer.paypal.com/braintree/docs/reference/request/customer/create/python
7070
7171
"""
7272

braintree/document_upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DocumentUpload(Resource):
1717
}
1818
)
1919
20-
For more information on DocumentUploads, see https://developers.braintreepayments.com/reference/request/document_upload/create
20+
For more information on DocumentUploads, see https://developer.paypal.com/braintree/docs/reference/request/document-upload/create
2121
2222
"""
2323

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from braintree.resource import Resource
2+
from braintree.venmo_profile_data import VenmoProfileData
3+
4+
class EnrichedCustomerData(Resource):
5+
"""
6+
A class representing Braintree EnrichedCustomerData object.
7+
"""
8+
def __init__(self, gateway, attributes):
9+
Resource.__init__(self, gateway, attributes)
10+
self.profile_data = VenmoProfileData(gateway, attributes.pop("profile_data"))

braintree/exceptions/authentication_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ class AuthenticationError(BraintreeError):
44
"""
55
Raised when the client library cannot authenticate with the gateway. This generally means the public_key/private key are incorrect, or the user is not active.
66
7-
See https://developers.braintreepayments.com/reference/general/exceptions/python#authentication-error
7+
See https://developer.paypal.com/braintree/docs/reference/general/exceptions/python#authentication-error
88
"""
99
pass

braintree/exceptions/authorization_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ class AuthorizationError(BraintreeError):
44
"""
55
Raised when the user does not have permission to complete the requested operation.
66
7-
See https://developers.braintreepayments.com/reference/general/exceptions/python#authorization-error
7+
See https://developer.paypal.com/braintree/docs/reference/general/exceptions/python#authorization-error
88
"""
99
pass

0 commit comments

Comments
 (0)