@@ -96,41 +96,41 @@ export class BatchProfileAttributeEditor
96
96
return this ;
97
97
}
98
98
99
- public setPhoneNumber ( phoneNumber : string | null ) : this {
100
- if ( typeof phoneNumber !== "string" && phoneNumber !== null ) {
101
- writeBatchLog (
102
- false ,
103
- "BatchProfileAttributeEditor - Phone number must be a string or null"
104
- ) ;
105
- return this ;
106
- }
107
- this . _enqueueOperation ( ProfileAttributeOperation . SetPhoneNumber , {
108
- value : phoneNumber ,
109
- } ) ;
110
- return this ;
99
+ public setPhoneNumber ( phoneNumber : string | null ) : this {
100
+ if ( typeof phoneNumber !== "string" && phoneNumber !== null ) {
101
+ writeBatchLog (
102
+ false ,
103
+ "BatchProfileAttributeEditor - Phone number must be a string or null"
104
+ ) ;
105
+ return this ;
111
106
}
107
+ this . _enqueueOperation ( ProfileAttributeOperation . SetPhoneNumber , {
108
+ value : phoneNumber ,
109
+ } ) ;
110
+ return this ;
111
+ }
112
112
113
- public setSMSMarketingSubscription (
114
- state : "subscribed" | "unsubscribed"
115
- ) : this {
116
- if (
117
- typeof state !== "string" ||
118
- ( state !== "subscribed" && state !== "unsubscribed" )
119
- ) {
120
- writeBatchLog (
121
- false ,
122
- "BatchProfileAttributeEditor - SMS marketing subscription state must be `subscribed` or `unsubscribed`."
123
- ) ;
124
- return this ;
125
- }
126
- this . _enqueueOperation (
127
- ProfileAttributeOperation . SetSMSMarketingSubscription ,
128
- {
129
- value : state ,
130
- }
131
- ) ;
132
- return this ;
113
+ public setSMSMarketingSubscription (
114
+ state : "subscribed" | "unsubscribed"
115
+ ) : this {
116
+ if (
117
+ typeof state !== "string" ||
118
+ ( state !== "subscribed" && state !== "unsubscribed" )
119
+ ) {
120
+ writeBatchLog (
121
+ false ,
122
+ "BatchProfileAttributeEditor - SMS marketing subscription state must be `subscribed` or `unsubscribed`."
123
+ ) ;
124
+ return this ;
133
125
}
126
+ this . _enqueueOperation (
127
+ ProfileAttributeOperation . SetSMSMarketingSubscription ,
128
+ {
129
+ value : state ,
130
+ }
131
+ ) ;
132
+ return this ;
133
+ }
134
134
135
135
public setAttribute (
136
136
key : string ,
0 commit comments