Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ public class OptionsAttributes extends Base {
@Description(value = "Whether message is transactional or non-transactional for unsubscribe and suppression purposes", sample = {""})
private Boolean transactional = false;

/**
* Whether or not to use the sandbox sending domain ( Note: SparkPost only )
*/
@Description(value = "Whether or not to use the sandbox sending domain ( Note: SparkPost only ). defaults to false.", sample = {""})
@SerializedName("sandbox")
private Boolean sandbox = false;

/**
* Unlike most other options, this flag is omitted on a GET transmission
* response unless the flag's value is true.
Expand All @@ -61,6 +68,16 @@ public class OptionsAttributes extends Base {
@SerializedName("skip_suppression")
private Boolean skipSuppression;

/**
* The name of a dedicated IP pool associated with your account.
* If this field is not provided, the account's default dedicated IP pool is used (if such a pool exists).
* To explicitly bypass the account's default dedicated IP pool and instead fallback to the shared pool,
* specify a value of "sp_shared".
*/
@Description(value = "The name of a dedicated IP pool associated with your account.", sample = {"sp_shared"})
@SerializedName("ip_pool")
private String ipPool;

/**
* Whether or not to perform CSS inlining in HTML content
* Defaults to false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ public class OptionsAttributesTest {
+ " \"open_tracking\": true,\n"
+ " \"click_tracking\": true,\n"
+ " \"transactional\": true,\n"
+ " \"skip_suppression\": true\n"
+ " \"sandbox\": true,\n"
+ " \"skip_suppression\": true,\n"
+ " \"ip_pool\":\"sp_shared\"\n"
+ "}";

@BeforeClass
Expand Down Expand Up @@ -52,7 +54,9 @@ public void testDecodeOptionsAttributes() {
Assert.assertTrue(optionsAttributes.getClickTracking());
Assert.assertTrue(optionsAttributes.getOpenTracking());
Assert.assertTrue(optionsAttributes.getSkipSuppression());
Assert.assertEquals(optionsAttributes.getIpPool(), "sp_shared");
Assert.assertTrue(optionsAttributes.getTransactional());
Assert.assertTrue(optionsAttributes.getSandbox());

}

Expand Down