Skip to content

Commit

Permalink
SMS-6589: Log redaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshkumar-plivo committed Jan 25, 2024
1 parent 5790175 commit ee9bc26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/resources/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class MessageGetResponse {
this.destinationNetwork = params.destinationNetwork;
this.carrierFees = params.carrierFees;
this.carrierFeesRate = params.carrierFeesRate;
this.log = params.log;
}
}

Expand Down Expand Up @@ -96,6 +97,7 @@ export class MessageListResponse {
this.destinationNetwork = params.destinationNetwork;
this.carrierFees = params.carrierFees;
this.carrierFeesRate = params.carrierFeesRate;
this.log = params.log;
}
}

Expand Down Expand Up @@ -188,7 +190,7 @@ export class MessageInterface extends PlivoResourceInterface {
* @param {string} [optionalParams.method] The method used to call the url. Defaults to POST.
* @param {list} [optionalParams.media_urls] For sending mms, specify the media urls in list of string
* @param {int} [optionalParams.message_expiry] The method used to expiry the message specified time.
* @param {boolean} [optionalParams.log] If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528). Default is set to true.
* @param {string} [optionalParams.log] If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528),if set to content_only only number will be masked, if set to number_only only text would be masked .Default is set to true.
* @param {string} [optionalParams.dlt_entity_id] This is the DLT entity id passed in the message request.
* @param {string} [optionalParams.dlt_template_id] This is the DLT template id passed in the message request.
* @param {string} [optionalParams.dlt_template_category] This is the DLT template category passed in the message request.
Expand All @@ -211,7 +213,7 @@ export class MessageInterface extends PlivoResourceInterface {
* @param {string} [optionalParams.type] - The type of message. Should be `sms` `whatsapp` or `mms`. Defaults to `sms`.
* @param {string} [optionalParams.url] The URL to which with the status of the message is sent.
* @param {string} [optionalParams.method] The method used to call the url. Defaults to POST.
* @param {boolean} [optionalParams.log] If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528). Default is set to true.
* @param {string} [optionalParams.log] If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528),if set to content_only only number will be masked, if set to number_only only text would be masked .Default is set to true.
* @param {Array} [optionalParams.media_urls] For sending mms, specify the media urls in list of string
* @param {Template} [optionalParams.template] //For sending templated whatsapp messages
* @param {string} [optionalParams.dlt_entity_id] This is the DLT entity id passed in the message request.
Expand Down

0 comments on commit ee9bc26

Please sign in to comment.