Class: Google::Apis::AndroidpublisherV3::InappproductsUpdateRequest

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 to update an in-app product.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_missingBoolean 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

Returns:

  • (Boolean)


3168
3169
3170
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3168

def allow_missing
  @allow_missing
end

#auto_convert_missing_pricesBoolean 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

Returns:

  • (Boolean)


3176
3177
3178
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3176

def auto_convert_missing_prices
  @auto_convert_missing_prices
end

#inappproductGoogle::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_toleranceString

Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. Corresponds to the JSON property latencyTolerance

Returns:

  • (String)


3188
3189
3190
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3188

def latency_tolerance
  @latency_tolerance
end

#package_nameString

Package name of the app. Corresponds to the JSON property packageName

Returns:

  • (String)


3193
3194
3195
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3193

def package_name
  @package_name
end

#skuString

Unique identifier for the in-app product. Corresponds to the JSON property sku

Returns:

  • (String)


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