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.



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

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)


3160
3161
3162
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3160

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)


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

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



3174
3175
3176
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3174

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)


3180
3181
3182
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3180

def latency_tolerance
  @latency_tolerance
end

#package_nameString

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

Returns:

  • (String)


3185
3186
3187
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3185

def package_name
  @package_name
end

#skuString

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

Returns:

  • (String)


3190
3191
3192
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3190

def sku
  @sku
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3197
3198
3199
3200
3201
3202
3203
3204
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3197

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