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.



3728
3729
3730
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3728

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)


3711
3712
3713
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3711

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)


3716
3717
3718
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3716

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)


3721
3722
3723
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3721

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)


3726
3727
3728
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3726

def purchase_option_id
  @purchase_option_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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