|
| 1 | +/* |
| 2 | + * CyberSource Merged Spec |
| 3 | + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html |
| 4 | + * |
| 5 | + * OpenAPI spec version: 0.0.1 |
| 6 | + * |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by the swagger code generator program. |
| 9 | + * https://github.com/swagger-api/swagger-codegen.git |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | + |
| 14 | +package Model; |
| 15 | + |
| 16 | +import java.util.Objects; |
| 17 | +import java.util.Arrays; |
| 18 | +import com.google.gson.TypeAdapter; |
| 19 | +import com.google.gson.annotations.JsonAdapter; |
| 20 | +import com.google.gson.annotations.SerializedName; |
| 21 | +import com.google.gson.stream.JsonReader; |
| 22 | +import com.google.gson.stream.JsonWriter; |
| 23 | +import io.swagger.annotations.ApiModel; |
| 24 | +import io.swagger.annotations.ApiModelProperty; |
| 25 | +import java.io.IOException; |
| 26 | + |
| 27 | +/** |
| 28 | + * Microformv2sessionsTransientTokenResponseOptions |
| 29 | + */ |
| 30 | + |
| 31 | +public class Microformv2sessionsTransientTokenResponseOptions { |
| 32 | + @SerializedName("includeCardPrefix") |
| 33 | + private Boolean includeCardPrefix = null; |
| 34 | + |
| 35 | + public Microformv2sessionsTransientTokenResponseOptions includeCardPrefix(Boolean includeCardPrefix) { |
| 36 | + this.includeCardPrefix = includeCardPrefix; |
| 37 | + return this; |
| 38 | + } |
| 39 | + |
| 40 | + /** |
| 41 | + * Use the transientTokenResponseOptions.includeCardPrefix field to choose your preferred card number prefix length: 6-digit, 8-digit, or no card number prefix. Possible values: - True - False<br><br> To select the type of card number prefix: - No field included: A 6-digit prefix is returned (default) - True: An 8-digit prefix is returned - False: No prefix is returned<br><br> The following conditions apply: - 8-digit card number prefixes only apply to Discover, JCB, Mastercard, UnionPay, and Visa brands with 16-digit card numbers or more. - Any card with less than 16-digit numbers will return a 6-digit prefix even when the transientTokenResponseOptions.includeCardPrefix field is set to true. - Any card brand other than Discover, JCB, Mastercard, UnionPay, or Visa will return a 6-digit prefix even when the transientTokenResponseOptions.includeCardPrefix field is set to true. - If any card brand is co-branded with Discover, JCB, Mastercard, UnionPay, or Visa, an 8-digit prefix will be returned if the transientTokenResponseOptions.includeCardPrefix field is set to true.<br><br> **Important:** If your application does NOT require a card number prefix for routing or identification purposes, set the transientTokenResponseOptions.includeCardPrefix field to False. This will minimize your personal data exposure. |
| 42 | + * @return includeCardPrefix |
| 43 | + **/ |
| 44 | + @ApiModelProperty(value = "Use the transientTokenResponseOptions.includeCardPrefix field to choose your preferred card number prefix length: 6-digit, 8-digit, or no card number prefix. Possible values: - True - False<br><br> To select the type of card number prefix: - No field included: A 6-digit prefix is returned (default) - True: An 8-digit prefix is returned - False: No prefix is returned<br><br> The following conditions apply: - 8-digit card number prefixes only apply to Discover, JCB, Mastercard, UnionPay, and Visa brands with 16-digit card numbers or more. - Any card with less than 16-digit numbers will return a 6-digit prefix even when the transientTokenResponseOptions.includeCardPrefix field is set to true. - Any card brand other than Discover, JCB, Mastercard, UnionPay, or Visa will return a 6-digit prefix even when the transientTokenResponseOptions.includeCardPrefix field is set to true. - If any card brand is co-branded with Discover, JCB, Mastercard, UnionPay, or Visa, an 8-digit prefix will be returned if the transientTokenResponseOptions.includeCardPrefix field is set to true.<br><br> **Important:** If your application does NOT require a card number prefix for routing or identification purposes, set the transientTokenResponseOptions.includeCardPrefix field to False. This will minimize your personal data exposure. ") |
| 45 | + public Boolean IncludeCardPrefix() { |
| 46 | + return includeCardPrefix; |
| 47 | + } |
| 48 | + |
| 49 | + public void setIncludeCardPrefix(Boolean includeCardPrefix) { |
| 50 | + this.includeCardPrefix = includeCardPrefix; |
| 51 | + } |
| 52 | + |
| 53 | + |
| 54 | + @Override |
| 55 | + public boolean equals(java.lang.Object o) { |
| 56 | + if (this == o) { |
| 57 | + return true; |
| 58 | + } |
| 59 | + if (o == null || getClass() != o.getClass()) { |
| 60 | + return false; |
| 61 | + } |
| 62 | + Microformv2sessionsTransientTokenResponseOptions microformv2sessionsTransientTokenResponseOptions = (Microformv2sessionsTransientTokenResponseOptions) o; |
| 63 | + return Objects.equals(this.includeCardPrefix, microformv2sessionsTransientTokenResponseOptions.includeCardPrefix); |
| 64 | + } |
| 65 | + |
| 66 | + @Override |
| 67 | + public int hashCode() { |
| 68 | + return Objects.hash(includeCardPrefix); |
| 69 | + } |
| 70 | + |
| 71 | + |
| 72 | + @Override |
| 73 | + public String toString() { |
| 74 | + StringBuilder sb = new StringBuilder(); |
| 75 | + sb.append("class Microformv2sessionsTransientTokenResponseOptions {\n"); |
| 76 | + |
| 77 | + if (includeCardPrefix != null) sb.append(" includeCardPrefix: ").append(toIndentedString(includeCardPrefix)).append("\n"); |
| 78 | + sb.append("}"); |
| 79 | + return sb.toString(); |
| 80 | + } |
| 81 | + |
| 82 | + /** |
| 83 | + * Convert the given object to string with each line indented by 4 spaces |
| 84 | + * (except the first line). |
| 85 | + */ |
| 86 | + private String toIndentedString(java.lang.Object o) { |
| 87 | + if (o == null) { |
| 88 | + // return "null"; |
| 89 | + } |
| 90 | + return o.toString().replace("\n", "\n "); |
| 91 | + } |
| 92 | + |
| 93 | +} |
| 94 | + |
0 commit comments