All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.unzer.payment.webhook.WebhookEventEnum Maven / Gradle / Ivy
package com.unzer.payment.webhook;
public enum WebhookEventEnum {
ALL("all"),
AUTHORIZE("authorize"), AUTHORIZE_SUCCEEDED("authorize.succeeded"),
AUTHORIZE_FAILED("authorize.failed"), AUTHORIZE_PENDING("authorize.pending"),
AUTHORIZE_EXPIRED("authorize.expired"), AUTHORIZE_CANCELED("authorize.canceled"),
AUTHORIZE_RESUMED("authorize.resumed"),
CHARGE("charge"), CHARGE_SUCCEEDED("charge.succeeded"),
CHARGE_FAILED("charge.failed"), CHARGE_PENDING("charge.pending"),
CHARGE_EXPIRED("charge.expired"), CHARGE_CANCELED("charge.canceled"),
CHARGE_RESUMED("charge.resumed"), CHARGEBACK("chargeback"),
PAYOUT("payout"), PAYOUT_SUCCEEDED("payout.succeeded"),
PAYOUT_FAILED("payout.failed"),
TYPES("types"),
CUSTOMER("customer"), CUSTOMER_CREATED("customer.created"),
CUSTOMER_DELETED("customer.deleted"), CUSTOMER_UPDATED("customer.updated"),
PAYMENT("payment"), PAYMENT_PENDING("payment.pending"),
PAYMENT_COMPLETED("payment.completed"), PAYMENT_CANCELED("payment.canceled"),
PAYMENT_PARTLY("payment.partly"), PAYMENT_REVIEW("payment.payment_review"),
PAYMENT_CHARGEBACK("payment.chargeback"),
SHIPMENT("shipment"),
BASKET("basket"), BASKET_CREATE("basket.created"), BASKET_UPDATED("basket.updated"),
BASKET_USED("basket.used");
private final String eventName;
WebhookEventEnum(String eventName) {
this.eventName = eventName;
}
public static WebhookEventEnum fromEventName(String eventName) {
for (WebhookEventEnum value : values()) {
if (value.getEventName().equalsIgnoreCase(eventName)) {
return value;
}
}
return null;
}
/**
* @return the eventName
*/
public String getEventName() {
return eventName;
}
}