All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.braintreegateway.EnrichedCustomerData Maven / Gradle / Ivy

The newest version!
package com.braintreegateway;

import com.braintreegateway.util.NodeWrapper;
import java.util.ArrayList;
import java.util.List;

public class EnrichedCustomerData {
    private List fieldsUpdated;
    private VenmoProfileData profileData;

    public EnrichedCustomerData(NodeWrapper node) {
        this.fieldsUpdated = new ArrayList();
        for (NodeWrapper field : node.findAll("fields-updated/item")) {
            fieldsUpdated.add(field.findString("."));
        }

        NodeWrapper venmoProfileDataNode = node.findFirst("profile-data");
        this.profileData = new VenmoProfileData(venmoProfileDataNode);
    }

    public List getFieldsUpdated() {
        return fieldsUpdated;
    }

    public VenmoProfileData getProfileData() {
        return profileData;
    }
 }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy