Class: Google::Apis::AndroidpublisherV3::OneTimeProductPreOrderOffer
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::OneTimeProductPreOrderOffer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidpublisher_v3/classes.rb,
lib/google/apis/androidpublisher_v3/representations.rb,
lib/google/apis/androidpublisher_v3/representations.rb
Overview
Configuration specific to pre-order offers.
Instance Attribute Summary collapse
-
#end_time ⇒ String
Required.
-
#price_change_behavior ⇒ String
Required.
-
#release_time ⇒ String
Required.
-
#start_time ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OneTimeProductPreOrderOffer
constructor
A new instance of OneTimeProductPreOrderOffer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OneTimeProductPreOrderOffer
Returns a new instance of OneTimeProductPreOrderOffer.
6162 6163 6164 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
Required. Time when the pre-order will stop being available.
Corresponds to the JSON property endTime
6143 6144 6145 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6143 def end_time @end_time end |
#price_change_behavior ⇒ String
Required. Immutable. Specifies how price changes affect pre-existing pre-
orders.
Corresponds to the JSON property priceChangeBehavior
6149 6150 6151 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6149 def price_change_behavior @price_change_behavior end |
#release_time ⇒ String
Required. Time on which the product associated with the pre-order will be
released and the pre-order orders fulfilled.
Corresponds to the JSON property releaseTime
6155 6156 6157 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6155 def release_time @release_time end |
#start_time ⇒ String
Required. Time when the pre-order will start being available.
Corresponds to the JSON property startTime
6160 6161 6162 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6160 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6167 6168 6169 6170 6171 6172 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6167 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @price_change_behavior = args[:price_change_behavior] if args.key?(:price_change_behavior) @release_time = args[:release_time] if args.key?(:release_time) @start_time = args[:start_time] if args.key?(:start_time) end |