Class: Google::Apis::AndroidpublisherV3::GetOneTimeProductOfferRequest
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::GetOneTimeProductOfferRequest
- 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
-
#offer_id ⇒ String
Required.
-
#package_name ⇒ String
Required.
-
#product_id ⇒ String
Required.
-
#purchase_option_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GetOneTimeProductOfferRequest
constructor
A new instance of GetOneTimeProductOfferRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GetOneTimeProductOfferRequest
Returns a new instance of GetOneTimeProductOfferRequest.
4766 4767 4768 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4766 def initialize(**args) update!(**args) end |
Instance Attribute Details
#offer_id ⇒ String
Required. The unique offer ID of the offer to get.
Corresponds to the JSON property offerId
4749 4750 4751 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4749 def offer_id @offer_id end |
#package_name ⇒ String
Required. The parent app (package name) of the offer to get.
Corresponds to the JSON property packageName
4754 4755 4756 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4754 def package_name @package_name end |
#product_id ⇒ String
Required. The parent one-time product (ID) of the offer to get.
Corresponds to the JSON property productId
4759 4760 4761 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4759 def product_id @product_id end |
#purchase_option_id ⇒ String
Required. The parent purchase option (ID) of the offer to get.
Corresponds to the JSON property purchaseOptionId
4764 4765 4766 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4764 def purchase_option_id @purchase_option_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4771 4772 4773 4774 4775 4776 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4771 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 |