Package com.clover.sdk.v3.payments
Class VasServiceProvider
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.VasServiceProvider
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class VasServiceProvider extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VasServiceProvider.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<VasServiceProvider>
CREATOR
static JSONifiable.Creator<VasServiceProvider>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description VasServiceProvider()
Constructs a new empty instance.protected
VasServiceProvider(boolean noInit)
Constructs a new empty instance.VasServiceProvider(VasServiceProvider src)
Constructs a new instance that is a deep copy of the source instance.VasServiceProvider(String json)
Constructs a new instance from the given JSON String.VasServiceProvider(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearProtocolConfig()
Clears the 'protocolConfig' field, the 'has' method for this field will now return falsevoid
clearProtocolId()
Clears the 'protocolId' field, the 'has' method for this field will now return falsevoid
clearProviderPackage()
Clears the 'providerPackage' field, the 'has' method for this field will now return falsevoid
clearPushTitle()
Clears the 'pushTitle' field, the 'has' method for this field will now return falsevoid
clearPushUrl()
Clears the 'pushUrl' field, the 'has' method for this field will now return falsevoid
clearSupportedServices()
Clears the 'supportedServices' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.VasServiceProvider
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.protected GenericClient
getGenericClient()
JSONObject
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.Map<String,String>
getProtocolConfig()
protocol specific configurationVasProtocol
getProtocolId()
String
getProviderPackage()
Unique package name identifier of providerString
getPushTitle()
Optionally populated for vas push use cases (e.g.String
getPushUrl()
Populated for push use cases (e.g.List<VasDataType>
getSupportedServices()
Service types supported by this provider.boolean
hasProtocolConfig()
Checks whether the 'protocolConfig' field has been set, however the value could be nullboolean
hasProtocolId()
Checks whether the 'protocolId' field has been set, however the value could be nullboolean
hasProviderPackage()
Checks whether the 'providerPackage' field has been set, however the value could be nullboolean
hasPushTitle()
Checks whether the 'pushTitle' field has been set, however the value could be nullboolean
hasPushUrl()
Checks whether the 'pushUrl' field has been set, however the value could be nullboolean
hasSupportedServices()
Checks whether the 'supportedServices' field has been set, however the value could be nullboolean
isNotEmptyProtocolConfig()
Checks whether the 'protocolConfig' field is set and is not null and is not emptyboolean
isNotEmptySupportedServices()
Checks whether the 'supportedServices' field is set and is not null and is not emptyboolean
isNotNullProtocolConfig()
Checks whether the 'protocolConfig' field is set and is not nullboolean
isNotNullProtocolId()
Checks whether the 'protocolId' field is set and is not nullboolean
isNotNullProviderPackage()
Checks whether the 'providerPackage' field is set and is not nullboolean
isNotNullPushTitle()
Checks whether the 'pushTitle' field is set and is not nullboolean
isNotNullPushUrl()
Checks whether the 'pushUrl' field is set and is not nullboolean
isNotNullSupportedServices()
Checks whether the 'supportedServices' field is set and is not nullvoid
mergeChanges(VasServiceProvider src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.VasServiceProvider
setProtocolConfig(Map<String,String> protocolConfig)
Sets the field 'protocolConfig'.VasServiceProvider
setProtocolId(VasProtocol protocolId)
Sets the field 'protocolId'.VasServiceProvider
setProviderPackage(String providerPackage)
Sets the field 'providerPackage'.VasServiceProvider
setPushTitle(String pushTitle)
Sets the field 'pushTitle'.VasServiceProvider
setPushUrl(String pushUrl)
Sets the field 'pushUrl'.VasServiceProvider
setSupportedServices(List<VasDataType> supportedServices)
Sets the field 'supportedServices'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<VasServiceProvider> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<VasServiceProvider> JSON_CREATOR
-
-
Constructor Detail
-
VasServiceProvider
public VasServiceProvider()
Constructs a new empty instance.
-
VasServiceProvider
protected VasServiceProvider(boolean noInit)
Constructs a new empty instance.
-
VasServiceProvider
public VasServiceProvider(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
VasServiceProvider
public VasServiceProvider(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
VasServiceProvider
public VasServiceProvider(VasServiceProvider src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getProviderPackage
public String getProviderPackage()
Unique package name identifier of provider
-
getProtocolId
public VasProtocol getProtocolId()
-
getSupportedServices
public List<VasDataType> getSupportedServices()
Service types supported by this provider.
-
getPushUrl
public String getPushUrl()
Populated for push use cases (e.g. send signup URL).
-
getPushTitle
public String getPushTitle()
Optionally populated for vas push use cases (e.g. send signup URL).
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullProviderPackage
public boolean isNotNullProviderPackage()
Checks whether the 'providerPackage' field is set and is not null
-
isNotNullProtocolId
public boolean isNotNullProtocolId()
Checks whether the 'protocolId' field is set and is not null
-
isNotNullSupportedServices
public boolean isNotNullSupportedServices()
Checks whether the 'supportedServices' field is set and is not null
-
isNotEmptySupportedServices
public boolean isNotEmptySupportedServices()
Checks whether the 'supportedServices' field is set and is not null and is not empty
-
isNotNullProtocolConfig
public boolean isNotNullProtocolConfig()
Checks whether the 'protocolConfig' field is set and is not null
-
isNotEmptyProtocolConfig
public boolean isNotEmptyProtocolConfig()
Checks whether the 'protocolConfig' field is set and is not null and is not empty
-
isNotNullPushUrl
public boolean isNotNullPushUrl()
Checks whether the 'pushUrl' field is set and is not null
-
isNotNullPushTitle
public boolean isNotNullPushTitle()
Checks whether the 'pushTitle' field is set and is not null
-
hasProviderPackage
public boolean hasProviderPackage()
Checks whether the 'providerPackage' field has been set, however the value could be null
-
hasProtocolId
public boolean hasProtocolId()
Checks whether the 'protocolId' field has been set, however the value could be null
-
hasSupportedServices
public boolean hasSupportedServices()
Checks whether the 'supportedServices' field has been set, however the value could be null
-
hasProtocolConfig
public boolean hasProtocolConfig()
Checks whether the 'protocolConfig' field has been set, however the value could be null
-
hasPushUrl
public boolean hasPushUrl()
Checks whether the 'pushUrl' field has been set, however the value could be null
-
hasPushTitle
public boolean hasPushTitle()
Checks whether the 'pushTitle' field has been set, however the value could be null
-
setProviderPackage
public VasServiceProvider setProviderPackage(String providerPackage)
Sets the field 'providerPackage'.
-
setProtocolId
public VasServiceProvider setProtocolId(VasProtocol protocolId)
Sets the field 'protocolId'.
-
setSupportedServices
public VasServiceProvider setSupportedServices(List<VasDataType> supportedServices)
Sets the field 'supportedServices'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setProtocolConfig
public VasServiceProvider setProtocolConfig(Map<String,String> protocolConfig)
Sets the field 'protocolConfig'.
-
setPushUrl
public VasServiceProvider setPushUrl(String pushUrl)
Sets the field 'pushUrl'.
-
setPushTitle
public VasServiceProvider setPushTitle(String pushTitle)
Sets the field 'pushTitle'.
-
clearProviderPackage
public void clearProviderPackage()
Clears the 'providerPackage' field, the 'has' method for this field will now return false
-
clearProtocolId
public void clearProtocolId()
Clears the 'protocolId' field, the 'has' method for this field will now return false
-
clearSupportedServices
public void clearSupportedServices()
Clears the 'supportedServices' field, the 'has' method for this field will now return false
-
clearProtocolConfig
public void clearProtocolConfig()
Clears the 'protocolConfig' field, the 'has' method for this field will now return false
-
clearPushUrl
public void clearPushUrl()
Clears the 'pushUrl' field, the 'has' method for this field will now return false
-
clearPushTitle
public void clearPushTitle()
Clears the 'pushTitle' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public VasServiceProvider copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(VasServiceProvider src)
Copy all the changed fields from the given source to this instance.
-
-