java-library
java-library copied to clipboard
Missing click and open opt-ins/out properties in RegisterEmailChannelRequest and others
Hi, it looks like the java SDK doesn't expose a way to get and set the open_tracking_opted_in, open_tracking_opted_out, click_tracking_opted_in, click_tracking_opted_out fields in the RegisterEmailChannel builder.
These are documented here https://docs.airship.com/api/ua/?openapi=http#operation/api/channels/email/post
I can see there is a RegisterEmailChannel.setEmailOptInLevel method which allows setting some of the optins/out but not the four I mentionned :
public enum OptInLevel {
EMAIL_COMMERCIAL_OPTED_IN("commercial_opted_in"),
EMAIL_COMMERCIAL_OPTED_OUT("commercial_opted_out"),
EMAIL_TRANSACTIONAL_OPTED_IN("transactional_opted_in"),
EMAIL_TRANSACTIONAL_OPTED_OUT("transactional_opted_out"),
CREATE_AND_SEND_COMMERCIAL_OPTED_IN("ua_commercial_opted_in"),
CREATE_AND_SEND_TRANSACTIONAL_OPTED_IN("ua_transactional_opted_in"),
NONE("none");
}
There is an identical issue with UpdateEmailChannelRequest which uses the same OptInLevel enum.
The fields are also missing from the ChannelView object we retrieve using ChannelRequest.newEmailLookupRequest(email);
Thanks