|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.paypal.api.payments.EventType
public class EventType
| Constructor Summary | |
|---|---|
EventType()
Default Constructor |
|
EventType(String name)
Parameterized Constructor |
|
| Method Summary | |
|---|---|
static EventTypeList |
availableEventTypes(APIContext apiContext)
Retrieves the master list of available Webhooks events-types resources for any webhook to subscribe to. |
static EventTypeList |
availableEventTypes(String accessToken)
Retrieves the master list of available Webhooks events-types resources for any webhook to subscribe to. |
String |
getDescription()
Getter for description |
static String |
getLastRequest()
Returns the last request sent to the Service |
static String |
getLastResponse()
Returns the last response returned by the Service |
String |
getName()
Getter for name |
static void |
initConfig(File file)
Initialize using a File(Properties file) |
static void |
initConfig(InputStream is)
Initialize using InputStream(of a Properties file) |
static void |
initConfig(Properties properties)
Initialize using Properties |
EventType |
setDescription(String description)
Setter for description |
EventType |
setName(String name)
Setter for name |
static EventTypeList |
subscribedEventTypes(APIContext apiContext,
String webhookId)
Retrieves the list of events-types subscribed by the given Webhook. |
static EventTypeList |
subscribedEventTypes(String accessToken,
String webhookId)
Retrieves the list of events-types subscribed by the given Webhook. |
String |
toJSON()
Returns a JSON string corresponding to object state |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventType()
public EventType(String name)
| Method Detail |
|---|
public static String getLastRequest()
public static String getLastResponse()
public static void initConfig(InputStream is)
throws PayPalRESTException
is - InputStream
PayPalRESTException
public static void initConfig(File file)
throws PayPalRESTException
file - File object of a properties entity
PayPalRESTExceptionpublic static void initConfig(Properties properties)
properties - Properties objectpublic EventType setName(String name)
public String getName()
public EventType setDescription(String description)
public String getDescription()
public static EventTypeList subscribedEventTypes(String accessToken,
String webhookId)
throws PayPalRESTException
accessToken - Access Token used for the API call.webhookId - String
PayPalRESTException
public static EventTypeList subscribedEventTypes(APIContext apiContext,
String webhookId)
throws PayPalRESTException
apiContext - APIContext used for the API call.webhookId - String
PayPalRESTException
public static EventTypeList availableEventTypes(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public static EventTypeList availableEventTypes(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTExceptionpublic String toJSON()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||