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

org.openapitools.client.model.TopLocationsReport 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.util.ArrayList; import java.util.List; import org.openapitools.client.model.SpendingReport; /** * A report generated containing the top grossing locations, makes use of pagination */ @ApiModel(description = "A report generated containing the top grossing locations, makes use of pagination") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-05T08:39:17.265Z[Etc/UTC]") public class TopLocationsReport { public static final String SERIALIZED_NAME_LOCATIONS = "locations"; @SerializedName(SERIALIZED_NAME_LOCATIONS) private List locations = new ArrayList(); public TopLocationsReport locations(List locations) { this.locations = locations; return this; } public TopLocationsReport addLocationsItem(SpendingReport locationsItem) { if (this.locations == null) { this.locations = new ArrayList(); } this.locations.add(locationsItem); return this; } /** * Array of spending reports for the top locations * @return locations **/ @ApiModelProperty(value = "Array of spending reports for the top locations") public List getLocations() { return locations; } public void setLocations(List locations) { this.locations = locations; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } TopLocationsReport topLocationsReport = (TopLocationsReport) o; return Objects.equals(this.locations, topLocationsReport.locations); } @Override public int hashCode() { return Objects.hash(locations); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TopLocationsReport {\n"); sb.append(" locations: ").append(toIndentedString(locations)).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