com.wallee.sdk.model.SubscriptionProductComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wallee-java-sdk Show documentation
Show all versions of wallee-java-sdk Show documentation
The SDK for simplifying the integration with wallee API.
The newest version!
/**
* wallee SDK
*
* This library allows to interact with the wallee payment service.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.wallee.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.wallee.sdk.model.SubscriptionProductComponentGroup;
import com.wallee.sdk.model.SubscriptionProductComponentReference;
import com.wallee.sdk.model.TaxClass;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.time.OffsetDateTime;
/**
*
*/
@ApiModel(description = "")
public class SubscriptionProductComponent {
@JsonProperty("componentChangeWeight")
protected Integer componentChangeWeight = null;
@JsonProperty("componentGroup")
protected SubscriptionProductComponentGroup componentGroup = null;
@JsonProperty("defaultComponent")
protected Boolean defaultComponent = null;
@JsonProperty("description")
protected Map description = null;
@JsonProperty("id")
protected Long id = null;
@JsonProperty("linkedSpaceId")
protected Long linkedSpaceId = null;
@JsonProperty("maximalQuantity")
protected BigDecimal maximalQuantity = null;
@JsonProperty("minimalQuantity")
protected BigDecimal minimalQuantity = null;
@JsonProperty("name")
protected Map name = null;
@JsonProperty("quantityStep")
protected BigDecimal quantityStep = null;
@JsonProperty("reference")
protected SubscriptionProductComponentReference reference = null;
@JsonProperty("sortOrder")
protected Integer sortOrder = null;
@JsonProperty("taxClass")
protected TaxClass taxClass = null;
@JsonProperty("version")
protected Integer version = null;
/**
* If switching from a component with a lower tier to a component with a higher one, this is considered an upgrade and a fee may be applied.
* @return componentChangeWeight
**/
@ApiModelProperty(value = "If switching from a component with a lower tier to a component with a higher one, this is considered an upgrade and a fee may be applied.")
public Integer getComponentChangeWeight() {
return componentChangeWeight;
}
/**
* The group that the component belongs to.
* @return componentGroup
**/
@ApiModelProperty(value = "The group that the component belongs to.")
public SubscriptionProductComponentGroup getComponentGroup() {
return componentGroup;
}
/**
* Whether this is the default component in its group and preselected.
* @return defaultComponent
**/
@ApiModelProperty(value = "Whether this is the default component in its group and preselected.")
public Boolean isDefaultComponent() {
return defaultComponent;
}
/**
* The localized description of the component that is displayed to the customer.
* @return description
**/
@ApiModelProperty(value = "The localized description of the component that is displayed to the customer.")
public Map getDescription() {
return description;
}
/**
* A unique identifier for the object.
* @return id
**/
@ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
* The ID of the space this object belongs to.
* @return linkedSpaceId
**/
@ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
/**
* A maximum of the defined quantity can be selected for this component.
* @return maximalQuantity
**/
@ApiModelProperty(value = "A maximum of the defined quantity can be selected for this component.")
public BigDecimal getMaximalQuantity() {
return maximalQuantity;
}
/**
* A minimum of the defined quantity must be selected for this component.
* @return minimalQuantity
**/
@ApiModelProperty(value = "A minimum of the defined quantity must be selected for this component.")
public BigDecimal getMinimalQuantity() {
return minimalQuantity;
}
/**
* The localized name of the component that is displayed to the customer.
* @return name
**/
@ApiModelProperty(value = "The localized name of the component that is displayed to the customer.")
public Map getName() {
return name;
}
/**
* The quantity step determines the interval in which the quantity can be increased.
* @return quantityStep
**/
@ApiModelProperty(value = "The quantity step determines the interval in which the quantity can be increased.")
public BigDecimal getQuantityStep() {
return quantityStep;
}
/**
* The reference is used to link components across different product versions.
* @return reference
**/
@ApiModelProperty(value = "The reference is used to link components across different product versions.")
public SubscriptionProductComponentReference getReference() {
return reference;
}
/**
* When listing components, they can be sorted by this number.
* @return sortOrder
**/
@ApiModelProperty(value = "When listing components, they can be sorted by this number.")
public Integer getSortOrder() {
return sortOrder;
}
/**
* The tax class to be applied to fees.
* @return taxClass
**/
@ApiModelProperty(value = "The tax class to be applied to fees.")
public TaxClass getTaxClass() {
return taxClass;
}
/**
* The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
@ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SubscriptionProductComponent subscriptionProductComponent = (SubscriptionProductComponent) o;
return Objects.equals(this.componentChangeWeight, subscriptionProductComponent.componentChangeWeight) &&
Objects.equals(this.componentGroup, subscriptionProductComponent.componentGroup) &&
Objects.equals(this.defaultComponent, subscriptionProductComponent.defaultComponent) &&
Objects.equals(this.description, subscriptionProductComponent.description) &&
Objects.equals(this.id, subscriptionProductComponent.id) &&
Objects.equals(this.linkedSpaceId, subscriptionProductComponent.linkedSpaceId) &&
Objects.equals(this.maximalQuantity, subscriptionProductComponent.maximalQuantity) &&
Objects.equals(this.minimalQuantity, subscriptionProductComponent.minimalQuantity) &&
Objects.equals(this.name, subscriptionProductComponent.name) &&
Objects.equals(this.quantityStep, subscriptionProductComponent.quantityStep) &&
Objects.equals(this.reference, subscriptionProductComponent.reference) &&
Objects.equals(this.sortOrder, subscriptionProductComponent.sortOrder) &&
Objects.equals(this.taxClass, subscriptionProductComponent.taxClass) &&
Objects.equals(this.version, subscriptionProductComponent.version);
}
@Override
public int hashCode() {
return Objects.hash(componentChangeWeight, componentGroup, defaultComponent, description, id, linkedSpaceId, maximalQuantity, minimalQuantity, name, quantityStep, reference, sortOrder, taxClass, version);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SubscriptionProductComponent {\n");
sb.append(" componentChangeWeight: ").append(toIndentedString(componentChangeWeight)).append("\n");
sb.append(" componentGroup: ").append(toIndentedString(componentGroup)).append("\n");
sb.append(" defaultComponent: ").append(toIndentedString(defaultComponent)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n");
sb.append(" maximalQuantity: ").append(toIndentedString(maximalQuantity)).append("\n");
sb.append(" minimalQuantity: ").append(toIndentedString(minimalQuantity)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" quantityStep: ").append(toIndentedString(quantityStep)).append("\n");
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
sb.append(" sortOrder: ").append(toIndentedString(sortOrder)).append("\n");
sb.append(" taxClass: ").append(toIndentedString(taxClass)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy