Class: Google::Apis::AndroidpublisherV2::InAppProduct
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AndroidpublisherV2::InAppProduct
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidpublisher_v2/classes.rb,
 generated/google/apis/androidpublisher_v2/representations.rb,
 generated/google/apis/androidpublisher_v2/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #default_language  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The default language of the localized data, as defined by BCP 47. 
- 
  
    
      #default_price  ⇒ Google::Apis::AndroidpublisherV2::Price 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Default price cannot be zero. 
- 
  
    
      #listings  ⇒ Hash<String,Google::Apis::AndroidpublisherV2::InAppProductListing> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    List of localized title and description data. 
- 
  
    
      #package_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The package name of the parent app. 
- 
  
    
      #prices  ⇒ Hash<String,Google::Apis::AndroidpublisherV2::Price> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Prices per buyer region. 
- 
  
    
      #purchase_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Purchase type enum value. 
- 
  
    
      #season  ⇒ Google::Apis::AndroidpublisherV2::Season 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Definition of a season for a seasonal subscription. 
- 
  
    
      #sku  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The stock-keeping-unit (SKU) of the product, unique within an app. 
- 
  
    
      #status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property status.
- 
  
    
      #subscription_period  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Subscription period, specified in ISO 8601 format. 
- 
  
    
      #trial_period  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Trial period, specified in ISO 8601 format. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ InAppProduct 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of InAppProduct. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InAppProduct
Returns a new instance of InAppProduct
| 823 824 825 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 823 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#default_language ⇒ String
The default language of the localized data, as defined by BCP 47. e.g. "en-US",
"en-GB".
Corresponds to the JSON property defaultLanguage
| 764 765 766 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 764 def default_language @default_language end | 
#default_price ⇒ Google::Apis::AndroidpublisherV2::Price
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
| 770 771 772 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 770 def default_price @default_price end | 
#listings ⇒ Hash<String,Google::Apis::AndroidpublisherV2::InAppProductListing>
List of localized title and description data.
Corresponds to the JSON property listings
| 775 776 777 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 775 def listings @listings end | 
#package_name ⇒ String
The package name of the parent app.
Corresponds to the JSON property packageName
| 780 781 782 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 780 def package_name @package_name end | 
#prices ⇒ Hash<String,Google::Apis::AndroidpublisherV2::Price>
Prices per buyer region. None of these prices should be zero. In-app products
can never be free.
Corresponds to the JSON property prices
| 786 787 788 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 786 def prices @prices end | 
#purchase_type ⇒ String
Purchase type enum value. Unmodifiable after creation.
Corresponds to the JSON property purchaseType
| 791 792 793 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 791 def purchase_type @purchase_type end | 
#season ⇒ Google::Apis::AndroidpublisherV2::Season
Definition of a season for a seasonal subscription. Can be defined only for
yearly subscriptions.
Corresponds to the JSON property season
| 797 798 799 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 797 def season @season end | 
#sku ⇒ String
The stock-keeping-unit (SKU) of the product, unique within an app.
Corresponds to the JSON property sku
| 802 803 804 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 802 def sku @sku end | 
#status ⇒ String
Corresponds to the JSON property status
| 807 808 809 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 807 def status @status end | 
#subscription_period ⇒ String
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
| 814 815 816 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 814 def subscription_period @subscription_period end | 
#trial_period ⇒ String
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
| 821 822 823 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 821 def trial_period @trial_period end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 828 829 830 831 832 833 834 835 836 837 838 839 840 | # File 'generated/google/apis/androidpublisher_v2/classes.rb', line 828 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 |