-
- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
CheckoutInfo.Builder
-
Field Summary
Fields Modifier and Type Field Description private final double
amount
private final String
currencyCode
private final String
countryCode
private final Array<String>
brands
private final boolean
isShopBrandsOverridden
private final boolean
isBrandsActivated
private final Array<Token>
tokens
private final Array<String>
klarnaMerchantIds
private final boolean
isCollectRedShieldDeviceId
private final CheckoutMsdkUi
msdkUi
private final String
logLevel
private String
endpoint
private String
resourcePath
private final AffirmConfig
affirmConfig
public final static Parcelable.Creator<CheckoutInfo>
CREATOR
-
Method Summary
Modifier and Type Method Description 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 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. AffirmConfig
getAffirmConfig()
Returns the AffirmConfig static CheckoutInfo
createCheckoutInfoFromJSON(@NonNull() JSONObject jsonObject)
Not used anymore. int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(Object o)
int
hashCode()
-
-
Method Detail
-
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
@Nullable() CheckoutMsdkUi getMsdkUi()
Returns the type of mSDK UI
-
getLogLevel
@Nullable() String getLogLevel()
Returns the log level
-
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
-
getAffirmConfig
@Nullable() AffirmConfig getAffirmConfig()
Returns the AffirmConfig
-
createCheckoutInfoFromJSON
@Deprecated()@NonNull() static CheckoutInfo createCheckoutInfoFromJSON(@NonNull() JSONObject jsonObject)
Not used anymore.
- Parameters:
jsonObject
- the JSONObject with checkout info
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-