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

com.myperfit.sdk.transactional.domain.AbstractSendMailRequest Maven / Gradle / Ivy

There is a newer version: 1.1.8
Show newest version
package com.myperfit.sdk.transactional.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.myperfit.sdk.transactional.annotations.ImmutableStyle;
import org.immutables.value.Value;

import javax.annotation.Nullable;
import java.time.Instant;
import java.util.List;
import java.util.Map;

@Value.Immutable
@JsonSerialize(as = SendMailRequest.class)
@JsonDeserialize(as = SendMailRequest.class)
@ImmutableStyle
public abstract class AbstractSendMailRequest {

    @Nullable
    @JsonProperty("batch_code")
    public abstract String batchCode();

    @Nullable
    public abstract MailAddressRequest from();

    @Nullable
    @JsonProperty("reply_to")
    public abstract MailAddressRequest replyTo();

    @Nullable
    public abstract String subject();

    @Nullable
    public abstract MailContentRequest content();

    public abstract Map headers();

    public abstract List recipients();

    public abstract List attachments();

    public abstract Map substitutions();

    @Nullable
    public abstract MailTrackingRequest tracking();

    public abstract List tags();

    @Nullable
    public abstract MailSubscriptionRequest subscription();

    @Nullable
    @JsonProperty("launch_date")
    public abstract Instant launchDate();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy