public final class MobileSdkUrl
extends java.lang.Object
implements java.io.Serializable, android.os.Parcelable
WebView with the
payment form in it.
The implementation is immutable.
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<MobileSdkUrl> |
CREATOR |
static long |
EXPIRY_THRESHOLD
The threshold which is applied to make sure the URL is valid when it is used.
|
static long |
EXPIRY_TIME_IN_MM
URL expiration time.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MobileSdkUrl(android.os.Parcel in) |
|
MobileSdkUrl(java.lang.String url,
long expiryDate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
android.net.Uri |
buildPaymentMethodUrl(long paymentMethodConfigurationId)
This method constructs a new URL which is usable to load the payment form for the provided
paymentMethodConfigurationId. |
int |
describeContents() |
long |
getExpiryDate() |
java.lang.String |
getUrl() |
boolean |
isExpired() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final long EXPIRY_TIME_IN_MM
public static final long EXPIRY_THRESHOLD
public static final android.os.Parcelable.Creator<MobileSdkUrl> CREATOR
public MobileSdkUrl(java.lang.String url,
long expiryDate)
url - the base URL.expiryDate - the date on which the URL will expire.protected MobileSdkUrl(android.os.Parcel in)
public java.lang.String getUrl()
public long getExpiryDate()
public boolean isExpired()
public android.net.Uri buildPaymentMethodUrl(long paymentMethodConfigurationId)
paymentMethodConfigurationId.paymentMethodConfigurationId - the payment method configuration id for which the URL
should be created for.WebView.public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable