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.
-
#installment ⇒ Google::Apis::ContentV2::Installment
Number and amount of installments to pay for an item.
-
#loyalty_points ⇒ Google::Apis::ContentV2::LoyaltyPoints
Loyalty points that users receive after purchasing the item.
-
#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 reserved for sell-on-google ads.
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.
2633 2634 2635 |
# File 'generated/google/apis/content_v2/classes.rb', line 2633 def initialize(**args) update!(**args) end |
Instance Attribute Details
#availability ⇒ String
The availability of the product.
Corresponds to the JSON property availability
2592 2593 2594 |
# File 'generated/google/apis/content_v2/classes.rb', line 2592 def availability @availability end |
#installment ⇒ Google::Apis::ContentV2::Installment
Number and amount of installments to pay for an item. Brazil only.
Corresponds to the JSON property installment
2597 2598 2599 |
# File 'generated/google/apis/content_v2/classes.rb', line 2597 def installment @installment end |
#loyalty_points ⇒ Google::Apis::ContentV2::LoyaltyPoints
Loyalty points that users receive after purchasing the item. Japan only.
Corresponds to the JSON property loyaltyPoints
2602 2603 2604 |
# File 'generated/google/apis/content_v2/classes.rb', line 2602 def loyalty_points @loyalty_points end |
#price ⇒ Google::Apis::ContentV2::Price
The price of the product.
Corresponds to the JSON property price
2607 2608 2609 |
# File 'generated/google/apis/content_v2/classes.rb', line 2607 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
2613 2614 2615 |
# File 'generated/google/apis/content_v2/classes.rb', line 2613 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
2619 2620 2621 |
# File 'generated/google/apis/content_v2/classes.rb', line 2619 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
2625 2626 2627 |
# File 'generated/google/apis/content_v2/classes.rb', line 2625 def sale_price_effective_date @sale_price_effective_date end |
#sell_on_google_quantity ⇒ Fixnum
The quantity of the product that is reserved for sell-on-google ads. Supported
only for online products.
Corresponds to the JSON property sellOnGoogleQuantity
2631 2632 2633 |
# File 'generated/google/apis/content_v2/classes.rb', line 2631 def sell_on_google_quantity @sell_on_google_quantity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 |
# File 'generated/google/apis/content_v2/classes.rb', line 2638 def update!(**args) @availability = args[:availability] if args.key?(:availability) @installment = args[:installment] if args.key?(:installment) @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points) @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 |