class Google::Apis::AndroidpublisherV2::InAppProduct

Attributes

default_language[RW]

The default language of the localized data, as defined by BCP 47. e.g. “en-US”, “en-GB”. Corresponds to the JSON property `defaultLanguage` @return [String]

default_price[RW]

Default price cannot be zero. In-app products can never be free. Default price is always in the developer's Checkout merchant currency. Corresponds to the JSON property `defaultPrice` @return [Google::Apis::AndroidpublisherV2::Price]

listings[RW]

List of localized title and description data. Corresponds to the JSON property `listings` @return [Hash<String,Google::Apis::AndroidpublisherV2::InAppProductListing>]

package_name[RW]

The package name of the parent app. Corresponds to the JSON property `packageName` @return [String]

prices[RW]

Prices per buyer region. None of these prices should be zero. In-app products can never be free. Corresponds to the JSON property `prices` @return [Hash<String,Google::Apis::AndroidpublisherV2::Price>]

purchase_type[RW]

Purchase type enum value. Unmodifiable after creation. Corresponds to the JSON property `purchaseType` @return [String]

season[RW]

Definition of a season for a seasonal subscription. Can be defined only for yearly subscriptions. Corresponds to the JSON property `season` @return [Google::Apis::AndroidpublisherV2::Season]

sku[RW]

The stock-keeping-unit (SKU) of the product, unique within an app. Corresponds to the JSON property `sku` @return [String]

status[RW]

Corresponds to the JSON property `status` @return [String]

subscription_period[RW]

Subscription period, specified in ISO 8601 format. Acceptable values are “P1W” (one week), “P1M” (one month), “P3M” (three months), “P6M” (six months), and “ P1Y” (one year). Corresponds to the JSON property `subscriptionPeriod` @return [String]

trial_period[RW]

Trial period, specified in ISO 8601 format. Acceptable values are anything between “P7D” (seven days) and “P999D” (999 days). Seasonal subscriptions cannot have a trial period. Corresponds to the JSON property `trialPeriod` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/androidpublisher_v2/classes.rb, line 660
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/androidpublisher_v2/classes.rb, line 665
def update!(**args)
  @default_language = args[:default_language] if args.key?(:default_language)
  @default_price = args[:default_price] if args.key?(:default_price)
  @listings = args[:listings] if args.key?(:listings)
  @package_name = args[:package_name] if args.key?(:package_name)
  @prices = args[:prices] if args.key?(:prices)
  @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
  @season = args[:season] if args.key?(:season)
  @sku = args[:sku] if args.key?(:sku)
  @status = args[:status] if args.key?(:status)
  @subscription_period = args[:subscription_period] if args.key?(:subscription_period)
  @trial_period = args[:trial_period] if args.key?(:trial_period)
end