Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddFulfillmentPlacesRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddFulfillmentPlacesRequest
- 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.AddFulfillmentPlaces method.
Instance Attribute Summary collapse
-
#add_time ⇒ String
The time when the fulfillment updates are issued, used to prevent out-of-order updates on fulfillment information.
-
#allow_missing ⇒ Boolean
(also: #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.
-
#place_ids ⇒ Array<String>
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaAddFulfillmentPlacesRequest
constructor
A new instance of GoogleCloudRetailV2betaAddFulfillmentPlacesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaAddFulfillmentPlacesRequest
Returns a new instance of GoogleCloudRetailV2betaAddFulfillmentPlacesRequest.
2242 2243 2244 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2242 def initialize(**args) update!(**args) end |
Instance Attribute Details
#add_time ⇒ String
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 addTime
2208 2209 2210 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2208 def add_time @add_time end |
#allow_missing ⇒ Boolean 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
2216 2217 2218 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2216 def allow_missing @allow_missing end |
#place_ids ⇒ Array<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 added for this type. Duplicate
IDs will be automatically ignored. 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. If the total
number of place IDs exceeds 2000 for this type after adding, then the update
will be rejected.
Corresponds to the JSON property placeIds
2229 2230 2231 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2229 def place_ids @place_ids end |
#type ⇒ String
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
2240 2241 2242 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2240 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2247 2248 2249 2250 2251 2252 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2247 def update!(**args) @add_time = args[:add_time] if args.key?(:add_time) @allow_missing = args[:allow_missing] if args.key?(:allow_missing) @place_ids = args[:place_ids] if args.key?(:place_ids) @type = args[:type] if args.key?(:type) end |