Class MbWayConfig
-
- All Implemented Interfaces:
-
android.os.Parcelable
public class MbWayConfig implements Parcelable
The configuration for MBWAY payment method.
-
-
Field Summary
Fields Modifier and Type Field Description public StringcountryCodepublic booleanisCountryCodeDisplayedpublic final static Parcelable.Creator<MbWayConfig>CREATOR
-
Constructor Summary
Constructors Constructor Description MbWayConfig()
-
Method Summary
Modifier and Type Method Description StringgetCountryCode()Returns the country code, the default value is '351'. MbWayConfigsetCountryCode(@NonNull() String countryCode)Sets the country code. booleanisCountryCodeDisplayed()Returns the boolean indicates whether country code input field is displayed on the MBWAY form or not. MbWayConfigsetCountryCodeDisplayed(boolean isCountryCodeDisplayed)Sets the boolean indicates whether country code input field is displayed on the MBWAY form or not. StringtoString()booleanequals(Object o)inthashCode()intdescribeContents()voidwriteToParcel(@NonNull() Parcel parcel, int i)-
-
Method Detail
-
getCountryCode
@NonNull() String getCountryCode()
Returns the country code, the default value is '351'.
- Returns:
The country code.
-
setCountryCode
@NonNull() MbWayConfig setCountryCode(@NonNull() String countryCode)
Sets the country code.
- Parameters:
countryCode- The country code in the following format [0-9]{1,4}.- Returns:
A reference to this object.
-
isCountryCodeDisplayed
boolean isCountryCodeDisplayed()
Returns the boolean indicates whether country code input field is displayed on the MBWAY form or not. The default value is
true.- Returns:
trueif country code will be displayed, otherwisefalse.
-
setCountryCodeDisplayed
@NonNull() MbWayConfig setCountryCodeDisplayed(boolean isCountryCodeDisplayed)
Sets the boolean indicates whether country code input field is displayed on the MBWAY form or not. If country code input field is not displayed, the countryCode value will be used for payment.
- Parameters:
isCountryCodeDisplayed- Usetrueif country code must be displayed, otherwisefalse.- Returns:
A reference to this object.
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel parcel, int i)
-
-
-
-