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

org.openapitools.client.model.SectorSpending 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 java.math.BigDecimal; /** * Spending report for a single sector */ @ApiModel(description = "Spending report for a single sector") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-05T08:39:17.265Z[Etc/UTC]") public class SectorSpending { public static final String SERIALIZED_NAME_SECTOR_ID = "sectorId"; @SerializedName(SERIALIZED_NAME_SECTOR_ID) private Integer sectorId; public static final String SERIALIZED_NAME_SECTOR_NAME = "sectorName"; @SerializedName(SERIALIZED_NAME_SECTOR_NAME) private String sectorName; public static final String SERIALIZED_NAME_AMOUNT_SPENT = "amountSpent"; @SerializedName(SERIALIZED_NAME_AMOUNT_SPENT) private BigDecimal amountSpent; public static final String SERIALIZED_NAME_AVERAGE_PER_TRANSACTION = "averagePerTransaction"; @SerializedName(SERIALIZED_NAME_AVERAGE_PER_TRANSACTION) private BigDecimal averagePerTransaction; public SectorSpending sectorId(Integer sectorId) { this.sectorId = sectorId; return this; } /** * Get sectorId * @return sectorId **/ @ApiModelProperty(example = "0", required = true, value = "") public Integer getSectorId() { return sectorId; } public void setSectorId(Integer sectorId) { this.sectorId = sectorId; } public SectorSpending sectorName(String sectorName) { this.sectorName = sectorName; return this; } /** * Get sectorName * @return sectorName **/ @ApiModelProperty(example = "Clothing", required = true, value = "") public String getSectorName() { return sectorName; } public void setSectorName(String sectorName) { this.sectorName = sectorName; } public SectorSpending amountSpent(BigDecimal amountSpent) { this.amountSpent = amountSpent; return this; } /** * Get amountSpent * @return amountSpent **/ @ApiModelProperty(example = "1000000.12", required = true, value = "") public BigDecimal getAmountSpent() { return amountSpent; } public void setAmountSpent(BigDecimal amountSpent) { this.amountSpent = amountSpent; } public SectorSpending averagePerTransaction(BigDecimal averagePerTransaction) { this.averagePerTransaction = averagePerTransaction; return this; } /** * Get averagePerTransaction * @return averagePerTransaction **/ @ApiModelProperty(example = "120.0", required = true, value = "") public BigDecimal getAveragePerTransaction() { return averagePerTransaction; } public void setAveragePerTransaction(BigDecimal averagePerTransaction) { this.averagePerTransaction = averagePerTransaction; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SectorSpending sectorSpending = (SectorSpending) o; return Objects.equals(this.sectorId, sectorSpending.sectorId) && Objects.equals(this.sectorName, sectorSpending.sectorName) && Objects.equals(this.amountSpent, sectorSpending.amountSpent) && Objects.equals(this.averagePerTransaction, sectorSpending.averagePerTransaction); } @Override public int hashCode() { return Objects.hash(sectorId, sectorName, amountSpent, averagePerTransaction); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SectorSpending {\n"); sb.append(" sectorId: ").append(toIndentedString(sectorId)).append("\n"); sb.append(" sectorName: ").append(toIndentedString(sectorName)).append("\n"); sb.append(" amountSpent: ").append(toIndentedString(amountSpent)).append("\n"); sb.append(" averagePerTransaction: ").append(toIndentedString(averagePerTransaction)).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