Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveFulfillmentPlacesRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb

Overview

Request message for ProductService.RemoveFulfillmentPlaces method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaRemoveFulfillmentPlacesRequest

Returns a new instance of GoogleCloudRetailV2betaRemoveFulfillmentPlacesRequest.



6312
6313
6314
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6312

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_missingBoolean Also known as: allow_missing?

If set to true, and the Product is not found, the fulfillment information 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. Corresponds to the JSON property allowMissing

Returns:

  • (Boolean)


6281
6282
6283
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6281

def allow_missing
  @allow_missing
end

#place_idsArray<String>

Required. The IDs for this type, such as the store IDs for "pickup-in-store" or the region IDs for "same-day-delivery", to be removed for this type. At least 1 value is required, and a maximum of 2000 values are allowed. Each value must be a string with a length limit of 10 characters, matching the pattern [a-zA-Z0-9_-]+, such as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. Corresponds to the JSON property placeIds

Returns:

  • (Array<String>)


6292
6293
6294
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6292

def place_ids
  @place_ids
end

#remove_timeString

The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information. If not provided, the internal system time will be used. Corresponds to the JSON property removeTime

Returns:

  • (String)


6299
6300
6301
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6299

def remove_time
  @remove_time
end

#typeString

Required. The fulfillment type, including commonly used types (such as pickup in store and same day delivery), and custom types. Supported values: * "pickup- in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * " custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom- type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. This field directly corresponds to Product. fulfillment_info.type. Corresponds to the JSON property type

Returns:

  • (String)


6310
6311
6312
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6310

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6317
6318
6319
6320
6321
6322
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6317

def update!(**args)
  @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
  @place_ids = args[:place_ids] if args.key?(:place_ids)
  @remove_time = args[:remove_time] if args.key?(:remove_time)
  @type = args[:type] if args.key?(:type)
end