Class: Google::Apis::AndroidpublisherV3::OneTimeProductDiscountedOffer
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::OneTimeProductDiscountedOffer
- 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
-
#end_time ⇒ String
Time when the offer will stop being available.
-
#redemption_limit ⇒ Fixnum
Optional.
-
#start_time ⇒ String
Time when the offer will start being available.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OneTimeProductDiscountedOffer
constructor
A new instance of OneTimeProductDiscountedOffer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OneTimeProductDiscountedOffer
Returns a new instance of OneTimeProductDiscountedOffer.
6747 6748 6749 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6747 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
Time when the offer will stop being available.
Corresponds to the JSON property endTime
6733 6734 6735 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6733 def end_time @end_time end |
#redemption_limit ⇒ Fixnum
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
6740 6741 6742 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6740 def redemption_limit @redemption_limit end |
#start_time ⇒ String
Time when the offer will start being available.
Corresponds to the JSON property startTime
6745 6746 6747 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6745 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6752 6753 6754 6755 6756 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6752 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 |