Class: Google::Apis::AndroidpublisherV3::InAppProduct
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AndroidpublisherV3::InAppProduct
 
 
- 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
An in-app product. The resource for InappproductsService.
Instance Attribute Summary collapse
- 
  
    
      #default_language  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Default language of the localized data, as defined by BCP-47.
 - 
  
    
      #default_price  ⇒ Google::Apis::AndroidpublisherV3::Price 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Definition of a price, i.e.
 - 
  
    
      #grace_period  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Grace period of the subscription, specified in ISO 8601 format.
 - 
  
    
      #listings  ⇒ Hash<String,Google::Apis::AndroidpublisherV3::InAppProductListing> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
List of localized title and description data.
 - 
  
    
      #managed_product_taxes_and_compliance_settings  ⇒ Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Details about taxation and legal compliance for managed products.
 - 
  
    
      #package_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Package name of the parent app.
 - 
  
    
      #prices  ⇒ Hash<String,Google::Apis::AndroidpublisherV3::Price> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Prices per buyer region.
 - 
  
    
      #purchase_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of the product, e.g.
 - 
  
    
      #sku  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Stock-keeping-unit (SKU) of the product, unique within an app.
 - 
  
    
      #status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The status of the product, e.g.
 - 
  
    
      #subscription_period  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Subscription period, specified in ISO 8601 format.
 - 
  
    
      #subscription_taxes_and_compliance_settings  ⇒ Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Details about taxation, Google Play policy and legal compliance for subscription products.
 - 
  
    
      #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.
 
Constructor Details
#initialize(**args) ⇒ InAppProduct
Returns a new instance of InAppProduct.
      2971 2972 2973  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2971 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#default_language ⇒ String
Default language of the localized data, as defined by BCP-47. e.g. "en-US".
Corresponds to the JSON property defaultLanguage
      2900 2901 2902  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2900 def default_language @default_language end  | 
  
#default_price ⇒ Google::Apis::AndroidpublisherV3::Price
Definition of a price, i.e. currency and units.
Corresponds to the JSON property defaultPrice
      2905 2906 2907  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2905 def default_price @default_price end  | 
  
#grace_period ⇒ String
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
      2913 2914 2915  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2913 def grace_period @grace_period end  | 
  
#listings ⇒ Hash<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
      2919 2920 2921  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2919 def listings @listings end  | 
  
#managed_product_taxes_and_compliance_settings ⇒ Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings
Details about taxation and legal compliance for managed products.
Corresponds to the JSON property managedProductTaxesAndComplianceSettings
      2924 2925 2926  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2924 def managed_product_taxes_and_compliance_settings @managed_product_taxes_and_compliance_settings end  | 
  
#package_name ⇒ String
Package name of the parent app.
Corresponds to the JSON property packageName
      2929 2930 2931  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2929 def package_name @package_name end  | 
  
#prices ⇒ Hash<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
      2935 2936 2937  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2935 def prices @prices end  | 
  
#purchase_type ⇒ String
The type of the product, e.g. a recurring subscription.
Corresponds to the JSON property purchaseType
      2940 2941 2942  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2940 def purchase_type @purchase_type end  | 
  
#sku ⇒ String
Stock-keeping-unit (SKU) of the product, unique within an app.
Corresponds to the JSON property sku
      2945 2946 2947  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2945 def sku @sku end  | 
  
#status ⇒ String
The status of the product, e.g. whether it's active.
Corresponds to the JSON property status
      2950 2951 2952  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2950 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
      2957 2958 2959  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2957 def subscription_period @subscription_period end  | 
  
#subscription_taxes_and_compliance_settings ⇒ Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings
Details about taxation, Google Play policy and legal compliance for
subscription products.
Corresponds to the JSON property subscriptionTaxesAndComplianceSettings
      2963 2964 2965  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2963 def subscription_taxes_and_compliance_settings @subscription_taxes_and_compliance_settings end  | 
  
#trial_period ⇒ String
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
      2969 2970 2971  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2969 def trial_period @trial_period end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2976 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) @managed_product_taxes_and_compliance_settings = args[:managed_product_taxes_and_compliance_settings] if args.key?(:managed_product_taxes_and_compliance_settings) @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) @subscription_taxes_and_compliance_settings = args[:subscription_taxes_and_compliance_settings] if args.key?(:subscription_taxes_and_compliance_settings) @trial_period = args[:trial_period] if args.key?(:trial_period) end  |