Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new in-app product for an app.
See: Google Play Developer API Reference for androidpublisher.inappproducts.insert
.
Synopsis
- type InAppProductsInsertResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("inappproducts" :> (QueryParam "autoConvertMissingPrices" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InAppProduct :> Post '[JSON] InAppProduct)))))))
- inAppProductsInsert :: Text -> InAppProduct -> InAppProductsInsert
- data InAppProductsInsert
- iapiAutoConvertMissingPrices :: Lens' InAppProductsInsert (Maybe Bool)
- iapiPackageName :: Lens' InAppProductsInsert Text
- iapiPayload :: Lens' InAppProductsInsert InAppProduct
REST Resource
type InAppProductsInsertResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("inappproducts" :> (QueryParam "autoConvertMissingPrices" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InAppProduct :> Post '[JSON] InAppProduct))))))) Source #
A resource alias for androidpublisher.inappproducts.insert
method which the
InAppProductsInsert
request conforms to.
Creating a Request
Creates a value of InAppProductsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InAppProductsInsert Source #
Creates a new in-app product for an app.
See: inAppProductsInsert
smart constructor.
Instances
Request Lenses
iapiAutoConvertMissingPrices :: Lens' InAppProductsInsert (Maybe Bool) Source #
If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false.
iapiPackageName :: Lens' InAppProductsInsert Text Source #
Unique identifier for the Android app; for example, "com.spiffygame".
iapiPayload :: Lens' InAppProductsInsert InAppProduct Source #
Multipart request metadata.