File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
main/java/com/sparkpost/model
test/java/com/sparkpost/model Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,13 @@ public class OptionsAttributes extends Base {
5050 @ Description (value = "Whether message is transactional or non-transactional for unsubscribe and suppression purposes" , sample = {"" })
5151 private Boolean transactional = false ;
5252
53+ /**
54+ * Whether or not to use the sandbox sending domain ( Note: SparkPost only )
55+ */
56+ @ Description (value = "Whether or not to use the sandbox sending domain ( Note: SparkPost only ). defaults to false." , sample = {"" })
57+ @ SerializedName ("sandbox" )
58+ private Boolean sandbox = false ;
59+
5360 /**
5461 * Unlike most other options, this flag is omitted on a GET transmission
5562 * response unless the flag's value is true.
@@ -61,6 +68,16 @@ public class OptionsAttributes extends Base {
6168 @ SerializedName ("skip_suppression" )
6269 private Boolean skipSuppression ;
6370
71+ /**
72+ * The name of a dedicated IP pool associated with your account.
73+ * If this field is not provided, the account's default dedicated IP pool is used (if such a pool exists).
74+ * To explicitly bypass the account's default dedicated IP pool and instead fallback to the shared pool,
75+ * specify a value of "sp_shared".
76+ */
77+ @ Description (value = "The name of a dedicated IP pool associated with your account." , sample = {"sp_shared" })
78+ @ SerializedName ("ip_pool" )
79+ private String ipPool ;
80+
6481 /**
6582 * Whether or not to perform CSS inlining in HTML content
6683 * Defaults to false
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ public class OptionsAttributesTest {
1919 + " \" open_tracking\" : true,\n "
2020 + " \" click_tracking\" : true,\n "
2121 + " \" transactional\" : true,\n "
22- + " \" skip_suppression\" : true\n "
22+ + " \" sandbox\" : true,\n "
23+ + " \" skip_suppression\" : true,\n "
24+ + " \" ip_pool\" :\" sp_shared\" \n "
2325 + "}" ;
2426
2527 @ BeforeClass
@@ -52,7 +54,9 @@ public void testDecodeOptionsAttributes() {
5254 Assert .assertTrue (optionsAttributes .getClickTracking ());
5355 Assert .assertTrue (optionsAttributes .getOpenTracking ());
5456 Assert .assertTrue (optionsAttributes .getSkipSuppression ());
57+ Assert .assertEquals (optionsAttributes .getIpPool (), "sp_shared" );
5558 Assert .assertTrue (optionsAttributes .getTransactional ());
59+ Assert .assertTrue (optionsAttributes .getSandbox ());
5660
5761 }
5862
You can’t perform that action at this time.
0 commit comments