Class: Google::Apis::ContentV2::SetInventoryRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::SetInventoryRequest
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#availability ⇒ String
The availability of the product.
-
#custom_label0 ⇒ String
Custom label 0 for custom grouping of items in a Shopping campaign.
-
#custom_label1 ⇒ String
Custom label 1 for custom grouping of items in a Shopping campaign.
-
#custom_label2 ⇒ String
Custom label 2 for custom grouping of items in a Shopping campaign.
-
#custom_label3 ⇒ String
Custom label 3 for custom grouping of items in a Shopping campaign.
-
#custom_label4 ⇒ String
Custom label 3 for custom grouping of items in a Shopping campaign.
-
#installment ⇒ Google::Apis::ContentV2::Installment
Number and amount of installments to pay for an item.
-
#instore_product_location ⇒ String
The instore product location.
-
#loyalty_points ⇒ Google::Apis::ContentV2::LoyaltyPoints
Loyalty points that users receive after purchasing the item.
-
#pickup ⇒ Google::Apis::ContentV2::InventoryPickup
Store pickup information.
-
#price ⇒ Google::Apis::ContentV2::Price
The price of the product.
-
#quantity ⇒ Fixnum
The quantity of the product.
-
#sale_price ⇒ Google::Apis::ContentV2::Price
The sale price of the product.
-
#sale_price_effective_date ⇒ String
A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash.
-
#sell_on_google_quantity ⇒ Fixnum
The quantity of the product that is available for selling on Google.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SetInventoryRequest
constructor
A new instance of SetInventoryRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SetInventoryRequest
Returns a new instance of SetInventoryRequest
3175 3176 3177 |
# File 'generated/google/apis/content_v2/classes.rb', line 3175 def initialize(**args) update!(**args) end |
Instance Attribute Details
#availability ⇒ String
The availability of the product.
Corresponds to the JSON property availability
3091 3092 3093 |
# File 'generated/google/apis/content_v2/classes.rb', line 3091 def availability @availability end |
#custom_label0 ⇒ String
Custom label 0 for custom grouping of items in a Shopping campaign. Only
supported for online products.
Corresponds to the JSON property customLabel0
3097 3098 3099 |
# File 'generated/google/apis/content_v2/classes.rb', line 3097 def custom_label0 @custom_label0 end |
#custom_label1 ⇒ String
Custom label 1 for custom grouping of items in a Shopping campaign. Only
supported for online products.
Corresponds to the JSON property customLabel1
3103 3104 3105 |
# File 'generated/google/apis/content_v2/classes.rb', line 3103 def custom_label1 @custom_label1 end |
#custom_label2 ⇒ String
Custom label 2 for custom grouping of items in a Shopping campaign. Only
supported for online products.
Corresponds to the JSON property customLabel2
3109 3110 3111 |
# File 'generated/google/apis/content_v2/classes.rb', line 3109 def custom_label2 @custom_label2 end |
#custom_label3 ⇒ String
Custom label 3 for custom grouping of items in a Shopping campaign. Only
supported for online products.
Corresponds to the JSON property customLabel3
3115 3116 3117 |
# File 'generated/google/apis/content_v2/classes.rb', line 3115 def custom_label3 @custom_label3 end |
#custom_label4 ⇒ String
Custom label 3 for custom grouping of items in a Shopping campaign. Only
supported for online products.
Corresponds to the JSON property customLabel4
3121 3122 3123 |
# File 'generated/google/apis/content_v2/classes.rb', line 3121 def custom_label4 @custom_label4 end |
#installment ⇒ Google::Apis::ContentV2::Installment
Number and amount of installments to pay for an item. Brazil only.
Corresponds to the JSON property installment
3126 3127 3128 |
# File 'generated/google/apis/content_v2/classes.rb', line 3126 def installment @installment end |
#instore_product_location ⇒ String
The instore product location. Supported only for local products.
Corresponds to the JSON property instoreProductLocation
3131 3132 3133 |
# File 'generated/google/apis/content_v2/classes.rb', line 3131 def instore_product_location @instore_product_location end |
#loyalty_points ⇒ Google::Apis::ContentV2::LoyaltyPoints
Loyalty points that users receive after purchasing the item. Japan only.
Corresponds to the JSON property loyaltyPoints
3136 3137 3138 |
# File 'generated/google/apis/content_v2/classes.rb', line 3136 def loyalty_points @loyalty_points end |
#pickup ⇒ Google::Apis::ContentV2::InventoryPickup
Store pickup information. Only supported for local inventory. Not setting
pickup means "don't update" while setting it to the empty value (`in JSON)
means "delete". Otherwise, pickupMethod and pickupSla must be set together,
unless pickupMethod is "not supported".
Corresponds to the JSON property
pickup`
3144 3145 3146 |
# File 'generated/google/apis/content_v2/classes.rb', line 3144 def pickup @pickup end |
#price ⇒ Google::Apis::ContentV2::Price
The price of the product.
Corresponds to the JSON property price
3149 3150 3151 |
# File 'generated/google/apis/content_v2/classes.rb', line 3149 def price @price end |
#quantity ⇒ Fixnum
The quantity of the product. Must be equal to or greater than zero. Supported
only for local products.
Corresponds to the JSON property quantity
3155 3156 3157 |
# File 'generated/google/apis/content_v2/classes.rb', line 3155 def quantity @quantity end |
#sale_price ⇒ Google::Apis::ContentV2::Price
The sale price of the product. Mandatory if sale_price_effective_date is
defined.
Corresponds to the JSON property salePrice
3161 3162 3163 |
# File 'generated/google/apis/content_v2/classes.rb', line 3161 def sale_price @sale_price end |
#sale_price_effective_date ⇒ String
A date range represented by a pair of ISO 8601 dates separated by a space,
comma, or slash. Both dates might be specified as 'null' if undecided.
Corresponds to the JSON property salePriceEffectiveDate
3167 3168 3169 |
# File 'generated/google/apis/content_v2/classes.rb', line 3167 def sale_price_effective_date @sale_price_effective_date end |
#sell_on_google_quantity ⇒ Fixnum
The quantity of the product that is available for selling on Google. Supported
only for online products.
Corresponds to the JSON property sellOnGoogleQuantity
3173 3174 3175 |
# File 'generated/google/apis/content_v2/classes.rb', line 3173 def sell_on_google_quantity @sell_on_google_quantity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 |
# File 'generated/google/apis/content_v2/classes.rb', line 3180 def update!(**args) @availability = args[:availability] if args.key?(:availability) @custom_label0 = args[:custom_label0] if args.key?(:custom_label0) @custom_label1 = args[:custom_label1] if args.key?(:custom_label1) @custom_label2 = args[:custom_label2] if args.key?(:custom_label2) @custom_label3 = args[:custom_label3] if args.key?(:custom_label3) @custom_label4 = args[:custom_label4] if args.key?(:custom_label4) @installment = args[:installment] if args.key?(:installment) @instore_product_location = args[:instore_product_location] if args.key?(:instore_product_location) @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points) @pickup = args[:pickup] if args.key?(:pickup) @price = args[:price] if args.key?(:price) @quantity = args[:quantity] if args.key?(:quantity) @sale_price = args[:sale_price] if args.key?(:sale_price) @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date) @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity) end |