Class PaymentCredential
- java.lang.Object
-
- com.restfb.types.webhook.messaging.payment.PaymentCredential
-
- All Implemented Interfaces:
Serializable
public class PaymentCredential extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PaymentCredential()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChargeId()
Payment provider charge idString
getProviderType()
Payment provider typeboolean
isPaypal()
convenience method to check if the provider type is paypalboolean
isStripe()
convenience method to check if the provider type is stripeboolean
isToken()
convenience method to check if the provider type is tokenvoid
setChargeId(String chargeId)
Payment provider charge idvoid
setProviderType(String providerType)
Payment provider typeString
toString()
-
-
-
Field Detail
-
STRIPE
public static final String STRIPE
The "stripe" provider type.- See Also:
- Constant Field Values
-
PAYPAL
public static final String PAYPAL
The "paypal" provider type.- See Also:
- Constant Field Values
-
TOKEN
public static final String TOKEN
The "token" provider type.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PaymentCredential
public PaymentCredential()
-
-
Method Detail
-
isStripe
public boolean isStripe()
convenience method to check if the provider type is stripe- Returns:
true
if stripe,false
if not stripe
-
isPaypal
public boolean isPaypal()
convenience method to check if the provider type is paypal- Returns:
true
if paypal,false
if not paypal
-
isToken
public boolean isToken()
convenience method to check if the provider type is token- Returns:
true
if token,false
if not token
-
getProviderType
public String getProviderType()
Payment provider type
-
setProviderType
public void setProviderType(String providerType)
Payment provider type
-
getChargeId
public String getChargeId()
Payment provider charge id
-
setChargeId
public void setChargeId(String chargeId)
Payment provider charge id
-
-