diff --git a/Makefile b/Makefile index 80b08b2..e013b87 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ test: build: ./gradlew clean build -x lintDebug deploy: - ./gradlew publish + ./gradlew publish -x lintDebug android: rm -rf src/main/kotlin && \ rm -rf docs && \ diff --git a/README.md b/README.md index b175ac7..d6380a6 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,7 @@ Class | Method | HTTP request | Description *PaymentMethodsApi* | [**deleteCustomerPaymentMethods**](docs/PaymentMethodsApi.md#deleteCustomerPaymentMethods) | **DELETE** /customers/{id}/payment_sources/{payment_method_id} | Delete Payment Method *PaymentMethodsApi* | [**getCustomerPaymentMethods**](docs/PaymentMethodsApi.md#getCustomerPaymentMethods) | **GET** /customers/{id}/payment_sources | Get Payment Methods *PaymentMethodsApi* | [**updateCustomerPaymentMethods**](docs/PaymentMethodsApi.md#updateCustomerPaymentMethods) | **PUT** /customers/{id}/payment_sources/{payment_method_id} | Update Payment Method +*PayoutOrdersApi* | [**cancelPayoutOrderById**](docs/PayoutOrdersApi.md#cancelPayoutOrderById) | **PUT** /payout_orders/{id}/cancel | Cancel Payout Order *PayoutOrdersApi* | [**createPayoutOrder**](docs/PayoutOrdersApi.md#createPayoutOrder) | **POST** /payout_orders | Create payout order *PayoutOrdersApi* | [**getPayoutOrderById**](docs/PayoutOrdersApi.md#getPayoutOrderById) | **GET** /payout_orders/{id} | Get Payout Order *PayoutOrdersApi* | [**getPayoutOrders**](docs/PayoutOrdersApi.md#getPayoutOrders) | **GET** /payout_orders | Get a list of Payout Orders diff --git a/docs/PayoutOrdersApi.md b/docs/PayoutOrdersApi.md index bab3de2..33fba9b 100644 --- a/docs/PayoutOrdersApi.md +++ b/docs/PayoutOrdersApi.md @@ -4,12 +4,61 @@ All URIs are relative to *https://api.conekta.io* Method | HTTP request | Description ------------- | ------------- | ------------- +[**cancelPayoutOrderById**](PayoutOrdersApi.md#cancelPayoutOrderById) | **PUT** /payout_orders/{id}/cancel | Cancel Payout Order [**createPayoutOrder**](PayoutOrdersApi.md#createPayoutOrder) | **POST** /payout_orders | Create payout order [**getPayoutOrderById**](PayoutOrdersApi.md#getPayoutOrderById) | **GET** /payout_orders/{id} | Get Payout Order [**getPayoutOrders**](PayoutOrdersApi.md#getPayoutOrders) | **GET** /payout_orders | Get a list of Payout Orders +## cancelPayoutOrderById + +> PayoutOrderResponse cancelPayoutOrderById(id, acceptLanguage) + +Cancel Payout Order + +Cancel a payout Order resource that corresponds to a payout order ID. + +### Example + +```java +// Import classes: +//import io.conekta.PayoutOrdersApi; + +PayoutOrdersApi apiInstance = new PayoutOrdersApi(); +String id = 6307a60c41de27127515a575; // String | Identifier of the resource +String acceptLanguage = es; // String | Use for knowing which language to use +try { + PayoutOrderResponse result = apiInstance.cancelPayoutOrderById(id, acceptLanguage); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PayoutOrdersApi#cancelPayoutOrderById"); + e.printStackTrace(); +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| Identifier of the resource | [default to null] + **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] + +### Return type + +[**PayoutOrderResponse**](PayoutOrderResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.conekta-v2.1.0+json + + ## createPayoutOrder > PayoutOrderResponse createPayoutOrder(payoutOrder, acceptLanguage) diff --git a/src/main/java/io/conekta/EncryptedTypeAdapter.java b/src/main/java/io/conekta/EncryptedTypeAdapter.java index 7dd2ea6..5b0ffc1 100644 --- a/src/main/java/io/conekta/EncryptedTypeAdapter.java +++ b/src/main/java/io/conekta/EncryptedTypeAdapter.java @@ -1,55 +1,34 @@ package io.conekta; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - import javax.crypto.Cipher; -import java.io.IOException; import java.security.KeyFactory; +import java.security.NoSuchAlgorithmException; import java.security.PublicKey; -import java.security.Security; +import java.security.spec.InvalidKeySpecException; import java.security.spec.X509EncodedKeySpec; - -import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.bouncycastle.util.encoders.Base64; -public class EncryptedTypeAdapter extends TypeAdapter { +public class EncryptedTypeAdapter { private static final String PUBLIC_KEY_PEM = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjet2Jm4iPJTqDlW64tEG\nI9/dJTJAcn3OQdHrEwNXCz0/Rewqcv/Hm+V0klsUiS9h2W5CLC42q6wGhtl9Buu5\nvefuLVyxc8klEEjrSz/5AgfZ4HvzatbVX0KQhHI1j+caOjatDHM/ih13Rj7HIJFn\nAcutRB9vyFiCVluqRhlB9/64sqGtVmxJAir7WJp4TmpPvSEqeGKQIb80Tq+FYY7f\ntpMxQpsBT8B6y4Kn95ZfDH72H3yJezs/mExVB3M/OCBg+xt/c3dXp65JsbS482c4\nKhkxxHChNn1Y/nZ8kFYzakRGhh0BMqkvkqtAwcQJK1xPx2jRELS1vj7OFfMR+3ms\nSQIDAQAB\n-----END PUBLIC KEY-----"; - private PublicKey publicKey; + private PublicKey loadPublicKey(String publicKeyPem) throws NoSuchAlgorithmException, InvalidKeySpecException { + byte[] keyBytes = Base64.decode(publicKeyPem.replaceAll("-----BEGIN PUBLIC KEY-----", "") + .replaceAll("-----END PUBLIC KEY-----", "").replaceAll("\\s+", "")); + X509EncodedKeySpec spec = new X509EncodedKeySpec(keyBytes); + return KeyFactory.getInstance("RSA").generatePublic(spec); - public EncryptedTypeAdapter() throws Exception { - Security.addProvider(new BouncyCastleProvider()); - this.publicKey = loadPublicKey(PUBLIC_KEY_PEM); } - @Override - public void write(JsonWriter out, String value) throws IOException { + public String encryptValue(String plainText) { try { - out.value(encrypt(value, publicKey)); - } catch (Exception e) { - throw new IOException("Error encrypting value", e); + PublicKey publicKey = loadPublicKey(PUBLIC_KEY_PEM); + Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); + cipher.init(Cipher.ENCRYPT_MODE, publicKey); + byte[] encryptedBytes = cipher.doFinal(plainText.getBytes("UTF-8")); + return Base64.toBase64String(encryptedBytes); + }catch (Exception e){ + return plainText; } } - - @Override - public String read(JsonReader in) throws IOException { - return in.nextString(); - } - - public static String encrypt(String plainText, PublicKey publicKey) throws Exception { - Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); - cipher.init(Cipher.ENCRYPT_MODE, publicKey); - byte[] encryptedBytes = cipher.doFinal(plainText.getBytes("UTF-8")); - return Base64.toBase64String(encryptedBytes); - } - - private PublicKey loadPublicKey(String publicKeyPem) throws Exception { - byte[] keyBytes = Base64.decode(publicKeyPem.replaceAll("-----BEGIN PUBLIC KEY-----", "") - .replaceAll("-----END PUBLIC KEY-----", "").replaceAll("\\s+", "")); - X509EncodedKeySpec spec = new X509EncodedKeySpec(keyBytes); - return KeyFactory.getInstance("RSA").generatePublic(spec); - } } diff --git a/src/main/java/io/conekta/PayoutOrdersApi.java b/src/main/java/io/conekta/PayoutOrdersApi.java index 58ee9ae..6a6d03f 100644 --- a/src/main/java/io/conekta/PayoutOrdersApi.java +++ b/src/main/java/io/conekta/PayoutOrdersApi.java @@ -60,6 +60,62 @@ public String GetApiKey(){ return this.apiKey; } + /** + * Cancel Payout Order + * Cancel a payout Order resource that corresponds to a payout order ID. + * @param id Identifier of the resource + * @param acceptLanguage Use for knowing which language to use + * @return PayoutOrderResponse + */ + public PayoutOrderResponse cancelPayoutOrderById (String id, String acceptLanguage) throws ApiException { + Object localVarPostBody = null; + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling cancelPayoutOrderById"); + } + + // create path and map variables + String localVarPath = "/payout_orders/{id}/cancel".replaceAll("\\{format\\}","json").replaceAll("\\{" + "id" + "\\}", apiInvoker.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + // header params + Map localVarHeaderParams = new HashMap(); + // form params + Map localVarFormParams = new HashMap(); + + localVarHeaderParams.put("Accept-Language", ApiInvoker.parameterToString(acceptLanguage)); + + localVarHeaderParams.put("Authorization", ApiInvoker.parameterToString("Bearer " + apiKey)); + localVarHeaderParams.put("Conekta-Client-User-Agent", "{\"agent\": \"Conekta Android SDK\"}"); + + String[] localVarContentTypes = { + + }; + String localVarContentType = localVarContentTypes.length > 0 ? localVarContentTypes[0] : "application/json"; + + if (localVarContentType.startsWith("multipart/form-data")) { + // file uploading + MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create(); + + + localVarPostBody = localVarBuilder.build(); + } else { + // normal form params + } + + try { + String localVarResponse = apiInvoker.invokeAPI(basePath, localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarContentType); + if(localVarResponse != null){ + return (PayoutOrderResponse) ApiInvoker.deserialize(localVarResponse, "", PayoutOrderResponse.class); + } + else { + return null; + } + } catch (ApiException ex) { + throw ex; + } + } /** * Create payout order * Create a new payout order. diff --git a/src/main/java/io/conekta/model/ApiKeyCreateResponse.java b/src/main/java/io/conekta/model/ApiKeyCreateResponse.java index ca9000d..f7675e2 100644 --- a/src/main/java/io/conekta/model/ApiKeyCreateResponse.java +++ b/src/main/java/io/conekta/model/ApiKeyCreateResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ApiKeyCreateResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("active") private Boolean active = null; @SerializedName("created_at") @@ -40,137 +37,149 @@ public class ApiKeyCreateResponse { /** * Indicates if the api key is active + * **/ @ApiModelProperty(value = "Indicates if the api key is active") public Boolean getActive() { return active; } + public void setActive(Boolean active) { this.active = active; } - /** * Unix timestamp in seconds of when the api key was created + * **/ @ApiModelProperty(value = "Unix timestamp in seconds of when the api key was created") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * Unix timestamp in seconds of when the api key was last updated + * **/ @ApiModelProperty(value = "Unix timestamp in seconds of when the api key was last updated") public Long getUpdatedAt() { return updatedAt; } + public void setUpdatedAt(Long updatedAt) { this.updatedAt = updatedAt; } - /** * Unix timestamp in seconds of when the api key was deleted + * **/ @ApiModelProperty(value = "Unix timestamp in seconds of when the api key was deleted") public Long getDeactivatedAt() { return deactivatedAt; } + public void setDeactivatedAt(Long deactivatedAt) { this.deactivatedAt = deactivatedAt; } - /** * A name or brief explanation of what this api key is used for + * **/ @ApiModelProperty(value = "A name or brief explanation of what this api key is used for") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** * Unique identifier of the api key + * **/ @ApiModelProperty(value = "Unique identifier of the api key") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Indicates if the api key is in production + * **/ @ApiModelProperty(value = "Indicates if the api key is in production") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * Indicates if the api key was deleted + * **/ @ApiModelProperty(value = "Indicates if the api key was deleted") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - /** * Object name, value is 'api_key' + * **/ @ApiModelProperty(value = "Object name, value is 'api_key'") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * The first few characters of the authentication_token + * **/ @ApiModelProperty(value = "The first few characters of the authentication_token") public String getPrefix() { return prefix; } + public void setPrefix(String prefix) { this.prefix = prefix; } - /** * Indicates if the api key is private or public + * **/ @ApiModelProperty(value = "Indicates if the api key is private or public") public String getRole() { return role; } + public void setRole(String role) { this.role = role; } - /** * It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place. + * **/ @ApiModelProperty(value = "It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place.") public String getAuthenticationToken() { return authenticationToken; } + public void setAuthenticationToken(String authenticationToken) { this.authenticationToken = authenticationToken; } - @Override public boolean equals(Object o) { if (this == o) { @@ -192,44 +201,45 @@ public boolean equals(Object o) { (this.prefix == null ? apiKeyCreateResponse.prefix == null : this.prefix.equals(apiKeyCreateResponse.prefix)) && (this.role == null ? apiKeyCreateResponse.role == null : this.role.equals(apiKeyCreateResponse.role)) && (this.authenticationToken == null ? apiKeyCreateResponse.authenticationToken == null : this.authenticationToken.equals(apiKeyCreateResponse.authenticationToken)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.active == null ? 0: this.active.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.updatedAt == null ? 0: this.updatedAt.hashCode()); - result = 31 * result + (this.deactivatedAt == null ? 0: this.deactivatedAt.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.prefix == null ? 0: this.prefix.hashCode()); - result = 31 * result + (this.role == null ? 0: this.role.hashCode()); - result = 31 * result + (this.authenticationToken == null ? 0: this.authenticationToken.hashCode()); + result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.updatedAt == null ? 0 : this.updatedAt.hashCode()); + result = 31 * result + (this.deactivatedAt == null ? 0 : this.deactivatedAt.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.prefix == null ? 0 : this.prefix.hashCode()); + result = 31 * result + (this.role == null ? 0 : this.role.hashCode()); + result = 31 * result + (this.authenticationToken == null ? 0 : this.authenticationToken.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApiKeyCreateResponse {\n"); sb.append(" active: ").append(active).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" updatedAt: ").append(updatedAt).append("\n"); - sb.append(" deactivatedAt: ").append(deactivatedAt).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" deleted: ").append(deleted).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" prefix: ").append(prefix).append("\n"); - sb.append(" role: ").append(role).append("\n"); - sb.append(" authenticationToken: ").append(authenticationToken).append("\n"); - sb.append("}\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" updatedAt: ").append(updatedAt).append("\n"); +sb.append(" deactivatedAt: ").append(deactivatedAt).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" deleted: ").append(deleted).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" prefix: ").append(prefix).append("\n"); +sb.append(" role: ").append(role).append("\n"); +sb.append(" authenticationToken: ").append(authenticationToken).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ApiKeyRequest.java b/src/main/java/io/conekta/model/ApiKeyRequest.java index 027362e..c5f9f3f 100644 --- a/src/main/java/io/conekta/model/ApiKeyRequest.java +++ b/src/main/java/io/conekta/model/ApiKeyRequest.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ApiKeyRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("description") private String description = null; @SerializedName("role") @@ -20,26 +17,29 @@ public class ApiKeyRequest { /** * A name or brief explanation of what this api key is used for + * **/ @ApiModelProperty(value = "A name or brief explanation of what this api key is used for") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getRole() { return role; } + public void setRole(String role) { this.role = role; } - @Override public boolean equals(Object o) { if (this == o) { @@ -51,24 +51,25 @@ public boolean equals(Object o) { ApiKeyRequest apiKeyRequest = (ApiKeyRequest) o; return (this.description == null ? apiKeyRequest.description == null : this.description.equals(apiKeyRequest.description)) && (this.role == null ? apiKeyRequest.role == null : this.role.equals(apiKeyRequest.role)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.role == null ? 0: this.role.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.role == null ? 0 : this.role.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApiKeyRequest {\n"); sb.append(" description: ").append(description).append("\n"); - sb.append(" role: ").append(role).append("\n"); - sb.append("}\n"); +sb.append(" role: ").append(role).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ApiKeyResponse.java b/src/main/java/io/conekta/model/ApiKeyResponse.java index 9f89e64..e3b651a 100644 --- a/src/main/java/io/conekta/model/ApiKeyResponse.java +++ b/src/main/java/io/conekta/model/ApiKeyResponse.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * api keys model **/ @ApiModel(description = "api keys model") public class ApiKeyResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("active") private Boolean active = null; @SerializedName("created_at") @@ -41,126 +38,137 @@ public class ApiKeyResponse { /** * Indicates if the api key is active + * **/ @ApiModelProperty(value = "Indicates if the api key is active") public Boolean getActive() { return active; } + public void setActive(Boolean active) { this.active = active; } - /** * Unix timestamp in seconds of when the api key was created + * **/ @ApiModelProperty(value = "Unix timestamp in seconds of when the api key was created") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * Unix timestamp in seconds of when the api key was last updated + * **/ @ApiModelProperty(value = "Unix timestamp in seconds of when the api key was last updated") public Long getUpdatedAt() { return updatedAt; } + public void setUpdatedAt(Long updatedAt) { this.updatedAt = updatedAt; } - /** * Unix timestamp in seconds of when the api key was deleted + * **/ @ApiModelProperty(value = "Unix timestamp in seconds of when the api key was deleted") public Long getDeactivatedAt() { return deactivatedAt; } + public void setDeactivatedAt(Long deactivatedAt) { this.deactivatedAt = deactivatedAt; } - /** * A name or brief explanation of what this api key is used for + * **/ @ApiModelProperty(value = "A name or brief explanation of what this api key is used for") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** * Unique identifier of the api key + * **/ @ApiModelProperty(value = "Unique identifier of the api key") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Indicates if the api key is in production + * **/ @ApiModelProperty(value = "Indicates if the api key is in production") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * Indicates if the api key was deleted + * **/ @ApiModelProperty(value = "Indicates if the api key was deleted") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - /** * Object name, value is 'api_key' + * **/ @ApiModelProperty(value = "Object name, value is 'api_key'") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * The first few characters of the authentication_token + * **/ @ApiModelProperty(value = "The first few characters of the authentication_token") public String getPrefix() { return prefix; } + public void setPrefix(String prefix) { this.prefix = prefix; } - /** * Indicates if the api key is private or public + * **/ @ApiModelProperty(value = "Indicates if the api key is private or public") public String getRole() { return role; } + public void setRole(String role) { this.role = role; } - @Override public boolean equals(Object o) { if (this == o) { @@ -181,42 +189,43 @@ public boolean equals(Object o) { (this._object == null ? apiKeyResponse._object == null : this._object.equals(apiKeyResponse._object)) && (this.prefix == null ? apiKeyResponse.prefix == null : this.prefix.equals(apiKeyResponse.prefix)) && (this.role == null ? apiKeyResponse.role == null : this.role.equals(apiKeyResponse.role)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.active == null ? 0: this.active.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.updatedAt == null ? 0: this.updatedAt.hashCode()); - result = 31 * result + (this.deactivatedAt == null ? 0: this.deactivatedAt.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.prefix == null ? 0: this.prefix.hashCode()); - result = 31 * result + (this.role == null ? 0: this.role.hashCode()); + result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.updatedAt == null ? 0 : this.updatedAt.hashCode()); + result = 31 * result + (this.deactivatedAt == null ? 0 : this.deactivatedAt.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.prefix == null ? 0 : this.prefix.hashCode()); + result = 31 * result + (this.role == null ? 0 : this.role.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApiKeyResponse {\n"); sb.append(" active: ").append(active).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" updatedAt: ").append(updatedAt).append("\n"); - sb.append(" deactivatedAt: ").append(deactivatedAt).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" deleted: ").append(deleted).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" prefix: ").append(prefix).append("\n"); - sb.append(" role: ").append(role).append("\n"); - sb.append("}\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" updatedAt: ").append(updatedAt).append("\n"); +sb.append(" deactivatedAt: ").append(deactivatedAt).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" deleted: ").append(deleted).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" prefix: ").append(prefix).append("\n"); +sb.append(" role: ").append(role).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ApiKeyResponseOnDelete.java b/src/main/java/io/conekta/model/ApiKeyResponseOnDelete.java index 23cf30f..80d90cc 100644 --- a/src/main/java/io/conekta/model/ApiKeyResponseOnDelete.java +++ b/src/main/java/io/conekta/model/ApiKeyResponseOnDelete.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * api keys model **/ @ApiModel(description = "api keys model") public class ApiKeyResponseOnDelete { - + private static final String MXN = "MXN"; - - + @SerializedName("active") private Boolean active = null; @SerializedName("created_at") @@ -37,104 +34,113 @@ public class ApiKeyResponseOnDelete { /** * Indicates if the api key is active + * **/ @ApiModelProperty(value = "Indicates if the api key is active") public Boolean getActive() { return active; } + public void setActive(Boolean active) { this.active = active; } - /** * Unix timestamp in seconds of when the api key was created + * **/ @ApiModelProperty(value = "Unix timestamp in seconds of when the api key was created") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * A name or brief explanation of what this api key is used for + * **/ @ApiModelProperty(value = "A name or brief explanation of what this api key is used for") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** * Indicates if the api key is in production + * **/ @ApiModelProperty(value = "Indicates if the api key is in production") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * The first few characters of the authentication_token + * **/ @ApiModelProperty(value = "The first few characters of the authentication_token") public String getPrefix() { return prefix; } + public void setPrefix(String prefix) { this.prefix = prefix; } - /** * Unique identifier of the api key + * **/ @ApiModelProperty(value = "Unique identifier of the api key") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Object name, value is 'api_key' + * **/ @ApiModelProperty(value = "Object name, value is 'api_key'") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Indicates if the api key was deleted + * **/ @ApiModelProperty(value = "Indicates if the api key was deleted") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - /** * Indicates if the api key is private or public + * **/ @ApiModelProperty(value = "Indicates if the api key is private or public") public String getRole() { return role; } + public void setRole(String role) { this.role = role; } - @Override public boolean equals(Object o) { if (this == o) { @@ -153,38 +159,39 @@ public boolean equals(Object o) { (this._object == null ? apiKeyResponseOnDelete._object == null : this._object.equals(apiKeyResponseOnDelete._object)) && (this.deleted == null ? apiKeyResponseOnDelete.deleted == null : this.deleted.equals(apiKeyResponseOnDelete.deleted)) && (this.role == null ? apiKeyResponseOnDelete.role == null : this.role.equals(apiKeyResponseOnDelete.role)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.active == null ? 0: this.active.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.prefix == null ? 0: this.prefix.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); - result = 31 * result + (this.role == null ? 0: this.role.hashCode()); + result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.prefix == null ? 0 : this.prefix.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); + result = 31 * result + (this.role == null ? 0 : this.role.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApiKeyResponseOnDelete {\n"); sb.append(" active: ").append(active).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" prefix: ").append(prefix).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" deleted: ").append(deleted).append("\n"); - sb.append(" role: ").append(role).append("\n"); - sb.append("}\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" prefix: ").append(prefix).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" deleted: ").append(deleted).append("\n"); +sb.append(" role: ").append(role).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ApiKeyUpdateRequest.java b/src/main/java/io/conekta/model/ApiKeyUpdateRequest.java index 31cc8df..592ec12 100644 --- a/src/main/java/io/conekta/model/ApiKeyUpdateRequest.java +++ b/src/main/java/io/conekta/model/ApiKeyUpdateRequest.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ApiKeyUpdateRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("active") private Boolean active = null; @SerializedName("description") @@ -20,27 +17,29 @@ public class ApiKeyUpdateRequest { /** * Indicates if the webhook key is active + * **/ @ApiModelProperty(value = "Indicates if the webhook key is active") public Boolean getActive() { return active; } + public void setActive(Boolean active) { this.active = active; } - /** * A name or brief explanation of what this api key is used for + * **/ @ApiModelProperty(value = "A name or brief explanation of what this api key is used for") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - @Override public boolean equals(Object o) { if (this == o) { @@ -52,24 +51,25 @@ public boolean equals(Object o) { ApiKeyUpdateRequest apiKeyUpdateRequest = (ApiKeyUpdateRequest) o; return (this.active == null ? apiKeyUpdateRequest.active == null : this.active.equals(apiKeyUpdateRequest.active)) && (this.description == null ? apiKeyUpdateRequest.description == null : this.description.equals(apiKeyUpdateRequest.description)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.active == null ? 0: this.active.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); + result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApiKeyUpdateRequest {\n"); sb.append(" active: ").append(active).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append("}\n"); +sb.append(" description: ").append(description).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/BalanceCommonField.java b/src/main/java/io/conekta/model/BalanceCommonField.java index 7ae80bd..4830a04 100644 --- a/src/main/java/io/conekta/model/BalanceCommonField.java +++ b/src/main/java/io/conekta/model/BalanceCommonField.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * balance common fields model **/ @ApiModel(description = "balance common fields model") public class BalanceCommonField { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("currency") @@ -23,27 +20,29 @@ public class BalanceCommonField { /** * The balance's amount + * **/ @ApiModelProperty(value = "The balance's amount") public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * The balance's currency + * **/ @ApiModelProperty(value = "The balance's currency") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - @Override public boolean equals(Object o) { if (this == o) { @@ -55,24 +54,25 @@ public boolean equals(Object o) { BalanceCommonField balanceCommonField = (BalanceCommonField) o; return (this.amount == null ? balanceCommonField.amount == null : this.amount.equals(balanceCommonField.amount)) && (this.currency == null ? balanceCommonField.currency == null : this.currency.equals(balanceCommonField.currency)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalanceCommonField {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append("}\n"); +sb.append(" currency: ").append(currency).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/BalanceResponse.java b/src/main/java/io/conekta/model/BalanceResponse.java index da9869c..d8f29ab 100644 --- a/src/main/java/io/conekta/model/BalanceResponse.java +++ b/src/main/java/io/conekta/model/BalanceResponse.java @@ -4,20 +4,17 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * balance model **/ @ApiModel(description = "balance model") public class BalanceResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("available") private List available = null; @SerializedName("cashout_retention_amount") @@ -41,115 +38,125 @@ public class BalanceResponse { /** * The balance's available + * **/ @ApiModelProperty(value = "The balance's available") public List getAvailable() { return available; } + public void setAvailable(List available) { this.available = available; } - /** * The balance's cashout retention amount + * **/ @ApiModelProperty(value = "The balance's cashout retention amount") public List getCashoutRetentionAmount() { return cashoutRetentionAmount; } + public void setCashoutRetentionAmount(List cashoutRetentionAmount) { this.cashoutRetentionAmount = cashoutRetentionAmount; } - /** * The balance's conekta retention + * **/ @ApiModelProperty(value = "The balance's conekta retention") public List getConektaRetention() { return conektaRetention; } + public void setConektaRetention(List conektaRetention) { this.conektaRetention = conektaRetention; } - /** * The balance's gateway + * **/ @ApiModelProperty(value = "The balance's gateway") public List getGateway() { return gateway; } + public void setGateway(List gateway) { this.gateway = gateway; } - /** * The balance's pending + * **/ @ApiModelProperty(value = "The balance's pending") public List getPending() { return pending; } + public void setPending(List pending) { this.pending = pending; } - /** * The balance's retained + * **/ @ApiModelProperty(value = "The balance's retained") public List getRetained() { return retained; } + public void setRetained(List retained) { this.retained = retained; } - /** * The balance's retention amount + * **/ @ApiModelProperty(value = "The balance's retention amount") public List getRetentionAmount() { return retentionAmount; } + public void setRetentionAmount(List retentionAmount) { this.retentionAmount = retentionAmount; } - /** * The balance's target collateral amount + * **/ @ApiModelProperty(value = "The balance's target collateral amount") public Object getTargetCollateralAmount() { return targetCollateralAmount; } + public void setTargetCollateralAmount(Object targetCollateralAmount) { this.targetCollateralAmount = targetCollateralAmount; } - /** * The balance's target retention amount + * **/ @ApiModelProperty(value = "The balance's target retention amount") public List getTargetRetentionAmount() { return targetRetentionAmount; } + public void setTargetRetentionAmount(List targetRetentionAmount) { this.targetRetentionAmount = targetRetentionAmount; } - /** * The balance's temporarily retained + * **/ @ApiModelProperty(value = "The balance's temporarily retained") public List getTemporarilyRetained() { return temporarilyRetained; } + public void setTemporarilyRetained(List temporarilyRetained) { this.temporarilyRetained = temporarilyRetained; } - @Override public boolean equals(Object o) { if (this == o) { @@ -169,40 +176,41 @@ public boolean equals(Object o) { (this.targetCollateralAmount == null ? balanceResponse.targetCollateralAmount == null : this.targetCollateralAmount.equals(balanceResponse.targetCollateralAmount)) && (this.targetRetentionAmount == null ? balanceResponse.targetRetentionAmount == null : this.targetRetentionAmount.equals(balanceResponse.targetRetentionAmount)) && (this.temporarilyRetained == null ? balanceResponse.temporarilyRetained == null : this.temporarilyRetained.equals(balanceResponse.temporarilyRetained)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.available == null ? 0: this.available.hashCode()); - result = 31 * result + (this.cashoutRetentionAmount == null ? 0: this.cashoutRetentionAmount.hashCode()); - result = 31 * result + (this.conektaRetention == null ? 0: this.conektaRetention.hashCode()); - result = 31 * result + (this.gateway == null ? 0: this.gateway.hashCode()); - result = 31 * result + (this.pending == null ? 0: this.pending.hashCode()); - result = 31 * result + (this.retained == null ? 0: this.retained.hashCode()); - result = 31 * result + (this.retentionAmount == null ? 0: this.retentionAmount.hashCode()); - result = 31 * result + (this.targetCollateralAmount == null ? 0: this.targetCollateralAmount.hashCode()); - result = 31 * result + (this.targetRetentionAmount == null ? 0: this.targetRetentionAmount.hashCode()); - result = 31 * result + (this.temporarilyRetained == null ? 0: this.temporarilyRetained.hashCode()); + result = 31 * result + (this.available == null ? 0 : this.available.hashCode()); + result = 31 * result + (this.cashoutRetentionAmount == null ? 0 : this.cashoutRetentionAmount.hashCode()); + result = 31 * result + (this.conektaRetention == null ? 0 : this.conektaRetention.hashCode()); + result = 31 * result + (this.gateway == null ? 0 : this.gateway.hashCode()); + result = 31 * result + (this.pending == null ? 0 : this.pending.hashCode()); + result = 31 * result + (this.retained == null ? 0 : this.retained.hashCode()); + result = 31 * result + (this.retentionAmount == null ? 0 : this.retentionAmount.hashCode()); + result = 31 * result + (this.targetCollateralAmount == null ? 0 : this.targetCollateralAmount.hashCode()); + result = 31 * result + (this.targetRetentionAmount == null ? 0 : this.targetRetentionAmount.hashCode()); + result = 31 * result + (this.temporarilyRetained == null ? 0 : this.temporarilyRetained.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BalanceResponse {\n"); sb.append(" available: ").append(available).append("\n"); - sb.append(" cashoutRetentionAmount: ").append(cashoutRetentionAmount).append("\n"); - sb.append(" conektaRetention: ").append(conektaRetention).append("\n"); - sb.append(" gateway: ").append(gateway).append("\n"); - sb.append(" pending: ").append(pending).append("\n"); - sb.append(" retained: ").append(retained).append("\n"); - sb.append(" retentionAmount: ").append(retentionAmount).append("\n"); - sb.append(" targetCollateralAmount: ").append(targetCollateralAmount).append("\n"); - sb.append(" targetRetentionAmount: ").append(targetRetentionAmount).append("\n"); - sb.append(" temporarilyRetained: ").append(temporarilyRetained).append("\n"); - sb.append("}\n"); +sb.append(" cashoutRetentionAmount: ").append(cashoutRetentionAmount).append("\n"); +sb.append(" conektaRetention: ").append(conektaRetention).append("\n"); +sb.append(" gateway: ").append(gateway).append("\n"); +sb.append(" pending: ").append(pending).append("\n"); +sb.append(" retained: ").append(retained).append("\n"); +sb.append(" retentionAmount: ").append(retentionAmount).append("\n"); +sb.append(" targetCollateralAmount: ").append(targetCollateralAmount).append("\n"); +sb.append(" targetRetentionAmount: ").append(targetRetentionAmount).append("\n"); +sb.append(" temporarilyRetained: ").append(temporarilyRetained).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/BlacklistRuleResponse.java b/src/main/java/io/conekta/model/BlacklistRuleResponse.java index 0b4802e..fe0db03 100644 --- a/src/main/java/io/conekta/model/BlacklistRuleResponse.java +++ b/src/main/java/io/conekta/model/BlacklistRuleResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class BlacklistRuleResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("id") private String id = null; @SerializedName("field") @@ -24,49 +21,53 @@ public class BlacklistRuleResponse { /** * Blacklist rule id + * **/ @ApiModelProperty(value = "Blacklist rule id") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * field used for blacklists rule + * **/ @ApiModelProperty(value = "field used for blacklists rule") public String getField() { return field; } + public void setField(String field) { this.field = field; } - /** * value used for blacklists rule + * **/ @ApiModelProperty(value = "value used for blacklists rule") public String getValue() { return value; } + public void setValue(String value) { this.value = value; } - /** * use an description for blacklisted rule + * **/ @ApiModelProperty(value = "use an description for blacklisted rule") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - @Override public boolean equals(Object o) { if (this == o) { @@ -80,28 +81,29 @@ public boolean equals(Object o) { (this.field == null ? blacklistRuleResponse.field == null : this.field.equals(blacklistRuleResponse.field)) && (this.value == null ? blacklistRuleResponse.value == null : this.value.equals(blacklistRuleResponse.value)) && (this.description == null ? blacklistRuleResponse.description == null : this.description.equals(blacklistRuleResponse.description)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.field == null ? 0: this.field.hashCode()); - result = 31 * result + (this.value == null ? 0: this.value.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.field == null ? 0 : this.field.hashCode()); + result = 31 * result + (this.value == null ? 0 : this.value.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BlacklistRuleResponse {\n"); sb.append(" id: ").append(id).append("\n"); - sb.append(" field: ").append(field).append("\n"); - sb.append(" value: ").append(value).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append("}\n"); +sb.append(" field: ").append(field).append("\n"); +sb.append(" value: ").append(value).append("\n"); +sb.append(" description: ").append(description).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargeOrderResponse.java b/src/main/java/io/conekta/model/ChargeOrderResponse.java index 9be774d..274edd2 100644 --- a/src/main/java/io/conekta/model/ChargeOrderResponse.java +++ b/src/main/java/io/conekta/model/ChargeOrderResponse.java @@ -5,17 +5,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ChargeOrderResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("channel") @@ -56,197 +53,234 @@ public class ChargeOrderResponse { private String status = null; /** + * + * **/ @ApiModelProperty(value = "") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponseChannel getChannel() { return channel; } + public void setChannel(ChargeResponseChannel channel) { this.channel = channel; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDeviceFingerprint() { return deviceFingerprint; } + public void setDeviceFingerprint(String deviceFingerprint) { this.deviceFingerprint = deviceFingerprint; } - /** + * + * **/ @ApiModelProperty(value = "") public String getFailureCode() { return failureCode; } + public void setFailureCode(String failureCode) { this.failureCode = failureCode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getFailureMessage() { return failureMessage; } + public void setFailureMessage(String failureMessage) { this.failureMessage = failureMessage; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getMonthlyInstallments() { return monthlyInstallments; } + public void setMonthlyInstallments(Integer monthlyInstallments) { this.monthlyInstallments = monthlyInstallments; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public String getOrderId() { return orderId; } + public void setOrderId(String orderId) { this.orderId = orderId; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getPaidAt() { return paidAt; } + public void setPaidAt(Integer paidAt) { this.paidAt = paidAt; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeOrderResponsePaymentMethod getPaymentMethod() { return paymentMethod; } + public void setPaymentMethod(ChargeOrderResponsePaymentMethod paymentMethod) { this.paymentMethod = paymentMethod; } - /** * Reference ID of the charge + * **/ @ApiModelProperty(value = "Reference ID of the charge") public String getReferenceId() { return referenceId; } + public void setReferenceId(String referenceId) { this.referenceId = referenceId; } - /** + * + * **/ @ApiModelProperty(value = "") public List getRefunds() { return refunds; } + public void setRefunds(List refunds) { this.refunds = refunds; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { @@ -275,58 +309,59 @@ public boolean equals(Object o) { (this.referenceId == null ? chargeOrderResponse.referenceId == null : this.referenceId.equals(chargeOrderResponse.referenceId)) && (this.refunds == null ? chargeOrderResponse.refunds == null : this.refunds.equals(chargeOrderResponse.refunds)) && (this.status == null ? chargeOrderResponse.status == null : this.status.equals(chargeOrderResponse.status)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.channel == null ? 0: this.channel.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.deviceFingerprint == null ? 0: this.deviceFingerprint.hashCode()); - result = 31 * result + (this.failureCode == null ? 0: this.failureCode.hashCode()); - result = 31 * result + (this.failureMessage == null ? 0: this.failureMessage.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.monthlyInstallments == null ? 0: this.monthlyInstallments.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.orderId == null ? 0: this.orderId.hashCode()); - result = 31 * result + (this.paidAt == null ? 0: this.paidAt.hashCode()); - result = 31 * result + (this.paymentMethod == null ? 0: this.paymentMethod.hashCode()); - result = 31 * result + (this.referenceId == null ? 0: this.referenceId.hashCode()); - result = 31 * result + (this.refunds == null ? 0: this.refunds.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.channel == null ? 0 : this.channel.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.deviceFingerprint == null ? 0 : this.deviceFingerprint.hashCode()); + result = 31 * result + (this.failureCode == null ? 0 : this.failureCode.hashCode()); + result = 31 * result + (this.failureMessage == null ? 0 : this.failureMessage.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.monthlyInstallments == null ? 0 : this.monthlyInstallments.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.orderId == null ? 0 : this.orderId.hashCode()); + result = 31 * result + (this.paidAt == null ? 0 : this.paidAt.hashCode()); + result = 31 * result + (this.paymentMethod == null ? 0 : this.paymentMethod.hashCode()); + result = 31 * result + (this.referenceId == null ? 0 : this.referenceId.hashCode()); + result = 31 * result + (this.refunds == null ? 0 : this.refunds.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeOrderResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" channel: ").append(channel).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" customerId: ").append(customerId).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" deviceFingerprint: ").append(deviceFingerprint).append("\n"); - sb.append(" failureCode: ").append(failureCode).append("\n"); - sb.append(" failureMessage: ").append(failureMessage).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" monthlyInstallments: ").append(monthlyInstallments).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" orderId: ").append(orderId).append("\n"); - sb.append(" paidAt: ").append(paidAt).append("\n"); - sb.append(" paymentMethod: ").append(paymentMethod).append("\n"); - sb.append(" referenceId: ").append(referenceId).append("\n"); - sb.append(" refunds: ").append(refunds).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append("}\n"); +sb.append(" channel: ").append(channel).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" customerId: ").append(customerId).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" deviceFingerprint: ").append(deviceFingerprint).append("\n"); +sb.append(" failureCode: ").append(failureCode).append("\n"); +sb.append(" failureMessage: ").append(failureMessage).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" monthlyInstallments: ").append(monthlyInstallments).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" orderId: ").append(orderId).append("\n"); +sb.append(" paidAt: ").append(paidAt).append("\n"); +sb.append(" paymentMethod: ").append(paymentMethod).append("\n"); +sb.append(" referenceId: ").append(referenceId).append("\n"); +sb.append(" refunds: ").append(refunds).append("\n"); +sb.append(" status: ").append(status).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargeOrderResponsePaymentMethod.java b/src/main/java/io/conekta/model/ChargeOrderResponsePaymentMethod.java index 058d3a9..8569941 100644 --- a/src/main/java/io/conekta/model/ChargeOrderResponsePaymentMethod.java +++ b/src/main/java/io/conekta/model/ChargeOrderResponsePaymentMethod.java @@ -6,17 +6,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ChargeOrderResponsePaymentMethod { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("object") @@ -95,397 +92,462 @@ public class ChargeOrderResponsePaymentMethod { private String trackingCode = null; /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Agreement ID + * **/ @ApiModelProperty(value = "Agreement ID") public String getAgreement() { return agreement; } + public void setAgreement(String agreement) { this.agreement = agreement; } - /** + * + * **/ @ApiModelProperty(value = "") public String getAuthCode() { return authCode; } + public void setAuthCode(String authCode) { this.authCode = authCode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCashierId() { return cashierId; } + public void setCashierId(String cashierId) { this.cashierId = cashierId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReference() { return reference; } + public void setReference(String reference) { this.reference = reference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcodeUrl() { return barcodeUrl; } + public void setBarcodeUrl(String barcodeUrl) { this.barcodeUrl = barcodeUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. + * **/ @ApiModelProperty(value = "Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc.") public String getProductType() { return productType; } + public void setProductType(String productType) { this.productType = productType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getServiceName() { return serviceName; } + public void setServiceName(String serviceName) { this.serviceName = serviceName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStore() { return store; } + public void setStore(String store) { this.store = store; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStoreName() { return storeName; } + public void setStoreName(String storeName) { this.storeName = storeName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerIpAddress() { return customerIpAddress; } + public void setCustomerIpAddress(String customerIpAddress) { this.customerIpAddress = customerIpAddress; } - /** * Account type of the card + * **/ @ApiModelProperty(value = "Account type of the card") public String getAccountType() { return accountType; } + public void setAccountType(String accountType) { this.accountType = accountType; } - /** * Brand of the card + * **/ @ApiModelProperty(value = "Brand of the card") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** * Id sent for recurrent charges. + * **/ @ApiModelProperty(value = "Id sent for recurrent charges.") public String getContractId() { return contractId; } + public void setContractId(String contractId) { this.contractId = contractId; } - /** * Country of the card + * **/ @ApiModelProperty(value = "Country of the card") public String getCountry() { return country; } + public void setCountry(String country) { this.country = country; } - /** * Expiration month of the card + * **/ @ApiModelProperty(value = "Expiration month of the card") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** * Expiration year of the card + * **/ @ApiModelProperty(value = "Expiration year of the card") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** + * + * **/ @ApiModelProperty(value = "") public List getFraudIndicators() { return fraudIndicators; } + public void setFraudIndicators(List fraudIndicators) { this.fraudIndicators = fraudIndicators; } - /** * Issuer of the card + * **/ @ApiModelProperty(value = "Issuer of the card") public String getIssuer() { return issuer; } + public void setIssuer(String issuer) { this.issuer = issuer; } - /** * Last 4 digits of the card + * **/ @ApiModelProperty(value = "Last 4 digits of the card") public String getLast4() { return last4; } + public void setLast4(String last4) { this.last4 = last4; } - /** * Name of the cardholder + * **/ @ApiModelProperty(value = "Name of the cardholder") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBank() { return bank; } + public void setBank(String bank) { this.bank = bank; } - /** + * + * **/ @ApiModelProperty(value = "") public String getClabe() { return clabe; } + public void setClabe(String clabe) { this.clabe = clabe; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getExecutedAt() { return executedAt; } + public void setExecutedAt(Integer executedAt) { this.executedAt = executedAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountBank() { return issuingAccountBank; } + public void setIssuingAccountBank(String issuingAccountBank) { this.issuingAccountBank = issuingAccountBank; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountNumber() { return issuingAccountNumber; } + public void setIssuingAccountNumber(String issuingAccountNumber) { this.issuingAccountNumber = issuingAccountNumber; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountHolderName() { return issuingAccountHolderName; } + public void setIssuingAccountHolderName(String issuingAccountHolderName) { this.issuingAccountHolderName = issuingAccountHolderName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountTaxId() { return issuingAccountTaxId; } + public void setIssuingAccountTaxId(String issuingAccountTaxId) { this.issuingAccountTaxId = issuingAccountTaxId; } - /** + * + * **/ @ApiModelProperty(value = "") public List getPaymentAttempts() { return paymentAttempts; } + public void setPaymentAttempts(List paymentAttempts) { this.paymentAttempts = paymentAttempts; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountHolderName() { return receivingAccountHolderName; } + public void setReceivingAccountHolderName(String receivingAccountHolderName) { this.receivingAccountHolderName = receivingAccountHolderName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountNumber() { return receivingAccountNumber; } + public void setReceivingAccountNumber(String receivingAccountNumber) { this.receivingAccountNumber = receivingAccountNumber; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountBank() { return receivingAccountBank; } + public void setReceivingAccountBank(String receivingAccountBank) { this.receivingAccountBank = receivingAccountBank; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountTaxId() { return receivingAccountTaxId; } + public void setReceivingAccountTaxId(String receivingAccountTaxId) { this.receivingAccountTaxId = receivingAccountTaxId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReferenceNumber() { return referenceNumber; } + public void setReferenceNumber(String referenceNumber) { this.referenceNumber = referenceNumber; } - /** + * + * **/ @ApiModelProperty(value = "") public String getTrackingCode() { return trackingCode; } + public void setTrackingCode(String trackingCode) { this.trackingCode = trackingCode; } - @Override public boolean equals(Object o) { if (this == o) { @@ -533,96 +595,97 @@ public boolean equals(Object o) { (this.receivingAccountTaxId == null ? chargeOrderResponsePaymentMethod.receivingAccountTaxId == null : this.receivingAccountTaxId.equals(chargeOrderResponsePaymentMethod.receivingAccountTaxId)) && (this.referenceNumber == null ? chargeOrderResponsePaymentMethod.referenceNumber == null : this.referenceNumber.equals(chargeOrderResponsePaymentMethod.referenceNumber)) && (this.trackingCode == null ? chargeOrderResponsePaymentMethod.trackingCode == null : this.trackingCode.equals(chargeOrderResponsePaymentMethod.trackingCode)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.agreement == null ? 0: this.agreement.hashCode()); - result = 31 * result + (this.authCode == null ? 0: this.authCode.hashCode()); - result = 31 * result + (this.cashierId == null ? 0: this.cashierId.hashCode()); - result = 31 * result + (this.reference == null ? 0: this.reference.hashCode()); - result = 31 * result + (this.barcodeUrl == null ? 0: this.barcodeUrl.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.productType == null ? 0: this.productType.hashCode()); - result = 31 * result + (this.serviceName == null ? 0: this.serviceName.hashCode()); - result = 31 * result + (this.store == null ? 0: this.store.hashCode()); - result = 31 * result + (this.storeName == null ? 0: this.storeName.hashCode()); - result = 31 * result + (this.customerIpAddress == null ? 0: this.customerIpAddress.hashCode()); - result = 31 * result + (this.accountType == null ? 0: this.accountType.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.contractId == null ? 0: this.contractId.hashCode()); - result = 31 * result + (this.country == null ? 0: this.country.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.fraudIndicators == null ? 0: this.fraudIndicators.hashCode()); - result = 31 * result + (this.issuer == null ? 0: this.issuer.hashCode()); - result = 31 * result + (this.last4 == null ? 0: this.last4.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.bank == null ? 0: this.bank.hashCode()); - result = 31 * result + (this.clabe == null ? 0: this.clabe.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.executedAt == null ? 0: this.executedAt.hashCode()); - result = 31 * result + (this.issuingAccountBank == null ? 0: this.issuingAccountBank.hashCode()); - result = 31 * result + (this.issuingAccountNumber == null ? 0: this.issuingAccountNumber.hashCode()); - result = 31 * result + (this.issuingAccountHolderName == null ? 0: this.issuingAccountHolderName.hashCode()); - result = 31 * result + (this.issuingAccountTaxId == null ? 0: this.issuingAccountTaxId.hashCode()); - result = 31 * result + (this.paymentAttempts == null ? 0: this.paymentAttempts.hashCode()); - result = 31 * result + (this.receivingAccountHolderName == null ? 0: this.receivingAccountHolderName.hashCode()); - result = 31 * result + (this.receivingAccountNumber == null ? 0: this.receivingAccountNumber.hashCode()); - result = 31 * result + (this.receivingAccountBank == null ? 0: this.receivingAccountBank.hashCode()); - result = 31 * result + (this.receivingAccountTaxId == null ? 0: this.receivingAccountTaxId.hashCode()); - result = 31 * result + (this.referenceNumber == null ? 0: this.referenceNumber.hashCode()); - result = 31 * result + (this.trackingCode == null ? 0: this.trackingCode.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.agreement == null ? 0 : this.agreement.hashCode()); + result = 31 * result + (this.authCode == null ? 0 : this.authCode.hashCode()); + result = 31 * result + (this.cashierId == null ? 0 : this.cashierId.hashCode()); + result = 31 * result + (this.reference == null ? 0 : this.reference.hashCode()); + result = 31 * result + (this.barcodeUrl == null ? 0 : this.barcodeUrl.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.productType == null ? 0 : this.productType.hashCode()); + result = 31 * result + (this.serviceName == null ? 0 : this.serviceName.hashCode()); + result = 31 * result + (this.store == null ? 0 : this.store.hashCode()); + result = 31 * result + (this.storeName == null ? 0 : this.storeName.hashCode()); + result = 31 * result + (this.customerIpAddress == null ? 0 : this.customerIpAddress.hashCode()); + result = 31 * result + (this.accountType == null ? 0 : this.accountType.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.contractId == null ? 0 : this.contractId.hashCode()); + result = 31 * result + (this.country == null ? 0 : this.country.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.fraudIndicators == null ? 0 : this.fraudIndicators.hashCode()); + result = 31 * result + (this.issuer == null ? 0 : this.issuer.hashCode()); + result = 31 * result + (this.last4 == null ? 0 : this.last4.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.bank == null ? 0 : this.bank.hashCode()); + result = 31 * result + (this.clabe == null ? 0 : this.clabe.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.executedAt == null ? 0 : this.executedAt.hashCode()); + result = 31 * result + (this.issuingAccountBank == null ? 0 : this.issuingAccountBank.hashCode()); + result = 31 * result + (this.issuingAccountNumber == null ? 0 : this.issuingAccountNumber.hashCode()); + result = 31 * result + (this.issuingAccountHolderName == null ? 0 : this.issuingAccountHolderName.hashCode()); + result = 31 * result + (this.issuingAccountTaxId == null ? 0 : this.issuingAccountTaxId.hashCode()); + result = 31 * result + (this.paymentAttempts == null ? 0 : this.paymentAttempts.hashCode()); + result = 31 * result + (this.receivingAccountHolderName == null ? 0 : this.receivingAccountHolderName.hashCode()); + result = 31 * result + (this.receivingAccountNumber == null ? 0 : this.receivingAccountNumber.hashCode()); + result = 31 * result + (this.receivingAccountBank == null ? 0 : this.receivingAccountBank.hashCode()); + result = 31 * result + (this.receivingAccountTaxId == null ? 0 : this.receivingAccountTaxId.hashCode()); + result = 31 * result + (this.referenceNumber == null ? 0 : this.referenceNumber.hashCode()); + result = 31 * result + (this.trackingCode == null ? 0 : this.trackingCode.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeOrderResponsePaymentMethod {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" agreement: ").append(agreement).append("\n"); - sb.append(" authCode: ").append(authCode).append("\n"); - sb.append(" cashierId: ").append(cashierId).append("\n"); - sb.append(" reference: ").append(reference).append("\n"); - sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" productType: ").append(productType).append("\n"); - sb.append(" serviceName: ").append(serviceName).append("\n"); - sb.append(" store: ").append(store).append("\n"); - sb.append(" storeName: ").append(storeName).append("\n"); - sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); - sb.append(" accountType: ").append(accountType).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" contractId: ").append(contractId).append("\n"); - sb.append(" country: ").append(country).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" fraudIndicators: ").append(fraudIndicators).append("\n"); - sb.append(" issuer: ").append(issuer).append("\n"); - sb.append(" last4: ").append(last4).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" bank: ").append(bank).append("\n"); - sb.append(" clabe: ").append(clabe).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" executedAt: ").append(executedAt).append("\n"); - sb.append(" issuingAccountBank: ").append(issuingAccountBank).append("\n"); - sb.append(" issuingAccountNumber: ").append(issuingAccountNumber).append("\n"); - sb.append(" issuingAccountHolderName: ").append(issuingAccountHolderName).append("\n"); - sb.append(" issuingAccountTaxId: ").append(issuingAccountTaxId).append("\n"); - sb.append(" paymentAttempts: ").append(paymentAttempts).append("\n"); - sb.append(" receivingAccountHolderName: ").append(receivingAccountHolderName).append("\n"); - sb.append(" receivingAccountNumber: ").append(receivingAccountNumber).append("\n"); - sb.append(" receivingAccountBank: ").append(receivingAccountBank).append("\n"); - sb.append(" receivingAccountTaxId: ").append(receivingAccountTaxId).append("\n"); - sb.append(" referenceNumber: ").append(referenceNumber).append("\n"); - sb.append(" trackingCode: ").append(trackingCode).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" agreement: ").append(agreement).append("\n"); +sb.append(" authCode: ").append(authCode).append("\n"); +sb.append(" cashierId: ").append(cashierId).append("\n"); +sb.append(" reference: ").append(reference).append("\n"); +sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" productType: ").append(productType).append("\n"); +sb.append(" serviceName: ").append(serviceName).append("\n"); +sb.append(" store: ").append(store).append("\n"); +sb.append(" storeName: ").append(storeName).append("\n"); +sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); +sb.append(" accountType: ").append(accountType).append("\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" contractId: ").append(contractId).append("\n"); +sb.append(" country: ").append(country).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" fraudIndicators: ").append(fraudIndicators).append("\n"); +sb.append(" issuer: ").append(issuer).append("\n"); +sb.append(" last4: ").append(last4).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" bank: ").append(bank).append("\n"); +sb.append(" clabe: ").append(clabe).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" executedAt: ").append(executedAt).append("\n"); +sb.append(" issuingAccountBank: ").append(issuingAccountBank).append("\n"); +sb.append(" issuingAccountNumber: ").append(issuingAccountNumber).append("\n"); +sb.append(" issuingAccountHolderName: ").append(issuingAccountHolderName).append("\n"); +sb.append(" issuingAccountTaxId: ").append(issuingAccountTaxId).append("\n"); +sb.append(" paymentAttempts: ").append(paymentAttempts).append("\n"); +sb.append(" receivingAccountHolderName: ").append(receivingAccountHolderName).append("\n"); +sb.append(" receivingAccountNumber: ").append(receivingAccountNumber).append("\n"); +sb.append(" receivingAccountBank: ").append(receivingAccountBank).append("\n"); +sb.append(" receivingAccountTaxId: ").append(receivingAccountTaxId).append("\n"); +sb.append(" referenceNumber: ").append(referenceNumber).append("\n"); +sb.append(" trackingCode: ").append(trackingCode).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargeRequest.java b/src/main/java/io/conekta/model/ChargeRequest.java index 979f03d..35a0460 100644 --- a/src/main/java/io/conekta/model/ChargeRequest.java +++ b/src/main/java/io/conekta/model/ChargeRequest.java @@ -3,20 +3,17 @@ import io.conekta.model.ChargeRequestPaymentMethod; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * The charges to be made **/ @ApiModel(description = "The charges to be made") public class ChargeRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("payment_method") @@ -26,37 +23,41 @@ public class ChargeRequest { /** * Amount to be charged in cents + * **/ @ApiModelProperty(value = "Amount to be charged in cents") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public ChargeRequestPaymentMethod getPaymentMethod() { return paymentMethod; } + public void setPaymentMethod(ChargeRequestPaymentMethod paymentMethod) { this.paymentMethod = paymentMethod; } - /** * Custom reference to add to the charge + * **/ @ApiModelProperty(value = "Custom reference to add to the charge") public String getReferenceId() { return referenceId; } + public void setReferenceId(String referenceId) { this.referenceId = referenceId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -69,26 +70,27 @@ public boolean equals(Object o) { return (this.amount == null ? chargeRequest.amount == null : this.amount.equals(chargeRequest.amount)) && (this.paymentMethod == null ? chargeRequest.paymentMethod == null : this.paymentMethod.equals(chargeRequest.paymentMethod)) && (this.referenceId == null ? chargeRequest.referenceId == null : this.referenceId.equals(chargeRequest.referenceId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.paymentMethod == null ? 0: this.paymentMethod.hashCode()); - result = 31 * result + (this.referenceId == null ? 0: this.referenceId.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.paymentMethod == null ? 0 : this.paymentMethod.hashCode()); + result = 31 * result + (this.referenceId == null ? 0 : this.referenceId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeRequest {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" paymentMethod: ").append(paymentMethod).append("\n"); - sb.append(" referenceId: ").append(referenceId).append("\n"); - sb.append("}\n"); +sb.append(" paymentMethod: ").append(paymentMethod).append("\n"); +sb.append(" referenceId: ").append(referenceId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargeRequestPaymentMethod.java b/src/main/java/io/conekta/model/ChargeRequestPaymentMethod.java index 3720d87..e783f22 100644 --- a/src/main/java/io/conekta/model/ChargeRequestPaymentMethod.java +++ b/src/main/java/io/conekta/model/ChargeRequestPaymentMethod.java @@ -4,17 +4,14 @@ import io.conekta.model.PaymentMethodGeneralRequest; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ChargeRequestPaymentMethod { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("cvc") @@ -42,135 +39,149 @@ public class ChargeRequestPaymentMethod { /** * Type of payment method + * **/ @ApiModelProperty(required = true, value = "Type of payment method") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** * Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants + * **/ @ApiModelProperty(required = true, value = "Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants") public String getCvc() { return cvc; } + public void setCvc(String cvc) { this.cvc = cvc; } - /** * Card expiration month + * **/ @ApiModelProperty(required = true, value = "Card expiration month") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** * Card expiration year + * **/ @ApiModelProperty(required = true, value = "Card expiration year") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** * Cardholder name + * **/ @ApiModelProperty(required = true, value = "Cardholder name") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * Card number + * **/ @ApiModelProperty(required = true, value = "Card number") public String getNumber() { return number; } + public void setNumber(String number) { this.number = number; } - /** * Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes + * **/ @ApiModelProperty(value = "Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes") public String getCustomerIpAddress() { return customerIpAddress; } + public void setCustomerIpAddress(String customerIpAddress) { this.customerIpAddress = customerIpAddress; } - /** * Method expiration date as unix timestamp + * **/ @ApiModelProperty(value = "Method expiration date as unix timestamp") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * How many months without interest to apply, it can be 3, 6, 9, 12 or 18 + * **/ @ApiModelProperty(value = "How many months without interest to apply, it can be 3, 6, 9, 12 or 18") public Integer getMonthlyInstallments() { return monthlyInstallments; } + public void setMonthlyInstallments(Integer monthlyInstallments) { this.monthlyInstallments = monthlyInstallments; } - /** + * + * **/ @ApiModelProperty(value = "") public String getTokenId() { return tokenId; } + public void setTokenId(String tokenId) { this.tokenId = tokenId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPaymentSourceId() { return paymentSourceId; } + public void setPaymentSourceId(String paymentSourceId) { this.paymentSourceId = paymentSourceId; } - /** * Optional id sent to indicate the bank contract for recurrent card charges. + * **/ @ApiModelProperty(value = "Optional id sent to indicate the bank contract for recurrent card charges.") public String getContractId() { return contractId; } + public void setContractId(String contractId) { this.contractId = contractId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -192,44 +203,45 @@ public boolean equals(Object o) { (this.tokenId == null ? chargeRequestPaymentMethod.tokenId == null : this.tokenId.equals(chargeRequestPaymentMethod.tokenId)) && (this.paymentSourceId == null ? chargeRequestPaymentMethod.paymentSourceId == null : this.paymentSourceId.equals(chargeRequestPaymentMethod.paymentSourceId)) && (this.contractId == null ? chargeRequestPaymentMethod.contractId == null : this.contractId.equals(chargeRequestPaymentMethod.contractId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.cvc == null ? 0: this.cvc.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.number == null ? 0: this.number.hashCode()); - result = 31 * result + (this.customerIpAddress == null ? 0: this.customerIpAddress.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.monthlyInstallments == null ? 0: this.monthlyInstallments.hashCode()); - result = 31 * result + (this.tokenId == null ? 0: this.tokenId.hashCode()); - result = 31 * result + (this.paymentSourceId == null ? 0: this.paymentSourceId.hashCode()); - result = 31 * result + (this.contractId == null ? 0: this.contractId.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.cvc == null ? 0 : this.cvc.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.number == null ? 0 : this.number.hashCode()); + result = 31 * result + (this.customerIpAddress == null ? 0 : this.customerIpAddress.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.monthlyInstallments == null ? 0 : this.monthlyInstallments.hashCode()); + result = 31 * result + (this.tokenId == null ? 0 : this.tokenId.hashCode()); + result = 31 * result + (this.paymentSourceId == null ? 0 : this.paymentSourceId.hashCode()); + result = 31 * result + (this.contractId == null ? 0 : this.contractId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeRequestPaymentMethod {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" cvc: ").append(cvc).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" number: ").append(number).append("\n"); - sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" monthlyInstallments: ").append(monthlyInstallments).append("\n"); - sb.append(" tokenId: ").append(tokenId).append("\n"); - sb.append(" paymentSourceId: ").append(paymentSourceId).append("\n"); - sb.append(" contractId: ").append(contractId).append("\n"); - sb.append("}\n"); +sb.append(" cvc: ").append(cvc).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" number: ").append(number).append("\n"); +sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" monthlyInstallments: ").append(monthlyInstallments).append("\n"); +sb.append(" tokenId: ").append(tokenId).append("\n"); +sb.append(" paymentSourceId: ").append(paymentSourceId).append("\n"); +sb.append(" contractId: ").append(contractId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargeResponse.java b/src/main/java/io/conekta/model/ChargeResponse.java index 32f45a9..d338f89 100644 --- a/src/main/java/io/conekta/model/ChargeResponse.java +++ b/src/main/java/io/conekta/model/ChargeResponse.java @@ -5,17 +5,14 @@ import io.conekta.model.ChargeResponseRefunds; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ChargeResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("channel") @@ -54,191 +51,222 @@ public class ChargeResponse { private String status = null; /** + * + * **/ @ApiModelProperty(value = "") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponseChannel getChannel() { return channel; } + public void setChannel(ChargeResponseChannel channel) { this.channel = channel; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDeviceFingerprint() { return deviceFingerprint; } + public void setDeviceFingerprint(String deviceFingerprint) { this.deviceFingerprint = deviceFingerprint; } - /** + * + * **/ @ApiModelProperty(value = "") public String getFailureCode() { return failureCode; } + public void setFailureCode(String failureCode) { this.failureCode = failureCode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getFailureMessage() { return failureMessage; } + public void setFailureMessage(String failureMessage) { this.failureMessage = failureMessage; } - /** * Charge ID + * **/ @ApiModelProperty(value = "Charge ID") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Whether the charge was made in live mode or not + * **/ @ApiModelProperty(value = "Whether the charge was made in live mode or not") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Order ID + * **/ @ApiModelProperty(value = "Order ID") public String getOrderId() { return orderId; } + public void setOrderId(String orderId) { this.orderId = orderId; } - /** * Payment date + * **/ @ApiModelProperty(value = "Payment date") public Long getPaidAt() { return paidAt; } + public void setPaidAt(Long paidAt) { this.paidAt = paidAt; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponsePaymentMethod getPaymentMethod() { return paymentMethod; } + public void setPaymentMethod(ChargeResponsePaymentMethod paymentMethod) { this.paymentMethod = paymentMethod; } - /** * Reference ID of the charge + * **/ @ApiModelProperty(value = "Reference ID of the charge") public String getReferenceId() { return referenceId; } + public void setReferenceId(String referenceId) { this.referenceId = referenceId; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponseRefunds getRefunds() { return refunds; } + public void setRefunds(ChargeResponseRefunds refunds) { this.refunds = refunds; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { @@ -266,56 +294,57 @@ public boolean equals(Object o) { (this.referenceId == null ? chargeResponse.referenceId == null : this.referenceId.equals(chargeResponse.referenceId)) && (this.refunds == null ? chargeResponse.refunds == null : this.refunds.equals(chargeResponse.refunds)) && (this.status == null ? chargeResponse.status == null : this.status.equals(chargeResponse.status)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.channel == null ? 0: this.channel.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.deviceFingerprint == null ? 0: this.deviceFingerprint.hashCode()); - result = 31 * result + (this.failureCode == null ? 0: this.failureCode.hashCode()); - result = 31 * result + (this.failureMessage == null ? 0: this.failureMessage.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.orderId == null ? 0: this.orderId.hashCode()); - result = 31 * result + (this.paidAt == null ? 0: this.paidAt.hashCode()); - result = 31 * result + (this.paymentMethod == null ? 0: this.paymentMethod.hashCode()); - result = 31 * result + (this.referenceId == null ? 0: this.referenceId.hashCode()); - result = 31 * result + (this.refunds == null ? 0: this.refunds.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.channel == null ? 0 : this.channel.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.deviceFingerprint == null ? 0 : this.deviceFingerprint.hashCode()); + result = 31 * result + (this.failureCode == null ? 0 : this.failureCode.hashCode()); + result = 31 * result + (this.failureMessage == null ? 0 : this.failureMessage.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.orderId == null ? 0 : this.orderId.hashCode()); + result = 31 * result + (this.paidAt == null ? 0 : this.paidAt.hashCode()); + result = 31 * result + (this.paymentMethod == null ? 0 : this.paymentMethod.hashCode()); + result = 31 * result + (this.referenceId == null ? 0 : this.referenceId.hashCode()); + result = 31 * result + (this.refunds == null ? 0 : this.refunds.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" channel: ").append(channel).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" customerId: ").append(customerId).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" deviceFingerprint: ").append(deviceFingerprint).append("\n"); - sb.append(" failureCode: ").append(failureCode).append("\n"); - sb.append(" failureMessage: ").append(failureMessage).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" orderId: ").append(orderId).append("\n"); - sb.append(" paidAt: ").append(paidAt).append("\n"); - sb.append(" paymentMethod: ").append(paymentMethod).append("\n"); - sb.append(" referenceId: ").append(referenceId).append("\n"); - sb.append(" refunds: ").append(refunds).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append("}\n"); +sb.append(" channel: ").append(channel).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" customerId: ").append(customerId).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" deviceFingerprint: ").append(deviceFingerprint).append("\n"); +sb.append(" failureCode: ").append(failureCode).append("\n"); +sb.append(" failureMessage: ").append(failureMessage).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" orderId: ").append(orderId).append("\n"); +sb.append(" paidAt: ").append(paidAt).append("\n"); +sb.append(" paymentMethod: ").append(paymentMethod).append("\n"); +sb.append(" referenceId: ").append(referenceId).append("\n"); +sb.append(" refunds: ").append(refunds).append("\n"); +sb.append(" status: ").append(status).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargeResponseChannel.java b/src/main/java/io/conekta/model/ChargeResponseChannel.java index cde9930..6be2c38 100644 --- a/src/main/java/io/conekta/model/ChargeResponseChannel.java +++ b/src/main/java/io/conekta/model/ChargeResponseChannel.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ChargeResponseChannel { - + private static final String MXN = "MXN"; - - + @SerializedName("segment") private String segment = null; @SerializedName("checkout_request_id") @@ -23,46 +20,54 @@ public class ChargeResponseChannel { private String id = null; /** + * + * **/ @ApiModelProperty(value = "") public String getSegment() { return segment; } + public void setSegment(String segment) { this.segment = segment; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCheckoutRequestId() { return checkoutRequestId; } + public void setCheckoutRequestId(String checkoutRequestId) { this.checkoutRequestId = checkoutRequestId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCheckoutRequestType() { return checkoutRequestType; } + public void setCheckoutRequestType(String checkoutRequestType) { this.checkoutRequestType = checkoutRequestType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - @Override public boolean equals(Object o) { if (this == o) { @@ -76,28 +81,29 @@ public boolean equals(Object o) { (this.checkoutRequestId == null ? chargeResponseChannel.checkoutRequestId == null : this.checkoutRequestId.equals(chargeResponseChannel.checkoutRequestId)) && (this.checkoutRequestType == null ? chargeResponseChannel.checkoutRequestType == null : this.checkoutRequestType.equals(chargeResponseChannel.checkoutRequestType)) && (this.id == null ? chargeResponseChannel.id == null : this.id.equals(chargeResponseChannel.id)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.segment == null ? 0: this.segment.hashCode()); - result = 31 * result + (this.checkoutRequestId == null ? 0: this.checkoutRequestId.hashCode()); - result = 31 * result + (this.checkoutRequestType == null ? 0: this.checkoutRequestType.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); + result = 31 * result + (this.segment == null ? 0 : this.segment.hashCode()); + result = 31 * result + (this.checkoutRequestId == null ? 0 : this.checkoutRequestId.hashCode()); + result = 31 * result + (this.checkoutRequestType == null ? 0 : this.checkoutRequestType.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeResponseChannel {\n"); sb.append(" segment: ").append(segment).append("\n"); - sb.append(" checkoutRequestId: ").append(checkoutRequestId).append("\n"); - sb.append(" checkoutRequestType: ").append(checkoutRequestType).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append("}\n"); +sb.append(" checkoutRequestId: ").append(checkoutRequestId).append("\n"); +sb.append(" checkoutRequestType: ").append(checkoutRequestType).append("\n"); +sb.append(" id: ").append(id).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargeResponsePaymentMethod.java b/src/main/java/io/conekta/model/ChargeResponsePaymentMethod.java index 204b7b3..62b3045 100644 --- a/src/main/java/io/conekta/model/ChargeResponsePaymentMethod.java +++ b/src/main/java/io/conekta/model/ChargeResponsePaymentMethod.java @@ -6,17 +6,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ChargeResponsePaymentMethod { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("object") @@ -95,397 +92,462 @@ public class ChargeResponsePaymentMethod { private String trackingCode = null; /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Agreement ID + * **/ @ApiModelProperty(value = "Agreement ID") public String getAgreement() { return agreement; } + public void setAgreement(String agreement) { this.agreement = agreement; } - /** + * + * **/ @ApiModelProperty(value = "") public String getAuthCode() { return authCode; } + public void setAuthCode(String authCode) { this.authCode = authCode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCashierId() { return cashierId; } + public void setCashierId(String cashierId) { this.cashierId = cashierId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReference() { return reference; } + public void setReference(String reference) { this.reference = reference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcodeUrl() { return barcodeUrl; } + public void setBarcodeUrl(String barcodeUrl) { this.barcodeUrl = barcodeUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. + * **/ @ApiModelProperty(value = "Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc.") public String getProductType() { return productType; } + public void setProductType(String productType) { this.productType = productType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getServiceName() { return serviceName; } + public void setServiceName(String serviceName) { this.serviceName = serviceName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStore() { return store; } + public void setStore(String store) { this.store = store; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStoreName() { return storeName; } + public void setStoreName(String storeName) { this.storeName = storeName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerIpAddress() { return customerIpAddress; } + public void setCustomerIpAddress(String customerIpAddress) { this.customerIpAddress = customerIpAddress; } - /** * Account type of the card + * **/ @ApiModelProperty(value = "Account type of the card") public String getAccountType() { return accountType; } + public void setAccountType(String accountType) { this.accountType = accountType; } - /** * Brand of the card + * **/ @ApiModelProperty(value = "Brand of the card") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** * Id sent for recurrent charges. + * **/ @ApiModelProperty(value = "Id sent for recurrent charges.") public String getContractId() { return contractId; } + public void setContractId(String contractId) { this.contractId = contractId; } - /** * Country of the card + * **/ @ApiModelProperty(value = "Country of the card") public String getCountry() { return country; } + public void setCountry(String country) { this.country = country; } - /** * Expiration month of the card + * **/ @ApiModelProperty(value = "Expiration month of the card") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** * Expiration year of the card + * **/ @ApiModelProperty(value = "Expiration year of the card") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** + * + * **/ @ApiModelProperty(value = "") public List getFraudIndicators() { return fraudIndicators; } + public void setFraudIndicators(List fraudIndicators) { this.fraudIndicators = fraudIndicators; } - /** * Issuer of the card + * **/ @ApiModelProperty(value = "Issuer of the card") public String getIssuer() { return issuer; } + public void setIssuer(String issuer) { this.issuer = issuer; } - /** * Last 4 digits of the card + * **/ @ApiModelProperty(value = "Last 4 digits of the card") public String getLast4() { return last4; } + public void setLast4(String last4) { this.last4 = last4; } - /** * Name of the cardholder + * **/ @ApiModelProperty(value = "Name of the cardholder") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBank() { return bank; } + public void setBank(String bank) { this.bank = bank; } - /** + * + * **/ @ApiModelProperty(value = "") public String getClabe() { return clabe; } + public void setClabe(String clabe) { this.clabe = clabe; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getExecutedAt() { return executedAt; } + public void setExecutedAt(Integer executedAt) { this.executedAt = executedAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountBank() { return issuingAccountBank; } + public void setIssuingAccountBank(String issuingAccountBank) { this.issuingAccountBank = issuingAccountBank; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountNumber() { return issuingAccountNumber; } + public void setIssuingAccountNumber(String issuingAccountNumber) { this.issuingAccountNumber = issuingAccountNumber; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountHolderName() { return issuingAccountHolderName; } + public void setIssuingAccountHolderName(String issuingAccountHolderName) { this.issuingAccountHolderName = issuingAccountHolderName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountTaxId() { return issuingAccountTaxId; } + public void setIssuingAccountTaxId(String issuingAccountTaxId) { this.issuingAccountTaxId = issuingAccountTaxId; } - /** + * + * **/ @ApiModelProperty(value = "") public List getPaymentAttempts() { return paymentAttempts; } + public void setPaymentAttempts(List paymentAttempts) { this.paymentAttempts = paymentAttempts; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountHolderName() { return receivingAccountHolderName; } + public void setReceivingAccountHolderName(String receivingAccountHolderName) { this.receivingAccountHolderName = receivingAccountHolderName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountNumber() { return receivingAccountNumber; } + public void setReceivingAccountNumber(String receivingAccountNumber) { this.receivingAccountNumber = receivingAccountNumber; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountBank() { return receivingAccountBank; } + public void setReceivingAccountBank(String receivingAccountBank) { this.receivingAccountBank = receivingAccountBank; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountTaxId() { return receivingAccountTaxId; } + public void setReceivingAccountTaxId(String receivingAccountTaxId) { this.receivingAccountTaxId = receivingAccountTaxId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReferenceNumber() { return referenceNumber; } + public void setReferenceNumber(String referenceNumber) { this.referenceNumber = referenceNumber; } - /** + * + * **/ @ApiModelProperty(value = "") public String getTrackingCode() { return trackingCode; } + public void setTrackingCode(String trackingCode) { this.trackingCode = trackingCode; } - @Override public boolean equals(Object o) { if (this == o) { @@ -533,96 +595,97 @@ public boolean equals(Object o) { (this.receivingAccountTaxId == null ? chargeResponsePaymentMethod.receivingAccountTaxId == null : this.receivingAccountTaxId.equals(chargeResponsePaymentMethod.receivingAccountTaxId)) && (this.referenceNumber == null ? chargeResponsePaymentMethod.referenceNumber == null : this.referenceNumber.equals(chargeResponsePaymentMethod.referenceNumber)) && (this.trackingCode == null ? chargeResponsePaymentMethod.trackingCode == null : this.trackingCode.equals(chargeResponsePaymentMethod.trackingCode)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.agreement == null ? 0: this.agreement.hashCode()); - result = 31 * result + (this.authCode == null ? 0: this.authCode.hashCode()); - result = 31 * result + (this.cashierId == null ? 0: this.cashierId.hashCode()); - result = 31 * result + (this.reference == null ? 0: this.reference.hashCode()); - result = 31 * result + (this.barcodeUrl == null ? 0: this.barcodeUrl.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.productType == null ? 0: this.productType.hashCode()); - result = 31 * result + (this.serviceName == null ? 0: this.serviceName.hashCode()); - result = 31 * result + (this.store == null ? 0: this.store.hashCode()); - result = 31 * result + (this.storeName == null ? 0: this.storeName.hashCode()); - result = 31 * result + (this.customerIpAddress == null ? 0: this.customerIpAddress.hashCode()); - result = 31 * result + (this.accountType == null ? 0: this.accountType.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.contractId == null ? 0: this.contractId.hashCode()); - result = 31 * result + (this.country == null ? 0: this.country.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.fraudIndicators == null ? 0: this.fraudIndicators.hashCode()); - result = 31 * result + (this.issuer == null ? 0: this.issuer.hashCode()); - result = 31 * result + (this.last4 == null ? 0: this.last4.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.bank == null ? 0: this.bank.hashCode()); - result = 31 * result + (this.clabe == null ? 0: this.clabe.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.executedAt == null ? 0: this.executedAt.hashCode()); - result = 31 * result + (this.issuingAccountBank == null ? 0: this.issuingAccountBank.hashCode()); - result = 31 * result + (this.issuingAccountNumber == null ? 0: this.issuingAccountNumber.hashCode()); - result = 31 * result + (this.issuingAccountHolderName == null ? 0: this.issuingAccountHolderName.hashCode()); - result = 31 * result + (this.issuingAccountTaxId == null ? 0: this.issuingAccountTaxId.hashCode()); - result = 31 * result + (this.paymentAttempts == null ? 0: this.paymentAttempts.hashCode()); - result = 31 * result + (this.receivingAccountHolderName == null ? 0: this.receivingAccountHolderName.hashCode()); - result = 31 * result + (this.receivingAccountNumber == null ? 0: this.receivingAccountNumber.hashCode()); - result = 31 * result + (this.receivingAccountBank == null ? 0: this.receivingAccountBank.hashCode()); - result = 31 * result + (this.receivingAccountTaxId == null ? 0: this.receivingAccountTaxId.hashCode()); - result = 31 * result + (this.referenceNumber == null ? 0: this.referenceNumber.hashCode()); - result = 31 * result + (this.trackingCode == null ? 0: this.trackingCode.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.agreement == null ? 0 : this.agreement.hashCode()); + result = 31 * result + (this.authCode == null ? 0 : this.authCode.hashCode()); + result = 31 * result + (this.cashierId == null ? 0 : this.cashierId.hashCode()); + result = 31 * result + (this.reference == null ? 0 : this.reference.hashCode()); + result = 31 * result + (this.barcodeUrl == null ? 0 : this.barcodeUrl.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.productType == null ? 0 : this.productType.hashCode()); + result = 31 * result + (this.serviceName == null ? 0 : this.serviceName.hashCode()); + result = 31 * result + (this.store == null ? 0 : this.store.hashCode()); + result = 31 * result + (this.storeName == null ? 0 : this.storeName.hashCode()); + result = 31 * result + (this.customerIpAddress == null ? 0 : this.customerIpAddress.hashCode()); + result = 31 * result + (this.accountType == null ? 0 : this.accountType.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.contractId == null ? 0 : this.contractId.hashCode()); + result = 31 * result + (this.country == null ? 0 : this.country.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.fraudIndicators == null ? 0 : this.fraudIndicators.hashCode()); + result = 31 * result + (this.issuer == null ? 0 : this.issuer.hashCode()); + result = 31 * result + (this.last4 == null ? 0 : this.last4.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.bank == null ? 0 : this.bank.hashCode()); + result = 31 * result + (this.clabe == null ? 0 : this.clabe.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.executedAt == null ? 0 : this.executedAt.hashCode()); + result = 31 * result + (this.issuingAccountBank == null ? 0 : this.issuingAccountBank.hashCode()); + result = 31 * result + (this.issuingAccountNumber == null ? 0 : this.issuingAccountNumber.hashCode()); + result = 31 * result + (this.issuingAccountHolderName == null ? 0 : this.issuingAccountHolderName.hashCode()); + result = 31 * result + (this.issuingAccountTaxId == null ? 0 : this.issuingAccountTaxId.hashCode()); + result = 31 * result + (this.paymentAttempts == null ? 0 : this.paymentAttempts.hashCode()); + result = 31 * result + (this.receivingAccountHolderName == null ? 0 : this.receivingAccountHolderName.hashCode()); + result = 31 * result + (this.receivingAccountNumber == null ? 0 : this.receivingAccountNumber.hashCode()); + result = 31 * result + (this.receivingAccountBank == null ? 0 : this.receivingAccountBank.hashCode()); + result = 31 * result + (this.receivingAccountTaxId == null ? 0 : this.receivingAccountTaxId.hashCode()); + result = 31 * result + (this.referenceNumber == null ? 0 : this.referenceNumber.hashCode()); + result = 31 * result + (this.trackingCode == null ? 0 : this.trackingCode.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeResponsePaymentMethod {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" agreement: ").append(agreement).append("\n"); - sb.append(" authCode: ").append(authCode).append("\n"); - sb.append(" cashierId: ").append(cashierId).append("\n"); - sb.append(" reference: ").append(reference).append("\n"); - sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" productType: ").append(productType).append("\n"); - sb.append(" serviceName: ").append(serviceName).append("\n"); - sb.append(" store: ").append(store).append("\n"); - sb.append(" storeName: ").append(storeName).append("\n"); - sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); - sb.append(" accountType: ").append(accountType).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" contractId: ").append(contractId).append("\n"); - sb.append(" country: ").append(country).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" fraudIndicators: ").append(fraudIndicators).append("\n"); - sb.append(" issuer: ").append(issuer).append("\n"); - sb.append(" last4: ").append(last4).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" bank: ").append(bank).append("\n"); - sb.append(" clabe: ").append(clabe).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" executedAt: ").append(executedAt).append("\n"); - sb.append(" issuingAccountBank: ").append(issuingAccountBank).append("\n"); - sb.append(" issuingAccountNumber: ").append(issuingAccountNumber).append("\n"); - sb.append(" issuingAccountHolderName: ").append(issuingAccountHolderName).append("\n"); - sb.append(" issuingAccountTaxId: ").append(issuingAccountTaxId).append("\n"); - sb.append(" paymentAttempts: ").append(paymentAttempts).append("\n"); - sb.append(" receivingAccountHolderName: ").append(receivingAccountHolderName).append("\n"); - sb.append(" receivingAccountNumber: ").append(receivingAccountNumber).append("\n"); - sb.append(" receivingAccountBank: ").append(receivingAccountBank).append("\n"); - sb.append(" receivingAccountTaxId: ").append(receivingAccountTaxId).append("\n"); - sb.append(" referenceNumber: ").append(referenceNumber).append("\n"); - sb.append(" trackingCode: ").append(trackingCode).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" agreement: ").append(agreement).append("\n"); +sb.append(" authCode: ").append(authCode).append("\n"); +sb.append(" cashierId: ").append(cashierId).append("\n"); +sb.append(" reference: ").append(reference).append("\n"); +sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" productType: ").append(productType).append("\n"); +sb.append(" serviceName: ").append(serviceName).append("\n"); +sb.append(" store: ").append(store).append("\n"); +sb.append(" storeName: ").append(storeName).append("\n"); +sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); +sb.append(" accountType: ").append(accountType).append("\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" contractId: ").append(contractId).append("\n"); +sb.append(" country: ").append(country).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" fraudIndicators: ").append(fraudIndicators).append("\n"); +sb.append(" issuer: ").append(issuer).append("\n"); +sb.append(" last4: ").append(last4).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" bank: ").append(bank).append("\n"); +sb.append(" clabe: ").append(clabe).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" executedAt: ").append(executedAt).append("\n"); +sb.append(" issuingAccountBank: ").append(issuingAccountBank).append("\n"); +sb.append(" issuingAccountNumber: ").append(issuingAccountNumber).append("\n"); +sb.append(" issuingAccountHolderName: ").append(issuingAccountHolderName).append("\n"); +sb.append(" issuingAccountTaxId: ").append(issuingAccountTaxId).append("\n"); +sb.append(" paymentAttempts: ").append(paymentAttempts).append("\n"); +sb.append(" receivingAccountHolderName: ").append(receivingAccountHolderName).append("\n"); +sb.append(" receivingAccountNumber: ").append(receivingAccountNumber).append("\n"); +sb.append(" receivingAccountBank: ").append(receivingAccountBank).append("\n"); +sb.append(" receivingAccountTaxId: ").append(receivingAccountTaxId).append("\n"); +sb.append(" referenceNumber: ").append(referenceNumber).append("\n"); +sb.append(" trackingCode: ").append(trackingCode).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargeResponseRefunds.java b/src/main/java/io/conekta/model/ChargeResponseRefunds.java index 6f9fcca..12c3559 100644 --- a/src/main/java/io/conekta/model/ChargeResponseRefunds.java +++ b/src/main/java/io/conekta/model/ChargeResponseRefunds.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ChargeResponseRefunds { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,60 +25,65 @@ public class ChargeResponseRefunds { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** * refunds + * **/ @ApiModelProperty(value = "refunds") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -96,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? chargeResponseRefunds.nextPageUrl == null : this.nextPageUrl.equals(chargeResponseRefunds.nextPageUrl)) && (this.previousPageUrl == null ? chargeResponseRefunds.previousPageUrl == null : this.previousPageUrl.equals(chargeResponseRefunds.previousPageUrl)) && (this.data == null ? chargeResponseRefunds.data == null : this.data.equals(chargeResponseRefunds.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeResponseRefunds {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargeResponseRefundsData.java b/src/main/java/io/conekta/model/ChargeResponseRefundsData.java index 4db9134..e5bd796 100644 --- a/src/main/java/io/conekta/model/ChargeResponseRefundsData.java +++ b/src/main/java/io/conekta/model/ChargeResponseRefundsData.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ChargeResponseRefundsData { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("auth_code") @@ -29,78 +26,90 @@ public class ChargeResponseRefundsData { private String status = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** + * + * **/ @ApiModelProperty(value = "") public String getAuthCode() { return authCode; } + public void setAuthCode(String authCode) { this.authCode = authCode; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * refund expiration date + * **/ @ApiModelProperty(value = "refund expiration date") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * refund status + * **/ @ApiModelProperty(value = "refund status") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { @@ -117,34 +126,35 @@ public boolean equals(Object o) { (this.id == null ? chargeResponseRefundsData.id == null : this.id.equals(chargeResponseRefundsData.id)) && (this._object == null ? chargeResponseRefundsData._object == null : this._object.equals(chargeResponseRefundsData._object)) && (this.status == null ? chargeResponseRefundsData.status == null : this.status.equals(chargeResponseRefundsData.status)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.authCode == null ? 0: this.authCode.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.authCode == null ? 0 : this.authCode.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeResponseRefundsData {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" authCode: ").append(authCode).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append("}\n"); +sb.append(" authCode: ").append(authCode).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" status: ").append(status).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargeUpdateRequest.java b/src/main/java/io/conekta/model/ChargeUpdateRequest.java index 9313a8a..5db5cd6 100644 --- a/src/main/java/io/conekta/model/ChargeUpdateRequest.java +++ b/src/main/java/io/conekta/model/ChargeUpdateRequest.java @@ -2,35 +2,33 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * requested field for update a charge **/ @ApiModel(description = "requested field for update a charge") public class ChargeUpdateRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("reference_id") private String referenceId = null; /** * custom reference id + * **/ @ApiModelProperty(value = "custom reference id") public String getReferenceId() { return referenceId; } + public void setReferenceId(String referenceId) { this.referenceId = referenceId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -41,22 +39,23 @@ public boolean equals(Object o) { } ChargeUpdateRequest chargeUpdateRequest = (ChargeUpdateRequest) o; return (this.referenceId == null ? chargeUpdateRequest.referenceId == null : this.referenceId.equals(chargeUpdateRequest.referenceId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.referenceId == null ? 0: this.referenceId.hashCode()); + result = 31 * result + (this.referenceId == null ? 0 : this.referenceId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeUpdateRequest {\n"); sb.append(" referenceId: ").append(referenceId).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargesDataResponse.java b/src/main/java/io/conekta/model/ChargesDataResponse.java index 72d26ad..58541e7 100644 --- a/src/main/java/io/conekta/model/ChargesDataResponse.java +++ b/src/main/java/io/conekta/model/ChargesDataResponse.java @@ -5,17 +5,14 @@ import io.conekta.model.ChargeResponseRefunds; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ChargesDataResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("channel") @@ -54,191 +51,222 @@ public class ChargesDataResponse { private String status = null; /** + * + * **/ @ApiModelProperty(value = "") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponseChannel getChannel() { return channel; } + public void setChannel(ChargeResponseChannel channel) { this.channel = channel; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDeviceFingerprint() { return deviceFingerprint; } + public void setDeviceFingerprint(String deviceFingerprint) { this.deviceFingerprint = deviceFingerprint; } - /** + * + * **/ @ApiModelProperty(value = "") public String getFailureCode() { return failureCode; } + public void setFailureCode(String failureCode) { this.failureCode = failureCode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getFailureMessage() { return failureMessage; } + public void setFailureMessage(String failureMessage) { this.failureMessage = failureMessage; } - /** * Charge ID + * **/ @ApiModelProperty(value = "Charge ID") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Whether the charge was made in live mode or not + * **/ @ApiModelProperty(value = "Whether the charge was made in live mode or not") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Order ID + * **/ @ApiModelProperty(value = "Order ID") public String getOrderId() { return orderId; } + public void setOrderId(String orderId) { this.orderId = orderId; } - /** * Payment date + * **/ @ApiModelProperty(value = "Payment date") public Long getPaidAt() { return paidAt; } + public void setPaidAt(Long paidAt) { this.paidAt = paidAt; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponsePaymentMethod getPaymentMethod() { return paymentMethod; } + public void setPaymentMethod(ChargeResponsePaymentMethod paymentMethod) { this.paymentMethod = paymentMethod; } - /** * Reference ID of the charge + * **/ @ApiModelProperty(value = "Reference ID of the charge") public String getReferenceId() { return referenceId; } + public void setReferenceId(String referenceId) { this.referenceId = referenceId; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponseRefunds getRefunds() { return refunds; } + public void setRefunds(ChargeResponseRefunds refunds) { this.refunds = refunds; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { @@ -266,56 +294,57 @@ public boolean equals(Object o) { (this.referenceId == null ? chargesDataResponse.referenceId == null : this.referenceId.equals(chargesDataResponse.referenceId)) && (this.refunds == null ? chargesDataResponse.refunds == null : this.refunds.equals(chargesDataResponse.refunds)) && (this.status == null ? chargesDataResponse.status == null : this.status.equals(chargesDataResponse.status)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.channel == null ? 0: this.channel.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.deviceFingerprint == null ? 0: this.deviceFingerprint.hashCode()); - result = 31 * result + (this.failureCode == null ? 0: this.failureCode.hashCode()); - result = 31 * result + (this.failureMessage == null ? 0: this.failureMessage.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.orderId == null ? 0: this.orderId.hashCode()); - result = 31 * result + (this.paidAt == null ? 0: this.paidAt.hashCode()); - result = 31 * result + (this.paymentMethod == null ? 0: this.paymentMethod.hashCode()); - result = 31 * result + (this.referenceId == null ? 0: this.referenceId.hashCode()); - result = 31 * result + (this.refunds == null ? 0: this.refunds.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.channel == null ? 0 : this.channel.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.deviceFingerprint == null ? 0 : this.deviceFingerprint.hashCode()); + result = 31 * result + (this.failureCode == null ? 0 : this.failureCode.hashCode()); + result = 31 * result + (this.failureMessage == null ? 0 : this.failureMessage.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.orderId == null ? 0 : this.orderId.hashCode()); + result = 31 * result + (this.paidAt == null ? 0 : this.paidAt.hashCode()); + result = 31 * result + (this.paymentMethod == null ? 0 : this.paymentMethod.hashCode()); + result = 31 * result + (this.referenceId == null ? 0 : this.referenceId.hashCode()); + result = 31 * result + (this.refunds == null ? 0 : this.refunds.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargesDataResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" channel: ").append(channel).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" customerId: ").append(customerId).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" deviceFingerprint: ").append(deviceFingerprint).append("\n"); - sb.append(" failureCode: ").append(failureCode).append("\n"); - sb.append(" failureMessage: ").append(failureMessage).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" orderId: ").append(orderId).append("\n"); - sb.append(" paidAt: ").append(paidAt).append("\n"); - sb.append(" paymentMethod: ").append(paymentMethod).append("\n"); - sb.append(" referenceId: ").append(referenceId).append("\n"); - sb.append(" refunds: ").append(refunds).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append("}\n"); +sb.append(" channel: ").append(channel).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" customerId: ").append(customerId).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" deviceFingerprint: ").append(deviceFingerprint).append("\n"); +sb.append(" failureCode: ").append(failureCode).append("\n"); +sb.append(" failureMessage: ").append(failureMessage).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" orderId: ").append(orderId).append("\n"); +sb.append(" paidAt: ").append(paidAt).append("\n"); +sb.append(" paymentMethod: ").append(paymentMethod).append("\n"); +sb.append(" referenceId: ").append(referenceId).append("\n"); +sb.append(" refunds: ").append(refunds).append("\n"); +sb.append(" status: ").append(status).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargesOrderResponse.java b/src/main/java/io/conekta/model/ChargesOrderResponse.java index d9b32a6..86f3c6b 100644 --- a/src/main/java/io/conekta/model/ChargesOrderResponse.java +++ b/src/main/java/io/conekta/model/ChargesOrderResponse.java @@ -4,20 +4,17 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * The charges associated with the order **/ @ApiModel(description = "The charges associated with the order") public class ChargesOrderResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -27,37 +24,41 @@ public class ChargesOrderResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -70,26 +71,27 @@ public boolean equals(Object o) { return (this.hasMore == null ? chargesOrderResponse.hasMore == null : this.hasMore.equals(chargesOrderResponse.hasMore)) && (this._object == null ? chargesOrderResponse._object == null : this._object.equals(chargesOrderResponse._object)) && (this.data == null ? chargesOrderResponse.data == null : this.data.equals(chargesOrderResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargesOrderResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ChargesOrderResponseAllOfData.java b/src/main/java/io/conekta/model/ChargesOrderResponseAllOfData.java index a123335..31188ef 100644 --- a/src/main/java/io/conekta/model/ChargesOrderResponseAllOfData.java +++ b/src/main/java/io/conekta/model/ChargesOrderResponseAllOfData.java @@ -5,17 +5,14 @@ import io.conekta.model.ChargeResponseRefunds; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ChargesOrderResponseAllOfData { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("channel") @@ -54,191 +51,222 @@ public class ChargesOrderResponseAllOfData { private String status = null; /** + * + * **/ @ApiModelProperty(value = "") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponseChannel getChannel() { return channel; } + public void setChannel(ChargeResponseChannel channel) { this.channel = channel; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDeviceFingerprint() { return deviceFingerprint; } + public void setDeviceFingerprint(String deviceFingerprint) { this.deviceFingerprint = deviceFingerprint; } - /** + * + * **/ @ApiModelProperty(value = "") public String getFailureCode() { return failureCode; } + public void setFailureCode(String failureCode) { this.failureCode = failureCode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getFailureMessage() { return failureMessage; } + public void setFailureMessage(String failureMessage) { this.failureMessage = failureMessage; } - /** * Charge ID + * **/ @ApiModelProperty(value = "Charge ID") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Whether the charge was made in live mode or not + * **/ @ApiModelProperty(value = "Whether the charge was made in live mode or not") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Order ID + * **/ @ApiModelProperty(value = "Order ID") public String getOrderId() { return orderId; } + public void setOrderId(String orderId) { this.orderId = orderId; } - /** * Payment date + * **/ @ApiModelProperty(value = "Payment date") public Long getPaidAt() { return paidAt; } + public void setPaidAt(Long paidAt) { this.paidAt = paidAt; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponsePaymentMethod getPaymentMethod() { return paymentMethod; } + public void setPaymentMethod(ChargeResponsePaymentMethod paymentMethod) { this.paymentMethod = paymentMethod; } - /** * Reference ID of the charge + * **/ @ApiModelProperty(value = "Reference ID of the charge") public String getReferenceId() { return referenceId; } + public void setReferenceId(String referenceId) { this.referenceId = referenceId; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponseRefunds getRefunds() { return refunds; } + public void setRefunds(ChargeResponseRefunds refunds) { this.refunds = refunds; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { @@ -266,56 +294,57 @@ public boolean equals(Object o) { (this.referenceId == null ? chargesOrderResponseAllOfData.referenceId == null : this.referenceId.equals(chargesOrderResponseAllOfData.referenceId)) && (this.refunds == null ? chargesOrderResponseAllOfData.refunds == null : this.refunds.equals(chargesOrderResponseAllOfData.refunds)) && (this.status == null ? chargesOrderResponseAllOfData.status == null : this.status.equals(chargesOrderResponseAllOfData.status)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.channel == null ? 0: this.channel.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.deviceFingerprint == null ? 0: this.deviceFingerprint.hashCode()); - result = 31 * result + (this.failureCode == null ? 0: this.failureCode.hashCode()); - result = 31 * result + (this.failureMessage == null ? 0: this.failureMessage.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.orderId == null ? 0: this.orderId.hashCode()); - result = 31 * result + (this.paidAt == null ? 0: this.paidAt.hashCode()); - result = 31 * result + (this.paymentMethod == null ? 0: this.paymentMethod.hashCode()); - result = 31 * result + (this.referenceId == null ? 0: this.referenceId.hashCode()); - result = 31 * result + (this.refunds == null ? 0: this.refunds.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.channel == null ? 0 : this.channel.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.deviceFingerprint == null ? 0 : this.deviceFingerprint.hashCode()); + result = 31 * result + (this.failureCode == null ? 0 : this.failureCode.hashCode()); + result = 31 * result + (this.failureMessage == null ? 0 : this.failureMessage.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.orderId == null ? 0 : this.orderId.hashCode()); + result = 31 * result + (this.paidAt == null ? 0 : this.paidAt.hashCode()); + result = 31 * result + (this.paymentMethod == null ? 0 : this.paymentMethod.hashCode()); + result = 31 * result + (this.referenceId == null ? 0 : this.referenceId.hashCode()); + result = 31 * result + (this.refunds == null ? 0 : this.refunds.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargesOrderResponseAllOfData {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" channel: ").append(channel).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" customerId: ").append(customerId).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" deviceFingerprint: ").append(deviceFingerprint).append("\n"); - sb.append(" failureCode: ").append(failureCode).append("\n"); - sb.append(" failureMessage: ").append(failureMessage).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" orderId: ").append(orderId).append("\n"); - sb.append(" paidAt: ").append(paidAt).append("\n"); - sb.append(" paymentMethod: ").append(paymentMethod).append("\n"); - sb.append(" referenceId: ").append(referenceId).append("\n"); - sb.append(" refunds: ").append(refunds).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append("}\n"); +sb.append(" channel: ").append(channel).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" customerId: ").append(customerId).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" deviceFingerprint: ").append(deviceFingerprint).append("\n"); +sb.append(" failureCode: ").append(failureCode).append("\n"); +sb.append(" failureMessage: ").append(failureMessage).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" orderId: ").append(orderId).append("\n"); +sb.append(" paidAt: ").append(paidAt).append("\n"); +sb.append(" paymentMethod: ").append(paymentMethod).append("\n"); +sb.append(" referenceId: ").append(referenceId).append("\n"); +sb.append(" refunds: ").append(refunds).append("\n"); +sb.append(" status: ").append(status).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/Checkout.java b/src/main/java/io/conekta/model/Checkout.java index b779042..37da583 100644 --- a/src/main/java/io/conekta/model/Checkout.java +++ b/src/main/java/io/conekta/model/Checkout.java @@ -4,20 +4,17 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * It is a sub-resource of the Order model that can be stipulated in order to configure its corresponding checkout **/ @ApiModel(description = "It is a sub-resource of the Order model that can be stipulated in order to configure its corresponding checkout") public class Checkout { - + private static final String MXN = "MXN"; - - + @SerializedName("allowed_payment_methods") private List allowedPaymentMethods = null; @SerializedName("expires_at") @@ -45,136 +42,149 @@ public class Checkout { /** * Those are the payment methods that will be available for the link + * **/ @ApiModelProperty(required = true, value = "Those are the payment methods that will be available for the link") public List getAllowedPaymentMethods() { return allowedPaymentMethods; } + public void setAllowedPaymentMethods(List allowedPaymentMethods) { this.allowedPaymentMethods = allowedPaymentMethods; } - /** * It is the time when the link will expire. It is expressed in seconds since the Unix epoch. The valid range is from 2 to 365 days (the valid range will be taken from the next day of the creation date at 00:01 hrs) + * **/ @ApiModelProperty(required = true, value = "It is the time when the link will expire. It is expressed in seconds since the Unix epoch. The valid range is from 2 to 365 days (the valid range will be taken from the next day of the creation date at 00:01 hrs) ") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * This flag allows you to specify if months without interest will be active. + * **/ @ApiModelProperty(value = "This flag allows you to specify if months without interest will be active.") public Boolean getMonthlyInstallmentsEnabled() { return monthlyInstallmentsEnabled; } + public void setMonthlyInstallmentsEnabled(Boolean monthlyInstallmentsEnabled) { this.monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; } - /** * This field allows you to specify the number of months without interest. + * **/ @ApiModelProperty(value = "This field allows you to specify the number of months without interest.") public List getMonthlyInstallmentsOptions() { return monthlyInstallmentsOptions; } + public void setMonthlyInstallmentsOptions(List monthlyInstallmentsOptions) { this.monthlyInstallmentsOptions = monthlyInstallmentsOptions; } - /** * Indicates the 3DS2 mode for the order, either smart or strict. + * **/ @ApiModelProperty(value = "Indicates the 3DS2 mode for the order, either smart or strict.") public String getThreeDsMode() { return threeDsMode; } + public void setThreeDsMode(String threeDsMode) { this.threeDsMode = threeDsMode; } - /** * Reason for charge + * **/ @ApiModelProperty(required = true, value = "Reason for charge") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * This flag allows you to fill in the shipping information at checkout. + * **/ @ApiModelProperty(value = "This flag allows you to fill in the shipping information at checkout.") public Boolean getNeedsShippingContact() { return needsShippingContact; } + public void setNeedsShippingContact(Boolean needsShippingContact) { this.needsShippingContact = needsShippingContact; } - /** * This flag allows you to specify if the link will be on demand. + * **/ @ApiModelProperty(value = "This flag allows you to specify if the link will be on demand.") public Boolean getOnDemandEnabled() { return onDemandEnabled; } + public void setOnDemandEnabled(Boolean onDemandEnabled) { this.onDemandEnabled = onDemandEnabled; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public CheckoutOrderTemplate getOrderTemplate() { return orderTemplate; } + public void setOrderTemplate(CheckoutOrderTemplate orderTemplate) { this.orderTemplate = orderTemplate; } - /** * It is the number of payments that can be made through the link. + * **/ @ApiModelProperty(value = "It is the number of payments that can be made through the link.") public Integer getPaymentsLimitCount() { return paymentsLimitCount; } + public void setPaymentsLimitCount(Integer paymentsLimitCount) { this.paymentsLimitCount = paymentsLimitCount; } - /** * false: single use. true: multiple payments + * **/ @ApiModelProperty(required = true, value = "false: single use. true: multiple payments") public Boolean getRecurrent() { return recurrent; } + public void setRecurrent(Boolean recurrent) { this.recurrent = recurrent; } - /** * It is the type of link that will be created. It must be a valid type. + * **/ @ApiModelProperty(required = true, value = "It is the type of link that will be created. It must be a valid type.") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -196,44 +206,45 @@ public boolean equals(Object o) { (this.paymentsLimitCount == null ? checkout.paymentsLimitCount == null : this.paymentsLimitCount.equals(checkout.paymentsLimitCount)) && (this.recurrent == null ? checkout.recurrent == null : this.recurrent.equals(checkout.recurrent)) && (this.type == null ? checkout.type == null : this.type.equals(checkout.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.allowedPaymentMethods == null ? 0: this.allowedPaymentMethods.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.monthlyInstallmentsEnabled == null ? 0: this.monthlyInstallmentsEnabled.hashCode()); - result = 31 * result + (this.monthlyInstallmentsOptions == null ? 0: this.monthlyInstallmentsOptions.hashCode()); - result = 31 * result + (this.threeDsMode == null ? 0: this.threeDsMode.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.needsShippingContact == null ? 0: this.needsShippingContact.hashCode()); - result = 31 * result + (this.onDemandEnabled == null ? 0: this.onDemandEnabled.hashCode()); - result = 31 * result + (this.orderTemplate == null ? 0: this.orderTemplate.hashCode()); - result = 31 * result + (this.paymentsLimitCount == null ? 0: this.paymentsLimitCount.hashCode()); - result = 31 * result + (this.recurrent == null ? 0: this.recurrent.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.allowedPaymentMethods == null ? 0 : this.allowedPaymentMethods.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.monthlyInstallmentsEnabled == null ? 0 : this.monthlyInstallmentsEnabled.hashCode()); + result = 31 * result + (this.monthlyInstallmentsOptions == null ? 0 : this.monthlyInstallmentsOptions.hashCode()); + result = 31 * result + (this.threeDsMode == null ? 0 : this.threeDsMode.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.needsShippingContact == null ? 0 : this.needsShippingContact.hashCode()); + result = 31 * result + (this.onDemandEnabled == null ? 0 : this.onDemandEnabled.hashCode()); + result = 31 * result + (this.orderTemplate == null ? 0 : this.orderTemplate.hashCode()); + result = 31 * result + (this.paymentsLimitCount == null ? 0 : this.paymentsLimitCount.hashCode()); + result = 31 * result + (this.recurrent == null ? 0 : this.recurrent.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Checkout {\n"); sb.append(" allowedPaymentMethods: ").append(allowedPaymentMethods).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" monthlyInstallmentsEnabled: ").append(monthlyInstallmentsEnabled).append("\n"); - sb.append(" monthlyInstallmentsOptions: ").append(monthlyInstallmentsOptions).append("\n"); - sb.append(" threeDsMode: ").append(threeDsMode).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" needsShippingContact: ").append(needsShippingContact).append("\n"); - sb.append(" onDemandEnabled: ").append(onDemandEnabled).append("\n"); - sb.append(" orderTemplate: ").append(orderTemplate).append("\n"); - sb.append(" paymentsLimitCount: ").append(paymentsLimitCount).append("\n"); - sb.append(" recurrent: ").append(recurrent).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" monthlyInstallmentsEnabled: ").append(monthlyInstallmentsEnabled).append("\n"); +sb.append(" monthlyInstallmentsOptions: ").append(monthlyInstallmentsOptions).append("\n"); +sb.append(" threeDsMode: ").append(threeDsMode).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" needsShippingContact: ").append(needsShippingContact).append("\n"); +sb.append(" onDemandEnabled: ").append(onDemandEnabled).append("\n"); +sb.append(" orderTemplate: ").append(orderTemplate).append("\n"); +sb.append(" paymentsLimitCount: ").append(paymentsLimitCount).append("\n"); +sb.append(" recurrent: ").append(recurrent).append("\n"); +sb.append(" type: ").append(type).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CheckoutOrderTemplate.java b/src/main/java/io/conekta/model/CheckoutOrderTemplate.java index b7317f8..f167910 100644 --- a/src/main/java/io/conekta/model/CheckoutOrderTemplate.java +++ b/src/main/java/io/conekta/model/CheckoutOrderTemplate.java @@ -7,20 +7,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * It maintains the attributes with which the order will be created when receiving a new payment. **/ @ApiModel(description = "It maintains the attributes with which the order will be created when receiving a new payment.") public class CheckoutOrderTemplate { - + private static final String MXN = "MXN"; - - + @SerializedName("currency") private String currency = null; @SerializedName("customer_info") @@ -32,48 +29,53 @@ public class CheckoutOrderTemplate { /** * It is the currency in which the order will be created. It must be a valid ISO 4217 currency code. + * **/ @ApiModelProperty(required = true, value = "It is the currency in which the order will be created. It must be a valid ISO 4217 currency code.") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(value = "") public CheckoutOrderTemplateCustomerInfo getCustomerInfo() { return customerInfo; } + public void setCustomerInfo(CheckoutOrderTemplateCustomerInfo customerInfo) { this.customerInfo = customerInfo; } - /** * They are the products to buy. Each contains the \"unit price\" and \"quantity\" parameters that are used to calculate the total amount of the order. + * **/ @ApiModelProperty(required = true, value = "They are the products to buy. Each contains the \"unit price\" and \"quantity\" parameters that are used to calculate the total amount of the order.") public List getLineItems() { return lineItems; } + public void setLineItems(List lineItems) { this.lineItems = lineItems; } - /** * It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format. + * **/ @ApiModelProperty(value = "It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format.") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - @Override public boolean equals(Object o) { if (this == o) { @@ -87,28 +89,29 @@ public boolean equals(Object o) { (this.customerInfo == null ? checkoutOrderTemplate.customerInfo == null : this.customerInfo.equals(checkoutOrderTemplate.customerInfo)) && (this.lineItems == null ? checkoutOrderTemplate.lineItems == null : this.lineItems.equals(checkoutOrderTemplate.lineItems)) && (this.metadata == null ? checkoutOrderTemplate.metadata == null : this.metadata.equals(checkoutOrderTemplate.metadata)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.customerInfo == null ? 0: this.customerInfo.hashCode()); - result = 31 * result + (this.lineItems == null ? 0: this.lineItems.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.customerInfo == null ? 0 : this.customerInfo.hashCode()); + result = 31 * result + (this.lineItems == null ? 0 : this.lineItems.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckoutOrderTemplate {\n"); sb.append(" currency: ").append(currency).append("\n"); - sb.append(" customerInfo: ").append(customerInfo).append("\n"); - sb.append(" lineItems: ").append(lineItems).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append("}\n"); +sb.append(" customerInfo: ").append(customerInfo).append("\n"); +sb.append(" lineItems: ").append(lineItems).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CheckoutOrderTemplateCustomerInfo.java b/src/main/java/io/conekta/model/CheckoutOrderTemplateCustomerInfo.java index 507c5e7..b24a0a2 100644 --- a/src/main/java/io/conekta/model/CheckoutOrderTemplateCustomerInfo.java +++ b/src/main/java/io/conekta/model/CheckoutOrderTemplateCustomerInfo.java @@ -4,20 +4,17 @@ import io.conekta.model.CustomerInfoJustCustomerId; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * It is the information of the customer who will be created when receiving a new payment. **/ @ApiModel(description = "It is the information of the customer who will be created when receiving a new payment.") public class CheckoutOrderTemplateCustomerInfo { - + private static final String MXN = "MXN"; - - + @SerializedName("name") private String name = null; @SerializedName("email") @@ -32,66 +29,78 @@ public class CheckoutOrderTemplateCustomerInfo { private String customerId = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getCorporate() { return corporate; } + public void setCorporate(Boolean corporate) { this.corporate = corporate; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -107,32 +116,33 @@ public boolean equals(Object o) { (this.corporate == null ? checkoutOrderTemplateCustomerInfo.corporate == null : this.corporate.equals(checkoutOrderTemplateCustomerInfo.corporate)) && (this._object == null ? checkoutOrderTemplateCustomerInfo._object == null : this._object.equals(checkoutOrderTemplateCustomerInfo._object)) && (this.customerId == null ? checkoutOrderTemplateCustomerInfo.customerId == null : this.customerId.equals(checkoutOrderTemplateCustomerInfo.customerId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.corporate == null ? 0: this.corporate.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.corporate == null ? 0 : this.corporate.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckoutOrderTemplateCustomerInfo {\n"); sb.append(" name: ").append(name).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" corporate: ").append(corporate).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" customerId: ").append(customerId).append("\n"); - sb.append("}\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" corporate: ").append(corporate).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" customerId: ").append(customerId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CheckoutRequest.java b/src/main/java/io/conekta/model/CheckoutRequest.java index ec26bfa..6d33e59 100644 --- a/src/main/java/io/conekta/model/CheckoutRequest.java +++ b/src/main/java/io/conekta/model/CheckoutRequest.java @@ -3,20 +3,17 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * [Checkout](https://developers.conekta.com/v2.1.0/reference/payment-link) details **/ @ApiModel(description = "[Checkout](https://developers.conekta.com/v2.1.0/reference/payment-link) details ") public class CheckoutRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("allowed_payment_methods") private List allowedPaymentMethods = null; @SerializedName("expires_at") @@ -42,123 +39,137 @@ public class CheckoutRequest { /** * Are the payment methods available for this link + * **/ @ApiModelProperty(required = true, value = "Are the payment methods available for this link") public List getAllowedPaymentMethods() { return allowedPaymentMethods; } + public void setAllowedPaymentMethods(List allowedPaymentMethods) { this.allowedPaymentMethods = allowedPaymentMethods; } - /** * Unix timestamp of checkout expiration + * **/ @ApiModelProperty(value = "Unix timestamp of checkout expiration") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * Redirection url back to the site in case of failed payment, applies only to HostedPayment. + * **/ @ApiModelProperty(value = "Redirection url back to the site in case of failed payment, applies only to HostedPayment.") public String getFailureUrl() { return failureUrl; } + public void setFailureUrl(String failureUrl) { this.failureUrl = failureUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getMonthlyInstallmentsEnabled() { return monthlyInstallmentsEnabled; } + public void setMonthlyInstallmentsEnabled(Boolean monthlyInstallmentsEnabled) { this.monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; } - /** + * + * **/ @ApiModelProperty(value = "") public List getMonthlyInstallmentsOptions() { return monthlyInstallmentsOptions; } + public void setMonthlyInstallmentsOptions(List monthlyInstallmentsOptions) { this.monthlyInstallmentsOptions = monthlyInstallmentsOptions; } - /** * Number of retries allowed before the checkout is marked as failed + * **/ @ApiModelProperty(value = "Number of retries allowed before the checkout is marked as failed") public Integer getMaxFailedRetries() { return maxFailedRetries; } + public void setMaxFailedRetries(Integer maxFailedRetries) { this.maxFailedRetries = maxFailedRetries; } - /** * Reason for payment + * **/ @ApiModelProperty(value = "Reason for payment") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getOnDemandEnabled() { return onDemandEnabled; } + public void setOnDemandEnabled(Boolean onDemandEnabled) { this.onDemandEnabled = onDemandEnabled; } - /** * number of seconds to wait before redirecting to the success_url + * **/ @ApiModelProperty(value = "number of seconds to wait before redirecting to the success_url") public Integer getRedirectionTime() { return redirectionTime; } + public void setRedirectionTime(Integer redirectionTime) { this.redirectionTime = redirectionTime; } - /** * Redirection url back to the site in case of successful payment, applies only to HostedPayment + * **/ @ApiModelProperty(value = "Redirection url back to the site in case of successful payment, applies only to HostedPayment") public String getSuccessUrl() { return successUrl; } + public void setSuccessUrl(String successUrl) { this.successUrl = successUrl; } - /** * This field represents the type of checkout + * **/ @ApiModelProperty(value = "This field represents the type of checkout") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -179,42 +190,43 @@ public boolean equals(Object o) { (this.redirectionTime == null ? checkoutRequest.redirectionTime == null : this.redirectionTime.equals(checkoutRequest.redirectionTime)) && (this.successUrl == null ? checkoutRequest.successUrl == null : this.successUrl.equals(checkoutRequest.successUrl)) && (this.type == null ? checkoutRequest.type == null : this.type.equals(checkoutRequest.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.allowedPaymentMethods == null ? 0: this.allowedPaymentMethods.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.failureUrl == null ? 0: this.failureUrl.hashCode()); - result = 31 * result + (this.monthlyInstallmentsEnabled == null ? 0: this.monthlyInstallmentsEnabled.hashCode()); - result = 31 * result + (this.monthlyInstallmentsOptions == null ? 0: this.monthlyInstallmentsOptions.hashCode()); - result = 31 * result + (this.maxFailedRetries == null ? 0: this.maxFailedRetries.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.onDemandEnabled == null ? 0: this.onDemandEnabled.hashCode()); - result = 31 * result + (this.redirectionTime == null ? 0: this.redirectionTime.hashCode()); - result = 31 * result + (this.successUrl == null ? 0: this.successUrl.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.allowedPaymentMethods == null ? 0 : this.allowedPaymentMethods.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.failureUrl == null ? 0 : this.failureUrl.hashCode()); + result = 31 * result + (this.monthlyInstallmentsEnabled == null ? 0 : this.monthlyInstallmentsEnabled.hashCode()); + result = 31 * result + (this.monthlyInstallmentsOptions == null ? 0 : this.monthlyInstallmentsOptions.hashCode()); + result = 31 * result + (this.maxFailedRetries == null ? 0 : this.maxFailedRetries.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.onDemandEnabled == null ? 0 : this.onDemandEnabled.hashCode()); + result = 31 * result + (this.redirectionTime == null ? 0 : this.redirectionTime.hashCode()); + result = 31 * result + (this.successUrl == null ? 0 : this.successUrl.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckoutRequest {\n"); sb.append(" allowedPaymentMethods: ").append(allowedPaymentMethods).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" failureUrl: ").append(failureUrl).append("\n"); - sb.append(" monthlyInstallmentsEnabled: ").append(monthlyInstallmentsEnabled).append("\n"); - sb.append(" monthlyInstallmentsOptions: ").append(monthlyInstallmentsOptions).append("\n"); - sb.append(" maxFailedRetries: ").append(maxFailedRetries).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" onDemandEnabled: ").append(onDemandEnabled).append("\n"); - sb.append(" redirectionTime: ").append(redirectionTime).append("\n"); - sb.append(" successUrl: ").append(successUrl).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" failureUrl: ").append(failureUrl).append("\n"); +sb.append(" monthlyInstallmentsEnabled: ").append(monthlyInstallmentsEnabled).append("\n"); +sb.append(" monthlyInstallmentsOptions: ").append(monthlyInstallmentsOptions).append("\n"); +sb.append(" maxFailedRetries: ").append(maxFailedRetries).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" onDemandEnabled: ").append(onDemandEnabled).append("\n"); +sb.append(" redirectionTime: ").append(redirectionTime).append("\n"); +sb.append(" successUrl: ").append(successUrl).append("\n"); +sb.append(" type: ").append(type).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CheckoutResponse.java b/src/main/java/io/conekta/model/CheckoutResponse.java index 916258e..36e0ea9 100644 --- a/src/main/java/io/conekta/model/CheckoutResponse.java +++ b/src/main/java/io/conekta/model/CheckoutResponse.java @@ -6,20 +6,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * checkout response **/ @ApiModel(description = "checkout response") public class CheckoutResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("allowed_payment_methods") private List allowedPaymentMethods = null; @SerializedName("can_not_expire") @@ -72,257 +69,306 @@ public class CheckoutResponse { private URI url = null; /** + * + * **/ @ApiModelProperty(value = "") public List getAllowedPaymentMethods() { return allowedPaymentMethods; } + public void setAllowedPaymentMethods(List allowedPaymentMethods) { this.allowedPaymentMethods = allowedPaymentMethods; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getCanNotExpire() { return canNotExpire; } + public void setCanNotExpire(Boolean canNotExpire) { this.canNotExpire = canNotExpire; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getEmailsSent() { return emailsSent; } + public void setEmailsSent(Integer emailsSent) { this.emailsSent = emailsSent; } - /** + * + * **/ @ApiModelProperty(value = "") public List getExcludeCardNetworks() { return excludeCardNetworks; } + public void setExcludeCardNetworks(List excludeCardNetworks) { this.excludeCardNetworks = excludeCardNetworks; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getFailureUrl() { return failureUrl; } + public void setFailureUrl(String failureUrl) { this.failureUrl = failureUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getForce3dsFlow() { return force3dsFlow; } + public void setForce3dsFlow(Boolean force3dsFlow) { this.force3dsFlow = force3dsFlow; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getMonthlyInstallmentsEnabled() { return monthlyInstallmentsEnabled; } + public void setMonthlyInstallmentsEnabled(Boolean monthlyInstallmentsEnabled) { this.monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; } - /** + * + * **/ @ApiModelProperty(value = "") public List getMonthlyInstallmentsOptions() { return monthlyInstallmentsOptions; } + public void setMonthlyInstallmentsOptions(List monthlyInstallmentsOptions) { this.monthlyInstallmentsOptions = monthlyInstallmentsOptions; } - /** * Reason for charge + * **/ @ApiModelProperty(required = true, value = "Reason for charge") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getNeedsShippingContact() { return needsShippingContact; } + public void setNeedsShippingContact(Boolean needsShippingContact) { this.needsShippingContact = needsShippingContact; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getPaidPaymentsCount() { return paidPaymentsCount; } + public void setPaidPaymentsCount(Integer paidPaymentsCount) { this.paidPaymentsCount = paidPaymentsCount; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getPaymentsLimitCount() { return paymentsLimitCount; } + public void setPaymentsLimitCount(Integer paymentsLimitCount) { this.paymentsLimitCount = paymentsLimitCount; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getRecurrent() { return recurrent; } + public void setRecurrent(Boolean recurrent) { this.recurrent = recurrent; } - /** + * + * **/ @ApiModelProperty(value = "") public String getSlug() { return slug; } + public void setSlug(String slug) { this.slug = slug; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getSmsSent() { return smsSent; } + public void setSmsSent(Integer smsSent) { this.smsSent = smsSent; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getStartsAt() { return startsAt; } + public void setStartsAt(Integer startsAt) { this.startsAt = startsAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - /** + * + * **/ @ApiModelProperty(value = "") public String getSuccessUrl() { return successUrl; } + public void setSuccessUrl(String successUrl) { this.successUrl = successUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(value = "") public URI getUrl() { return url; } + public void setUrl(URI url) { this.url = url; } - @Override public boolean equals(Object o) { if (this == o) { @@ -357,70 +403,71 @@ public boolean equals(Object o) { (this.successUrl == null ? checkoutResponse.successUrl == null : this.successUrl.equals(checkoutResponse.successUrl)) && (this.type == null ? checkoutResponse.type == null : this.type.equals(checkoutResponse.type)) && (this.url == null ? checkoutResponse.url == null : this.url.equals(checkoutResponse.url)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.allowedPaymentMethods == null ? 0: this.allowedPaymentMethods.hashCode()); - result = 31 * result + (this.canNotExpire == null ? 0: this.canNotExpire.hashCode()); - result = 31 * result + (this.emailsSent == null ? 0: this.emailsSent.hashCode()); - result = 31 * result + (this.excludeCardNetworks == null ? 0: this.excludeCardNetworks.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.failureUrl == null ? 0: this.failureUrl.hashCode()); - result = 31 * result + (this.force3dsFlow == null ? 0: this.force3dsFlow.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.monthlyInstallmentsEnabled == null ? 0: this.monthlyInstallmentsEnabled.hashCode()); - result = 31 * result + (this.monthlyInstallmentsOptions == null ? 0: this.monthlyInstallmentsOptions.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.needsShippingContact == null ? 0: this.needsShippingContact.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.paidPaymentsCount == null ? 0: this.paidPaymentsCount.hashCode()); - result = 31 * result + (this.paymentsLimitCount == null ? 0: this.paymentsLimitCount.hashCode()); - result = 31 * result + (this.recurrent == null ? 0: this.recurrent.hashCode()); - result = 31 * result + (this.slug == null ? 0: this.slug.hashCode()); - result = 31 * result + (this.smsSent == null ? 0: this.smsSent.hashCode()); - result = 31 * result + (this.startsAt == null ? 0: this.startsAt.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); - result = 31 * result + (this.successUrl == null ? 0: this.successUrl.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.url == null ? 0: this.url.hashCode()); + result = 31 * result + (this.allowedPaymentMethods == null ? 0 : this.allowedPaymentMethods.hashCode()); + result = 31 * result + (this.canNotExpire == null ? 0 : this.canNotExpire.hashCode()); + result = 31 * result + (this.emailsSent == null ? 0 : this.emailsSent.hashCode()); + result = 31 * result + (this.excludeCardNetworks == null ? 0 : this.excludeCardNetworks.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.failureUrl == null ? 0 : this.failureUrl.hashCode()); + result = 31 * result + (this.force3dsFlow == null ? 0 : this.force3dsFlow.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.monthlyInstallmentsEnabled == null ? 0 : this.monthlyInstallmentsEnabled.hashCode()); + result = 31 * result + (this.monthlyInstallmentsOptions == null ? 0 : this.monthlyInstallmentsOptions.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.needsShippingContact == null ? 0 : this.needsShippingContact.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.paidPaymentsCount == null ? 0 : this.paidPaymentsCount.hashCode()); + result = 31 * result + (this.paymentsLimitCount == null ? 0 : this.paymentsLimitCount.hashCode()); + result = 31 * result + (this.recurrent == null ? 0 : this.recurrent.hashCode()); + result = 31 * result + (this.slug == null ? 0 : this.slug.hashCode()); + result = 31 * result + (this.smsSent == null ? 0 : this.smsSent.hashCode()); + result = 31 * result + (this.startsAt == null ? 0 : this.startsAt.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); + result = 31 * result + (this.successUrl == null ? 0 : this.successUrl.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.url == null ? 0 : this.url.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckoutResponse {\n"); sb.append(" allowedPaymentMethods: ").append(allowedPaymentMethods).append("\n"); - sb.append(" canNotExpire: ").append(canNotExpire).append("\n"); - sb.append(" emailsSent: ").append(emailsSent).append("\n"); - sb.append(" excludeCardNetworks: ").append(excludeCardNetworks).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" failureUrl: ").append(failureUrl).append("\n"); - sb.append(" force3dsFlow: ").append(force3dsFlow).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" monthlyInstallmentsEnabled: ").append(monthlyInstallmentsEnabled).append("\n"); - sb.append(" monthlyInstallmentsOptions: ").append(monthlyInstallmentsOptions).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" needsShippingContact: ").append(needsShippingContact).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" paidPaymentsCount: ").append(paidPaymentsCount).append("\n"); - sb.append(" paymentsLimitCount: ").append(paymentsLimitCount).append("\n"); - sb.append(" recurrent: ").append(recurrent).append("\n"); - sb.append(" slug: ").append(slug).append("\n"); - sb.append(" smsSent: ").append(smsSent).append("\n"); - sb.append(" startsAt: ").append(startsAt).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append(" successUrl: ").append(successUrl).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append(" url: ").append(url).append("\n"); - sb.append("}\n"); +sb.append(" canNotExpire: ").append(canNotExpire).append("\n"); +sb.append(" emailsSent: ").append(emailsSent).append("\n"); +sb.append(" excludeCardNetworks: ").append(excludeCardNetworks).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" failureUrl: ").append(failureUrl).append("\n"); +sb.append(" force3dsFlow: ").append(force3dsFlow).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" monthlyInstallmentsEnabled: ").append(monthlyInstallmentsEnabled).append("\n"); +sb.append(" monthlyInstallmentsOptions: ").append(monthlyInstallmentsOptions).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" needsShippingContact: ").append(needsShippingContact).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" paidPaymentsCount: ").append(paidPaymentsCount).append("\n"); +sb.append(" paymentsLimitCount: ").append(paymentsLimitCount).append("\n"); +sb.append(" recurrent: ").append(recurrent).append("\n"); +sb.append(" slug: ").append(slug).append("\n"); +sb.append(" smsSent: ").append(smsSent).append("\n"); +sb.append(" startsAt: ").append(startsAt).append("\n"); +sb.append(" status: ").append(status).append("\n"); +sb.append(" successUrl: ").append(successUrl).append("\n"); +sb.append(" type: ").append(type).append("\n"); +sb.append(" url: ").append(url).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CheckoutsResponse.java b/src/main/java/io/conekta/model/CheckoutsResponse.java index f1291b3..ee57947 100644 --- a/src/main/java/io/conekta/model/CheckoutsResponse.java +++ b/src/main/java/io/conekta/model/CheckoutsResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CheckoutsResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class CheckoutsResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? checkoutsResponse.nextPageUrl == null : this.nextPageUrl.equals(checkoutsResponse.nextPageUrl)) && (this.previousPageUrl == null ? checkoutsResponse.previousPageUrl == null : this.previousPageUrl.equals(checkoutsResponse.previousPageUrl)) && (this.data == null ? checkoutsResponse.data == null : this.data.equals(checkoutsResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckoutsResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CompanyFiscalInfoAddressResponse.java b/src/main/java/io/conekta/model/CompanyFiscalInfoAddressResponse.java index afbfa67..042edfd 100644 --- a/src/main/java/io/conekta/model/CompanyFiscalInfoAddressResponse.java +++ b/src/main/java/io/conekta/model/CompanyFiscalInfoAddressResponse.java @@ -2,23 +2,20 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Company fiscal info address model **/ @ApiModel(description = "Company fiscal info address model") public class CompanyFiscalInfoAddressResponse { - + private static final String MXN = "MXN"; - - + public enum _objectEnum { - address, - }; + address, + } @SerializedName("object") private _objectEnum _object = null; @SerializedName("street1") @@ -40,104 +37,113 @@ public enum _objectEnum { /** * The resource's type + * **/ @ApiModelProperty(value = "The resource's type") public _objectEnum getObject() { return _object; } + public void setObject(_objectEnum _object) { this._object = _object; } - /** * Street Address + * **/ @ApiModelProperty(value = "Street Address") public String getStreet1() { return street1; } + public void setStreet1(String street1) { this.street1 = street1; } - /** * Colonia + * **/ @ApiModelProperty(value = "Colonia") public String getStreet2() { return street2; } + public void setStreet2(String street2) { this.street2 = street2; } - /** * City + * **/ @ApiModelProperty(value = "City") public String getCity() { return city; } + public void setCity(String city) { this.city = city; } - /** * State + * **/ @ApiModelProperty(value = "State") public String getState() { return state; } + public void setState(String state) { this.state = state; } - /** * Country + * **/ @ApiModelProperty(value = "Country") public String getCountry() { return country; } + public void setCountry(String country) { this.country = country; } - /** * Postal code + * **/ @ApiModelProperty(value = "Postal code") public String getPostalCode() { return postalCode; } + public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** * Street number + * **/ @ApiModelProperty(value = "Street number") public String getExternalNumber() { return externalNumber; } + public void setExternalNumber(String externalNumber) { this.externalNumber = externalNumber; } - /** * Unit / apartment number + * **/ @ApiModelProperty(value = "Unit / apartment number") public String getInternalNumber() { return internalNumber; } + public void setInternalNumber(String internalNumber) { this.internalNumber = internalNumber; } - @Override public boolean equals(Object o) { if (this == o) { @@ -156,38 +162,39 @@ public boolean equals(Object o) { (this.postalCode == null ? companyFiscalInfoAddressResponse.postalCode == null : this.postalCode.equals(companyFiscalInfoAddressResponse.postalCode)) && (this.externalNumber == null ? companyFiscalInfoAddressResponse.externalNumber == null : this.externalNumber.equals(companyFiscalInfoAddressResponse.externalNumber)) && (this.internalNumber == null ? companyFiscalInfoAddressResponse.internalNumber == null : this.internalNumber.equals(companyFiscalInfoAddressResponse.internalNumber)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.street1 == null ? 0: this.street1.hashCode()); - result = 31 * result + (this.street2 == null ? 0: this.street2.hashCode()); - result = 31 * result + (this.city == null ? 0: this.city.hashCode()); - result = 31 * result + (this.state == null ? 0: this.state.hashCode()); - result = 31 * result + (this.country == null ? 0: this.country.hashCode()); - result = 31 * result + (this.postalCode == null ? 0: this.postalCode.hashCode()); - result = 31 * result + (this.externalNumber == null ? 0: this.externalNumber.hashCode()); - result = 31 * result + (this.internalNumber == null ? 0: this.internalNumber.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.street1 == null ? 0 : this.street1.hashCode()); + result = 31 * result + (this.street2 == null ? 0 : this.street2.hashCode()); + result = 31 * result + (this.city == null ? 0 : this.city.hashCode()); + result = 31 * result + (this.state == null ? 0 : this.state.hashCode()); + result = 31 * result + (this.country == null ? 0 : this.country.hashCode()); + result = 31 * result + (this.postalCode == null ? 0 : this.postalCode.hashCode()); + result = 31 * result + (this.externalNumber == null ? 0 : this.externalNumber.hashCode()); + result = 31 * result + (this.internalNumber == null ? 0 : this.internalNumber.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CompanyFiscalInfoAddressResponse {\n"); sb.append(" _object: ").append(_object).append("\n"); - sb.append(" street1: ").append(street1).append("\n"); - sb.append(" street2: ").append(street2).append("\n"); - sb.append(" city: ").append(city).append("\n"); - sb.append(" state: ").append(state).append("\n"); - sb.append(" country: ").append(country).append("\n"); - sb.append(" postalCode: ").append(postalCode).append("\n"); - sb.append(" externalNumber: ").append(externalNumber).append("\n"); - sb.append(" internalNumber: ").append(internalNumber).append("\n"); - sb.append("}\n"); +sb.append(" street1: ").append(street1).append("\n"); +sb.append(" street2: ").append(street2).append("\n"); +sb.append(" city: ").append(city).append("\n"); +sb.append(" state: ").append(state).append("\n"); +sb.append(" country: ").append(country).append("\n"); +sb.append(" postalCode: ").append(postalCode).append("\n"); +sb.append(" externalNumber: ").append(externalNumber).append("\n"); +sb.append(" internalNumber: ").append(internalNumber).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CompanyFiscalInfoResponse.java b/src/main/java/io/conekta/model/CompanyFiscalInfoResponse.java index 5f31855..422322e 100644 --- a/src/main/java/io/conekta/model/CompanyFiscalInfoResponse.java +++ b/src/main/java/io/conekta/model/CompanyFiscalInfoResponse.java @@ -3,23 +3,20 @@ import io.conekta.model.CompanyFiscalInfoAddressResponse; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Company fiscal info model **/ @ApiModel(description = "Company fiscal info model") public class CompanyFiscalInfoResponse { - + private static final String MXN = "MXN"; - - + public enum _objectEnum { - fiscal_info, - }; + fiscal_info, + } @SerializedName("object") private _objectEnum _object = null; @SerializedName("tax_id") @@ -37,81 +34,89 @@ public enum _objectEnum { /** * The resource's type + * **/ @ApiModelProperty(value = "The resource's type") public _objectEnum getObject() { return _object; } + public void setObject(_objectEnum _object) { this._object = _object; } - /** * Tax ID of the company + * **/ @ApiModelProperty(value = "Tax ID of the company") public String getTaxId() { return taxId; } + public void setTaxId(String taxId) { this.taxId = taxId; } - /** * Legal name of the company + * **/ @ApiModelProperty(value = "Legal name of the company") public String getLegalEntityName() { return legalEntityName; } + public void setLegalEntityName(String legalEntityName) { this.legalEntityName = legalEntityName; } - /** * Business type of the company + * **/ @ApiModelProperty(value = "Business type of the company") public String getBusinessType() { return businessType; } + public void setBusinessType(String businessType) { this.businessType = businessType; } - /** * Phone number of the company + * **/ @ApiModelProperty(value = "Phone number of the company") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** * Business type if 'persona_fisica' + * **/ @ApiModelProperty(value = "Business type if 'persona_fisica'") public String getPhysicalPersonBusinessType() { return physicalPersonBusinessType; } + public void setPhysicalPersonBusinessType(String physicalPersonBusinessType) { this.physicalPersonBusinessType = physicalPersonBusinessType; } - /** + * + * **/ @ApiModelProperty(value = "") public CompanyFiscalInfoAddressResponse getAddress() { return address; } + public void setAddress(CompanyFiscalInfoAddressResponse address) { this.address = address; } - @Override public boolean equals(Object o) { if (this == o) { @@ -128,34 +133,35 @@ public boolean equals(Object o) { (this.phone == null ? companyFiscalInfoResponse.phone == null : this.phone.equals(companyFiscalInfoResponse.phone)) && (this.physicalPersonBusinessType == null ? companyFiscalInfoResponse.physicalPersonBusinessType == null : this.physicalPersonBusinessType.equals(companyFiscalInfoResponse.physicalPersonBusinessType)) && (this.address == null ? companyFiscalInfoResponse.address == null : this.address.equals(companyFiscalInfoResponse.address)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.taxId == null ? 0: this.taxId.hashCode()); - result = 31 * result + (this.legalEntityName == null ? 0: this.legalEntityName.hashCode()); - result = 31 * result + (this.businessType == null ? 0: this.businessType.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.physicalPersonBusinessType == null ? 0: this.physicalPersonBusinessType.hashCode()); - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.taxId == null ? 0 : this.taxId.hashCode()); + result = 31 * result + (this.legalEntityName == null ? 0 : this.legalEntityName.hashCode()); + result = 31 * result + (this.businessType == null ? 0 : this.businessType.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.physicalPersonBusinessType == null ? 0 : this.physicalPersonBusinessType.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CompanyFiscalInfoResponse {\n"); sb.append(" _object: ").append(_object).append("\n"); - sb.append(" taxId: ").append(taxId).append("\n"); - sb.append(" legalEntityName: ").append(legalEntityName).append("\n"); - sb.append(" businessType: ").append(businessType).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" physicalPersonBusinessType: ").append(physicalPersonBusinessType).append("\n"); - sb.append(" address: ").append(address).append("\n"); - sb.append("}\n"); +sb.append(" taxId: ").append(taxId).append("\n"); +sb.append(" legalEntityName: ").append(legalEntityName).append("\n"); +sb.append(" businessType: ").append(businessType).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" physicalPersonBusinessType: ").append(physicalPersonBusinessType).append("\n"); +sb.append(" address: ").append(address).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CompanyPayoutDestinationResponse.java b/src/main/java/io/conekta/model/CompanyPayoutDestinationResponse.java index f3c0da1..f5308ce 100644 --- a/src/main/java/io/conekta/model/CompanyPayoutDestinationResponse.java +++ b/src/main/java/io/conekta/model/CompanyPayoutDestinationResponse.java @@ -2,23 +2,20 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Company payout destination model **/ @ApiModel(description = "Company payout destination model") public class CompanyPayoutDestinationResponse { - + private static final String MXN = "MXN"; - - + public enum _objectEnum { - payout_destination, - }; + payout_destination, + } @SerializedName("object") private _objectEnum _object = null; @SerializedName("currency") @@ -28,8 +25,8 @@ public enum _objectEnum { @SerializedName("bank") private String bank = null; public enum TypeEnum { - bank_account, - }; + bank_account, + } @SerializedName("type") private TypeEnum type = null; @SerializedName("account_number") @@ -37,71 +34,77 @@ public enum TypeEnum { /** * The resource's type + * **/ @ApiModelProperty(value = "The resource's type") public _objectEnum getObject() { return _object; } + public void setObject(_objectEnum _object) { this._object = _object; } - /** * currency of the receiving account + * **/ @ApiModelProperty(value = "currency of the receiving account") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** * Name of the account holder + * **/ @ApiModelProperty(value = "Name of the account holder") public String getAccountHolderName() { return accountHolderName; } + public void setAccountHolderName(String accountHolderName) { this.accountHolderName = accountHolderName; } - /** * Name of the bank + * **/ @ApiModelProperty(value = "Name of the bank") public String getBank() { return bank; } + public void setBank(String bank) { this.bank = bank; } - /** * Type of the payout destination + * **/ @ApiModelProperty(value = "Type of the payout destination") public TypeEnum getType() { return type; } + public void setType(TypeEnum type) { this.type = type; } - /** * Account number of the receiving account + * **/ @ApiModelProperty(value = "Account number of the receiving account") public String getAccountNumber() { return accountNumber; } + public void setAccountNumber(String accountNumber) { this.accountNumber = accountNumber; } - @Override public boolean equals(Object o) { if (this == o) { @@ -117,32 +120,33 @@ public boolean equals(Object o) { (this.bank == null ? companyPayoutDestinationResponse.bank == null : this.bank.equals(companyPayoutDestinationResponse.bank)) && (this.type == null ? companyPayoutDestinationResponse.type == null : this.type.equals(companyPayoutDestinationResponse.type)) && (this.accountNumber == null ? companyPayoutDestinationResponse.accountNumber == null : this.accountNumber.equals(companyPayoutDestinationResponse.accountNumber)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.accountHolderName == null ? 0: this.accountHolderName.hashCode()); - result = 31 * result + (this.bank == null ? 0: this.bank.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.accountNumber == null ? 0: this.accountNumber.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.accountHolderName == null ? 0 : this.accountHolderName.hashCode()); + result = 31 * result + (this.bank == null ? 0 : this.bank.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.accountNumber == null ? 0 : this.accountNumber.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CompanyPayoutDestinationResponse {\n"); sb.append(" _object: ").append(_object).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" accountHolderName: ").append(accountHolderName).append("\n"); - sb.append(" bank: ").append(bank).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append(" accountNumber: ").append(accountNumber).append("\n"); - sb.append("}\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" accountHolderName: ").append(accountHolderName).append("\n"); +sb.append(" bank: ").append(bank).append("\n"); +sb.append(" type: ").append(type).append("\n"); +sb.append(" accountNumber: ").append(accountNumber).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CompanyResponse.java b/src/main/java/io/conekta/model/CompanyResponse.java index 4536b73..7caacbb 100644 --- a/src/main/java/io/conekta/model/CompanyResponse.java +++ b/src/main/java/io/conekta/model/CompanyResponse.java @@ -4,20 +4,17 @@ import io.conekta.model.CompanyPayoutDestinationResponse; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Company model **/ @ApiModel(description = "Company model") public class CompanyResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("id") private String id = null; @SerializedName("created_at") @@ -25,8 +22,8 @@ public class CompanyResponse { @SerializedName("name") private String name = null; public enum _objectEnum { - company, - }; + company, + } @SerializedName("object") private _objectEnum _object = null; @SerializedName("parent_company_id") @@ -40,91 +37,101 @@ public enum _objectEnum { /** * The child company's unique identifier + * **/ @ApiModelProperty(value = "The child company's unique identifier") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * The resource's creation date (unix timestamp) + * **/ @ApiModelProperty(value = "The resource's creation date (unix timestamp)") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * The child company's name + * **/ @ApiModelProperty(value = "The child company's name") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * The resource's type + * **/ @ApiModelProperty(value = "The resource's type") public _objectEnum getObject() { return _object; } + public void setObject(_objectEnum _object) { this._object = _object; } - /** * Id of the parent company + * **/ @ApiModelProperty(value = "Id of the parent company") public String getParentCompanyId() { return parentCompanyId; } + public void setParentCompanyId(String parentCompanyId) { this.parentCompanyId = parentCompanyId; } - /** * Whether the parent company's fiscal data is to be used for liquidation and tax purposes + * **/ @ApiModelProperty(value = "Whether the parent company's fiscal data is to be used for liquidation and tax purposes") public Boolean getUseParentFiscalData() { return useParentFiscalData; } + public void setUseParentFiscalData(Boolean useParentFiscalData) { this.useParentFiscalData = useParentFiscalData; } - /** + * + * **/ @ApiModelProperty(value = "") public CompanyPayoutDestinationResponse getPayoutDestination() { return payoutDestination; } + public void setPayoutDestination(CompanyPayoutDestinationResponse payoutDestination) { this.payoutDestination = payoutDestination; } - /** + * + * **/ @ApiModelProperty(value = "") public CompanyFiscalInfoResponse getFiscalInfo() { return fiscalInfo; } + public void setFiscalInfo(CompanyFiscalInfoResponse fiscalInfo) { this.fiscalInfo = fiscalInfo; } - @Override public boolean equals(Object o) { if (this == o) { @@ -142,36 +149,37 @@ public boolean equals(Object o) { (this.useParentFiscalData == null ? companyResponse.useParentFiscalData == null : this.useParentFiscalData.equals(companyResponse.useParentFiscalData)) && (this.payoutDestination == null ? companyResponse.payoutDestination == null : this.payoutDestination.equals(companyResponse.payoutDestination)) && (this.fiscalInfo == null ? companyResponse.fiscalInfo == null : this.fiscalInfo.equals(companyResponse.fiscalInfo)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.parentCompanyId == null ? 0: this.parentCompanyId.hashCode()); - result = 31 * result + (this.useParentFiscalData == null ? 0: this.useParentFiscalData.hashCode()); - result = 31 * result + (this.payoutDestination == null ? 0: this.payoutDestination.hashCode()); - result = 31 * result + (this.fiscalInfo == null ? 0: this.fiscalInfo.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.parentCompanyId == null ? 0 : this.parentCompanyId.hashCode()); + result = 31 * result + (this.useParentFiscalData == null ? 0 : this.useParentFiscalData.hashCode()); + result = 31 * result + (this.payoutDestination == null ? 0 : this.payoutDestination.hashCode()); + result = 31 * result + (this.fiscalInfo == null ? 0 : this.fiscalInfo.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CompanyResponse {\n"); sb.append(" id: ").append(id).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" parentCompanyId: ").append(parentCompanyId).append("\n"); - sb.append(" useParentFiscalData: ").append(useParentFiscalData).append("\n"); - sb.append(" payoutDestination: ").append(payoutDestination).append("\n"); - sb.append(" fiscalInfo: ").append(fiscalInfo).append("\n"); - sb.append("}\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" parentCompanyId: ").append(parentCompanyId).append("\n"); +sb.append(" useParentFiscalData: ").append(useParentFiscalData).append("\n"); +sb.append(" payoutDestination: ").append(payoutDestination).append("\n"); +sb.append(" fiscalInfo: ").append(fiscalInfo).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CreateCustomerFiscalEntitiesResponse.java b/src/main/java/io/conekta/model/CreateCustomerFiscalEntitiesResponse.java index 4a93a36..2b3d640 100644 --- a/src/main/java/io/conekta/model/CreateCustomerFiscalEntitiesResponse.java +++ b/src/main/java/io/conekta/model/CreateCustomerFiscalEntitiesResponse.java @@ -4,17 +4,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CreateCustomerFiscalEntitiesResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("address") private CustomerAddress address = null; @SerializedName("tax_id") @@ -39,116 +36,138 @@ public class CreateCustomerFiscalEntitiesResponse { private Boolean _default = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public CustomerAddress getAddress() { return address; } + public void setAddress(CustomerAddress address) { this.address = address; } - /** + * + * **/ @ApiModelProperty(value = "") public String getTaxId() { return taxId; } + public void setTaxId(String taxId) { this.taxId = taxId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCompanyName() { return companyName; } + public void setCompanyName(String companyName) { this.companyName = companyName; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - @Override public boolean equals(Object o) { if (this == o) { @@ -169,42 +188,43 @@ public boolean equals(Object o) { (this.createdAt == null ? createCustomerFiscalEntitiesResponse.createdAt == null : this.createdAt.equals(createCustomerFiscalEntitiesResponse.createdAt)) && (this.parentId == null ? createCustomerFiscalEntitiesResponse.parentId == null : this.parentId.equals(createCustomerFiscalEntitiesResponse.parentId)) && (this._default == null ? createCustomerFiscalEntitiesResponse._default == null : this._default.equals(createCustomerFiscalEntitiesResponse._default)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.taxId == null ? 0: this.taxId.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.companyName == null ? 0: this.companyName.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.taxId == null ? 0 : this.taxId.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.companyName == null ? 0 : this.companyName.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCustomerFiscalEntitiesResponse {\n"); sb.append(" address: ").append(address).append("\n"); - sb.append(" taxId: ").append(taxId).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" companyName: ").append(companyName).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append("}\n"); +sb.append(" taxId: ").append(taxId).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" companyName: ").append(companyName).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CreateCustomerPaymentMethodsRequest.java b/src/main/java/io/conekta/model/CreateCustomerPaymentMethodsRequest.java index 813382e..0d7eea2 100644 --- a/src/main/java/io/conekta/model/CreateCustomerPaymentMethodsRequest.java +++ b/src/main/java/io/conekta/model/CreateCustomerPaymentMethodsRequest.java @@ -5,20 +5,17 @@ import io.conekta.model.PaymentMethodTokenRequest; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Contains details of the payment methods that the customer has active or has used in Conekta **/ @ApiModel(description = "Contains details of the payment methods that the customer has active or has used in Conekta") public class CreateCustomerPaymentMethodsRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("token_id") @@ -28,37 +25,41 @@ public class CreateCustomerPaymentMethodsRequest { /** * Type of payment method + * **/ @ApiModelProperty(required = true, value = "Type of payment method") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** * Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. + * **/ @ApiModelProperty(required = true, value = "Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards.") public String getTokenId() { return tokenId; } + public void setTokenId(String tokenId) { this.tokenId = tokenId; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -71,26 +72,27 @@ public boolean equals(Object o) { return (this.type == null ? createCustomerPaymentMethodsRequest.type == null : this.type.equals(createCustomerPaymentMethodsRequest.type)) && (this.tokenId == null ? createCustomerPaymentMethodsRequest.tokenId == null : this.tokenId.equals(createCustomerPaymentMethodsRequest.tokenId)) && (this.expiresAt == null ? createCustomerPaymentMethodsRequest.expiresAt == null : this.expiresAt.equals(createCustomerPaymentMethodsRequest.expiresAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.tokenId == null ? 0: this.tokenId.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.tokenId == null ? 0 : this.tokenId.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCustomerPaymentMethodsRequest {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" tokenId: ").append(tokenId).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append("}\n"); +sb.append(" tokenId: ").append(tokenId).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CreateCustomerPaymentMethodsResponse.java b/src/main/java/io/conekta/model/CreateCustomerPaymentMethodsResponse.java index 378b36f..b6a5ec2 100644 --- a/src/main/java/io/conekta/model/CreateCustomerPaymentMethodsResponse.java +++ b/src/main/java/io/conekta/model/CreateCustomerPaymentMethodsResponse.java @@ -5,17 +5,14 @@ import io.conekta.model.PaymentMethodSpeiRecurrent; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CreateCustomerPaymentMethodsResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("id") @@ -58,206 +55,246 @@ public class CreateCustomerPaymentMethodsResponse { private String paymentSourceStatus = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReference() { return reference; } + public void setReference(String reference) { this.reference = reference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcode() { return barcode; } + public void setBarcode(String barcode) { this.barcode = barcode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcodeUrl() { return barcodeUrl; } + public void setBarcodeUrl(String barcodeUrl) { this.barcodeUrl = barcodeUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpiresAt() { return expiresAt; } + public void setExpiresAt(String expiresAt) { this.expiresAt = expiresAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getProvider() { return provider; } + public void setProvider(String provider) { this.provider = provider; } - /** + * + * **/ @ApiModelProperty(value = "") public String getLast4() { return last4; } + public void setLast4(String last4) { this.last4 = last4; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBin() { return bin; } + public void setBin(String bin) { this.bin = bin; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCardType() { return cardType; } + public void setCardType(String cardType) { this.cardType = cardType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getVisibleOnCheckout() { return visibleOnCheckout; } + public void setVisibleOnCheckout(Boolean visibleOnCheckout) { this.visibleOnCheckout = visibleOnCheckout; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPaymentSourceStatus() { return paymentSourceStatus; } + public void setPaymentSourceStatus(String paymentSourceStatus) { this.paymentSourceStatus = paymentSourceStatus; } - @Override public boolean equals(Object o) { if (this == o) { @@ -287,60 +324,61 @@ public boolean equals(Object o) { (this._default == null ? createCustomerPaymentMethodsResponse._default == null : this._default.equals(createCustomerPaymentMethodsResponse._default)) && (this.visibleOnCheckout == null ? createCustomerPaymentMethodsResponse.visibleOnCheckout == null : this.visibleOnCheckout.equals(createCustomerPaymentMethodsResponse.visibleOnCheckout)) && (this.paymentSourceStatus == null ? createCustomerPaymentMethodsResponse.paymentSourceStatus == null : this.paymentSourceStatus.equals(createCustomerPaymentMethodsResponse.paymentSourceStatus)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this.reference == null ? 0: this.reference.hashCode()); - result = 31 * result + (this.barcode == null ? 0: this.barcode.hashCode()); - result = 31 * result + (this.barcodeUrl == null ? 0: this.barcodeUrl.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.provider == null ? 0: this.provider.hashCode()); - result = 31 * result + (this.last4 == null ? 0: this.last4.hashCode()); - result = 31 * result + (this.bin == null ? 0: this.bin.hashCode()); - result = 31 * result + (this.cardType == null ? 0: this.cardType.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); - result = 31 * result + (this.visibleOnCheckout == null ? 0: this.visibleOnCheckout.hashCode()); - result = 31 * result + (this.paymentSourceStatus == null ? 0: this.paymentSourceStatus.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this.reference == null ? 0 : this.reference.hashCode()); + result = 31 * result + (this.barcode == null ? 0 : this.barcode.hashCode()); + result = 31 * result + (this.barcodeUrl == null ? 0 : this.barcodeUrl.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.provider == null ? 0 : this.provider.hashCode()); + result = 31 * result + (this.last4 == null ? 0 : this.last4.hashCode()); + result = 31 * result + (this.bin == null ? 0 : this.bin.hashCode()); + result = 31 * result + (this.cardType == null ? 0 : this.cardType.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); + result = 31 * result + (this.visibleOnCheckout == null ? 0 : this.visibleOnCheckout.hashCode()); + result = 31 * result + (this.paymentSourceStatus == null ? 0 : this.paymentSourceStatus.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCustomerPaymentMethodsResponse {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" reference: ").append(reference).append("\n"); - sb.append(" barcode: ").append(barcode).append("\n"); - sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" provider: ").append(provider).append("\n"); - sb.append(" last4: ").append(last4).append("\n"); - sb.append(" bin: ").append(bin).append("\n"); - sb.append(" cardType: ").append(cardType).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append(" visibleOnCheckout: ").append(visibleOnCheckout).append("\n"); - sb.append(" paymentSourceStatus: ").append(paymentSourceStatus).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" reference: ").append(reference).append("\n"); +sb.append(" barcode: ").append(barcode).append("\n"); +sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" provider: ").append(provider).append("\n"); +sb.append(" last4: ").append(last4).append("\n"); +sb.append(" bin: ").append(bin).append("\n"); +sb.append(" cardType: ").append(cardType).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); +sb.append(" visibleOnCheckout: ").append(visibleOnCheckout).append("\n"); +sb.append(" paymentSourceStatus: ").append(paymentSourceStatus).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CreateRiskRulesData.java b/src/main/java/io/conekta/model/CreateRiskRulesData.java index a8b9be2..db8f2fa 100644 --- a/src/main/java/io/conekta/model/CreateRiskRulesData.java +++ b/src/main/java/io/conekta/model/CreateRiskRulesData.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CreateRiskRulesData { - + private static final String MXN = "MXN"; - - + @SerializedName("description") private String description = null; @SerializedName("field") @@ -22,38 +19,41 @@ public class CreateRiskRulesData { /** * Description of the rule + * **/ @ApiModelProperty(required = true, value = "Description of the rule") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** * Field to be used for the rule + * **/ @ApiModelProperty(required = true, value = "Field to be used for the rule") public String getField() { return field; } + public void setField(String field) { this.field = field; } - /** * Value to be used for the rule + * **/ @ApiModelProperty(required = true, value = "Value to be used for the rule") public String getValue() { return value; } + public void setValue(String value) { this.value = value; } - @Override public boolean equals(Object o) { if (this == o) { @@ -66,26 +66,27 @@ public boolean equals(Object o) { return (this.description == null ? createRiskRulesData.description == null : this.description.equals(createRiskRulesData.description)) && (this.field == null ? createRiskRulesData.field == null : this.field.equals(createRiskRulesData.field)) && (this.value == null ? createRiskRulesData.value == null : this.value.equals(createRiskRulesData.value)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.field == null ? 0: this.field.hashCode()); - result = 31 * result + (this.value == null ? 0: this.value.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.field == null ? 0 : this.field.hashCode()); + result = 31 * result + (this.value == null ? 0 : this.value.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateRiskRulesData {\n"); sb.append(" description: ").append(description).append("\n"); - sb.append(" field: ").append(field).append("\n"); - sb.append(" value: ").append(value).append("\n"); - sb.append("}\n"); +sb.append(" field: ").append(field).append("\n"); +sb.append(" value: ").append(value).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/Customer.java b/src/main/java/io/conekta/model/Customer.java index a62b980..2e6ff7f 100644 --- a/src/main/java/io/conekta/model/Customer.java +++ b/src/main/java/io/conekta/model/Customer.java @@ -10,20 +10,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * a customer **/ @ApiModel(description = "a customer") public class Customer { - + private static final String MXN = "MXN"; - - + @SerializedName("antifraud_info") private CustomerAntifraudInfo antifraudInfo = null; @SerializedName("corporate") @@ -54,156 +51,174 @@ public class Customer { private SubscriptionRequest subscription = null; /** + * + * **/ @ApiModelProperty(value = "") public CustomerAntifraudInfo getAntifraudInfo() { return antifraudInfo; } + public void setAntifraudInfo(CustomerAntifraudInfo antifraudInfo) { this.antifraudInfo = antifraudInfo; } - /** * It is a value that allows identifying if the email is corporate or not. + * **/ @ApiModelProperty(value = "It is a value that allows identifying if the email is corporate or not.") public Boolean getCorporate() { return corporate; } + public void setCorporate(Boolean corporate) { this.corporate = corporate; } - /** * It is an undefined value. + * **/ @ApiModelProperty(value = "It is an undefined value.") public String getCustomReference() { return customReference; } + public void setCustomReference(String customReference) { this.customReference = customReference; } - /** * An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). + * **/ @ApiModelProperty(required = true, value = "An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc).") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** * It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id) + * **/ @ApiModelProperty(value = "It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id)") public String getDefaultPaymentSourceId() { return defaultPaymentSourceId; } + public void setDefaultPaymentSourceId(String defaultPaymentSourceId) { this.defaultPaymentSourceId = defaultPaymentSourceId; } - /** * It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact) + * **/ @ApiModelProperty(value = "It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact)") public String getDefaultShippingContactId() { return defaultShippingContactId; } + public void setDefaultShippingContactId(String defaultShippingContactId) { this.defaultShippingContactId = defaultShippingContactId; } - /** + * + * **/ @ApiModelProperty(value = "") public List getFiscalEntities() { return fiscalEntities; } + public void setFiscalEntities(List fiscalEntities) { this.fiscalEntities = fiscalEntities; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * Client's name + * **/ @ApiModelProperty(required = true, value = "Client's name") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * Contains details of the payment methods that the customer has active or has used in Conekta + * **/ @ApiModelProperty(value = "Contains details of the payment methods that the customer has active or has used in Conekta") public List getPaymentSources() { return paymentSources; } + public void setPaymentSources(List paymentSources) { this.paymentSources = paymentSources; } - /** * Is the customer's phone number + * **/ @ApiModelProperty(required = true, value = "Is the customer's phone number") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** * Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription + * **/ @ApiModelProperty(value = "Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription") public String getPlanId() { return planId; } + public void setPlanId(String planId) { this.planId = planId; } - /** * Contains the detail of the shipping addresses that the client has active or has used in Conekta + * **/ @ApiModelProperty(value = "Contains the detail of the shipping addresses that the client has active or has used in Conekta") public List getShippingContacts() { return shippingContacts; } + public void setShippingContacts(List shippingContacts) { this.shippingContacts = shippingContacts; } - /** + * + * **/ @ApiModelProperty(value = "") public SubscriptionRequest getSubscription() { return subscription; } + public void setSubscription(SubscriptionRequest subscription) { this.subscription = subscription; } - @Override public boolean equals(Object o) { if (this == o) { @@ -227,48 +242,49 @@ public boolean equals(Object o) { (this.planId == null ? customer.planId == null : this.planId.equals(customer.planId)) && (this.shippingContacts == null ? customer.shippingContacts == null : this.shippingContacts.equals(customer.shippingContacts)) && (this.subscription == null ? customer.subscription == null : this.subscription.equals(customer.subscription)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.antifraudInfo == null ? 0: this.antifraudInfo.hashCode()); - result = 31 * result + (this.corporate == null ? 0: this.corporate.hashCode()); - result = 31 * result + (this.customReference == null ? 0: this.customReference.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.defaultPaymentSourceId == null ? 0: this.defaultPaymentSourceId.hashCode()); - result = 31 * result + (this.defaultShippingContactId == null ? 0: this.defaultShippingContactId.hashCode()); - result = 31 * result + (this.fiscalEntities == null ? 0: this.fiscalEntities.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.paymentSources == null ? 0: this.paymentSources.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.planId == null ? 0: this.planId.hashCode()); - result = 31 * result + (this.shippingContacts == null ? 0: this.shippingContacts.hashCode()); - result = 31 * result + (this.subscription == null ? 0: this.subscription.hashCode()); + result = 31 * result + (this.antifraudInfo == null ? 0 : this.antifraudInfo.hashCode()); + result = 31 * result + (this.corporate == null ? 0 : this.corporate.hashCode()); + result = 31 * result + (this.customReference == null ? 0 : this.customReference.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.defaultPaymentSourceId == null ? 0 : this.defaultPaymentSourceId.hashCode()); + result = 31 * result + (this.defaultShippingContactId == null ? 0 : this.defaultShippingContactId.hashCode()); + result = 31 * result + (this.fiscalEntities == null ? 0 : this.fiscalEntities.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.paymentSources == null ? 0 : this.paymentSources.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.planId == null ? 0 : this.planId.hashCode()); + result = 31 * result + (this.shippingContacts == null ? 0 : this.shippingContacts.hashCode()); + result = 31 * result + (this.subscription == null ? 0 : this.subscription.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Customer {\n"); sb.append(" antifraudInfo: ").append(antifraudInfo).append("\n"); - sb.append(" corporate: ").append(corporate).append("\n"); - sb.append(" customReference: ").append(customReference).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" defaultPaymentSourceId: ").append(defaultPaymentSourceId).append("\n"); - sb.append(" defaultShippingContactId: ").append(defaultShippingContactId).append("\n"); - sb.append(" fiscalEntities: ").append(fiscalEntities).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" paymentSources: ").append(paymentSources).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" planId: ").append(planId).append("\n"); - sb.append(" shippingContacts: ").append(shippingContacts).append("\n"); - sb.append(" subscription: ").append(subscription).append("\n"); - sb.append("}\n"); +sb.append(" corporate: ").append(corporate).append("\n"); +sb.append(" customReference: ").append(customReference).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" defaultPaymentSourceId: ").append(defaultPaymentSourceId).append("\n"); +sb.append(" defaultShippingContactId: ").append(defaultShippingContactId).append("\n"); +sb.append(" fiscalEntities: ").append(fiscalEntities).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" paymentSources: ").append(paymentSources).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" planId: ").append(planId).append("\n"); +sb.append(" shippingContacts: ").append(shippingContacts).append("\n"); +sb.append(" subscription: ").append(subscription).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerAddress.java b/src/main/java/io/conekta/model/CustomerAddress.java index f4cfc4d..0287a62 100644 --- a/src/main/java/io/conekta/model/CustomerAddress.java +++ b/src/main/java/io/conekta/model/CustomerAddress.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerAddress { - + private static final String MXN = "MXN"; - - + @SerializedName("street1") private String street1 = null; @SerializedName("street2") @@ -31,87 +28,102 @@ public class CustomerAddress { private String externalNumber = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getStreet1() { return street1; } + public void setStreet1(String street1) { this.street1 = street1; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStreet2() { return street2; } + public void setStreet2(String street2) { this.street2 = street2; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getPostalCode() { return postalCode; } + public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getCity() { return city; } + public void setCity(String city) { this.city = city; } - /** + * + * **/ @ApiModelProperty(value = "") public String getState() { return state; } + public void setState(String state) { this.state = state; } - /** * this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * **/ @ApiModelProperty(value = "this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)") public String getCountry() { return country; } + public void setCountry(String country) { this.country = country; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getResidential() { return residential; } + public void setResidential(Boolean residential) { this.residential = residential; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExternalNumber() { return externalNumber; } + public void setExternalNumber(String externalNumber) { this.externalNumber = externalNumber; } - @Override public boolean equals(Object o) { if (this == o) { @@ -129,36 +141,37 @@ public boolean equals(Object o) { (this.country == null ? customerAddress.country == null : this.country.equals(customerAddress.country)) && (this.residential == null ? customerAddress.residential == null : this.residential.equals(customerAddress.residential)) && (this.externalNumber == null ? customerAddress.externalNumber == null : this.externalNumber.equals(customerAddress.externalNumber)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.street1 == null ? 0: this.street1.hashCode()); - result = 31 * result + (this.street2 == null ? 0: this.street2.hashCode()); - result = 31 * result + (this.postalCode == null ? 0: this.postalCode.hashCode()); - result = 31 * result + (this.city == null ? 0: this.city.hashCode()); - result = 31 * result + (this.state == null ? 0: this.state.hashCode()); - result = 31 * result + (this.country == null ? 0: this.country.hashCode()); - result = 31 * result + (this.residential == null ? 0: this.residential.hashCode()); - result = 31 * result + (this.externalNumber == null ? 0: this.externalNumber.hashCode()); + result = 31 * result + (this.street1 == null ? 0 : this.street1.hashCode()); + result = 31 * result + (this.street2 == null ? 0 : this.street2.hashCode()); + result = 31 * result + (this.postalCode == null ? 0 : this.postalCode.hashCode()); + result = 31 * result + (this.city == null ? 0 : this.city.hashCode()); + result = 31 * result + (this.state == null ? 0 : this.state.hashCode()); + result = 31 * result + (this.country == null ? 0 : this.country.hashCode()); + result = 31 * result + (this.residential == null ? 0 : this.residential.hashCode()); + result = 31 * result + (this.externalNumber == null ? 0 : this.externalNumber.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerAddress {\n"); sb.append(" street1: ").append(street1).append("\n"); - sb.append(" street2: ").append(street2).append("\n"); - sb.append(" postalCode: ").append(postalCode).append("\n"); - sb.append(" city: ").append(city).append("\n"); - sb.append(" state: ").append(state).append("\n"); - sb.append(" country: ").append(country).append("\n"); - sb.append(" residential: ").append(residential).append("\n"); - sb.append(" externalNumber: ").append(externalNumber).append("\n"); - sb.append("}\n"); +sb.append(" street2: ").append(street2).append("\n"); +sb.append(" postalCode: ").append(postalCode).append("\n"); +sb.append(" city: ").append(city).append("\n"); +sb.append(" state: ").append(state).append("\n"); +sb.append(" country: ").append(country).append("\n"); +sb.append(" residential: ").append(residential).append("\n"); +sb.append(" externalNumber: ").append(externalNumber).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerAntifraudInfo.java b/src/main/java/io/conekta/model/CustomerAntifraudInfo.java index a67dd01..ab8ce10 100644 --- a/src/main/java/io/conekta/model/CustomerAntifraudInfo.java +++ b/src/main/java/io/conekta/model/CustomerAntifraudInfo.java @@ -2,43 +2,44 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerAntifraudInfo { - + private static final String MXN = "MXN"; - - + @SerializedName("account_created_at") private Long accountCreatedAt = null; @SerializedName("first_paid_at") private Long firstPaidAt = null; /** + * + * **/ @ApiModelProperty(value = "") public Long getAccountCreatedAt() { return accountCreatedAt; } + public void setAccountCreatedAt(Long accountCreatedAt) { this.accountCreatedAt = accountCreatedAt; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getFirstPaidAt() { return firstPaidAt; } + public void setFirstPaidAt(Long firstPaidAt) { this.firstPaidAt = firstPaidAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -50,24 +51,25 @@ public boolean equals(Object o) { CustomerAntifraudInfo customerAntifraudInfo = (CustomerAntifraudInfo) o; return (this.accountCreatedAt == null ? customerAntifraudInfo.accountCreatedAt == null : this.accountCreatedAt.equals(customerAntifraudInfo.accountCreatedAt)) && (this.firstPaidAt == null ? customerAntifraudInfo.firstPaidAt == null : this.firstPaidAt.equals(customerAntifraudInfo.firstPaidAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.accountCreatedAt == null ? 0: this.accountCreatedAt.hashCode()); - result = 31 * result + (this.firstPaidAt == null ? 0: this.firstPaidAt.hashCode()); + result = 31 * result + (this.accountCreatedAt == null ? 0 : this.accountCreatedAt.hashCode()); + result = 31 * result + (this.firstPaidAt == null ? 0 : this.firstPaidAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerAntifraudInfo {\n"); sb.append(" accountCreatedAt: ").append(accountCreatedAt).append("\n"); - sb.append(" firstPaidAt: ").append(firstPaidAt).append("\n"); - sb.append("}\n"); +sb.append(" firstPaidAt: ").append(firstPaidAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerAntifraudInfoResponse.java b/src/main/java/io/conekta/model/CustomerAntifraudInfoResponse.java index 72523cf..1ae6e52 100644 --- a/src/main/java/io/conekta/model/CustomerAntifraudInfoResponse.java +++ b/src/main/java/io/conekta/model/CustomerAntifraudInfoResponse.java @@ -2,43 +2,44 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerAntifraudInfoResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("first_paid_at") private Integer firstPaidAt = null; @SerializedName("account_created_at") private Long accountCreatedAt = null; /** + * + * **/ @ApiModelProperty(value = "") public Integer getFirstPaidAt() { return firstPaidAt; } + public void setFirstPaidAt(Integer firstPaidAt) { this.firstPaidAt = firstPaidAt; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getAccountCreatedAt() { return accountCreatedAt; } + public void setAccountCreatedAt(Long accountCreatedAt) { this.accountCreatedAt = accountCreatedAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -50,24 +51,25 @@ public boolean equals(Object o) { CustomerAntifraudInfoResponse customerAntifraudInfoResponse = (CustomerAntifraudInfoResponse) o; return (this.firstPaidAt == null ? customerAntifraudInfoResponse.firstPaidAt == null : this.firstPaidAt.equals(customerAntifraudInfoResponse.firstPaidAt)) && (this.accountCreatedAt == null ? customerAntifraudInfoResponse.accountCreatedAt == null : this.accountCreatedAt.equals(customerAntifraudInfoResponse.accountCreatedAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.firstPaidAt == null ? 0: this.firstPaidAt.hashCode()); - result = 31 * result + (this.accountCreatedAt == null ? 0: this.accountCreatedAt.hashCode()); + result = 31 * result + (this.firstPaidAt == null ? 0 : this.firstPaidAt.hashCode()); + result = 31 * result + (this.accountCreatedAt == null ? 0 : this.accountCreatedAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerAntifraudInfoResponse {\n"); sb.append(" firstPaidAt: ").append(firstPaidAt).append("\n"); - sb.append(" accountCreatedAt: ").append(accountCreatedAt).append("\n"); - sb.append("}\n"); +sb.append(" accountCreatedAt: ").append(accountCreatedAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerFiscalEntitiesDataResponse.java b/src/main/java/io/conekta/model/CustomerFiscalEntitiesDataResponse.java index 367311d..4c74611 100644 --- a/src/main/java/io/conekta/model/CustomerFiscalEntitiesDataResponse.java +++ b/src/main/java/io/conekta/model/CustomerFiscalEntitiesDataResponse.java @@ -4,17 +4,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerFiscalEntitiesDataResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("address") private CustomerAddress address = null; @SerializedName("tax_id") @@ -39,116 +36,138 @@ public class CustomerFiscalEntitiesDataResponse { private Boolean _default = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public CustomerAddress getAddress() { return address; } + public void setAddress(CustomerAddress address) { this.address = address; } - /** + * + * **/ @ApiModelProperty(value = "") public String getTaxId() { return taxId; } + public void setTaxId(String taxId) { this.taxId = taxId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCompanyName() { return companyName; } + public void setCompanyName(String companyName) { this.companyName = companyName; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - @Override public boolean equals(Object o) { if (this == o) { @@ -169,42 +188,43 @@ public boolean equals(Object o) { (this.createdAt == null ? customerFiscalEntitiesDataResponse.createdAt == null : this.createdAt.equals(customerFiscalEntitiesDataResponse.createdAt)) && (this.parentId == null ? customerFiscalEntitiesDataResponse.parentId == null : this.parentId.equals(customerFiscalEntitiesDataResponse.parentId)) && (this._default == null ? customerFiscalEntitiesDataResponse._default == null : this._default.equals(customerFiscalEntitiesDataResponse._default)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.taxId == null ? 0: this.taxId.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.companyName == null ? 0: this.companyName.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.taxId == null ? 0 : this.taxId.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.companyName == null ? 0 : this.companyName.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerFiscalEntitiesDataResponse {\n"); sb.append(" address: ").append(address).append("\n"); - sb.append(" taxId: ").append(taxId).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" companyName: ").append(companyName).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append("}\n"); +sb.append(" taxId: ").append(taxId).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" companyName: ").append(companyName).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerFiscalEntitiesRequest.java b/src/main/java/io/conekta/model/CustomerFiscalEntitiesRequest.java index 46b8b43..f050fd4 100644 --- a/src/main/java/io/conekta/model/CustomerFiscalEntitiesRequest.java +++ b/src/main/java/io/conekta/model/CustomerFiscalEntitiesRequest.java @@ -4,17 +4,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerFiscalEntitiesRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("address") private CustomerAddress address = null; @SerializedName("tax_id") @@ -29,66 +26,78 @@ public class CustomerFiscalEntitiesRequest { private String companyName = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public CustomerAddress getAddress() { return address; } + public void setAddress(CustomerAddress address) { this.address = address; } - /** + * + * **/ @ApiModelProperty(value = "") public String getTaxId() { return taxId; } + public void setTaxId(String taxId) { this.taxId = taxId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCompanyName() { return companyName; } + public void setCompanyName(String companyName) { this.companyName = companyName; } - @Override public boolean equals(Object o) { if (this == o) { @@ -104,32 +113,33 @@ public boolean equals(Object o) { (this.phone == null ? customerFiscalEntitiesRequest.phone == null : this.phone.equals(customerFiscalEntitiesRequest.phone)) && (this.metadata == null ? customerFiscalEntitiesRequest.metadata == null : this.metadata.equals(customerFiscalEntitiesRequest.metadata)) && (this.companyName == null ? customerFiscalEntitiesRequest.companyName == null : this.companyName.equals(customerFiscalEntitiesRequest.companyName)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.taxId == null ? 0: this.taxId.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.companyName == null ? 0: this.companyName.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.taxId == null ? 0 : this.taxId.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.companyName == null ? 0 : this.companyName.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerFiscalEntitiesRequest {\n"); sb.append(" address: ").append(address).append("\n"); - sb.append(" taxId: ").append(taxId).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" companyName: ").append(companyName).append("\n"); - sb.append("}\n"); +sb.append(" taxId: ").append(taxId).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" companyName: ").append(companyName).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerFiscalEntitiesResponse.java b/src/main/java/io/conekta/model/CustomerFiscalEntitiesResponse.java index 2582af7..e2d7840 100644 --- a/src/main/java/io/conekta/model/CustomerFiscalEntitiesResponse.java +++ b/src/main/java/io/conekta/model/CustomerFiscalEntitiesResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerFiscalEntitiesResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -24,37 +21,41 @@ public class CustomerFiscalEntitiesResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -67,26 +68,27 @@ public boolean equals(Object o) { return (this.hasMore == null ? customerFiscalEntitiesResponse.hasMore == null : this.hasMore.equals(customerFiscalEntitiesResponse.hasMore)) && (this._object == null ? customerFiscalEntitiesResponse._object == null : this._object.equals(customerFiscalEntitiesResponse._object)) && (this.data == null ? customerFiscalEntitiesResponse.data == null : this.data.equals(customerFiscalEntitiesResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerFiscalEntitiesResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerInfo.java b/src/main/java/io/conekta/model/CustomerInfo.java index 491daa3..6ec2f78 100644 --- a/src/main/java/io/conekta/model/CustomerInfo.java +++ b/src/main/java/io/conekta/model/CustomerInfo.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerInfo { - + private static final String MXN = "MXN"; - - + @SerializedName("name") private String name = null; @SerializedName("email") @@ -25,56 +22,66 @@ public class CustomerInfo { private String _object = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getCorporate() { return corporate; } + public void setCorporate(Boolean corporate) { this.corporate = corporate; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - @Override public boolean equals(Object o) { if (this == o) { @@ -89,30 +96,31 @@ public boolean equals(Object o) { (this.phone == null ? customerInfo.phone == null : this.phone.equals(customerInfo.phone)) && (this.corporate == null ? customerInfo.corporate == null : this.corporate.equals(customerInfo.corporate)) && (this._object == null ? customerInfo._object == null : this._object.equals(customerInfo._object)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.corporate == null ? 0: this.corporate.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.corporate == null ? 0 : this.corporate.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerInfo {\n"); sb.append(" name: ").append(name).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" corporate: ").append(corporate).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append("}\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" corporate: ").append(corporate).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerInfoJustCustomerId.java b/src/main/java/io/conekta/model/CustomerInfoJustCustomerId.java index 3eb46b4..4c3928b 100644 --- a/src/main/java/io/conekta/model/CustomerInfoJustCustomerId.java +++ b/src/main/java/io/conekta/model/CustomerInfoJustCustomerId.java @@ -2,31 +2,30 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerInfoJustCustomerId { - + private static final String MXN = "MXN"; - - + @SerializedName("customer_id") private String customerId = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -37,22 +36,23 @@ public boolean equals(Object o) { } CustomerInfoJustCustomerId customerInfoJustCustomerId = (CustomerInfoJustCustomerId) o; return (this.customerId == null ? customerInfoJustCustomerId.customerId == null : this.customerId.equals(customerInfoJustCustomerId.customerId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerInfoJustCustomerId {\n"); sb.append(" customerId: ").append(customerId).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerInfoJustCustomerIdResponse.java b/src/main/java/io/conekta/model/CustomerInfoJustCustomerIdResponse.java index 270852f..15c5c78 100644 --- a/src/main/java/io/conekta/model/CustomerInfoJustCustomerIdResponse.java +++ b/src/main/java/io/conekta/model/CustomerInfoJustCustomerIdResponse.java @@ -2,31 +2,30 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerInfoJustCustomerIdResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("customer_id") private String customerId = null; /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -37,22 +36,23 @@ public boolean equals(Object o) { } CustomerInfoJustCustomerIdResponse customerInfoJustCustomerIdResponse = (CustomerInfoJustCustomerIdResponse) o; return (this.customerId == null ? customerInfoJustCustomerIdResponse.customerId == null : this.customerId.equals(customerInfoJustCustomerIdResponse.customerId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerInfoJustCustomerIdResponse {\n"); sb.append(" customerId: ").append(customerId).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerPaymentMethodRequest.java b/src/main/java/io/conekta/model/CustomerPaymentMethodRequest.java index 6ba2363..5039d8b 100644 --- a/src/main/java/io/conekta/model/CustomerPaymentMethodRequest.java +++ b/src/main/java/io/conekta/model/CustomerPaymentMethodRequest.java @@ -2,35 +2,33 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Contains details of the payment methods that the customer has active or has used in Conekta **/ @ApiModel(description = "Contains details of the payment methods that the customer has active or has used in Conekta") public class CustomerPaymentMethodRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; /** * Type of payment method + * **/ @ApiModelProperty(required = true, value = "Type of payment method") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -41,22 +39,23 @@ public boolean equals(Object o) { } CustomerPaymentMethodRequest customerPaymentMethodRequest = (CustomerPaymentMethodRequest) o; return (this.type == null ? customerPaymentMethodRequest.type == null : this.type.equals(customerPaymentMethodRequest.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerPaymentMethodRequest {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerPaymentMethodsData.java b/src/main/java/io/conekta/model/CustomerPaymentMethodsData.java index 08bb3b3..1070736 100644 --- a/src/main/java/io/conekta/model/CustomerPaymentMethodsData.java +++ b/src/main/java/io/conekta/model/CustomerPaymentMethodsData.java @@ -5,17 +5,14 @@ import io.conekta.model.PaymentMethodSpeiRecurrent; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerPaymentMethodsData { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("id") @@ -58,206 +55,246 @@ public class CustomerPaymentMethodsData { private String paymentSourceStatus = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReference() { return reference; } + public void setReference(String reference) { this.reference = reference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcode() { return barcode; } + public void setBarcode(String barcode) { this.barcode = barcode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcodeUrl() { return barcodeUrl; } + public void setBarcodeUrl(String barcodeUrl) { this.barcodeUrl = barcodeUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpiresAt() { return expiresAt; } + public void setExpiresAt(String expiresAt) { this.expiresAt = expiresAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getProvider() { return provider; } + public void setProvider(String provider) { this.provider = provider; } - /** + * + * **/ @ApiModelProperty(value = "") public String getLast4() { return last4; } + public void setLast4(String last4) { this.last4 = last4; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBin() { return bin; } + public void setBin(String bin) { this.bin = bin; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCardType() { return cardType; } + public void setCardType(String cardType) { this.cardType = cardType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getVisibleOnCheckout() { return visibleOnCheckout; } + public void setVisibleOnCheckout(Boolean visibleOnCheckout) { this.visibleOnCheckout = visibleOnCheckout; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPaymentSourceStatus() { return paymentSourceStatus; } + public void setPaymentSourceStatus(String paymentSourceStatus) { this.paymentSourceStatus = paymentSourceStatus; } - @Override public boolean equals(Object o) { if (this == o) { @@ -287,60 +324,61 @@ public boolean equals(Object o) { (this._default == null ? customerPaymentMethodsData._default == null : this._default.equals(customerPaymentMethodsData._default)) && (this.visibleOnCheckout == null ? customerPaymentMethodsData.visibleOnCheckout == null : this.visibleOnCheckout.equals(customerPaymentMethodsData.visibleOnCheckout)) && (this.paymentSourceStatus == null ? customerPaymentMethodsData.paymentSourceStatus == null : this.paymentSourceStatus.equals(customerPaymentMethodsData.paymentSourceStatus)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this.reference == null ? 0: this.reference.hashCode()); - result = 31 * result + (this.barcode == null ? 0: this.barcode.hashCode()); - result = 31 * result + (this.barcodeUrl == null ? 0: this.barcodeUrl.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.provider == null ? 0: this.provider.hashCode()); - result = 31 * result + (this.last4 == null ? 0: this.last4.hashCode()); - result = 31 * result + (this.bin == null ? 0: this.bin.hashCode()); - result = 31 * result + (this.cardType == null ? 0: this.cardType.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); - result = 31 * result + (this.visibleOnCheckout == null ? 0: this.visibleOnCheckout.hashCode()); - result = 31 * result + (this.paymentSourceStatus == null ? 0: this.paymentSourceStatus.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this.reference == null ? 0 : this.reference.hashCode()); + result = 31 * result + (this.barcode == null ? 0 : this.barcode.hashCode()); + result = 31 * result + (this.barcodeUrl == null ? 0 : this.barcodeUrl.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.provider == null ? 0 : this.provider.hashCode()); + result = 31 * result + (this.last4 == null ? 0 : this.last4.hashCode()); + result = 31 * result + (this.bin == null ? 0 : this.bin.hashCode()); + result = 31 * result + (this.cardType == null ? 0 : this.cardType.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); + result = 31 * result + (this.visibleOnCheckout == null ? 0 : this.visibleOnCheckout.hashCode()); + result = 31 * result + (this.paymentSourceStatus == null ? 0 : this.paymentSourceStatus.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerPaymentMethodsData {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" reference: ").append(reference).append("\n"); - sb.append(" barcode: ").append(barcode).append("\n"); - sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" provider: ").append(provider).append("\n"); - sb.append(" last4: ").append(last4).append("\n"); - sb.append(" bin: ").append(bin).append("\n"); - sb.append(" cardType: ").append(cardType).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append(" visibleOnCheckout: ").append(visibleOnCheckout).append("\n"); - sb.append(" paymentSourceStatus: ").append(paymentSourceStatus).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" reference: ").append(reference).append("\n"); +sb.append(" barcode: ").append(barcode).append("\n"); +sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" provider: ").append(provider).append("\n"); +sb.append(" last4: ").append(last4).append("\n"); +sb.append(" bin: ").append(bin).append("\n"); +sb.append(" cardType: ").append(cardType).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); +sb.append(" visibleOnCheckout: ").append(visibleOnCheckout).append("\n"); +sb.append(" paymentSourceStatus: ").append(paymentSourceStatus).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerPaymentMethodsRequest.java b/src/main/java/io/conekta/model/CustomerPaymentMethodsRequest.java index baf6158..8d503dc 100644 --- a/src/main/java/io/conekta/model/CustomerPaymentMethodsRequest.java +++ b/src/main/java/io/conekta/model/CustomerPaymentMethodsRequest.java @@ -5,17 +5,14 @@ import io.conekta.model.PaymentMethodTokenRequest; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerPaymentMethodsRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("token_id") @@ -25,37 +22,41 @@ public class CustomerPaymentMethodsRequest { /** * Type of payment method + * **/ @ApiModelProperty(required = true, value = "Type of payment method") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** * Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. + * **/ @ApiModelProperty(required = true, value = "Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards.") public String getTokenId() { return tokenId; } + public void setTokenId(String tokenId) { this.tokenId = tokenId; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -68,26 +69,27 @@ public boolean equals(Object o) { return (this.type == null ? customerPaymentMethodsRequest.type == null : this.type.equals(customerPaymentMethodsRequest.type)) && (this.tokenId == null ? customerPaymentMethodsRequest.tokenId == null : this.tokenId.equals(customerPaymentMethodsRequest.tokenId)) && (this.expiresAt == null ? customerPaymentMethodsRequest.expiresAt == null : this.expiresAt.equals(customerPaymentMethodsRequest.expiresAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.tokenId == null ? 0: this.tokenId.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.tokenId == null ? 0 : this.tokenId.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerPaymentMethodsRequest {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" tokenId: ").append(tokenId).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append("}\n"); +sb.append(" tokenId: ").append(tokenId).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerPaymentMethodsResponse.java b/src/main/java/io/conekta/model/CustomerPaymentMethodsResponse.java index 7f81a1c..8c9096f 100644 --- a/src/main/java/io/conekta/model/CustomerPaymentMethodsResponse.java +++ b/src/main/java/io/conekta/model/CustomerPaymentMethodsResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerPaymentMethodsResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class CustomerPaymentMethodsResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? customerPaymentMethodsResponse.nextPageUrl == null : this.nextPageUrl.equals(customerPaymentMethodsResponse.nextPageUrl)) && (this.previousPageUrl == null ? customerPaymentMethodsResponse.previousPageUrl == null : this.previousPageUrl.equals(customerPaymentMethodsResponse.previousPageUrl)) && (this.data == null ? customerPaymentMethodsResponse.data == null : this.data.equals(customerPaymentMethodsResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerPaymentMethodsResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerResponse.java b/src/main/java/io/conekta/model/CustomerResponse.java index 12041c4..2bb02f0 100644 --- a/src/main/java/io/conekta/model/CustomerResponse.java +++ b/src/main/java/io/conekta/model/CustomerResponse.java @@ -9,20 +9,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * customer response **/ @ApiModel(description = "customer response") public class CustomerResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("antifraud_info") private CustomerAntifraudInfoResponse antifraudInfo = null; @SerializedName("corporate") @@ -61,193 +58,222 @@ public class CustomerResponse { private SubscriptionResponse subscription = null; /** + * + * **/ @ApiModelProperty(value = "") public CustomerAntifraudInfoResponse getAntifraudInfo() { return antifraudInfo; } + public void setAntifraudInfo(CustomerAntifraudInfoResponse antifraudInfo) { this.antifraudInfo = antifraudInfo; } - /** * true if the customer is a company + * **/ @ApiModelProperty(value = "true if the customer is a company") public Boolean getCorporate() { return corporate; } + public void setCorporate(Boolean corporate) { this.corporate = corporate; } - /** * Creation date of the object + * **/ @ApiModelProperty(required = true, value = "Creation date of the object") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * Custom reference + * **/ @ApiModelProperty(value = "Custom reference") public String getCustomReference() { return customReference; } + public void setCustomReference(String customReference) { this.customReference = customReference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDefaultFiscalEntityId() { return defaultFiscalEntityId; } + public void setDefaultFiscalEntityId(String defaultFiscalEntityId) { this.defaultFiscalEntityId = defaultFiscalEntityId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDefaultShippingContactId() { return defaultShippingContactId; } + public void setDefaultShippingContactId(String defaultShippingContactId) { this.defaultShippingContactId = defaultShippingContactId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDefaultPaymentSourceId() { return defaultPaymentSourceId; } + public void setDefaultPaymentSourceId(String defaultPaymentSourceId) { this.defaultPaymentSourceId = defaultPaymentSourceId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(value = "") public CustomerFiscalEntitiesResponse getFiscalEntities() { return fiscalEntities; } + public void setFiscalEntities(CustomerFiscalEntitiesResponse fiscalEntities) { this.fiscalEntities = fiscalEntities; } - /** * Customer's ID + * **/ @ApiModelProperty(required = true, value = "Customer's ID") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * true if the object exists in live mode or the value false if the object exists in test mode + * **/ @ApiModelProperty(required = true, value = "true if the object exists in live mode or the value false if the object exists in test mode") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * Customer's name + * **/ @ApiModelProperty(required = true, value = "Customer's name") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public CustomerPaymentMethodsResponse getPaymentSources() { return paymentSources; } + public void setPaymentSources(CustomerPaymentMethodsResponse paymentSources) { this.paymentSources = paymentSources; } - /** * Customer's phone number + * **/ @ApiModelProperty(value = "Customer's phone number") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public CustomerResponseShippingContacts getShippingContacts() { return shippingContacts; } + public void setShippingContacts(CustomerResponseShippingContacts shippingContacts) { this.shippingContacts = shippingContacts; } - /** + * + * **/ @ApiModelProperty(value = "") public SubscriptionResponse getSubscription() { return subscription; } + public void setSubscription(SubscriptionResponse subscription) { this.subscription = subscription; } - @Override public boolean equals(Object o) { if (this == o) { @@ -275,56 +301,57 @@ public boolean equals(Object o) { (this.phone == null ? customerResponse.phone == null : this.phone.equals(customerResponse.phone)) && (this.shippingContacts == null ? customerResponse.shippingContacts == null : this.shippingContacts.equals(customerResponse.shippingContacts)) && (this.subscription == null ? customerResponse.subscription == null : this.subscription.equals(customerResponse.subscription)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.antifraudInfo == null ? 0: this.antifraudInfo.hashCode()); - result = 31 * result + (this.corporate == null ? 0: this.corporate.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.customReference == null ? 0: this.customReference.hashCode()); - result = 31 * result + (this.defaultFiscalEntityId == null ? 0: this.defaultFiscalEntityId.hashCode()); - result = 31 * result + (this.defaultShippingContactId == null ? 0: this.defaultShippingContactId.hashCode()); - result = 31 * result + (this.defaultPaymentSourceId == null ? 0: this.defaultPaymentSourceId.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.fiscalEntities == null ? 0: this.fiscalEntities.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.paymentSources == null ? 0: this.paymentSources.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.shippingContacts == null ? 0: this.shippingContacts.hashCode()); - result = 31 * result + (this.subscription == null ? 0: this.subscription.hashCode()); + result = 31 * result + (this.antifraudInfo == null ? 0 : this.antifraudInfo.hashCode()); + result = 31 * result + (this.corporate == null ? 0 : this.corporate.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.customReference == null ? 0 : this.customReference.hashCode()); + result = 31 * result + (this.defaultFiscalEntityId == null ? 0 : this.defaultFiscalEntityId.hashCode()); + result = 31 * result + (this.defaultShippingContactId == null ? 0 : this.defaultShippingContactId.hashCode()); + result = 31 * result + (this.defaultPaymentSourceId == null ? 0 : this.defaultPaymentSourceId.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.fiscalEntities == null ? 0 : this.fiscalEntities.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.paymentSources == null ? 0 : this.paymentSources.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.shippingContacts == null ? 0 : this.shippingContacts.hashCode()); + result = 31 * result + (this.subscription == null ? 0 : this.subscription.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerResponse {\n"); sb.append(" antifraudInfo: ").append(antifraudInfo).append("\n"); - sb.append(" corporate: ").append(corporate).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" customReference: ").append(customReference).append("\n"); - sb.append(" defaultFiscalEntityId: ").append(defaultFiscalEntityId).append("\n"); - sb.append(" defaultShippingContactId: ").append(defaultShippingContactId).append("\n"); - sb.append(" defaultPaymentSourceId: ").append(defaultPaymentSourceId).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" fiscalEntities: ").append(fiscalEntities).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" paymentSources: ").append(paymentSources).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" shippingContacts: ").append(shippingContacts).append("\n"); - sb.append(" subscription: ").append(subscription).append("\n"); - sb.append("}\n"); +sb.append(" corporate: ").append(corporate).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" customReference: ").append(customReference).append("\n"); +sb.append(" defaultFiscalEntityId: ").append(defaultFiscalEntityId).append("\n"); +sb.append(" defaultShippingContactId: ").append(defaultShippingContactId).append("\n"); +sb.append(" defaultPaymentSourceId: ").append(defaultPaymentSourceId).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" fiscalEntities: ").append(fiscalEntities).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" paymentSources: ").append(paymentSources).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" shippingContacts: ").append(shippingContacts).append("\n"); +sb.append(" subscription: ").append(subscription).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerResponseShippingContacts.java b/src/main/java/io/conekta/model/CustomerResponseShippingContacts.java index 1fc16e1..8582aa4 100644 --- a/src/main/java/io/conekta/model/CustomerResponseShippingContacts.java +++ b/src/main/java/io/conekta/model/CustomerResponseShippingContacts.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerResponseShippingContacts { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -24,37 +21,41 @@ public class CustomerResponseShippingContacts { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -67,26 +68,27 @@ public boolean equals(Object o) { return (this.hasMore == null ? customerResponseShippingContacts.hasMore == null : this.hasMore.equals(customerResponseShippingContacts.hasMore)) && (this._object == null ? customerResponseShippingContacts._object == null : this._object.equals(customerResponseShippingContacts._object)) && (this.data == null ? customerResponseShippingContacts.data == null : this.data.equals(customerResponseShippingContacts.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerResponseShippingContacts {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerShippingContacts.java b/src/main/java/io/conekta/model/CustomerShippingContacts.java index b54e238..039ecdb 100644 --- a/src/main/java/io/conekta/model/CustomerShippingContacts.java +++ b/src/main/java/io/conekta/model/CustomerShippingContacts.java @@ -5,20 +5,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * [Shipping](https://developers.conekta.com/v2.1.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used. **/ @ApiModel(description = "[Shipping](https://developers.conekta.com/v2.1.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used.") public class CustomerShippingContacts { - + private static final String MXN = "MXN"; - - + @SerializedName("phone") private String phone = null; @SerializedName("receiver") @@ -38,89 +35,101 @@ public class CustomerShippingContacts { /** * Phone contact + * **/ @ApiModelProperty(value = "Phone contact") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** * Name of the person who will receive the order + * **/ @ApiModelProperty(value = "Name of the person who will receive the order") public String getReceiver() { return receiver; } + public void setReceiver(String receiver) { this.receiver = receiver; } - /** * The street names between which the order will be delivered. + * **/ @ApiModelProperty(value = "The street names between which the order will be delivered.") public String getBetweenStreets() { return betweenStreets; } + public void setBetweenStreets(String betweenStreets) { this.betweenStreets = betweenStreets; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public CustomerShippingContactsAddress getAddress() { return address; } + public void setAddress(CustomerShippingContactsAddress address) { this.address = address; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - /** * Metadata associated with the shipping contact + * **/ @ApiModelProperty(value = "Metadata associated with the shipping contact") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - @Override public boolean equals(Object o) { if (this == o) { @@ -138,36 +147,37 @@ public boolean equals(Object o) { (this._default == null ? customerShippingContacts._default == null : this._default.equals(customerShippingContacts._default)) && (this.deleted == null ? customerShippingContacts.deleted == null : this.deleted.equals(customerShippingContacts.deleted)) && (this.metadata == null ? customerShippingContacts.metadata == null : this.metadata.equals(customerShippingContacts.metadata)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.receiver == null ? 0: this.receiver.hashCode()); - result = 31 * result + (this.betweenStreets == null ? 0: this.betweenStreets.hashCode()); - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.receiver == null ? 0 : this.receiver.hashCode()); + result = 31 * result + (this.betweenStreets == null ? 0 : this.betweenStreets.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerShippingContacts {\n"); sb.append(" phone: ").append(phone).append("\n"); - sb.append(" receiver: ").append(receiver).append("\n"); - sb.append(" betweenStreets: ").append(betweenStreets).append("\n"); - sb.append(" address: ").append(address).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append(" deleted: ").append(deleted).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append("}\n"); +sb.append(" receiver: ").append(receiver).append("\n"); +sb.append(" betweenStreets: ").append(betweenStreets).append("\n"); +sb.append(" address: ").append(address).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); +sb.append(" deleted: ").append(deleted).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerShippingContactsAddress.java b/src/main/java/io/conekta/model/CustomerShippingContactsAddress.java index 17ba034..cbc6ce7 100644 --- a/src/main/java/io/conekta/model/CustomerShippingContactsAddress.java +++ b/src/main/java/io/conekta/model/CustomerShippingContactsAddress.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Address of the person who will receive the order **/ @ApiModel(description = "Address of the person who will receive the order") public class CustomerShippingContactsAddress { - + private static final String MXN = "MXN"; - - + @SerializedName("street1") private String street1 = null; @SerializedName("street2") @@ -32,77 +29,90 @@ public class CustomerShippingContactsAddress { private Boolean residential = null; /** + * + * **/ @ApiModelProperty(value = "") public String getStreet1() { return street1; } + public void setStreet1(String street1) { this.street1 = street1; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStreet2() { return street2; } + public void setStreet2(String street2) { this.street2 = street2; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPostalCode() { return postalCode; } + public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCity() { return city; } + public void setCity(String city) { this.city = city; } - /** + * + * **/ @ApiModelProperty(value = "") public String getState() { return state; } + public void setState(String state) { this.state = state; } - /** * this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * **/ @ApiModelProperty(value = "this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)") public String getCountry() { return country; } + public void setCountry(String country) { this.country = country; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getResidential() { return residential; } + public void setResidential(Boolean residential) { this.residential = residential; } - @Override public boolean equals(Object o) { if (this == o) { @@ -119,34 +129,35 @@ public boolean equals(Object o) { (this.state == null ? customerShippingContactsAddress.state == null : this.state.equals(customerShippingContactsAddress.state)) && (this.country == null ? customerShippingContactsAddress.country == null : this.country.equals(customerShippingContactsAddress.country)) && (this.residential == null ? customerShippingContactsAddress.residential == null : this.residential.equals(customerShippingContactsAddress.residential)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.street1 == null ? 0: this.street1.hashCode()); - result = 31 * result + (this.street2 == null ? 0: this.street2.hashCode()); - result = 31 * result + (this.postalCode == null ? 0: this.postalCode.hashCode()); - result = 31 * result + (this.city == null ? 0: this.city.hashCode()); - result = 31 * result + (this.state == null ? 0: this.state.hashCode()); - result = 31 * result + (this.country == null ? 0: this.country.hashCode()); - result = 31 * result + (this.residential == null ? 0: this.residential.hashCode()); + result = 31 * result + (this.street1 == null ? 0 : this.street1.hashCode()); + result = 31 * result + (this.street2 == null ? 0 : this.street2.hashCode()); + result = 31 * result + (this.postalCode == null ? 0 : this.postalCode.hashCode()); + result = 31 * result + (this.city == null ? 0 : this.city.hashCode()); + result = 31 * result + (this.state == null ? 0 : this.state.hashCode()); + result = 31 * result + (this.country == null ? 0 : this.country.hashCode()); + result = 31 * result + (this.residential == null ? 0 : this.residential.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerShippingContactsAddress {\n"); sb.append(" street1: ").append(street1).append("\n"); - sb.append(" street2: ").append(street2).append("\n"); - sb.append(" postalCode: ").append(postalCode).append("\n"); - sb.append(" city: ").append(city).append("\n"); - sb.append(" state: ").append(state).append("\n"); - sb.append(" country: ").append(country).append("\n"); - sb.append(" residential: ").append(residential).append("\n"); - sb.append("}\n"); +sb.append(" street2: ").append(street2).append("\n"); +sb.append(" postalCode: ").append(postalCode).append("\n"); +sb.append(" city: ").append(city).append("\n"); +sb.append(" state: ").append(state).append("\n"); +sb.append(" country: ").append(country).append("\n"); +sb.append(" residential: ").append(residential).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerShippingContactsDataResponse.java b/src/main/java/io/conekta/model/CustomerShippingContactsDataResponse.java index bf27be0..9113eb8 100644 --- a/src/main/java/io/conekta/model/CustomerShippingContactsDataResponse.java +++ b/src/main/java/io/conekta/model/CustomerShippingContactsDataResponse.java @@ -5,17 +5,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerShippingContactsDataResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("phone") private String phone = null; @SerializedName("receiver") @@ -41,119 +38,137 @@ public class CustomerShippingContactsDataResponse { /** * Phone contact + * **/ @ApiModelProperty(value = "Phone contact") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** * Name of the person who will receive the order + * **/ @ApiModelProperty(value = "Name of the person who will receive the order") public String getReceiver() { return receiver; } + public void setReceiver(String receiver) { this.receiver = receiver; } - /** * The street names between which the order will be delivered. + * **/ @ApiModelProperty(value = "The street names between which the order will be delivered.") public String getBetweenStreets() { return betweenStreets; } + public void setBetweenStreets(String betweenStreets) { this.betweenStreets = betweenStreets; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public CustomerShippingContactsAddress getAddress() { return address; } + public void setAddress(CustomerShippingContactsAddress address) { this.address = address; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - /** * Metadata associated with the shipping contact + * **/ @ApiModelProperty(value = "Metadata associated with the shipping contact") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -174,42 +189,43 @@ public boolean equals(Object o) { (this.id == null ? customerShippingContactsDataResponse.id == null : this.id.equals(customerShippingContactsDataResponse.id)) && (this._object == null ? customerShippingContactsDataResponse._object == null : this._object.equals(customerShippingContactsDataResponse._object)) && (this.createdAt == null ? customerShippingContactsDataResponse.createdAt == null : this.createdAt.equals(customerShippingContactsDataResponse.createdAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.receiver == null ? 0: this.receiver.hashCode()); - result = 31 * result + (this.betweenStreets == null ? 0: this.betweenStreets.hashCode()); - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.receiver == null ? 0 : this.receiver.hashCode()); + result = 31 * result + (this.betweenStreets == null ? 0 : this.betweenStreets.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerShippingContactsDataResponse {\n"); sb.append(" phone: ").append(phone).append("\n"); - sb.append(" receiver: ").append(receiver).append("\n"); - sb.append(" betweenStreets: ").append(betweenStreets).append("\n"); - sb.append(" address: ").append(address).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append(" deleted: ").append(deleted).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append("}\n"); +sb.append(" receiver: ").append(receiver).append("\n"); +sb.append(" betweenStreets: ").append(betweenStreets).append("\n"); +sb.append(" address: ").append(address).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); +sb.append(" deleted: ").append(deleted).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerShippingContactsResponse.java b/src/main/java/io/conekta/model/CustomerShippingContactsResponse.java index d87450d..1ed141b 100644 --- a/src/main/java/io/conekta/model/CustomerShippingContactsResponse.java +++ b/src/main/java/io/conekta/model/CustomerShippingContactsResponse.java @@ -5,20 +5,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Contains the detail of the shipping addresses that the client has active or has used in Conekta **/ @ApiModel(description = "Contains the detail of the shipping addresses that the client has active or has used in Conekta") public class CustomerShippingContactsResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("phone") private String phone = null; @SerializedName("receiver") @@ -43,117 +40,138 @@ public class CustomerShippingContactsResponse { private Boolean deleted = null; /** + * + * **/ @ApiModelProperty(value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceiver() { return receiver; } + public void setReceiver(String receiver) { this.receiver = receiver; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBetweenStreets() { return betweenStreets; } + public void setBetweenStreets(String betweenStreets) { this.betweenStreets = betweenStreets; } - /** + * + * **/ @ApiModelProperty(value = "") public CustomerShippingContactsResponseAddress getAddress() { return address; } + public void setAddress(CustomerShippingContactsResponseAddress address) { this.address = address; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * Metadata associated with the shipping contact + * **/ @ApiModelProperty(value = "Metadata associated with the shipping contact") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - @Override public boolean equals(Object o) { if (this == o) { @@ -174,42 +192,43 @@ public boolean equals(Object o) { (this.metadata == null ? customerShippingContactsResponse.metadata == null : this.metadata.equals(customerShippingContactsResponse.metadata)) && (this._object == null ? customerShippingContactsResponse._object == null : this._object.equals(customerShippingContactsResponse._object)) && (this.deleted == null ? customerShippingContactsResponse.deleted == null : this.deleted.equals(customerShippingContactsResponse.deleted)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.receiver == null ? 0: this.receiver.hashCode()); - result = 31 * result + (this.betweenStreets == null ? 0: this.betweenStreets.hashCode()); - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.receiver == null ? 0 : this.receiver.hashCode()); + result = 31 * result + (this.betweenStreets == null ? 0 : this.betweenStreets.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerShippingContactsResponse {\n"); sb.append(" phone: ").append(phone).append("\n"); - sb.append(" receiver: ").append(receiver).append("\n"); - sb.append(" betweenStreets: ").append(betweenStreets).append("\n"); - sb.append(" address: ").append(address).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" deleted: ").append(deleted).append("\n"); - sb.append("}\n"); +sb.append(" receiver: ").append(receiver).append("\n"); +sb.append(" betweenStreets: ").append(betweenStreets).append("\n"); +sb.append(" address: ").append(address).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" deleted: ").append(deleted).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerShippingContactsResponseAddress.java b/src/main/java/io/conekta/model/CustomerShippingContactsResponseAddress.java index 771173f..1328700 100644 --- a/src/main/java/io/conekta/model/CustomerShippingContactsResponseAddress.java +++ b/src/main/java/io/conekta/model/CustomerShippingContactsResponseAddress.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerShippingContactsResponseAddress { - + private static final String MXN = "MXN"; - - + @SerializedName("object") private String _object = null; @SerializedName("street1") @@ -31,86 +28,102 @@ public class CustomerShippingContactsResponseAddress { private Boolean residential = null; /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStreet1() { return street1; } + public void setStreet1(String street1) { this.street1 = street1; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStreet2() { return street2; } + public void setStreet2(String street2) { this.street2 = street2; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPostalCode() { return postalCode; } + public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCity() { return city; } + public void setCity(String city) { this.city = city; } - /** + * + * **/ @ApiModelProperty(value = "") public String getState() { return state; } + public void setState(String state) { this.state = state; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCountry() { return country; } + public void setCountry(String country) { this.country = country; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getResidential() { return residential; } + public void setResidential(Boolean residential) { this.residential = residential; } - @Override public boolean equals(Object o) { if (this == o) { @@ -128,36 +141,37 @@ public boolean equals(Object o) { (this.state == null ? customerShippingContactsResponseAddress.state == null : this.state.equals(customerShippingContactsResponseAddress.state)) && (this.country == null ? customerShippingContactsResponseAddress.country == null : this.country.equals(customerShippingContactsResponseAddress.country)) && (this.residential == null ? customerShippingContactsResponseAddress.residential == null : this.residential.equals(customerShippingContactsResponseAddress.residential)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.street1 == null ? 0: this.street1.hashCode()); - result = 31 * result + (this.street2 == null ? 0: this.street2.hashCode()); - result = 31 * result + (this.postalCode == null ? 0: this.postalCode.hashCode()); - result = 31 * result + (this.city == null ? 0: this.city.hashCode()); - result = 31 * result + (this.state == null ? 0: this.state.hashCode()); - result = 31 * result + (this.country == null ? 0: this.country.hashCode()); - result = 31 * result + (this.residential == null ? 0: this.residential.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.street1 == null ? 0 : this.street1.hashCode()); + result = 31 * result + (this.street2 == null ? 0 : this.street2.hashCode()); + result = 31 * result + (this.postalCode == null ? 0 : this.postalCode.hashCode()); + result = 31 * result + (this.city == null ? 0 : this.city.hashCode()); + result = 31 * result + (this.state == null ? 0 : this.state.hashCode()); + result = 31 * result + (this.country == null ? 0 : this.country.hashCode()); + result = 31 * result + (this.residential == null ? 0 : this.residential.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerShippingContactsResponseAddress {\n"); sb.append(" _object: ").append(_object).append("\n"); - sb.append(" street1: ").append(street1).append("\n"); - sb.append(" street2: ").append(street2).append("\n"); - sb.append(" postalCode: ").append(postalCode).append("\n"); - sb.append(" city: ").append(city).append("\n"); - sb.append(" state: ").append(state).append("\n"); - sb.append(" country: ").append(country).append("\n"); - sb.append(" residential: ").append(residential).append("\n"); - sb.append("}\n"); +sb.append(" street1: ").append(street1).append("\n"); +sb.append(" street2: ").append(street2).append("\n"); +sb.append(" postalCode: ").append(postalCode).append("\n"); +sb.append(" city: ").append(city).append("\n"); +sb.append(" state: ").append(state).append("\n"); +sb.append(" country: ").append(country).append("\n"); +sb.append(" residential: ").append(residential).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerUpdateFiscalEntitiesRequest.java b/src/main/java/io/conekta/model/CustomerUpdateFiscalEntitiesRequest.java index 4202a82..1b475fe 100644 --- a/src/main/java/io/conekta/model/CustomerUpdateFiscalEntitiesRequest.java +++ b/src/main/java/io/conekta/model/CustomerUpdateFiscalEntitiesRequest.java @@ -4,17 +4,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomerUpdateFiscalEntitiesRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("address") private CustomerAddress address = null; @SerializedName("tax_id") @@ -29,66 +26,78 @@ public class CustomerUpdateFiscalEntitiesRequest { private String companyName = null; /** + * + * **/ @ApiModelProperty(value = "") public CustomerAddress getAddress() { return address; } + public void setAddress(CustomerAddress address) { this.address = address; } - /** + * + * **/ @ApiModelProperty(value = "") public String getTaxId() { return taxId; } + public void setTaxId(String taxId) { this.taxId = taxId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCompanyName() { return companyName; } + public void setCompanyName(String companyName) { this.companyName = companyName; } - @Override public boolean equals(Object o) { if (this == o) { @@ -104,32 +113,33 @@ public boolean equals(Object o) { (this.phone == null ? customerUpdateFiscalEntitiesRequest.phone == null : this.phone.equals(customerUpdateFiscalEntitiesRequest.phone)) && (this.metadata == null ? customerUpdateFiscalEntitiesRequest.metadata == null : this.metadata.equals(customerUpdateFiscalEntitiesRequest.metadata)) && (this.companyName == null ? customerUpdateFiscalEntitiesRequest.companyName == null : this.companyName.equals(customerUpdateFiscalEntitiesRequest.companyName)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.taxId == null ? 0: this.taxId.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.companyName == null ? 0: this.companyName.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.taxId == null ? 0 : this.taxId.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.companyName == null ? 0 : this.companyName.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerUpdateFiscalEntitiesRequest {\n"); sb.append(" address: ").append(address).append("\n"); - sb.append(" taxId: ").append(taxId).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" companyName: ").append(companyName).append("\n"); - sb.append("}\n"); +sb.append(" taxId: ").append(taxId).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" companyName: ").append(companyName).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomerUpdateShippingContacts.java b/src/main/java/io/conekta/model/CustomerUpdateShippingContacts.java index 9556b35..76f51af 100644 --- a/src/main/java/io/conekta/model/CustomerUpdateShippingContacts.java +++ b/src/main/java/io/conekta/model/CustomerUpdateShippingContacts.java @@ -3,20 +3,17 @@ import io.conekta.model.CustomerShippingContactsAddress; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * [Shipping](https://developers.conekta.com/v2.1.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used. **/ @ApiModel(description = "[Shipping](https://developers.conekta.com/v2.1.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used.") public class CustomerUpdateShippingContacts { - + private static final String MXN = "MXN"; - - + @SerializedName("phone") private String phone = null; @SerializedName("receiver") @@ -34,78 +31,89 @@ public class CustomerUpdateShippingContacts { /** * Phone contact + * **/ @ApiModelProperty(value = "Phone contact") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** * Name of the person who will receive the order + * **/ @ApiModelProperty(value = "Name of the person who will receive the order") public String getReceiver() { return receiver; } + public void setReceiver(String receiver) { this.receiver = receiver; } - /** * The street names between which the order will be delivered. + * **/ @ApiModelProperty(value = "The street names between which the order will be delivered.") public String getBetweenStreets() { return betweenStreets; } + public void setBetweenStreets(String betweenStreets) { this.betweenStreets = betweenStreets; } - /** + * + * **/ @ApiModelProperty(value = "") public CustomerShippingContactsAddress getAddress() { return address; } + public void setAddress(CustomerShippingContactsAddress address) { this.address = address; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - @Override public boolean equals(Object o) { if (this == o) { @@ -122,34 +130,35 @@ public boolean equals(Object o) { (this.parentId == null ? customerUpdateShippingContacts.parentId == null : this.parentId.equals(customerUpdateShippingContacts.parentId)) && (this._default == null ? customerUpdateShippingContacts._default == null : this._default.equals(customerUpdateShippingContacts._default)) && (this.deleted == null ? customerUpdateShippingContacts.deleted == null : this.deleted.equals(customerUpdateShippingContacts.deleted)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.receiver == null ? 0: this.receiver.hashCode()); - result = 31 * result + (this.betweenStreets == null ? 0: this.betweenStreets.hashCode()); - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.receiver == null ? 0 : this.receiver.hashCode()); + result = 31 * result + (this.betweenStreets == null ? 0 : this.betweenStreets.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomerUpdateShippingContacts {\n"); sb.append(" phone: ").append(phone).append("\n"); - sb.append(" receiver: ").append(receiver).append("\n"); - sb.append(" betweenStreets: ").append(betweenStreets).append("\n"); - sb.append(" address: ").append(address).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append(" deleted: ").append(deleted).append("\n"); - sb.append("}\n"); +sb.append(" receiver: ").append(receiver).append("\n"); +sb.append(" betweenStreets: ").append(betweenStreets).append("\n"); +sb.append(" address: ").append(address).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); +sb.append(" deleted: ").append(deleted).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/CustomersResponse.java b/src/main/java/io/conekta/model/CustomersResponse.java index 8c39391..5b20a62 100644 --- a/src/main/java/io/conekta/model/CustomersResponse.java +++ b/src/main/java/io/conekta/model/CustomersResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class CustomersResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class CustomersResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? customersResponse.nextPageUrl == null : this.nextPageUrl.equals(customersResponse.nextPageUrl)) && (this.previousPageUrl == null ? customersResponse.previousPageUrl == null : this.previousPageUrl.equals(customersResponse.previousPageUrl)) && (this.data == null ? customersResponse.data == null : this.data.equals(customersResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomersResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/DeleteApiKeysResponse.java b/src/main/java/io/conekta/model/DeleteApiKeysResponse.java index 6042d4a..bdde17c 100644 --- a/src/main/java/io/conekta/model/DeleteApiKeysResponse.java +++ b/src/main/java/io/conekta/model/DeleteApiKeysResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class DeleteApiKeysResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("active") private Boolean active = null; @SerializedName("created_at") @@ -34,103 +31,113 @@ public class DeleteApiKeysResponse { /** * Indicates if the api key is active + * **/ @ApiModelProperty(value = "Indicates if the api key is active") public Boolean getActive() { return active; } + public void setActive(Boolean active) { this.active = active; } - /** * Unix timestamp in seconds of when the api key was created + * **/ @ApiModelProperty(value = "Unix timestamp in seconds of when the api key was created") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * A name or brief explanation of what this api key is used for + * **/ @ApiModelProperty(value = "A name or brief explanation of what this api key is used for") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** * Indicates if the api key is in production + * **/ @ApiModelProperty(value = "Indicates if the api key is in production") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * The first few characters of the authentication_token + * **/ @ApiModelProperty(value = "The first few characters of the authentication_token") public String getPrefix() { return prefix; } + public void setPrefix(String prefix) { this.prefix = prefix; } - /** * Unique identifier of the api key + * **/ @ApiModelProperty(value = "Unique identifier of the api key") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Object name, value is 'api_key' + * **/ @ApiModelProperty(value = "Object name, value is 'api_key'") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - /** * Indicates if the api key is private or public + * **/ @ApiModelProperty(value = "Indicates if the api key is private or public") public String getRole() { return role; } + public void setRole(String role) { this.role = role; } - @Override public boolean equals(Object o) { if (this == o) { @@ -149,38 +156,39 @@ public boolean equals(Object o) { (this._object == null ? deleteApiKeysResponse._object == null : this._object.equals(deleteApiKeysResponse._object)) && (this.deleted == null ? deleteApiKeysResponse.deleted == null : this.deleted.equals(deleteApiKeysResponse.deleted)) && (this.role == null ? deleteApiKeysResponse.role == null : this.role.equals(deleteApiKeysResponse.role)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.active == null ? 0: this.active.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.prefix == null ? 0: this.prefix.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); - result = 31 * result + (this.role == null ? 0: this.role.hashCode()); + result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.prefix == null ? 0 : this.prefix.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); + result = 31 * result + (this.role == null ? 0 : this.role.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteApiKeysResponse {\n"); sb.append(" active: ").append(active).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" prefix: ").append(prefix).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" deleted: ").append(deleted).append("\n"); - sb.append(" role: ").append(role).append("\n"); - sb.append("}\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" prefix: ").append(prefix).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" deleted: ").append(deleted).append("\n"); +sb.append(" role: ").append(role).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/DeletedBlacklistRuleResponse.java b/src/main/java/io/conekta/model/DeletedBlacklistRuleResponse.java index f8583ea..b632e53 100644 --- a/src/main/java/io/conekta/model/DeletedBlacklistRuleResponse.java +++ b/src/main/java/io/conekta/model/DeletedBlacklistRuleResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class DeletedBlacklistRuleResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("id") private String id = null; @SerializedName("field") @@ -24,49 +21,53 @@ public class DeletedBlacklistRuleResponse { /** * Blacklist rule id + * **/ @ApiModelProperty(value = "Blacklist rule id") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * field used for blacklists rule deleted + * **/ @ApiModelProperty(value = "field used for blacklists rule deleted") public String getField() { return field; } + public void setField(String field) { this.field = field; } - /** * value used for blacklists rule deleted + * **/ @ApiModelProperty(value = "value used for blacklists rule deleted") public String getValue() { return value; } + public void setValue(String value) { this.value = value; } - /** * use an description for blacklisted rule + * **/ @ApiModelProperty(value = "use an description for blacklisted rule") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - @Override public boolean equals(Object o) { if (this == o) { @@ -80,28 +81,29 @@ public boolean equals(Object o) { (this.field == null ? deletedBlacklistRuleResponse.field == null : this.field.equals(deletedBlacklistRuleResponse.field)) && (this.value == null ? deletedBlacklistRuleResponse.value == null : this.value.equals(deletedBlacklistRuleResponse.value)) && (this.description == null ? deletedBlacklistRuleResponse.description == null : this.description.equals(deletedBlacklistRuleResponse.description)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.field == null ? 0: this.field.hashCode()); - result = 31 * result + (this.value == null ? 0: this.value.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.field == null ? 0 : this.field.hashCode()); + result = 31 * result + (this.value == null ? 0 : this.value.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeletedBlacklistRuleResponse {\n"); sb.append(" id: ").append(id).append("\n"); - sb.append(" field: ").append(field).append("\n"); - sb.append(" value: ").append(value).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append("}\n"); +sb.append(" field: ").append(field).append("\n"); +sb.append(" value: ").append(value).append("\n"); +sb.append(" description: ").append(description).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/DeletedWhitelistRuleResponse.java b/src/main/java/io/conekta/model/DeletedWhitelistRuleResponse.java index 0fe5b80..471c1f0 100644 --- a/src/main/java/io/conekta/model/DeletedWhitelistRuleResponse.java +++ b/src/main/java/io/conekta/model/DeletedWhitelistRuleResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class DeletedWhitelistRuleResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("id") private String id = null; @SerializedName("field") @@ -24,49 +21,53 @@ public class DeletedWhitelistRuleResponse { /** * Whitelist rule id + * **/ @ApiModelProperty(value = "Whitelist rule id") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * field used for whitelists rule deleted + * **/ @ApiModelProperty(value = "field used for whitelists rule deleted") public String getField() { return field; } + public void setField(String field) { this.field = field; } - /** * value used for whitelists rule deleted + * **/ @ApiModelProperty(value = "value used for whitelists rule deleted") public String getValue() { return value; } + public void setValue(String value) { this.value = value; } - /** * use an description for whitelisted rule + * **/ @ApiModelProperty(value = "use an description for whitelisted rule") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - @Override public boolean equals(Object o) { if (this == o) { @@ -80,28 +81,29 @@ public boolean equals(Object o) { (this.field == null ? deletedWhitelistRuleResponse.field == null : this.field.equals(deletedWhitelistRuleResponse.field)) && (this.value == null ? deletedWhitelistRuleResponse.value == null : this.value.equals(deletedWhitelistRuleResponse.value)) && (this.description == null ? deletedWhitelistRuleResponse.description == null : this.description.equals(deletedWhitelistRuleResponse.description)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.field == null ? 0: this.field.hashCode()); - result = 31 * result + (this.value == null ? 0: this.value.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.field == null ? 0 : this.field.hashCode()); + result = 31 * result + (this.value == null ? 0 : this.value.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeletedWhitelistRuleResponse {\n"); sb.append(" id: ").append(id).append("\n"); - sb.append(" field: ").append(field).append("\n"); - sb.append(" value: ").append(value).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append("}\n"); +sb.append(" field: ").append(field).append("\n"); +sb.append(" value: ").append(value).append("\n"); +sb.append(" description: ").append(description).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/Details.java b/src/main/java/io/conekta/model/Details.java index 07dd534..a2de826 100644 --- a/src/main/java/io/conekta/model/Details.java +++ b/src/main/java/io/conekta/model/Details.java @@ -4,31 +4,30 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class Details { - + private static final String MXN = "MXN"; - - + @SerializedName("details") private List details = null; /** + * + * **/ @ApiModelProperty(value = "") public List getDetails() { return details; } + public void setDetails(List details) { this.details = details; } - @Override public boolean equals(Object o) { if (this == o) { @@ -39,22 +38,23 @@ public boolean equals(Object o) { } Details details = (Details) o; return (this.details == null ? details.details == null : this.details.equals(details.details)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.details == null ? 0: this.details.hashCode()); + result = 31 * result + (this.details == null ? 0 : this.details.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Details {\n"); sb.append(" details: ").append(details).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/DetailsError.java b/src/main/java/io/conekta/model/DetailsError.java index e1c3d39..44d635d 100644 --- a/src/main/java/io/conekta/model/DetailsError.java +++ b/src/main/java/io/conekta/model/DetailsError.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class DetailsError { - + private static final String MXN = "MXN"; - - + @SerializedName("code") private String code = null; @SerializedName("param") @@ -23,46 +20,54 @@ public class DetailsError { private String debugMessage = null; /** + * + * **/ @ApiModelProperty(value = "") public String getCode() { return code; } + public void setCode(String code) { this.code = code; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParam() { return param; } + public void setParam(String param) { this.param = param; } - /** + * + * **/ @ApiModelProperty(value = "") public String getMessage() { return message; } + public void setMessage(String message) { this.message = message; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDebugMessage() { return debugMessage; } + public void setDebugMessage(String debugMessage) { this.debugMessage = debugMessage; } - @Override public boolean equals(Object o) { if (this == o) { @@ -76,28 +81,29 @@ public boolean equals(Object o) { (this.param == null ? detailsError.param == null : this.param.equals(detailsError.param)) && (this.message == null ? detailsError.message == null : this.message.equals(detailsError.message)) && (this.debugMessage == null ? detailsError.debugMessage == null : this.debugMessage.equals(detailsError.debugMessage)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.code == null ? 0: this.code.hashCode()); - result = 31 * result + (this.param == null ? 0: this.param.hashCode()); - result = 31 * result + (this.message == null ? 0: this.message.hashCode()); - result = 31 * result + (this.debugMessage == null ? 0: this.debugMessage.hashCode()); + result = 31 * result + (this.code == null ? 0 : this.code.hashCode()); + result = 31 * result + (this.param == null ? 0 : this.param.hashCode()); + result = 31 * result + (this.message == null ? 0 : this.message.hashCode()); + result = 31 * result + (this.debugMessage == null ? 0 : this.debugMessage.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DetailsError {\n"); sb.append(" code: ").append(code).append("\n"); - sb.append(" param: ").append(param).append("\n"); - sb.append(" message: ").append(message).append("\n"); - sb.append(" debugMessage: ").append(debugMessage).append("\n"); - sb.append("}\n"); +sb.append(" param: ").append(param).append("\n"); +sb.append(" message: ").append(message).append("\n"); +sb.append(" debugMessage: ").append(debugMessage).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/DiscountLinesDataResponse.java b/src/main/java/io/conekta/model/DiscountLinesDataResponse.java index acb98fe..bedb45b 100644 --- a/src/main/java/io/conekta/model/DiscountLinesDataResponse.java +++ b/src/main/java/io/conekta/model/DiscountLinesDataResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class DiscountLinesDataResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("code") @@ -34,66 +31,71 @@ public class DiscountLinesDataResponse { public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * Discount code. + * **/ @ApiModelProperty(required = true, value = "Discount code.") public String getCode() { return code; } + public void setCode(String code) { this.code = code; } - /** * It can be 'loyalty', 'campaign', 'coupon' o 'sign' + * **/ @ApiModelProperty(required = true, value = "It can be 'loyalty', 'campaign', 'coupon' o 'sign'") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** * The discount line id + * **/ @ApiModelProperty(required = true, value = "The discount line id") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * The object name + * **/ @ApiModelProperty(required = true, value = "The object name") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * The order id + * **/ @ApiModelProperty(required = true, value = "The order id") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -109,32 +111,33 @@ public boolean equals(Object o) { (this.id == null ? discountLinesDataResponse.id == null : this.id.equals(discountLinesDataResponse.id)) && (this._object == null ? discountLinesDataResponse._object == null : this._object.equals(discountLinesDataResponse._object)) && (this.parentId == null ? discountLinesDataResponse.parentId == null : this.parentId.equals(discountLinesDataResponse.parentId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.code == null ? 0: this.code.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.code == null ? 0 : this.code.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DiscountLinesDataResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" code: ").append(code).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append("}\n"); +sb.append(" code: ").append(code).append("\n"); +sb.append(" type: ").append(type).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/DiscountLinesResponse.java b/src/main/java/io/conekta/model/DiscountLinesResponse.java index abd807d..0f1dca8 100644 --- a/src/main/java/io/conekta/model/DiscountLinesResponse.java +++ b/src/main/java/io/conekta/model/DiscountLinesResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class DiscountLinesResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("code") @@ -34,66 +31,71 @@ public class DiscountLinesResponse { public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * Discount code. + * **/ @ApiModelProperty(required = true, value = "Discount code.") public String getCode() { return code; } + public void setCode(String code) { this.code = code; } - /** * It can be 'loyalty', 'campaign', 'coupon' o 'sign' + * **/ @ApiModelProperty(required = true, value = "It can be 'loyalty', 'campaign', 'coupon' o 'sign'") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** * The discount line id + * **/ @ApiModelProperty(required = true, value = "The discount line id") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * The object name + * **/ @ApiModelProperty(required = true, value = "The object name") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * The order id + * **/ @ApiModelProperty(required = true, value = "The order id") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -109,32 +111,33 @@ public boolean equals(Object o) { (this.id == null ? discountLinesResponse.id == null : this.id.equals(discountLinesResponse.id)) && (this._object == null ? discountLinesResponse._object == null : this._object.equals(discountLinesResponse._object)) && (this.parentId == null ? discountLinesResponse.parentId == null : this.parentId.equals(discountLinesResponse.parentId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.code == null ? 0: this.code.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.code == null ? 0 : this.code.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DiscountLinesResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" code: ").append(code).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append("}\n"); +sb.append(" code: ").append(code).append("\n"); +sb.append(" type: ").append(type).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/EmailCheckoutRequest.java b/src/main/java/io/conekta/model/EmailCheckoutRequest.java index 6650369..7f9ec52 100644 --- a/src/main/java/io/conekta/model/EmailCheckoutRequest.java +++ b/src/main/java/io/conekta/model/EmailCheckoutRequest.java @@ -2,31 +2,30 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class EmailCheckoutRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("email") private String email = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - @Override public boolean equals(Object o) { if (this == o) { @@ -37,22 +36,23 @@ public boolean equals(Object o) { } EmailCheckoutRequest emailCheckoutRequest = (EmailCheckoutRequest) o; return (this.email == null ? emailCheckoutRequest.email == null : this.email.equals(emailCheckoutRequest.email)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EmailCheckoutRequest {\n"); sb.append(" email: ").append(email).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/Error.java b/src/main/java/io/conekta/model/Error.java index 425f7a7..2867679 100644 --- a/src/main/java/io/conekta/model/Error.java +++ b/src/main/java/io/conekta/model/Error.java @@ -4,20 +4,17 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * err model **/ @ApiModel(description = "err model") public class Error { - + private static final String MXN = "MXN"; - - + @SerializedName("details") private List details = null; @SerializedName("log_id") @@ -28,47 +25,54 @@ public class Error { private String _object = null; /** + * + * **/ @ApiModelProperty(value = "") public List getDetails() { return details; } + public void setDetails(List details) { this.details = details; } - /** * log id + * **/ @ApiModelProperty(value = "log id") public String getLogId() { return logId; } + public void setLogId(String logId) { this.logId = logId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - @Override public boolean equals(Object o) { if (this == o) { @@ -82,28 +86,29 @@ public boolean equals(Object o) { (this.logId == null ? error.logId == null : this.logId.equals(error.logId)) && (this.type == null ? error.type == null : this.type.equals(error.type)) && (this._object == null ? error._object == null : this._object.equals(error._object)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.details == null ? 0: this.details.hashCode()); - result = 31 * result + (this.logId == null ? 0: this.logId.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); + result = 31 * result + (this.details == null ? 0 : this.details.hashCode()); + result = 31 * result + (this.logId == null ? 0 : this.logId.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Error {\n"); sb.append(" details: ").append(details).append("\n"); - sb.append(" logId: ").append(logId).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append("}\n"); +sb.append(" logId: ").append(logId).append("\n"); +sb.append(" type: ").append(type).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/EventResponse.java b/src/main/java/io/conekta/model/EventResponse.java index 563ea3d..cec3490 100644 --- a/src/main/java/io/conekta/model/EventResponse.java +++ b/src/main/java/io/conekta/model/EventResponse.java @@ -6,20 +6,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * event model **/ @ApiModel(description = "event model") public class EventResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("created_at") private Long createdAt = null; @SerializedName("data") @@ -38,86 +35,102 @@ public class EventResponse { private String webhookStatus = null; /** + * + * **/ @ApiModelProperty(value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getData() { return data; } + public void setData(Map data) { this.data = data; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(value = "") public List getWebhookLogs() { return webhookLogs; } + public void setWebhookLogs(List webhookLogs) { this.webhookLogs = webhookLogs; } - /** + * + * **/ @ApiModelProperty(value = "") public String getWebhookStatus() { return webhookStatus; } + public void setWebhookStatus(String webhookStatus) { this.webhookStatus = webhookStatus; } - @Override public boolean equals(Object o) { if (this == o) { @@ -135,36 +148,37 @@ public boolean equals(Object o) { (this.type == null ? eventResponse.type == null : this.type.equals(eventResponse.type)) && (this.webhookLogs == null ? eventResponse.webhookLogs == null : this.webhookLogs.equals(eventResponse.webhookLogs)) && (this.webhookStatus == null ? eventResponse.webhookStatus == null : this.webhookStatus.equals(eventResponse.webhookStatus)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.webhookLogs == null ? 0: this.webhookLogs.hashCode()); - result = 31 * result + (this.webhookStatus == null ? 0: this.webhookStatus.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.webhookLogs == null ? 0 : this.webhookLogs.hashCode()); + result = 31 * result + (this.webhookStatus == null ? 0 : this.webhookStatus.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EventResponse {\n"); sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append(" webhookLogs: ").append(webhookLogs).append("\n"); - sb.append(" webhookStatus: ").append(webhookStatus).append("\n"); - sb.append("}\n"); +sb.append(" data: ").append(data).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" type: ").append(type).append("\n"); +sb.append(" webhookLogs: ").append(webhookLogs).append("\n"); +sb.append(" webhookStatus: ").append(webhookStatus).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/EventTypes.java b/src/main/java/io/conekta/model/EventTypes.java index fb7bd8e..d4e8d08 100644 --- a/src/main/java/io/conekta/model/EventTypes.java +++ b/src/main/java/io/conekta/model/EventTypes.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * It is a parameter that allows to identify in the response, the type of event that is being generated. **/ @ApiModel(description = "It is a parameter that allows to identify in the response, the type of event that is being generated.") public class EventTypes { - + private static final String MXN = "MXN"; - - + @Override @@ -37,11 +34,11 @@ public int hashCode() { } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EventTypes {\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/EventsResendResponse.java b/src/main/java/io/conekta/model/EventsResendResponse.java index fc2e9f8..2e6a15f 100644 --- a/src/main/java/io/conekta/model/EventsResendResponse.java +++ b/src/main/java/io/conekta/model/EventsResendResponse.java @@ -5,20 +5,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * event model **/ @ApiModel(description = "event model") public class EventsResendResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("failed_attempts") private Integer failedAttempts = null; @SerializedName("id") @@ -33,66 +30,78 @@ public class EventsResendResponse { private URI url = null; /** + * + * **/ @ApiModelProperty(value = "") public Integer getFailedAttempts() { return failedAttempts; } + public void setFailedAttempts(Integer failedAttempts) { this.failedAttempts = failedAttempts; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getLastAttemptedAt() { return lastAttemptedAt; } + public void setLastAttemptedAt(Integer lastAttemptedAt) { this.lastAttemptedAt = lastAttemptedAt; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getLastHttpResponseStatus() { return lastHttpResponseStatus; } + public void setLastHttpResponseStatus(Integer lastHttpResponseStatus) { this.lastHttpResponseStatus = lastHttpResponseStatus; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getResponseData() { return responseData; } + public void setResponseData(Map responseData) { this.responseData = responseData; } - /** + * + * **/ @ApiModelProperty(value = "") public URI getUrl() { return url; } + public void setUrl(URI url) { this.url = url; } - @Override public boolean equals(Object o) { if (this == o) { @@ -108,32 +117,33 @@ public boolean equals(Object o) { (this.lastHttpResponseStatus == null ? eventsResendResponse.lastHttpResponseStatus == null : this.lastHttpResponseStatus.equals(eventsResendResponse.lastHttpResponseStatus)) && (this.responseData == null ? eventsResendResponse.responseData == null : this.responseData.equals(eventsResendResponse.responseData)) && (this.url == null ? eventsResendResponse.url == null : this.url.equals(eventsResendResponse.url)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.failedAttempts == null ? 0: this.failedAttempts.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.lastAttemptedAt == null ? 0: this.lastAttemptedAt.hashCode()); - result = 31 * result + (this.lastHttpResponseStatus == null ? 0: this.lastHttpResponseStatus.hashCode()); - result = 31 * result + (this.responseData == null ? 0: this.responseData.hashCode()); - result = 31 * result + (this.url == null ? 0: this.url.hashCode()); + result = 31 * result + (this.failedAttempts == null ? 0 : this.failedAttempts.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.lastAttemptedAt == null ? 0 : this.lastAttemptedAt.hashCode()); + result = 31 * result + (this.lastHttpResponseStatus == null ? 0 : this.lastHttpResponseStatus.hashCode()); + result = 31 * result + (this.responseData == null ? 0 : this.responseData.hashCode()); + result = 31 * result + (this.url == null ? 0 : this.url.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EventsResendResponse {\n"); sb.append(" failedAttempts: ").append(failedAttempts).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" lastAttemptedAt: ").append(lastAttemptedAt).append("\n"); - sb.append(" lastHttpResponseStatus: ").append(lastHttpResponseStatus).append("\n"); - sb.append(" responseData: ").append(responseData).append("\n"); - sb.append(" url: ").append(url).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" lastAttemptedAt: ").append(lastAttemptedAt).append("\n"); +sb.append(" lastHttpResponseStatus: ").append(lastHttpResponseStatus).append("\n"); +sb.append(" responseData: ").append(responseData).append("\n"); +sb.append(" url: ").append(url).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/FiscalEntityAddress.java b/src/main/java/io/conekta/model/FiscalEntityAddress.java index df8e392..a1d6943 100644 --- a/src/main/java/io/conekta/model/FiscalEntityAddress.java +++ b/src/main/java/io/conekta/model/FiscalEntityAddress.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Address of the fiscal entity **/ @ApiModel(description = "Address of the fiscal entity") public class FiscalEntityAddress { - + private static final String MXN = "MXN"; - - + @SerializedName("street1") private String street1 = null; @SerializedName("street2") @@ -33,82 +30,89 @@ public class FiscalEntityAddress { /** * Street name and number + * **/ @ApiModelProperty(required = true, value = "Street name and number") public String getStreet1() { return street1; } + public void setStreet1(String street1) { this.street1 = street1; } - /** * Street name and number + * **/ @ApiModelProperty(value = "Street name and number") public String getStreet2() { return street2; } + public void setStreet2(String street2) { this.street2 = street2; } - /** * Postal code + * **/ @ApiModelProperty(required = true, value = "Postal code") public String getPostalCode() { return postalCode; } + public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** * City + * **/ @ApiModelProperty(required = true, value = "City") public String getCity() { return city; } + public void setCity(String city) { this.city = city; } - /** * State + * **/ @ApiModelProperty(value = "State") public String getState() { return state; } + public void setState(String state) { this.state = state; } - /** * this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * **/ @ApiModelProperty(required = true, value = "this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)") public String getCountry() { return country; } + public void setCountry(String country) { this.country = country; } - /** * External number + * **/ @ApiModelProperty(required = true, value = "External number") public String getExternalNumber() { return externalNumber; } + public void setExternalNumber(String externalNumber) { this.externalNumber = externalNumber; } - @Override public boolean equals(Object o) { if (this == o) { @@ -125,34 +129,35 @@ public boolean equals(Object o) { (this.state == null ? fiscalEntityAddress.state == null : this.state.equals(fiscalEntityAddress.state)) && (this.country == null ? fiscalEntityAddress.country == null : this.country.equals(fiscalEntityAddress.country)) && (this.externalNumber == null ? fiscalEntityAddress.externalNumber == null : this.externalNumber.equals(fiscalEntityAddress.externalNumber)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.street1 == null ? 0: this.street1.hashCode()); - result = 31 * result + (this.street2 == null ? 0: this.street2.hashCode()); - result = 31 * result + (this.postalCode == null ? 0: this.postalCode.hashCode()); - result = 31 * result + (this.city == null ? 0: this.city.hashCode()); - result = 31 * result + (this.state == null ? 0: this.state.hashCode()); - result = 31 * result + (this.country == null ? 0: this.country.hashCode()); - result = 31 * result + (this.externalNumber == null ? 0: this.externalNumber.hashCode()); + result = 31 * result + (this.street1 == null ? 0 : this.street1.hashCode()); + result = 31 * result + (this.street2 == null ? 0 : this.street2.hashCode()); + result = 31 * result + (this.postalCode == null ? 0 : this.postalCode.hashCode()); + result = 31 * result + (this.city == null ? 0 : this.city.hashCode()); + result = 31 * result + (this.state == null ? 0 : this.state.hashCode()); + result = 31 * result + (this.country == null ? 0 : this.country.hashCode()); + result = 31 * result + (this.externalNumber == null ? 0 : this.externalNumber.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FiscalEntityAddress {\n"); sb.append(" street1: ").append(street1).append("\n"); - sb.append(" street2: ").append(street2).append("\n"); - sb.append(" postalCode: ").append(postalCode).append("\n"); - sb.append(" city: ").append(city).append("\n"); - sb.append(" state: ").append(state).append("\n"); - sb.append(" country: ").append(country).append("\n"); - sb.append(" externalNumber: ").append(externalNumber).append("\n"); - sb.append("}\n"); +sb.append(" street2: ").append(street2).append("\n"); +sb.append(" postalCode: ").append(postalCode).append("\n"); +sb.append(" city: ").append(city).append("\n"); +sb.append(" state: ").append(state).append("\n"); +sb.append(" country: ").append(country).append("\n"); +sb.append(" externalNumber: ").append(externalNumber).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetApiKeysResponse.java b/src/main/java/io/conekta/model/GetApiKeysResponse.java index 59551e0..d4f34c0 100644 --- a/src/main/java/io/conekta/model/GetApiKeysResponse.java +++ b/src/main/java/io/conekta/model/GetApiKeysResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetApiKeysResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("next_page_url") private String nextPageUrl = null; @SerializedName("previous_page_url") @@ -28,59 +25,65 @@ public class GetApiKeysResponse { /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.hasMore == null ? getApiKeysResponse.hasMore == null : this.hasMore.equals(getApiKeysResponse.hasMore)) && (this._object == null ? getApiKeysResponse._object == null : this._object.equals(getApiKeysResponse._object)) && (this.data == null ? getApiKeysResponse.data == null : this.data.equals(getApiKeysResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetApiKeysResponse {\n"); sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" hasMore: ").append(hasMore).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetChargesResponse.java b/src/main/java/io/conekta/model/GetChargesResponse.java index 13b7c4f..a0c2548 100644 --- a/src/main/java/io/conekta/model/GetChargesResponse.java +++ b/src/main/java/io/conekta/model/GetChargesResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetChargesResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class GetChargesResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? getChargesResponse.nextPageUrl == null : this.nextPageUrl.equals(getChargesResponse.nextPageUrl)) && (this.previousPageUrl == null ? getChargesResponse.previousPageUrl == null : this.previousPageUrl.equals(getChargesResponse.previousPageUrl)) && (this.data == null ? getChargesResponse.data == null : this.data.equals(getChargesResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetChargesResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetCompaniesResponse.java b/src/main/java/io/conekta/model/GetCompaniesResponse.java index 8a289a9..aa23c0f 100644 --- a/src/main/java/io/conekta/model/GetCompaniesResponse.java +++ b/src/main/java/io/conekta/model/GetCompaniesResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetCompaniesResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class GetCompaniesResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? getCompaniesResponse.nextPageUrl == null : this.nextPageUrl.equals(getCompaniesResponse.nextPageUrl)) && (this.previousPageUrl == null ? getCompaniesResponse.previousPageUrl == null : this.previousPageUrl.equals(getCompaniesResponse.previousPageUrl)) && (this.data == null ? getCompaniesResponse.data == null : this.data.equals(getCompaniesResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetCompaniesResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetCustomerPaymentMethodDataResponse.java b/src/main/java/io/conekta/model/GetCustomerPaymentMethodDataResponse.java index a0a78e3..b3415b3 100644 --- a/src/main/java/io/conekta/model/GetCustomerPaymentMethodDataResponse.java +++ b/src/main/java/io/conekta/model/GetCustomerPaymentMethodDataResponse.java @@ -5,17 +5,14 @@ import io.conekta.model.PaymentMethodSpeiRecurrent; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetCustomerPaymentMethodDataResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("id") @@ -58,206 +55,246 @@ public class GetCustomerPaymentMethodDataResponse { private String paymentSourceStatus = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReference() { return reference; } + public void setReference(String reference) { this.reference = reference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcode() { return barcode; } + public void setBarcode(String barcode) { this.barcode = barcode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcodeUrl() { return barcodeUrl; } + public void setBarcodeUrl(String barcodeUrl) { this.barcodeUrl = barcodeUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpiresAt() { return expiresAt; } + public void setExpiresAt(String expiresAt) { this.expiresAt = expiresAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getProvider() { return provider; } + public void setProvider(String provider) { this.provider = provider; } - /** + * + * **/ @ApiModelProperty(value = "") public String getLast4() { return last4; } + public void setLast4(String last4) { this.last4 = last4; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBin() { return bin; } + public void setBin(String bin) { this.bin = bin; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCardType() { return cardType; } + public void setCardType(String cardType) { this.cardType = cardType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getVisibleOnCheckout() { return visibleOnCheckout; } + public void setVisibleOnCheckout(Boolean visibleOnCheckout) { this.visibleOnCheckout = visibleOnCheckout; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPaymentSourceStatus() { return paymentSourceStatus; } + public void setPaymentSourceStatus(String paymentSourceStatus) { this.paymentSourceStatus = paymentSourceStatus; } - @Override public boolean equals(Object o) { if (this == o) { @@ -287,60 +324,61 @@ public boolean equals(Object o) { (this._default == null ? getCustomerPaymentMethodDataResponse._default == null : this._default.equals(getCustomerPaymentMethodDataResponse._default)) && (this.visibleOnCheckout == null ? getCustomerPaymentMethodDataResponse.visibleOnCheckout == null : this.visibleOnCheckout.equals(getCustomerPaymentMethodDataResponse.visibleOnCheckout)) && (this.paymentSourceStatus == null ? getCustomerPaymentMethodDataResponse.paymentSourceStatus == null : this.paymentSourceStatus.equals(getCustomerPaymentMethodDataResponse.paymentSourceStatus)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this.reference == null ? 0: this.reference.hashCode()); - result = 31 * result + (this.barcode == null ? 0: this.barcode.hashCode()); - result = 31 * result + (this.barcodeUrl == null ? 0: this.barcodeUrl.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.provider == null ? 0: this.provider.hashCode()); - result = 31 * result + (this.last4 == null ? 0: this.last4.hashCode()); - result = 31 * result + (this.bin == null ? 0: this.bin.hashCode()); - result = 31 * result + (this.cardType == null ? 0: this.cardType.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); - result = 31 * result + (this.visibleOnCheckout == null ? 0: this.visibleOnCheckout.hashCode()); - result = 31 * result + (this.paymentSourceStatus == null ? 0: this.paymentSourceStatus.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this.reference == null ? 0 : this.reference.hashCode()); + result = 31 * result + (this.barcode == null ? 0 : this.barcode.hashCode()); + result = 31 * result + (this.barcodeUrl == null ? 0 : this.barcodeUrl.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.provider == null ? 0 : this.provider.hashCode()); + result = 31 * result + (this.last4 == null ? 0 : this.last4.hashCode()); + result = 31 * result + (this.bin == null ? 0 : this.bin.hashCode()); + result = 31 * result + (this.cardType == null ? 0 : this.cardType.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); + result = 31 * result + (this.visibleOnCheckout == null ? 0 : this.visibleOnCheckout.hashCode()); + result = 31 * result + (this.paymentSourceStatus == null ? 0 : this.paymentSourceStatus.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetCustomerPaymentMethodDataResponse {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" reference: ").append(reference).append("\n"); - sb.append(" barcode: ").append(barcode).append("\n"); - sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" provider: ").append(provider).append("\n"); - sb.append(" last4: ").append(last4).append("\n"); - sb.append(" bin: ").append(bin).append("\n"); - sb.append(" cardType: ").append(cardType).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append(" visibleOnCheckout: ").append(visibleOnCheckout).append("\n"); - sb.append(" paymentSourceStatus: ").append(paymentSourceStatus).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" reference: ").append(reference).append("\n"); +sb.append(" barcode: ").append(barcode).append("\n"); +sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" provider: ").append(provider).append("\n"); +sb.append(" last4: ").append(last4).append("\n"); +sb.append(" bin: ").append(bin).append("\n"); +sb.append(" cardType: ").append(cardType).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); +sb.append(" visibleOnCheckout: ").append(visibleOnCheckout).append("\n"); +sb.append(" paymentSourceStatus: ").append(paymentSourceStatus).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetEventsResponse.java b/src/main/java/io/conekta/model/GetEventsResponse.java index 9e6be49..472520e 100644 --- a/src/main/java/io/conekta/model/GetEventsResponse.java +++ b/src/main/java/io/conekta/model/GetEventsResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetEventsResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class GetEventsResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? getEventsResponse.nextPageUrl == null : this.nextPageUrl.equals(getEventsResponse.nextPageUrl)) && (this.previousPageUrl == null ? getEventsResponse.previousPageUrl == null : this.previousPageUrl.equals(getEventsResponse.previousPageUrl)) && (this.data == null ? getEventsResponse.data == null : this.data.equals(getEventsResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetEventsResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetOrderDiscountLinesResponse.java b/src/main/java/io/conekta/model/GetOrderDiscountLinesResponse.java index 18b408d..58e4e18 100644 --- a/src/main/java/io/conekta/model/GetOrderDiscountLinesResponse.java +++ b/src/main/java/io/conekta/model/GetOrderDiscountLinesResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetOrderDiscountLinesResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class GetOrderDiscountLinesResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? getOrderDiscountLinesResponse.nextPageUrl == null : this.nextPageUrl.equals(getOrderDiscountLinesResponse.nextPageUrl)) && (this.previousPageUrl == null ? getOrderDiscountLinesResponse.previousPageUrl == null : this.previousPageUrl.equals(getOrderDiscountLinesResponse.previousPageUrl)) && (this.data == null ? getOrderDiscountLinesResponse.data == null : this.data.equals(getOrderDiscountLinesResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetOrderDiscountLinesResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetOrdersResponse.java b/src/main/java/io/conekta/model/GetOrdersResponse.java index 35f3df0..4fcc37c 100644 --- a/src/main/java/io/conekta/model/GetOrdersResponse.java +++ b/src/main/java/io/conekta/model/GetOrdersResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetOrdersResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("data") private List data = null; @SerializedName("has_more") @@ -27,60 +24,66 @@ public class GetOrdersResponse { private String previousPageUrl = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this._object == null ? getOrdersResponse._object == null : this._object.equals(getOrdersResponse._object)) && (this.nextPageUrl == null ? getOrdersResponse.nextPageUrl == null : this.nextPageUrl.equals(getOrdersResponse.nextPageUrl)) && (this.previousPageUrl == null ? getOrdersResponse.previousPageUrl == null : this.previousPageUrl.equals(getOrdersResponse.previousPageUrl)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetOrdersResponse {\n"); sb.append(" data: ").append(data).append("\n"); - sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append("}\n"); +sb.append(" hasMore: ").append(hasMore).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetPaymentMethodResponse.java b/src/main/java/io/conekta/model/GetPaymentMethodResponse.java index fe50b30..beaf34e 100644 --- a/src/main/java/io/conekta/model/GetPaymentMethodResponse.java +++ b/src/main/java/io/conekta/model/GetPaymentMethodResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetPaymentMethodResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class GetPaymentMethodResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? getPaymentMethodResponse.nextPageUrl == null : this.nextPageUrl.equals(getPaymentMethodResponse.nextPageUrl)) && (this.previousPageUrl == null ? getPaymentMethodResponse.previousPageUrl == null : this.previousPageUrl.equals(getPaymentMethodResponse.previousPageUrl)) && (this.data == null ? getPaymentMethodResponse.data == null : this.data.equals(getPaymentMethodResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetPaymentMethodResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetPlansResponse.java b/src/main/java/io/conekta/model/GetPlansResponse.java index 83e9d82..2048852 100644 --- a/src/main/java/io/conekta/model/GetPlansResponse.java +++ b/src/main/java/io/conekta/model/GetPlansResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetPlansResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class GetPlansResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? getPlansResponse.nextPageUrl == null : this.nextPageUrl.equals(getPlansResponse.nextPageUrl)) && (this.previousPageUrl == null ? getPlansResponse.previousPageUrl == null : this.previousPageUrl.equals(getPlansResponse.previousPageUrl)) && (this.data == null ? getPlansResponse.data == null : this.data.equals(getPlansResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetPlansResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetTransactionsResponse.java b/src/main/java/io/conekta/model/GetTransactionsResponse.java index 9be0dd4..340ea9e 100644 --- a/src/main/java/io/conekta/model/GetTransactionsResponse.java +++ b/src/main/java/io/conekta/model/GetTransactionsResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetTransactionsResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,60 +25,65 @@ public class GetTransactionsResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** * Transactions + * **/ @ApiModelProperty(value = "Transactions") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -96,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? getTransactionsResponse.nextPageUrl == null : this.nextPageUrl.equals(getTransactionsResponse.nextPageUrl)) && (this.previousPageUrl == null ? getTransactionsResponse.previousPageUrl == null : this.previousPageUrl.equals(getTransactionsResponse.previousPageUrl)) && (this.data == null ? getTransactionsResponse.data == null : this.data.equals(getTransactionsResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTransactionsResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetTransfersResponse.java b/src/main/java/io/conekta/model/GetTransfersResponse.java index e481300..9b8235e 100644 --- a/src/main/java/io/conekta/model/GetTransfersResponse.java +++ b/src/main/java/io/conekta/model/GetTransfersResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetTransfersResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,60 +25,65 @@ public class GetTransfersResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** * Transfers + * **/ @ApiModelProperty(value = "Transfers") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -96,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? getTransfersResponse.nextPageUrl == null : this.nextPageUrl.equals(getTransfersResponse.nextPageUrl)) && (this.previousPageUrl == null ? getTransfersResponse.previousPageUrl == null : this.previousPageUrl.equals(getTransfersResponse.previousPageUrl)) && (this.data == null ? getTransfersResponse.data == null : this.data.equals(getTransfersResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTransfersResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetWebhookKeysResponse.java b/src/main/java/io/conekta/model/GetWebhookKeysResponse.java index d51aa28..81366f1 100644 --- a/src/main/java/io/conekta/model/GetWebhookKeysResponse.java +++ b/src/main/java/io/conekta/model/GetWebhookKeysResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetWebhookKeysResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class GetWebhookKeysResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? getWebhookKeysResponse.nextPageUrl == null : this.nextPageUrl.equals(getWebhookKeysResponse.nextPageUrl)) && (this.previousPageUrl == null ? getWebhookKeysResponse.previousPageUrl == null : this.previousPageUrl.equals(getWebhookKeysResponse.previousPageUrl)) && (this.data == null ? getWebhookKeysResponse.data == null : this.data.equals(getWebhookKeysResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetWebhookKeysResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/GetWebhooksResponse.java b/src/main/java/io/conekta/model/GetWebhooksResponse.java index 592b183..1da09c9 100644 --- a/src/main/java/io/conekta/model/GetWebhooksResponse.java +++ b/src/main/java/io/conekta/model/GetWebhooksResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class GetWebhooksResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class GetWebhooksResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? getWebhooksResponse.nextPageUrl == null : this.nextPageUrl.equals(getWebhooksResponse.nextPageUrl)) && (this.previousPageUrl == null ? getWebhooksResponse.previousPageUrl == null : this.previousPageUrl.equals(getWebhooksResponse.previousPageUrl)) && (this.data == null ? getWebhooksResponse.data == null : this.data.equals(getWebhooksResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetWebhooksResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/LogResponse.java b/src/main/java/io/conekta/model/LogResponse.java index 5bfa621..be9ce52 100644 --- a/src/main/java/io/conekta/model/LogResponse.java +++ b/src/main/java/io/conekta/model/LogResponse.java @@ -5,20 +5,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * log model **/ @ApiModel(description = "log model") public class LogResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("created_at") private Long createdAt = null; @SerializedName("id") @@ -61,206 +58,246 @@ public class LogResponse { private String version = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIpAddress() { return ipAddress; } + public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getLoggableId() { return loggableId; } + public void setLoggableId(String loggableId) { this.loggableId = loggableId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getLoggableType() { return loggableType; } + public void setLoggableType(String loggableType) { this.loggableType = loggableType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getMethod() { return method; } + public void setMethod(String method) { this.method = method; } - /** + * + * **/ @ApiModelProperty(value = "") public String getOauthTokenId() { return oauthTokenId; } + public void setOauthTokenId(String oauthTokenId) { this.oauthTokenId = oauthTokenId; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getQueryString() { return queryString; } + public void setQueryString(Map queryString) { this.queryString = queryString; } - /** + * + * **/ @ApiModelProperty(value = "") public String getRelated() { return related; } + public void setRelated(String related) { this.related = related; } - /** + * + * **/ @ApiModelProperty(value = "") public Object getRequestBody() { return requestBody; } + public void setRequestBody(Object requestBody) { this.requestBody = requestBody; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getRequestHeaders() { return requestHeaders; } + public void setRequestHeaders(Map requestHeaders) { this.requestHeaders = requestHeaders; } - /** + * + * **/ @ApiModelProperty(value = "") public Object getResponseBody() { return responseBody; } + public void setResponseBody(Object responseBody) { this.responseBody = responseBody; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getResponseHeaders() { return responseHeaders; } + public void setResponseHeaders(Map responseHeaders) { this.responseHeaders = responseHeaders; } - /** + * + * **/ @ApiModelProperty(value = "") public List getSearchableTags() { return searchableTags; } + public void setSearchableTags(List searchableTags) { this.searchableTags = searchableTags; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - /** + * + * **/ @ApiModelProperty(value = "") public String getUpdatedAt() { return updatedAt; } + public void setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getUrl() { return url; } + public void setUrl(String url) { this.url = url; } - /** + * + * **/ @ApiModelProperty(value = "") public String getUserAccountId() { return userAccountId; } + public void setUserAccountId(String userAccountId) { this.userAccountId = userAccountId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getVersion() { return version; } + public void setVersion(String version) { this.version = version; } - @Override public boolean equals(Object o) { if (this == o) { @@ -290,60 +327,61 @@ public boolean equals(Object o) { (this.url == null ? logResponse.url == null : this.url.equals(logResponse.url)) && (this.userAccountId == null ? logResponse.userAccountId == null : this.userAccountId.equals(logResponse.userAccountId)) && (this.version == null ? logResponse.version == null : this.version.equals(logResponse.version)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.ipAddress == null ? 0: this.ipAddress.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.loggableId == null ? 0: this.loggableId.hashCode()); - result = 31 * result + (this.loggableType == null ? 0: this.loggableType.hashCode()); - result = 31 * result + (this.method == null ? 0: this.method.hashCode()); - result = 31 * result + (this.oauthTokenId == null ? 0: this.oauthTokenId.hashCode()); - result = 31 * result + (this.queryString == null ? 0: this.queryString.hashCode()); - result = 31 * result + (this.related == null ? 0: this.related.hashCode()); - result = 31 * result + (this.requestBody == null ? 0: this.requestBody.hashCode()); - result = 31 * result + (this.requestHeaders == null ? 0: this.requestHeaders.hashCode()); - result = 31 * result + (this.responseBody == null ? 0: this.responseBody.hashCode()); - result = 31 * result + (this.responseHeaders == null ? 0: this.responseHeaders.hashCode()); - result = 31 * result + (this.searchableTags == null ? 0: this.searchableTags.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); - result = 31 * result + (this.updatedAt == null ? 0: this.updatedAt.hashCode()); - result = 31 * result + (this.url == null ? 0: this.url.hashCode()); - result = 31 * result + (this.userAccountId == null ? 0: this.userAccountId.hashCode()); - result = 31 * result + (this.version == null ? 0: this.version.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.ipAddress == null ? 0 : this.ipAddress.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.loggableId == null ? 0 : this.loggableId.hashCode()); + result = 31 * result + (this.loggableType == null ? 0 : this.loggableType.hashCode()); + result = 31 * result + (this.method == null ? 0 : this.method.hashCode()); + result = 31 * result + (this.oauthTokenId == null ? 0 : this.oauthTokenId.hashCode()); + result = 31 * result + (this.queryString == null ? 0 : this.queryString.hashCode()); + result = 31 * result + (this.related == null ? 0 : this.related.hashCode()); + result = 31 * result + (this.requestBody == null ? 0 : this.requestBody.hashCode()); + result = 31 * result + (this.requestHeaders == null ? 0 : this.requestHeaders.hashCode()); + result = 31 * result + (this.responseBody == null ? 0 : this.responseBody.hashCode()); + result = 31 * result + (this.responseHeaders == null ? 0 : this.responseHeaders.hashCode()); + result = 31 * result + (this.searchableTags == null ? 0 : this.searchableTags.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); + result = 31 * result + (this.updatedAt == null ? 0 : this.updatedAt.hashCode()); + result = 31 * result + (this.url == null ? 0 : this.url.hashCode()); + result = 31 * result + (this.userAccountId == null ? 0 : this.userAccountId.hashCode()); + result = 31 * result + (this.version == null ? 0 : this.version.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogResponse {\n"); sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" ipAddress: ").append(ipAddress).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" loggableId: ").append(loggableId).append("\n"); - sb.append(" loggableType: ").append(loggableType).append("\n"); - sb.append(" method: ").append(method).append("\n"); - sb.append(" oauthTokenId: ").append(oauthTokenId).append("\n"); - sb.append(" queryString: ").append(queryString).append("\n"); - sb.append(" related: ").append(related).append("\n"); - sb.append(" requestBody: ").append(requestBody).append("\n"); - sb.append(" requestHeaders: ").append(requestHeaders).append("\n"); - sb.append(" responseBody: ").append(responseBody).append("\n"); - sb.append(" responseHeaders: ").append(responseHeaders).append("\n"); - sb.append(" searchableTags: ").append(searchableTags).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append(" updatedAt: ").append(updatedAt).append("\n"); - sb.append(" url: ").append(url).append("\n"); - sb.append(" userAccountId: ").append(userAccountId).append("\n"); - sb.append(" version: ").append(version).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" ipAddress: ").append(ipAddress).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" loggableId: ").append(loggableId).append("\n"); +sb.append(" loggableType: ").append(loggableType).append("\n"); +sb.append(" method: ").append(method).append("\n"); +sb.append(" oauthTokenId: ").append(oauthTokenId).append("\n"); +sb.append(" queryString: ").append(queryString).append("\n"); +sb.append(" related: ").append(related).append("\n"); +sb.append(" requestBody: ").append(requestBody).append("\n"); +sb.append(" requestHeaders: ").append(requestHeaders).append("\n"); +sb.append(" responseBody: ").append(responseBody).append("\n"); +sb.append(" responseHeaders: ").append(responseHeaders).append("\n"); +sb.append(" searchableTags: ").append(searchableTags).append("\n"); +sb.append(" status: ").append(status).append("\n"); +sb.append(" updatedAt: ").append(updatedAt).append("\n"); +sb.append(" url: ").append(url).append("\n"); +sb.append(" userAccountId: ").append(userAccountId).append("\n"); +sb.append(" version: ").append(version).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/LogsResponse.java b/src/main/java/io/conekta/model/LogsResponse.java index 4b5dd55..d3103d5 100644 --- a/src/main/java/io/conekta/model/LogsResponse.java +++ b/src/main/java/io/conekta/model/LogsResponse.java @@ -4,20 +4,17 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * logs model **/ @ApiModel(description = "logs model") public class LogsResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -31,60 +28,65 @@ public class LogsResponse { /** * True, if there are more pages. + * **/ @ApiModelProperty(value = "True, if there are more pages.") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * The object type + * **/ @ApiModelProperty(value = "The object type") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** * set to page results. + * **/ @ApiModelProperty(value = "set to page results.") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -99,30 +101,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? logsResponse.nextPageUrl == null : this.nextPageUrl.equals(logsResponse.nextPageUrl)) && (this.previousPageUrl == null ? logsResponse.previousPageUrl == null : this.previousPageUrl.equals(logsResponse.previousPageUrl)) && (this.data == null ? logsResponse.data == null : this.data.equals(logsResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/LogsResponseData.java b/src/main/java/io/conekta/model/LogsResponseData.java index 924d191..2ce8838 100644 --- a/src/main/java/io/conekta/model/LogsResponseData.java +++ b/src/main/java/io/conekta/model/LogsResponseData.java @@ -5,17 +5,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class LogsResponseData { - + private static final String MXN = "MXN"; - - + @SerializedName("created_at") private Long createdAt = null; @SerializedName("id") @@ -58,206 +55,246 @@ public class LogsResponseData { private String version = null; /** + * + * **/ @ApiModelProperty(value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIpAddress() { return ipAddress; } + public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getLoggableId() { return loggableId; } + public void setLoggableId(String loggableId) { this.loggableId = loggableId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getLoggableType() { return loggableType; } + public void setLoggableType(String loggableType) { this.loggableType = loggableType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getMethod() { return method; } + public void setMethod(String method) { this.method = method; } - /** + * + * **/ @ApiModelProperty(value = "") public String getOauthTokenId() { return oauthTokenId; } + public void setOauthTokenId(String oauthTokenId) { this.oauthTokenId = oauthTokenId; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getQueryString() { return queryString; } + public void setQueryString(Map queryString) { this.queryString = queryString; } - /** + * + * **/ @ApiModelProperty(value = "") public String getRelated() { return related; } + public void setRelated(String related) { this.related = related; } - /** + * + * **/ @ApiModelProperty(value = "") public Object getRequestBody() { return requestBody; } + public void setRequestBody(Object requestBody) { this.requestBody = requestBody; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getRequestHeaders() { return requestHeaders; } + public void setRequestHeaders(Map requestHeaders) { this.requestHeaders = requestHeaders; } - /** + * + * **/ @ApiModelProperty(value = "") public Object getResponseBody() { return responseBody; } + public void setResponseBody(Object responseBody) { this.responseBody = responseBody; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getResponseHeaders() { return responseHeaders; } + public void setResponseHeaders(Map responseHeaders) { this.responseHeaders = responseHeaders; } - /** + * + * **/ @ApiModelProperty(value = "") public List getSearchableTags() { return searchableTags; } + public void setSearchableTags(List searchableTags) { this.searchableTags = searchableTags; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - /** + * + * **/ @ApiModelProperty(value = "") public String getUpdatedAt() { return updatedAt; } + public void setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getUrl() { return url; } + public void setUrl(String url) { this.url = url; } - /** + * + * **/ @ApiModelProperty(value = "") public String getUserAccountId() { return userAccountId; } + public void setUserAccountId(String userAccountId) { this.userAccountId = userAccountId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getVersion() { return version; } + public void setVersion(String version) { this.version = version; } - @Override public boolean equals(Object o) { if (this == o) { @@ -287,60 +324,61 @@ public boolean equals(Object o) { (this.url == null ? logsResponseData.url == null : this.url.equals(logsResponseData.url)) && (this.userAccountId == null ? logsResponseData.userAccountId == null : this.userAccountId.equals(logsResponseData.userAccountId)) && (this.version == null ? logsResponseData.version == null : this.version.equals(logsResponseData.version)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.ipAddress == null ? 0: this.ipAddress.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.loggableId == null ? 0: this.loggableId.hashCode()); - result = 31 * result + (this.loggableType == null ? 0: this.loggableType.hashCode()); - result = 31 * result + (this.method == null ? 0: this.method.hashCode()); - result = 31 * result + (this.oauthTokenId == null ? 0: this.oauthTokenId.hashCode()); - result = 31 * result + (this.queryString == null ? 0: this.queryString.hashCode()); - result = 31 * result + (this.related == null ? 0: this.related.hashCode()); - result = 31 * result + (this.requestBody == null ? 0: this.requestBody.hashCode()); - result = 31 * result + (this.requestHeaders == null ? 0: this.requestHeaders.hashCode()); - result = 31 * result + (this.responseBody == null ? 0: this.responseBody.hashCode()); - result = 31 * result + (this.responseHeaders == null ? 0: this.responseHeaders.hashCode()); - result = 31 * result + (this.searchableTags == null ? 0: this.searchableTags.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); - result = 31 * result + (this.updatedAt == null ? 0: this.updatedAt.hashCode()); - result = 31 * result + (this.url == null ? 0: this.url.hashCode()); - result = 31 * result + (this.userAccountId == null ? 0: this.userAccountId.hashCode()); - result = 31 * result + (this.version == null ? 0: this.version.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.ipAddress == null ? 0 : this.ipAddress.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.loggableId == null ? 0 : this.loggableId.hashCode()); + result = 31 * result + (this.loggableType == null ? 0 : this.loggableType.hashCode()); + result = 31 * result + (this.method == null ? 0 : this.method.hashCode()); + result = 31 * result + (this.oauthTokenId == null ? 0 : this.oauthTokenId.hashCode()); + result = 31 * result + (this.queryString == null ? 0 : this.queryString.hashCode()); + result = 31 * result + (this.related == null ? 0 : this.related.hashCode()); + result = 31 * result + (this.requestBody == null ? 0 : this.requestBody.hashCode()); + result = 31 * result + (this.requestHeaders == null ? 0 : this.requestHeaders.hashCode()); + result = 31 * result + (this.responseBody == null ? 0 : this.responseBody.hashCode()); + result = 31 * result + (this.responseHeaders == null ? 0 : this.responseHeaders.hashCode()); + result = 31 * result + (this.searchableTags == null ? 0 : this.searchableTags.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); + result = 31 * result + (this.updatedAt == null ? 0 : this.updatedAt.hashCode()); + result = 31 * result + (this.url == null ? 0 : this.url.hashCode()); + result = 31 * result + (this.userAccountId == null ? 0 : this.userAccountId.hashCode()); + result = 31 * result + (this.version == null ? 0 : this.version.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LogsResponseData {\n"); sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" ipAddress: ").append(ipAddress).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" loggableId: ").append(loggableId).append("\n"); - sb.append(" loggableType: ").append(loggableType).append("\n"); - sb.append(" method: ").append(method).append("\n"); - sb.append(" oauthTokenId: ").append(oauthTokenId).append("\n"); - sb.append(" queryString: ").append(queryString).append("\n"); - sb.append(" related: ").append(related).append("\n"); - sb.append(" requestBody: ").append(requestBody).append("\n"); - sb.append(" requestHeaders: ").append(requestHeaders).append("\n"); - sb.append(" responseBody: ").append(responseBody).append("\n"); - sb.append(" responseHeaders: ").append(responseHeaders).append("\n"); - sb.append(" searchableTags: ").append(searchableTags).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append(" updatedAt: ").append(updatedAt).append("\n"); - sb.append(" url: ").append(url).append("\n"); - sb.append(" userAccountId: ").append(userAccountId).append("\n"); - sb.append(" version: ").append(version).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" ipAddress: ").append(ipAddress).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" loggableId: ").append(loggableId).append("\n"); +sb.append(" loggableType: ").append(loggableType).append("\n"); +sb.append(" method: ").append(method).append("\n"); +sb.append(" oauthTokenId: ").append(oauthTokenId).append("\n"); +sb.append(" queryString: ").append(queryString).append("\n"); +sb.append(" related: ").append(related).append("\n"); +sb.append(" requestBody: ").append(requestBody).append("\n"); +sb.append(" requestHeaders: ").append(requestHeaders).append("\n"); +sb.append(" responseBody: ").append(responseBody).append("\n"); +sb.append(" responseHeaders: ").append(responseHeaders).append("\n"); +sb.append(" searchableTags: ").append(searchableTags).append("\n"); +sb.append(" status: ").append(status).append("\n"); +sb.append(" updatedAt: ").append(updatedAt).append("\n"); +sb.append(" url: ").append(url).append("\n"); +sb.append(" userAccountId: ").append(userAccountId).append("\n"); +sb.append(" version: ").append(version).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderCaptureRequest.java b/src/main/java/io/conekta/model/OrderCaptureRequest.java index 23b3a2e..39ba4bb 100644 --- a/src/main/java/io/conekta/model/OrderCaptureRequest.java +++ b/src/main/java/io/conekta/model/OrderCaptureRequest.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class OrderCaptureRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @@ -24,11 +21,11 @@ public class OrderCaptureRequest { public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - @Override public boolean equals(Object o) { if (this == o) { @@ -39,22 +36,23 @@ public boolean equals(Object o) { } OrderCaptureRequest orderCaptureRequest = (OrderCaptureRequest) o; return (this.amount == null ? orderCaptureRequest.amount == null : this.amount.equals(orderCaptureRequest.amount)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderCaptureRequest {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderCustomerInfoResponse.java b/src/main/java/io/conekta/model/OrderCustomerInfoResponse.java index 8a20d4a..14a9e9f 100644 --- a/src/main/java/io/conekta/model/OrderCustomerInfoResponse.java +++ b/src/main/java/io/conekta/model/OrderCustomerInfoResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class OrderCustomerInfoResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("customer_custom_reference") private String customerCustomReference = null; @SerializedName("name") @@ -28,66 +25,77 @@ public class OrderCustomerInfoResponse { /** * Custom reference + * **/ @ApiModelProperty(value = "Custom reference") public String getCustomerCustomReference() { return customerCustomReference; } + public void setCustomerCustomReference(String customerCustomReference) { this.customerCustomReference = customerCustomReference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getCorporate() { return corporate; } + public void setCorporate(Boolean corporate) { this.corporate = corporate; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - @Override public boolean equals(Object o) { if (this == o) { @@ -103,32 +111,33 @@ public boolean equals(Object o) { (this.phone == null ? orderCustomerInfoResponse.phone == null : this.phone.equals(orderCustomerInfoResponse.phone)) && (this.corporate == null ? orderCustomerInfoResponse.corporate == null : this.corporate.equals(orderCustomerInfoResponse.corporate)) && (this._object == null ? orderCustomerInfoResponse._object == null : this._object.equals(orderCustomerInfoResponse._object)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.customerCustomReference == null ? 0: this.customerCustomReference.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.corporate == null ? 0: this.corporate.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); + result = 31 * result + (this.customerCustomReference == null ? 0 : this.customerCustomReference.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.corporate == null ? 0 : this.corporate.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderCustomerInfoResponse {\n"); sb.append(" customerCustomReference: ").append(customerCustomReference).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" corporate: ").append(corporate).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append("}\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" corporate: ").append(corporate).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderDiscountLinesRequest.java b/src/main/java/io/conekta/model/OrderDiscountLinesRequest.java index a4a27ea..47aed37 100644 --- a/src/main/java/io/conekta/model/OrderDiscountLinesRequest.java +++ b/src/main/java/io/conekta/model/OrderDiscountLinesRequest.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * List of discounts that apply to the order. **/ @ApiModel(description = "List of discounts that apply to the order.") public class OrderDiscountLinesRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("code") @@ -31,33 +28,35 @@ public class OrderDiscountLinesRequest { public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * Discount code. + * **/ @ApiModelProperty(required = true, value = "Discount code.") public String getCode() { return code; } + public void setCode(String code) { this.code = code; } - /** * It can be 'loyalty', 'campaign', 'coupon' o 'sign' + * **/ @ApiModelProperty(required = true, value = "It can be 'loyalty', 'campaign', 'coupon' o 'sign'") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -70,26 +69,27 @@ public boolean equals(Object o) { return (this.amount == null ? orderDiscountLinesRequest.amount == null : this.amount.equals(orderDiscountLinesRequest.amount)) && (this.code == null ? orderDiscountLinesRequest.code == null : this.code.equals(orderDiscountLinesRequest.code)) && (this.type == null ? orderDiscountLinesRequest.type == null : this.type.equals(orderDiscountLinesRequest.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.code == null ? 0: this.code.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.code == null ? 0 : this.code.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderDiscountLinesRequest {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" code: ").append(code).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); +sb.append(" code: ").append(code).append("\n"); +sb.append(" type: ").append(type).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderFiscalEntityAddressResponse.java b/src/main/java/io/conekta/model/OrderFiscalEntityAddressResponse.java index 589738b..d85416c 100644 --- a/src/main/java/io/conekta/model/OrderFiscalEntityAddressResponse.java +++ b/src/main/java/io/conekta/model/OrderFiscalEntityAddressResponse.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Address of the fiscal entity **/ @ApiModel(description = "Address of the fiscal entity") public class OrderFiscalEntityAddressResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("street1") private String street1 = null; @SerializedName("street2") @@ -35,92 +32,101 @@ public class OrderFiscalEntityAddressResponse { /** * Street name and number + * **/ @ApiModelProperty(required = true, value = "Street name and number") public String getStreet1() { return street1; } + public void setStreet1(String street1) { this.street1 = street1; } - /** * Street name and number + * **/ @ApiModelProperty(value = "Street name and number") public String getStreet2() { return street2; } + public void setStreet2(String street2) { this.street2 = street2; } - /** * Postal code + * **/ @ApiModelProperty(required = true, value = "Postal code") public String getPostalCode() { return postalCode; } + public void setPostalCode(String postalCode) { this.postalCode = postalCode; } - /** * City + * **/ @ApiModelProperty(required = true, value = "City") public String getCity() { return city; } + public void setCity(String city) { this.city = city; } - /** * State + * **/ @ApiModelProperty(value = "State") public String getState() { return state; } + public void setState(String state) { this.state = state; } - /** * this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * **/ @ApiModelProperty(required = true, value = "this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)") public String getCountry() { return country; } + public void setCountry(String country) { this.country = country; } - /** * External number + * **/ @ApiModelProperty(required = true, value = "External number") public String getExternalNumber() { return externalNumber; } + public void setExternalNumber(String externalNumber) { this.externalNumber = externalNumber; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - @Override public boolean equals(Object o) { if (this == o) { @@ -138,36 +144,37 @@ public boolean equals(Object o) { (this.country == null ? orderFiscalEntityAddressResponse.country == null : this.country.equals(orderFiscalEntityAddressResponse.country)) && (this.externalNumber == null ? orderFiscalEntityAddressResponse.externalNumber == null : this.externalNumber.equals(orderFiscalEntityAddressResponse.externalNumber)) && (this._object == null ? orderFiscalEntityAddressResponse._object == null : this._object.equals(orderFiscalEntityAddressResponse._object)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.street1 == null ? 0: this.street1.hashCode()); - result = 31 * result + (this.street2 == null ? 0: this.street2.hashCode()); - result = 31 * result + (this.postalCode == null ? 0: this.postalCode.hashCode()); - result = 31 * result + (this.city == null ? 0: this.city.hashCode()); - result = 31 * result + (this.state == null ? 0: this.state.hashCode()); - result = 31 * result + (this.country == null ? 0: this.country.hashCode()); - result = 31 * result + (this.externalNumber == null ? 0: this.externalNumber.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); + result = 31 * result + (this.street1 == null ? 0 : this.street1.hashCode()); + result = 31 * result + (this.street2 == null ? 0 : this.street2.hashCode()); + result = 31 * result + (this.postalCode == null ? 0 : this.postalCode.hashCode()); + result = 31 * result + (this.city == null ? 0 : this.city.hashCode()); + result = 31 * result + (this.state == null ? 0 : this.state.hashCode()); + result = 31 * result + (this.country == null ? 0 : this.country.hashCode()); + result = 31 * result + (this.externalNumber == null ? 0 : this.externalNumber.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderFiscalEntityAddressResponse {\n"); sb.append(" street1: ").append(street1).append("\n"); - sb.append(" street2: ").append(street2).append("\n"); - sb.append(" postalCode: ").append(postalCode).append("\n"); - sb.append(" city: ").append(city).append("\n"); - sb.append(" state: ").append(state).append("\n"); - sb.append(" country: ").append(country).append("\n"); - sb.append(" externalNumber: ").append(externalNumber).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append("}\n"); +sb.append(" street2: ").append(street2).append("\n"); +sb.append(" postalCode: ").append(postalCode).append("\n"); +sb.append(" city: ").append(city).append("\n"); +sb.append(" state: ").append(state).append("\n"); +sb.append(" country: ").append(country).append("\n"); +sb.append(" externalNumber: ").append(externalNumber).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderFiscalEntityRequest.java b/src/main/java/io/conekta/model/OrderFiscalEntityRequest.java index e231db2..34f3df9 100644 --- a/src/main/java/io/conekta/model/OrderFiscalEntityRequest.java +++ b/src/main/java/io/conekta/model/OrderFiscalEntityRequest.java @@ -5,20 +5,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Fiscal entity of the order, Currently it is a purely informative field **/ @ApiModel(description = "Fiscal entity of the order, Currently it is a purely informative field") public class OrderFiscalEntityRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("address") private FiscalEntityAddress address = null; @SerializedName("email") @@ -33,71 +30,78 @@ public class OrderFiscalEntityRequest { private String taxId = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public FiscalEntityAddress getAddress() { return address; } + public void setAddress(FiscalEntityAddress address) { this.address = address; } - /** * Email of the fiscal entity + * **/ @ApiModelProperty(value = "Email of the fiscal entity") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** * Metadata associated with the fiscal entity + * **/ @ApiModelProperty(value = "Metadata associated with the fiscal entity") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * Name of the fiscal entity + * **/ @ApiModelProperty(value = "Name of the fiscal entity") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * Phone of the fiscal entity + * **/ @ApiModelProperty(value = "Phone of the fiscal entity") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** * Tax ID of the fiscal entity + * **/ @ApiModelProperty(value = "Tax ID of the fiscal entity") public String getTaxId() { return taxId; } + public void setTaxId(String taxId) { this.taxId = taxId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -113,32 +117,33 @@ public boolean equals(Object o) { (this.name == null ? orderFiscalEntityRequest.name == null : this.name.equals(orderFiscalEntityRequest.name)) && (this.phone == null ? orderFiscalEntityRequest.phone == null : this.phone.equals(orderFiscalEntityRequest.phone)) && (this.taxId == null ? orderFiscalEntityRequest.taxId == null : this.taxId.equals(orderFiscalEntityRequest.taxId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.taxId == null ? 0: this.taxId.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.taxId == null ? 0 : this.taxId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderFiscalEntityRequest {\n"); sb.append(" address: ").append(address).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" taxId: ").append(taxId).append("\n"); - sb.append("}\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" taxId: ").append(taxId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderFiscalEntityResponse.java b/src/main/java/io/conekta/model/OrderFiscalEntityResponse.java index 2317ed1..1676f19 100644 --- a/src/main/java/io/conekta/model/OrderFiscalEntityResponse.java +++ b/src/main/java/io/conekta/model/OrderFiscalEntityResponse.java @@ -5,20 +5,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Fiscal entity of the order, Currently it is a purely informative field **/ @ApiModel(description = "Fiscal entity of the order, Currently it is a purely informative field") public class OrderFiscalEntityResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("address") private OrderFiscalEntityAddressResponse address = null; @SerializedName("email") @@ -39,103 +36,114 @@ public class OrderFiscalEntityResponse { private String phone = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public OrderFiscalEntityAddressResponse getAddress() { return address; } + public void setAddress(OrderFiscalEntityAddressResponse address) { this.address = address; } - /** * Email of the fiscal entity + * **/ @ApiModelProperty(value = "Email of the fiscal entity") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** * Metadata associated with the fiscal entity + * **/ @ApiModelProperty(value = "Metadata associated with the fiscal entity") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * Name of the fiscal entity + * **/ @ApiModelProperty(value = "Name of the fiscal entity") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * Tax ID of the fiscal entity + * **/ @ApiModelProperty(value = "Tax ID of the fiscal entity") public String getTaxId() { return taxId; } + public void setTaxId(String taxId) { this.taxId = taxId; } - /** * ID of the fiscal entity + * **/ @ApiModelProperty(required = true, value = "ID of the fiscal entity") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * The time at which the object was created in seconds since the Unix epoch + * **/ @ApiModelProperty(required = true, value = "The time at which the object was created in seconds since the Unix epoch") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Phone of the fiscal entity + * **/ @ApiModelProperty(value = "Phone of the fiscal entity") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - @Override public boolean equals(Object o) { if (this == o) { @@ -154,38 +162,39 @@ public boolean equals(Object o) { (this.createdAt == null ? orderFiscalEntityResponse.createdAt == null : this.createdAt.equals(orderFiscalEntityResponse.createdAt)) && (this._object == null ? orderFiscalEntityResponse._object == null : this._object.equals(orderFiscalEntityResponse._object)) && (this.phone == null ? orderFiscalEntityResponse.phone == null : this.phone.equals(orderFiscalEntityResponse.phone)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.taxId == null ? 0: this.taxId.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.taxId == null ? 0 : this.taxId.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderFiscalEntityResponse {\n"); sb.append(" address: ").append(address).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" taxId: ").append(taxId).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append("}\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" taxId: ").append(taxId).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderNextActionResponse.java b/src/main/java/io/conekta/model/OrderNextActionResponse.java index 6c36211..d2e5a63 100644 --- a/src/main/java/io/conekta/model/OrderNextActionResponse.java +++ b/src/main/java/io/conekta/model/OrderNextActionResponse.java @@ -3,47 +3,47 @@ import io.conekta.model.OrderNextActionResponseRedirectToUrl; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * contains the following attributes that will guide to continue the flow **/ @ApiModel(description = "contains the following attributes that will guide to continue the flow") public class OrderNextActionResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("redirect_to_url") private OrderNextActionResponseRedirectToUrl redirectToUrl = null; @SerializedName("type") private String type = null; /** + * + * **/ @ApiModelProperty(value = "") public OrderNextActionResponseRedirectToUrl getRedirectToUrl() { return redirectToUrl; } + public void setRedirectToUrl(OrderNextActionResponseRedirectToUrl redirectToUrl) { this.redirectToUrl = redirectToUrl; } - /** * Indicates the type of action to be taken + * **/ @ApiModelProperty(value = "Indicates the type of action to be taken") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -55,24 +55,25 @@ public boolean equals(Object o) { OrderNextActionResponse orderNextActionResponse = (OrderNextActionResponse) o; return (this.redirectToUrl == null ? orderNextActionResponse.redirectToUrl == null : this.redirectToUrl.equals(orderNextActionResponse.redirectToUrl)) && (this.type == null ? orderNextActionResponse.type == null : this.type.equals(orderNextActionResponse.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.redirectToUrl == null ? 0: this.redirectToUrl.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.redirectToUrl == null ? 0 : this.redirectToUrl.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderNextActionResponse {\n"); sb.append(" redirectToUrl: ").append(redirectToUrl).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); +sb.append(" type: ").append(type).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderNextActionResponseRedirectToUrl.java b/src/main/java/io/conekta/model/OrderNextActionResponseRedirectToUrl.java index e950457..97117f3 100644 --- a/src/main/java/io/conekta/model/OrderNextActionResponseRedirectToUrl.java +++ b/src/main/java/io/conekta/model/OrderNextActionResponseRedirectToUrl.java @@ -3,20 +3,17 @@ import java.net.URI; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * contains the following attributes that will guide to continue the flow **/ @ApiModel(description = "contains the following attributes that will guide to continue the flow") public class OrderNextActionResponseRedirectToUrl { - + private static final String MXN = "MXN"; - - + @SerializedName("url") private URI url = null; @SerializedName("return_url") @@ -24,27 +21,29 @@ public class OrderNextActionResponseRedirectToUrl { /** * pay.conekta.com/{id} Indicates the url of the Conekta component to authenticate the flow through 3DS2. + * **/ @ApiModelProperty(value = "pay.conekta.com/{id} Indicates the url of the Conekta component to authenticate the flow through 3DS2.") public URI getUrl() { return url; } + public void setUrl(URI url) { this.url = url; } - /** * Indicates the url to which the 3DS2 flow returns at the end, when the integration is redirected. + * **/ @ApiModelProperty(value = "Indicates the url to which the 3DS2 flow returns at the end, when the integration is redirected.") public URI getReturnUrl() { return returnUrl; } + public void setReturnUrl(URI returnUrl) { this.returnUrl = returnUrl; } - @Override public boolean equals(Object o) { if (this == o) { @@ -56,24 +55,25 @@ public boolean equals(Object o) { OrderNextActionResponseRedirectToUrl orderNextActionResponseRedirectToUrl = (OrderNextActionResponseRedirectToUrl) o; return (this.url == null ? orderNextActionResponseRedirectToUrl.url == null : this.url.equals(orderNextActionResponseRedirectToUrl.url)) && (this.returnUrl == null ? orderNextActionResponseRedirectToUrl.returnUrl == null : this.returnUrl.equals(orderNextActionResponseRedirectToUrl.returnUrl)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.url == null ? 0: this.url.hashCode()); - result = 31 * result + (this.returnUrl == null ? 0: this.returnUrl.hashCode()); + result = 31 * result + (this.url == null ? 0 : this.url.hashCode()); + result = 31 * result + (this.returnUrl == null ? 0 : this.returnUrl.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderNextActionResponseRedirectToUrl {\n"); sb.append(" url: ").append(url).append("\n"); - sb.append(" returnUrl: ").append(returnUrl).append("\n"); - sb.append("}\n"); +sb.append(" returnUrl: ").append(returnUrl).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderRefundRequest.java b/src/main/java/io/conekta/model/OrderRefundRequest.java index 4d7528d..9c61cd3 100644 --- a/src/main/java/io/conekta/model/OrderRefundRequest.java +++ b/src/main/java/io/conekta/model/OrderRefundRequest.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class OrderRefundRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("expires_at") @@ -22,37 +19,41 @@ public class OrderRefundRequest { /** * Amount to be refunded in cents + * **/ @ApiModelProperty(required = true, value = "Amount to be refunded in cents") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * Reason for the refund + * **/ @ApiModelProperty(required = true, value = "Reason for the refund") public String getReason() { return reason; } + public void setReason(String reason) { this.reason = reason; } - @Override public boolean equals(Object o) { if (this == o) { @@ -65,26 +66,27 @@ public boolean equals(Object o) { return (this.amount == null ? orderRefundRequest.amount == null : this.amount.equals(orderRefundRequest.amount)) && (this.expiresAt == null ? orderRefundRequest.expiresAt == null : this.expiresAt.equals(orderRefundRequest.expiresAt)) && (this.reason == null ? orderRefundRequest.reason == null : this.reason.equals(orderRefundRequest.reason)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.reason == null ? 0: this.reason.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.reason == null ? 0 : this.reason.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderRefundRequest {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" reason: ").append(reason).append("\n"); - sb.append("}\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" reason: ").append(reason).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderRequest.java b/src/main/java/io/conekta/model/OrderRequest.java index 9b8f8fd..1563dd0 100644 --- a/src/main/java/io/conekta/model/OrderRequest.java +++ b/src/main/java/io/conekta/model/OrderRequest.java @@ -15,20 +15,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * a order **/ @ApiModel(description = "a order") public class OrderRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("charges") private List charges = null; @SerializedName("checkout") @@ -64,177 +61,197 @@ public class OrderRequest { /** * List of [charges](https://developers.conekta.com/v2.1.0/reference/orderscreatecharge) that are applied to the order + * **/ @ApiModelProperty(value = "List of [charges](https://developers.conekta.com/v2.1.0/reference/orderscreatecharge) that are applied to the order") public List getCharges() { return charges; } + public void setCharges(List charges) { this.charges = charges; } - /** + * + * **/ @ApiModelProperty(value = "") public CheckoutRequest getCheckout() { return checkout; } + public void setCheckout(CheckoutRequest checkout) { this.checkout = checkout; } - /** * Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) + * **/ @ApiModelProperty(required = true, value = "Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217)") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public OrderRequestCustomerInfo getCustomerInfo() { return customerInfo; } + public void setCustomerInfo(OrderRequestCustomerInfo customerInfo) { this.customerInfo = customerInfo; } - /** * List of [discounts](https://developers.conekta.com/v2.1.0/reference/orderscreatediscountline) that are applied to the order. You must have at least one discount. + * **/ @ApiModelProperty(value = "List of [discounts](https://developers.conekta.com/v2.1.0/reference/orderscreatediscountline) that are applied to the order. You must have at least one discount.") public List getDiscountLines() { return discountLines; } + public void setDiscountLines(List discountLines) { this.discountLines = discountLines; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderFiscalEntityRequest getFiscalEntity() { return fiscalEntity; } + public void setFiscalEntity(OrderFiscalEntityRequest fiscalEntity) { this.fiscalEntity = fiscalEntity; } - /** * List of [products](https://developers.conekta.com/v2.1.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. + * **/ @ApiModelProperty(required = true, value = "List of [products](https://developers.conekta.com/v2.1.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product.") public List getLineItems() { return lineItems; } + public void setLineItems(List lineItems) { this.lineItems = lineItems; } - /** * Metadata associated with the order + * **/ @ApiModelProperty(value = "Metadata associated with the order") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * Allows you to fill out the shipping information at checkout + * **/ @ApiModelProperty(value = "Allows you to fill out the shipping information at checkout") public Boolean getNeedsShippingContact() { return needsShippingContact; } + public void setNeedsShippingContact(Boolean needsShippingContact) { this.needsShippingContact = needsShippingContact; } - /** * Indicates whether the order charges must be preauthorized + * **/ @ApiModelProperty(value = "Indicates whether the order charges must be preauthorized") public Boolean getPreAuthorize() { return preAuthorize; } + public void setPreAuthorize(Boolean preAuthorize) { this.preAuthorize = preAuthorize; } - /** * Indicates the processing mode for the order, either ecommerce, recurrent or validation. + * **/ @ApiModelProperty(value = "Indicates the processing mode for the order, either ecommerce, recurrent or validation.") public String getProcessingMode() { return processingMode; } + public void setProcessingMode(String processingMode) { this.processingMode = processingMode; } - /** * Indicates the redirection callback upon completion of the 3DS2 flow. Do not use this parameter if your order has a checkout parameter + * **/ @ApiModelProperty(value = "Indicates the redirection callback upon completion of the 3DS2 flow. Do not use this parameter if your order has a checkout parameter") public URI getReturnUrl() { return returnUrl; } + public void setReturnUrl(URI returnUrl) { this.returnUrl = returnUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public CustomerShippingContacts getShippingContact() { return shippingContact; } + public void setShippingContact(CustomerShippingContacts shippingContact) { this.shippingContact = shippingContact; } - /** * List of [shipping costs](https://developers.conekta.com/v2.1.0/reference/orderscreateshipping). If the online store offers digital products. + * **/ @ApiModelProperty(value = "List of [shipping costs](https://developers.conekta.com/v2.1.0/reference/orderscreateshipping). If the online store offers digital products.") public List getShippingLines() { return shippingLines; } + public void setShippingLines(List shippingLines) { this.shippingLines = shippingLines; } - /** * List of [taxes](https://developers.conekta.com/v2.1.0/reference/orderscreatetaxes) that are applied to the order. + * **/ @ApiModelProperty(value = "List of [taxes](https://developers.conekta.com/v2.1.0/reference/orderscreatetaxes) that are applied to the order.") public List getTaxLines() { return taxLines; } + public void setTaxLines(List taxLines) { this.taxLines = taxLines; } - /** * Indicates the 3DS2 mode for the order, either smart or strict. + * **/ @ApiModelProperty(value = "Indicates the 3DS2 mode for the order, either smart or strict.") public String getThreeDsMode() { return threeDsMode; } + public void setThreeDsMode(String threeDsMode) { this.threeDsMode = threeDsMode; } - @Override public boolean equals(Object o) { if (this == o) { @@ -260,52 +277,53 @@ public boolean equals(Object o) { (this.shippingLines == null ? orderRequest.shippingLines == null : this.shippingLines.equals(orderRequest.shippingLines)) && (this.taxLines == null ? orderRequest.taxLines == null : this.taxLines.equals(orderRequest.taxLines)) && (this.threeDsMode == null ? orderRequest.threeDsMode == null : this.threeDsMode.equals(orderRequest.threeDsMode)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.charges == null ? 0: this.charges.hashCode()); - result = 31 * result + (this.checkout == null ? 0: this.checkout.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.customerInfo == null ? 0: this.customerInfo.hashCode()); - result = 31 * result + (this.discountLines == null ? 0: this.discountLines.hashCode()); - result = 31 * result + (this.fiscalEntity == null ? 0: this.fiscalEntity.hashCode()); - result = 31 * result + (this.lineItems == null ? 0: this.lineItems.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.needsShippingContact == null ? 0: this.needsShippingContact.hashCode()); - result = 31 * result + (this.preAuthorize == null ? 0: this.preAuthorize.hashCode()); - result = 31 * result + (this.processingMode == null ? 0: this.processingMode.hashCode()); - result = 31 * result + (this.returnUrl == null ? 0: this.returnUrl.hashCode()); - result = 31 * result + (this.shippingContact == null ? 0: this.shippingContact.hashCode()); - result = 31 * result + (this.shippingLines == null ? 0: this.shippingLines.hashCode()); - result = 31 * result + (this.taxLines == null ? 0: this.taxLines.hashCode()); - result = 31 * result + (this.threeDsMode == null ? 0: this.threeDsMode.hashCode()); + result = 31 * result + (this.charges == null ? 0 : this.charges.hashCode()); + result = 31 * result + (this.checkout == null ? 0 : this.checkout.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.customerInfo == null ? 0 : this.customerInfo.hashCode()); + result = 31 * result + (this.discountLines == null ? 0 : this.discountLines.hashCode()); + result = 31 * result + (this.fiscalEntity == null ? 0 : this.fiscalEntity.hashCode()); + result = 31 * result + (this.lineItems == null ? 0 : this.lineItems.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.needsShippingContact == null ? 0 : this.needsShippingContact.hashCode()); + result = 31 * result + (this.preAuthorize == null ? 0 : this.preAuthorize.hashCode()); + result = 31 * result + (this.processingMode == null ? 0 : this.processingMode.hashCode()); + result = 31 * result + (this.returnUrl == null ? 0 : this.returnUrl.hashCode()); + result = 31 * result + (this.shippingContact == null ? 0 : this.shippingContact.hashCode()); + result = 31 * result + (this.shippingLines == null ? 0 : this.shippingLines.hashCode()); + result = 31 * result + (this.taxLines == null ? 0 : this.taxLines.hashCode()); + result = 31 * result + (this.threeDsMode == null ? 0 : this.threeDsMode.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderRequest {\n"); sb.append(" charges: ").append(charges).append("\n"); - sb.append(" checkout: ").append(checkout).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" customerInfo: ").append(customerInfo).append("\n"); - sb.append(" discountLines: ").append(discountLines).append("\n"); - sb.append(" fiscalEntity: ").append(fiscalEntity).append("\n"); - sb.append(" lineItems: ").append(lineItems).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" needsShippingContact: ").append(needsShippingContact).append("\n"); - sb.append(" preAuthorize: ").append(preAuthorize).append("\n"); - sb.append(" processingMode: ").append(processingMode).append("\n"); - sb.append(" returnUrl: ").append(returnUrl).append("\n"); - sb.append(" shippingContact: ").append(shippingContact).append("\n"); - sb.append(" shippingLines: ").append(shippingLines).append("\n"); - sb.append(" taxLines: ").append(taxLines).append("\n"); - sb.append(" threeDsMode: ").append(threeDsMode).append("\n"); - sb.append("}\n"); +sb.append(" checkout: ").append(checkout).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" customerInfo: ").append(customerInfo).append("\n"); +sb.append(" discountLines: ").append(discountLines).append("\n"); +sb.append(" fiscalEntity: ").append(fiscalEntity).append("\n"); +sb.append(" lineItems: ").append(lineItems).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" needsShippingContact: ").append(needsShippingContact).append("\n"); +sb.append(" preAuthorize: ").append(preAuthorize).append("\n"); +sb.append(" processingMode: ").append(processingMode).append("\n"); +sb.append(" returnUrl: ").append(returnUrl).append("\n"); +sb.append(" shippingContact: ").append(shippingContact).append("\n"); +sb.append(" shippingLines: ").append(shippingLines).append("\n"); +sb.append(" taxLines: ").append(taxLines).append("\n"); +sb.append(" threeDsMode: ").append(threeDsMode).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderRequestCustomerInfo.java b/src/main/java/io/conekta/model/OrderRequestCustomerInfo.java index 4a2978f..d7fac53 100644 --- a/src/main/java/io/conekta/model/OrderRequestCustomerInfo.java +++ b/src/main/java/io/conekta/model/OrderRequestCustomerInfo.java @@ -4,20 +4,17 @@ import io.conekta.model.CustomerInfoJustCustomerId; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Customer information **/ @ApiModel(description = "Customer information") public class OrderRequestCustomerInfo { - + private static final String MXN = "MXN"; - - + @SerializedName("name") private String name = null; @SerializedName("email") @@ -32,66 +29,78 @@ public class OrderRequestCustomerInfo { private String customerId = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getCorporate() { return corporate; } + public void setCorporate(Boolean corporate) { this.corporate = corporate; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -107,32 +116,33 @@ public boolean equals(Object o) { (this.corporate == null ? orderRequestCustomerInfo.corporate == null : this.corporate.equals(orderRequestCustomerInfo.corporate)) && (this._object == null ? orderRequestCustomerInfo._object == null : this._object.equals(orderRequestCustomerInfo._object)) && (this.customerId == null ? orderRequestCustomerInfo.customerId == null : this.customerId.equals(orderRequestCustomerInfo.customerId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.corporate == null ? 0: this.corporate.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.corporate == null ? 0 : this.corporate.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderRequestCustomerInfo {\n"); sb.append(" name: ").append(name).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" corporate: ").append(corporate).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" customerId: ").append(customerId).append("\n"); - sb.append("}\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" corporate: ").append(corporate).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" customerId: ").append(customerId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderResponse.java b/src/main/java/io/conekta/model/OrderResponse.java index 87d1506..36daa3b 100644 --- a/src/main/java/io/conekta/model/OrderResponse.java +++ b/src/main/java/io/conekta/model/OrderResponse.java @@ -13,20 +13,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * order response **/ @ApiModel(description = "order response") public class OrderResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("amount_refunded") @@ -72,225 +69,257 @@ public class OrderResponse { /** * The total amount to be collected in cents + * **/ @ApiModelProperty(value = "The total amount to be collected in cents") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** * The total amount refunded in cents + * **/ @ApiModelProperty(value = "The total amount refunded in cents") public Integer getAmountRefunded() { return amountRefunded; } + public void setAmountRefunded(Integer amountRefunded) { this.amountRefunded = amountRefunded; } - /** + * + * **/ @ApiModelProperty(value = "") public ChargeResponseChannel getChannel() { return channel; } + public void setChannel(ChargeResponseChannel channel) { this.channel = channel; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderResponseCharges getCharges() { return charges; } + public void setCharges(OrderResponseCharges charges) { this.charges = charges; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderResponseCheckout getCheckout() { return checkout; } + public void setCheckout(OrderResponseCheckout checkout) { this.checkout = checkout; } - /** * The time at which the object was created in seconds since the Unix epoch + * **/ @ApiModelProperty(value = "The time at which the object was created in seconds since the Unix epoch") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * The three-letter ISO 4217 currency code. The currency of the order. + * **/ @ApiModelProperty(value = "The three-letter ISO 4217 currency code. The currency of the order.") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderResponseCustomerInfo getCustomerInfo() { return customerInfo; } + public void setCustomerInfo(OrderResponseCustomerInfo customerInfo) { this.customerInfo = customerInfo; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderResponseDiscountLines getDiscountLines() { return discountLines; } + public void setDiscountLines(OrderResponseDiscountLines discountLines) { this.discountLines = discountLines; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderFiscalEntityResponse getFiscalEntity() { return fiscalEntity; } + public void setFiscalEntity(OrderFiscalEntityResponse fiscalEntity) { this.fiscalEntity = fiscalEntity; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getIsRefundable() { return isRefundable; } + public void setIsRefundable(Boolean isRefundable) { this.isRefundable = isRefundable; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderResponseProducts getLineItems() { return lineItems; } + public void setLineItems(OrderResponseProducts lineItems) { this.lineItems = lineItems; } - /** * Whether the object exists in live mode or test mode + * **/ @ApiModelProperty(value = "Whether the object exists in live mode or test mode") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * **/ @ApiModelProperty(value = "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderNextActionResponse getNextAction() { return nextAction; } + public void setNextAction(OrderNextActionResponse nextAction) { this.nextAction = nextAction; } - /** * String representing the object’s type. Objects of the same type share the same value. + * **/ @ApiModelProperty(value = "String representing the object’s type. Objects of the same type share the same value.") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * The payment status of the order. + * **/ @ApiModelProperty(value = "The payment status of the order.") public String getPaymentStatus() { return paymentStatus; } + public void setPaymentStatus(String paymentStatus) { this.paymentStatus = paymentStatus; } - /** * Indicates the processing mode for the order, either ecommerce, recurrent or validation. + * **/ @ApiModelProperty(value = "Indicates the processing mode for the order, either ecommerce, recurrent or validation.") public String getProcessingMode() { return processingMode; } + public void setProcessingMode(String processingMode) { this.processingMode = processingMode; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderResponseShippingContact getShippingContact() { return shippingContact; } + public void setShippingContact(OrderResponseShippingContact shippingContact) { this.shippingContact = shippingContact; } - /** * The time at which the object was last updated in seconds since the Unix epoch + * **/ @ApiModelProperty(value = "The time at which the object was last updated in seconds since the Unix epoch") public Long getUpdatedAt() { return updatedAt; } + public void setUpdatedAt(Long updatedAt) { this.updatedAt = updatedAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -321,62 +350,63 @@ public boolean equals(Object o) { (this.processingMode == null ? orderResponse.processingMode == null : this.processingMode.equals(orderResponse.processingMode)) && (this.shippingContact == null ? orderResponse.shippingContact == null : this.shippingContact.equals(orderResponse.shippingContact)) && (this.updatedAt == null ? orderResponse.updatedAt == null : this.updatedAt.equals(orderResponse.updatedAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.amountRefunded == null ? 0: this.amountRefunded.hashCode()); - result = 31 * result + (this.channel == null ? 0: this.channel.hashCode()); - result = 31 * result + (this.charges == null ? 0: this.charges.hashCode()); - result = 31 * result + (this.checkout == null ? 0: this.checkout.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.customerInfo == null ? 0: this.customerInfo.hashCode()); - result = 31 * result + (this.discountLines == null ? 0: this.discountLines.hashCode()); - result = 31 * result + (this.fiscalEntity == null ? 0: this.fiscalEntity.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.isRefundable == null ? 0: this.isRefundable.hashCode()); - result = 31 * result + (this.lineItems == null ? 0: this.lineItems.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.nextAction == null ? 0: this.nextAction.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.paymentStatus == null ? 0: this.paymentStatus.hashCode()); - result = 31 * result + (this.processingMode == null ? 0: this.processingMode.hashCode()); - result = 31 * result + (this.shippingContact == null ? 0: this.shippingContact.hashCode()); - result = 31 * result + (this.updatedAt == null ? 0: this.updatedAt.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.amountRefunded == null ? 0 : this.amountRefunded.hashCode()); + result = 31 * result + (this.channel == null ? 0 : this.channel.hashCode()); + result = 31 * result + (this.charges == null ? 0 : this.charges.hashCode()); + result = 31 * result + (this.checkout == null ? 0 : this.checkout.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.customerInfo == null ? 0 : this.customerInfo.hashCode()); + result = 31 * result + (this.discountLines == null ? 0 : this.discountLines.hashCode()); + result = 31 * result + (this.fiscalEntity == null ? 0 : this.fiscalEntity.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.isRefundable == null ? 0 : this.isRefundable.hashCode()); + result = 31 * result + (this.lineItems == null ? 0 : this.lineItems.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.nextAction == null ? 0 : this.nextAction.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.paymentStatus == null ? 0 : this.paymentStatus.hashCode()); + result = 31 * result + (this.processingMode == null ? 0 : this.processingMode.hashCode()); + result = 31 * result + (this.shippingContact == null ? 0 : this.shippingContact.hashCode()); + result = 31 * result + (this.updatedAt == null ? 0 : this.updatedAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" amountRefunded: ").append(amountRefunded).append("\n"); - sb.append(" channel: ").append(channel).append("\n"); - sb.append(" charges: ").append(charges).append("\n"); - sb.append(" checkout: ").append(checkout).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" customerInfo: ").append(customerInfo).append("\n"); - sb.append(" discountLines: ").append(discountLines).append("\n"); - sb.append(" fiscalEntity: ").append(fiscalEntity).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" isRefundable: ").append(isRefundable).append("\n"); - sb.append(" lineItems: ").append(lineItems).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" nextAction: ").append(nextAction).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" paymentStatus: ").append(paymentStatus).append("\n"); - sb.append(" processingMode: ").append(processingMode).append("\n"); - sb.append(" shippingContact: ").append(shippingContact).append("\n"); - sb.append(" updatedAt: ").append(updatedAt).append("\n"); - sb.append("}\n"); +sb.append(" amountRefunded: ").append(amountRefunded).append("\n"); +sb.append(" channel: ").append(channel).append("\n"); +sb.append(" charges: ").append(charges).append("\n"); +sb.append(" checkout: ").append(checkout).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" customerInfo: ").append(customerInfo).append("\n"); +sb.append(" discountLines: ").append(discountLines).append("\n"); +sb.append(" fiscalEntity: ").append(fiscalEntity).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" isRefundable: ").append(isRefundable).append("\n"); +sb.append(" lineItems: ").append(lineItems).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" nextAction: ").append(nextAction).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" paymentStatus: ").append(paymentStatus).append("\n"); +sb.append(" processingMode: ").append(processingMode).append("\n"); +sb.append(" shippingContact: ").append(shippingContact).append("\n"); +sb.append(" updatedAt: ").append(updatedAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderResponseCharges.java b/src/main/java/io/conekta/model/OrderResponseCharges.java index a51002f..eda8d35 100644 --- a/src/main/java/io/conekta/model/OrderResponseCharges.java +++ b/src/main/java/io/conekta/model/OrderResponseCharges.java @@ -4,20 +4,17 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * The charges associated with the order **/ @ApiModel(description = "The charges associated with the order") public class OrderResponseCharges { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -27,37 +24,41 @@ public class OrderResponseCharges { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -70,26 +71,27 @@ public boolean equals(Object o) { return (this.hasMore == null ? orderResponseCharges.hasMore == null : this.hasMore.equals(orderResponseCharges.hasMore)) && (this._object == null ? orderResponseCharges._object == null : this._object.equals(orderResponseCharges._object)) && (this.data == null ? orderResponseCharges.data == null : this.data.equals(orderResponseCharges.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderResponseCharges {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderResponseCheckout.java b/src/main/java/io/conekta/model/OrderResponseCheckout.java index fafd5e3..af6333c 100644 --- a/src/main/java/io/conekta/model/OrderResponseCheckout.java +++ b/src/main/java/io/conekta/model/OrderResponseCheckout.java @@ -5,17 +5,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class OrderResponseCheckout { - + private static final String MXN = "MXN"; - - + @SerializedName("allowed_payment_methods") private List allowedPaymentMethods = null; @SerializedName("can_not_expire") @@ -74,288 +71,342 @@ public class OrderResponseCheckout { private String url = null; /** + * + * **/ @ApiModelProperty(value = "") public List getAllowedPaymentMethods() { return allowedPaymentMethods; } + public void setAllowedPaymentMethods(List allowedPaymentMethods) { this.allowedPaymentMethods = allowedPaymentMethods; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getCanNotExpire() { return canNotExpire; } + public void setCanNotExpire(Boolean canNotExpire) { this.canNotExpire = canNotExpire; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getEmailsSent() { return emailsSent; } + public void setEmailsSent(Integer emailsSent) { this.emailsSent = emailsSent; } - /** + * + * **/ @ApiModelProperty(value = "") public List getExcludeCardNetworks() { return excludeCardNetworks; } + public void setExcludeCardNetworks(List excludeCardNetworks) { this.excludeCardNetworks = excludeCardNetworks; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getFailureUrl() { return failureUrl; } + public void setFailureUrl(String failureUrl) { this.failureUrl = failureUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getForce3dsFlow() { return force3dsFlow; } + public void setForce3dsFlow(Boolean force3dsFlow) { this.force3dsFlow = force3dsFlow; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getIsRedirectOnFailure() { return isRedirectOnFailure; } + public void setIsRedirectOnFailure(Boolean isRedirectOnFailure) { this.isRedirectOnFailure = isRedirectOnFailure; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * Number of retries allowed before the checkout is marked as failed + * **/ @ApiModelProperty(value = "Number of retries allowed before the checkout is marked as failed") public Integer getMaxFailedRetries() { return maxFailedRetries; } + public void setMaxFailedRetries(Integer maxFailedRetries) { this.maxFailedRetries = maxFailedRetries; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getMonthlyInstallmentsEnabled() { return monthlyInstallmentsEnabled; } + public void setMonthlyInstallmentsEnabled(Boolean monthlyInstallmentsEnabled) { this.monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; } - /** + * + * **/ @ApiModelProperty(value = "") public List getMonthlyInstallmentsOptions() { return monthlyInstallmentsOptions; } + public void setMonthlyInstallmentsOptions(List monthlyInstallmentsOptions) { this.monthlyInstallmentsOptions = monthlyInstallmentsOptions; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getNeedsShippingContact() { return needsShippingContact; } + public void setNeedsShippingContact(Boolean needsShippingContact) { this.needsShippingContact = needsShippingContact; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getOnDemandEnabled() { return onDemandEnabled; } + public void setOnDemandEnabled(Boolean onDemandEnabled) { this.onDemandEnabled = onDemandEnabled; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getPaidPaymentsCount() { return paidPaymentsCount; } + public void setPaidPaymentsCount(Integer paidPaymentsCount) { this.paidPaymentsCount = paidPaymentsCount; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getRecurrent() { return recurrent; } + public void setRecurrent(Boolean recurrent) { this.recurrent = recurrent; } - /** * number of seconds to wait before redirecting to the success_url + * **/ @ApiModelProperty(value = "number of seconds to wait before redirecting to the success_url") public Integer getRedirectionTime() { return redirectionTime; } + public void setRedirectionTime(Integer redirectionTime) { this.redirectionTime = redirectionTime; } - /** + * + * **/ @ApiModelProperty(value = "") public String getSlug() { return slug; } + public void setSlug(String slug) { this.slug = slug; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getSmsSent() { return smsSent; } + public void setSmsSent(Integer smsSent) { this.smsSent = smsSent; } - /** + * + * **/ @ApiModelProperty(value = "") public String getSuccessUrl() { return successUrl; } + public void setSuccessUrl(String successUrl) { this.successUrl = successUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getStartsAt() { return startsAt; } + public void setStartsAt(Integer startsAt) { this.startsAt = startsAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(value = "") public String getUrl() { return url; } + public void setUrl(String url) { this.url = url; } - @Override public boolean equals(Object o) { if (this == o) { @@ -393,76 +444,77 @@ public boolean equals(Object o) { (this.status == null ? orderResponseCheckout.status == null : this.status.equals(orderResponseCheckout.status)) && (this.type == null ? orderResponseCheckout.type == null : this.type.equals(orderResponseCheckout.type)) && (this.url == null ? orderResponseCheckout.url == null : this.url.equals(orderResponseCheckout.url)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.allowedPaymentMethods == null ? 0: this.allowedPaymentMethods.hashCode()); - result = 31 * result + (this.canNotExpire == null ? 0: this.canNotExpire.hashCode()); - result = 31 * result + (this.emailsSent == null ? 0: this.emailsSent.hashCode()); - result = 31 * result + (this.excludeCardNetworks == null ? 0: this.excludeCardNetworks.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.failureUrl == null ? 0: this.failureUrl.hashCode()); - result = 31 * result + (this.force3dsFlow == null ? 0: this.force3dsFlow.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.isRedirectOnFailure == null ? 0: this.isRedirectOnFailure.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.maxFailedRetries == null ? 0: this.maxFailedRetries.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.monthlyInstallmentsEnabled == null ? 0: this.monthlyInstallmentsEnabled.hashCode()); - result = 31 * result + (this.monthlyInstallmentsOptions == null ? 0: this.monthlyInstallmentsOptions.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.needsShippingContact == null ? 0: this.needsShippingContact.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.onDemandEnabled == null ? 0: this.onDemandEnabled.hashCode()); - result = 31 * result + (this.paidPaymentsCount == null ? 0: this.paidPaymentsCount.hashCode()); - result = 31 * result + (this.recurrent == null ? 0: this.recurrent.hashCode()); - result = 31 * result + (this.redirectionTime == null ? 0: this.redirectionTime.hashCode()); - result = 31 * result + (this.slug == null ? 0: this.slug.hashCode()); - result = 31 * result + (this.smsSent == null ? 0: this.smsSent.hashCode()); - result = 31 * result + (this.successUrl == null ? 0: this.successUrl.hashCode()); - result = 31 * result + (this.startsAt == null ? 0: this.startsAt.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.url == null ? 0: this.url.hashCode()); + result = 31 * result + (this.allowedPaymentMethods == null ? 0 : this.allowedPaymentMethods.hashCode()); + result = 31 * result + (this.canNotExpire == null ? 0 : this.canNotExpire.hashCode()); + result = 31 * result + (this.emailsSent == null ? 0 : this.emailsSent.hashCode()); + result = 31 * result + (this.excludeCardNetworks == null ? 0 : this.excludeCardNetworks.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.failureUrl == null ? 0 : this.failureUrl.hashCode()); + result = 31 * result + (this.force3dsFlow == null ? 0 : this.force3dsFlow.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.isRedirectOnFailure == null ? 0 : this.isRedirectOnFailure.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.maxFailedRetries == null ? 0 : this.maxFailedRetries.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.monthlyInstallmentsEnabled == null ? 0 : this.monthlyInstallmentsEnabled.hashCode()); + result = 31 * result + (this.monthlyInstallmentsOptions == null ? 0 : this.monthlyInstallmentsOptions.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.needsShippingContact == null ? 0 : this.needsShippingContact.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.onDemandEnabled == null ? 0 : this.onDemandEnabled.hashCode()); + result = 31 * result + (this.paidPaymentsCount == null ? 0 : this.paidPaymentsCount.hashCode()); + result = 31 * result + (this.recurrent == null ? 0 : this.recurrent.hashCode()); + result = 31 * result + (this.redirectionTime == null ? 0 : this.redirectionTime.hashCode()); + result = 31 * result + (this.slug == null ? 0 : this.slug.hashCode()); + result = 31 * result + (this.smsSent == null ? 0 : this.smsSent.hashCode()); + result = 31 * result + (this.successUrl == null ? 0 : this.successUrl.hashCode()); + result = 31 * result + (this.startsAt == null ? 0 : this.startsAt.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.url == null ? 0 : this.url.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderResponseCheckout {\n"); sb.append(" allowedPaymentMethods: ").append(allowedPaymentMethods).append("\n"); - sb.append(" canNotExpire: ").append(canNotExpire).append("\n"); - sb.append(" emailsSent: ").append(emailsSent).append("\n"); - sb.append(" excludeCardNetworks: ").append(excludeCardNetworks).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" failureUrl: ").append(failureUrl).append("\n"); - sb.append(" force3dsFlow: ").append(force3dsFlow).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" isRedirectOnFailure: ").append(isRedirectOnFailure).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" maxFailedRetries: ").append(maxFailedRetries).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" monthlyInstallmentsEnabled: ").append(monthlyInstallmentsEnabled).append("\n"); - sb.append(" monthlyInstallmentsOptions: ").append(monthlyInstallmentsOptions).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" needsShippingContact: ").append(needsShippingContact).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" onDemandEnabled: ").append(onDemandEnabled).append("\n"); - sb.append(" paidPaymentsCount: ").append(paidPaymentsCount).append("\n"); - sb.append(" recurrent: ").append(recurrent).append("\n"); - sb.append(" redirectionTime: ").append(redirectionTime).append("\n"); - sb.append(" slug: ").append(slug).append("\n"); - sb.append(" smsSent: ").append(smsSent).append("\n"); - sb.append(" successUrl: ").append(successUrl).append("\n"); - sb.append(" startsAt: ").append(startsAt).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append(" url: ").append(url).append("\n"); - sb.append("}\n"); +sb.append(" canNotExpire: ").append(canNotExpire).append("\n"); +sb.append(" emailsSent: ").append(emailsSent).append("\n"); +sb.append(" excludeCardNetworks: ").append(excludeCardNetworks).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" failureUrl: ").append(failureUrl).append("\n"); +sb.append(" force3dsFlow: ").append(force3dsFlow).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" isRedirectOnFailure: ").append(isRedirectOnFailure).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" maxFailedRetries: ").append(maxFailedRetries).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" monthlyInstallmentsEnabled: ").append(monthlyInstallmentsEnabled).append("\n"); +sb.append(" monthlyInstallmentsOptions: ").append(monthlyInstallmentsOptions).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" needsShippingContact: ").append(needsShippingContact).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" onDemandEnabled: ").append(onDemandEnabled).append("\n"); +sb.append(" paidPaymentsCount: ").append(paidPaymentsCount).append("\n"); +sb.append(" recurrent: ").append(recurrent).append("\n"); +sb.append(" redirectionTime: ").append(redirectionTime).append("\n"); +sb.append(" slug: ").append(slug).append("\n"); +sb.append(" smsSent: ").append(smsSent).append("\n"); +sb.append(" successUrl: ").append(successUrl).append("\n"); +sb.append(" startsAt: ").append(startsAt).append("\n"); +sb.append(" status: ").append(status).append("\n"); +sb.append(" type: ").append(type).append("\n"); +sb.append(" url: ").append(url).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderResponseCustomerInfo.java b/src/main/java/io/conekta/model/OrderResponseCustomerInfo.java index e439fa7..f526d4b 100644 --- a/src/main/java/io/conekta/model/OrderResponseCustomerInfo.java +++ b/src/main/java/io/conekta/model/OrderResponseCustomerInfo.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class OrderResponseCustomerInfo { - + private static final String MXN = "MXN"; - - + @SerializedName("customer_custom_reference") private String customerCustomReference = null; @SerializedName("name") @@ -30,76 +27,89 @@ public class OrderResponseCustomerInfo { /** * Custom reference + * **/ @ApiModelProperty(value = "Custom reference") public String getCustomerCustomReference() { return customerCustomReference; } + public void setCustomerCustomReference(String customerCustomReference) { this.customerCustomReference = customerCustomReference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getCorporate() { return corporate; } + public void setCorporate(Boolean corporate) { this.corporate = corporate; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -116,34 +126,35 @@ public boolean equals(Object o) { (this.corporate == null ? orderResponseCustomerInfo.corporate == null : this.corporate.equals(orderResponseCustomerInfo.corporate)) && (this._object == null ? orderResponseCustomerInfo._object == null : this._object.equals(orderResponseCustomerInfo._object)) && (this.customerId == null ? orderResponseCustomerInfo.customerId == null : this.customerId.equals(orderResponseCustomerInfo.customerId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.customerCustomReference == null ? 0: this.customerCustomReference.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.corporate == null ? 0: this.corporate.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); + result = 31 * result + (this.customerCustomReference == null ? 0 : this.customerCustomReference.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.corporate == null ? 0 : this.corporate.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderResponseCustomerInfo {\n"); sb.append(" customerCustomReference: ").append(customerCustomReference).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" corporate: ").append(corporate).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" customerId: ").append(customerId).append("\n"); - sb.append("}\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" corporate: ").append(corporate).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" customerId: ").append(customerId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderResponseDiscountLines.java b/src/main/java/io/conekta/model/OrderResponseDiscountLines.java index 670e38b..47cd196 100644 --- a/src/main/java/io/conekta/model/OrderResponseDiscountLines.java +++ b/src/main/java/io/conekta/model/OrderResponseDiscountLines.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class OrderResponseDiscountLines { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -24,37 +21,41 @@ public class OrderResponseDiscountLines { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -67,26 +68,27 @@ public boolean equals(Object o) { return (this.hasMore == null ? orderResponseDiscountLines.hasMore == null : this.hasMore.equals(orderResponseDiscountLines.hasMore)) && (this._object == null ? orderResponseDiscountLines._object == null : this._object.equals(orderResponseDiscountLines._object)) && (this.data == null ? orderResponseDiscountLines.data == null : this.data.equals(orderResponseDiscountLines.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderResponseDiscountLines {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderResponseProducts.java b/src/main/java/io/conekta/model/OrderResponseProducts.java index eafec8e..7ae460b 100644 --- a/src/main/java/io/conekta/model/OrderResponseProducts.java +++ b/src/main/java/io/conekta/model/OrderResponseProducts.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class OrderResponseProducts { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class OrderResponseProducts { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? orderResponseProducts.nextPageUrl == null : this.nextPageUrl.equals(orderResponseProducts.nextPageUrl)) && (this.previousPageUrl == null ? orderResponseProducts.previousPageUrl == null : this.previousPageUrl.equals(orderResponseProducts.previousPageUrl)) && (this.data == null ? orderResponseProducts.data == null : this.data.equals(orderResponseProducts.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderResponseProducts {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderResponseShippingContact.java b/src/main/java/io/conekta/model/OrderResponseShippingContact.java index 3c1aea3..51d29a2 100644 --- a/src/main/java/io/conekta/model/OrderResponseShippingContact.java +++ b/src/main/java/io/conekta/model/OrderResponseShippingContact.java @@ -5,17 +5,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class OrderResponseShippingContact { - + private static final String MXN = "MXN"; - - + @SerializedName("phone") private String phone = null; @SerializedName("receiver") @@ -40,117 +37,138 @@ public class OrderResponseShippingContact { private Boolean deleted = null; /** + * + * **/ @ApiModelProperty(value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceiver() { return receiver; } + public void setReceiver(String receiver) { this.receiver = receiver; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBetweenStreets() { return betweenStreets; } + public void setBetweenStreets(String betweenStreets) { this.betweenStreets = betweenStreets; } - /** + * + * **/ @ApiModelProperty(value = "") public CustomerShippingContactsResponseAddress getAddress() { return address; } + public void setAddress(CustomerShippingContactsResponseAddress address) { this.address = address; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * Metadata associated with the shipping contact + * **/ @ApiModelProperty(value = "Metadata associated with the shipping contact") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - @Override public boolean equals(Object o) { if (this == o) { @@ -171,42 +189,43 @@ public boolean equals(Object o) { (this.metadata == null ? orderResponseShippingContact.metadata == null : this.metadata.equals(orderResponseShippingContact.metadata)) && (this._object == null ? orderResponseShippingContact._object == null : this._object.equals(orderResponseShippingContact._object)) && (this.deleted == null ? orderResponseShippingContact.deleted == null : this.deleted.equals(orderResponseShippingContact.deleted)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.receiver == null ? 0: this.receiver.hashCode()); - result = 31 * result + (this.betweenStreets == null ? 0: this.betweenStreets.hashCode()); - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.receiver == null ? 0 : this.receiver.hashCode()); + result = 31 * result + (this.betweenStreets == null ? 0 : this.betweenStreets.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderResponseShippingContact {\n"); sb.append(" phone: ").append(phone).append("\n"); - sb.append(" receiver: ").append(receiver).append("\n"); - sb.append(" betweenStreets: ").append(betweenStreets).append("\n"); - sb.append(" address: ").append(address).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" deleted: ").append(deleted).append("\n"); - sb.append("}\n"); +sb.append(" receiver: ").append(receiver).append("\n"); +sb.append(" betweenStreets: ").append(betweenStreets).append("\n"); +sb.append(" address: ").append(address).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" deleted: ").append(deleted).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderTaxRequest.java b/src/main/java/io/conekta/model/OrderTaxRequest.java index 70ca660..a446145 100644 --- a/src/main/java/io/conekta/model/OrderTaxRequest.java +++ b/src/main/java/io/conekta/model/OrderTaxRequest.java @@ -4,20 +4,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * create new taxes for an existing order **/ @ApiModel(description = "create new taxes for an existing order") public class OrderTaxRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("description") @@ -33,32 +30,35 @@ public class OrderTaxRequest { public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * description or tax's name + * **/ @ApiModelProperty(required = true, value = "description or tax's name") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - @Override public boolean equals(Object o) { if (this == o) { @@ -71,26 +71,27 @@ public boolean equals(Object o) { return (this.amount == null ? orderTaxRequest.amount == null : this.amount.equals(orderTaxRequest.amount)) && (this.description == null ? orderTaxRequest.description == null : this.description.equals(orderTaxRequest.description)) && (this.metadata == null ? orderTaxRequest.metadata == null : this.metadata.equals(orderTaxRequest.metadata)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderTaxRequest {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append("}\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderUpdateFiscalEntityRequest.java b/src/main/java/io/conekta/model/OrderUpdateFiscalEntityRequest.java index 8738740..726daa3 100644 --- a/src/main/java/io/conekta/model/OrderUpdateFiscalEntityRequest.java +++ b/src/main/java/io/conekta/model/OrderUpdateFiscalEntityRequest.java @@ -5,20 +5,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Fiscal entity of the order, Currently it is a purely informative field **/ @ApiModel(description = "Fiscal entity of the order, Currently it is a purely informative field") public class OrderUpdateFiscalEntityRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("address") private FiscalEntityAddress address = null; @SerializedName("email") @@ -33,71 +30,78 @@ public class OrderUpdateFiscalEntityRequest { private String taxId = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public FiscalEntityAddress getAddress() { return address; } + public void setAddress(FiscalEntityAddress address) { this.address = address; } - /** * Email of the fiscal entity + * **/ @ApiModelProperty(value = "Email of the fiscal entity") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** * Name of the fiscal entity + * **/ @ApiModelProperty(value = "Name of the fiscal entity") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * Metadata associated with the fiscal entity + * **/ @ApiModelProperty(value = "Metadata associated with the fiscal entity") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * Phone of the fiscal entity + * **/ @ApiModelProperty(value = "Phone of the fiscal entity") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** * Tax ID of the fiscal entity + * **/ @ApiModelProperty(value = "Tax ID of the fiscal entity") public String getTaxId() { return taxId; } + public void setTaxId(String taxId) { this.taxId = taxId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -113,32 +117,33 @@ public boolean equals(Object o) { (this.metadata == null ? orderUpdateFiscalEntityRequest.metadata == null : this.metadata.equals(orderUpdateFiscalEntityRequest.metadata)) && (this.phone == null ? orderUpdateFiscalEntityRequest.phone == null : this.phone.equals(orderUpdateFiscalEntityRequest.phone)) && (this.taxId == null ? orderUpdateFiscalEntityRequest.taxId == null : this.taxId.equals(orderUpdateFiscalEntityRequest.taxId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.taxId == null ? 0: this.taxId.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.taxId == null ? 0 : this.taxId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderUpdateFiscalEntityRequest {\n"); sb.append(" address: ").append(address).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" taxId: ").append(taxId).append("\n"); - sb.append("}\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" taxId: ").append(taxId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderUpdateRequest.java b/src/main/java/io/conekta/model/OrderUpdateRequest.java index 2460aea..5fd8445 100644 --- a/src/main/java/io/conekta/model/OrderUpdateRequest.java +++ b/src/main/java/io/conekta/model/OrderUpdateRequest.java @@ -13,20 +13,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * a order **/ @ApiModel(description = "a order") public class OrderUpdateRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("charges") private List charges = null; @SerializedName("checkout") @@ -53,131 +50,150 @@ public class OrderUpdateRequest { private List taxLines = null; /** + * + * **/ @ApiModelProperty(value = "") public List getCharges() { return charges; } + public void setCharges(List charges) { this.charges = charges; } - /** + * + * **/ @ApiModelProperty(value = "") public CheckoutRequest getCheckout() { return checkout; } + public void setCheckout(CheckoutRequest checkout) { this.checkout = checkout; } - /** * Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) + * **/ @ApiModelProperty(value = "Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217)") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderUpdateRequestCustomerInfo getCustomerInfo() { return customerInfo; } + public void setCustomerInfo(OrderUpdateRequestCustomerInfo customerInfo) { this.customerInfo = customerInfo; } - /** * List of [discounts](https://developers.conekta.com/v2.1.0/reference/orderscreatediscountline) that are applied to the order. You must have at least one discount. + * **/ @ApiModelProperty(value = "List of [discounts](https://developers.conekta.com/v2.1.0/reference/orderscreatediscountline) that are applied to the order. You must have at least one discount.") public List getDiscountLines() { return discountLines; } + public void setDiscountLines(List discountLines) { this.discountLines = discountLines; } - /** + * + * **/ @ApiModelProperty(value = "") public OrderUpdateFiscalEntityRequest getFiscalEntity() { return fiscalEntity; } + public void setFiscalEntity(OrderUpdateFiscalEntityRequest fiscalEntity) { this.fiscalEntity = fiscalEntity; } - /** * List of [products](https://developers.conekta.com/v2.1.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. + * **/ @ApiModelProperty(value = "List of [products](https://developers.conekta.com/v2.1.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product.") public List getLineItems() { return lineItems; } + public void setLineItems(List lineItems) { this.lineItems = lineItems; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * Indicates whether the order charges must be preauthorized + * **/ @ApiModelProperty(value = "Indicates whether the order charges must be preauthorized") public Boolean getPreAuthorize() { return preAuthorize; } + public void setPreAuthorize(Boolean preAuthorize) { this.preAuthorize = preAuthorize; } - /** + * + * **/ @ApiModelProperty(value = "") public CustomerShippingContacts getShippingContact() { return shippingContact; } + public void setShippingContact(CustomerShippingContacts shippingContact) { this.shippingContact = shippingContact; } - /** * List of [shipping costs](https://developers.conekta.com/v2.1.0/reference/orderscreateshipping). If the online store offers digital products. + * **/ @ApiModelProperty(value = "List of [shipping costs](https://developers.conekta.com/v2.1.0/reference/orderscreateshipping). If the online store offers digital products.") public List getShippingLines() { return shippingLines; } + public void setShippingLines(List shippingLines) { this.shippingLines = shippingLines; } - /** + * + * **/ @ApiModelProperty(value = "") public List getTaxLines() { return taxLines; } + public void setTaxLines(List taxLines) { this.taxLines = taxLines; } - @Override public boolean equals(Object o) { if (this == o) { @@ -199,44 +215,45 @@ public boolean equals(Object o) { (this.shippingContact == null ? orderUpdateRequest.shippingContact == null : this.shippingContact.equals(orderUpdateRequest.shippingContact)) && (this.shippingLines == null ? orderUpdateRequest.shippingLines == null : this.shippingLines.equals(orderUpdateRequest.shippingLines)) && (this.taxLines == null ? orderUpdateRequest.taxLines == null : this.taxLines.equals(orderUpdateRequest.taxLines)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.charges == null ? 0: this.charges.hashCode()); - result = 31 * result + (this.checkout == null ? 0: this.checkout.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.customerInfo == null ? 0: this.customerInfo.hashCode()); - result = 31 * result + (this.discountLines == null ? 0: this.discountLines.hashCode()); - result = 31 * result + (this.fiscalEntity == null ? 0: this.fiscalEntity.hashCode()); - result = 31 * result + (this.lineItems == null ? 0: this.lineItems.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.preAuthorize == null ? 0: this.preAuthorize.hashCode()); - result = 31 * result + (this.shippingContact == null ? 0: this.shippingContact.hashCode()); - result = 31 * result + (this.shippingLines == null ? 0: this.shippingLines.hashCode()); - result = 31 * result + (this.taxLines == null ? 0: this.taxLines.hashCode()); + result = 31 * result + (this.charges == null ? 0 : this.charges.hashCode()); + result = 31 * result + (this.checkout == null ? 0 : this.checkout.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.customerInfo == null ? 0 : this.customerInfo.hashCode()); + result = 31 * result + (this.discountLines == null ? 0 : this.discountLines.hashCode()); + result = 31 * result + (this.fiscalEntity == null ? 0 : this.fiscalEntity.hashCode()); + result = 31 * result + (this.lineItems == null ? 0 : this.lineItems.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.preAuthorize == null ? 0 : this.preAuthorize.hashCode()); + result = 31 * result + (this.shippingContact == null ? 0 : this.shippingContact.hashCode()); + result = 31 * result + (this.shippingLines == null ? 0 : this.shippingLines.hashCode()); + result = 31 * result + (this.taxLines == null ? 0 : this.taxLines.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderUpdateRequest {\n"); sb.append(" charges: ").append(charges).append("\n"); - sb.append(" checkout: ").append(checkout).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" customerInfo: ").append(customerInfo).append("\n"); - sb.append(" discountLines: ").append(discountLines).append("\n"); - sb.append(" fiscalEntity: ").append(fiscalEntity).append("\n"); - sb.append(" lineItems: ").append(lineItems).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" preAuthorize: ").append(preAuthorize).append("\n"); - sb.append(" shippingContact: ").append(shippingContact).append("\n"); - sb.append(" shippingLines: ").append(shippingLines).append("\n"); - sb.append(" taxLines: ").append(taxLines).append("\n"); - sb.append("}\n"); +sb.append(" checkout: ").append(checkout).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" customerInfo: ").append(customerInfo).append("\n"); +sb.append(" discountLines: ").append(discountLines).append("\n"); +sb.append(" fiscalEntity: ").append(fiscalEntity).append("\n"); +sb.append(" lineItems: ").append(lineItems).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" preAuthorize: ").append(preAuthorize).append("\n"); +sb.append(" shippingContact: ").append(shippingContact).append("\n"); +sb.append(" shippingLines: ").append(shippingLines).append("\n"); +sb.append(" taxLines: ").append(taxLines).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrderUpdateRequestCustomerInfo.java b/src/main/java/io/conekta/model/OrderUpdateRequestCustomerInfo.java index ea65478..79b4aec 100644 --- a/src/main/java/io/conekta/model/OrderUpdateRequestCustomerInfo.java +++ b/src/main/java/io/conekta/model/OrderUpdateRequestCustomerInfo.java @@ -4,17 +4,14 @@ import io.conekta.model.CustomerInfoJustCustomerId; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class OrderUpdateRequestCustomerInfo { - + private static final String MXN = "MXN"; - - + @SerializedName("name") private String name = null; @SerializedName("email") @@ -29,66 +26,78 @@ public class OrderUpdateRequestCustomerInfo { private String customerId = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getCorporate() { return corporate; } + public void setCorporate(Boolean corporate) { this.corporate = corporate; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -104,32 +113,33 @@ public boolean equals(Object o) { (this.corporate == null ? orderUpdateRequestCustomerInfo.corporate == null : this.corporate.equals(orderUpdateRequestCustomerInfo.corporate)) && (this._object == null ? orderUpdateRequestCustomerInfo._object == null : this._object.equals(orderUpdateRequestCustomerInfo._object)) && (this.customerId == null ? orderUpdateRequestCustomerInfo.customerId == null : this.customerId.equals(orderUpdateRequestCustomerInfo.customerId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.corporate == null ? 0: this.corporate.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.corporate == null ? 0 : this.corporate.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderUpdateRequestCustomerInfo {\n"); sb.append(" name: ").append(name).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" corporate: ").append(corporate).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" customerId: ").append(customerId).append("\n"); - sb.append("}\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" corporate: ").append(corporate).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" customerId: ").append(customerId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/OrdersResponse.java b/src/main/java/io/conekta/model/OrdersResponse.java index 2c8702d..20d8940 100644 --- a/src/main/java/io/conekta/model/OrdersResponse.java +++ b/src/main/java/io/conekta/model/OrdersResponse.java @@ -4,31 +4,30 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class OrdersResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("data") private List data = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -39,22 +38,23 @@ public boolean equals(Object o) { } OrdersResponse ordersResponse = (OrdersResponse) o; return (this.data == null ? ordersResponse.data == null : this.data.equals(ordersResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrdersResponse {\n"); sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/Page.java b/src/main/java/io/conekta/model/Page.java index ade2ab0..9294877 100644 --- a/src/main/java/io/conekta/model/Page.java +++ b/src/main/java/io/conekta/model/Page.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * page metadata **/ @ApiModel(description = "page metadata") public class Page { - + private static final String MXN = "MXN"; - - + @SerializedName("next_page_url") private String nextPageUrl = null; @SerializedName("previous_page_url") @@ -23,27 +20,29 @@ public class Page { /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - @Override public boolean equals(Object o) { if (this == o) { @@ -55,24 +54,25 @@ public boolean equals(Object o) { Page page = (Page) o; return (this.nextPageUrl == null ? page.nextPageUrl == null : this.nextPageUrl.equals(page.nextPageUrl)) && (this.previousPageUrl == null ? page.previousPageUrl == null : this.previousPageUrl.equals(page.previousPageUrl)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Page {\n"); sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append("}\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/Pagination.java b/src/main/java/io/conekta/model/Pagination.java index 6cc7f64..d1081d1 100644 --- a/src/main/java/io/conekta/model/Pagination.java +++ b/src/main/java/io/conekta/model/Pagination.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * pagination metadata **/ @ApiModel(description = "pagination metadata") public class Pagination { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -23,27 +20,29 @@ public class Pagination { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - @Override public boolean equals(Object o) { if (this == o) { @@ -55,24 +54,25 @@ public boolean equals(Object o) { Pagination pagination = (Pagination) o; return (this.hasMore == null ? pagination.hasMore == null : this.hasMore.equals(pagination.hasMore)) && (this._object == null ? pagination._object == null : this._object.equals(pagination._object)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Pagination {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethod.java b/src/main/java/io/conekta/model/PaymentMethod.java index 1e3fce9..d6f9f43 100644 --- a/src/main/java/io/conekta/model/PaymentMethod.java +++ b/src/main/java/io/conekta/model/PaymentMethod.java @@ -2,43 +2,44 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethod { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("object") private String _object = null; /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - @Override public boolean equals(Object o) { if (this == o) { @@ -50,24 +51,25 @@ public boolean equals(Object o) { PaymentMethod paymentMethod = (PaymentMethod) o; return (this.type == null ? paymentMethod.type == null : this.type.equals(paymentMethod.type)) && (this._object == null ? paymentMethod._object == null : this._object.equals(paymentMethod._object)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethod {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodBankTransfer.java b/src/main/java/io/conekta/model/PaymentMethodBankTransfer.java index 2068f6e..048178c 100644 --- a/src/main/java/io/conekta/model/PaymentMethodBankTransfer.java +++ b/src/main/java/io/conekta/model/PaymentMethodBankTransfer.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodBankTransfer { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("object") @@ -55,196 +52,234 @@ public class PaymentMethodBankTransfer { private String customerIpAddress = null; /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBank() { return bank; } + public void setBank(String bank) { this.bank = bank; } - /** + * + * **/ @ApiModelProperty(value = "") public String getClabe() { return clabe; } + public void setClabe(String clabe) { this.clabe = clabe; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getExecutedAt() { return executedAt; } + public void setExecutedAt(Integer executedAt) { this.executedAt = executedAt; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountBank() { return issuingAccountBank; } + public void setIssuingAccountBank(String issuingAccountBank) { this.issuingAccountBank = issuingAccountBank; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountNumber() { return issuingAccountNumber; } + public void setIssuingAccountNumber(String issuingAccountNumber) { this.issuingAccountNumber = issuingAccountNumber; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountHolderName() { return issuingAccountHolderName; } + public void setIssuingAccountHolderName(String issuingAccountHolderName) { this.issuingAccountHolderName = issuingAccountHolderName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getIssuingAccountTaxId() { return issuingAccountTaxId; } + public void setIssuingAccountTaxId(String issuingAccountTaxId) { this.issuingAccountTaxId = issuingAccountTaxId; } - /** + * + * **/ @ApiModelProperty(value = "") public List getPaymentAttempts() { return paymentAttempts; } + public void setPaymentAttempts(List paymentAttempts) { this.paymentAttempts = paymentAttempts; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountHolderName() { return receivingAccountHolderName; } + public void setReceivingAccountHolderName(String receivingAccountHolderName) { this.receivingAccountHolderName = receivingAccountHolderName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountNumber() { return receivingAccountNumber; } + public void setReceivingAccountNumber(String receivingAccountNumber) { this.receivingAccountNumber = receivingAccountNumber; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountBank() { return receivingAccountBank; } + public void setReceivingAccountBank(String receivingAccountBank) { this.receivingAccountBank = receivingAccountBank; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReceivingAccountTaxId() { return receivingAccountTaxId; } + public void setReceivingAccountTaxId(String receivingAccountTaxId) { this.receivingAccountTaxId = receivingAccountTaxId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReferenceNumber() { return referenceNumber; } + public void setReferenceNumber(String referenceNumber) { this.referenceNumber = referenceNumber; } - /** + * + * **/ @ApiModelProperty(value = "") public String getTrackingCode() { return trackingCode; } + public void setTrackingCode(String trackingCode) { this.trackingCode = trackingCode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerIpAddress() { return customerIpAddress; } + public void setCustomerIpAddress(String customerIpAddress) { this.customerIpAddress = customerIpAddress; } - @Override public boolean equals(Object o) { if (this == o) { @@ -273,58 +308,59 @@ public boolean equals(Object o) { (this.referenceNumber == null ? paymentMethodBankTransfer.referenceNumber == null : this.referenceNumber.equals(paymentMethodBankTransfer.referenceNumber)) && (this.trackingCode == null ? paymentMethodBankTransfer.trackingCode == null : this.trackingCode.equals(paymentMethodBankTransfer.trackingCode)) && (this.customerIpAddress == null ? paymentMethodBankTransfer.customerIpAddress == null : this.customerIpAddress.equals(paymentMethodBankTransfer.customerIpAddress)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.bank == null ? 0: this.bank.hashCode()); - result = 31 * result + (this.clabe == null ? 0: this.clabe.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.executedAt == null ? 0: this.executedAt.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.issuingAccountBank == null ? 0: this.issuingAccountBank.hashCode()); - result = 31 * result + (this.issuingAccountNumber == null ? 0: this.issuingAccountNumber.hashCode()); - result = 31 * result + (this.issuingAccountHolderName == null ? 0: this.issuingAccountHolderName.hashCode()); - result = 31 * result + (this.issuingAccountTaxId == null ? 0: this.issuingAccountTaxId.hashCode()); - result = 31 * result + (this.paymentAttempts == null ? 0: this.paymentAttempts.hashCode()); - result = 31 * result + (this.receivingAccountHolderName == null ? 0: this.receivingAccountHolderName.hashCode()); - result = 31 * result + (this.receivingAccountNumber == null ? 0: this.receivingAccountNumber.hashCode()); - result = 31 * result + (this.receivingAccountBank == null ? 0: this.receivingAccountBank.hashCode()); - result = 31 * result + (this.receivingAccountTaxId == null ? 0: this.receivingAccountTaxId.hashCode()); - result = 31 * result + (this.referenceNumber == null ? 0: this.referenceNumber.hashCode()); - result = 31 * result + (this.trackingCode == null ? 0: this.trackingCode.hashCode()); - result = 31 * result + (this.customerIpAddress == null ? 0: this.customerIpAddress.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.bank == null ? 0 : this.bank.hashCode()); + result = 31 * result + (this.clabe == null ? 0 : this.clabe.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.executedAt == null ? 0 : this.executedAt.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.issuingAccountBank == null ? 0 : this.issuingAccountBank.hashCode()); + result = 31 * result + (this.issuingAccountNumber == null ? 0 : this.issuingAccountNumber.hashCode()); + result = 31 * result + (this.issuingAccountHolderName == null ? 0 : this.issuingAccountHolderName.hashCode()); + result = 31 * result + (this.issuingAccountTaxId == null ? 0 : this.issuingAccountTaxId.hashCode()); + result = 31 * result + (this.paymentAttempts == null ? 0 : this.paymentAttempts.hashCode()); + result = 31 * result + (this.receivingAccountHolderName == null ? 0 : this.receivingAccountHolderName.hashCode()); + result = 31 * result + (this.receivingAccountNumber == null ? 0 : this.receivingAccountNumber.hashCode()); + result = 31 * result + (this.receivingAccountBank == null ? 0 : this.receivingAccountBank.hashCode()); + result = 31 * result + (this.receivingAccountTaxId == null ? 0 : this.receivingAccountTaxId.hashCode()); + result = 31 * result + (this.referenceNumber == null ? 0 : this.referenceNumber.hashCode()); + result = 31 * result + (this.trackingCode == null ? 0 : this.trackingCode.hashCode()); + result = 31 * result + (this.customerIpAddress == null ? 0 : this.customerIpAddress.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodBankTransfer {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" bank: ").append(bank).append("\n"); - sb.append(" clabe: ").append(clabe).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" executedAt: ").append(executedAt).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" issuingAccountBank: ").append(issuingAccountBank).append("\n"); - sb.append(" issuingAccountNumber: ").append(issuingAccountNumber).append("\n"); - sb.append(" issuingAccountHolderName: ").append(issuingAccountHolderName).append("\n"); - sb.append(" issuingAccountTaxId: ").append(issuingAccountTaxId).append("\n"); - sb.append(" paymentAttempts: ").append(paymentAttempts).append("\n"); - sb.append(" receivingAccountHolderName: ").append(receivingAccountHolderName).append("\n"); - sb.append(" receivingAccountNumber: ").append(receivingAccountNumber).append("\n"); - sb.append(" receivingAccountBank: ").append(receivingAccountBank).append("\n"); - sb.append(" receivingAccountTaxId: ").append(receivingAccountTaxId).append("\n"); - sb.append(" referenceNumber: ").append(referenceNumber).append("\n"); - sb.append(" trackingCode: ").append(trackingCode).append("\n"); - sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" bank: ").append(bank).append("\n"); +sb.append(" clabe: ").append(clabe).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" executedAt: ").append(executedAt).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" issuingAccountBank: ").append(issuingAccountBank).append("\n"); +sb.append(" issuingAccountNumber: ").append(issuingAccountNumber).append("\n"); +sb.append(" issuingAccountHolderName: ").append(issuingAccountHolderName).append("\n"); +sb.append(" issuingAccountTaxId: ").append(issuingAccountTaxId).append("\n"); +sb.append(" paymentAttempts: ").append(paymentAttempts).append("\n"); +sb.append(" receivingAccountHolderName: ").append(receivingAccountHolderName).append("\n"); +sb.append(" receivingAccountNumber: ").append(receivingAccountNumber).append("\n"); +sb.append(" receivingAccountBank: ").append(receivingAccountBank).append("\n"); +sb.append(" receivingAccountTaxId: ").append(receivingAccountTaxId).append("\n"); +sb.append(" referenceNumber: ").append(referenceNumber).append("\n"); +sb.append(" trackingCode: ").append(trackingCode).append("\n"); +sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodCard.java b/src/main/java/io/conekta/model/PaymentMethodCard.java index 5f8b694..899ddd2 100644 --- a/src/main/java/io/conekta/model/PaymentMethodCard.java +++ b/src/main/java/io/conekta/model/PaymentMethodCard.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodCard { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("object") @@ -45,156 +42,174 @@ public class PaymentMethodCard { private String customerIpAddress = null; /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Account type of the card + * **/ @ApiModelProperty(value = "Account type of the card") public String getAccountType() { return accountType; } + public void setAccountType(String accountType) { this.accountType = accountType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getAuthCode() { return authCode; } + public void setAuthCode(String authCode) { this.authCode = authCode; } - /** * Brand of the card + * **/ @ApiModelProperty(value = "Brand of the card") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** * Id sent for recurrent charges. + * **/ @ApiModelProperty(value = "Id sent for recurrent charges.") public String getContractId() { return contractId; } + public void setContractId(String contractId) { this.contractId = contractId; } - /** * Country of the card + * **/ @ApiModelProperty(value = "Country of the card") public String getCountry() { return country; } + public void setCountry(String country) { this.country = country; } - /** * Expiration month of the card + * **/ @ApiModelProperty(value = "Expiration month of the card") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** * Expiration year of the card + * **/ @ApiModelProperty(value = "Expiration year of the card") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** + * + * **/ @ApiModelProperty(value = "") public List getFraudIndicators() { return fraudIndicators; } + public void setFraudIndicators(List fraudIndicators) { this.fraudIndicators = fraudIndicators; } - /** * Issuer of the card + * **/ @ApiModelProperty(value = "Issuer of the card") public String getIssuer() { return issuer; } + public void setIssuer(String issuer) { this.issuer = issuer; } - /** * Last 4 digits of the card + * **/ @ApiModelProperty(value = "Last 4 digits of the card") public String getLast4() { return last4; } + public void setLast4(String last4) { this.last4 = last4; } - /** * Name of the cardholder + * **/ @ApiModelProperty(value = "Name of the cardholder") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes + * **/ @ApiModelProperty(value = "Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes") public String getCustomerIpAddress() { return customerIpAddress; } + public void setCustomerIpAddress(String customerIpAddress) { this.customerIpAddress = customerIpAddress; } - @Override public boolean equals(Object o) { if (this == o) { @@ -218,48 +233,49 @@ public boolean equals(Object o) { (this.last4 == null ? paymentMethodCard.last4 == null : this.last4.equals(paymentMethodCard.last4)) && (this.name == null ? paymentMethodCard.name == null : this.name.equals(paymentMethodCard.name)) && (this.customerIpAddress == null ? paymentMethodCard.customerIpAddress == null : this.customerIpAddress.equals(paymentMethodCard.customerIpAddress)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.accountType == null ? 0: this.accountType.hashCode()); - result = 31 * result + (this.authCode == null ? 0: this.authCode.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.contractId == null ? 0: this.contractId.hashCode()); - result = 31 * result + (this.country == null ? 0: this.country.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.fraudIndicators == null ? 0: this.fraudIndicators.hashCode()); - result = 31 * result + (this.issuer == null ? 0: this.issuer.hashCode()); - result = 31 * result + (this.last4 == null ? 0: this.last4.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.customerIpAddress == null ? 0: this.customerIpAddress.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.accountType == null ? 0 : this.accountType.hashCode()); + result = 31 * result + (this.authCode == null ? 0 : this.authCode.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.contractId == null ? 0 : this.contractId.hashCode()); + result = 31 * result + (this.country == null ? 0 : this.country.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.fraudIndicators == null ? 0 : this.fraudIndicators.hashCode()); + result = 31 * result + (this.issuer == null ? 0 : this.issuer.hashCode()); + result = 31 * result + (this.last4 == null ? 0 : this.last4.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.customerIpAddress == null ? 0 : this.customerIpAddress.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodCard {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" accountType: ").append(accountType).append("\n"); - sb.append(" authCode: ").append(authCode).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" contractId: ").append(contractId).append("\n"); - sb.append(" country: ").append(country).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" fraudIndicators: ").append(fraudIndicators).append("\n"); - sb.append(" issuer: ").append(issuer).append("\n"); - sb.append(" last4: ").append(last4).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" accountType: ").append(accountType).append("\n"); +sb.append(" authCode: ").append(authCode).append("\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" contractId: ").append(contractId).append("\n"); +sb.append(" country: ").append(country).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" fraudIndicators: ").append(fraudIndicators).append("\n"); +sb.append(" issuer: ").append(issuer).append("\n"); +sb.append(" last4: ").append(last4).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodCardRequest.java b/src/main/java/io/conekta/model/PaymentMethodCardRequest.java index 1e4cfe6..3f03fe6 100644 --- a/src/main/java/io/conekta/model/PaymentMethodCardRequest.java +++ b/src/main/java/io/conekta/model/PaymentMethodCardRequest.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodCardRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("cvc") @@ -30,82 +27,89 @@ public class PaymentMethodCardRequest { /** * Type of payment method + * **/ @ApiModelProperty(required = true, value = "Type of payment method") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** * Card security code + * **/ @ApiModelProperty(required = true, value = "Card security code") public String getCvc() { return cvc; } + public void setCvc(String cvc) { this.cvc = cvc; } - /** * Card expiration month + * **/ @ApiModelProperty(required = true, value = "Card expiration month") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** * Card expiration year + * **/ @ApiModelProperty(required = true, value = "Card expiration year") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** * Cardholder name + * **/ @ApiModelProperty(required = true, value = "Cardholder name") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * Card number + * **/ @ApiModelProperty(required = true, value = "Card number") public String getNumber() { return number; } + public void setNumber(String number) { this.number = number; } - /** * Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes + * **/ @ApiModelProperty(value = "Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes") public String getCustomerIpAddress() { return customerIpAddress; } + public void setCustomerIpAddress(String customerIpAddress) { this.customerIpAddress = customerIpAddress; } - @Override public boolean equals(Object o) { if (this == o) { @@ -122,34 +126,35 @@ public boolean equals(Object o) { (this.name == null ? paymentMethodCardRequest.name == null : this.name.equals(paymentMethodCardRequest.name)) && (this.number == null ? paymentMethodCardRequest.number == null : this.number.equals(paymentMethodCardRequest.number)) && (this.customerIpAddress == null ? paymentMethodCardRequest.customerIpAddress == null : this.customerIpAddress.equals(paymentMethodCardRequest.customerIpAddress)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.cvc == null ? 0: this.cvc.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.number == null ? 0: this.number.hashCode()); - result = 31 * result + (this.customerIpAddress == null ? 0: this.customerIpAddress.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.cvc == null ? 0 : this.cvc.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.number == null ? 0 : this.number.hashCode()); + result = 31 * result + (this.customerIpAddress == null ? 0 : this.customerIpAddress.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodCardRequest {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" cvc: ").append(cvc).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" number: ").append(number).append("\n"); - sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); - sb.append("}\n"); +sb.append(" cvc: ").append(cvc).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" number: ").append(number).append("\n"); +sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodCardResponse.java b/src/main/java/io/conekta/model/PaymentMethodCardResponse.java index 19c239f..f3bf264 100644 --- a/src/main/java/io/conekta/model/PaymentMethodCardResponse.java +++ b/src/main/java/io/conekta/model/PaymentMethodCardResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodCardResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("id") @@ -45,156 +42,186 @@ public class PaymentMethodCardResponse { private String paymentSourceStatus = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getLast4() { return last4; } + public void setLast4(String last4) { this.last4 = last4; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBin() { return bin; } + public void setBin(String bin) { this.bin = bin; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCardType() { return cardType; } + public void setCardType(String cardType) { this.cardType = cardType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getVisibleOnCheckout() { return visibleOnCheckout; } + public void setVisibleOnCheckout(Boolean visibleOnCheckout) { this.visibleOnCheckout = visibleOnCheckout; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPaymentSourceStatus() { return paymentSourceStatus; } + public void setPaymentSourceStatus(String paymentSourceStatus) { this.paymentSourceStatus = paymentSourceStatus; } - @Override public boolean equals(Object o) { if (this == o) { @@ -219,50 +246,51 @@ public boolean equals(Object o) { (this._default == null ? paymentMethodCardResponse._default == null : this._default.equals(paymentMethodCardResponse._default)) && (this.visibleOnCheckout == null ? paymentMethodCardResponse.visibleOnCheckout == null : this.visibleOnCheckout.equals(paymentMethodCardResponse.visibleOnCheckout)) && (this.paymentSourceStatus == null ? paymentMethodCardResponse.paymentSourceStatus == null : this.paymentSourceStatus.equals(paymentMethodCardResponse.paymentSourceStatus)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this.last4 == null ? 0: this.last4.hashCode()); - result = 31 * result + (this.bin == null ? 0: this.bin.hashCode()); - result = 31 * result + (this.cardType == null ? 0: this.cardType.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); - result = 31 * result + (this.visibleOnCheckout == null ? 0: this.visibleOnCheckout.hashCode()); - result = 31 * result + (this.paymentSourceStatus == null ? 0: this.paymentSourceStatus.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this.last4 == null ? 0 : this.last4.hashCode()); + result = 31 * result + (this.bin == null ? 0 : this.bin.hashCode()); + result = 31 * result + (this.cardType == null ? 0 : this.cardType.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); + result = 31 * result + (this.visibleOnCheckout == null ? 0 : this.visibleOnCheckout.hashCode()); + result = 31 * result + (this.paymentSourceStatus == null ? 0 : this.paymentSourceStatus.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodCardResponse {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" last4: ").append(last4).append("\n"); - sb.append(" bin: ").append(bin).append("\n"); - sb.append(" cardType: ").append(cardType).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append(" visibleOnCheckout: ").append(visibleOnCheckout).append("\n"); - sb.append(" paymentSourceStatus: ").append(paymentSourceStatus).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" last4: ").append(last4).append("\n"); +sb.append(" bin: ").append(bin).append("\n"); +sb.append(" cardType: ").append(cardType).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); +sb.append(" visibleOnCheckout: ").append(visibleOnCheckout).append("\n"); +sb.append(" paymentSourceStatus: ").append(paymentSourceStatus).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodCash.java b/src/main/java/io/conekta/model/PaymentMethodCash.java index 84f9ab3..46d0c13 100644 --- a/src/main/java/io/conekta/model/PaymentMethodCash.java +++ b/src/main/java/io/conekta/model/PaymentMethodCash.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodCash { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("object") @@ -41,138 +38,162 @@ public class PaymentMethodCash { private String customerIpAddress = null; /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Agreement ID + * **/ @ApiModelProperty(value = "Agreement ID") public String getAgreement() { return agreement; } + public void setAgreement(String agreement) { this.agreement = agreement; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getAuthCode() { return authCode; } + public void setAuthCode(Integer authCode) { this.authCode = authCode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCashierId() { return cashierId; } + public void setCashierId(String cashierId) { this.cashierId = cashierId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReference() { return reference; } + public void setReference(String reference) { this.reference = reference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcodeUrl() { return barcodeUrl; } + public void setBarcodeUrl(String barcodeUrl) { this.barcodeUrl = barcodeUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. + * **/ @ApiModelProperty(value = "Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc.") public String getProductType() { return productType; } + public void setProductType(String productType) { this.productType = productType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getServiceName() { return serviceName; } + public void setServiceName(String serviceName) { this.serviceName = serviceName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStore() { return store; } + public void setStore(String store) { this.store = store; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStoreName() { return storeName; } + public void setStoreName(String storeName) { this.storeName = storeName; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerIpAddress() { return customerIpAddress; } + public void setCustomerIpAddress(String customerIpAddress) { this.customerIpAddress = customerIpAddress; } - @Override public boolean equals(Object o) { if (this == o) { @@ -195,46 +216,47 @@ public boolean equals(Object o) { (this.store == null ? paymentMethodCash.store == null : this.store.equals(paymentMethodCash.store)) && (this.storeName == null ? paymentMethodCash.storeName == null : this.storeName.equals(paymentMethodCash.storeName)) && (this.customerIpAddress == null ? paymentMethodCash.customerIpAddress == null : this.customerIpAddress.equals(paymentMethodCash.customerIpAddress)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.agreement == null ? 0: this.agreement.hashCode()); - result = 31 * result + (this.authCode == null ? 0: this.authCode.hashCode()); - result = 31 * result + (this.cashierId == null ? 0: this.cashierId.hashCode()); - result = 31 * result + (this.reference == null ? 0: this.reference.hashCode()); - result = 31 * result + (this.barcodeUrl == null ? 0: this.barcodeUrl.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.productType == null ? 0: this.productType.hashCode()); - result = 31 * result + (this.serviceName == null ? 0: this.serviceName.hashCode()); - result = 31 * result + (this.store == null ? 0: this.store.hashCode()); - result = 31 * result + (this.storeName == null ? 0: this.storeName.hashCode()); - result = 31 * result + (this.customerIpAddress == null ? 0: this.customerIpAddress.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.agreement == null ? 0 : this.agreement.hashCode()); + result = 31 * result + (this.authCode == null ? 0 : this.authCode.hashCode()); + result = 31 * result + (this.cashierId == null ? 0 : this.cashierId.hashCode()); + result = 31 * result + (this.reference == null ? 0 : this.reference.hashCode()); + result = 31 * result + (this.barcodeUrl == null ? 0 : this.barcodeUrl.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.productType == null ? 0 : this.productType.hashCode()); + result = 31 * result + (this.serviceName == null ? 0 : this.serviceName.hashCode()); + result = 31 * result + (this.store == null ? 0 : this.store.hashCode()); + result = 31 * result + (this.storeName == null ? 0 : this.storeName.hashCode()); + result = 31 * result + (this.customerIpAddress == null ? 0 : this.customerIpAddress.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodCash {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" agreement: ").append(agreement).append("\n"); - sb.append(" authCode: ").append(authCode).append("\n"); - sb.append(" cashierId: ").append(cashierId).append("\n"); - sb.append(" reference: ").append(reference).append("\n"); - sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" productType: ").append(productType).append("\n"); - sb.append(" serviceName: ").append(serviceName).append("\n"); - sb.append(" store: ").append(store).append("\n"); - sb.append(" storeName: ").append(storeName).append("\n"); - sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" agreement: ").append(agreement).append("\n"); +sb.append(" authCode: ").append(authCode).append("\n"); +sb.append(" cashierId: ").append(cashierId).append("\n"); +sb.append(" reference: ").append(reference).append("\n"); +sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" productType: ").append(productType).append("\n"); +sb.append(" serviceName: ").append(serviceName).append("\n"); +sb.append(" store: ").append(store).append("\n"); +sb.append(" storeName: ").append(storeName).append("\n"); +sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodCashRequest.java b/src/main/java/io/conekta/model/PaymentMethodCashRequest.java index e0e4d63..34066db 100644 --- a/src/main/java/io/conekta/model/PaymentMethodCashRequest.java +++ b/src/main/java/io/conekta/model/PaymentMethodCashRequest.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodCashRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("expires_at") @@ -20,26 +17,29 @@ public class PaymentMethodCashRequest { /** * Type of payment method + * **/ @ApiModelProperty(required = true, value = "Type of payment method") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -51,24 +51,25 @@ public boolean equals(Object o) { PaymentMethodCashRequest paymentMethodCashRequest = (PaymentMethodCashRequest) o; return (this.type == null ? paymentMethodCashRequest.type == null : this.type.equals(paymentMethodCashRequest.type)) && (this.expiresAt == null ? paymentMethodCashRequest.expiresAt == null : this.expiresAt.equals(paymentMethodCashRequest.expiresAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodCashRequest {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append("}\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodCashResponse.java b/src/main/java/io/conekta/model/PaymentMethodCashResponse.java index 8e63d4b..ea0bdf6 100644 --- a/src/main/java/io/conekta/model/PaymentMethodCashResponse.java +++ b/src/main/java/io/conekta/model/PaymentMethodCashResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodCashResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("id") @@ -35,106 +32,126 @@ public class PaymentMethodCashResponse { private String provider = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReference() { return reference; } + public void setReference(String reference) { this.reference = reference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcode() { return barcode; } + public void setBarcode(String barcode) { this.barcode = barcode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcodeUrl() { return barcodeUrl; } + public void setBarcodeUrl(String barcodeUrl) { this.barcodeUrl = barcodeUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getProvider() { return provider; } + public void setProvider(String provider) { this.provider = provider; } - @Override public boolean equals(Object o) { if (this == o) { @@ -154,40 +171,41 @@ public boolean equals(Object o) { (this.barcodeUrl == null ? paymentMethodCashResponse.barcodeUrl == null : this.barcodeUrl.equals(paymentMethodCashResponse.barcodeUrl)) && (this.expiresAt == null ? paymentMethodCashResponse.expiresAt == null : this.expiresAt.equals(paymentMethodCashResponse.expiresAt)) && (this.provider == null ? paymentMethodCashResponse.provider == null : this.provider.equals(paymentMethodCashResponse.provider)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this.reference == null ? 0: this.reference.hashCode()); - result = 31 * result + (this.barcode == null ? 0: this.barcode.hashCode()); - result = 31 * result + (this.barcodeUrl == null ? 0: this.barcodeUrl.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.provider == null ? 0: this.provider.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this.reference == null ? 0 : this.reference.hashCode()); + result = 31 * result + (this.barcode == null ? 0 : this.barcode.hashCode()); + result = 31 * result + (this.barcodeUrl == null ? 0 : this.barcodeUrl.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.provider == null ? 0 : this.provider.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodCashResponse {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" reference: ").append(reference).append("\n"); - sb.append(" barcode: ").append(barcode).append("\n"); - sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" provider: ").append(provider).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" reference: ").append(reference).append("\n"); +sb.append(" barcode: ").append(barcode).append("\n"); +sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" provider: ").append(provider).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodGeneralRequest.java b/src/main/java/io/conekta/model/PaymentMethodGeneralRequest.java index 7d70d16..abf5933 100644 --- a/src/main/java/io/conekta/model/PaymentMethodGeneralRequest.java +++ b/src/main/java/io/conekta/model/PaymentMethodGeneralRequest.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Payment method used in the charge. Go to the [payment methods](https://developers.conekta.com/reference/m%C3%A9todos-de-pago) section for more details **/ @ApiModel(description = "Payment method used in the charge. Go to the [payment methods](https://developers.conekta.com/reference/m%C3%A9todos-de-pago) section for more details ") public class PaymentMethodGeneralRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("expires_at") private Long expiresAt = null; @SerializedName("monthly_installments") @@ -35,91 +32,101 @@ public class PaymentMethodGeneralRequest { /** * Method expiration date as unix timestamp + * **/ @ApiModelProperty(value = "Method expiration date as unix timestamp") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * How many months without interest to apply, it can be 3, 6, 9, 12 or 18 + * **/ @ApiModelProperty(value = "How many months without interest to apply, it can be 3, 6, 9, 12 or 18") public Integer getMonthlyInstallments() { return monthlyInstallments; } + public void setMonthlyInstallments(Integer monthlyInstallments) { this.monthlyInstallments = monthlyInstallments; } - /** * Type of payment method + * **/ @ApiModelProperty(required = true, value = "Type of payment method") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(value = "") public String getTokenId() { return tokenId; } + public void setTokenId(String tokenId) { this.tokenId = tokenId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPaymentSourceId() { return paymentSourceId; } + public void setPaymentSourceId(String paymentSourceId) { this.paymentSourceId = paymentSourceId; } - /** * Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants + * **/ @ApiModelProperty(value = "Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants") public String getCvc() { return cvc; } + public void setCvc(String cvc) { this.cvc = cvc; } - /** * Optional id sent to indicate the bank contract for recurrent card charges. + * **/ @ApiModelProperty(value = "Optional id sent to indicate the bank contract for recurrent card charges.") public String getContractId() { return contractId; } + public void setContractId(String contractId) { this.contractId = contractId; } - /** * Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes + * **/ @ApiModelProperty(value = "Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes") public String getCustomerIpAddress() { return customerIpAddress; } + public void setCustomerIpAddress(String customerIpAddress) { this.customerIpAddress = customerIpAddress; } - @Override public boolean equals(Object o) { if (this == o) { @@ -137,36 +144,37 @@ public boolean equals(Object o) { (this.cvc == null ? paymentMethodGeneralRequest.cvc == null : this.cvc.equals(paymentMethodGeneralRequest.cvc)) && (this.contractId == null ? paymentMethodGeneralRequest.contractId == null : this.contractId.equals(paymentMethodGeneralRequest.contractId)) && (this.customerIpAddress == null ? paymentMethodGeneralRequest.customerIpAddress == null : this.customerIpAddress.equals(paymentMethodGeneralRequest.customerIpAddress)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.monthlyInstallments == null ? 0: this.monthlyInstallments.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.tokenId == null ? 0: this.tokenId.hashCode()); - result = 31 * result + (this.paymentSourceId == null ? 0: this.paymentSourceId.hashCode()); - result = 31 * result + (this.cvc == null ? 0: this.cvc.hashCode()); - result = 31 * result + (this.contractId == null ? 0: this.contractId.hashCode()); - result = 31 * result + (this.customerIpAddress == null ? 0: this.customerIpAddress.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.monthlyInstallments == null ? 0 : this.monthlyInstallments.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.tokenId == null ? 0 : this.tokenId.hashCode()); + result = 31 * result + (this.paymentSourceId == null ? 0 : this.paymentSourceId.hashCode()); + result = 31 * result + (this.cvc == null ? 0 : this.cvc.hashCode()); + result = 31 * result + (this.contractId == null ? 0 : this.contractId.hashCode()); + result = 31 * result + (this.customerIpAddress == null ? 0 : this.customerIpAddress.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodGeneralRequest {\n"); sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" monthlyInstallments: ").append(monthlyInstallments).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append(" tokenId: ").append(tokenId).append("\n"); - sb.append(" paymentSourceId: ").append(paymentSourceId).append("\n"); - sb.append(" cvc: ").append(cvc).append("\n"); - sb.append(" contractId: ").append(contractId).append("\n"); - sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); - sb.append("}\n"); +sb.append(" monthlyInstallments: ").append(monthlyInstallments).append("\n"); +sb.append(" type: ").append(type).append("\n"); +sb.append(" tokenId: ").append(tokenId).append("\n"); +sb.append(" paymentSourceId: ").append(paymentSourceId).append("\n"); +sb.append(" cvc: ").append(cvc).append("\n"); +sb.append(" contractId: ").append(contractId).append("\n"); +sb.append(" customerIpAddress: ").append(customerIpAddress).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodResponse.java b/src/main/java/io/conekta/model/PaymentMethodResponse.java index 1a2b7f6..acdccfd 100644 --- a/src/main/java/io/conekta/model/PaymentMethodResponse.java +++ b/src/main/java/io/conekta/model/PaymentMethodResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("id") @@ -25,56 +22,66 @@ public class PaymentMethodResponse { private String parentId = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -89,30 +96,31 @@ public boolean equals(Object o) { (this._object == null ? paymentMethodResponse._object == null : this._object.equals(paymentMethodResponse._object)) && (this.createdAt == null ? paymentMethodResponse.createdAt == null : this.createdAt.equals(paymentMethodResponse.createdAt)) && (this.parentId == null ? paymentMethodResponse.parentId == null : this.parentId.equals(paymentMethodResponse.parentId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodResponse {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodSpeiRecurrent.java b/src/main/java/io/conekta/model/PaymentMethodSpeiRecurrent.java index 10cd3c9..81f3b95 100644 --- a/src/main/java/io/conekta/model/PaymentMethodSpeiRecurrent.java +++ b/src/main/java/io/conekta/model/PaymentMethodSpeiRecurrent.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodSpeiRecurrent { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("id") @@ -29,76 +26,90 @@ public class PaymentMethodSpeiRecurrent { private String expiresAt = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReference() { return reference; } + public void setReference(String reference) { this.reference = reference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpiresAt() { return expiresAt; } + public void setExpiresAt(String expiresAt) { this.expiresAt = expiresAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -115,34 +126,35 @@ public boolean equals(Object o) { (this.parentId == null ? paymentMethodSpeiRecurrent.parentId == null : this.parentId.equals(paymentMethodSpeiRecurrent.parentId)) && (this.reference == null ? paymentMethodSpeiRecurrent.reference == null : this.reference.equals(paymentMethodSpeiRecurrent.reference)) && (this.expiresAt == null ? paymentMethodSpeiRecurrent.expiresAt == null : this.expiresAt.equals(paymentMethodSpeiRecurrent.expiresAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this.reference == null ? 0: this.reference.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this.reference == null ? 0 : this.reference.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodSpeiRecurrent {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" reference: ").append(reference).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" reference: ").append(reference).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodSpeiRequest.java b/src/main/java/io/conekta/model/PaymentMethodSpeiRequest.java index 2b94475..f27e16e 100644 --- a/src/main/java/io/conekta/model/PaymentMethodSpeiRequest.java +++ b/src/main/java/io/conekta/model/PaymentMethodSpeiRequest.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodSpeiRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("expires_at") @@ -20,26 +17,29 @@ public class PaymentMethodSpeiRequest { /** * Type of payment method + * **/ @ApiModelProperty(required = true, value = "Type of payment method") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -51,24 +51,25 @@ public boolean equals(Object o) { PaymentMethodSpeiRequest paymentMethodSpeiRequest = (PaymentMethodSpeiRequest) o; return (this.type == null ? paymentMethodSpeiRequest.type == null : this.type.equals(paymentMethodSpeiRequest.type)) && (this.expiresAt == null ? paymentMethodSpeiRequest.expiresAt == null : this.expiresAt.equals(paymentMethodSpeiRequest.expiresAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodSpeiRequest {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append("}\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PaymentMethodTokenRequest.java b/src/main/java/io/conekta/model/PaymentMethodTokenRequest.java index 8464c43..374594e 100644 --- a/src/main/java/io/conekta/model/PaymentMethodTokenRequest.java +++ b/src/main/java/io/conekta/model/PaymentMethodTokenRequest.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PaymentMethodTokenRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("token_id") @@ -20,27 +17,29 @@ public class PaymentMethodTokenRequest { /** * Type of payment method + * **/ @ApiModelProperty(required = true, value = "Type of payment method") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** * Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. + * **/ @ApiModelProperty(required = true, value = "Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards.") public String getTokenId() { return tokenId; } + public void setTokenId(String tokenId) { this.tokenId = tokenId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -52,24 +51,25 @@ public boolean equals(Object o) { PaymentMethodTokenRequest paymentMethodTokenRequest = (PaymentMethodTokenRequest) o; return (this.type == null ? paymentMethodTokenRequest.type == null : this.type.equals(paymentMethodTokenRequest.type)) && (this.tokenId == null ? paymentMethodTokenRequest.tokenId == null : this.tokenId.equals(paymentMethodTokenRequest.tokenId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.tokenId == null ? 0: this.tokenId.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.tokenId == null ? 0 : this.tokenId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodTokenRequest {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" tokenId: ").append(tokenId).append("\n"); - sb.append("}\n"); +sb.append(" tokenId: ").append(tokenId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/Payout.java b/src/main/java/io/conekta/model/Payout.java index 2e50b33..41ec00b 100644 --- a/src/main/java/io/conekta/model/Payout.java +++ b/src/main/java/io/conekta/model/Payout.java @@ -3,34 +3,33 @@ import io.conekta.model.PayoutMethod; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * The payout information of the payout order. **/ @ApiModel(description = "The payout information of the payout order.") public class Payout { - + private static final String MXN = "MXN"; - - + @SerializedName("payout_method") private PayoutMethod payoutMethod = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public PayoutMethod getPayoutMethod() { return payoutMethod; } + public void setPayoutMethod(PayoutMethod payoutMethod) { this.payoutMethod = payoutMethod; } - @Override public boolean equals(Object o) { if (this == o) { @@ -41,22 +40,23 @@ public boolean equals(Object o) { } Payout payout = (Payout) o; return (this.payoutMethod == null ? payout.payoutMethod == null : this.payoutMethod.equals(payout.payoutMethod)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.payoutMethod == null ? 0: this.payoutMethod.hashCode()); + result = 31 * result + (this.payoutMethod == null ? 0 : this.payoutMethod.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Payout {\n"); sb.append(" payoutMethod: ").append(payoutMethod).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PayoutMethod.java b/src/main/java/io/conekta/model/PayoutMethod.java index 863d270..10a35bc 100644 --- a/src/main/java/io/conekta/model/PayoutMethod.java +++ b/src/main/java/io/conekta/model/PayoutMethod.java @@ -2,35 +2,33 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * The payout method of the payout order. **/ @ApiModel(description = "The payout method of the payout order.") public class PayoutMethod { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; /** * The type of the payout method. + * **/ @ApiModelProperty(required = true, value = "The type of the payout method.") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -41,22 +39,23 @@ public boolean equals(Object o) { } PayoutMethod payoutMethod = (PayoutMethod) o; return (this.type == null ? payoutMethod.type == null : this.type.equals(payoutMethod.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayoutMethod {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PayoutOrder.java b/src/main/java/io/conekta/model/PayoutOrder.java index 8cac2b3..7a81102 100644 --- a/src/main/java/io/conekta/model/PayoutOrder.java +++ b/src/main/java/io/conekta/model/PayoutOrder.java @@ -7,20 +7,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * a payout order **/ @ApiModel(description = "a payout order") public class PayoutOrder { - + private static final String MXN = "MXN"; - - + @SerializedName("allowed_payout_methods") private List allowedPayoutMethods = null; @SerializedName("amount") @@ -38,80 +35,89 @@ public class PayoutOrder { /** * The payout methods that are allowed for the payout order. + * **/ @ApiModelProperty(required = true, value = "The payout methods that are allowed for the payout order.") public List getAllowedPayoutMethods() { return allowedPayoutMethods; } + public void setAllowedPayoutMethods(List allowedPayoutMethods) { this.allowedPayoutMethods = allowedPayoutMethods; } - /** * The amount of the payout order. + * **/ @ApiModelProperty(required = true, value = "The amount of the payout order.") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** * The currency in which the payout order is made. + * **/ @ApiModelProperty(required = true, value = "The currency in which the payout order is made.") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public CustomerInfoJustCustomerId getCustomerInfo() { return customerInfo; } + public void setCustomerInfo(CustomerInfoJustCustomerId customerInfo) { this.customerInfo = customerInfo; } - /** * The metadata of the payout order. + * **/ @ApiModelProperty(value = "The metadata of the payout order.") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Payout getPayout() { return payout; } + public void setPayout(Payout payout) { this.payout = payout; } - /** * The reason for the payout order. + * **/ @ApiModelProperty(required = true, value = "The reason for the payout order.") public String getReason() { return reason; } + public void setReason(String reason) { this.reason = reason; } - @Override public boolean equals(Object o) { if (this == o) { @@ -128,34 +134,35 @@ public boolean equals(Object o) { (this.metadata == null ? payoutOrder.metadata == null : this.metadata.equals(payoutOrder.metadata)) && (this.payout == null ? payoutOrder.payout == null : this.payout.equals(payoutOrder.payout)) && (this.reason == null ? payoutOrder.reason == null : this.reason.equals(payoutOrder.reason)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.allowedPayoutMethods == null ? 0: this.allowedPayoutMethods.hashCode()); - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.customerInfo == null ? 0: this.customerInfo.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.payout == null ? 0: this.payout.hashCode()); - result = 31 * result + (this.reason == null ? 0: this.reason.hashCode()); + result = 31 * result + (this.allowedPayoutMethods == null ? 0 : this.allowedPayoutMethods.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.customerInfo == null ? 0 : this.customerInfo.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.payout == null ? 0 : this.payout.hashCode()); + result = 31 * result + (this.reason == null ? 0 : this.reason.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayoutOrder {\n"); sb.append(" allowedPayoutMethods: ").append(allowedPayoutMethods).append("\n"); - sb.append(" amount: ").append(amount).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" customerInfo: ").append(customerInfo).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" payout: ").append(payout).append("\n"); - sb.append(" reason: ").append(reason).append("\n"); - sb.append("}\n"); +sb.append(" amount: ").append(amount).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" customerInfo: ").append(customerInfo).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" payout: ").append(payout).append("\n"); +sb.append(" reason: ").append(reason).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PayoutOrderPayoutsItem.java b/src/main/java/io/conekta/model/PayoutOrderPayoutsItem.java index 23ce0f7..a9594c4 100644 --- a/src/main/java/io/conekta/model/PayoutOrderPayoutsItem.java +++ b/src/main/java/io/conekta/model/PayoutOrderPayoutsItem.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PayoutOrderPayoutsItem { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("currency") @@ -32,93 +29,101 @@ public class PayoutOrderPayoutsItem { /** * The amount of the payout. + * **/ @ApiModelProperty(required = true, value = "The amount of the payout.") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** * The currency in which the payout is made. + * **/ @ApiModelProperty(required = true, value = "The currency in which the payout is made.") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** * The expiration date of the payout. + * **/ @ApiModelProperty(value = "The expiration date of the payout.") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * The id of the payout. + * **/ @ApiModelProperty(required = true, value = "The id of the payout.") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * The live mode of the payout. + * **/ @ApiModelProperty(required = true, value = "The live mode of the payout.") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * The object of the payout. + * **/ @ApiModelProperty(required = true, value = "The object of the payout.") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * The id of the payout order. + * **/ @ApiModelProperty(value = "The id of the payout order.") public String getPayoutOrderId() { return payoutOrderId; } + public void setPayoutOrderId(String payoutOrderId) { this.payoutOrderId = payoutOrderId; } - /** * The status of the payout. + * **/ @ApiModelProperty(value = "The status of the payout.") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { @@ -136,36 +141,37 @@ public boolean equals(Object o) { (this._object == null ? payoutOrderPayoutsItem._object == null : this._object.equals(payoutOrderPayoutsItem._object)) && (this.payoutOrderId == null ? payoutOrderPayoutsItem.payoutOrderId == null : this.payoutOrderId.equals(payoutOrderPayoutsItem.payoutOrderId)) && (this.status == null ? payoutOrderPayoutsItem.status == null : this.status.equals(payoutOrderPayoutsItem.status)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.payoutOrderId == null ? 0: this.payoutOrderId.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.payoutOrderId == null ? 0 : this.payoutOrderId.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayoutOrderPayoutsItem {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" payoutOrderId: ").append(payoutOrderId).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append("}\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" payoutOrderId: ").append(payoutOrderId).append("\n"); +sb.append(" status: ").append(status).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PayoutOrderResponse.java b/src/main/java/io/conekta/model/PayoutOrderResponse.java index d2be91d..3ea8c68 100644 --- a/src/main/java/io/conekta/model/PayoutOrderResponse.java +++ b/src/main/java/io/conekta/model/PayoutOrderResponse.java @@ -7,20 +7,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * payout order model response **/ @ApiModel(description = "payout order model response") public class PayoutOrderResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("allowed_payout_methods") private List allowedPayoutMethods = null; @SerializedName("amount") @@ -52,158 +49,173 @@ public class PayoutOrderResponse { /** * The payout methods that are allowed for the payout order. + * **/ @ApiModelProperty(required = true, value = "The payout methods that are allowed for the payout order.") public List getAllowedPayoutMethods() { return allowedPayoutMethods; } + public void setAllowedPayoutMethods(List allowedPayoutMethods) { this.allowedPayoutMethods = allowedPayoutMethods; } - /** * The amount of the payout order. + * **/ @ApiModelProperty(required = true, value = "The amount of the payout order.") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** * The creation date of the payout order. + * **/ @ApiModelProperty(required = true, value = "The creation date of the payout order.") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * The currency in which the payout order is made. + * **/ @ApiModelProperty(required = true, value = "The currency in which the payout order is made.") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public PayoutOrderResponseCustomerInfo getCustomerInfo() { return customerInfo; } + public void setCustomerInfo(PayoutOrderResponseCustomerInfo customerInfo) { this.customerInfo = customerInfo; } - /** * The expiration date of the payout order. + * **/ @ApiModelProperty(value = "The expiration date of the payout order.") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * The id of the payout order. + * **/ @ApiModelProperty(required = true, value = "The id of the payout order.") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * The live mode of the payout order. + * **/ @ApiModelProperty(required = true, value = "The live mode of the payout order.") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * The object of the payout order. + * **/ @ApiModelProperty(required = true, value = "The object of the payout order.") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * The metadata of the payout order. + * **/ @ApiModelProperty(value = "The metadata of the payout order.") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * The payout information of the payout order. + * **/ @ApiModelProperty(required = true, value = "The payout information of the payout order.") public List getPayouts() { return payouts; } + public void setPayouts(List payouts) { this.payouts = payouts; } - /** * The reason for the payout order. + * **/ @ApiModelProperty(required = true, value = "The reason for the payout order.") public String getReason() { return reason; } + public void setReason(String reason) { this.reason = reason; } - /** * The status of the payout order. + * **/ @ApiModelProperty(value = "The status of the payout order.") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - /** * The update date of the payout order. + * **/ @ApiModelProperty(required = true, value = "The update date of the payout order.") public Long getUpdatedAt() { return updatedAt; } + public void setUpdatedAt(Long updatedAt) { this.updatedAt = updatedAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -227,48 +239,49 @@ public boolean equals(Object o) { (this.reason == null ? payoutOrderResponse.reason == null : this.reason.equals(payoutOrderResponse.reason)) && (this.status == null ? payoutOrderResponse.status == null : this.status.equals(payoutOrderResponse.status)) && (this.updatedAt == null ? payoutOrderResponse.updatedAt == null : this.updatedAt.equals(payoutOrderResponse.updatedAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.allowedPayoutMethods == null ? 0: this.allowedPayoutMethods.hashCode()); - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.customerInfo == null ? 0: this.customerInfo.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.payouts == null ? 0: this.payouts.hashCode()); - result = 31 * result + (this.reason == null ? 0: this.reason.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); - result = 31 * result + (this.updatedAt == null ? 0: this.updatedAt.hashCode()); + result = 31 * result + (this.allowedPayoutMethods == null ? 0 : this.allowedPayoutMethods.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.customerInfo == null ? 0 : this.customerInfo.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.payouts == null ? 0 : this.payouts.hashCode()); + result = 31 * result + (this.reason == null ? 0 : this.reason.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); + result = 31 * result + (this.updatedAt == null ? 0 : this.updatedAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayoutOrderResponse {\n"); sb.append(" allowedPayoutMethods: ").append(allowedPayoutMethods).append("\n"); - sb.append(" amount: ").append(amount).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" customerInfo: ").append(customerInfo).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" payouts: ").append(payouts).append("\n"); - sb.append(" reason: ").append(reason).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append(" updatedAt: ").append(updatedAt).append("\n"); - sb.append("}\n"); +sb.append(" amount: ").append(amount).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" customerInfo: ").append(customerInfo).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" payouts: ").append(payouts).append("\n"); +sb.append(" reason: ").append(reason).append("\n"); +sb.append(" status: ").append(status).append("\n"); +sb.append(" updatedAt: ").append(updatedAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PayoutOrderResponseCustomerInfo.java b/src/main/java/io/conekta/model/PayoutOrderResponseCustomerInfo.java index cb8fa4b..01e5954 100644 --- a/src/main/java/io/conekta/model/PayoutOrderResponseCustomerInfo.java +++ b/src/main/java/io/conekta/model/PayoutOrderResponseCustomerInfo.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * The customer information of the payout order. **/ @ApiModel(description = "The customer information of the payout order.") public class PayoutOrderResponseCustomerInfo { - + private static final String MXN = "MXN"; - - + @SerializedName("customer_custom_reference") private String customerCustomReference = null; @SerializedName("name") @@ -33,77 +30,89 @@ public class PayoutOrderResponseCustomerInfo { /** * Custom reference + * **/ @ApiModelProperty(value = "Custom reference") public String getCustomerCustomReference() { return customerCustomReference; } + public void setCustomerCustomReference(String customerCustomReference) { this.customerCustomReference = customerCustomReference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getCorporate() { return corporate; } + public void setCorporate(Boolean corporate) { this.corporate = corporate; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * The id of the customer. + * **/ @ApiModelProperty(required = true, value = "The id of the customer.") public String getId() { return id; } + public void setId(String id) { this.id = id; } - @Override public boolean equals(Object o) { if (this == o) { @@ -120,34 +129,35 @@ public boolean equals(Object o) { (this.corporate == null ? payoutOrderResponseCustomerInfo.corporate == null : this.corporate.equals(payoutOrderResponseCustomerInfo.corporate)) && (this._object == null ? payoutOrderResponseCustomerInfo._object == null : this._object.equals(payoutOrderResponseCustomerInfo._object)) && (this.id == null ? payoutOrderResponseCustomerInfo.id == null : this.id.equals(payoutOrderResponseCustomerInfo.id)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.customerCustomReference == null ? 0: this.customerCustomReference.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.corporate == null ? 0: this.corporate.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); + result = 31 * result + (this.customerCustomReference == null ? 0 : this.customerCustomReference.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.corporate == null ? 0 : this.corporate.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayoutOrderResponseCustomerInfo {\n"); sb.append(" customerCustomReference: ").append(customerCustomReference).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" corporate: ").append(corporate).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append("}\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" corporate: ").append(corporate).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" id: ").append(id).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PayoutOrdersResponse.java b/src/main/java/io/conekta/model/PayoutOrdersResponse.java index dcead72..66b8551 100644 --- a/src/main/java/io/conekta/model/PayoutOrdersResponse.java +++ b/src/main/java/io/conekta/model/PayoutOrdersResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class PayoutOrdersResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class PayoutOrdersResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? payoutOrdersResponse.nextPageUrl == null : this.nextPageUrl.equals(payoutOrdersResponse.nextPageUrl)) && (this.previousPageUrl == null ? payoutOrdersResponse.previousPageUrl == null : this.previousPageUrl.equals(payoutOrdersResponse.previousPageUrl)) && (this.data == null ? payoutOrdersResponse.data == null : this.data.equals(payoutOrdersResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PayoutOrdersResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PlanRequest.java b/src/main/java/io/conekta/model/PlanRequest.java index d327dfc..b377e37 100644 --- a/src/main/java/io/conekta/model/PlanRequest.java +++ b/src/main/java/io/conekta/model/PlanRequest.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * a plan **/ @ApiModel(description = "a plan") public class PlanRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("currency") @@ -27,8 +24,8 @@ public class PlanRequest { @SerializedName("id") private String id = null; public enum IntervalEnum { - week, half_month, month, year, - }; + week,half_month,month,year, + } @SerializedName("interval") private IntervalEnum interval = null; @SerializedName("name") @@ -44,32 +41,34 @@ public enum IntervalEnum { public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** * ISO 4217 for currencies, for the Mexican peso it is MXN/USD + * **/ @ApiModelProperty(value = "ISO 4217 for currencies, for the Mexican peso it is MXN/USD") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** * Number of repetitions of the frequency NUMBER OF CHARGES TO BE MADE, considering the interval and frequency, this evolves over time, but is subject to the expiration count. + * **/ @ApiModelProperty(value = "Number of repetitions of the frequency NUMBER OF CHARGES TO BE MADE, considering the interval and frequency, this evolves over time, but is subject to the expiration count.") public Integer getExpiryCount() { return expiryCount; } + public void setExpiryCount(Integer expiryCount) { this.expiryCount = expiryCount; } - /** * Frequency of the charge, which together with the interval, can be every 3 weeks, every 4 months, every 2 years, every 5 fortnights * minimum: 1 @@ -78,55 +77,59 @@ public void setExpiryCount(Integer expiryCount) { public Integer getFrequency() { return frequency; } + public void setFrequency(Integer frequency) { this.frequency = frequency; } - /** * internal reference id + * **/ @ApiModelProperty(value = "internal reference id") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * The interval of time between each charge. + * **/ @ApiModelProperty(required = true, value = "The interval of time between each charge.") public IntervalEnum getInterval() { return interval; } + public void setInterval(IntervalEnum interval) { this.interval = interval; } - /** * The name of the plan. + * **/ @ApiModelProperty(required = true, value = "The name of the plan.") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * The number of days the customer will have a free trial. + * **/ @ApiModelProperty(value = "The number of days the customer will have a free trial.") public Integer getTrialPeriodDays() { return trialPeriodDays; } + public void setTrialPeriodDays(Integer trialPeriodDays) { this.trialPeriodDays = trialPeriodDays; } - @Override public boolean equals(Object o) { if (this == o) { @@ -144,36 +147,37 @@ public boolean equals(Object o) { (this.interval == null ? planRequest.interval == null : this.interval.equals(planRequest.interval)) && (this.name == null ? planRequest.name == null : this.name.equals(planRequest.name)) && (this.trialPeriodDays == null ? planRequest.trialPeriodDays == null : this.trialPeriodDays.equals(planRequest.trialPeriodDays)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.expiryCount == null ? 0: this.expiryCount.hashCode()); - result = 31 * result + (this.frequency == null ? 0: this.frequency.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.interval == null ? 0: this.interval.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.trialPeriodDays == null ? 0: this.trialPeriodDays.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.expiryCount == null ? 0 : this.expiryCount.hashCode()); + result = 31 * result + (this.frequency == null ? 0 : this.frequency.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.interval == null ? 0 : this.interval.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.trialPeriodDays == null ? 0 : this.trialPeriodDays.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlanRequest {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" expiryCount: ").append(expiryCount).append("\n"); - sb.append(" frequency: ").append(frequency).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" interval: ").append(interval).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" trialPeriodDays: ").append(trialPeriodDays).append("\n"); - sb.append("}\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" expiryCount: ").append(expiryCount).append("\n"); +sb.append(" frequency: ").append(frequency).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" interval: ").append(interval).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" trialPeriodDays: ").append(trialPeriodDays).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PlanResponse.java b/src/main/java/io/conekta/model/PlanResponse.java index 08140b9..68fec0f 100644 --- a/src/main/java/io/conekta/model/PlanResponse.java +++ b/src/main/java/io/conekta/model/PlanResponse.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * plans model **/ @ApiModel(description = "plans model") public class PlanResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("created_at") @@ -40,116 +37,138 @@ public class PlanResponse { private Integer trialPeriodDays = null; /** + * + * **/ @ApiModelProperty(value = "") public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getExpiryCount() { return expiryCount; } + public void setExpiryCount(Integer expiryCount) { this.expiryCount = expiryCount; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getFrequency() { return frequency; } + public void setFrequency(Integer frequency) { this.frequency = frequency; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public String getInterval() { return interval; } + public void setInterval(String interval) { this.interval = interval; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getTrialPeriodDays() { return trialPeriodDays; } + public void setTrialPeriodDays(Integer trialPeriodDays) { this.trialPeriodDays = trialPeriodDays; } - @Override public boolean equals(Object o) { if (this == o) { @@ -170,42 +189,43 @@ public boolean equals(Object o) { (this.name == null ? planResponse.name == null : this.name.equals(planResponse.name)) && (this._object == null ? planResponse._object == null : this._object.equals(planResponse._object)) && (this.trialPeriodDays == null ? planResponse.trialPeriodDays == null : this.trialPeriodDays.equals(planResponse.trialPeriodDays)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.expiryCount == null ? 0: this.expiryCount.hashCode()); - result = 31 * result + (this.frequency == null ? 0: this.frequency.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.interval == null ? 0: this.interval.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.trialPeriodDays == null ? 0: this.trialPeriodDays.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.expiryCount == null ? 0 : this.expiryCount.hashCode()); + result = 31 * result + (this.frequency == null ? 0 : this.frequency.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.interval == null ? 0 : this.interval.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.trialPeriodDays == null ? 0 : this.trialPeriodDays.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlanResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" expiryCount: ").append(expiryCount).append("\n"); - sb.append(" frequency: ").append(frequency).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" interval: ").append(interval).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" trialPeriodDays: ").append(trialPeriodDays).append("\n"); - sb.append("}\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" expiryCount: ").append(expiryCount).append("\n"); +sb.append(" frequency: ").append(frequency).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" interval: ").append(interval).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" trialPeriodDays: ").append(trialPeriodDays).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/PlanUpdateRequest.java b/src/main/java/io/conekta/model/PlanUpdateRequest.java index 5fc64cd..dd6a37e 100644 --- a/src/main/java/io/conekta/model/PlanUpdateRequest.java +++ b/src/main/java/io/conekta/model/PlanUpdateRequest.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * a plan **/ @ApiModel(description = "a plan") public class PlanUpdateRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Integer amount = null; @SerializedName("currency") @@ -33,44 +30,47 @@ public class PlanUpdateRequest { public Integer getAmount() { return amount; } + public void setAmount(Integer amount) { this.amount = amount; } - /** * ISO 4217 for currencies, for the Mexican peso it is MXN/USD + * **/ @ApiModelProperty(value = "ISO 4217 for currencies, for the Mexican peso it is MXN/USD") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** * Number of repetitions of the frequency NUMBER OF CHARGES TO BE MADE, considering the interval and frequency, this evolves over time, but is subject to the expiration count. + * **/ @ApiModelProperty(value = "Number of repetitions of the frequency NUMBER OF CHARGES TO BE MADE, considering the interval and frequency, this evolves over time, but is subject to the expiration count.") public Integer getExpiryCount() { return expiryCount; } + public void setExpiryCount(Integer expiryCount) { this.expiryCount = expiryCount; } - /** * The name of the plan. + * **/ @ApiModelProperty(value = "The name of the plan.") public String getName() { return name; } + public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { @@ -84,28 +84,29 @@ public boolean equals(Object o) { (this.currency == null ? planUpdateRequest.currency == null : this.currency.equals(planUpdateRequest.currency)) && (this.expiryCount == null ? planUpdateRequest.expiryCount == null : this.expiryCount.equals(planUpdateRequest.expiryCount)) && (this.name == null ? planUpdateRequest.name == null : this.name.equals(planUpdateRequest.name)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.expiryCount == null ? 0: this.expiryCount.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.expiryCount == null ? 0 : this.expiryCount.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlanUpdateRequest {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" expiryCount: ").append(expiryCount).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append("}\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" expiryCount: ").append(expiryCount).append("\n"); +sb.append(" name: ").append(name).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/Product.java b/src/main/java/io/conekta/model/Product.java index b3e59ab..8c9c620 100644 --- a/src/main/java/io/conekta/model/Product.java +++ b/src/main/java/io/conekta/model/Product.java @@ -5,17 +5,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class Product { - + private static final String MXN = "MXN"; - - + @SerializedName("antifraud_info") private Map antifraudInfo = null; @SerializedName("brand") @@ -36,59 +33,65 @@ public class Product { private Integer unitPrice = null; /** + * + * **/ @ApiModelProperty(value = "") public Map getAntifraudInfo() { return antifraudInfo; } + public void setAntifraudInfo(Map antifraudInfo) { this.antifraudInfo = antifraudInfo; } - /** * The brand of the item. + * **/ @ApiModelProperty(value = "The brand of the item.") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** * Short description of the item + * **/ @ApiModelProperty(value = "Short description of the item") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** * It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. + * **/ @ApiModelProperty(value = "It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters.") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * The name of the item. It will be displayed in the order. + * **/ @ApiModelProperty(required = true, value = "The name of the item. It will be displayed in the order.") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * The quantity of the item in the order. * minimum: 1 @@ -97,32 +100,34 @@ public void setName(String name) { public Integer getQuantity() { return quantity; } + public void setQuantity(Integer quantity) { this.quantity = quantity; } - /** * The stock keeping unit for the item. It is used to identify the item in the order. + * **/ @ApiModelProperty(value = "The stock keeping unit for the item. It is used to identify the item in the order.") public String getSku() { return sku; } + public void setSku(String sku) { this.sku = sku; } - /** * List of tags for the item. It is used to identify the item in the order. + * **/ @ApiModelProperty(value = "List of tags for the item. It is used to identify the item in the order.") public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } - /** * The price of the item in cents. * minimum: 0 @@ -131,11 +136,11 @@ public void setTags(List tags) { public Integer getUnitPrice() { return unitPrice; } + public void setUnitPrice(Integer unitPrice) { this.unitPrice = unitPrice; } - @Override public boolean equals(Object o) { if (this == o) { @@ -154,38 +159,39 @@ public boolean equals(Object o) { (this.sku == null ? product.sku == null : this.sku.equals(product.sku)) && (this.tags == null ? product.tags == null : this.tags.equals(product.tags)) && (this.unitPrice == null ? product.unitPrice == null : this.unitPrice.equals(product.unitPrice)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.antifraudInfo == null ? 0: this.antifraudInfo.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.quantity == null ? 0: this.quantity.hashCode()); - result = 31 * result + (this.sku == null ? 0: this.sku.hashCode()); - result = 31 * result + (this.tags == null ? 0: this.tags.hashCode()); - result = 31 * result + (this.unitPrice == null ? 0: this.unitPrice.hashCode()); + result = 31 * result + (this.antifraudInfo == null ? 0 : this.antifraudInfo.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.quantity == null ? 0 : this.quantity.hashCode()); + result = 31 * result + (this.sku == null ? 0 : this.sku.hashCode()); + result = 31 * result + (this.tags == null ? 0 : this.tags.hashCode()); + result = 31 * result + (this.unitPrice == null ? 0 : this.unitPrice.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Product {\n"); sb.append(" antifraudInfo: ").append(antifraudInfo).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" quantity: ").append(quantity).append("\n"); - sb.append(" sku: ").append(sku).append("\n"); - sb.append(" tags: ").append(tags).append("\n"); - sb.append(" unitPrice: ").append(unitPrice).append("\n"); - sb.append("}\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" quantity: ").append(quantity).append("\n"); +sb.append(" sku: ").append(sku).append("\n"); +sb.append(" tags: ").append(tags).append("\n"); +sb.append(" unitPrice: ").append(unitPrice).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ProductDataResponse.java b/src/main/java/io/conekta/model/ProductDataResponse.java index bd58de8..09f7447 100644 --- a/src/main/java/io/conekta/model/ProductDataResponse.java +++ b/src/main/java/io/conekta/model/ProductDataResponse.java @@ -5,17 +5,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ProductDataResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("antifraud_info") private Map antifraudInfo = null; @SerializedName("brand") @@ -42,59 +39,65 @@ public class ProductDataResponse { private String parentId = null; /** + * + * **/ @ApiModelProperty(value = "") public Map getAntifraudInfo() { return antifraudInfo; } + public void setAntifraudInfo(Map antifraudInfo) { this.antifraudInfo = antifraudInfo; } - /** * The brand of the item. + * **/ @ApiModelProperty(value = "The brand of the item.") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** * Short description of the item + * **/ @ApiModelProperty(value = "Short description of the item") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** * It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. + * **/ @ApiModelProperty(value = "It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters.") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * The name of the item. It will be displayed in the order. + * **/ @ApiModelProperty(required = true, value = "The name of the item. It will be displayed in the order.") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * The quantity of the item in the order. * minimum: 1 @@ -103,32 +106,34 @@ public void setName(String name) { public Integer getQuantity() { return quantity; } + public void setQuantity(Integer quantity) { this.quantity = quantity; } - /** * The stock keeping unit for the item. It is used to identify the item in the order. + * **/ @ApiModelProperty(value = "The stock keeping unit for the item. It is used to identify the item in the order.") public String getSku() { return sku; } + public void setSku(String sku) { this.sku = sku; } - /** * List of tags for the item. It is used to identify the item in the order. + * **/ @ApiModelProperty(value = "List of tags for the item. It is used to identify the item in the order.") public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } - /** * The price of the item in cents. * minimum: 0 @@ -137,41 +142,47 @@ public void setTags(List tags) { public Integer getUnitPrice() { return unitPrice; } + public void setUnitPrice(Integer unitPrice) { this.unitPrice = unitPrice; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -193,44 +204,45 @@ public boolean equals(Object o) { (this.id == null ? productDataResponse.id == null : this.id.equals(productDataResponse.id)) && (this._object == null ? productDataResponse._object == null : this._object.equals(productDataResponse._object)) && (this.parentId == null ? productDataResponse.parentId == null : this.parentId.equals(productDataResponse.parentId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.antifraudInfo == null ? 0: this.antifraudInfo.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.quantity == null ? 0: this.quantity.hashCode()); - result = 31 * result + (this.sku == null ? 0: this.sku.hashCode()); - result = 31 * result + (this.tags == null ? 0: this.tags.hashCode()); - result = 31 * result + (this.unitPrice == null ? 0: this.unitPrice.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); + result = 31 * result + (this.antifraudInfo == null ? 0 : this.antifraudInfo.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.quantity == null ? 0 : this.quantity.hashCode()); + result = 31 * result + (this.sku == null ? 0 : this.sku.hashCode()); + result = 31 * result + (this.tags == null ? 0 : this.tags.hashCode()); + result = 31 * result + (this.unitPrice == null ? 0 : this.unitPrice.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProductDataResponse {\n"); sb.append(" antifraudInfo: ").append(antifraudInfo).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" quantity: ").append(quantity).append("\n"); - sb.append(" sku: ").append(sku).append("\n"); - sb.append(" tags: ").append(tags).append("\n"); - sb.append(" unitPrice: ").append(unitPrice).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append("}\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" quantity: ").append(quantity).append("\n"); +sb.append(" sku: ").append(sku).append("\n"); +sb.append(" tags: ").append(tags).append("\n"); +sb.append(" unitPrice: ").append(unitPrice).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ProductOrderResponse.java b/src/main/java/io/conekta/model/ProductOrderResponse.java index ed83c40..842a3ac 100644 --- a/src/main/java/io/conekta/model/ProductOrderResponse.java +++ b/src/main/java/io/conekta/model/ProductOrderResponse.java @@ -5,17 +5,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ProductOrderResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("antifraud_info") private Map antifraudInfo = null; @SerializedName("brand") @@ -42,59 +39,65 @@ public class ProductOrderResponse { private String parentId = null; /** + * + * **/ @ApiModelProperty(value = "") public Map getAntifraudInfo() { return antifraudInfo; } + public void setAntifraudInfo(Map antifraudInfo) { this.antifraudInfo = antifraudInfo; } - /** * The brand of the item. + * **/ @ApiModelProperty(value = "The brand of the item.") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** * Short description of the item + * **/ @ApiModelProperty(value = "Short description of the item") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** * It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. + * **/ @ApiModelProperty(value = "It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters.") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * The name of the item. It will be displayed in the order. + * **/ @ApiModelProperty(required = true, value = "The name of the item. It will be displayed in the order.") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * The quantity of the item in the order. * minimum: 1 @@ -103,32 +106,34 @@ public void setName(String name) { public Integer getQuantity() { return quantity; } + public void setQuantity(Integer quantity) { this.quantity = quantity; } - /** * The stock keeping unit for the item. It is used to identify the item in the order. + * **/ @ApiModelProperty(value = "The stock keeping unit for the item. It is used to identify the item in the order.") public String getSku() { return sku; } + public void setSku(String sku) { this.sku = sku; } - /** * List of tags for the item. It is used to identify the item in the order. + * **/ @ApiModelProperty(value = "List of tags for the item. It is used to identify the item in the order.") public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } - /** * The price of the item in cents. * minimum: 0 @@ -137,41 +142,47 @@ public void setTags(List tags) { public Integer getUnitPrice() { return unitPrice; } + public void setUnitPrice(Integer unitPrice) { this.unitPrice = unitPrice; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -193,44 +204,45 @@ public boolean equals(Object o) { (this.id == null ? productOrderResponse.id == null : this.id.equals(productOrderResponse.id)) && (this._object == null ? productOrderResponse._object == null : this._object.equals(productOrderResponse._object)) && (this.parentId == null ? productOrderResponse.parentId == null : this.parentId.equals(productOrderResponse.parentId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.antifraudInfo == null ? 0: this.antifraudInfo.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.quantity == null ? 0: this.quantity.hashCode()); - result = 31 * result + (this.sku == null ? 0: this.sku.hashCode()); - result = 31 * result + (this.tags == null ? 0: this.tags.hashCode()); - result = 31 * result + (this.unitPrice == null ? 0: this.unitPrice.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); + result = 31 * result + (this.antifraudInfo == null ? 0 : this.antifraudInfo.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.quantity == null ? 0 : this.quantity.hashCode()); + result = 31 * result + (this.sku == null ? 0 : this.sku.hashCode()); + result = 31 * result + (this.tags == null ? 0 : this.tags.hashCode()); + result = 31 * result + (this.unitPrice == null ? 0 : this.unitPrice.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProductOrderResponse {\n"); sb.append(" antifraudInfo: ").append(antifraudInfo).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" quantity: ").append(quantity).append("\n"); - sb.append(" sku: ").append(sku).append("\n"); - sb.append(" tags: ").append(tags).append("\n"); - sb.append(" unitPrice: ").append(unitPrice).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append("}\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" quantity: ").append(quantity).append("\n"); +sb.append(" sku: ").append(sku).append("\n"); +sb.append(" tags: ").append(tags).append("\n"); +sb.append(" unitPrice: ").append(unitPrice).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/RiskRulesData.java b/src/main/java/io/conekta/model/RiskRulesData.java index 70cd53a..64fb84b 100644 --- a/src/main/java/io/conekta/model/RiskRulesData.java +++ b/src/main/java/io/conekta/model/RiskRulesData.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class RiskRulesData { - + private static final String MXN = "MXN"; - - + @SerializedName("id") private String id = null; @SerializedName("field") @@ -30,82 +27,89 @@ public class RiskRulesData { /** * rule id + * **/ @ApiModelProperty(value = "rule id") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * field to be used for the rule + * **/ @ApiModelProperty(value = "field to be used for the rule") public String getField() { return field; } + public void setField(String field) { this.field = field; } - /** * rule creation date + * **/ @ApiModelProperty(value = "rule creation date") public String getCreatedAt() { return createdAt; } + public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } - /** * value to be used for the rule + * **/ @ApiModelProperty(value = "value to be used for the rule") public String getValue() { return value; } + public void setValue(String value) { this.value = value; } - /** * if the rule is global + * **/ @ApiModelProperty(value = "if the rule is global") public Boolean getIsGlobal() { return isGlobal; } + public void setIsGlobal(Boolean isGlobal) { this.isGlobal = isGlobal; } - /** * if the rule is test + * **/ @ApiModelProperty(value = "if the rule is test") public Boolean getIsTest() { return isTest; } + public void setIsTest(Boolean isTest) { this.isTest = isTest; } - /** * description of the rule + * **/ @ApiModelProperty(value = "description of the rule") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - @Override public boolean equals(Object o) { if (this == o) { @@ -122,34 +126,35 @@ public boolean equals(Object o) { (this.isGlobal == null ? riskRulesData.isGlobal == null : this.isGlobal.equals(riskRulesData.isGlobal)) && (this.isTest == null ? riskRulesData.isTest == null : this.isTest.equals(riskRulesData.isTest)) && (this.description == null ? riskRulesData.description == null : this.description.equals(riskRulesData.description)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.field == null ? 0: this.field.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.value == null ? 0: this.value.hashCode()); - result = 31 * result + (this.isGlobal == null ? 0: this.isGlobal.hashCode()); - result = 31 * result + (this.isTest == null ? 0: this.isTest.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.field == null ? 0 : this.field.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.value == null ? 0 : this.value.hashCode()); + result = 31 * result + (this.isGlobal == null ? 0 : this.isGlobal.hashCode()); + result = 31 * result + (this.isTest == null ? 0 : this.isTest.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RiskRulesData {\n"); sb.append(" id: ").append(id).append("\n"); - sb.append(" field: ").append(field).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" value: ").append(value).append("\n"); - sb.append(" isGlobal: ").append(isGlobal).append("\n"); - sb.append(" isTest: ").append(isTest).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append("}\n"); +sb.append(" field: ").append(field).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" value: ").append(value).append("\n"); +sb.append(" isGlobal: ").append(isGlobal).append("\n"); +sb.append(" isTest: ").append(isTest).append("\n"); +sb.append(" description: ").append(description).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/RiskRulesList.java b/src/main/java/io/conekta/model/RiskRulesList.java index 7fb6520..d492cf3 100644 --- a/src/main/java/io/conekta/model/RiskRulesList.java +++ b/src/main/java/io/conekta/model/RiskRulesList.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class RiskRulesList { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class RiskRulesList { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? riskRulesList.nextPageUrl == null : this.nextPageUrl.equals(riskRulesList.nextPageUrl)) && (this.previousPageUrl == null ? riskRulesList.previousPageUrl == null : this.previousPageUrl.equals(riskRulesList.previousPageUrl)) && (this.data == null ? riskRulesList.data == null : this.data.equals(riskRulesList.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RiskRulesList {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ShippingOrderResponse.java b/src/main/java/io/conekta/model/ShippingOrderResponse.java index 441b737..89b4567 100644 --- a/src/main/java/io/conekta/model/ShippingOrderResponse.java +++ b/src/main/java/io/conekta/model/ShippingOrderResponse.java @@ -4,17 +4,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ShippingOrderResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("carrier") @@ -40,85 +37,95 @@ public class ShippingOrderResponse { public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * Carrier name for the shipment + * **/ @ApiModelProperty(value = "Carrier name for the shipment") public String getCarrier() { return carrier; } + public void setCarrier(String carrier) { this.carrier = carrier; } - /** * Tracking number can be used to track the shipment + * **/ @ApiModelProperty(value = "Tracking number can be used to track the shipment") public String getTrackingNumber() { return trackingNumber; } + public void setTrackingNumber(String trackingNumber) { this.trackingNumber = trackingNumber; } - /** * Method of shipment + * **/ @ApiModelProperty(value = "Method of shipment") public String getMethod() { return method; } + public void setMethod(String method) { this.method = method; } - /** * Hash where the user can send additional information for each 'shipping'. + * **/ @ApiModelProperty(value = "Hash where the user can send additional information for each 'shipping'.") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -136,36 +143,37 @@ public boolean equals(Object o) { (this.id == null ? shippingOrderResponse.id == null : this.id.equals(shippingOrderResponse.id)) && (this._object == null ? shippingOrderResponse._object == null : this._object.equals(shippingOrderResponse._object)) && (this.parentId == null ? shippingOrderResponse.parentId == null : this.parentId.equals(shippingOrderResponse.parentId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.carrier == null ? 0: this.carrier.hashCode()); - result = 31 * result + (this.trackingNumber == null ? 0: this.trackingNumber.hashCode()); - result = 31 * result + (this.method == null ? 0: this.method.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.carrier == null ? 0 : this.carrier.hashCode()); + result = 31 * result + (this.trackingNumber == null ? 0 : this.trackingNumber.hashCode()); + result = 31 * result + (this.method == null ? 0 : this.method.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShippingOrderResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" carrier: ").append(carrier).append("\n"); - sb.append(" trackingNumber: ").append(trackingNumber).append("\n"); - sb.append(" method: ").append(method).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append("}\n"); +sb.append(" carrier: ").append(carrier).append("\n"); +sb.append(" trackingNumber: ").append(trackingNumber).append("\n"); +sb.append(" method: ").append(method).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/ShippingRequest.java b/src/main/java/io/conekta/model/ShippingRequest.java index 3538891..214ac6e 100644 --- a/src/main/java/io/conekta/model/ShippingRequest.java +++ b/src/main/java/io/conekta/model/ShippingRequest.java @@ -4,17 +4,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class ShippingRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("carrier") @@ -34,55 +31,59 @@ public class ShippingRequest { public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * Carrier name for the shipment + * **/ @ApiModelProperty(value = "Carrier name for the shipment") public String getCarrier() { return carrier; } + public void setCarrier(String carrier) { this.carrier = carrier; } - /** * Tracking number can be used to track the shipment + * **/ @ApiModelProperty(value = "Tracking number can be used to track the shipment") public String getTrackingNumber() { return trackingNumber; } + public void setTrackingNumber(String trackingNumber) { this.trackingNumber = trackingNumber; } - /** * Method of shipment + * **/ @ApiModelProperty(value = "Method of shipment") public String getMethod() { return method; } + public void setMethod(String method) { this.method = method; } - /** * Hash where the user can send additional information for each 'shipping'. + * **/ @ApiModelProperty(value = "Hash where the user can send additional information for each 'shipping'.") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - @Override public boolean equals(Object o) { if (this == o) { @@ -97,30 +98,31 @@ public boolean equals(Object o) { (this.trackingNumber == null ? shippingRequest.trackingNumber == null : this.trackingNumber.equals(shippingRequest.trackingNumber)) && (this.method == null ? shippingRequest.method == null : this.method.equals(shippingRequest.method)) && (this.metadata == null ? shippingRequest.metadata == null : this.metadata.equals(shippingRequest.metadata)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.carrier == null ? 0: this.carrier.hashCode()); - result = 31 * result + (this.trackingNumber == null ? 0: this.trackingNumber.hashCode()); - result = 31 * result + (this.method == null ? 0: this.method.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.carrier == null ? 0 : this.carrier.hashCode()); + result = 31 * result + (this.trackingNumber == null ? 0 : this.trackingNumber.hashCode()); + result = 31 * result + (this.method == null ? 0 : this.method.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShippingRequest {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" carrier: ").append(carrier).append("\n"); - sb.append(" trackingNumber: ").append(trackingNumber).append("\n"); - sb.append(" method: ").append(method).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append("}\n"); +sb.append(" carrier: ").append(carrier).append("\n"); +sb.append(" trackingNumber: ").append(trackingNumber).append("\n"); +sb.append(" method: ").append(method).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/SmsCheckoutRequest.java b/src/main/java/io/conekta/model/SmsCheckoutRequest.java index d653874..a5a63a3 100644 --- a/src/main/java/io/conekta/model/SmsCheckoutRequest.java +++ b/src/main/java/io/conekta/model/SmsCheckoutRequest.java @@ -2,31 +2,30 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class SmsCheckoutRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("phonenumber") private String phonenumber = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getPhonenumber() { return phonenumber; } + public void setPhonenumber(String phonenumber) { this.phonenumber = phonenumber; } - @Override public boolean equals(Object o) { if (this == o) { @@ -37,22 +36,23 @@ public boolean equals(Object o) { } SmsCheckoutRequest smsCheckoutRequest = (SmsCheckoutRequest) o; return (this.phonenumber == null ? smsCheckoutRequest.phonenumber == null : this.phonenumber.equals(smsCheckoutRequest.phonenumber)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.phonenumber == null ? 0: this.phonenumber.hashCode()); + result = 31 * result + (this.phonenumber == null ? 0 : this.phonenumber.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SmsCheckoutRequest {\n"); sb.append(" phonenumber: ").append(phonenumber).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/SubscriptionEventsResponse.java b/src/main/java/io/conekta/model/SubscriptionEventsResponse.java index cffcd50..215583f 100644 --- a/src/main/java/io/conekta/model/SubscriptionEventsResponse.java +++ b/src/main/java/io/conekta/model/SubscriptionEventsResponse.java @@ -4,17 +4,14 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class SubscriptionEventsResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("has_more") private Boolean hasMore = null; @SerializedName("object") @@ -28,59 +25,65 @@ public class SubscriptionEventsResponse { /** * Indicates if there are more pages to be requested + * **/ @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") public Boolean getHasMore() { return hasMore; } + public void setHasMore(Boolean hasMore) { this.hasMore = hasMore; } - /** * Object type, in this case is list + * **/ @ApiModelProperty(required = true, value = "Object type, in this case is list") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * URL of the next page. + * **/ @ApiModelProperty(value = "URL of the next page.") public String getNextPageUrl() { return nextPageUrl; } + public void setNextPageUrl(String nextPageUrl) { this.nextPageUrl = nextPageUrl; } - /** * Url of the previous page. + * **/ @ApiModelProperty(value = "Url of the previous page.") public String getPreviousPageUrl() { return previousPageUrl; } + public void setPreviousPageUrl(String previousPageUrl) { this.previousPageUrl = previousPageUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public List getData() { return data; } + public void setData(List data) { this.data = data; } - @Override public boolean equals(Object o) { if (this == o) { @@ -95,30 +98,31 @@ public boolean equals(Object o) { (this.nextPageUrl == null ? subscriptionEventsResponse.nextPageUrl == null : this.nextPageUrl.equals(subscriptionEventsResponse.nextPageUrl)) && (this.previousPageUrl == null ? subscriptionEventsResponse.previousPageUrl == null : this.previousPageUrl.equals(subscriptionEventsResponse.previousPageUrl)) && (this.data == null ? subscriptionEventsResponse.data == null : this.data.equals(subscriptionEventsResponse.data)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.hasMore == null ? 0: this.hasMore.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.nextPageUrl == null ? 0: this.nextPageUrl.hashCode()); - result = 31 * result + (this.previousPageUrl == null ? 0: this.previousPageUrl.hashCode()); - result = 31 * result + (this.data == null ? 0: this.data.hashCode()); + result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); + result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); + result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SubscriptionEventsResponse {\n"); sb.append(" hasMore: ").append(hasMore).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); - sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); - sb.append(" data: ").append(data).append("\n"); - sb.append("}\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); +sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); +sb.append(" data: ").append(data).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/SubscriptionRequest.java b/src/main/java/io/conekta/model/SubscriptionRequest.java index 496e8cc..62c726c 100644 --- a/src/main/java/io/conekta/model/SubscriptionRequest.java +++ b/src/main/java/io/conekta/model/SubscriptionRequest.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * It is a parameter that allows to identify in the response, the detailed content of the plans to which the client has subscribed **/ @ApiModel(description = "It is a parameter that allows to identify in the response, the detailed content of the plans to which the client has subscribed") public class SubscriptionRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("plan_id") private String planId = null; @SerializedName("card_id") @@ -24,36 +21,42 @@ public class SubscriptionRequest { private Integer trialEnd = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getPlanId() { return planId; } + public void setPlanId(String planId) { this.planId = planId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCardId() { return cardId; } + public void setCardId(String cardId) { this.cardId = cardId; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getTrialEnd() { return trialEnd; } + public void setTrialEnd(Integer trialEnd) { this.trialEnd = trialEnd; } - @Override public boolean equals(Object o) { if (this == o) { @@ -66,26 +69,27 @@ public boolean equals(Object o) { return (this.planId == null ? subscriptionRequest.planId == null : this.planId.equals(subscriptionRequest.planId)) && (this.cardId == null ? subscriptionRequest.cardId == null : this.cardId.equals(subscriptionRequest.cardId)) && (this.trialEnd == null ? subscriptionRequest.trialEnd == null : this.trialEnd.equals(subscriptionRequest.trialEnd)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.planId == null ? 0: this.planId.hashCode()); - result = 31 * result + (this.cardId == null ? 0: this.cardId.hashCode()); - result = 31 * result + (this.trialEnd == null ? 0: this.trialEnd.hashCode()); + result = 31 * result + (this.planId == null ? 0 : this.planId.hashCode()); + result = 31 * result + (this.cardId == null ? 0 : this.cardId.hashCode()); + result = 31 * result + (this.trialEnd == null ? 0 : this.trialEnd.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SubscriptionRequest {\n"); sb.append(" planId: ").append(planId).append("\n"); - sb.append(" cardId: ").append(cardId).append("\n"); - sb.append(" trialEnd: ").append(trialEnd).append("\n"); - sb.append("}\n"); +sb.append(" cardId: ").append(cardId).append("\n"); +sb.append(" trialEnd: ").append(trialEnd).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/SubscriptionResponse.java b/src/main/java/io/conekta/model/SubscriptionResponse.java index 2cfc11a..c53868b 100644 --- a/src/main/java/io/conekta/model/SubscriptionResponse.java +++ b/src/main/java/io/conekta/model/SubscriptionResponse.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * subscription model **/ @ApiModel(description = "subscription model") public class SubscriptionResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("billing_cycle_start") private Long billingCycleStart = null; @SerializedName("billing_cycle_end") @@ -54,187 +51,222 @@ public class SubscriptionResponse { private Long trialEnd = null; /** + * + * **/ @ApiModelProperty(value = "") public Long getBillingCycleStart() { return billingCycleStart; } + public void setBillingCycleStart(Long billingCycleStart) { this.billingCycleStart = billingCycleStart; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getBillingCycleEnd() { return billingCycleEnd; } + public void setBillingCycleEnd(Long billingCycleEnd) { this.billingCycleEnd = billingCycleEnd; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getCanceledAt() { return canceledAt; } + public void setCanceledAt(Long canceledAt) { this.canceledAt = canceledAt; } - /** * Reason for cancellation. This field appears when the subscription status is 'canceled'. + * **/ @ApiModelProperty(value = "Reason for cancellation. This field appears when the subscription status is 'canceled'.") public String getCanceledReason() { return canceledReason; } + public void setCanceledReason(String canceledReason) { this.canceledReason = canceledReason; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCardId() { return cardId; } + public void setCardId(String cardId) { this.cardId = cardId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getChargeId() { return chargeId; } + public void setChargeId(String chargeId) { this.chargeId = chargeId; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerCustomReference() { return customerCustomReference; } + public void setCustomerCustomReference(String customerCustomReference) { this.customerCustomReference = customerCustomReference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCustomerId() { return customerId; } + public void setCustomerId(String customerId) { this.customerId = customerId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public String getLastBillingCycleOrderId() { return lastBillingCycleOrderId; } + public void setLastBillingCycleOrderId(String lastBillingCycleOrderId) { this.lastBillingCycleOrderId = lastBillingCycleOrderId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getPausedAt() { return pausedAt; } + public void setPausedAt(Long pausedAt) { this.pausedAt = pausedAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPlanId() { return planId; } + public void setPlanId(String planId) { this.planId = planId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getSubscriptionStart() { return subscriptionStart; } + public void setSubscriptionStart(Integer subscriptionStart) { this.subscriptionStart = subscriptionStart; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getTrialStart() { return trialStart; } + public void setTrialStart(Long trialStart) { this.trialStart = trialStart; } - /** + * + * **/ @ApiModelProperty(value = "") public Long getTrialEnd() { return trialEnd; } + public void setTrialEnd(Long trialEnd) { this.trialEnd = trialEnd; } - @Override public boolean equals(Object o) { if (this == o) { @@ -262,56 +294,57 @@ public boolean equals(Object o) { (this.subscriptionStart == null ? subscriptionResponse.subscriptionStart == null : this.subscriptionStart.equals(subscriptionResponse.subscriptionStart)) && (this.trialStart == null ? subscriptionResponse.trialStart == null : this.trialStart.equals(subscriptionResponse.trialStart)) && (this.trialEnd == null ? subscriptionResponse.trialEnd == null : this.trialEnd.equals(subscriptionResponse.trialEnd)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.billingCycleStart == null ? 0: this.billingCycleStart.hashCode()); - result = 31 * result + (this.billingCycleEnd == null ? 0: this.billingCycleEnd.hashCode()); - result = 31 * result + (this.canceledAt == null ? 0: this.canceledAt.hashCode()); - result = 31 * result + (this.canceledReason == null ? 0: this.canceledReason.hashCode()); - result = 31 * result + (this.cardId == null ? 0: this.cardId.hashCode()); - result = 31 * result + (this.chargeId == null ? 0: this.chargeId.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.customerCustomReference == null ? 0: this.customerCustomReference.hashCode()); - result = 31 * result + (this.customerId == null ? 0: this.customerId.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.lastBillingCycleOrderId == null ? 0: this.lastBillingCycleOrderId.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.pausedAt == null ? 0: this.pausedAt.hashCode()); - result = 31 * result + (this.planId == null ? 0: this.planId.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); - result = 31 * result + (this.subscriptionStart == null ? 0: this.subscriptionStart.hashCode()); - result = 31 * result + (this.trialStart == null ? 0: this.trialStart.hashCode()); - result = 31 * result + (this.trialEnd == null ? 0: this.trialEnd.hashCode()); + result = 31 * result + (this.billingCycleStart == null ? 0 : this.billingCycleStart.hashCode()); + result = 31 * result + (this.billingCycleEnd == null ? 0 : this.billingCycleEnd.hashCode()); + result = 31 * result + (this.canceledAt == null ? 0 : this.canceledAt.hashCode()); + result = 31 * result + (this.canceledReason == null ? 0 : this.canceledReason.hashCode()); + result = 31 * result + (this.cardId == null ? 0 : this.cardId.hashCode()); + result = 31 * result + (this.chargeId == null ? 0 : this.chargeId.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.customerCustomReference == null ? 0 : this.customerCustomReference.hashCode()); + result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.lastBillingCycleOrderId == null ? 0 : this.lastBillingCycleOrderId.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.pausedAt == null ? 0 : this.pausedAt.hashCode()); + result = 31 * result + (this.planId == null ? 0 : this.planId.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); + result = 31 * result + (this.subscriptionStart == null ? 0 : this.subscriptionStart.hashCode()); + result = 31 * result + (this.trialStart == null ? 0 : this.trialStart.hashCode()); + result = 31 * result + (this.trialEnd == null ? 0 : this.trialEnd.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SubscriptionResponse {\n"); sb.append(" billingCycleStart: ").append(billingCycleStart).append("\n"); - sb.append(" billingCycleEnd: ").append(billingCycleEnd).append("\n"); - sb.append(" canceledAt: ").append(canceledAt).append("\n"); - sb.append(" canceledReason: ").append(canceledReason).append("\n"); - sb.append(" cardId: ").append(cardId).append("\n"); - sb.append(" chargeId: ").append(chargeId).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" customerCustomReference: ").append(customerCustomReference).append("\n"); - sb.append(" customerId: ").append(customerId).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" lastBillingCycleOrderId: ").append(lastBillingCycleOrderId).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" pausedAt: ").append(pausedAt).append("\n"); - sb.append(" planId: ").append(planId).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append(" subscriptionStart: ").append(subscriptionStart).append("\n"); - sb.append(" trialStart: ").append(trialStart).append("\n"); - sb.append(" trialEnd: ").append(trialEnd).append("\n"); - sb.append("}\n"); +sb.append(" billingCycleEnd: ").append(billingCycleEnd).append("\n"); +sb.append(" canceledAt: ").append(canceledAt).append("\n"); +sb.append(" canceledReason: ").append(canceledReason).append("\n"); +sb.append(" cardId: ").append(cardId).append("\n"); +sb.append(" chargeId: ").append(chargeId).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" customerCustomReference: ").append(customerCustomReference).append("\n"); +sb.append(" customerId: ").append(customerId).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" lastBillingCycleOrderId: ").append(lastBillingCycleOrderId).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" pausedAt: ").append(pausedAt).append("\n"); +sb.append(" planId: ").append(planId).append("\n"); +sb.append(" status: ").append(status).append("\n"); +sb.append(" subscriptionStart: ").append(subscriptionStart).append("\n"); +sb.append(" trialStart: ").append(trialStart).append("\n"); +sb.append(" trialEnd: ").append(trialEnd).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/SubscriptionUpdateRequest.java b/src/main/java/io/conekta/model/SubscriptionUpdateRequest.java index 33b7171..4c009ec 100644 --- a/src/main/java/io/conekta/model/SubscriptionUpdateRequest.java +++ b/src/main/java/io/conekta/model/SubscriptionUpdateRequest.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * You can modify the subscription to change the plan used by your customers. **/ @ApiModel(description = "You can modify the subscription to change the plan used by your customers.") public class SubscriptionUpdateRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("plan_id") private String planId = null; @SerializedName("card_id") @@ -24,36 +21,42 @@ public class SubscriptionUpdateRequest { private Integer trialEnd = null; /** + * + * **/ @ApiModelProperty(value = "") public String getPlanId() { return planId; } + public void setPlanId(String planId) { this.planId = planId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCardId() { return cardId; } + public void setCardId(String cardId) { this.cardId = cardId; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getTrialEnd() { return trialEnd; } + public void setTrialEnd(Integer trialEnd) { this.trialEnd = trialEnd; } - @Override public boolean equals(Object o) { if (this == o) { @@ -66,26 +69,27 @@ public boolean equals(Object o) { return (this.planId == null ? subscriptionUpdateRequest.planId == null : this.planId.equals(subscriptionUpdateRequest.planId)) && (this.cardId == null ? subscriptionUpdateRequest.cardId == null : this.cardId.equals(subscriptionUpdateRequest.cardId)) && (this.trialEnd == null ? subscriptionUpdateRequest.trialEnd == null : this.trialEnd.equals(subscriptionUpdateRequest.trialEnd)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.planId == null ? 0: this.planId.hashCode()); - result = 31 * result + (this.cardId == null ? 0: this.cardId.hashCode()); - result = 31 * result + (this.trialEnd == null ? 0: this.trialEnd.hashCode()); + result = 31 * result + (this.planId == null ? 0 : this.planId.hashCode()); + result = 31 * result + (this.cardId == null ? 0 : this.cardId.hashCode()); + result = 31 * result + (this.trialEnd == null ? 0 : this.trialEnd.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SubscriptionUpdateRequest {\n"); sb.append(" planId: ").append(planId).append("\n"); - sb.append(" cardId: ").append(cardId).append("\n"); - sb.append(" trialEnd: ").append(trialEnd).append("\n"); - sb.append("}\n"); +sb.append(" cardId: ").append(cardId).append("\n"); +sb.append(" trialEnd: ").append(trialEnd).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/Token.java b/src/main/java/io/conekta/model/Token.java index 076052f..bbee3f1 100644 --- a/src/main/java/io/conekta/model/Token.java +++ b/src/main/java/io/conekta/model/Token.java @@ -4,46 +4,47 @@ import io.conekta.model.TokenCheckout; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * a token **/ @ApiModel(description = "a token") public class Token { - + private static final String MXN = "MXN"; - - + @SerializedName("card") private TokenCard card = null; @SerializedName("checkout") private TokenCheckout checkout = null; /** + * + * **/ @ApiModelProperty(value = "") public TokenCard getCard() { return card; } + public void setCard(TokenCard card) { this.card = card; } - /** + * + * **/ @ApiModelProperty(value = "") public TokenCheckout getCheckout() { return checkout; } + public void setCheckout(TokenCheckout checkout) { this.checkout = checkout; } - @Override public boolean equals(Object o) { if (this == o) { @@ -55,24 +56,25 @@ public boolean equals(Object o) { Token token = (Token) o; return (this.card == null ? token.card == null : this.card.equals(token.card)) && (this.checkout == null ? token.checkout == null : this.checkout.equals(token.checkout)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.card == null ? 0: this.card.hashCode()); - result = 31 * result + (this.checkout == null ? 0: this.checkout.hashCode()); + result = 31 * result + (this.card == null ? 0 : this.card.hashCode()); + result = 31 * result + (this.checkout == null ? 0 : this.checkout.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Token {\n"); sb.append(" card: ").append(card).append("\n"); - sb.append(" checkout: ").append(checkout).append("\n"); - sb.append("}\n"); +sb.append(" checkout: ").append(checkout).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/TokenCard.java b/src/main/java/io/conekta/model/TokenCard.java index 92d9256..bd72781 100644 --- a/src/main/java/io/conekta/model/TokenCard.java +++ b/src/main/java/io/conekta/model/TokenCard.java @@ -2,19 +2,15 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class TokenCard { - + private static final String MXN = "MXN"; - - + @SerializedName("cvc") - @JsonAdapter(EncryptedTypeAdapter.class) private String cvc = null; @SerializedName("device_fingerprint") private String deviceFingerprint = null; @@ -25,76 +21,81 @@ public class TokenCard { @SerializedName("name") private String name = null; @SerializedName("number") - @JsonAdapter(EncryptedTypeAdapter.class) private String number = null; /** * It is a value that allows identifying the security code of the card. + * **/ @ApiModelProperty(required = true, value = "It is a value that allows identifying the security code of the card.") public String getCvc() { return cvc; } + public void setCvc(String cvc) { - this.cvc = cvc; + this.cvc = new EncryptedTypeAdapter().encryptValue(cvc); } - /** * It is a value that allows identifying the device fingerprint. + * **/ @ApiModelProperty(value = "It is a value that allows identifying the device fingerprint.") public String getDeviceFingerprint() { return deviceFingerprint; } + public void setDeviceFingerprint(String deviceFingerprint) { this.deviceFingerprint = deviceFingerprint; } - /** * It is a value that allows identifying the expiration month of the card. + * **/ @ApiModelProperty(required = true, value = "It is a value that allows identifying the expiration month of the card.") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** * It is a value that allows identifying the expiration year of the card. + * **/ @ApiModelProperty(required = true, value = "It is a value that allows identifying the expiration year of the card.") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** * It is a value that allows identifying the name of the cardholder. + * **/ @ApiModelProperty(required = true, value = "It is a value that allows identifying the name of the cardholder.") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * It is a value that allows identifying the number of the card. + * **/ @ApiModelProperty(required = true, value = "It is a value that allows identifying the number of the card.") public String getNumber() { return number; } + public void setNumber(String number) { - this.number = number; + this.number = new EncryptedTypeAdapter().encryptValue(number); } - @Override public boolean equals(Object o) { if (this == o) { @@ -110,32 +111,33 @@ public boolean equals(Object o) { (this.expYear == null ? tokenCard.expYear == null : this.expYear.equals(tokenCard.expYear)) && (this.name == null ? tokenCard.name == null : this.name.equals(tokenCard.name)) && (this.number == null ? tokenCard.number == null : this.number.equals(tokenCard.number)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.cvc == null ? 0: this.cvc.hashCode()); - result = 31 * result + (this.deviceFingerprint == null ? 0: this.deviceFingerprint.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.number == null ? 0: this.number.hashCode()); + result = 31 * result + (this.cvc == null ? 0 : this.cvc.hashCode()); + result = 31 * result + (this.deviceFingerprint == null ? 0 : this.deviceFingerprint.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.number == null ? 0 : this.number.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TokenCard {\n"); sb.append(" cvc: ").append(cvc).append("\n"); - sb.append(" deviceFingerprint: ").append(deviceFingerprint).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" number: ").append(number).append("\n"); - sb.append("}\n"); +sb.append(" deviceFingerprint: ").append(deviceFingerprint).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" number: ").append(number).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/TokenCheckout.java b/src/main/java/io/conekta/model/TokenCheckout.java index 47cad2a..3c87c2a 100644 --- a/src/main/java/io/conekta/model/TokenCheckout.java +++ b/src/main/java/io/conekta/model/TokenCheckout.java @@ -2,32 +2,30 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class TokenCheckout { - + private static final String MXN = "MXN"; - - + @SerializedName("returns_control_on") private String returnsControlOn = null; /** * It is a value that allows identifying the returns control on. + * **/ @ApiModelProperty(value = "It is a value that allows identifying the returns control on.") public String getReturnsControlOn() { return returnsControlOn; } + public void setReturnsControlOn(String returnsControlOn) { this.returnsControlOn = returnsControlOn; } - @Override public boolean equals(Object o) { if (this == o) { @@ -38,22 +36,23 @@ public boolean equals(Object o) { } TokenCheckout tokenCheckout = (TokenCheckout) o; return (this.returnsControlOn == null ? tokenCheckout.returnsControlOn == null : this.returnsControlOn.equals(tokenCheckout.returnsControlOn)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.returnsControlOn == null ? 0: this.returnsControlOn.hashCode()); + result = 31 * result + (this.returnsControlOn == null ? 0 : this.returnsControlOn.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TokenCheckout {\n"); sb.append(" returnsControlOn: ").append(returnsControlOn).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/TokenResponse.java b/src/main/java/io/conekta/model/TokenResponse.java index 845ddc0..a5c6f68 100644 --- a/src/main/java/io/conekta/model/TokenResponse.java +++ b/src/main/java/io/conekta/model/TokenResponse.java @@ -3,20 +3,17 @@ import io.conekta.model.TokenResponseCheckout; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * token response **/ @ApiModel(description = "token response") public class TokenResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("checkout") private TokenResponseCheckout checkout = null; @SerializedName("id") @@ -29,60 +26,66 @@ public class TokenResponse { private Boolean used = null; /** + * + * **/ @ApiModelProperty(value = "") public TokenResponseCheckout getCheckout() { return checkout; } + public void setCheckout(TokenResponseCheckout checkout) { this.checkout = checkout; } - /** * Unique identifier for the token generated by Conekta. + * **/ @ApiModelProperty(required = true, value = "Unique identifier for the token generated by Conekta.") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Indicates whether the token is in live mode or test mode. + * **/ @ApiModelProperty(required = true, value = "Indicates whether the token is in live mode or test mode.") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * Indicates the type of object, in this case token + * **/ @ApiModelProperty(required = true, value = "Indicates the type of object, in this case token") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Indicates if the token has been used + * **/ @ApiModelProperty(required = true, value = "Indicates if the token has been used") public Boolean getUsed() { return used; } + public void setUsed(Boolean used) { this.used = used; } - @Override public boolean equals(Object o) { if (this == o) { @@ -97,30 +100,31 @@ public boolean equals(Object o) { (this.livemode == null ? tokenResponse.livemode == null : this.livemode.equals(tokenResponse.livemode)) && (this._object == null ? tokenResponse._object == null : this._object.equals(tokenResponse._object)) && (this.used == null ? tokenResponse.used == null : this.used.equals(tokenResponse.used)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.checkout == null ? 0: this.checkout.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.used == null ? 0: this.used.hashCode()); + result = 31 * result + (this.checkout == null ? 0 : this.checkout.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.used == null ? 0 : this.used.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TokenResponse {\n"); sb.append(" checkout: ").append(checkout).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" used: ").append(used).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" used: ").append(used).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/TokenResponseCheckout.java b/src/main/java/io/conekta/model/TokenResponseCheckout.java index ffcf129..c1bc435 100644 --- a/src/main/java/io/conekta/model/TokenResponseCheckout.java +++ b/src/main/java/io/conekta/model/TokenResponseCheckout.java @@ -5,17 +5,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class TokenResponseCheckout { - + private static final String MXN = "MXN"; - - + @SerializedName("allowed_payment_methods") private List allowedPaymentMethods = null; @SerializedName("can_not_expire") @@ -64,250 +61,282 @@ public class TokenResponseCheckout { private String type = null; /** + * + * **/ @ApiModelProperty(value = "") public List getAllowedPaymentMethods() { return allowedPaymentMethods; } + public void setAllowedPaymentMethods(List allowedPaymentMethods) { this.allowedPaymentMethods = allowedPaymentMethods; } - /** * Indicates if the checkout can not expire. + * **/ @ApiModelProperty(value = "Indicates if the checkout can not expire.") public Boolean getCanNotExpire() { return canNotExpire; } + public void setCanNotExpire(Boolean canNotExpire) { this.canNotExpire = canNotExpire; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getEmailsSent() { return emailsSent; } + public void setEmailsSent(Integer emailsSent) { this.emailsSent = emailsSent; } - /** + * + * **/ @ApiModelProperty(value = "") public List getExcludeCardNetworks() { return excludeCardNetworks; } + public void setExcludeCardNetworks(List excludeCardNetworks) { this.excludeCardNetworks = excludeCardNetworks; } - /** * Date and time when the checkout expires. + * **/ @ApiModelProperty(value = "Date and time when the checkout expires.") public Long getExpiresAt() { return expiresAt; } + public void setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; } - /** * URL to redirect the customer to if the payment process fails. + * **/ @ApiModelProperty(value = "URL to redirect the customer to if the payment process fails.") public String getFailureUrl() { return failureUrl; } + public void setFailureUrl(String failureUrl) { this.failureUrl = failureUrl; } - /** * Indicates if the checkout forces the 3DS flow. + * **/ @ApiModelProperty(value = "Indicates if the checkout forces the 3DS flow.") public Boolean getForce3dsFlow() { return force3dsFlow; } + public void setForce3dsFlow(Boolean force3dsFlow) { this.force3dsFlow = force3dsFlow; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * Indicates if the checkout allows monthly installments. + * **/ @ApiModelProperty(value = "Indicates if the checkout allows monthly installments.") public Boolean getMonthlyInstallmentsEnabled() { return monthlyInstallmentsEnabled; } + public void setMonthlyInstallmentsEnabled(Boolean monthlyInstallmentsEnabled) { this.monthlyInstallmentsEnabled = monthlyInstallmentsEnabled; } - /** * List of monthly installments options. + * **/ @ApiModelProperty(value = "List of monthly installments options.") public List getMonthlyInstallmentsOptions() { return monthlyInstallmentsOptions; } + public void setMonthlyInstallmentsOptions(List monthlyInstallmentsOptions) { this.monthlyInstallmentsOptions = monthlyInstallmentsOptions; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getNeedsShippingContact() { return needsShippingContact; } + public void setNeedsShippingContact(Boolean needsShippingContact) { this.needsShippingContact = needsShippingContact; } - /** * Indicates the type of object, in this case checkout. + * **/ @ApiModelProperty(value = "Indicates the type of object, in this case checkout.") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Indicates if the checkout allows on demand payments. + * **/ @ApiModelProperty(value = "Indicates if the checkout allows on demand payments.") public Boolean getOnDemandEnabled() { return onDemandEnabled; } + public void setOnDemandEnabled(Boolean onDemandEnabled) { this.onDemandEnabled = onDemandEnabled; } - /** * Number of payments that have been paid. + * **/ @ApiModelProperty(value = "Number of payments that have been paid.") public Integer getPaidPaymentsCount() { return paidPaymentsCount; } + public void setPaidPaymentsCount(Integer paidPaymentsCount) { this.paidPaymentsCount = paidPaymentsCount; } - /** * Indicates if the checkout is recurrent. + * **/ @ApiModelProperty(value = "Indicates if the checkout is recurrent.") public Boolean getRecurrent() { return recurrent; } + public void setRecurrent(Boolean recurrent) { this.recurrent = recurrent; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getSmsSent() { return smsSent; } + public void setSmsSent(Integer smsSent) { this.smsSent = smsSent; } - /** * Date and time when the checkout starts. + * **/ @ApiModelProperty(value = "Date and time when the checkout starts.") public Long getStartsAt() { return startsAt; } + public void setStartsAt(Long startsAt) { this.startsAt = startsAt; } - /** * Status of the checkout. + * **/ @ApiModelProperty(value = "Status of the checkout.") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - /** * URL to redirect the customer to after the payment process is completed. + * **/ @ApiModelProperty(value = "URL to redirect the customer to after the payment process is completed.") public String getSuccessUrl() { return successUrl; } + public void setSuccessUrl(String successUrl) { this.successUrl = successUrl; } - /** * Type of checkout. + * **/ @ApiModelProperty(value = "Type of checkout.") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -340,66 +369,67 @@ public boolean equals(Object o) { (this.status == null ? tokenResponseCheckout.status == null : this.status.equals(tokenResponseCheckout.status)) && (this.successUrl == null ? tokenResponseCheckout.successUrl == null : this.successUrl.equals(tokenResponseCheckout.successUrl)) && (this.type == null ? tokenResponseCheckout.type == null : this.type.equals(tokenResponseCheckout.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.allowedPaymentMethods == null ? 0: this.allowedPaymentMethods.hashCode()); - result = 31 * result + (this.canNotExpire == null ? 0: this.canNotExpire.hashCode()); - result = 31 * result + (this.emailsSent == null ? 0: this.emailsSent.hashCode()); - result = 31 * result + (this.excludeCardNetworks == null ? 0: this.excludeCardNetworks.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.failureUrl == null ? 0: this.failureUrl.hashCode()); - result = 31 * result + (this.force3dsFlow == null ? 0: this.force3dsFlow.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.monthlyInstallmentsEnabled == null ? 0: this.monthlyInstallmentsEnabled.hashCode()); - result = 31 * result + (this.monthlyInstallmentsOptions == null ? 0: this.monthlyInstallmentsOptions.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.needsShippingContact == null ? 0: this.needsShippingContact.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.onDemandEnabled == null ? 0: this.onDemandEnabled.hashCode()); - result = 31 * result + (this.paidPaymentsCount == null ? 0: this.paidPaymentsCount.hashCode()); - result = 31 * result + (this.recurrent == null ? 0: this.recurrent.hashCode()); - result = 31 * result + (this.smsSent == null ? 0: this.smsSent.hashCode()); - result = 31 * result + (this.startsAt == null ? 0: this.startsAt.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); - result = 31 * result + (this.successUrl == null ? 0: this.successUrl.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.allowedPaymentMethods == null ? 0 : this.allowedPaymentMethods.hashCode()); + result = 31 * result + (this.canNotExpire == null ? 0 : this.canNotExpire.hashCode()); + result = 31 * result + (this.emailsSent == null ? 0 : this.emailsSent.hashCode()); + result = 31 * result + (this.excludeCardNetworks == null ? 0 : this.excludeCardNetworks.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.failureUrl == null ? 0 : this.failureUrl.hashCode()); + result = 31 * result + (this.force3dsFlow == null ? 0 : this.force3dsFlow.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.monthlyInstallmentsEnabled == null ? 0 : this.monthlyInstallmentsEnabled.hashCode()); + result = 31 * result + (this.monthlyInstallmentsOptions == null ? 0 : this.monthlyInstallmentsOptions.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.needsShippingContact == null ? 0 : this.needsShippingContact.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.onDemandEnabled == null ? 0 : this.onDemandEnabled.hashCode()); + result = 31 * result + (this.paidPaymentsCount == null ? 0 : this.paidPaymentsCount.hashCode()); + result = 31 * result + (this.recurrent == null ? 0 : this.recurrent.hashCode()); + result = 31 * result + (this.smsSent == null ? 0 : this.smsSent.hashCode()); + result = 31 * result + (this.startsAt == null ? 0 : this.startsAt.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); + result = 31 * result + (this.successUrl == null ? 0 : this.successUrl.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TokenResponseCheckout {\n"); sb.append(" allowedPaymentMethods: ").append(allowedPaymentMethods).append("\n"); - sb.append(" canNotExpire: ").append(canNotExpire).append("\n"); - sb.append(" emailsSent: ").append(emailsSent).append("\n"); - sb.append(" excludeCardNetworks: ").append(excludeCardNetworks).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" failureUrl: ").append(failureUrl).append("\n"); - sb.append(" force3dsFlow: ").append(force3dsFlow).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" monthlyInstallmentsEnabled: ").append(monthlyInstallmentsEnabled).append("\n"); - sb.append(" monthlyInstallmentsOptions: ").append(monthlyInstallmentsOptions).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" needsShippingContact: ").append(needsShippingContact).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" onDemandEnabled: ").append(onDemandEnabled).append("\n"); - sb.append(" paidPaymentsCount: ").append(paidPaymentsCount).append("\n"); - sb.append(" recurrent: ").append(recurrent).append("\n"); - sb.append(" smsSent: ").append(smsSent).append("\n"); - sb.append(" startsAt: ").append(startsAt).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append(" successUrl: ").append(successUrl).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); +sb.append(" canNotExpire: ").append(canNotExpire).append("\n"); +sb.append(" emailsSent: ").append(emailsSent).append("\n"); +sb.append(" excludeCardNetworks: ").append(excludeCardNetworks).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" failureUrl: ").append(failureUrl).append("\n"); +sb.append(" force3dsFlow: ").append(force3dsFlow).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" monthlyInstallmentsEnabled: ").append(monthlyInstallmentsEnabled).append("\n"); +sb.append(" monthlyInstallmentsOptions: ").append(monthlyInstallmentsOptions).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" needsShippingContact: ").append(needsShippingContact).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" onDemandEnabled: ").append(onDemandEnabled).append("\n"); +sb.append(" paidPaymentsCount: ").append(paidPaymentsCount).append("\n"); +sb.append(" recurrent: ").append(recurrent).append("\n"); +sb.append(" smsSent: ").append(smsSent).append("\n"); +sb.append(" startsAt: ").append(startsAt).append("\n"); +sb.append(" status: ").append(status).append("\n"); +sb.append(" successUrl: ").append(successUrl).append("\n"); +sb.append(" type: ").append(type).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/TransactionResponse.java b/src/main/java/io/conekta/model/TransactionResponse.java index 5f3b086..8309fb2 100644 --- a/src/main/java/io/conekta/model/TransactionResponse.java +++ b/src/main/java/io/conekta/model/TransactionResponse.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * The Transaction object represents the actions or steps of an order. Statuses can be: unprocessed, pending, available, owen, paid_out, voided, capture, capture_reversal, liquidation, liquidation_reversal, payout, payout_reversal, refund, refund_reversal, chargeback, chargeback_reversal, rounding_adjustment, won_chargeback, transferred, and transferred. **/ @ApiModel(description = "The Transaction object represents the actions or steps of an order. Statuses can be: unprocessed, pending, available, owen, paid_out, voided, capture, capture_reversal, liquidation, liquidation_reversal, payout, payout_reversal, refund, refund_reversal, chargeback, chargeback_reversal, rounding_adjustment, won_chargeback, transferred, and transferred.") public class TransactionResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("charge") @@ -41,126 +38,137 @@ public class TransactionResponse { /** * The amount of the transaction. + * **/ @ApiModelProperty(required = true, value = "The amount of the transaction.") public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * Randomly assigned unique order identifier associated with the charge. + * **/ @ApiModelProperty(required = true, value = "Randomly assigned unique order identifier associated with the charge.") public String getCharge() { return charge; } + public void setCharge(String charge) { this.charge = charge; } - /** * Date and time of creation of the transaction in Unix format. + * **/ @ApiModelProperty(required = true, value = "Date and time of creation of the transaction in Unix format.") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * The currency of the transaction. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) + * **/ @ApiModelProperty(required = true, value = "The currency of the transaction. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217)") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** * The amount to be deducted for taxes and commissions. + * **/ @ApiModelProperty(required = true, value = "The amount to be deducted for taxes and commissions.") public Long getFee() { return fee; } + public void setFee(Long fee) { this.fee = fee; } - /** * Unique identifier of the transaction. + * **/ @ApiModelProperty(required = true, value = "Unique identifier of the transaction.") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Indicates whether the transaction was created in live mode or test mode. + * **/ @ApiModelProperty(required = true, value = "Indicates whether the transaction was created in live mode or test mode.") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * The net amount after deducting commissions and taxes. + * **/ @ApiModelProperty(required = true, value = "The net amount after deducting commissions and taxes.") public Long getNet() { return net; } + public void setNet(Long net) { this.net = net; } - /** * Object name, which is transaction. + * **/ @ApiModelProperty(required = true, value = "Object name, which is transaction.") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Code indicating transaction status. + * **/ @ApiModelProperty(required = true, value = "Code indicating transaction status.") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - /** * Transaction Type + * **/ @ApiModelProperty(required = true, value = "Transaction Type") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -181,42 +189,43 @@ public boolean equals(Object o) { (this._object == null ? transactionResponse._object == null : this._object.equals(transactionResponse._object)) && (this.status == null ? transactionResponse.status == null : this.status.equals(transactionResponse.status)) && (this.type == null ? transactionResponse.type == null : this.type.equals(transactionResponse.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.charge == null ? 0: this.charge.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.fee == null ? 0: this.fee.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.net == null ? 0: this.net.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.charge == null ? 0 : this.charge.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.fee == null ? 0 : this.fee.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.net == null ? 0 : this.net.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransactionResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" charge: ").append(charge).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" fee: ").append(fee).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" net: ").append(net).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); +sb.append(" charge: ").append(charge).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" fee: ").append(fee).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" net: ").append(net).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" status: ").append(status).append("\n"); +sb.append(" type: ").append(type).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/TransferDestinationResponse.java b/src/main/java/io/conekta/model/TransferDestinationResponse.java index d767ea9..36abc40 100644 --- a/src/main/java/io/conekta/model/TransferDestinationResponse.java +++ b/src/main/java/io/conekta/model/TransferDestinationResponse.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Method used to make the transfer. **/ @ApiModel(description = "Method used to make the transfer.") public class TransferDestinationResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("account_holder") private String accountHolder = null; @SerializedName("account_number") @@ -35,93 +32,101 @@ public class TransferDestinationResponse { /** * Name of the account holder. + * **/ @ApiModelProperty(value = "Name of the account holder.") public String getAccountHolder() { return accountHolder; } + public void setAccountHolder(String accountHolder) { this.accountHolder = accountHolder; } - /** * Account number of the bank account. + * **/ @ApiModelProperty(value = "Account number of the bank account.") public String getAccountNumber() { return accountNumber; } + public void setAccountNumber(String accountNumber) { this.accountNumber = accountNumber; } - /** * Name of the bank. + * **/ @ApiModelProperty(value = "Name of the bank.") public String getBank() { return bank; } + public void setBank(String bank) { this.bank = bank; } - /** * Date and time of creation of the transfer. + * **/ @ApiModelProperty(value = "Date and time of creation of the transfer.") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * Unique identifier of the transfer. + * **/ @ApiModelProperty(value = "Unique identifier of the transfer.") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Object name, which is bank_transfer_payout_method. + * **/ @ApiModelProperty(value = "Object name, which is bank_transfer_payout_method.") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Unique identifier of the payee. + * **/ @ApiModelProperty(value = "Unique identifier of the payee.") public String getPayeeId() { return payeeId; } + public void setPayeeId(String payeeId) { this.payeeId = payeeId; } - /** * Type of the payee. + * **/ @ApiModelProperty(value = "Type of the payee.") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -139,36 +144,37 @@ public boolean equals(Object o) { (this._object == null ? transferDestinationResponse._object == null : this._object.equals(transferDestinationResponse._object)) && (this.payeeId == null ? transferDestinationResponse.payeeId == null : this.payeeId.equals(transferDestinationResponse.payeeId)) && (this.type == null ? transferDestinationResponse.type == null : this.type.equals(transferDestinationResponse.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.accountHolder == null ? 0: this.accountHolder.hashCode()); - result = 31 * result + (this.accountNumber == null ? 0: this.accountNumber.hashCode()); - result = 31 * result + (this.bank == null ? 0: this.bank.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.payeeId == null ? 0: this.payeeId.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.accountHolder == null ? 0 : this.accountHolder.hashCode()); + result = 31 * result + (this.accountNumber == null ? 0 : this.accountNumber.hashCode()); + result = 31 * result + (this.bank == null ? 0 : this.bank.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.payeeId == null ? 0 : this.payeeId.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransferDestinationResponse {\n"); sb.append(" accountHolder: ").append(accountHolder).append("\n"); - sb.append(" accountNumber: ").append(accountNumber).append("\n"); - sb.append(" bank: ").append(bank).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" payeeId: ").append(payeeId).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); +sb.append(" accountNumber: ").append(accountNumber).append("\n"); +sb.append(" bank: ").append(bank).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" payeeId: ").append(payeeId).append("\n"); +sb.append(" type: ").append(type).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/TransferMethodResponse.java b/src/main/java/io/conekta/model/TransferMethodResponse.java index 43291ce..ab75977 100644 --- a/src/main/java/io/conekta/model/TransferMethodResponse.java +++ b/src/main/java/io/conekta/model/TransferMethodResponse.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * Method used to make the transfer. **/ @ApiModel(description = "Method used to make the transfer.") public class TransferMethodResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("account_holder") private String accountHolder = null; @SerializedName("account_number") @@ -35,93 +32,101 @@ public class TransferMethodResponse { /** * Name of the account holder. + * **/ @ApiModelProperty(value = "Name of the account holder.") public String getAccountHolder() { return accountHolder; } + public void setAccountHolder(String accountHolder) { this.accountHolder = accountHolder; } - /** * Account number of the bank account. + * **/ @ApiModelProperty(value = "Account number of the bank account.") public String getAccountNumber() { return accountNumber; } + public void setAccountNumber(String accountNumber) { this.accountNumber = accountNumber; } - /** * Name of the bank. + * **/ @ApiModelProperty(value = "Name of the bank.") public String getBank() { return bank; } + public void setBank(String bank) { this.bank = bank; } - /** * Date and time of creation of the transfer. + * **/ @ApiModelProperty(value = "Date and time of creation of the transfer.") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * Unique identifier of the transfer. + * **/ @ApiModelProperty(value = "Unique identifier of the transfer.") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Object name, which is bank_transfer_payout_method. + * **/ @ApiModelProperty(value = "Object name, which is bank_transfer_payout_method.") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Unique identifier of the payee. + * **/ @ApiModelProperty(value = "Unique identifier of the payee.") public String getPayeeId() { return payeeId; } + public void setPayeeId(String payeeId) { this.payeeId = payeeId; } - /** * Type of the payee. + * **/ @ApiModelProperty(value = "Type of the payee.") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -139,36 +144,37 @@ public boolean equals(Object o) { (this._object == null ? transferMethodResponse._object == null : this._object.equals(transferMethodResponse._object)) && (this.payeeId == null ? transferMethodResponse.payeeId == null : this.payeeId.equals(transferMethodResponse.payeeId)) && (this.type == null ? transferMethodResponse.type == null : this.type.equals(transferMethodResponse.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.accountHolder == null ? 0: this.accountHolder.hashCode()); - result = 31 * result + (this.accountNumber == null ? 0: this.accountNumber.hashCode()); - result = 31 * result + (this.bank == null ? 0: this.bank.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.payeeId == null ? 0: this.payeeId.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.accountHolder == null ? 0 : this.accountHolder.hashCode()); + result = 31 * result + (this.accountNumber == null ? 0 : this.accountNumber.hashCode()); + result = 31 * result + (this.bank == null ? 0 : this.bank.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.payeeId == null ? 0 : this.payeeId.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransferMethodResponse {\n"); sb.append(" accountHolder: ").append(accountHolder).append("\n"); - sb.append(" accountNumber: ").append(accountNumber).append("\n"); - sb.append(" bank: ").append(bank).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" payeeId: ").append(payeeId).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); +sb.append(" accountNumber: ").append(accountNumber).append("\n"); +sb.append(" bank: ").append(bank).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" payeeId: ").append(payeeId).append("\n"); +sb.append(" type: ").append(type).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/TransferResponse.java b/src/main/java/io/conekta/model/TransferResponse.java index 720f6b9..61cfc71 100644 --- a/src/main/java/io/conekta/model/TransferResponse.java +++ b/src/main/java/io/conekta/model/TransferResponse.java @@ -3,20 +3,17 @@ import io.conekta.model.TransferDestinationResponse; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * A transfer represents the action of sending an amount to a business bank account including the status, amount and method used to make the transfer. **/ @ApiModel(description = "A transfer represents the action of sending an amount to a business bank account including the status, amount and method used to make the transfer.") public class TransferResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("created_at") @@ -40,114 +37,125 @@ public class TransferResponse { /** * Amount in cents of the transfer. + * **/ @ApiModelProperty(value = "Amount in cents of the transfer.") public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * Date and time of creation of the transfer in Unix format. + * **/ @ApiModelProperty(value = "Date and time of creation of the transfer in Unix format.") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * The currency of the transfer. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) + * **/ @ApiModelProperty(value = "The currency of the transfer. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217)") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** * Unique identifier of the transfer. + * **/ @ApiModelProperty(value = "Unique identifier of the transfer.") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Indicates whether the transfer was created in live mode or test mode. + * **/ @ApiModelProperty(value = "Indicates whether the transfer was created in live mode or test mode.") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public TransferDestinationResponse getDestination() { return destination; } + public void setDestination(TransferDestinationResponse destination) { this.destination = destination; } - /** * Object name, which is transfer. + * **/ @ApiModelProperty(value = "Object name, which is transfer.") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Description of the transfer. + * **/ @ApiModelProperty(value = "Description of the transfer.") public String getStatementDescription() { return statementDescription; } + public void setStatementDescription(String statementDescription) { this.statementDescription = statementDescription; } - /** * Reference number of the transfer. + * **/ @ApiModelProperty(value = "Reference number of the transfer.") public String getStatementReference() { return statementReference; } + public void setStatementReference(String statementReference) { this.statementReference = statementReference; } - /** * Code indicating transfer status. + * **/ @ApiModelProperty(value = "Code indicating transfer status.") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { @@ -167,40 +175,41 @@ public boolean equals(Object o) { (this.statementDescription == null ? transferResponse.statementDescription == null : this.statementDescription.equals(transferResponse.statementDescription)) && (this.statementReference == null ? transferResponse.statementReference == null : this.statementReference.equals(transferResponse.statementReference)) && (this.status == null ? transferResponse.status == null : this.status.equals(transferResponse.status)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.destination == null ? 0: this.destination.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.statementDescription == null ? 0: this.statementDescription.hashCode()); - result = 31 * result + (this.statementReference == null ? 0: this.statementReference.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.destination == null ? 0 : this.destination.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.statementDescription == null ? 0 : this.statementDescription.hashCode()); + result = 31 * result + (this.statementReference == null ? 0 : this.statementReference.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransferResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" destination: ").append(destination).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" statementDescription: ").append(statementDescription).append("\n"); - sb.append(" statementReference: ").append(statementReference).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append("}\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" destination: ").append(destination).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" statementDescription: ").append(statementDescription).append("\n"); +sb.append(" statementReference: ").append(statementReference).append("\n"); +sb.append(" status: ").append(status).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/TransfersResponse.java b/src/main/java/io/conekta/model/TransfersResponse.java index e06ef7c..a32a54b 100644 --- a/src/main/java/io/conekta/model/TransfersResponse.java +++ b/src/main/java/io/conekta/model/TransfersResponse.java @@ -3,20 +3,17 @@ import io.conekta.model.TransferMethodResponse; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * A transfer represents the action of sending an amount to a business bank account including the status, amount and method used to make the transfer. **/ @ApiModel(description = "A transfer represents the action of sending an amount to a business bank account including the status, amount and method used to make the transfer.") public class TransfersResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("created_at") @@ -40,114 +37,125 @@ public class TransfersResponse { /** * Amount in cents of the transfer. + * **/ @ApiModelProperty(value = "Amount in cents of the transfer.") public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * Date and time of creation of the transfer. + * **/ @ApiModelProperty(value = "Date and time of creation of the transfer.") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * The currency of the transfer. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) + * **/ @ApiModelProperty(value = "The currency of the transfer. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217)") public String getCurrency() { return currency; } + public void setCurrency(String currency) { this.currency = currency; } - /** * Unique identifier of the transfer. + * **/ @ApiModelProperty(value = "Unique identifier of the transfer.") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Indicates whether the transfer was created in live mode or test mode. + * **/ @ApiModelProperty(value = "Indicates whether the transfer was created in live mode or test mode.") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public TransferMethodResponse getMethod() { return method; } + public void setMethod(TransferMethodResponse method) { this.method = method; } - /** * Object name, which is transfer. + * **/ @ApiModelProperty(value = "Object name, which is transfer.") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Description of the transfer. + * **/ @ApiModelProperty(value = "Description of the transfer.") public String getStatementDescription() { return statementDescription; } + public void setStatementDescription(String statementDescription) { this.statementDescription = statementDescription; } - /** * Reference number of the transfer. + * **/ @ApiModelProperty(value = "Reference number of the transfer.") public String getStatementReference() { return statementReference; } + public void setStatementReference(String statementReference) { this.statementReference = statementReference; } - /** * Code indicating transfer status. + * **/ @ApiModelProperty(value = "Code indicating transfer status.") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - @Override public boolean equals(Object o) { if (this == o) { @@ -167,40 +175,41 @@ public boolean equals(Object o) { (this.statementDescription == null ? transfersResponse.statementDescription == null : this.statementDescription.equals(transfersResponse.statementDescription)) && (this.statementReference == null ? transfersResponse.statementReference == null : this.statementReference.equals(transfersResponse.statementReference)) && (this.status == null ? transfersResponse.status == null : this.status.equals(transfersResponse.status)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.currency == null ? 0: this.currency.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this.method == null ? 0: this.method.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.statementDescription == null ? 0: this.statementDescription.hashCode()); - result = 31 * result + (this.statementReference == null ? 0: this.statementReference.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this.method == null ? 0 : this.method.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.statementDescription == null ? 0 : this.statementDescription.hashCode()); + result = 31 * result + (this.statementReference == null ? 0 : this.statementReference.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransfersResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" currency: ").append(currency).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" method: ").append(method).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" statementDescription: ").append(statementDescription).append("\n"); - sb.append(" statementReference: ").append(statementReference).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append("}\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" currency: ").append(currency).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" method: ").append(method).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" statementDescription: ").append(statementDescription).append("\n"); +sb.append(" statementReference: ").append(statementReference).append("\n"); +sb.append(" status: ").append(status).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/UpdateCustomer.java b/src/main/java/io/conekta/model/UpdateCustomer.java index 21375da..39a08ef 100644 --- a/src/main/java/io/conekta/model/UpdateCustomer.java +++ b/src/main/java/io/conekta/model/UpdateCustomer.java @@ -10,20 +10,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * update customer **/ @ApiModel(description = "update customer") public class UpdateCustomer { - + private static final String MXN = "MXN"; - - + @SerializedName("antifraud_info") private UpdateCustomerAntifraudInfo antifraudInfo = null; @SerializedName("default_payment_source_id") @@ -54,156 +51,174 @@ public class UpdateCustomer { private SubscriptionRequest subscription = null; /** + * + * **/ @ApiModelProperty(value = "") public UpdateCustomerAntifraudInfo getAntifraudInfo() { return antifraudInfo; } + public void setAntifraudInfo(UpdateCustomerAntifraudInfo antifraudInfo) { this.antifraudInfo = antifraudInfo; } - /** * It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id) + * **/ @ApiModelProperty(value = "It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id)") public String getDefaultPaymentSourceId() { return defaultPaymentSourceId; } + public void setDefaultPaymentSourceId(String defaultPaymentSourceId) { this.defaultPaymentSourceId = defaultPaymentSourceId; } - /** * An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). + * **/ @ApiModelProperty(value = "An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc).") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** * Client's name + * **/ @ApiModelProperty(value = "Client's name") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** * Is the customer's phone number + * **/ @ApiModelProperty(value = "Is the customer's phone number") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** * Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription + * **/ @ApiModelProperty(value = "Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription") public String getPlanId() { return planId; } + public void setPlanId(String planId) { this.planId = planId; } - /** * It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact) + * **/ @ApiModelProperty(value = "It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact)") public String getDefaultShippingContactId() { return defaultShippingContactId; } + public void setDefaultShippingContactId(String defaultShippingContactId) { this.defaultShippingContactId = defaultShippingContactId; } - /** * It is a value that allows identifying if the email is corporate or not. + * **/ @ApiModelProperty(value = "It is a value that allows identifying if the email is corporate or not.") public Boolean getCorporate() { return corporate; } + public void setCorporate(Boolean corporate) { this.corporate = corporate; } - /** * It is an undefined value. + * **/ @ApiModelProperty(value = "It is an undefined value.") public String getCustomReference() { return customReference; } + public void setCustomReference(String customReference) { this.customReference = customReference; } - /** + * + * **/ @ApiModelProperty(value = "") public List getFiscalEntities() { return fiscalEntities; } + public void setFiscalEntities(List fiscalEntities) { this.fiscalEntities = fiscalEntities; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** * Contains details of the payment methods that the customer has active or has used in Conekta + * **/ @ApiModelProperty(value = "Contains details of the payment methods that the customer has active or has used in Conekta") public List getPaymentSources() { return paymentSources; } + public void setPaymentSources(List paymentSources) { this.paymentSources = paymentSources; } - /** * Contains the detail of the shipping addresses that the client has active or has used in Conekta + * **/ @ApiModelProperty(value = "Contains the detail of the shipping addresses that the client has active or has used in Conekta") public List getShippingContacts() { return shippingContacts; } + public void setShippingContacts(List shippingContacts) { this.shippingContacts = shippingContacts; } - /** + * + * **/ @ApiModelProperty(value = "") public SubscriptionRequest getSubscription() { return subscription; } + public void setSubscription(SubscriptionRequest subscription) { this.subscription = subscription; } - @Override public boolean equals(Object o) { if (this == o) { @@ -227,48 +242,49 @@ public boolean equals(Object o) { (this.paymentSources == null ? updateCustomer.paymentSources == null : this.paymentSources.equals(updateCustomer.paymentSources)) && (this.shippingContacts == null ? updateCustomer.shippingContacts == null : this.shippingContacts.equals(updateCustomer.shippingContacts)) && (this.subscription == null ? updateCustomer.subscription == null : this.subscription.equals(updateCustomer.subscription)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.antifraudInfo == null ? 0: this.antifraudInfo.hashCode()); - result = 31 * result + (this.defaultPaymentSourceId == null ? 0: this.defaultPaymentSourceId.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.planId == null ? 0: this.planId.hashCode()); - result = 31 * result + (this.defaultShippingContactId == null ? 0: this.defaultShippingContactId.hashCode()); - result = 31 * result + (this.corporate == null ? 0: this.corporate.hashCode()); - result = 31 * result + (this.customReference == null ? 0: this.customReference.hashCode()); - result = 31 * result + (this.fiscalEntities == null ? 0: this.fiscalEntities.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.paymentSources == null ? 0: this.paymentSources.hashCode()); - result = 31 * result + (this.shippingContacts == null ? 0: this.shippingContacts.hashCode()); - result = 31 * result + (this.subscription == null ? 0: this.subscription.hashCode()); + result = 31 * result + (this.antifraudInfo == null ? 0 : this.antifraudInfo.hashCode()); + result = 31 * result + (this.defaultPaymentSourceId == null ? 0 : this.defaultPaymentSourceId.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.planId == null ? 0 : this.planId.hashCode()); + result = 31 * result + (this.defaultShippingContactId == null ? 0 : this.defaultShippingContactId.hashCode()); + result = 31 * result + (this.corporate == null ? 0 : this.corporate.hashCode()); + result = 31 * result + (this.customReference == null ? 0 : this.customReference.hashCode()); + result = 31 * result + (this.fiscalEntities == null ? 0 : this.fiscalEntities.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.paymentSources == null ? 0 : this.paymentSources.hashCode()); + result = 31 * result + (this.shippingContacts == null ? 0 : this.shippingContacts.hashCode()); + result = 31 * result + (this.subscription == null ? 0 : this.subscription.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateCustomer {\n"); sb.append(" antifraudInfo: ").append(antifraudInfo).append("\n"); - sb.append(" defaultPaymentSourceId: ").append(defaultPaymentSourceId).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" planId: ").append(planId).append("\n"); - sb.append(" defaultShippingContactId: ").append(defaultShippingContactId).append("\n"); - sb.append(" corporate: ").append(corporate).append("\n"); - sb.append(" customReference: ").append(customReference).append("\n"); - sb.append(" fiscalEntities: ").append(fiscalEntities).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" paymentSources: ").append(paymentSources).append("\n"); - sb.append(" shippingContacts: ").append(shippingContacts).append("\n"); - sb.append(" subscription: ").append(subscription).append("\n"); - sb.append("}\n"); +sb.append(" defaultPaymentSourceId: ").append(defaultPaymentSourceId).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" planId: ").append(planId).append("\n"); +sb.append(" defaultShippingContactId: ").append(defaultShippingContactId).append("\n"); +sb.append(" corporate: ").append(corporate).append("\n"); +sb.append(" customReference: ").append(customReference).append("\n"); +sb.append(" fiscalEntities: ").append(fiscalEntities).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" paymentSources: ").append(paymentSources).append("\n"); +sb.append(" shippingContacts: ").append(shippingContacts).append("\n"); +sb.append(" subscription: ").append(subscription).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/UpdateCustomerAntifraudInfo.java b/src/main/java/io/conekta/model/UpdateCustomerAntifraudInfo.java index eb1e15d..083574a 100644 --- a/src/main/java/io/conekta/model/UpdateCustomerAntifraudInfo.java +++ b/src/main/java/io/conekta/model/UpdateCustomerAntifraudInfo.java @@ -2,43 +2,44 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class UpdateCustomerAntifraudInfo { - + private static final String MXN = "MXN"; - - + @SerializedName("account_created_at") private Long accountCreatedAt = null; @SerializedName("first_paid_at") private Integer firstPaidAt = null; /** + * + * **/ @ApiModelProperty(value = "") public Long getAccountCreatedAt() { return accountCreatedAt; } + public void setAccountCreatedAt(Long accountCreatedAt) { this.accountCreatedAt = accountCreatedAt; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getFirstPaidAt() { return firstPaidAt; } + public void setFirstPaidAt(Integer firstPaidAt) { this.firstPaidAt = firstPaidAt; } - @Override public boolean equals(Object o) { if (this == o) { @@ -50,24 +51,25 @@ public boolean equals(Object o) { UpdateCustomerAntifraudInfo updateCustomerAntifraudInfo = (UpdateCustomerAntifraudInfo) o; return (this.accountCreatedAt == null ? updateCustomerAntifraudInfo.accountCreatedAt == null : this.accountCreatedAt.equals(updateCustomerAntifraudInfo.accountCreatedAt)) && (this.firstPaidAt == null ? updateCustomerAntifraudInfo.firstPaidAt == null : this.firstPaidAt.equals(updateCustomerAntifraudInfo.firstPaidAt)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.accountCreatedAt == null ? 0: this.accountCreatedAt.hashCode()); - result = 31 * result + (this.firstPaidAt == null ? 0: this.firstPaidAt.hashCode()); + result = 31 * result + (this.accountCreatedAt == null ? 0 : this.accountCreatedAt.hashCode()); + result = 31 * result + (this.firstPaidAt == null ? 0 : this.firstPaidAt.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateCustomerAntifraudInfo {\n"); sb.append(" accountCreatedAt: ").append(accountCreatedAt).append("\n"); - sb.append(" firstPaidAt: ").append(firstPaidAt).append("\n"); - sb.append("}\n"); +sb.append(" firstPaidAt: ").append(firstPaidAt).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/UpdateCustomerFiscalEntitiesResponse.java b/src/main/java/io/conekta/model/UpdateCustomerFiscalEntitiesResponse.java index 7273406..3a096b9 100644 --- a/src/main/java/io/conekta/model/UpdateCustomerFiscalEntitiesResponse.java +++ b/src/main/java/io/conekta/model/UpdateCustomerFiscalEntitiesResponse.java @@ -4,17 +4,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class UpdateCustomerFiscalEntitiesResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("address") private CustomerAddress address = null; @SerializedName("tax_id") @@ -39,116 +36,138 @@ public class UpdateCustomerFiscalEntitiesResponse { private Boolean _default = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public CustomerAddress getAddress() { return address; } + public void setAddress(CustomerAddress address) { this.address = address; } - /** + * + * **/ @ApiModelProperty(value = "") public String getTaxId() { return taxId; } + public void setTaxId(String taxId) { this.taxId = taxId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getEmail() { return email; } + public void setEmail(String email) { this.email = email; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPhone() { return phone; } + public void setPhone(String phone) { this.phone = phone; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCompanyName() { return companyName; } + public void setCompanyName(String companyName) { this.companyName = companyName; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - @Override public boolean equals(Object o) { if (this == o) { @@ -169,42 +188,43 @@ public boolean equals(Object o) { (this.createdAt == null ? updateCustomerFiscalEntitiesResponse.createdAt == null : this.createdAt.equals(updateCustomerFiscalEntitiesResponse.createdAt)) && (this.parentId == null ? updateCustomerFiscalEntitiesResponse.parentId == null : this.parentId.equals(updateCustomerFiscalEntitiesResponse.parentId)) && (this._default == null ? updateCustomerFiscalEntitiesResponse._default == null : this._default.equals(updateCustomerFiscalEntitiesResponse._default)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.address == null ? 0: this.address.hashCode()); - result = 31 * result + (this.taxId == null ? 0: this.taxId.hashCode()); - result = 31 * result + (this.email == null ? 0: this.email.hashCode()); - result = 31 * result + (this.phone == null ? 0: this.phone.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.companyName == null ? 0: this.companyName.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); + result = 31 * result + (this.address == null ? 0 : this.address.hashCode()); + result = 31 * result + (this.taxId == null ? 0 : this.taxId.hashCode()); + result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); + result = 31 * result + (this.phone == null ? 0 : this.phone.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.companyName == null ? 0 : this.companyName.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateCustomerFiscalEntitiesResponse {\n"); sb.append(" address: ").append(address).append("\n"); - sb.append(" taxId: ").append(taxId).append("\n"); - sb.append(" email: ").append(email).append("\n"); - sb.append(" phone: ").append(phone).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" companyName: ").append(companyName).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append("}\n"); +sb.append(" taxId: ").append(taxId).append("\n"); +sb.append(" email: ").append(email).append("\n"); +sb.append(" phone: ").append(phone).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" companyName: ").append(companyName).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/UpdateCustomerPaymentMethodsResponse.java b/src/main/java/io/conekta/model/UpdateCustomerPaymentMethodsResponse.java index 74210e0..c1808d0 100644 --- a/src/main/java/io/conekta/model/UpdateCustomerPaymentMethodsResponse.java +++ b/src/main/java/io/conekta/model/UpdateCustomerPaymentMethodsResponse.java @@ -5,17 +5,14 @@ import io.conekta.model.PaymentMethodSpeiRecurrent; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class UpdateCustomerPaymentMethodsResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("type") private String type = null; @SerializedName("id") @@ -58,206 +55,246 @@ public class UpdateCustomerPaymentMethodsResponse { private String paymentSourceStatus = null; /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - /** + * + * **/ @ApiModelProperty(value = "") public String getReference() { return reference; } + public void setReference(String reference) { this.reference = reference; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcode() { return barcode; } + public void setBarcode(String barcode) { this.barcode = barcode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBarcodeUrl() { return barcodeUrl; } + public void setBarcodeUrl(String barcodeUrl) { this.barcodeUrl = barcodeUrl; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpiresAt() { return expiresAt; } + public void setExpiresAt(String expiresAt) { this.expiresAt = expiresAt; } - /** + * + * **/ @ApiModelProperty(value = "") public String getProvider() { return provider; } + public void setProvider(String provider) { this.provider = provider; } - /** + * + * **/ @ApiModelProperty(value = "") public String getLast4() { return last4; } + public void setLast4(String last4) { this.last4 = last4; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBin() { return bin; } + public void setBin(String bin) { this.bin = bin; } - /** + * + * **/ @ApiModelProperty(value = "") public String getCardType() { return cardType; } + public void setCardType(String cardType) { this.cardType = cardType; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpMonth() { return expMonth; } + public void setExpMonth(String expMonth) { this.expMonth = expMonth; } - /** + * + * **/ @ApiModelProperty(value = "") public String getExpYear() { return expYear; } + public void setExpYear(String expYear) { this.expYear = expYear; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDefault() { return _default; } + public void setDefault(Boolean _default) { this._default = _default; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getVisibleOnCheckout() { return visibleOnCheckout; } + public void setVisibleOnCheckout(Boolean visibleOnCheckout) { this.visibleOnCheckout = visibleOnCheckout; } - /** + * + * **/ @ApiModelProperty(value = "") public String getPaymentSourceStatus() { return paymentSourceStatus; } + public void setPaymentSourceStatus(String paymentSourceStatus) { this.paymentSourceStatus = paymentSourceStatus; } - @Override public boolean equals(Object o) { if (this == o) { @@ -287,60 +324,61 @@ public boolean equals(Object o) { (this._default == null ? updateCustomerPaymentMethodsResponse._default == null : this._default.equals(updateCustomerPaymentMethodsResponse._default)) && (this.visibleOnCheckout == null ? updateCustomerPaymentMethodsResponse.visibleOnCheckout == null : this.visibleOnCheckout.equals(updateCustomerPaymentMethodsResponse.visibleOnCheckout)) && (this.paymentSourceStatus == null ? updateCustomerPaymentMethodsResponse.paymentSourceStatus == null : this.paymentSourceStatus.equals(updateCustomerPaymentMethodsResponse.paymentSourceStatus)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); - result = 31 * result + (this.reference == null ? 0: this.reference.hashCode()); - result = 31 * result + (this.barcode == null ? 0: this.barcode.hashCode()); - result = 31 * result + (this.barcodeUrl == null ? 0: this.barcodeUrl.hashCode()); - result = 31 * result + (this.expiresAt == null ? 0: this.expiresAt.hashCode()); - result = 31 * result + (this.provider == null ? 0: this.provider.hashCode()); - result = 31 * result + (this.last4 == null ? 0: this.last4.hashCode()); - result = 31 * result + (this.bin == null ? 0: this.bin.hashCode()); - result = 31 * result + (this.cardType == null ? 0: this.cardType.hashCode()); - result = 31 * result + (this.expMonth == null ? 0: this.expMonth.hashCode()); - result = 31 * result + (this.expYear == null ? 0: this.expYear.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this._default == null ? 0: this._default.hashCode()); - result = 31 * result + (this.visibleOnCheckout == null ? 0: this.visibleOnCheckout.hashCode()); - result = 31 * result + (this.paymentSourceStatus == null ? 0: this.paymentSourceStatus.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); + result = 31 * result + (this.reference == null ? 0 : this.reference.hashCode()); + result = 31 * result + (this.barcode == null ? 0 : this.barcode.hashCode()); + result = 31 * result + (this.barcodeUrl == null ? 0 : this.barcodeUrl.hashCode()); + result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); + result = 31 * result + (this.provider == null ? 0 : this.provider.hashCode()); + result = 31 * result + (this.last4 == null ? 0 : this.last4.hashCode()); + result = 31 * result + (this.bin == null ? 0 : this.bin.hashCode()); + result = 31 * result + (this.cardType == null ? 0 : this.cardType.hashCode()); + result = 31 * result + (this.expMonth == null ? 0 : this.expMonth.hashCode()); + result = 31 * result + (this.expYear == null ? 0 : this.expYear.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this._default == null ? 0 : this._default.hashCode()); + result = 31 * result + (this.visibleOnCheckout == null ? 0 : this.visibleOnCheckout.hashCode()); + result = 31 * result + (this.paymentSourceStatus == null ? 0 : this.paymentSourceStatus.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateCustomerPaymentMethodsResponse {\n"); sb.append(" type: ").append(type).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append(" reference: ").append(reference).append("\n"); - sb.append(" barcode: ").append(barcode).append("\n"); - sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); - sb.append(" expiresAt: ").append(expiresAt).append("\n"); - sb.append(" provider: ").append(provider).append("\n"); - sb.append(" last4: ").append(last4).append("\n"); - sb.append(" bin: ").append(bin).append("\n"); - sb.append(" cardType: ").append(cardType).append("\n"); - sb.append(" expMonth: ").append(expMonth).append("\n"); - sb.append(" expYear: ").append(expYear).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" _default: ").append(_default).append("\n"); - sb.append(" visibleOnCheckout: ").append(visibleOnCheckout).append("\n"); - sb.append(" paymentSourceStatus: ").append(paymentSourceStatus).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); +sb.append(" reference: ").append(reference).append("\n"); +sb.append(" barcode: ").append(barcode).append("\n"); +sb.append(" barcodeUrl: ").append(barcodeUrl).append("\n"); +sb.append(" expiresAt: ").append(expiresAt).append("\n"); +sb.append(" provider: ").append(provider).append("\n"); +sb.append(" last4: ").append(last4).append("\n"); +sb.append(" bin: ").append(bin).append("\n"); +sb.append(" cardType: ").append(cardType).append("\n"); +sb.append(" expMonth: ").append(expMonth).append("\n"); +sb.append(" expYear: ").append(expYear).append("\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" _default: ").append(_default).append("\n"); +sb.append(" visibleOnCheckout: ").append(visibleOnCheckout).append("\n"); +sb.append(" paymentSourceStatus: ").append(paymentSourceStatus).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/UpdateOrderDiscountLinesRequest.java b/src/main/java/io/conekta/model/UpdateOrderDiscountLinesRequest.java index 5f4d214..43ab29f 100644 --- a/src/main/java/io/conekta/model/UpdateOrderDiscountLinesRequest.java +++ b/src/main/java/io/conekta/model/UpdateOrderDiscountLinesRequest.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * List of discounts that apply to the order. **/ @ApiModel(description = "List of discounts that apply to the order.") public class UpdateOrderDiscountLinesRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("code") @@ -24,38 +21,42 @@ public class UpdateOrderDiscountLinesRequest { private String type = null; /** + * * minimum: 0 **/ @ApiModelProperty(value = "") public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * Discount code. + * **/ @ApiModelProperty(value = "Discount code.") public String getCode() { return code; } + public void setCode(String code) { this.code = code; } - /** + * + * **/ @ApiModelProperty(value = "") public String getType() { return type; } + public void setType(String type) { this.type = type; } - @Override public boolean equals(Object o) { if (this == o) { @@ -68,26 +69,27 @@ public boolean equals(Object o) { return (this.amount == null ? updateOrderDiscountLinesRequest.amount == null : this.amount.equals(updateOrderDiscountLinesRequest.amount)) && (this.code == null ? updateOrderDiscountLinesRequest.code == null : this.code.equals(updateOrderDiscountLinesRequest.code)) && (this.type == null ? updateOrderDiscountLinesRequest.type == null : this.type.equals(updateOrderDiscountLinesRequest.type)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.code == null ? 0: this.code.hashCode()); - result = 31 * result + (this.type == null ? 0: this.type.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.code == null ? 0 : this.code.hashCode()); + result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateOrderDiscountLinesRequest {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" code: ").append(code).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append("}\n"); +sb.append(" code: ").append(code).append("\n"); +sb.append(" type: ").append(type).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/UpdateOrderTaxRequest.java b/src/main/java/io/conekta/model/UpdateOrderTaxRequest.java index 67e846d..fc10f23 100644 --- a/src/main/java/io/conekta/model/UpdateOrderTaxRequest.java +++ b/src/main/java/io/conekta/model/UpdateOrderTaxRequest.java @@ -3,20 +3,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * create new taxes for an existing order **/ @ApiModel(description = "create new taxes for an existing order") public class UpdateOrderTaxRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("description") @@ -32,32 +29,35 @@ public class UpdateOrderTaxRequest { public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * description or tax's name + * **/ @ApiModelProperty(value = "description or tax's name") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - @Override public boolean equals(Object o) { if (this == o) { @@ -70,26 +70,27 @@ public boolean equals(Object o) { return (this.amount == null ? updateOrderTaxRequest.amount == null : this.amount.equals(updateOrderTaxRequest.amount)) && (this.description == null ? updateOrderTaxRequest.description == null : this.description.equals(updateOrderTaxRequest.description)) && (this.metadata == null ? updateOrderTaxRequest.metadata == null : this.metadata.equals(updateOrderTaxRequest.metadata)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateOrderTaxRequest {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append("}\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/UpdateOrderTaxResponse.java b/src/main/java/io/conekta/model/UpdateOrderTaxResponse.java index dfad9d8..085c6d5 100644 --- a/src/main/java/io/conekta/model/UpdateOrderTaxResponse.java +++ b/src/main/java/io/conekta/model/UpdateOrderTaxResponse.java @@ -4,20 +4,17 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * create new taxes for an existing order response **/ @ApiModel(description = "create new taxes for an existing order response") public class UpdateOrderTaxResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("amount") private Long amount = null; @SerializedName("description") @@ -39,62 +36,71 @@ public class UpdateOrderTaxResponse { public Long getAmount() { return amount; } + public void setAmount(Long amount) { this.amount = amount; } - /** * description or tax's name + * **/ @ApiModelProperty(required = true, value = "description or tax's name") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - /** + * + * **/ @ApiModelProperty(required = true, value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public String getParentId() { return parentId; } + public void setParentId(String parentId) { this.parentId = parentId; } - @Override public boolean equals(Object o) { if (this == o) { @@ -110,32 +116,33 @@ public boolean equals(Object o) { (this.id == null ? updateOrderTaxResponse.id == null : this.id.equals(updateOrderTaxResponse.id)) && (this._object == null ? updateOrderTaxResponse._object == null : this._object.equals(updateOrderTaxResponse._object)) && (this.parentId == null ? updateOrderTaxResponse.parentId == null : this.parentId.equals(updateOrderTaxResponse.parentId)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.amount == null ? 0: this.amount.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.parentId == null ? 0: this.parentId.hashCode()); + result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.parentId == null ? 0 : this.parentId.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateOrderTaxResponse {\n"); sb.append(" amount: ").append(amount).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" parentId: ").append(parentId).append("\n"); - sb.append("}\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" parentId: ").append(parentId).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/UpdatePaymentMethods.java b/src/main/java/io/conekta/model/UpdatePaymentMethods.java index 6f6fdcd..6fceba0 100644 --- a/src/main/java/io/conekta/model/UpdatePaymentMethods.java +++ b/src/main/java/io/conekta/model/UpdatePaymentMethods.java @@ -2,31 +2,30 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class UpdatePaymentMethods { - + private static final String MXN = "MXN"; - - + @SerializedName("name") private String name = null; /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - @Override public boolean equals(Object o) { if (this == o) { @@ -37,22 +36,23 @@ public boolean equals(Object o) { } UpdatePaymentMethods updatePaymentMethods = (UpdatePaymentMethods) o; return (this.name == null ? updatePaymentMethods.name == null : this.name.equals(updatePaymentMethods.name)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdatePaymentMethods {\n"); sb.append(" name: ").append(name).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/UpdateProduct.java b/src/main/java/io/conekta/model/UpdateProduct.java index 9c33bac..7e9a620 100644 --- a/src/main/java/io/conekta/model/UpdateProduct.java +++ b/src/main/java/io/conekta/model/UpdateProduct.java @@ -4,17 +4,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class UpdateProduct { - + private static final String MXN = "MXN"; - - + @SerializedName("antifraud_info") private Map antifraudInfo = null; @SerializedName("description") @@ -35,98 +32,114 @@ public class UpdateProduct { private Map metadata = null; /** + * + * **/ @ApiModelProperty(value = "") public Map getAntifraudInfo() { return antifraudInfo; } + public void setAntifraudInfo(Map antifraudInfo) { this.antifraudInfo = antifraudInfo; } - /** + * + * **/ @ApiModelProperty(value = "") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - /** + * + * **/ @ApiModelProperty(value = "") public String getSku() { return sku; } + public void setSku(String sku) { this.sku = sku; } - /** + * + * **/ @ApiModelProperty(value = "") public String getName() { return name; } + public void setName(String name) { this.name = name; } - /** + * * minimum: 0 **/ @ApiModelProperty(value = "") public Long getUnitPrice() { return unitPrice; } + public void setUnitPrice(Long unitPrice) { this.unitPrice = unitPrice; } - /** + * * minimum: 1 **/ @ApiModelProperty(value = "") public Integer getQuantity() { return quantity; } + public void setQuantity(Integer quantity) { this.quantity = quantity; } - /** + * + * **/ @ApiModelProperty(value = "") public List getTags() { return tags; } + public void setTags(List tags) { this.tags = tags; } - /** + * + * **/ @ApiModelProperty(value = "") public String getBrand() { return brand; } + public void setBrand(String brand) { this.brand = brand; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getMetadata() { return metadata; } + public void setMetadata(Map metadata) { this.metadata = metadata; } - @Override public boolean equals(Object o) { if (this == o) { @@ -145,38 +158,39 @@ public boolean equals(Object o) { (this.tags == null ? updateProduct.tags == null : this.tags.equals(updateProduct.tags)) && (this.brand == null ? updateProduct.brand == null : this.brand.equals(updateProduct.brand)) && (this.metadata == null ? updateProduct.metadata == null : this.metadata.equals(updateProduct.metadata)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.antifraudInfo == null ? 0: this.antifraudInfo.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); - result = 31 * result + (this.sku == null ? 0: this.sku.hashCode()); - result = 31 * result + (this.name == null ? 0: this.name.hashCode()); - result = 31 * result + (this.unitPrice == null ? 0: this.unitPrice.hashCode()); - result = 31 * result + (this.quantity == null ? 0: this.quantity.hashCode()); - result = 31 * result + (this.tags == null ? 0: this.tags.hashCode()); - result = 31 * result + (this.brand == null ? 0: this.brand.hashCode()); - result = 31 * result + (this.metadata == null ? 0: this.metadata.hashCode()); + result = 31 * result + (this.antifraudInfo == null ? 0 : this.antifraudInfo.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); + result = 31 * result + (this.sku == null ? 0 : this.sku.hashCode()); + result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); + result = 31 * result + (this.unitPrice == null ? 0 : this.unitPrice.hashCode()); + result = 31 * result + (this.quantity == null ? 0 : this.quantity.hashCode()); + result = 31 * result + (this.tags == null ? 0 : this.tags.hashCode()); + result = 31 * result + (this.brand == null ? 0 : this.brand.hashCode()); + result = 31 * result + (this.metadata == null ? 0 : this.metadata.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateProduct {\n"); sb.append(" antifraudInfo: ").append(antifraudInfo).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append(" sku: ").append(sku).append("\n"); - sb.append(" name: ").append(name).append("\n"); - sb.append(" unitPrice: ").append(unitPrice).append("\n"); - sb.append(" quantity: ").append(quantity).append("\n"); - sb.append(" tags: ").append(tags).append("\n"); - sb.append(" brand: ").append(brand).append("\n"); - sb.append(" metadata: ").append(metadata).append("\n"); - sb.append("}\n"); +sb.append(" description: ").append(description).append("\n"); +sb.append(" sku: ").append(sku).append("\n"); +sb.append(" name: ").append(name).append("\n"); +sb.append(" unitPrice: ").append(unitPrice).append("\n"); +sb.append(" quantity: ").append(quantity).append("\n"); +sb.append(" tags: ").append(tags).append("\n"); +sb.append(" brand: ").append(brand).append("\n"); +sb.append(" metadata: ").append(metadata).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/WebhookKeyCreateResponse.java b/src/main/java/io/conekta/model/WebhookKeyCreateResponse.java index d354111..03d924a 100644 --- a/src/main/java/io/conekta/model/WebhookKeyCreateResponse.java +++ b/src/main/java/io/conekta/model/WebhookKeyCreateResponse.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * webhook keys model **/ @ApiModel(description = "webhook keys model") public class WebhookKeyCreateResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("active") private Boolean active = null; @SerializedName("created_at") @@ -31,71 +28,77 @@ public class WebhookKeyCreateResponse { /** * Indicates if the webhook key is active + * **/ @ApiModelProperty(value = "Indicates if the webhook key is active") public Boolean getActive() { return active; } + public void setActive(Boolean active) { this.active = active; } - /** * Unix timestamp in seconds with the creation date of the webhook key + * **/ @ApiModelProperty(value = "Unix timestamp in seconds with the creation date of the webhook key") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * Unique identifier of the webhook key + * **/ @ApiModelProperty(value = "Unique identifier of the webhook key") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Indicates if the webhook key is in live mode + * **/ @ApiModelProperty(value = "Indicates if the webhook key is in live mode") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * Object name, value is webhook_key + * **/ @ApiModelProperty(value = "Object name, value is webhook_key") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** * Public key to be used in the webhook + * **/ @ApiModelProperty(value = "Public key to be used in the webhook") public String getPublicKey() { return publicKey; } + public void setPublicKey(String publicKey) { this.publicKey = publicKey; } - @Override public boolean equals(Object o) { if (this == o) { @@ -111,32 +114,33 @@ public boolean equals(Object o) { (this.livemode == null ? webhookKeyCreateResponse.livemode == null : this.livemode.equals(webhookKeyCreateResponse.livemode)) && (this._object == null ? webhookKeyCreateResponse._object == null : this._object.equals(webhookKeyCreateResponse._object)) && (this.publicKey == null ? webhookKeyCreateResponse.publicKey == null : this.publicKey.equals(webhookKeyCreateResponse.publicKey)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.active == null ? 0: this.active.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.publicKey == null ? 0: this.publicKey.hashCode()); + result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.publicKey == null ? 0 : this.publicKey.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebhookKeyCreateResponse {\n"); sb.append(" active: ").append(active).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" publicKey: ").append(publicKey).append("\n"); - sb.append("}\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" publicKey: ").append(publicKey).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/WebhookKeyDeleteResponse.java b/src/main/java/io/conekta/model/WebhookKeyDeleteResponse.java index 25af5be..70a8f4d 100644 --- a/src/main/java/io/conekta/model/WebhookKeyDeleteResponse.java +++ b/src/main/java/io/conekta/model/WebhookKeyDeleteResponse.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * webhook keys model **/ @ApiModel(description = "webhook keys model") public class WebhookKeyDeleteResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("active") private Boolean active = null; @SerializedName("created_at") @@ -31,71 +28,77 @@ public class WebhookKeyDeleteResponse { /** * Indicates if the webhook key is active + * **/ @ApiModelProperty(value = "Indicates if the webhook key is active") public Boolean getActive() { return active; } + public void setActive(Boolean active) { this.active = active; } - /** * Unix timestamp in seconds with the creation date of the webhook key + * **/ @ApiModelProperty(value = "Unix timestamp in seconds with the creation date of the webhook key") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * Indicates if the webhook key is deleted + * **/ @ApiModelProperty(value = "Indicates if the webhook key is deleted") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - /** * Unique identifier of the webhook key + * **/ @ApiModelProperty(value = "Unique identifier of the webhook key") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Indicates if the webhook key is in live mode + * **/ @ApiModelProperty(value = "Indicates if the webhook key is in live mode") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * Object name, value is webhook_key + * **/ @ApiModelProperty(value = "Object name, value is webhook_key") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - @Override public boolean equals(Object o) { if (this == o) { @@ -111,32 +114,33 @@ public boolean equals(Object o) { (this.id == null ? webhookKeyDeleteResponse.id == null : this.id.equals(webhookKeyDeleteResponse.id)) && (this.livemode == null ? webhookKeyDeleteResponse.livemode == null : this.livemode.equals(webhookKeyDeleteResponse.livemode)) && (this._object == null ? webhookKeyDeleteResponse._object == null : this._object.equals(webhookKeyDeleteResponse._object)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.active == null ? 0: this.active.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); + result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebhookKeyDeleteResponse {\n"); sb.append(" active: ").append(active).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" deleted: ").append(deleted).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append("}\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" deleted: ").append(deleted).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/WebhookKeyRequest.java b/src/main/java/io/conekta/model/WebhookKeyRequest.java index b849959..e2b6d6d 100644 --- a/src/main/java/io/conekta/model/WebhookKeyRequest.java +++ b/src/main/java/io/conekta/model/WebhookKeyRequest.java @@ -2,32 +2,30 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class WebhookKeyRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("active") private Boolean active = true; /** * Indicates if the webhook key is active + * **/ @ApiModelProperty(value = "Indicates if the webhook key is active") public Boolean getActive() { return active; } + public void setActive(Boolean active) { this.active = active; } - @Override public boolean equals(Object o) { if (this == o) { @@ -38,22 +36,23 @@ public boolean equals(Object o) { } WebhookKeyRequest webhookKeyRequest = (WebhookKeyRequest) o; return (this.active == null ? webhookKeyRequest.active == null : this.active.equals(webhookKeyRequest.active)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.active == null ? 0: this.active.hashCode()); + result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebhookKeyRequest {\n"); sb.append(" active: ").append(active).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/WebhookKeyResponse.java b/src/main/java/io/conekta/model/WebhookKeyResponse.java index 1af4d15..96ade0e 100644 --- a/src/main/java/io/conekta/model/WebhookKeyResponse.java +++ b/src/main/java/io/conekta/model/WebhookKeyResponse.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * webhook keys model **/ @ApiModel(description = "webhook keys model") public class WebhookKeyResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("id") private String id = null; @SerializedName("active") @@ -33,82 +30,89 @@ public class WebhookKeyResponse { /** * Unique identifier of the webhook key + * **/ @ApiModelProperty(value = "Unique identifier of the webhook key") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * Indicates if the webhook key is active + * **/ @ApiModelProperty(value = "Indicates if the webhook key is active") public Boolean getActive() { return active; } + public void setActive(Boolean active) { this.active = active; } - /** * Unix timestamp in seconds with the creation date of the webhook key + * **/ @ApiModelProperty(value = "Unix timestamp in seconds with the creation date of the webhook key") public Long getCreatedAt() { return createdAt; } + public void setCreatedAt(Long createdAt) { this.createdAt = createdAt; } - /** * Unix timestamp in seconds with the deactivation date of the webhook key + * **/ @ApiModelProperty(value = "Unix timestamp in seconds with the deactivation date of the webhook key") public Long getDeactivatedAt() { return deactivatedAt; } + public void setDeactivatedAt(Long deactivatedAt) { this.deactivatedAt = deactivatedAt; } - /** * Public key to be used in the webhook + * **/ @ApiModelProperty(value = "Public key to be used in the webhook") public String getPublicKey() { return publicKey; } + public void setPublicKey(String publicKey) { this.publicKey = publicKey; } - /** * Indicates if the webhook key is in live mode + * **/ @ApiModelProperty(value = "Indicates if the webhook key is in live mode") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** * Object name, value is webhook_key + * **/ @ApiModelProperty(value = "Object name, value is webhook_key") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - @Override public boolean equals(Object o) { if (this == o) { @@ -125,34 +129,35 @@ public boolean equals(Object o) { (this.publicKey == null ? webhookKeyResponse.publicKey == null : this.publicKey.equals(webhookKeyResponse.publicKey)) && (this.livemode == null ? webhookKeyResponse.livemode == null : this.livemode.equals(webhookKeyResponse.livemode)) && (this._object == null ? webhookKeyResponse._object == null : this._object.equals(webhookKeyResponse._object)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.active == null ? 0: this.active.hashCode()); - result = 31 * result + (this.createdAt == null ? 0: this.createdAt.hashCode()); - result = 31 * result + (this.deactivatedAt == null ? 0: this.deactivatedAt.hashCode()); - result = 31 * result + (this.publicKey == null ? 0: this.publicKey.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); + result = 31 * result + (this.createdAt == null ? 0 : this.createdAt.hashCode()); + result = 31 * result + (this.deactivatedAt == null ? 0 : this.deactivatedAt.hashCode()); + result = 31 * result + (this.publicKey == null ? 0 : this.publicKey.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebhookKeyResponse {\n"); sb.append(" id: ").append(id).append("\n"); - sb.append(" active: ").append(active).append("\n"); - sb.append(" createdAt: ").append(createdAt).append("\n"); - sb.append(" deactivatedAt: ").append(deactivatedAt).append("\n"); - sb.append(" publicKey: ").append(publicKey).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append("}\n"); +sb.append(" active: ").append(active).append("\n"); +sb.append(" createdAt: ").append(createdAt).append("\n"); +sb.append(" deactivatedAt: ").append(deactivatedAt).append("\n"); +sb.append(" publicKey: ").append(publicKey).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/WebhookKeyUpdateRequest.java b/src/main/java/io/conekta/model/WebhookKeyUpdateRequest.java index 9e07fa3..1f311a2 100644 --- a/src/main/java/io/conekta/model/WebhookKeyUpdateRequest.java +++ b/src/main/java/io/conekta/model/WebhookKeyUpdateRequest.java @@ -2,32 +2,30 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class WebhookKeyUpdateRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("active") private Boolean active = false; /** * Indicates if the webhook key is active + * **/ @ApiModelProperty(value = "Indicates if the webhook key is active") public Boolean getActive() { return active; } + public void setActive(Boolean active) { this.active = active; } - @Override public boolean equals(Object o) { if (this == o) { @@ -38,22 +36,23 @@ public boolean equals(Object o) { } WebhookKeyUpdateRequest webhookKeyUpdateRequest = (WebhookKeyUpdateRequest) o; return (this.active == null ? webhookKeyUpdateRequest.active == null : this.active.equals(webhookKeyUpdateRequest.active)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.active == null ? 0: this.active.hashCode()); + result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebhookKeyUpdateRequest {\n"); sb.append(" active: ").append(active).append("\n"); - sb.append("}\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/WebhookLog.java b/src/main/java/io/conekta/model/WebhookLog.java index 106a45a..5200e41 100644 --- a/src/main/java/io/conekta/model/WebhookLog.java +++ b/src/main/java/io/conekta/model/WebhookLog.java @@ -5,17 +5,14 @@ import java.util.Map; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class WebhookLog { - + private static final String MXN = "MXN"; - - + @SerializedName("failed_attempts") private Integer failedAttempts = null; @SerializedName("id") @@ -32,76 +29,90 @@ public class WebhookLog { private URI url = null; /** + * + * **/ @ApiModelProperty(value = "") public Integer getFailedAttempts() { return failedAttempts; } + public void setFailedAttempts(Integer failedAttempts) { this.failedAttempts = failedAttempts; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getLastAttemptedAt() { return lastAttemptedAt; } + public void setLastAttemptedAt(Integer lastAttemptedAt) { this.lastAttemptedAt = lastAttemptedAt; } - /** + * + * **/ @ApiModelProperty(value = "") public Integer getLastHttpResponseStatus() { return lastHttpResponseStatus; } + public void setLastHttpResponseStatus(Integer lastHttpResponseStatus) { this.lastHttpResponseStatus = lastHttpResponseStatus; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public Map getResponseData() { return responseData; } + public void setResponseData(Map responseData) { this.responseData = responseData; } - /** + * + * **/ @ApiModelProperty(value = "") public URI getUrl() { return url; } + public void setUrl(URI url) { this.url = url; } - @Override public boolean equals(Object o) { if (this == o) { @@ -118,34 +129,35 @@ public boolean equals(Object o) { (this._object == null ? webhookLog._object == null : this._object.equals(webhookLog._object)) && (this.responseData == null ? webhookLog.responseData == null : this.responseData.equals(webhookLog.responseData)) && (this.url == null ? webhookLog.url == null : this.url.equals(webhookLog.url)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.failedAttempts == null ? 0: this.failedAttempts.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.lastAttemptedAt == null ? 0: this.lastAttemptedAt.hashCode()); - result = 31 * result + (this.lastHttpResponseStatus == null ? 0: this.lastHttpResponseStatus.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.responseData == null ? 0: this.responseData.hashCode()); - result = 31 * result + (this.url == null ? 0: this.url.hashCode()); + result = 31 * result + (this.failedAttempts == null ? 0 : this.failedAttempts.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.lastAttemptedAt == null ? 0 : this.lastAttemptedAt.hashCode()); + result = 31 * result + (this.lastHttpResponseStatus == null ? 0 : this.lastHttpResponseStatus.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.responseData == null ? 0 : this.responseData.hashCode()); + result = 31 * result + (this.url == null ? 0 : this.url.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebhookLog {\n"); sb.append(" failedAttempts: ").append(failedAttempts).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" lastAttemptedAt: ").append(lastAttemptedAt).append("\n"); - sb.append(" lastHttpResponseStatus: ").append(lastHttpResponseStatus).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" responseData: ").append(responseData).append("\n"); - sb.append(" url: ").append(url).append("\n"); - sb.append("}\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" lastAttemptedAt: ").append(lastAttemptedAt).append("\n"); +sb.append(" lastHttpResponseStatus: ").append(lastHttpResponseStatus).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" responseData: ").append(responseData).append("\n"); +sb.append(" url: ").append(url).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/WebhookRequest.java b/src/main/java/io/conekta/model/WebhookRequest.java index 9ffd2e4..6b3e3a2 100644 --- a/src/main/java/io/conekta/model/WebhookRequest.java +++ b/src/main/java/io/conekta/model/WebhookRequest.java @@ -2,20 +2,17 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * a webhook **/ @ApiModel(description = "a webhook") public class WebhookRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("url") private String url = null; @SerializedName("synchronous") @@ -23,27 +20,29 @@ public class WebhookRequest { /** * Here you must place the URL of your Webhook remember that you must program what you will do with the events received. Also do not forget to handle the HTTPS protocol for greater security. + * **/ @ApiModelProperty(required = true, value = "Here you must place the URL of your Webhook remember that you must program what you will do with the events received. Also do not forget to handle the HTTPS protocol for greater security.") public String getUrl() { return url; } + public void setUrl(String url) { this.url = url; } - /** * It is a value that allows to decide if the events will be synchronous or asynchronous. We recommend asynchronous = false + * **/ @ApiModelProperty(required = true, value = "It is a value that allows to decide if the events will be synchronous or asynchronous. We recommend asynchronous = false") public Boolean getSynchronous() { return synchronous; } + public void setSynchronous(Boolean synchronous) { this.synchronous = synchronous; } - @Override public boolean equals(Object o) { if (this == o) { @@ -55,24 +54,25 @@ public boolean equals(Object o) { WebhookRequest webhookRequest = (WebhookRequest) o; return (this.url == null ? webhookRequest.url == null : this.url.equals(webhookRequest.url)) && (this.synchronous == null ? webhookRequest.synchronous == null : this.synchronous.equals(webhookRequest.synchronous)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.url == null ? 0: this.url.hashCode()); - result = 31 * result + (this.synchronous == null ? 0: this.synchronous.hashCode()); + result = 31 * result + (this.url == null ? 0 : this.url.hashCode()); + result = 31 * result + (this.synchronous == null ? 0 : this.synchronous.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebhookRequest {\n"); sb.append(" url: ").append(url).append("\n"); - sb.append(" synchronous: ").append(synchronous).append("\n"); - sb.append("}\n"); +sb.append(" synchronous: ").append(synchronous).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/WebhookResponse.java b/src/main/java/io/conekta/model/WebhookResponse.java index 092687d..562db65 100644 --- a/src/main/java/io/conekta/model/WebhookResponse.java +++ b/src/main/java/io/conekta/model/WebhookResponse.java @@ -3,20 +3,17 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * webhooks model **/ @ApiModel(description = "webhooks model") public class WebhookResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("deleted") private Boolean deleted = null; @SerializedName("development_enabled") @@ -39,106 +36,126 @@ public class WebhookResponse { private String url = null; /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDeleted() { return deleted; } + public void setDeleted(Boolean deleted) { this.deleted = deleted; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getDevelopmentEnabled() { return developmentEnabled; } + public void setDevelopmentEnabled(Boolean developmentEnabled) { this.developmentEnabled = developmentEnabled; } - /** + * + * **/ @ApiModelProperty(value = "") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getLivemode() { return livemode; } + public void setLivemode(Boolean livemode) { this.livemode = livemode; } - /** + * + * **/ @ApiModelProperty(value = "") public String getObject() { return _object; } + public void setObject(String _object) { this._object = _object; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getProductionEnabled() { return productionEnabled; } + public void setProductionEnabled(Boolean productionEnabled) { this.productionEnabled = productionEnabled; } - /** + * + * **/ @ApiModelProperty(value = "") public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } - /** + * + * **/ @ApiModelProperty(value = "") public List getSubscribedEvents() { return subscribedEvents; } + public void setSubscribedEvents(List subscribedEvents) { this.subscribedEvents = subscribedEvents; } - /** + * + * **/ @ApiModelProperty(value = "") public Boolean getSynchronous() { return synchronous; } + public void setSynchronous(Boolean synchronous) { this.synchronous = synchronous; } - /** + * + * **/ @ApiModelProperty(value = "") public String getUrl() { return url; } + public void setUrl(String url) { this.url = url; } - @Override public boolean equals(Object o) { if (this == o) { @@ -158,40 +175,41 @@ public boolean equals(Object o) { (this.subscribedEvents == null ? webhookResponse.subscribedEvents == null : this.subscribedEvents.equals(webhookResponse.subscribedEvents)) && (this.synchronous == null ? webhookResponse.synchronous == null : this.synchronous.equals(webhookResponse.synchronous)) && (this.url == null ? webhookResponse.url == null : this.url.equals(webhookResponse.url)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.deleted == null ? 0: this.deleted.hashCode()); - result = 31 * result + (this.developmentEnabled == null ? 0: this.developmentEnabled.hashCode()); - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.livemode == null ? 0: this.livemode.hashCode()); - result = 31 * result + (this._object == null ? 0: this._object.hashCode()); - result = 31 * result + (this.productionEnabled == null ? 0: this.productionEnabled.hashCode()); - result = 31 * result + (this.status == null ? 0: this.status.hashCode()); - result = 31 * result + (this.subscribedEvents == null ? 0: this.subscribedEvents.hashCode()); - result = 31 * result + (this.synchronous == null ? 0: this.synchronous.hashCode()); - result = 31 * result + (this.url == null ? 0: this.url.hashCode()); + result = 31 * result + (this.deleted == null ? 0 : this.deleted.hashCode()); + result = 31 * result + (this.developmentEnabled == null ? 0 : this.developmentEnabled.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.livemode == null ? 0 : this.livemode.hashCode()); + result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); + result = 31 * result + (this.productionEnabled == null ? 0 : this.productionEnabled.hashCode()); + result = 31 * result + (this.status == null ? 0 : this.status.hashCode()); + result = 31 * result + (this.subscribedEvents == null ? 0 : this.subscribedEvents.hashCode()); + result = 31 * result + (this.synchronous == null ? 0 : this.synchronous.hashCode()); + result = 31 * result + (this.url == null ? 0 : this.url.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebhookResponse {\n"); sb.append(" deleted: ").append(deleted).append("\n"); - sb.append(" developmentEnabled: ").append(developmentEnabled).append("\n"); - sb.append(" id: ").append(id).append("\n"); - sb.append(" livemode: ").append(livemode).append("\n"); - sb.append(" _object: ").append(_object).append("\n"); - sb.append(" productionEnabled: ").append(productionEnabled).append("\n"); - sb.append(" status: ").append(status).append("\n"); - sb.append(" subscribedEvents: ").append(subscribedEvents).append("\n"); - sb.append(" synchronous: ").append(synchronous).append("\n"); - sb.append(" url: ").append(url).append("\n"); - sb.append("}\n"); +sb.append(" developmentEnabled: ").append(developmentEnabled).append("\n"); +sb.append(" id: ").append(id).append("\n"); +sb.append(" livemode: ").append(livemode).append("\n"); +sb.append(" _object: ").append(_object).append("\n"); +sb.append(" productionEnabled: ").append(productionEnabled).append("\n"); +sb.append(" status: ").append(status).append("\n"); +sb.append(" subscribedEvents: ").append(subscribedEvents).append("\n"); +sb.append(" synchronous: ").append(synchronous).append("\n"); +sb.append(" url: ").append(url).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/WebhookUpdateRequest.java b/src/main/java/io/conekta/model/WebhookUpdateRequest.java index ad66705..c629138 100644 --- a/src/main/java/io/conekta/model/WebhookUpdateRequest.java +++ b/src/main/java/io/conekta/model/WebhookUpdateRequest.java @@ -3,20 +3,17 @@ import java.util.*; import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - /** * an updated webhook **/ @ApiModel(description = "an updated webhook") public class WebhookUpdateRequest { - + private static final String MXN = "MXN"; - - + @SerializedName("url") private String url = null; @SerializedName("synchronous") @@ -26,37 +23,41 @@ public class WebhookUpdateRequest { /** * Here you must place the URL of your Webhook remember that you must program what you will do with the events received. Also do not forget to handle the HTTPS protocol for greater security. + * **/ @ApiModelProperty(required = true, value = "Here you must place the URL of your Webhook remember that you must program what you will do with the events received. Also do not forget to handle the HTTPS protocol for greater security.") public String getUrl() { return url; } + public void setUrl(String url) { this.url = url; } - /** * It is a value that allows to decide if the events will be synchronous or asynchronous. We recommend asynchronous = false + * **/ @ApiModelProperty(value = "It is a value that allows to decide if the events will be synchronous or asynchronous. We recommend asynchronous = false") public Boolean getSynchronous() { return synchronous; } + public void setSynchronous(Boolean synchronous) { this.synchronous = synchronous; } - /** + * + * **/ @ApiModelProperty(value = "") public List getEvents() { return events; } + public void setEvents(List events) { this.events = events; } - @Override public boolean equals(Object o) { if (this == o) { @@ -69,26 +70,27 @@ public boolean equals(Object o) { return (this.url == null ? webhookUpdateRequest.url == null : this.url.equals(webhookUpdateRequest.url)) && (this.synchronous == null ? webhookUpdateRequest.synchronous == null : this.synchronous.equals(webhookUpdateRequest.synchronous)) && (this.events == null ? webhookUpdateRequest.events == null : this.events.equals(webhookUpdateRequest.events)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.url == null ? 0: this.url.hashCode()); - result = 31 * result + (this.synchronous == null ? 0: this.synchronous.hashCode()); - result = 31 * result + (this.events == null ? 0: this.events.hashCode()); + result = 31 * result + (this.url == null ? 0 : this.url.hashCode()); + result = 31 * result + (this.synchronous == null ? 0 : this.synchronous.hashCode()); + result = 31 * result + (this.events == null ? 0 : this.events.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebhookUpdateRequest {\n"); sb.append(" url: ").append(url).append("\n"); - sb.append(" synchronous: ").append(synchronous).append("\n"); - sb.append(" events: ").append(events).append("\n"); - sb.append("}\n"); +sb.append(" synchronous: ").append(synchronous).append("\n"); +sb.append(" events: ").append(events).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/src/main/java/io/conekta/model/WhitelistlistRuleResponse.java b/src/main/java/io/conekta/model/WhitelistlistRuleResponse.java index 9b6cced..7d4916a 100644 --- a/src/main/java/io/conekta/model/WhitelistlistRuleResponse.java +++ b/src/main/java/io/conekta/model/WhitelistlistRuleResponse.java @@ -2,17 +2,14 @@ import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; - @ApiModel(description = "") public class WhitelistlistRuleResponse { - + private static final String MXN = "MXN"; - - + @SerializedName("id") private String id = null; @SerializedName("field") @@ -24,49 +21,53 @@ public class WhitelistlistRuleResponse { /** * Whitelist rule id + * **/ @ApiModelProperty(value = "Whitelist rule id") public String getId() { return id; } + public void setId(String id) { this.id = id; } - /** * field used for whitelists rule + * **/ @ApiModelProperty(value = "field used for whitelists rule") public String getField() { return field; } + public void setField(String field) { this.field = field; } - /** * value used for whitelists rule + * **/ @ApiModelProperty(value = "value used for whitelists rule") public String getValue() { return value; } + public void setValue(String value) { this.value = value; } - /** * use an description for whitelisted rule + * **/ @ApiModelProperty(value = "use an description for whitelisted rule") public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } - @Override public boolean equals(Object o) { if (this == o) { @@ -80,28 +81,29 @@ public boolean equals(Object o) { (this.field == null ? whitelistlistRuleResponse.field == null : this.field.equals(whitelistlistRuleResponse.field)) && (this.value == null ? whitelistlistRuleResponse.value == null : this.value.equals(whitelistlistRuleResponse.value)) && (this.description == null ? whitelistlistRuleResponse.description == null : this.description.equals(whitelistlistRuleResponse.description)); + } @Override public int hashCode() { int result = 17; - result = 31 * result + (this.id == null ? 0: this.id.hashCode()); - result = 31 * result + (this.field == null ? 0: this.field.hashCode()); - result = 31 * result + (this.value == null ? 0: this.value.hashCode()); - result = 31 * result + (this.description == null ? 0: this.description.hashCode()); + result = 31 * result + (this.id == null ? 0 : this.id.hashCode()); + result = 31 * result + (this.field == null ? 0 : this.field.hashCode()); + result = 31 * result + (this.value == null ? 0 : this.value.hashCode()); + result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WhitelistlistRuleResponse {\n"); sb.append(" id: ").append(id).append("\n"); - sb.append(" field: ").append(field).append("\n"); - sb.append(" value: ").append(value).append("\n"); - sb.append(" description: ").append(description).append("\n"); - sb.append("}\n"); +sb.append(" field: ").append(field).append("\n"); +sb.append(" value: ").append(value).append("\n"); +sb.append(" description: ").append(description).append("\n"); + sb.append("}"); return sb.toString(); } } diff --git a/templates/model.mustache b/templates/model.mustache index e5cab19..4444387 100644 --- a/templates/model.mustache +++ b/templates/model.mustache @@ -4,46 +4,53 @@ package {{package}}; {{/imports}} import io.swagger.annotations.*; -import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import io.conekta.EncryptedTypeAdapter; -{{#models}} -{{#model}}{{#description}} +{{#models}} +{{#model}} +{{#description}} /** * {{.}} - **/{{/description}} + **/ +{{/description}} @ApiModel(description = "{{{description}}}") public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} { - + private static final String MXN = "MXN"; - - {{#vars}}{{#isEnum}} + + {{#vars}} + {{#isEnum}} public enum {{datatypeWithEnum}} { - {{#allowableValues}}{{#values}} {{.}}, {{/values}}{{/allowableValues}} - }; + {{#allowableValues}}{{#values}}{{.}},{{/values}}{{/allowableValues}} + } @SerializedName("{{baseName}}") - private {{{datatypeWithEnum}}} {{name}} = {{{defaultValue}}};{{/isEnum}}{{^isEnum}} + private {{{datatypeWithEnum}}} {{name}} = {{{defaultValue}}}; + {{/isEnum}} + {{^isEnum}} @SerializedName("{{baseName}}") - {{#vendorExtensions.x-encripted}} - @JsonAdapter(EncryptedTypeAdapter.class) - {{/vendorExtensions.x-encripted}} - private {{{dataType}}} {{name}} = {{{defaultValue}}};{{/isEnum}}{{/vars}} + private {{{dataType}}} {{name}} = {{{defaultValue}}}; + {{/isEnum}} + {{/vars}} {{#vars}} - /**{{#description}} - * {{{.}}}{{/description}}{{#minimum}} - * minimum: {{.}}{{/minimum}}{{#maximum}} - * maximum: {{.}}{{/maximum}} + /** + * {{#description}}{{{.}}}{{/description}} + * {{#minimum}}minimum: {{.}}{{/minimum}}{{#maximum}}, maximum: {{.}}{{/maximum}} **/ @ApiModelProperty({{#required}}required = {{required}}, {{/required}}value = "{{{description}}}") public {{{datatypeWithEnum}}} {{getter}}() { return {{name}}; } + public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { + {{#vendorExtensions.x-encripted}} + this.{{name}} = new EncryptedTypeAdapter().encryptValue({{name}}); + {{/vendorExtensions.x-encripted}} + {{^vendorExtensions.x-encripted}} this.{{name}} = {{name}}; + {{/vendorExtensions.x-encripted}} } - {{/vars}} @Override @@ -54,28 +61,31 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} { if (o == null || getClass() != o.getClass()) { return false; } - {{classname}} {{classVarName}} = ({{classname}}) o;{{#hasVars}} + {{classname}} {{classVarName}} = ({{classname}}) o; + {{#hasVars}} return {{#vars}}(this.{{name}} == null ? {{classVarName}}.{{name}} == null : this.{{name}}.equals({{classVarName}}.{{name}})){{^-last}} && - {{/-last}}{{#-last}};{{/-last}}{{/vars}}{{/hasVars}}{{^hasVars}} - return true;{{/hasVars}} + {{/-last}}{{/vars}}; + {{/hasVars}} + {{^hasVars}}return true;{{/hasVars}} } @Override public int hashCode() { int result = 17; {{#vars}} - result = 31 * result + (this.{{name}} == null ? 0: this.{{name}}.hashCode()); + result = 31 * result + (this.{{name}} == null ? 0 : this.{{name}}.hashCode()); {{/vars}} return result; } @Override - public String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class {{classname}} {\n"); - {{#parent}}sb.append(" " + super.toString()).append("\n");{{/parent}} + {{#parent}}sb.append(" ").append(super.toString()).append("\n");{{/parent}} {{#vars}}sb.append(" {{name}}: ").append({{name}}).append("\n"); - {{/vars}}sb.append("}\n"); + {{/vars}} + sb.append("}"); return sb.toString(); } }