Class: Google::Apis::AndroidpublisherV3::InAppProduct

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidpublisher_v3/classes.rb,
generated/google/apis/androidpublisher_v3/representations.rb,
generated/google/apis/androidpublisher_v3/representations.rb

Overview

An in-app product. The resource for InappproductsService.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InAppProduct

Returns a new instance of InAppProduct.



812
813
814
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 812

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#default_languageString

Default language of the localized data, as defined by BCP-47. e.g. "en-US". Corresponds to the JSON property defaultLanguage

Returns:

  • (String)


752
753
754
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 752

def default_language
  @default_language
end

#default_priceGoogle::Apis::AndroidpublisherV3::Price

Definition of a price, i.e. currency and units. Corresponds to the JSON property defaultPrice



757
758
759
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 757

def default_price
  @default_price
end

#grace_periodString

Grace period of the subscription, specified in ISO 8601 format. Allows developers to give their subscribers a grace period when the payment for the new recurrence period is declined. Acceptable values are P0D (zero days), P3D ( three days), P7D (seven days), P14D (14 days), and P30D (30 days). Corresponds to the JSON property gracePeriod

Returns:

  • (String)


765
766
767
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 765

def grace_period
  @grace_period
end

#listingsHash<String,Google::Apis::AndroidpublisherV3::InAppProductListing>

List of localized title and description data. Map key is the language of the localized data, as defined by BCP-47, e.g. "en-US". Corresponds to the JSON property listings



771
772
773
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 771

def listings
  @listings
end

#package_nameString

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

Returns:

  • (String)


776
777
778
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 776

def package_name
  @package_name
end

#pricesHash<String,Google::Apis::AndroidpublisherV3::Price>

Prices per buyer region. None of these can be zero, as in-app products are never free. Map key is region code, as defined by ISO 3166-2. Corresponds to the JSON property prices

Returns:



782
783
784
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 782

def prices
  @prices
end

#purchase_typeString

The type of the product, e.g. a recurring subscription. Corresponds to the JSON property purchaseType

Returns:

  • (String)


787
788
789
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 787

def purchase_type
  @purchase_type
end

#skuString

Stock-keeping-unit (SKU) of the product, unique within an app. Corresponds to the JSON property sku

Returns:

  • (String)


792
793
794
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 792

def sku
  @sku
end

#statusString

The status of the product, e.g. whether it's active. Corresponds to the JSON property status

Returns:

  • (String)


797
798
799
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 797

def status
  @status
end

#subscription_periodString

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

Returns:

  • (String)


804
805
806
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 804

def subscription_period
  @subscription_period
end

#trial_periodString

Trial period, specified in ISO 8601 format. Acceptable values are anything between P7D (seven days) and P999D (999 days). Corresponds to the JSON property trialPeriod

Returns:

  • (String)


810
811
812
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 810

def trial_period
  @trial_period
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



817
818
819
820
821
822
823
824
825
826
827
828
829
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 817

def update!(**args)
  @default_language = args[:default_language] if args.key?(:default_language)
  @default_price = args[:default_price] if args.key?(:default_price)
  @grace_period = args[:grace_period] if args.key?(:grace_period)
  @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)
  @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