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

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

There is a newer version: 3.3.3
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;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;

@JsonIgnoreProperties(ignoreUnknown = true)

public class SubscriptionPayload {
    public String subscriptionAppId;//NOSONAR
    public String subscriptionAppName;//NOSONAR
    public String subscribedTenantId;//NOSONAR
    public String subscribedZoneId;//NOSONAR
    public String subscribedLicenseType; //NOSONAR
    public String subscribedCrmId;//NOSONAR
    public String subscribedSubdomain;//NOSONAR
    public String subscribedSubaccountId;//NOSONAR
    public String subscriptionAppPlan;//NOSONAR
    public String subscriptionAppAmount;//NOSONAR
    public String[] dependentServiceInstanceAppIds;//NOSONAR
    public String[] dependantServiceInstanceAppIds;//NOSONAR
    public String eventType;//NOSONAR
    public String globalAccountGUID;//NOSONAR
    public SubscriptionPayloadAddInfo additionalInformation;//NOSONAR
    public String userId;//NOSONAR
    public UserInfo userInfo; //NOSONAR
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public Map subscriptionParams = new HashMap<>(); //NOSONAR

    @Override
    public String toString() {
        return "SubscriptionPayload{" +
                "subscriptionAppId='" + subscriptionAppId + '\'' +
                ", subscriptionAppName='" + subscriptionAppName + '\'' +
                ", subscribedTenantId='" + subscribedTenantId + '\'' +
                ", subscribedZoneId='" + subscribedZoneId + '\'' +
                ", subscribedLicenseType='" + subscribedLicenseType + '\'' +
                ", subscribedCrmId='" + subscribedCrmId + '\'' +
                ", subscribedSubdomain='" + subscribedSubdomain + '\'' +
                ", subscribedSubaccountId='" + subscribedSubaccountId + '\'' +
                ", subscriptionAppPlan='" + subscriptionAppPlan + '\'' +
                ", subscriptionAppAmount='" + subscriptionAppAmount + '\'' +
                ", dependentServiceInstanceAppIds=" + Arrays.toString(dependentServiceInstanceAppIds) +
                ", dependantServiceInstanceAppIds=" + Arrays.toString(dependantServiceInstanceAppIds) +
                ", eventType='" + eventType + '\'' +
                ", globalAccountGUID='" + globalAccountGUID + '\'' +
                ", additionalInformation=" + additionalInformation +
                ", userId='" + userId + '\'' +
                ", userInfo=" + userInfo +
                ", subscriptionParams=[" +
                subscriptionParams.entrySet().stream().map(e -> e.getKey().toString() + ":" + e.getValue().toString()).collect(Collectors.joining(",")) + "]"+
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy