com.google.api.services.androidpublisher.model.InAppProduct Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://code.google.com/p/google-apis-client-generator/
* (build: 2014-07-22 21:53:01 UTC)
* on 2014-09-08 at 14:04:04 UTC
* Modify at your own risk.
*/
package com.google.api.services.androidpublisher.model;
/**
* Model definition for InAppProduct.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Play Android Developer API. For a detailed
* explanation see:
* http://code.google.com/p/google-http-java-client/wiki/JSON
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class InAppProduct extends com.google.api.client.json.GenericJson {
/**
* The default language of the localized data, as defined by BCP 47. e.g. "en-US", "en-GB".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String defaultLanguage;
/**
* Default price cannot be zero. In-app products can never be free. Default price is always in the
* developer's Checkout merchant currency.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Price defaultPrice;
/**
* List of localized title and description data.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map listings;
/**
* The package name of the parent app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String packageName;
/**
* Prices per buyer region. None of these prices should be zero. In-app products can never be
* free.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map prices;
/**
* Purchase type enum value. Unmodifiable after creation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String purchaseType;
/**
* Definition of a season for a seasonal subscription. Can be defined only for yearly
* subscriptions.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Season season;
/**
* The stock-keeping-unit (SKU) of the product, unique within an app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sku;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String status;
/**
* The period of the subscription (if any), i.e. period at which payments must happen. Defined as
* ISO 8601 duration, i.e. "P1M" for 1 month period.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String subscriptionPeriod;
/**
* Trial duration (if any) of the subscription, defined as ISO 8601. i.e. "P10D" means an initial
* period of 10 days during which ownership is granted prior to any payment. Acceptable values are
* between "P7D" and "P999D". Seasonal subscriptions cannot have a trial period.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String trialPeriod;
/**
* The default language of the localized data, as defined by BCP 47. e.g. "en-US", "en-GB".
* @return value or {@code null} for none
*/
public java.lang.String getDefaultLanguage() {
return defaultLanguage;
}
/**
* The default language of the localized data, as defined by BCP 47. e.g. "en-US", "en-GB".
* @param defaultLanguage defaultLanguage or {@code null} for none
*/
public InAppProduct setDefaultLanguage(java.lang.String defaultLanguage) {
this.defaultLanguage = defaultLanguage;
return this;
}
/**
* Default price cannot be zero. In-app products can never be free. Default price is always in the
* developer's Checkout merchant currency.
* @return value or {@code null} for none
*/
public Price getDefaultPrice() {
return defaultPrice;
}
/**
* Default price cannot be zero. In-app products can never be free. Default price is always in the
* developer's Checkout merchant currency.
* @param defaultPrice defaultPrice or {@code null} for none
*/
public InAppProduct setDefaultPrice(Price defaultPrice) {
this.defaultPrice = defaultPrice;
return this;
}
/**
* List of localized title and description data.
* @return value or {@code null} for none
*/
public java.util.Map getListings() {
return listings;
}
/**
* List of localized title and description data.
* @param listings listings or {@code null} for none
*/
public InAppProduct setListings(java.util.Map listings) {
this.listings = listings;
return this;
}
/**
* The package name of the parent app.
* @return value or {@code null} for none
*/
public java.lang.String getPackageName() {
return packageName;
}
/**
* The package name of the parent app.
* @param packageName packageName or {@code null} for none
*/
public InAppProduct setPackageName(java.lang.String packageName) {
this.packageName = packageName;
return this;
}
/**
* Prices per buyer region. None of these prices should be zero. In-app products can never be
* free.
* @return value or {@code null} for none
*/
public java.util.Map getPrices() {
return prices;
}
/**
* Prices per buyer region. None of these prices should be zero. In-app products can never be
* free.
* @param prices prices or {@code null} for none
*/
public InAppProduct setPrices(java.util.Map prices) {
this.prices = prices;
return this;
}
/**
* Purchase type enum value. Unmodifiable after creation.
* @return value or {@code null} for none
*/
public java.lang.String getPurchaseType() {
return purchaseType;
}
/**
* Purchase type enum value. Unmodifiable after creation.
* @param purchaseType purchaseType or {@code null} for none
*/
public InAppProduct setPurchaseType(java.lang.String purchaseType) {
this.purchaseType = purchaseType;
return this;
}
/**
* Definition of a season for a seasonal subscription. Can be defined only for yearly
* subscriptions.
* @return value or {@code null} for none
*/
public Season getSeason() {
return season;
}
/**
* Definition of a season for a seasonal subscription. Can be defined only for yearly
* subscriptions.
* @param season season or {@code null} for none
*/
public InAppProduct setSeason(Season season) {
this.season = season;
return this;
}
/**
* The stock-keeping-unit (SKU) of the product, unique within an app.
* @return value or {@code null} for none
*/
public java.lang.String getSku() {
return sku;
}
/**
* The stock-keeping-unit (SKU) of the product, unique within an app.
* @param sku sku or {@code null} for none
*/
public InAppProduct setSku(java.lang.String sku) {
this.sku = sku;
return this;
}
/**
* @return value or {@code null} for none
*/
public java.lang.String getStatus() {
return status;
}
/**
* @param status status or {@code null} for none
*/
public InAppProduct setStatus(java.lang.String status) {
this.status = status;
return this;
}
/**
* The period of the subscription (if any), i.e. period at which payments must happen. Defined as
* ISO 8601 duration, i.e. "P1M" for 1 month period.
* @return value or {@code null} for none
*/
public java.lang.String getSubscriptionPeriod() {
return subscriptionPeriod;
}
/**
* The period of the subscription (if any), i.e. period at which payments must happen. Defined as
* ISO 8601 duration, i.e. "P1M" for 1 month period.
* @param subscriptionPeriod subscriptionPeriod or {@code null} for none
*/
public InAppProduct setSubscriptionPeriod(java.lang.String subscriptionPeriod) {
this.subscriptionPeriod = subscriptionPeriod;
return this;
}
/**
* Trial duration (if any) of the subscription, defined as ISO 8601. i.e. "P10D" means an initial
* period of 10 days during which ownership is granted prior to any payment. Acceptable values are
* between "P7D" and "P999D". Seasonal subscriptions cannot have a trial period.
* @return value or {@code null} for none
*/
public java.lang.String getTrialPeriod() {
return trialPeriod;
}
/**
* Trial duration (if any) of the subscription, defined as ISO 8601. i.e. "P10D" means an initial
* period of 10 days during which ownership is granted prior to any payment. Acceptable values are
* between "P7D" and "P999D". Seasonal subscriptions cannot have a trial period.
* @param trialPeriod trialPeriod or {@code null} for none
*/
public InAppProduct setTrialPeriod(java.lang.String trialPeriod) {
this.trialPeriod = trialPeriod;
return this;
}
@Override
public InAppProduct set(String fieldName, Object value) {
return (InAppProduct) super.set(fieldName, value);
}
@Override
public InAppProduct clone() {
return (InAppProduct) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy