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

org.openapitools.client.model.Sector 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; /** * Sector object */ @ApiModel(description = "Sector object") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-05T08:39:17.265Z[Etc/UTC]") public class Sector { 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 Sector 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 Sector 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; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Sector sector = (Sector) o; return Objects.equals(this.sectorId, sector.sectorId) && Objects.equals(this.sectorName, sector.sectorName); } @Override public int hashCode() { return Objects.hash(sectorId, sectorName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Sector {\n"); sb.append(" sectorId: ").append(toIndentedString(sectorId)).append("\n"); sb.append(" sectorName: ").append(toIndentedString(sectorName)).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