From ef09dcad7ef4e3ccfad8671f9307a6f7a41d7128 Mon Sep 17 00:00:00 2001 From: Francisco Rojas Date: Wed, 28 Mar 2018 16:50:50 -0700 Subject: [PATCH] Release 2.6.1 (#34) --- CHANGES.md | 8 +- README.md | 6 +- build.gradle | 2 +- docs/OrdersApi.md | 2 +- docs/V1SettlementEntry.md | 2 +- pom.xml | 2 +- .../java/com/squareup/connect/ApiClient.java | 2 +- .../com/squareup/connect/api/OrdersApi.java | 4 +- .../squareup/connect/api/TransactionsApi.java | 136 +++++++------- .../connect/models/CatalogCategory.java | 4 +- .../connect/models/CatalogDiscount.java | 10 +- .../squareup/connect/models/CatalogItem.java | 12 +- .../connect/models/CatalogModifier.java | 4 +- .../connect/models/CatalogModifierList.java | 6 +- .../squareup/connect/models/CatalogTax.java | 8 +- .../models/CreateOrderRequestDiscount.java | 4 +- .../models/CreateOrderRequestLineItem.java | 4 +- .../com/squareup/connect/models/Error.java | 176 +++++++++--------- .../squareup/connect/models/ErrorCode.java | 164 ++++++++-------- .../com/squareup/connect/models/V1Refund.java | 12 +- .../connect/models/V1SettlementEntry.java | 44 ++--- .../com/squareup/connect/models/V1Tender.java | 46 ++--- 22 files changed, 331 insertions(+), 327 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 8f1f2f3..f236a9f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Change Log +## Version 2.6.1 (2018-03-28) + +* Updates user-agent header + ## Version 2.6.0 (2018-03-27) ### Improvements: Orders API @@ -8,8 +12,8 @@ ### New features: Orders API -* For Catalog-backed line items, setting `CreateOrderRequestLineItem.base_price_money` will now override - the catalog item variation's price. +* For Catalog-backed line items, setting `CreateOrderRequestLineItem.base_price_money` will now override + the catalog item variation's price. * `CreateOrderRequestModifier`s may now be created ad hoc using the new `name` and `base_price_money` fields. ## Version 2.5.3 (2018-01-06) diff --git a/README.md b/README.md index 2b9daac..ae0dbdc 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Add this dependency to your project's POM: com.squareup connect - 2.6.0 + 2.6.1 compile ``` @@ -28,7 +28,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.squareup:connect:2.6.0" +compile "com.squareup:connect:2.6.1" ``` ### Build and Install locally @@ -47,7 +47,7 @@ At first generate the JAR by executing: Then manually install the following JARs: -* target/connect-2.6.0.jar +* target/connect-2.6.1.jar * target/lib/*.jar ## Getting Started diff --git a/build.gradle b/build.gradle index 05b4901..7b80574 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.squareup' -version = '2.6.0' +version = '2.6.1' buildscript { repositories { diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md index 4264e23..601804c 100644 --- a/docs/OrdersApi.md +++ b/docs/OrdersApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description BatchRetrieveOrders -Retrieves a set of [Order](#type-order)s by their IDs. If a provided Order ID does not exist, it is ignored instead of resulting in an error. +Retrieves a set of [Order](#type-order)s by their IDs. If a given Order ID does not exist, the ID is ignored instead of generating an error. ### Example ```java diff --git a/docs/V1SettlementEntry.md b/docs/V1SettlementEntry.md index e9d9339..69ca2e6 100644 --- a/docs/V1SettlementEntry.md +++ b/docs/V1SettlementEntry.md @@ -29,8 +29,8 @@ SQUARE_CAPITAL_PAYMENT | "SQUARE_CAPITAL_PAYMENT" SQUARE_CAPITAL_REVERSED_PAYMENT | "SQUARE_CAPITAL_REVERSED_PAYMENT" SUBSCRIPTION_FEE | "SUBSCRIPTION_FEE" SUBSCRIPTION_FEE_REFUND | "SUBSCRIPTION_FEE_REFUND" -INCENTED_PAYMENT | "INCENTED_PAYMENT" OTHER | "OTHER" +INCENTED_PAYMENT | "INCENTED_PAYMENT" RETURNED_ACH_ENTRY | "RETURNED_ACH_ENTRY" RETURNED_SQUARE_275 | "RETURNED_SQUARE_275" SQUARE_275 | "SQUARE_275" diff --git a/pom.xml b/pom.xml index 53056fa..e6eb161 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ connect jar connect - 2.6.0 + 2.6.1 https://github.com/square/connect-java-sdk/ Java client library for the Square Connect API diff --git a/src/main/java/com/squareup/connect/ApiClient.java b/src/main/java/com/squareup/connect/ApiClient.java index ddf7551..8aa50d8 100644 --- a/src/main/java/com/squareup/connect/ApiClient.java +++ b/src/main/java/com/squareup/connect/ApiClient.java @@ -73,7 +73,7 @@ public ApiClient() { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("Square-Connect-Java/2.5.3"); + setUserAgent("Square-Connect-Java/2.6.1"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/src/main/java/com/squareup/connect/api/OrdersApi.java b/src/main/java/com/squareup/connect/api/OrdersApi.java index baeeef8..91c1bf8 100644 --- a/src/main/java/com/squareup/connect/api/OrdersApi.java +++ b/src/main/java/com/squareup/connect/api/OrdersApi.java @@ -40,7 +40,7 @@ public void setApiClient(ApiClient apiClient) { /** * BatchRetrieveOrders - * Retrieves a set of [Order](#type-order)s by their IDs. If a provided Order ID does not exist, it is ignored instead of resulting in an error. + * Retrieves a set of [Order](#type-order)s by their IDs. If a given Order ID does not exist, the ID is ignored instead of generating an error. * @param locationId The ID of the orders' associated location. (required) * @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) * @return BatchRetrieveOrdersResponse @@ -90,7 +90,7 @@ public BatchRetrieveOrdersResponse batchRetrieveOrders(String locationId, BatchR /** * BatchRetrieveOrders - * Retrieves a set of [Order](#type-order)s by their IDs. If a provided Order ID does not exist, it is ignored instead of resulting in an error. + * Retrieves a set of [Order](#type-order)s by their IDs. If a given Order ID does not exist, the ID is ignored instead of generating an error. * @param locationId The ID of the orders' associated location. (required) * @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. (required) * @return CompleteResponse diff --git a/src/main/java/com/squareup/connect/api/TransactionsApi.java b/src/main/java/com/squareup/connect/api/TransactionsApi.java index 712251d..764d2a3 100644 --- a/src/main/java/com/squareup/connect/api/TransactionsApi.java +++ b/src/main/java/com/squareup/connect/api/TransactionsApi.java @@ -53,17 +53,17 @@ public void setApiClient(ApiClient apiClient) { */ public CaptureTransactionResponse captureTransaction(String locationId, String transactionId) throws ApiException { Object localVarPostBody = null; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling captureTransaction"); } - + // verify the required parameter 'transactionId' is set if (transactionId == null) { throw new ApiException(400, "Missing the required parameter 'transactionId' when calling captureTransaction"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions/{transaction_id}/capture" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())) @@ -75,8 +75,8 @@ public CaptureTransactionResponse captureTransaction(String locationId, String t Map localVarFormParams = new HashMap(); - - + + final String[] localVarAccepts = { "application/json" }; @@ -104,17 +104,17 @@ public CaptureTransactionResponse captureTransaction(String locationId, String t */ public CompleteResponsecaptureTransactionWithHttpInfo(String locationId, String transactionId) throws ApiException { Object localVarPostBody = null; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling captureTransaction"); } - + // verify the required parameter 'transactionId' is set if (transactionId == null) { throw new ApiException(400, "Missing the required parameter 'transactionId' when calling captureTransaction"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions/{transaction_id}/capture" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())) @@ -126,8 +126,8 @@ public CaptureTransactionResponse captureTransaction(String locationId, String t Map localVarFormParams = new HashMap(); - - + + final String[] localVarAccepts = { "application/json" }; @@ -153,17 +153,17 @@ public CaptureTransactionResponse captureTransaction(String locationId, String t */ public ChargeResponse charge(String locationId, ChargeRequest body) throws ApiException { Object localVarPostBody = body; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling charge"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling charge"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())); @@ -174,8 +174,8 @@ public ChargeResponse charge(String locationId, ChargeRequest body) throws ApiEx Map localVarFormParams = new HashMap(); - - + + final String[] localVarAccepts = { "application/json" }; @@ -203,17 +203,17 @@ public ChargeResponse charge(String locationId, ChargeRequest body) throws ApiEx */ public CompleteResponsechargeWithHttpInfo(String locationId, ChargeRequest body) throws ApiException { Object localVarPostBody = body; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling charge"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling charge"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())); @@ -224,8 +224,8 @@ public ChargeResponse charge(String locationId, ChargeRequest body) throws ApiEx Map localVarFormParams = new HashMap(); - - + + final String[] localVarAccepts = { "application/json" }; @@ -252,22 +252,22 @@ public ChargeResponse charge(String locationId, ChargeRequest body) throws ApiEx */ public CreateRefundResponse createRefund(String locationId, String transactionId, CreateRefundRequest body) throws ApiException { Object localVarPostBody = body; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling createRefund"); } - + // verify the required parameter 'transactionId' is set if (transactionId == null) { throw new ApiException(400, "Missing the required parameter 'transactionId' when calling createRefund"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling createRefund"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions/{transaction_id}/refund" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())) @@ -279,8 +279,8 @@ public CreateRefundResponse createRefund(String locationId, String transactionId Map localVarFormParams = new HashMap(); - - + + final String[] localVarAccepts = { "application/json" }; @@ -309,22 +309,22 @@ public CreateRefundResponse createRefund(String locationId, String transactionId */ public CompleteResponsecreateRefundWithHttpInfo(String locationId, String transactionId, CreateRefundRequest body) throws ApiException { Object localVarPostBody = body; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling createRefund"); } - + // verify the required parameter 'transactionId' is set if (transactionId == null) { throw new ApiException(400, "Missing the required parameter 'transactionId' when calling createRefund"); } - + // verify the required parameter 'body' is set if (body == null) { throw new ApiException(400, "Missing the required parameter 'body' when calling createRefund"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions/{transaction_id}/refund" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())) @@ -336,8 +336,8 @@ public CreateRefundResponse createRefund(String locationId, String transactionId Map localVarFormParams = new HashMap(); - - + + final String[] localVarAccepts = { "application/json" }; @@ -366,12 +366,12 @@ public CreateRefundResponse createRefund(String locationId, String transactionId */ public ListRefundsResponse listRefunds(String locationId, String beginTime, String endTime, String sortOrder, String cursor) throws ApiException { Object localVarPostBody = null; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling listRefunds"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/refunds" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())); @@ -386,8 +386,8 @@ public ListRefundsResponse listRefunds(String locationId, String beginTime, Stri localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort_order", sortOrder)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor)); - - + + final String[] localVarAccepts = { "application/json" }; @@ -418,12 +418,12 @@ public ListRefundsResponse listRefunds(String locationId, String beginTime, Stri */ public CompleteResponselistRefundsWithHttpInfo(String locationId, String beginTime, String endTime, String sortOrder, String cursor) throws ApiException { Object localVarPostBody = null; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling listRefunds"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/refunds" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())); @@ -438,8 +438,8 @@ public ListRefundsResponse listRefunds(String locationId, String beginTime, Stri localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort_order", sortOrder)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor)); - - + + final String[] localVarAccepts = { "application/json" }; @@ -468,12 +468,12 @@ public ListRefundsResponse listRefunds(String locationId, String beginTime, Stri */ public ListTransactionsResponse listTransactions(String locationId, String beginTime, String endTime, String sortOrder, String cursor) throws ApiException { Object localVarPostBody = null; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling listTransactions"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())); @@ -488,8 +488,8 @@ public ListTransactionsResponse listTransactions(String locationId, String begin localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort_order", sortOrder)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor)); - - + + final String[] localVarAccepts = { "application/json" }; @@ -520,12 +520,12 @@ public ListTransactionsResponse listTransactions(String locationId, String begin */ public CompleteResponselistTransactionsWithHttpInfo(String locationId, String beginTime, String endTime, String sortOrder, String cursor) throws ApiException { Object localVarPostBody = null; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling listTransactions"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())); @@ -540,8 +540,8 @@ public ListTransactionsResponse listTransactions(String locationId, String begin localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort_order", sortOrder)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor)); - - + + final String[] localVarAccepts = { "application/json" }; @@ -567,17 +567,17 @@ public ListTransactionsResponse listTransactions(String locationId, String begin */ public RetrieveTransactionResponse retrieveTransaction(String locationId, String transactionId) throws ApiException { Object localVarPostBody = null; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling retrieveTransaction"); } - + // verify the required parameter 'transactionId' is set if (transactionId == null) { throw new ApiException(400, "Missing the required parameter 'transactionId' when calling retrieveTransaction"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions/{transaction_id}" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())) @@ -589,8 +589,8 @@ public RetrieveTransactionResponse retrieveTransaction(String locationId, String Map localVarFormParams = new HashMap(); - - + + final String[] localVarAccepts = { "application/json" }; @@ -618,17 +618,17 @@ public RetrieveTransactionResponse retrieveTransaction(String locationId, String */ public CompleteResponseretrieveTransactionWithHttpInfo(String locationId, String transactionId) throws ApiException { Object localVarPostBody = null; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling retrieveTransaction"); } - + // verify the required parameter 'transactionId' is set if (transactionId == null) { throw new ApiException(400, "Missing the required parameter 'transactionId' when calling retrieveTransaction"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions/{transaction_id}" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())) @@ -640,8 +640,8 @@ public RetrieveTransactionResponse retrieveTransaction(String locationId, String Map localVarFormParams = new HashMap(); - - + + final String[] localVarAccepts = { "application/json" }; @@ -667,17 +667,17 @@ public RetrieveTransactionResponse retrieveTransaction(String locationId, String */ public VoidTransactionResponse voidTransaction(String locationId, String transactionId) throws ApiException { Object localVarPostBody = null; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling voidTransaction"); } - + // verify the required parameter 'transactionId' is set if (transactionId == null) { throw new ApiException(400, "Missing the required parameter 'transactionId' when calling voidTransaction"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions/{transaction_id}/void" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())) @@ -689,8 +689,8 @@ public VoidTransactionResponse voidTransaction(String locationId, String transac Map localVarFormParams = new HashMap(); - - + + final String[] localVarAccepts = { "application/json" }; @@ -718,17 +718,17 @@ public VoidTransactionResponse voidTransaction(String locationId, String transac */ public CompleteResponsevoidTransactionWithHttpInfo(String locationId, String transactionId) throws ApiException { Object localVarPostBody = null; - + // verify the required parameter 'locationId' is set if (locationId == null) { throw new ApiException(400, "Missing the required parameter 'locationId' when calling voidTransaction"); } - + // verify the required parameter 'transactionId' is set if (transactionId == null) { throw new ApiException(400, "Missing the required parameter 'transactionId' when calling voidTransaction"); } - + // create path and map variables String localVarPath = "/v2/locations/{location_id}/transactions/{transaction_id}/void" .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString())) @@ -740,8 +740,8 @@ public VoidTransactionResponse voidTransaction(String locationId, String transac Map localVarFormParams = new HashMap(); - - + + final String[] localVarAccepts = { "application/json" }; diff --git a/src/main/java/com/squareup/connect/models/CatalogCategory.java b/src/main/java/com/squareup/connect/models/CatalogCategory.java index ff0bcc8..e9f7809 100644 --- a/src/main/java/com/squareup/connect/models/CatalogCategory.java +++ b/src/main/java/com/squareup/connect/models/CatalogCategory.java @@ -70,7 +70,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogCategory {\n"); - + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); @@ -86,6 +86,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/CatalogDiscount.java b/src/main/java/com/squareup/connect/models/CatalogDiscount.java index d9b7133..5b4d7c4 100644 --- a/src/main/java/com/squareup/connect/models/CatalogDiscount.java +++ b/src/main/java/com/squareup/connect/models/CatalogDiscount.java @@ -35,11 +35,11 @@ public class CatalogDiscount { */ public enum DiscountTypeEnum { FIXED_PERCENTAGE("FIXED_PERCENTAGE"), - + FIXED_AMOUNT("FIXED_AMOUNT"), - + VARIABLE_PERCENTAGE("VARIABLE_PERCENTAGE"), - + VARIABLE_AMOUNT("VARIABLE_AMOUNT"); private String value; @@ -215,7 +215,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogDiscount {\n"); - + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" discountType: ").append(toIndentedString(discountType)).append("\n"); sb.append(" percentage: ").append(toIndentedString(percentage)).append("\n"); @@ -236,6 +236,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/CatalogItem.java b/src/main/java/com/squareup/connect/models/CatalogItem.java index 5546a75..aac2ce4 100644 --- a/src/main/java/com/squareup/connect/models/CatalogItem.java +++ b/src/main/java/com/squareup/connect/models/CatalogItem.java @@ -71,13 +71,13 @@ public class CatalogItem { */ public enum ProductTypeEnum { REGULAR("REGULAR"), - + GIFT_CARD("GIFT_CARD"), - + APPOINTMENTS_SERVICE("APPOINTMENTS_SERVICE"), - + RETAIL_ITEM("RETAIL_ITEM"), - + RESTAURANT_ITEM("RESTAURANT_ITEM"); private String value; @@ -411,7 +411,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogItem {\n"); - + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" abbreviation: ").append(toIndentedString(abbreviation)).append("\n"); @@ -440,6 +440,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/CatalogModifier.java b/src/main/java/com/squareup/connect/models/CatalogModifier.java index be218ec..ae297bb 100644 --- a/src/main/java/com/squareup/connect/models/CatalogModifier.java +++ b/src/main/java/com/squareup/connect/models/CatalogModifier.java @@ -93,7 +93,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogModifier {\n"); - + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" priceMoney: ").append(toIndentedString(priceMoney)).append("\n"); sb.append("}"); @@ -110,6 +110,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/CatalogModifierList.java b/src/main/java/com/squareup/connect/models/CatalogModifierList.java index ef94bd3..2ea24ae 100644 --- a/src/main/java/com/squareup/connect/models/CatalogModifierList.java +++ b/src/main/java/com/squareup/connect/models/CatalogModifierList.java @@ -37,7 +37,7 @@ public class CatalogModifierList { */ public enum SelectionTypeEnum { SINGLE("SINGLE"), - + MULTIPLE("MULTIPLE"); private String value; @@ -152,7 +152,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogModifierList {\n"); - + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" selectionType: ").append(toIndentedString(selectionType)).append("\n"); sb.append(" modifiers: ").append(toIndentedString(modifiers)).append("\n"); @@ -170,6 +170,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/CatalogTax.java b/src/main/java/com/squareup/connect/models/CatalogTax.java index b904555..73561cc 100644 --- a/src/main/java/com/squareup/connect/models/CatalogTax.java +++ b/src/main/java/com/squareup/connect/models/CatalogTax.java @@ -34,7 +34,7 @@ public class CatalogTax { */ public enum CalculationPhaseEnum { SUBTOTAL_PHASE("TAX_SUBTOTAL_PHASE"), - + TOTAL_PHASE("TAX_TOTAL_PHASE"); private String value; @@ -67,7 +67,7 @@ public static CalculationPhaseEnum fromValue(String text) { */ public enum InclusionTypeEnum { ADDITIVE("ADDITIVE"), - + INCLUSIVE("INCLUSIVE"); private String value; @@ -240,7 +240,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogTax {\n"); - + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" calculationPhase: ").append(toIndentedString(calculationPhase)).append("\n"); sb.append(" inclusionType: ").append(toIndentedString(inclusionType)).append("\n"); @@ -261,6 +261,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/CreateOrderRequestDiscount.java b/src/main/java/com/squareup/connect/models/CreateOrderRequestDiscount.java index 7be026e..927f0ea 100644 --- a/src/main/java/com/squareup/connect/models/CreateOrderRequestDiscount.java +++ b/src/main/java/com/squareup/connect/models/CreateOrderRequestDiscount.java @@ -137,7 +137,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateOrderRequestDiscount {\n"); - + sb.append(" catalogObjectId: ").append(toIndentedString(catalogObjectId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" percentage: ").append(toIndentedString(percentage)).append("\n"); @@ -156,6 +156,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/CreateOrderRequestLineItem.java b/src/main/java/com/squareup/connect/models/CreateOrderRequestLineItem.java index 7fe4695..8d3a053 100644 --- a/src/main/java/com/squareup/connect/models/CreateOrderRequestLineItem.java +++ b/src/main/java/com/squareup/connect/models/CreateOrderRequestLineItem.java @@ -267,7 +267,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateOrderRequestLineItem {\n"); - + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); sb.append(" basePriceMoney: ").append(toIndentedString(basePriceMoney)).append("\n"); @@ -291,6 +291,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/Error.java b/src/main/java/com/squareup/connect/models/Error.java index d48e2f7..d32dc59 100644 --- a/src/main/java/com/squareup/connect/models/Error.java +++ b/src/main/java/com/squareup/connect/models/Error.java @@ -31,15 +31,15 @@ public class Error { */ public enum CategoryEnum { API_ERROR("API_ERROR"), - + AUTHENTICATION_ERROR("AUTHENTICATION_ERROR"), - + INVALID_REQUEST_ERROR("INVALID_REQUEST_ERROR"), - + RATE_LIMIT_ERROR("RATE_LIMIT_ERROR"), - + PAYMENT_METHOD_ERROR("PAYMENT_METHOD_ERROR"), - + REFUND_ERROR("REFUND_ERROR"); private String value; @@ -72,167 +72,167 @@ public static CategoryEnum fromValue(String text) { */ public enum CodeEnum { INTERNAL_SERVER_ERROR("INTERNAL_SERVER_ERROR"), - + UNAUTHORIZED("UNAUTHORIZED"), - + ACCESS_TOKEN_EXPIRED("ACCESS_TOKEN_EXPIRED"), - + ACCESS_TOKEN_REVOKED("ACCESS_TOKEN_REVOKED"), - + FORBIDDEN("FORBIDDEN"), - + INSUFFICIENT_SCOPES("INSUFFICIENT_SCOPES"), - + APPLICATION_DISABLED("APPLICATION_DISABLED"), - + V1_APPLICATION("V1_APPLICATION"), - + V1_ACCESS_TOKEN("V1_ACCESS_TOKEN"), - + CARD_PROCESSING_NOT_ENABLED("CARD_PROCESSING_NOT_ENABLED"), - + BAD_REQUEST("BAD_REQUEST"), - + MISSING_REQUIRED_PARAMETER("MISSING_REQUIRED_PARAMETER"), - + INCORRECT_TYPE("INCORRECT_TYPE"), - + INVALID_TIME("INVALID_TIME"), - + INVALID_TIME_RANGE("INVALID_TIME_RANGE"), - + INVALID_VALUE("INVALID_VALUE"), - + INVALID_CURSOR("INVALID_CURSOR"), - + UNKNOWN_QUERY_PARAMETER("UNKNOWN_QUERY_PARAMETER"), - + CONFLICTING_PARAMETERS("CONFLICTING_PARAMETERS"), - + EXPECTED_JSON_BODY("EXPECTED_JSON_BODY"), - + INVALID_SORT_ORDER("INVALID_SORT_ORDER"), - + VALUE_REGEX_MISMATCH("VALUE_REGEX_MISMATCH"), - + VALUE_TOO_SHORT("VALUE_TOO_SHORT"), - + VALUE_TOO_LONG("VALUE_TOO_LONG"), - + VALUE_TOO_LOW("VALUE_TOO_LOW"), - + VALUE_TOO_HIGH("VALUE_TOO_HIGH"), - + VALUE_EMPTY("VALUE_EMPTY"), - + ARRAY_LENGTH_TOO_LONG("ARRAY_LENGTH_TOO_LONG"), - + ARRAY_LENGTH_TOO_SHORT("ARRAY_LENGTH_TOO_SHORT"), - + ARRAY_EMPTY("ARRAY_EMPTY"), - + EXPECTED_BOOLEAN("EXPECTED_BOOLEAN"), - + EXPECTED_INTEGER("EXPECTED_INTEGER"), - + EXPECTED_FLOAT("EXPECTED_FLOAT"), - + EXPECTED_STRING("EXPECTED_STRING"), - + EXPECTED_OBJECT("EXPECTED_OBJECT"), - + EXPECTED_ARRAY("EXPECTED_ARRAY"), - + EXPECTED_BASE64_ENCODED_BYTE_ARRAY("EXPECTED_BASE64_ENCODED_BYTE_ARRAY"), - + INVALID_ARRAY_VALUE("INVALID_ARRAY_VALUE"), - + INVALID_ENUM_VALUE("INVALID_ENUM_VALUE"), - + INVALID_CONTENT_TYPE("INVALID_CONTENT_TYPE"), - + INVALID_FORM_VALUE("INVALID_FORM_VALUE"), - + ONE_INSTRUMENT_EXPECTED("ONE_INSTRUMENT_EXPECTED"), - + NO_FIELDS_SET("NO_FIELDS_SET"), - + CARD_EXPIRED("CARD_EXPIRED"), - + INVALID_EXPIRATION("INVALID_EXPIRATION"), - + INVALID_EXPIRATION_YEAR("INVALID_EXPIRATION_YEAR"), - + INVALID_EXPIRATION_DATE("INVALID_EXPIRATION_DATE"), - + UNSUPPORTED_CARD_BRAND("UNSUPPORTED_CARD_BRAND"), - + UNSUPPORTED_ENTRY_METHOD("UNSUPPORTED_ENTRY_METHOD"), - + INVALID_CARD("INVALID_CARD"), - + DELAYED_TRANSACTION_EXPIRED("DELAYED_TRANSACTION_EXPIRED"), - + DELAYED_TRANSACTION_CANCELED("DELAYED_TRANSACTION_CANCELED"), - + DELAYED_TRANSACTION_CAPTURED("DELAYED_TRANSACTION_CAPTURED"), - + DELAYED_TRANSACTION_FAILED("DELAYED_TRANSACTION_FAILED"), - + CARD_TOKEN_EXPIRED("CARD_TOKEN_EXPIRED"), - + CARD_TOKEN_USED("CARD_TOKEN_USED"), - + AMOUNT_TOO_HIGH("AMOUNT_TOO_HIGH"), - + UNSUPPORTED_INSTRUMENT_TYPE("UNSUPPORTED_INSTRUMENT_TYPE"), - + REFUND_AMOUNT_INVALID("REFUND_AMOUNT_INVALID"), - + REFUND_ALREADY_PENDING("REFUND_ALREADY_PENDING"), - + PAYMENT_NOT_REFUNDABLE("PAYMENT_NOT_REFUNDABLE"), - + INVALID_CARD_DATA("INVALID_CARD_DATA"), - + LOCATION_MISMATCH("LOCATION_MISMATCH"), - + IDEMPOTENCY_KEY_REUSED("IDEMPOTENCY_KEY_REUSED"), - + UNEXPECTED_VALUE("UNEXPECTED_VALUE"), - + SANDBOX_NOT_SUPPORTED("SANDBOX_NOT_SUPPORTED"), - + INVALID_EMAIL_ADDRESS("INVALID_EMAIL_ADDRESS"), - + INVALID_PHONE_NUMBER("INVALID_PHONE_NUMBER"), - + CHECKOUT_EXPIRED("CHECKOUT_EXPIRED"), - + CARD_DECLINED("CARD_DECLINED"), - + VERIFY_CVV_FAILURE("VERIFY_CVV_FAILURE"), - + VERIFY_AVS_FAILURE("VERIFY_AVS_FAILURE"), - + CARD_DECLINED_CALL_ISSUER("CARD_DECLINED_CALL_ISSUER"), - + NOT_FOUND("NOT_FOUND"), - + REQUEST_TIMEOUT("REQUEST_TIMEOUT"), - + CONFLICT("CONFLICT"), - + REQUEST_ENTITY_TOO_LARGE("REQUEST_ENTITY_TOO_LARGE"), - + UNSUPPORTED_MEDIA_TYPE("UNSUPPORTED_MEDIA_TYPE"), - + RATE_LIMITED("RATE_LIMITED"), - + NOT_IMPLEMENTED("NOT_IMPLEMENTED"), - + SERVICE_UNAVAILABLE("SERVICE_UNAVAILABLE"), - + GATEWAY_TIMEOUT("GATEWAY_TIMEOUT"); private String value; @@ -364,7 +364,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Error {\n"); - + sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); @@ -383,6 +383,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/ErrorCode.java b/src/main/java/com/squareup/connect/models/ErrorCode.java index 40605a5..3b62aed 100644 --- a/src/main/java/com/squareup/connect/models/ErrorCode.java +++ b/src/main/java/com/squareup/connect/models/ErrorCode.java @@ -22,169 +22,169 @@ * Indicates specific errors that can occur during a request to the Connect API. */ public enum ErrorCode { - + INTERNAL_SERVER_ERROR("INTERNAL_SERVER_ERROR"), - + UNAUTHORIZED("UNAUTHORIZED"), - + ACCESS_TOKEN_EXPIRED("ACCESS_TOKEN_EXPIRED"), - + ACCESS_TOKEN_REVOKED("ACCESS_TOKEN_REVOKED"), - + FORBIDDEN("FORBIDDEN"), - + INSUFFICIENT_SCOPES("INSUFFICIENT_SCOPES"), - + APPLICATION_DISABLED("APPLICATION_DISABLED"), - + V1_APPLICATION("V1_APPLICATION"), - + V1_ACCESS_TOKEN("V1_ACCESS_TOKEN"), - + CARD_PROCESSING_NOT_ENABLED("CARD_PROCESSING_NOT_ENABLED"), - + BAD_REQUEST("BAD_REQUEST"), - + MISSING_REQUIRED_PARAMETER("MISSING_REQUIRED_PARAMETER"), - + INCORRECT_TYPE("INCORRECT_TYPE"), - + INVALID_TIME("INVALID_TIME"), - + INVALID_TIME_RANGE("INVALID_TIME_RANGE"), - + INVALID_VALUE("INVALID_VALUE"), - + INVALID_CURSOR("INVALID_CURSOR"), - + UNKNOWN_QUERY_PARAMETER("UNKNOWN_QUERY_PARAMETER"), - + CONFLICTING_PARAMETERS("CONFLICTING_PARAMETERS"), - + EXPECTED_JSON_BODY("EXPECTED_JSON_BODY"), - + INVALID_SORT_ORDER("INVALID_SORT_ORDER"), - + VALUE_REGEX_MISMATCH("VALUE_REGEX_MISMATCH"), - + VALUE_TOO_SHORT("VALUE_TOO_SHORT"), - + VALUE_TOO_LONG("VALUE_TOO_LONG"), - + VALUE_TOO_LOW("VALUE_TOO_LOW"), - + VALUE_TOO_HIGH("VALUE_TOO_HIGH"), - + VALUE_EMPTY("VALUE_EMPTY"), - + ARRAY_LENGTH_TOO_LONG("ARRAY_LENGTH_TOO_LONG"), - + ARRAY_LENGTH_TOO_SHORT("ARRAY_LENGTH_TOO_SHORT"), - + ARRAY_EMPTY("ARRAY_EMPTY"), - + EXPECTED_BOOLEAN("EXPECTED_BOOLEAN"), - + EXPECTED_INTEGER("EXPECTED_INTEGER"), - + EXPECTED_FLOAT("EXPECTED_FLOAT"), - + EXPECTED_STRING("EXPECTED_STRING"), - + EXPECTED_OBJECT("EXPECTED_OBJECT"), - + EXPECTED_ARRAY("EXPECTED_ARRAY"), - + EXPECTED_BASE64_ENCODED_BYTE_ARRAY("EXPECTED_BASE64_ENCODED_BYTE_ARRAY"), - + INVALID_ARRAY_VALUE("INVALID_ARRAY_VALUE"), - + INVALID_ENUM_VALUE("INVALID_ENUM_VALUE"), - + INVALID_CONTENT_TYPE("INVALID_CONTENT_TYPE"), - + INVALID_FORM_VALUE("INVALID_FORM_VALUE"), - + ONE_INSTRUMENT_EXPECTED("ONE_INSTRUMENT_EXPECTED"), - + NO_FIELDS_SET("NO_FIELDS_SET"), - + CARD_EXPIRED("CARD_EXPIRED"), - + INVALID_EXPIRATION("INVALID_EXPIRATION"), - + INVALID_EXPIRATION_YEAR("INVALID_EXPIRATION_YEAR"), - + INVALID_EXPIRATION_DATE("INVALID_EXPIRATION_DATE"), - + UNSUPPORTED_CARD_BRAND("UNSUPPORTED_CARD_BRAND"), - + UNSUPPORTED_ENTRY_METHOD("UNSUPPORTED_ENTRY_METHOD"), - + INVALID_CARD("INVALID_CARD"), - + DELAYED_TRANSACTION_EXPIRED("DELAYED_TRANSACTION_EXPIRED"), - + DELAYED_TRANSACTION_CANCELED("DELAYED_TRANSACTION_CANCELED"), - + DELAYED_TRANSACTION_CAPTURED("DELAYED_TRANSACTION_CAPTURED"), - + DELAYED_TRANSACTION_FAILED("DELAYED_TRANSACTION_FAILED"), - + CARD_TOKEN_EXPIRED("CARD_TOKEN_EXPIRED"), - + CARD_TOKEN_USED("CARD_TOKEN_USED"), - + AMOUNT_TOO_HIGH("AMOUNT_TOO_HIGH"), - + UNSUPPORTED_INSTRUMENT_TYPE("UNSUPPORTED_INSTRUMENT_TYPE"), - + REFUND_AMOUNT_INVALID("REFUND_AMOUNT_INVALID"), - + REFUND_ALREADY_PENDING("REFUND_ALREADY_PENDING"), - + PAYMENT_NOT_REFUNDABLE("PAYMENT_NOT_REFUNDABLE"), - + INVALID_CARD_DATA("INVALID_CARD_DATA"), - + LOCATION_MISMATCH("LOCATION_MISMATCH"), - + IDEMPOTENCY_KEY_REUSED("IDEMPOTENCY_KEY_REUSED"), - + UNEXPECTED_VALUE("UNEXPECTED_VALUE"), - + SANDBOX_NOT_SUPPORTED("SANDBOX_NOT_SUPPORTED"), - + INVALID_EMAIL_ADDRESS("INVALID_EMAIL_ADDRESS"), - + INVALID_PHONE_NUMBER("INVALID_PHONE_NUMBER"), - + CHECKOUT_EXPIRED("CHECKOUT_EXPIRED"), - + CARD_DECLINED("CARD_DECLINED"), - + VERIFY_CVV_FAILURE("VERIFY_CVV_FAILURE"), - + VERIFY_AVS_FAILURE("VERIFY_AVS_FAILURE"), - + CARD_DECLINED_CALL_ISSUER("CARD_DECLINED_CALL_ISSUER"), - + NOT_FOUND("NOT_FOUND"), - + REQUEST_TIMEOUT("REQUEST_TIMEOUT"), - + CONFLICT("CONFLICT"), - + REQUEST_ENTITY_TOO_LARGE("REQUEST_ENTITY_TOO_LARGE"), - + UNSUPPORTED_MEDIA_TYPE("UNSUPPORTED_MEDIA_TYPE"), - + RATE_LIMITED("RATE_LIMITED"), - + NOT_IMPLEMENTED("NOT_IMPLEMENTED"), - + SERVICE_UNAVAILABLE("SERVICE_UNAVAILABLE"), - + GATEWAY_TIMEOUT("GATEWAY_TIMEOUT"); private String value; diff --git a/src/main/java/com/squareup/connect/models/V1Refund.java b/src/main/java/com/squareup/connect/models/V1Refund.java index 633a143..133bfe9 100644 --- a/src/main/java/com/squareup/connect/models/V1Refund.java +++ b/src/main/java/com/squareup/connect/models/V1Refund.java @@ -27,11 +27,11 @@ public class V1Refund { /** - * The type of refund + * The type of refund */ public enum TypeEnum { FULL("FULL"), - + PARTIAL("PARTIAL"); private String value; @@ -83,7 +83,7 @@ public V1Refund type(TypeEnum type) { } /** - * The type of refund + * The type of refund * @return type **/ @ApiModelProperty(value = "The type of refund ") @@ -191,7 +191,7 @@ public V1Refund merchantId(String merchantId) { } /** - * + * * @return merchantId **/ @ApiModelProperty(value = "") @@ -232,7 +232,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Refund {\n"); - + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" refundedMoney: ").append(toIndentedString(refundedMoney)).append("\n"); @@ -254,6 +254,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/V1SettlementEntry.java b/src/main/java/com/squareup/connect/models/V1SettlementEntry.java index 63c8be1..1b2dcfa 100644 --- a/src/main/java/com/squareup/connect/models/V1SettlementEntry.java +++ b/src/main/java/com/squareup/connect/models/V1SettlementEntry.java @@ -34,43 +34,43 @@ public class V1SettlementEntry { */ public enum TypeEnum { ADJUSTMENT("ADJUSTMENT"), - + BALANCE_CHARGE("BALANCE_CHARGE"), - + CHARGE("CHARGE"), - + FREE_PROCESSING("FREE_PROCESSING"), - + HOLD_ADJUSTMENT("HOLD_ADJUSTMENT"), - + PAID_SERVICE_FEE("PAID_SERVICE_FEE"), - + PAID_SERVICE_FEE_REFUND("PAID_SERVICE_FEE_REFUND"), - + REDEMPTION_CODE("REDEMPTION_CODE"), - + REFUND("REFUND"), - + RETURNED_PAYOUT("RETURNED_PAYOUT"), - + SQUARE_CAPITAL_ADVANCE("SQUARE_CAPITAL_ADVANCE"), - + SQUARE_CAPITAL_PAYMENT("SQUARE_CAPITAL_PAYMENT"), - + SQUARE_CAPITAL_REVERSED_PAYMENT("SQUARE_CAPITAL_REVERSED_PAYMENT"), - + SUBSCRIPTION_FEE("SUBSCRIPTION_FEE"), - + SUBSCRIPTION_FEE_REFUND("SUBSCRIPTION_FEE_REFUND"), - - INCENTED_PAYMENT("INCENTED_PAYMENT"), - + OTHER("OTHER"), - + + INCENTED_PAYMENT("INCENTED_PAYMENT"), + RETURNED_ACH_ENTRY("RETURNED_ACH_ENTRY"), - + RETURNED_SQUARE_275("RETURNED_SQUARE_275"), - + SQUARE_275("SQUARE_275"); private String value; @@ -202,7 +202,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SettlementEntry {\n"); - + sb.append(" paymentId: ").append(toIndentedString(paymentId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" amountMoney: ").append(toIndentedString(amountMoney)).append("\n"); @@ -221,6 +221,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/src/main/java/com/squareup/connect/models/V1Tender.java b/src/main/java/com/squareup/connect/models/V1Tender.java index 4d3b7ef..6be89ea 100644 --- a/src/main/java/com/squareup/connect/models/V1Tender.java +++ b/src/main/java/com/squareup/connect/models/V1Tender.java @@ -34,19 +34,19 @@ public class V1Tender { */ public enum TypeEnum { CREDIT_CARD("CREDIT_CARD"), - + CASH("CASH"), - + THIRD_PARTY_CARD("THIRD_PARTY_CARD"), - + NO_SALE("NO_SALE"), - + SQUARE_WALLET("SQUARE_WALLET"), - + SQUARE_GIFT_CARD("SQUARE_GIFT_CARD"), - + UNKNOWN("UNKNOWN"), - + OTHER("OTHER"); private String value; @@ -88,21 +88,21 @@ public static TypeEnum fromValue(String text) { */ public enum CardBrandEnum { OTHER_BRAND("OTHER_BRAND"), - + VISA("VISA"), - + MASTER_CARD("MASTER_CARD"), - + AMERICAN_EXPRESS("AMERICAN_EXPRESS"), - + DISCOVER("DISCOVER"), - + DISCOVER_DINERS("DISCOVER_DINERS"), - + JCB("JCB"), - + CHINA_UNIONPAY("CHINA_UNIONPAY"), - + SQUARE_GIFT_CARD("SQUARE_GIFT_CARD"); private String value; @@ -138,17 +138,17 @@ public static CardBrandEnum fromValue(String text) { */ public enum EntryMethodEnum { MANUAL("MANUAL"), - + SCANNED("SCANNED"), - + SQUARE_CASH("SQUARE_CASH"), - + SQUARE_WALLET("SQUARE_WALLET"), - + SWIPED("SWIPED"), - + WEB_FORM("WEB_FORM"), - + OTHER("OTHER"); private String value; @@ -460,7 +460,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Tender {\n"); - + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -488,6 +488,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + }