com.wallee.sdk.model.AbstractShopifySubscriptionProductUpdate 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.
/**
* 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.ShopifySubscriptionBillingIntervalUnit;
import com.wallee.sdk.model.ShopifySubscriptionProductPricingOption;
import com.wallee.sdk.model.ShopifySubscriptionWeekday;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.*;
import java.time.OffsetDateTime;
/**
* AbstractShopifySubscriptionProductUpdate
*/
public class AbstractShopifySubscriptionProductUpdate {
@JsonProperty("absolutePriceAdjustment")
protected BigDecimal absolutePriceAdjustment = null;
@JsonProperty("billingDayOfMonth")
protected Integer billingDayOfMonth = null;
@JsonProperty("billingIntervalAmount")
protected Integer billingIntervalAmount = null;
@JsonProperty("billingIntervalUnit")
protected ShopifySubscriptionBillingIntervalUnit billingIntervalUnit = null;
@JsonProperty("billingWeekday")
protected ShopifySubscriptionWeekday billingWeekday = null;
@JsonProperty("fixedPrice")
protected BigDecimal fixedPrice = null;
@JsonProperty("maximalBillingCycles")
protected Integer maximalBillingCycles = null;
@JsonProperty("maximalSuspendableCycles")
protected Integer maximalSuspendableCycles = null;
@JsonProperty("minimalBillingCycles")
protected Integer minimalBillingCycles = null;
@JsonProperty("pricingOption")
protected ShopifySubscriptionProductPricingOption pricingOption = null;
@JsonProperty("relativePriceAdjustment")
protected BigDecimal relativePriceAdjustment = null;
@JsonProperty("storeOrderConfirmationEmailEnabled")
protected Boolean storeOrderConfirmationEmailEnabled = null;
@JsonProperty("subscriberSuspensionAllowed")
protected Boolean subscriberSuspensionAllowed = null;
@JsonProperty("terminationBillingCycles")
protected Integer terminationBillingCycles = null;
public AbstractShopifySubscriptionProductUpdate absolutePriceAdjustment(BigDecimal absolutePriceAdjustment) {
this.absolutePriceAdjustment = absolutePriceAdjustment;
return this;
}
/**
*
* @return absolutePriceAdjustment
**/
@ApiModelProperty(value = "")
public BigDecimal getAbsolutePriceAdjustment() {
return absolutePriceAdjustment;
}
public void setAbsolutePriceAdjustment(BigDecimal absolutePriceAdjustment) {
this.absolutePriceAdjustment = absolutePriceAdjustment;
}
public AbstractShopifySubscriptionProductUpdate billingDayOfMonth(Integer billingDayOfMonth) {
this.billingDayOfMonth = billingDayOfMonth;
return this;
}
/**
* Define the day of the month on which the recurring orders should be created.
* @return billingDayOfMonth
**/
@ApiModelProperty(value = "Define the day of the month on which the recurring orders should be created.")
public Integer getBillingDayOfMonth() {
return billingDayOfMonth;
}
public void setBillingDayOfMonth(Integer billingDayOfMonth) {
this.billingDayOfMonth = billingDayOfMonth;
}
public AbstractShopifySubscriptionProductUpdate billingIntervalAmount(Integer billingIntervalAmount) {
this.billingIntervalAmount = billingIntervalAmount;
return this;
}
/**
*
* @return billingIntervalAmount
**/
@ApiModelProperty(value = "")
public Integer getBillingIntervalAmount() {
return billingIntervalAmount;
}
public void setBillingIntervalAmount(Integer billingIntervalAmount) {
this.billingIntervalAmount = billingIntervalAmount;
}
public AbstractShopifySubscriptionProductUpdate billingIntervalUnit(ShopifySubscriptionBillingIntervalUnit billingIntervalUnit) {
this.billingIntervalUnit = billingIntervalUnit;
return this;
}
/**
* Define how frequently recurring orders should be created.
* @return billingIntervalUnit
**/
@ApiModelProperty(value = "Define how frequently recurring orders should be created.")
public ShopifySubscriptionBillingIntervalUnit getBillingIntervalUnit() {
return billingIntervalUnit;
}
public void setBillingIntervalUnit(ShopifySubscriptionBillingIntervalUnit billingIntervalUnit) {
this.billingIntervalUnit = billingIntervalUnit;
}
public AbstractShopifySubscriptionProductUpdate billingWeekday(ShopifySubscriptionWeekday billingWeekday) {
this.billingWeekday = billingWeekday;
return this;
}
/**
* Define the weekday on which the recurring orders should be created.
* @return billingWeekday
**/
@ApiModelProperty(value = "Define the weekday on which the recurring orders should be created.")
public ShopifySubscriptionWeekday getBillingWeekday() {
return billingWeekday;
}
public void setBillingWeekday(ShopifySubscriptionWeekday billingWeekday) {
this.billingWeekday = billingWeekday;
}
public AbstractShopifySubscriptionProductUpdate fixedPrice(BigDecimal fixedPrice) {
this.fixedPrice = fixedPrice;
return this;
}
/**
*
* @return fixedPrice
**/
@ApiModelProperty(value = "")
public BigDecimal getFixedPrice() {
return fixedPrice;
}
public void setFixedPrice(BigDecimal fixedPrice) {
this.fixedPrice = fixedPrice;
}
public AbstractShopifySubscriptionProductUpdate maximalBillingCycles(Integer maximalBillingCycles) {
this.maximalBillingCycles = maximalBillingCycles;
return this;
}
/**
* Define the maximum number of orders the subscription will run for.
* @return maximalBillingCycles
**/
@ApiModelProperty(value = "Define the maximum number of orders the subscription will run for.")
public Integer getMaximalBillingCycles() {
return maximalBillingCycles;
}
public void setMaximalBillingCycles(Integer maximalBillingCycles) {
this.maximalBillingCycles = maximalBillingCycles;
}
public AbstractShopifySubscriptionProductUpdate maximalSuspendableCycles(Integer maximalSuspendableCycles) {
this.maximalSuspendableCycles = maximalSuspendableCycles;
return this;
}
/**
* Define the maximum number of orders the subscription can be suspended for at a time.
* @return maximalSuspendableCycles
**/
@ApiModelProperty(value = "Define the maximum number of orders the subscription can be suspended for at a time.")
public Integer getMaximalSuspendableCycles() {
return maximalSuspendableCycles;
}
public void setMaximalSuspendableCycles(Integer maximalSuspendableCycles) {
this.maximalSuspendableCycles = maximalSuspendableCycles;
}
public AbstractShopifySubscriptionProductUpdate minimalBillingCycles(Integer minimalBillingCycles) {
this.minimalBillingCycles = minimalBillingCycles;
return this;
}
/**
* Define the minimal number of orders the subscription will run for.
* @return minimalBillingCycles
**/
@ApiModelProperty(value = "Define the minimal number of orders the subscription will run for.")
public Integer getMinimalBillingCycles() {
return minimalBillingCycles;
}
public void setMinimalBillingCycles(Integer minimalBillingCycles) {
this.minimalBillingCycles = minimalBillingCycles;
}
public AbstractShopifySubscriptionProductUpdate pricingOption(ShopifySubscriptionProductPricingOption pricingOption) {
this.pricingOption = pricingOption;
return this;
}
/**
*
* @return pricingOption
**/
@ApiModelProperty(value = "")
public ShopifySubscriptionProductPricingOption getPricingOption() {
return pricingOption;
}
public void setPricingOption(ShopifySubscriptionProductPricingOption pricingOption) {
this.pricingOption = pricingOption;
}
public AbstractShopifySubscriptionProductUpdate relativePriceAdjustment(BigDecimal relativePriceAdjustment) {
this.relativePriceAdjustment = relativePriceAdjustment;
return this;
}
/**
*
* @return relativePriceAdjustment
**/
@ApiModelProperty(value = "")
public BigDecimal getRelativePriceAdjustment() {
return relativePriceAdjustment;
}
public void setRelativePriceAdjustment(BigDecimal relativePriceAdjustment) {
this.relativePriceAdjustment = relativePriceAdjustment;
}
public AbstractShopifySubscriptionProductUpdate storeOrderConfirmationEmailEnabled(Boolean storeOrderConfirmationEmailEnabled) {
this.storeOrderConfirmationEmailEnabled = storeOrderConfirmationEmailEnabled;
return this;
}
/**
* Define whether the order confirmation email of the Shopify shop is sent to the customer for recurring orders.
* @return storeOrderConfirmationEmailEnabled
**/
@ApiModelProperty(value = "Define whether the order confirmation email of the Shopify shop is sent to the customer for recurring orders.")
public Boolean isStoreOrderConfirmationEmailEnabled() {
return storeOrderConfirmationEmailEnabled;
}
public void setStoreOrderConfirmationEmailEnabled(Boolean storeOrderConfirmationEmailEnabled) {
this.storeOrderConfirmationEmailEnabled = storeOrderConfirmationEmailEnabled;
}
public AbstractShopifySubscriptionProductUpdate subscriberSuspensionAllowed(Boolean subscriberSuspensionAllowed) {
this.subscriberSuspensionAllowed = subscriberSuspensionAllowed;
return this;
}
/**
* Define whether the customer is allowed to suspend subscriptions.
* @return subscriberSuspensionAllowed
**/
@ApiModelProperty(value = "Define whether the customer is allowed to suspend subscriptions.")
public Boolean isSubscriberSuspensionAllowed() {
return subscriberSuspensionAllowed;
}
public void setSubscriberSuspensionAllowed(Boolean subscriberSuspensionAllowed) {
this.subscriberSuspensionAllowed = subscriberSuspensionAllowed;
}
public AbstractShopifySubscriptionProductUpdate terminationBillingCycles(Integer terminationBillingCycles) {
this.terminationBillingCycles = terminationBillingCycles;
return this;
}
/**
* Define the number of orders the subscription will keep running for after its termination has been requested.
* @return terminationBillingCycles
**/
@ApiModelProperty(value = "Define the number of orders the subscription will keep running for after its termination has been requested.")
public Integer getTerminationBillingCycles() {
return terminationBillingCycles;
}
public void setTerminationBillingCycles(Integer terminationBillingCycles) {
this.terminationBillingCycles = terminationBillingCycles;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AbstractShopifySubscriptionProductUpdate abstractShopifySubscriptionProductUpdate = (AbstractShopifySubscriptionProductUpdate) o;
return Objects.equals(this.absolutePriceAdjustment, abstractShopifySubscriptionProductUpdate.absolutePriceAdjustment) &&
Objects.equals(this.billingDayOfMonth, abstractShopifySubscriptionProductUpdate.billingDayOfMonth) &&
Objects.equals(this.billingIntervalAmount, abstractShopifySubscriptionProductUpdate.billingIntervalAmount) &&
Objects.equals(this.billingIntervalUnit, abstractShopifySubscriptionProductUpdate.billingIntervalUnit) &&
Objects.equals(this.billingWeekday, abstractShopifySubscriptionProductUpdate.billingWeekday) &&
Objects.equals(this.fixedPrice, abstractShopifySubscriptionProductUpdate.fixedPrice) &&
Objects.equals(this.maximalBillingCycles, abstractShopifySubscriptionProductUpdate.maximalBillingCycles) &&
Objects.equals(this.maximalSuspendableCycles, abstractShopifySubscriptionProductUpdate.maximalSuspendableCycles) &&
Objects.equals(this.minimalBillingCycles, abstractShopifySubscriptionProductUpdate.minimalBillingCycles) &&
Objects.equals(this.pricingOption, abstractShopifySubscriptionProductUpdate.pricingOption) &&
Objects.equals(this.relativePriceAdjustment, abstractShopifySubscriptionProductUpdate.relativePriceAdjustment) &&
Objects.equals(this.storeOrderConfirmationEmailEnabled, abstractShopifySubscriptionProductUpdate.storeOrderConfirmationEmailEnabled) &&
Objects.equals(this.subscriberSuspensionAllowed, abstractShopifySubscriptionProductUpdate.subscriberSuspensionAllowed) &&
Objects.equals(this.terminationBillingCycles, abstractShopifySubscriptionProductUpdate.terminationBillingCycles);
}
@Override
public int hashCode() {
return Objects.hash(absolutePriceAdjustment, billingDayOfMonth, billingIntervalAmount, billingIntervalUnit, billingWeekday, fixedPrice, maximalBillingCycles, maximalSuspendableCycles, minimalBillingCycles, pricingOption, relativePriceAdjustment, storeOrderConfirmationEmailEnabled, subscriberSuspensionAllowed, terminationBillingCycles);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AbstractShopifySubscriptionProductUpdate {\n");
sb.append(" absolutePriceAdjustment: ").append(toIndentedString(absolutePriceAdjustment)).append("\n");
sb.append(" billingDayOfMonth: ").append(toIndentedString(billingDayOfMonth)).append("\n");
sb.append(" billingIntervalAmount: ").append(toIndentedString(billingIntervalAmount)).append("\n");
sb.append(" billingIntervalUnit: ").append(toIndentedString(billingIntervalUnit)).append("\n");
sb.append(" billingWeekday: ").append(toIndentedString(billingWeekday)).append("\n");
sb.append(" fixedPrice: ").append(toIndentedString(fixedPrice)).append("\n");
sb.append(" maximalBillingCycles: ").append(toIndentedString(maximalBillingCycles)).append("\n");
sb.append(" maximalSuspendableCycles: ").append(toIndentedString(maximalSuspendableCycles)).append("\n");
sb.append(" minimalBillingCycles: ").append(toIndentedString(minimalBillingCycles)).append("\n");
sb.append(" pricingOption: ").append(toIndentedString(pricingOption)).append("\n");
sb.append(" relativePriceAdjustment: ").append(toIndentedString(relativePriceAdjustment)).append("\n");
sb.append(" storeOrderConfirmationEmailEnabled: ").append(toIndentedString(storeOrderConfirmationEmailEnabled)).append("\n");
sb.append(" subscriberSuspensionAllowed: ").append(toIndentedString(subscriberSuspensionAllowed)).append("\n");
sb.append(" terminationBillingCycles: ").append(toIndentedString(terminationBillingCycles)).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