View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2AddLocalInventoriesRequest (google_api_retail v0.10.0)

Request message for ProductService.AddLocalInventories method.

Attributes

  • addMask (type: String.t, default: nil) - Indicates which inventory fields in the provided list of LocalInventory to update. The field is updated to the provided value. If a field is set while the place does not have a previous local inventory, the local inventory at that store is created. If a field is set while the value of that field is not provided, the original field value, if it exists, is deleted. If the mask is not set or set with empty paths, all inventory fields will be updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned and the entire update will be ignored.
  • addTime (type: DateTime.t, default: nil) - The time when the inventory updates are issued. Used to prevent out-of-order updates on local inventory fields. If not provided, the internal system time will be used.
  • allowMissing (type: boolean(), default: nil) - If set to true, and the Product is not found, the local inventory will still be processed and retained for at most 1 day and processed once the Product is created. If set to false, a NOT_FOUND error is returned if the Product is not found.
  • localInventories (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2LocalInventory.t), default: nil) - Required. A list of inventory information at difference places. Each place is identified by its place ID. At most 3000 inventories are allowed per request.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2AddLocalInventoriesRequest{
  addMask: String.t() | nil,
  addTime: DateTime.t() | nil,
  allowMissing: boolean() | nil,
  localInventories:
    [GoogleApi.Retail.V2.Model.GoogleCloudRetailV2LocalInventory.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.