All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.mt.subscription.json.SidecarSubscriptionPayload Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
/******************************************************************************
 * © 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 final String eventType = "CREATE";

    public SidecarSubscriptionPayload() {
    }

    public SidecarSubscriptionPayload(SubscriptionPayload subscriptionPayload) {
        subscriptionAppId = subscriptionPayload.subscriptionAppId;
        subscriptionAppName = subscriptionPayload.subscriptionAppName;
        subscribedTenantId = subscriptionPayload.subscribedTenantId;
        subscribedSubdomain = subscriptionPayload.subscribedSubdomain;
        subscribedSubaccountId = subscriptionPayload.subscribedSubaccountId;
        subscriptionAppPlan = subscriptionPayload.subscriptionAppPlan;
        subscriptionAppAmount = subscriptionPayload.subscriptionAppAmount;
        dependentServiceInstanceAppIds = subscriptionPayload.dependentServiceInstanceAppIds;
        dependantServiceInstanceAppIds = subscriptionPayload.dependantServiceInstanceAppIds;
        globalAccountGUID = subscriptionPayload.globalAccountGUID;
        additionalInformation = subscriptionPayload.additionalInformation;
        userId = subscriptionPayload.userId;
    }

    // application specific information
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public ApplicationForSidecar _application_;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy