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

org.openapitools.client.model.SubscriptionObject Maven / Gradle / Ivy

The newest version!
/*
 * Golden Service API
 * An API that conforms to the standards and best practices that should be adhered to in all Mastercard owned APIs. Can be used to create subscriptions to reports that are generated twice daily (6am & 6pm) that deliver e-commerce spending across multiple sectors and locations. 
--- * **All requests must be signed using oauth 1.0a. Please refer to: https://developer.mastercard.com/platform/documentation/using-oauth-1a-to-access-mastercard-apis/_** --- * **The user must provide their card details when creating a subscription. These details must be encrypted before entering transit. Please refer to [Mastercard security](https://stage.developer.mastercard.com/platform/documentation/securing-sensitive-data-using-payload-encryption/)** --- * * The version of the OpenAPI document: 1.1.0 * Contact: [email protected] * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package org.openapitools.client.model; import java.util.Objects; import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import org.openapitools.client.model.SubscriptionPaymentCard; /** * Subscription body object that represents a subscription */ @ApiModel(description = "Subscription body object that represents a subscription ") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-05T08:39:17.265Z[Etc/UTC]") public class SubscriptionObject { public static final String SERIALIZED_NAME_EMAIL_ADDRESS = "emailAddress"; @SerializedName(SERIALIZED_NAME_EMAIL_ADDRESS) private String emailAddress; public static final String SERIALIZED_NAME_LOCATION = "location"; @SerializedName(SERIALIZED_NAME_LOCATION) private String location; public static final String SERIALIZED_NAME_SECTOR = "sector"; @SerializedName(SERIALIZED_NAME_SECTOR) private Integer sector; public static final String SERIALIZED_NAME_FREQUENCY = "frequency"; @SerializedName(SERIALIZED_NAME_FREQUENCY) private String frequency; public static final String SERIALIZED_NAME_SUBSCRIPTION_IMAGE = "subscriptionImage"; @SerializedName(SERIALIZED_NAME_SUBSCRIPTION_IMAGE) private String subscriptionImage; public static final String SERIALIZED_NAME_SUBSCRIPTION_PAYMENT_CARD = "subscriptionPaymentCard"; @SerializedName(SERIALIZED_NAME_SUBSCRIPTION_PAYMENT_CARD) private SubscriptionPaymentCard subscriptionPaymentCard = null; public SubscriptionObject emailAddress(String emailAddress) { this.emailAddress = emailAddress; return this; } /** * The email address to which the reports will be sent to * @return emailAddress **/ @ApiModelProperty(example = "[email protected]", value = "The email address to which the reports will be sent to") public String getEmailAddress() { return emailAddress; } public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } public SubscriptionObject location(String location) { this.location = location; return this; } /** * The location you wish to create a subscription for * @return location **/ @ApiModelProperty(example = "New York", value = "The location you wish to create a subscription for") public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public SubscriptionObject sector(Integer sector) { this.sector = sector; return this; } /** * The sector for which you wish to receive reports. Sector ids can be retrieved from sectors call * @return sector **/ @ApiModelProperty(example = "0", value = "The sector for which you wish to receive reports. Sector ids can be retrieved from sectors call") public Integer getSector() { return sector; } public void setSector(Integer sector) { this.sector = sector; } public SubscriptionObject frequency(String frequency) { this.frequency = frequency; return this; } /** * b - Bi-Daily, d - Daily, w - Weekly * @return frequency **/ @ApiModelProperty(example = "b", value = "b - Bi-Daily, d - Daily, w - Weekly") public String getFrequency() { return frequency; } public void setFrequency(String frequency) { this.frequency = frequency; } public SubscriptionObject subscriptionImage(String subscriptionImage) { this.subscriptionImage = subscriptionImage; return this; } /** * An image that can be included as part of the subscription. MUST be sent in base64 format. * @return subscriptionImage **/ @ApiModelProperty(value = "An image that can be included as part of the subscription. MUST be sent in base64 format.") public String getSubscriptionImage() { return subscriptionImage; } public void setSubscriptionImage(String subscriptionImage) { this.subscriptionImage = subscriptionImage; } public SubscriptionObject subscriptionPaymentCard(SubscriptionPaymentCard subscriptionPaymentCard) { this.subscriptionPaymentCard = subscriptionPaymentCard; return this; } /** * Get subscriptionPaymentCard * @return subscriptionPaymentCard **/ @ApiModelProperty(value = "") public SubscriptionPaymentCard getSubscriptionPaymentCard() { return subscriptionPaymentCard; } public void setSubscriptionPaymentCard(SubscriptionPaymentCard subscriptionPaymentCard) { this.subscriptionPaymentCard = subscriptionPaymentCard; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SubscriptionObject subscriptionObject = (SubscriptionObject) o; return Objects.equals(this.emailAddress, subscriptionObject.emailAddress) && Objects.equals(this.location, subscriptionObject.location) && Objects.equals(this.sector, subscriptionObject.sector) && Objects.equals(this.frequency, subscriptionObject.frequency) && Objects.equals(this.subscriptionImage, subscriptionObject.subscriptionImage) && Objects.equals(this.subscriptionPaymentCard, subscriptionObject.subscriptionPaymentCard); } @Override public int hashCode() { return Objects.hash(emailAddress, location, sector, frequency, subscriptionImage, subscriptionPaymentCard); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SubscriptionObject {\n"); sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append(" sector: ").append(toIndentedString(sector)).append("\n"); sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n"); sb.append(" subscriptionImage: ").append(toIndentedString(subscriptionImage)).append("\n"); sb.append(" subscriptionPaymentCard: ").append(toIndentedString(subscriptionPaymentCard)).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 - 2024 Weber Informatics LLC | Privacy Policy