Пример #1
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     this._customerId             = reader.Read <string>("CustomerId");
     this._shippingAddressList    = reader.ReadList <Address>("ShippingAddressList", "ShippingAddress");
     this._primaryContactInfo     = reader.Read <CustomerPrimaryContactInfo>("PrimaryContactInfo");
     this._accountType            = reader.Read <string>("AccountType");
     this._associatedMarketplaces = reader.ReadList <MarketplaceDomain>("AssociatedMarketplaces", "MarketplaceDomain");
 }
Пример #2
0
 /// <summary>
 /// Sets the PrimaryContactInfo property.
 /// </summary>
 /// <param name="primaryContactInfo">PrimaryContactInfo property.</param>
 /// <returns>this instance.</returns>
 public Customer WithPrimaryContactInfo(CustomerPrimaryContactInfo primaryContactInfo)
 {
     this._primaryContactInfo = primaryContactInfo;
     return(this);
 }