com.sap.cloud.mt.subscription.SubscriptionPayloadAccess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multi-tenant-subscription Show documentation
Show all versions of multi-tenant-subscription Show documentation
Spring Boot Enablement Parent
package com.sap.cloud.mt.subscription;
import java.util.Map;
public interface SubscriptionPayloadAccess {
String getGlobalAccountId();
String getSubAccountId();
String getApplicationName();
String getEventType();
String getSubDomain();
static SubscriptionPayloadAccess create(Map payload) {
if (payload.containsKey("subscriber")) {
return new SubscriptionPayloadAccessForSMS(payload);
} else {
return new SubscriptionPayloadAccessForSaasRegistry(payload);
}
}
}