-
- All Implemented Interfaces:
-
android.os.Parcelable
public class CheckoutInfo implements Parcelable
Represents a checkout info, providing access to the endpoint, amount, currency, brands, tokens and more.
-
-
Field Summary
Fields Modifier and Type Field Description private String
endpoint
private String
resourcePath
private double
amount
private String
currencyCode
private String
countryCode
private Array<String>
brands
private boolean
isShopBrandsOverridden
private boolean
isBrandsActivated
private Array<Token>
tokens
private Array<String>
klarnaMerchantIds
private boolean
isCollectRedShieldDeviceId
private CheckoutMsdkUi
msdkUi
private String
logLevel
public final static Parcelable.Creator<CheckoutInfo>
CREATOR
-
Method Summary
Modifier and Type Method Description String
getEndpoint()
Returns the endpoint value. void
setEndpoint(@Nullable() String endpoint)
Sets the endpoint value. String
getResourcePath()
Returns the resource path value. void
setResourcePath(@Nullable() String resourcePath)
Sets the resource path value. double
getAmount()
Returns the amount value. String
getCurrencyCode()
Returns the currency code. String
getCountryCode()
Array<String>
getBrands()
Returns all the brands configured in BIP. boolean
isShopBrandsOverridden()
Returns true
if the brands in the checkout settings should be overridden.boolean
isBrandsActivated()
Returns true
if brand management activated in the BIP.Array<Token>
getTokens()
Returns tokens. Array<String>
getKlarnaMerchantIds()
Returns merchant ids for Klarna payment method. boolean
isCollectRedShieldDeviceId()
Returns true
if ReD Shield Device Id collecting is enabled.CheckoutMsdkUi
getMsdkUi()
Returns the type of mSDK UI String
getLogLevel()
Returns the log level static CheckoutInfo
createCheckoutInfoFromJSON(@NonNull() JSONObject jsonObject)
Creates the new instance of CheckoutInfo from JSONObject int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(@Nullable() Object o)
int
hashCode()
-
-
Method Detail
-
getEndpoint
@Nullable() String getEndpoint()
Returns the endpoint value.
-
setEndpoint
void setEndpoint(@Nullable() String endpoint)
Sets the endpoint value.
- Parameters:
endpoint
- the endpoint value
-
getResourcePath
@Nullable() String getResourcePath()
Returns the resource path value.
-
setResourcePath
void setResourcePath(@Nullable() String resourcePath)
Sets the resource path value.
- Parameters:
resourcePath
- the resource path value
-
getAmount
double getAmount()
Returns the amount value.
-
getCurrencyCode
@Nullable() String getCurrencyCode()
Returns the currency code.
-
getCountryCode
@Nullable() String getCountryCode()
-
isShopBrandsOverridden
boolean isShopBrandsOverridden()
Returns
true
if the brands in the checkout settings should be overridden. Iftrue
display only the allowed brands configured in BIP and ignore brands specified in the checkout settings, otherwise display only brands that are both in the checkout settings and in the BIP configuration.
-
isBrandsActivated
boolean isBrandsActivated()
Returns
true
if brand management activated in the BIP.
-
getKlarnaMerchantIds
@Nullable() Array<String> getKlarnaMerchantIds()
Returns merchant ids for Klarna payment method.
-
isCollectRedShieldDeviceId
boolean isCollectRedShieldDeviceId()
Returns
true
if ReD Shield Device Id collecting is enabled.
-
getMsdkUi
CheckoutMsdkUi getMsdkUi()
Returns the type of mSDK UI
-
getLogLevel
@Nullable() String getLogLevel()
Returns the log level
-
createCheckoutInfoFromJSON
@NonNull() static CheckoutInfo createCheckoutInfoFromJSON(@NonNull() JSONObject jsonObject)
Creates the new instance of CheckoutInfo from JSONObject
- Parameters:
jsonObject
- the JSONObject with checkout info
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-