Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Customer"/> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="createdAt">created_at.</param>
 /// <param name="updatedAt">updated_at.</param>
 /// <param name="cards">cards.</param>
 /// <param name="givenName">given_name.</param>
 /// <param name="familyName">family_name.</param>
 /// <param name="nickname">nickname.</param>
 /// <param name="companyName">company_name.</param>
 /// <param name="emailAddress">email_address.</param>
 /// <param name="address">address.</param>
 /// <param name="phoneNumber">phone_number.</param>
 /// <param name="birthday">birthday.</param>
 /// <param name="referenceId">reference_id.</param>
 /// <param name="note">note.</param>
 /// <param name="preferences">preferences.</param>
 /// <param name="creationSource">creation_source.</param>
 /// <param name="groupIds">group_ids.</param>
 /// <param name="segmentIds">segment_ids.</param>
 /// <param name="version">version.</param>
 public Customer(
     string id                 = null,
     string createdAt          = null,
     string updatedAt          = null,
     IList <Models.Card> cards = null,
     string givenName          = null,
     string familyName         = null,
     string nickname           = null,
     string companyName        = null,
     string emailAddress       = null,
     Models.Address address    = null,
     string phoneNumber        = null,
     string birthday           = null,
     string referenceId        = null,
     string note               = null,
     Models.CustomerPreferences preferences = null,
     string creationSource     = null,
     IList <string> groupIds   = null,
     IList <string> segmentIds = null,
     long?version = null)
 {
     this.Id             = id;
     this.CreatedAt      = createdAt;
     this.UpdatedAt      = updatedAt;
     this.Cards          = cards;
     this.GivenName      = givenName;
     this.FamilyName     = familyName;
     this.Nickname       = nickname;
     this.CompanyName    = companyName;
     this.EmailAddress   = emailAddress;
     this.Address        = address;
     this.PhoneNumber    = phoneNumber;
     this.Birthday       = birthday;
     this.ReferenceId    = referenceId;
     this.Note           = note;
     this.Preferences    = preferences;
     this.CreationSource = creationSource;
     this.GroupIds       = groupIds;
     this.SegmentIds     = segmentIds;
     this.Version        = version;
 }
Esempio n. 2
0
 public Customer(string id                 = null,
                 string createdAt          = null,
                 string updatedAt          = null,
                 IList <Models.Card> cards = null,
                 string givenName          = null,
                 string familyName         = null,
                 string nickname           = null,
                 string companyName        = null,
                 string emailAddress       = null,
                 Models.Address address    = null,
                 string phoneNumber        = null,
                 string birthday           = null,
                 string referenceId        = null,
                 string note               = null,
                 Models.CustomerPreferences preferences  = null,
                 IList <Models.CustomerGroupInfo> groups = null,
                 string creationSource     = null,
                 IList <string> groupIds   = null,
                 IList <string> segmentIds = null)
 {
     Id             = id;
     CreatedAt      = createdAt;
     UpdatedAt      = updatedAt;
     Cards          = cards;
     GivenName      = givenName;
     FamilyName     = familyName;
     Nickname       = nickname;
     CompanyName    = companyName;
     EmailAddress   = emailAddress;
     Address        = address;
     PhoneNumber    = phoneNumber;
     Birthday       = birthday;
     ReferenceId    = referenceId;
     Note           = note;
     Preferences    = preferences;
     Groups         = groups;
     CreationSource = creationSource;
     GroupIds       = groupIds;
     SegmentIds     = segmentIds;
 }
Esempio n. 3
0
 public Builder Preferences(Models.CustomerPreferences value)
 {
     preferences = value;
     return(this);
 }
Esempio n. 4
0
 public Builder Preferences(Models.CustomerPreferences preferences)
 {
     this.preferences = preferences;
     return(this);
 }