Class: Google::Apis::AndroidpublisherV3::OfferDetails

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 details information related to a purchase line item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OfferDetails

Returns a new instance of OfferDetails.



2224
2225
2226
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2224

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

Instance Attribute Details

#base_plan_idString

The base plan ID. Present for all base plan and offers. Corresponds to the JSON property basePlanId

Returns:

  • (String)


2211
2212
2213
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2211

def base_plan_id
  @base_plan_id
end

#offer_idString

The offer ID. Only present for discounted offers. Corresponds to the JSON property offerId

Returns:

  • (String)


2216
2217
2218
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2216

def offer_id
  @offer_id
end

#offer_tagsArray<String>

The latest offer tags associated with the offer. It includes tags inherited from the base plan. Corresponds to the JSON property offerTags

Returns:

  • (Array<String>)


2222
2223
2224
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2222

def offer_tags
  @offer_tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2229
2230
2231
2232
2233
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2229

def update!(**args)
  @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
  @offer_id = args[:offer_id] if args.key?(:offer_id)
  @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
end