Class: Google::Apis::AndroidpublisherV3::GetOneTimeProductOfferRequest

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

Request message for GetOneTimeProductOffers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GetOneTimeProductOfferRequest

Returns a new instance of GetOneTimeProductOfferRequest.



3747
3748
3749
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3747

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

Instance Attribute Details

#offer_idString

Required. The unique offer ID of the offer to get. Corresponds to the JSON property offerId

Returns:

  • (String)


3730
3731
3732
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3730

def offer_id
  @offer_id
end

#package_nameString

Required. The parent app (package name) of the offer to get. Corresponds to the JSON property packageName

Returns:

  • (String)


3735
3736
3737
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3735

def package_name
  @package_name
end

#product_idString

Required. The parent one-time product (ID) of the offer to get. Corresponds to the JSON property productId

Returns:

  • (String)


3740
3741
3742
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3740

def product_id
  @product_id
end

#purchase_option_idString

Required. The parent purchase option (ID) of the offer to get. Corresponds to the JSON property purchaseOptionId

Returns:

  • (String)


3745
3746
3747
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3745

def purchase_option_id
  @purchase_option_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3752
3753
3754
3755
3756
3757
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3752

def update!(**args)
  @offer_id = args[:offer_id] if args.key?(:offer_id)
  @package_name = args[:package_name] if args.key?(:package_name)
  @product_id = args[:product_id] if args.key?(:product_id)
  @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
end