Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
braintree / payment_method_customer_data_updated_metadata.py
Size: Mime:
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"])