Repository URL to install this package:
|
Version:
4.36.0 ▾
|
braintree
/
payment_method_customer_data_updated_metadata.py
|
|---|
from braintree.resource import Resource
from braintree.payment_method_parser import parse_payment_method
from braintree.enriched_customer_data import EnrichedCustomerData
class PaymentMethodCustomerDataUpdatedMetadata(Resource):
"""
A class representing Braintree PaymentMethodCustomerDataUpdatedMetadata webhook.
"""
def __init__(self, gateway, attributes):
Resource.__init__(self, gateway, attributes)
self.payment_method = parse_payment_method(gateway, attributes["payment_method"])
if attributes["enriched_customer_data"]:
self.enriched_customer_data = EnrichedCustomerData(gateway, attributes["enriched_customer_data"])