Esempio n. 1
0
 /// <summary>
 /// Adds a local ID to an entry
 /// </summary>
 /// <param name="entry">the entry to add an ID to</param>
 /// <param name="language">The language for the entry.</param>
 /// <param name="country">The target country of the entry.</param>
 /// <param name="productId">The unique identifier for the product in the given locale.</param>
 /// <param name="storeCode">The store code for this local product.</param>
 /// <returns>the entry with ID added</returns>
 public InventoryEntry AddLocalId(InventoryEntry entry, string language,
                                  string country, string productId,
                                  string storeCode)
 {
     return(AddLocalId(entry, language, country, productId, storeCode, false, _accountId));
 }
Esempio n. 2
0
 /// <summary>
 /// Updates an existing inventory entry with the new values
 ///
 /// Must have EditUri set to the location of the entry.
 /// Consider using AddLocalId with setEditUri=true for this.
 /// </summary>
 /// <param name="entry">the entry to update</param>
 /// <returns>the updated entry returned by the server</returns>
 public InventoryEntry UpdateInventoryEntry(InventoryEntry entry)
 {
     return(base.Update(entry));
 }
Esempio n. 3
0
 /// <summary>
 /// Adds a local ID to an entry
 /// </summary>
 /// <param name="entry">the entry to add an ID to</param>
 /// <param name="language">The language for the entry.</param>
 /// <param name="country">The target country of the entry.</param>
 /// <param name="productId">The unique identifier for the product in the given locale.</param>
 /// <param name="storeCode">The store code for this local product.</param>
 /// <param name="setEditUri">Boolean to determine which attribute will be set.</param>
 /// <returns>the entry with ID added</returns>
 public InventoryEntry AddLocalId(InventoryEntry entry, string language,
                                  string country, string productId,
                                  string storeCode, bool setEditUri)
 {
     return(AddLocalId(entry, language, country, productId, storeCode, setEditUri, _accountId));
 }