-
- 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 String
countryCode
private boolean
isCountryCodeDisplayed
public final static Parcelable.Creator<MbWayConfig>
CREATOR
-
Constructor Summary
Constructors Constructor Description MbWayConfig()
-
Method Summary
Modifier and Type Method Description String
getCountryCode()
Returns the country code, the default value is '351'. MbWayConfig
setCountryCode(@NonNull() String countryCode)
Sets the country code. boolean
isCountryCodeDisplayed()
Returns the boolean indicates whether country code input field is displayed on the MBWAY form or not. MbWayConfig
setCountryCodeDisplayed(boolean isCountryCodeDisplayed)
Sets the boolean indicates whether country code input field is displayed on the MBWAY form or not. String
toString()
boolean
equals(Object o)
int
hashCode()
int
describeContents()
void
writeToParcel(@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
- Usetrue
if country code must be displayed, otherwisefalse
.
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel parcel, int i)
-
-
-
-