Class: Google::Apis::AndroidpublisherV3::OfferPhase

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

Offer phase details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OfferPhase

Returns a new instance of OfferPhase.



5218
5219
5220
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5218

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

Instance Attribute Details

#base_priceGoogle::Apis::AndroidpublisherV3::BasePriceOfferPhase

Details about base price offer phase. Corresponds to the JSON property basePrice



5201
5202
5203
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5201

def base_price
  @base_price
end

#free_trialGoogle::Apis::AndroidpublisherV3::FreeTrialOfferPhase

Details about free trial offer phase. Corresponds to the JSON property freeTrial



5206
5207
5208
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5206

def free_trial
  @free_trial
end

#introductory_priceGoogle::Apis::AndroidpublisherV3::IntroductoryPriceOfferPhase

Details about introductory price offer phase. Corresponds to the JSON property introductoryPrice



5211
5212
5213
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5211

def introductory_price
  @introductory_price
end

#proration_periodGoogle::Apis::AndroidpublisherV3::ProrationPeriodOfferPhase

Details about proration period offer phase. Corresponds to the JSON property prorationPeriod



5216
5217
5218
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5216

def proration_period
  @proration_period
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5223
5224
5225
5226
5227
5228
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5223

def update!(**args)
  @base_price = args[:base_price] if args.key?(:base_price)
  @free_trial = args[:free_trial] if args.key?(:free_trial)
  @introductory_price = args[:introductory_price] if args.key?(:introductory_price)
  @proration_period = args[:proration_period] if args.key?(:proration_period)
end