Java Docs missing class: notification templates

Hello @angelo_mekenkamp,

The Java Docs you linked are specifically for writing rules.

I can confirm as you stated that (id, name, email, phone) are the only attributes available to v2 templates.

The templateUtil class that exposes the getUser() function uses the Recipient class as the object returned.

public Recipient getUser(String id) {
    UserPreferences userPreferences = _userPreferencesRepository.findByRecipientId(id);
    if (userPreferences != null && userPreferences.getRecipient() != null) {
        return userPreferences.getRecipient();
    }

    return new RecipientBuilder()
                .withId(id)
                .withName(DEFAULT_VALUE)
                .withEmail(DEFAULT_VALUE)
                .withPhone(DEFAULT_VALUE)
                .build();
}
public class Recipient {

	private String _id;

	private String _name;

	private String _phone;

	private String _email;

	public Recipient(RecipientBuilder recipientBuilder) {
		_id = recipientBuilder.getId();
		_email = recipientBuilder.getEmail();
		_name = recipientBuilder.getName();
		_phone = recipientBuilder.getPhone();
	}

	public String getEmail() {
		return _email;
	}

	public String getId() {
		return _id;
	}

	public String getName() {
		return _name;
	}

	public String getPhone() {
		return _phone;
	}

	public RecipientBuilder derive() {
		return new RecipientBuilder()
				.withEmail(_email)
				.withId(_id)
				.withName(_name)
				.withPhone(_phone);
	}

	@Override
	public String toString() {
		return "Recipient {" +
				" id='" + _id + '\'' +
				", name='" + _name + '\'' +
				", phone='" + _phone + '\'' +
				", email='" + _email + '\'' +
				" }";
	}
}

I spoke with our engineering team about this issue. In the short term, the attributes associated with v1 or v2 templates will remain as they are as we transition over from CC. However, we are looking to fix notifications and templates, in general, and are planning to make sure that all attributes are available for all templates in the future.