Skip to content

Missing click and open opt-ins/out properties in RegisterEmailChannelRequest and others #111

@4l3ss

Description

@4l3ss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions