com.yandex.metrica
Class Revenue.Receipt.Builder
java.lang.Object
com.yandex.metrica.Revenue.Receipt.Builder
- Enclosing class:
- Revenue.Receipt
public static class Revenue.Receipt.Builder
extends java.lang.Object
Builder class for
Revenue.Receipt
objects.Method Summary
Modifier and Type | Method and Description |
---|---|
Revenue.Receipt | build()
Creates the
Revenue.Receipt instance. |
Revenue.Receipt.Builder | withData(java.lang.String data)
Sets details about the in-app purchase order from Google Play.
|
Revenue.Receipt.Builder | withSignature(java.lang.String signature)
Sets the signature of the in-app purchase order from Google Play.
|
Method Detail
withData
@NonNull public Revenue.Receipt.Builder withData(@Nullable java.lang.String data)
Sets details about the in-app purchase order from Google Play.
- Parameters:
data
- INAPP_PURCHASE_DATA value- Returns:
- The same
Revenue.Builder
object - See Also:
- The getBuyIntent() method,
Revenue.Receipt.data
withSignature
@NonNull public Revenue.Receipt.Builder withSignature(@Nullable java.lang.String signature)
Sets the signature of the in-app purchase order from Google Play.
- Parameters:
signature
- INAPP_DATA_SIGNATURE value- Returns:
- The same
Revenue.Builder
object - See Also:
- The getBuyIntent() method,
Revenue.Receipt.signature
build
@NonNull public Revenue.Receipt build()
Creates the
Revenue.Receipt
instance.- Returns:
- The
Revenue.Receipt
object