Class CheckoutInfo
-
- 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 public final doubleamountpublic final StringcurrencyCodepublic final StringcountryCodepublic final Array<String>brandspublic final booleanisShopBrandsOverriddenpublic final booleanisBrandsActivatedpublic final Array<Token>tokenspublic final Array<String>klarnaMerchantIdspublic final booleanisCollectRedShieldDeviceIdpublic final CheckoutMsdkUimsdkUipublic final StringlogLevelpublic Stringendpointpublic StringresourcePathpublic 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.
- Returns:
the amount value
-
getCurrencyCode
@Nullable() String getCurrencyCode()
Returns the currency code.
- Returns:
the currency code
-
getCountryCode
@Nullable() String getCountryCode()
-
getBrands
@Nullable() Array<String> getBrands()
Returns all the brands configured in BIP.
- Returns:
The brands configured in BIP
-
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.- Returns:
trueif the brands in the checkout settings should be overridden;falseotherwise
-
isBrandsActivated
boolean isBrandsActivated()
Returns
trueif brand management activated in the BIP.- Returns:
trueif brand management activated in the BIP;falseotherwise
-
getKlarnaMerchantIds
@Nullable() Array<String> getKlarnaMerchantIds()
Returns merchant ids for Klarna payment method.
- Returns:
Merchant ids array.
-
isCollectRedShieldDeviceId
boolean isCollectRedShieldDeviceId()
Returns
trueif ReD Shield Device Id collecting is enabled.- Returns:
trueif ReD Shield Device Id collecting is enabled;falseotherwise
-
getMsdkUi
@Nullable() CheckoutMsdkUi getMsdkUi()
Returns the type of mSDK UI
- Returns:
the CheckoutMsdkUi
-
getLogLevel
@Nullable() String getLogLevel()
Returns the log level
- Returns:
The log level
-
getEndpoint
@Nullable() String getEndpoint()
Returns the endpoint value.
- 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.
- 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
- Returns:
The AffirmConfig
-
isVisaInstallmentEnabled
boolean isVisaInstallmentEnabled()
Returns
trueif Visa Installment is enabled.- Returns:
trueif Visa Installment is enabled via BIP settings then it will give a call to fetch visa installment plans where user can select from those plans and pay Iffalsethen it will not give a call to fetch visa installment plans and user will not be shown visa installment plans, and it will directly go ahead to make payment
-
createCheckoutInfoFromJSON
@Deprecated()@NonNull() static CheckoutInfo createCheckoutInfoFromJSON(@NonNull() JSONObject jsonObject)
Not used anymore.
- Parameters:
jsonObject- the JSONObject with checkout info- Returns:
the new instance of CheckoutInfo
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-