Class: Google::Apis::AndroidpublisherV3::InappproductsUpdateRequest
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::InappproductsUpdateRequest
- 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 to update an in-app product.
Instance Attribute Summary collapse
-
#allow_missing ⇒ Boolean
(also: #allow_missing?)
If set to true, and the in-app product with the given package_name and sku doesn't exist, the in-app product will be created.
-
#auto_convert_missing_prices ⇒ Boolean
(also: #auto_convert_missing_prices?)
If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price.
-
#inappproduct ⇒ Google::Apis::AndroidpublisherV3::InAppProduct
An in-app product.
-
#latency_tolerance ⇒ String
Optional.
-
#package_name ⇒ String
Package name of the app.
-
#sku ⇒ String
Unique identifier for the in-app product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InappproductsUpdateRequest
constructor
A new instance of InappproductsUpdateRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InappproductsUpdateRequest
Returns a new instance of InappproductsUpdateRequest.
3221 3222 3223 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3221 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_missing ⇒ Boolean Also known as: allow_missing?
If set to true, and the in-app product with the given package_name and sku
doesn't exist, the in-app product will be created.
Corresponds to the JSON property allowMissing
3189 3190 3191 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3189 def allow_missing @allow_missing end |
#auto_convert_missing_prices ⇒ Boolean Also known as: auto_convert_missing_prices?
If true the prices for all regions targeted by the parent app that don't have
a price specified for this in-app product will be auto converted to the target
currency based on the default price. Defaults to false.
Corresponds to the JSON property autoConvertMissingPrices
3197 3198 3199 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3197 def auto_convert_missing_prices @auto_convert_missing_prices end |
#inappproduct ⇒ Google::Apis::AndroidpublisherV3::InAppProduct
An in-app product. The resource for InappproductsService.
Corresponds to the JSON property inappproduct
3203 3204 3205 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3203 def inappproduct @inappproduct end |
#latency_tolerance ⇒ String
Optional. The latency tolerance for the propagation of this product update.
Defaults to latency-sensitive.
Corresponds to the JSON property latencyTolerance
3209 3210 3211 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3209 def latency_tolerance @latency_tolerance end |
#package_name ⇒ String
Package name of the app.
Corresponds to the JSON property packageName
3214 3215 3216 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3214 def package_name @package_name end |
#sku ⇒ String
Unique identifier for the in-app product.
Corresponds to the JSON property sku
3219 3220 3221 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3219 def sku @sku end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3226 3227 3228 3229 3230 3231 3232 3233 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3226 def update!(**args) @allow_missing = args[:allow_missing] if args.key?(:allow_missing) @auto_convert_missing_prices = args[:auto_convert_missing_prices] if args.key?(:auto_convert_missing_prices) @inappproduct = args[:inappproduct] if args.key?(:inappproduct) @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance) @package_name = args[:package_name] if args.key?(:package_name) @sku = args[:sku] if args.key?(:sku) end |