Class: Google::Apis::AndroidpublisherV3::OneTimeProductDiscountedOffer

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 discounted offers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OneTimeProductDiscountedOffer

Returns a new instance of OneTimeProductDiscountedOffer.



5546
5547
5548
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5546

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

Instance Attribute Details

#end_timeString

Time when the offer will stop being available. Corresponds to the JSON property endTime

Returns:

  • (String)


5532
5533
5534
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5532

def end_time
  @end_time
end

#redemption_limitFixnum

Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive. Corresponds to the JSON property redemptionLimit

Returns:

  • (Fixnum)


5539
5540
5541
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5539

def redemption_limit
  @redemption_limit
end

#start_timeString

Time when the offer will start being available. Corresponds to the JSON property startTime

Returns:

  • (String)


5544
5545
5546
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5544

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5551
5552
5553
5554
5555
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5551

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @redemption_limit = args[:redemption_limit] if args.key?(:redemption_limit)
  @start_time = args[:start_time] if args.key?(:start_time)
end