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.
3200 3201 3202 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3200 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
3168 3169 3170 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3168 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
3176 3177 3178 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3176 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
3182 3183 3184 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3182 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
3188 3189 3190 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3188 def latency_tolerance @latency_tolerance end |
#package_name ⇒ String
Package name of the app.
Corresponds to the JSON property packageName
3193 3194 3195 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3193 def package_name @package_name end |
#sku ⇒ String
Unique identifier for the in-app product.
Corresponds to the JSON property sku
3198 3199 3200 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3198 def sku @sku end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3205 3206 3207 3208 3209 3210 3211 3212 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3205 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 |