Class: Google::Apis::AndroidpublisherV3::SignupPromotion

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

The promotion applied on this item when purchased.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SignupPromotion

Returns a new instance of SignupPromotion.



8133
8134
8135
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 8133

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

Instance Attribute Details

#one_time_codeGoogle::Apis::AndroidpublisherV3::OneTimeCode

A single use promotion code. Corresponds to the JSON property oneTimeCode



8126
8127
8128
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 8126

def one_time_code
  @one_time_code
end

#vanity_codeGoogle::Apis::AndroidpublisherV3::VanityCode

A multiple use, predefined promotion code. Corresponds to the JSON property vanityCode



8131
8132
8133
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 8131

def vanity_code
  @vanity_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8138
8139
8140
8141
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 8138

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