com.myperfit.sdk.transactional.domain.AbstractSendMailRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transactionalsdk Show documentation
Show all versions of transactionalsdk Show documentation
Perfit Transactional API SKD
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();
}