Class: Google::Apis::AndroidpublisherV3::SignupPromotion
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::SignupPromotion
- 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
The promotion applied on this item when purchased.
Instance Attribute Summary collapse
-
#one_time_code ⇒ Google::Apis::AndroidpublisherV3::OneTimeCode
A single use promotion code.
-
#vanity_code ⇒ Google::Apis::AndroidpublisherV3::VanityCode
A multiple use, predefined promotion code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SignupPromotion
constructor
A new instance of SignupPromotion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SignupPromotion
Returns a new instance of SignupPromotion.
9571 9572 9573 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 9571 def initialize(**args) update!(**args) end |
Instance Attribute Details
#one_time_code ⇒ Google::Apis::AndroidpublisherV3::OneTimeCode
A single use promotion code.
Corresponds to the JSON property oneTimeCode
9564 9565 9566 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 9564 def one_time_code @one_time_code end |
#vanity_code ⇒ Google::Apis::AndroidpublisherV3::VanityCode
A multiple use, predefined promotion code.
Corresponds to the JSON property vanityCode
9569 9570 9571 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 9569 def vanity_code @vanity_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9576 9577 9578 9579 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 9576 def update!(**args) @one_time_code = args[:one_time_code] if args.key?(:one_time_code) @vanity_code = args[:vanity_code] if args.key?(:vanity_code) end |