-
- 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 private StringcountryCodeprivate 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'.
-
setCountryCode
@NonNull() MbWayConfig setCountryCode(@NonNull() String countryCode)
Sets the country code.
- Parameters:
countryCode- The country code in the following format [0-9]{1,4}.
-
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.
-
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.
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel parcel, int i)
-
-
-
-