-
- 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 classCheckoutInfo.Builder
-
Field Summary
Fields Modifier and Type Field Description private final doubleamountprivate final StringcurrencyCodeprivate final StringcountryCodeprivate final Array<String>brandsprivate final booleanisShopBrandsOverriddenprivate final booleanisBrandsActivatedprivate final Array<Token>tokensprivate final Array<String>klarnaMerchantIdsprivate final booleanisCollectRedShieldDeviceIdprivate final CheckoutMsdkUimsdkUiprivate final StringlogLevelprivate Stringendpointprivate StringresourcePathprivate final AffirmConfigaffirmConfigpublic final static Parcelable.Creator<CheckoutInfo>CREATOR
-
Method Summary
Modifier and Type Method Description doublegetAmount()Returns the amount value. StringgetCurrencyCode()Returns the currency code. StringgetCountryCode()Array<String>getBrands()Returns all the brands configured in BIP. booleanisShopBrandsOverridden()Returns trueif the brands in the checkout settings should be overridden.booleanisBrandsActivated()Returns trueif brand management activated in the BIP.Array<Token>getTokens()Returns tokens. Array<String>getKlarnaMerchantIds()Returns merchant ids for Klarna payment method. booleanisCollectRedShieldDeviceId()Returns trueif ReD Shield Device Id collecting is enabled.CheckoutMsdkUigetMsdkUi()Returns the type of mSDK UI StringgetLogLevel()Returns the log level StringgetEndpoint()Returns the endpoint value. voidsetEndpoint(@Nullable() String endpoint)Sets the endpoint value. StringgetResourcePath()Returns the resource path value. voidsetResourcePath(@Nullable() String resourcePath)Sets the resource path value. AffirmConfiggetAffirmConfig()Returns the AffirmConfig booleanisVisaInstallmentEnabled()Returns trueif Visa Installment is enabled.static CheckoutInfocreateCheckoutInfoFromJSON(@NonNull() JSONObject jsonObject)Not used anymore. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequals(Object o)inthashCode()-
-
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
trueif the brands in the checkout settings should be overridden. Iftruedisplay 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
trueif brand management activated in the BIP.
-
getKlarnaMerchantIds
@Nullable() Array<String> getKlarnaMerchantIds()
Returns merchant ids for Klarna payment method.
-
isCollectRedShieldDeviceId
boolean isCollectRedShieldDeviceId()
Returns
trueif 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
-
isVisaInstallmentEnabled
boolean isVisaInstallmentEnabled()
Returns
trueif Visa Installment is enabled.
-
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()
-
-
-
-