Class: Google::Apis::AndroidpublisherV3::OneTimeProductPreOrderOffer

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OneTimeProductPreOrderOffer

Returns a new instance of OneTimeProductPreOrderOffer.



5663
5664
5665
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5663

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

Instance Attribute Details

#end_timeString

Required. Time when the pre-order will stop being available. Corresponds to the JSON property endTime

Returns:

  • (String)


5644
5645
5646
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5644

def end_time
  @end_time
end

#price_change_behaviorString

Required. Immutable. Specifies how price changes affect pre-existing pre- orders. Corresponds to the JSON property priceChangeBehavior

Returns:

  • (String)


5650
5651
5652
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5650

def price_change_behavior
  @price_change_behavior
end

#release_timeString

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

Returns:

  • (String)


5656
5657
5658
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5656

def release_time
  @release_time
end

#start_timeString

Required. Time when the pre-order will start being available. Corresponds to the JSON property startTime

Returns:

  • (String)


5661
5662
5663
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5661

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5668
5669
5670
5671
5672
5673
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5668

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