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.
3220 3221 3222 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3220 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
3188 3189 3190 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3188 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
3196 3197 3198 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3196 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
3202 3203 3204 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3202 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
3208 3209 3210 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3208 def latency_tolerance @latency_tolerance end |
#package_name ⇒ String
Package name of the app.
Corresponds to the JSON property packageName
3213 3214 3215 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3213 def package_name @package_name end |
#sku ⇒ String
Unique identifier for the in-app product.
Corresponds to the JSON property sku
3218 3219 3220 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3218 def sku @sku end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3225 3226 3227 3228 3229 3230 3231 3232 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3225 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 |