|
| 1 | +/* |
| 2 | + * Gr4vy API |
| 3 | + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. |
| 4 | + * |
| 5 | + * The version of the OpenAPI document: 1.1.0-beta |
| 6 | + * Contact: code@gr4vy.com |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 9 | + * https://openapi-generator.tech |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | + |
| 14 | +package com.gr4vy.api.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 | +import java.util.HashMap; |
| 27 | +import java.util.Map; |
| 28 | + |
| 29 | +/** |
| 30 | + * A list of additional identifiers that we may keep track of to manage this transaction. This may include the authorization ID, capture ID, and processor ID, as well as an undefined list of additional identifiers. |
| 31 | + */ |
| 32 | +@ApiModel(description = "A list of additional identifiers that we may keep track of to manage this transaction. This may include the authorization ID, capture ID, and processor ID, as well as an undefined list of additional identifiers.") |
| 33 | +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") |
| 34 | +public class AdditionalIdentifiers extends HashMap<String, String> { |
| 35 | + public static final String SERIALIZED_NAME_PAYMENT_SERVICE_AUTHORIZATION_ID = "payment_service_authorization_id"; |
| 36 | + @SerializedName(SERIALIZED_NAME_PAYMENT_SERVICE_AUTHORIZATION_ID) |
| 37 | + private String paymentServiceAuthorizationId; |
| 38 | + |
| 39 | + public static final String SERIALIZED_NAME_PAYMENT_SERVICE_CAPTURE_ID = "payment_service_capture_id"; |
| 40 | + @SerializedName(SERIALIZED_NAME_PAYMENT_SERVICE_CAPTURE_ID) |
| 41 | + private String paymentServiceCaptureId; |
| 42 | + |
| 43 | + public static final String SERIALIZED_NAME_PAYMENT_SERVICE_PROCESSOR_ID = "payment_service_processor_id"; |
| 44 | + @SerializedName(SERIALIZED_NAME_PAYMENT_SERVICE_PROCESSOR_ID) |
| 45 | + private String paymentServiceProcessorId; |
| 46 | + |
| 47 | + |
| 48 | + public AdditionalIdentifiers paymentServiceAuthorizationId(String paymentServiceAuthorizationId) { |
| 49 | + |
| 50 | + this.paymentServiceAuthorizationId = paymentServiceAuthorizationId; |
| 51 | + return this; |
| 52 | + } |
| 53 | + |
| 54 | + /** |
| 55 | + * The optional ID for the authorization of this transaction. Availability of this ID will vary per connector used. |
| 56 | + * @return paymentServiceAuthorizationId |
| 57 | + **/ |
| 58 | + @javax.annotation.Nullable |
| 59 | + @ApiModelProperty(example = "authorization-1234", value = "The optional ID for the authorization of this transaction. Availability of this ID will vary per connector used.") |
| 60 | + |
| 61 | + public String getPaymentServiceAuthorizationId() { |
| 62 | + return paymentServiceAuthorizationId; |
| 63 | + } |
| 64 | + |
| 65 | + |
| 66 | + public void setPaymentServiceAuthorizationId(String paymentServiceAuthorizationId) { |
| 67 | + this.paymentServiceAuthorizationId = paymentServiceAuthorizationId; |
| 68 | + } |
| 69 | + |
| 70 | + |
| 71 | + public AdditionalIdentifiers paymentServiceCaptureId(String paymentServiceCaptureId) { |
| 72 | + |
| 73 | + this.paymentServiceCaptureId = paymentServiceCaptureId; |
| 74 | + return this; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * The optional ID for the capture of this transaction. Availability of this ID will vary per connector used. |
| 79 | + * @return paymentServiceCaptureId |
| 80 | + **/ |
| 81 | + @javax.annotation.Nullable |
| 82 | + @ApiModelProperty(example = "capture-1234", value = "The optional ID for the capture of this transaction. Availability of this ID will vary per connector used.") |
| 83 | + |
| 84 | + public String getPaymentServiceCaptureId() { |
| 85 | + return paymentServiceCaptureId; |
| 86 | + } |
| 87 | + |
| 88 | + |
| 89 | + public void setPaymentServiceCaptureId(String paymentServiceCaptureId) { |
| 90 | + this.paymentServiceCaptureId = paymentServiceCaptureId; |
| 91 | + } |
| 92 | + |
| 93 | + |
| 94 | + public AdditionalIdentifiers paymentServiceProcessorId(String paymentServiceProcessorId) { |
| 95 | + |
| 96 | + this.paymentServiceProcessorId = paymentServiceProcessorId; |
| 97 | + return this; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * The optional ID provided by the processor for this transaction. Availability of this ID will vary per connector used. |
| 102 | + * @return paymentServiceProcessorId |
| 103 | + **/ |
| 104 | + @javax.annotation.Nullable |
| 105 | + @ApiModelProperty(example = "processor-1234", value = "The optional ID provided by the processor for this transaction. Availability of this ID will vary per connector used.") |
| 106 | + |
| 107 | + public String getPaymentServiceProcessorId() { |
| 108 | + return paymentServiceProcessorId; |
| 109 | + } |
| 110 | + |
| 111 | + |
| 112 | + public void setPaymentServiceProcessorId(String paymentServiceProcessorId) { |
| 113 | + this.paymentServiceProcessorId = paymentServiceProcessorId; |
| 114 | + } |
| 115 | + |
| 116 | + |
| 117 | + @Override |
| 118 | + public boolean equals(Object o) { |
| 119 | + if (this == o) { |
| 120 | + return true; |
| 121 | + } |
| 122 | + if (o == null || getClass() != o.getClass()) { |
| 123 | + return false; |
| 124 | + } |
| 125 | + AdditionalIdentifiers additionalIdentifiers = (AdditionalIdentifiers) o; |
| 126 | + return Objects.equals(this.paymentServiceAuthorizationId, additionalIdentifiers.paymentServiceAuthorizationId) && |
| 127 | + Objects.equals(this.paymentServiceCaptureId, additionalIdentifiers.paymentServiceCaptureId) && |
| 128 | + Objects.equals(this.paymentServiceProcessorId, additionalIdentifiers.paymentServiceProcessorId) && |
| 129 | + super.equals(o); |
| 130 | + } |
| 131 | + |
| 132 | + @Override |
| 133 | + public int hashCode() { |
| 134 | + return Objects.hash(paymentServiceAuthorizationId, paymentServiceCaptureId, paymentServiceProcessorId, super.hashCode()); |
| 135 | + } |
| 136 | + |
| 137 | + @Override |
| 138 | + public String toString() { |
| 139 | + StringBuilder sb = new StringBuilder(); |
| 140 | + sb.append("class AdditionalIdentifiers {\n"); |
| 141 | + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); |
| 142 | + sb.append(" paymentServiceAuthorizationId: ").append(toIndentedString(paymentServiceAuthorizationId)).append("\n"); |
| 143 | + sb.append(" paymentServiceCaptureId: ").append(toIndentedString(paymentServiceCaptureId)).append("\n"); |
| 144 | + sb.append(" paymentServiceProcessorId: ").append(toIndentedString(paymentServiceProcessorId)).append("\n"); |
| 145 | + sb.append("}"); |
| 146 | + return sb.toString(); |
| 147 | + } |
| 148 | + |
| 149 | + /** |
| 150 | + * Convert the given object to string with each line indented by 4 spaces |
| 151 | + * (except the first line). |
| 152 | + */ |
| 153 | + private String toIndentedString(Object o) { |
| 154 | + if (o == null) { |
| 155 | + return "null"; |
| 156 | + } |
| 157 | + return o.toString().replace("\n", "\n "); |
| 158 | + } |
| 159 | + |
| 160 | +} |
| 161 | + |
0 commit comments