com.sap.cloud.mt.subscription.json.SidecarSubscriptionPayload 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
/******************************************************************************
* © 2020 SAP SE or an SAP affiliate company. All rights reserved. *
******************************************************************************/
package com.sap.cloud.mt.subscription.json;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* Sidecar expects the payload send from CIS plus its own fields
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class SidecarSubscriptionPayload extends SubscriptionPayload {
// added to tunnel application url determined by Java through sidecar. It is not
// accessed by sidecar !
public String _applicationUrlFromJava_;//NOSONAR
//needed by sidecar, if it is missing nothing is processed !
public String eventType = "CREATE";
// application specific information
@JsonInclude(JsonInclude.Include.NON_NULL)
public ApplicationForSidecar _application_;//NOSONAR
public SidecarSubscriptionPayload() {
}
public SidecarSubscriptionPayload(SubscriptionPayload subscriptionPayload) {
subscriptionAppId = subscriptionPayload.subscriptionAppId;
subscriptionAppName = subscriptionPayload.subscriptionAppName;
subscribedTenantId = subscriptionPayload.subscribedTenantId;
subscribedZoneId = subscriptionPayload.subscribedZoneId;
subscribedLicenseType = subscriptionPayload.subscribedLicenseType;
subscribedCrmId = subscriptionPayload.subscribedCrmId;
subscribedSubdomain = subscriptionPayload.subscribedSubdomain;
subscribedSubaccountId = subscriptionPayload.subscribedSubaccountId;
subscriptionAppPlan = subscriptionPayload.subscriptionAppPlan;
subscriptionAppAmount = subscriptionPayload.subscriptionAppAmount;
dependentServiceInstanceAppIds = subscriptionPayload.dependentServiceInstanceAppIds;
dependantServiceInstanceAppIds = subscriptionPayload.dependantServiceInstanceAppIds;
eventType = subscriptionPayload.eventType;
if (eventType == null || eventType.isEmpty()) {
eventType = "CREATE";
}
globalAccountGUID = subscriptionPayload.globalAccountGUID;
additionalInformation = subscriptionPayload.additionalInformation;
userId = subscriptionPayload.userId;
userInfo = subscriptionPayload.userInfo;
subscriptionParams.putAll(subscriptionPayload.subscriptionParams);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy