diff --git a/lib/xml-api/raw-recipient-data-export.js b/lib/xml-api/raw-recipient-data-export.js index 2842fb5..9c0aca8 100644 --- a/lib/xml-api/raw-recipient-data-export.js +++ b/lib/xml-api/raw-recipient-data-export.js @@ -89,6 +89,11 @@ module.exports = { required: false, assert: validator.assertBoolean, default: false + }, + + columns: { + required: false, + assert: validator.assertScalarArray } }, @@ -113,6 +118,7 @@ module.exports = { "SEND_DATE_END": options.sendDateEnd, "EVENT_DATE_START": options.eventDateStart, "EVENT_DATE_END": options.eventDateEnd, + "COLUMNS": options.columns, }; if (typeof options.listId !== 'undefined') { @@ -179,6 +185,10 @@ module.exports = { params["EVENT_DATE_END"] = options.eventDateEnd; } + if (typeof options.columns !== 'undefined') { + params['COLUMNS'] = { COLUMN: { NAME: options.columns } }; + } + return params; },