@@ -42,7 +42,8 @@ protected IDSyncConfigurationInput() { }
4242 /// </summary>
4343 /// <param name="externalId">The id type to sync. Examples: user_id, email, anonymous_id. (required).</param>
4444 /// <param name="strategy">The rule for selecting which identifiers to sync from a profile. Possible values: first: Syncs only the oldest recorded value. last: Syncs only the most recently updated value. all: Syncs every value found on the profile (sends multiple events). (required).</param>
45- public IDSyncConfigurationInput ( string externalId = default ( string ) , string strategy = default ( string ) )
45+ /// <param name="mapTo">Optional destination-specific identifier to map to (for example, \"Email_Address_c\")..</param>
46+ public IDSyncConfigurationInput ( string externalId = default ( string ) , string strategy = default ( string ) , string mapTo = default ( string ) )
4647 {
4748 // to ensure "externalId" is required (not null)
4849 if ( externalId == null )
@@ -56,6 +57,7 @@ protected IDSyncConfigurationInput() { }
5657 throw new ArgumentNullException ( "strategy is a required property for IDSyncConfigurationInput and cannot be null" ) ;
5758 }
5859 this . Strategy = strategy ;
60+ this . MapTo = mapTo ;
5961 }
6062
6163 /// <summary>
@@ -72,6 +74,13 @@ protected IDSyncConfigurationInput() { }
7274 [ DataMember ( Name = "strategy" , IsRequired = true , EmitDefaultValue = true ) ]
7375 public string Strategy { get ; set ; }
7476
77+ /// <summary>
78+ /// Optional destination-specific identifier to map to (for example, \"Email_Address_c\").
79+ /// </summary>
80+ /// <value>Optional destination-specific identifier to map to (for example, \"Email_Address_c\").</value>
81+ [ DataMember ( Name = "mapTo" , EmitDefaultValue = false ) ]
82+ public string MapTo { get ; set ; }
83+
7584 /// <summary>
7685 /// Returns the string presentation of the object
7786 /// </summary>
@@ -82,6 +91,7 @@ public override string ToString()
8291 sb . Append ( "class IDSyncConfigurationInput {\n " ) ;
8392 sb . Append ( " ExternalId: " ) . Append ( ExternalId ) . Append ( "\n " ) ;
8493 sb . Append ( " Strategy: " ) . Append ( Strategy ) . Append ( "\n " ) ;
94+ sb . Append ( " MapTo: " ) . Append ( MapTo ) . Append ( "\n " ) ;
8595 sb . Append ( "}\n " ) ;
8696 return sb . ToString ( ) ;
8797 }
@@ -126,6 +136,11 @@ public bool Equals(IDSyncConfigurationInput input)
126136 this . Strategy == input . Strategy ||
127137 ( this . Strategy != null &&
128138 this . Strategy . Equals ( input . Strategy ) )
139+ ) &&
140+ (
141+ this . MapTo == input . MapTo ||
142+ ( this . MapTo != null &&
143+ this . MapTo . Equals ( input . MapTo ) )
129144 ) ;
130145 }
131146
@@ -146,6 +161,10 @@ public override int GetHashCode()
146161 {
147162 hashCode = ( hashCode * 59 ) + this . Strategy . GetHashCode ( ) ;
148163 }
164+ if ( this . MapTo != null )
165+ {
166+ hashCode = ( hashCode * 59 ) + this . MapTo . GetHashCode ( ) ;
167+ }
149168 return hashCode ;
150169 }
151170 }
0 commit comments