index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListRefundsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Refund;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class V1ListRefundsResponse {
@JsonProperty("items")
private List<V1Refund> items = new ArrayList<V1Refund>();
public V1ListRefundsResponse items(List<V1Refund> items) {
this.items = items;
return this;
}
public V1ListRefundsResponse addItemsItem(V1Refund itemsItem) {
this.items.add(itemsItem);
return this;
}
/**
*
* @return items
**/
@ApiModelProperty(value = "")
public List<V1Refund> getItems() {
return items;
}
public void setItems(List<V1Refund> items) {
this.items = items;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ListRefundsResponse v1ListRefundsResponse = (V1ListRefundsResponse) o;
return Objects.equals(this.items, v1ListRefundsResponse.items);
}
@Override
public int hashCode() {
return Objects.hash(items);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ListRefundsResponse {\n");
sb.append(" items: ").append(toIndentedString(items)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,900 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListTimecardsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Timecard;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class V1ListTimecardsResponse {
@JsonProperty("items")
private List<V1Timecard> items = new ArrayList<V1Timecard>();
public V1ListTimecardsResponse items(List<V1Timecard> items) {
this.items = items;
return this;
}
public V1ListTimecardsResponse addItemsItem(V1Timecard itemsItem) {
this.items.add(itemsItem);
return this;
}
/**
*
* @return items
**/
@ApiModelProperty(value = "")
public List<V1Timecard> getItems() {
return items;
}
public void setItems(List<V1Timecard> items) {
this.items = items;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ListTimecardsResponse v1ListTimecardsResponse = (V1ListTimecardsResponse) o;
return Objects.equals(this.items, v1ListTimecardsResponse.items);
}
@Override
public int hashCode() {
return Objects.hash(items);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ListTimecardsResponse {\n");
sb.append(" items: ").append(toIndentedString(items)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,901 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CustomerSort.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Indicates the field to use for sorting customer profiles.
*/
@ApiModel(description = "Indicates the field to use for sorting customer profiles.")
public class CustomerSort {
@JsonProperty("field")
private String field = null;
@JsonProperty("order")
private String order = null;
public CustomerSort field(String field) {
this.field = field;
return this;
}
/**
* Indicates the information used to sort the results. For example, by creation date. Default: `DEFAULT`. See [CustomerSortField](#type-customersortfield) for possible values
* @return field
**/
@ApiModelProperty(value = "Indicates the information used to sort the results. For example, by creation date. Default: `DEFAULT`. See [CustomerSortField](#type-customersortfield) for possible values")
public String getField() {
return field;
}
public void setField(String field) {
this.field = field;
}
public CustomerSort order(String order) {
this.order = order;
return this;
}
/**
* Indicates the order in which results should be displayed based on the value of the sort field. String comparisons use standard alphabetic comparison to determine order. Strings representing numbers are sorted as strings. Default: `ASC`. See [SortOrder](#type-sortorder) for possible values
* @return order
**/
@ApiModelProperty(value = "Indicates the order in which results should be displayed based on the value of the sort field. String comparisons use standard alphabetic comparison to determine order. Strings representing numbers are sorted as strings. Default: `ASC`. See [SortOrder](#type-sortorder) for possible values")
public String getOrder() {
return order;
}
public void setOrder(String order) {
this.order = order;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CustomerSort customerSort = (CustomerSort) o;
return Objects.equals(this.field, customerSort.field) &&
Objects.equals(this.order, customerSort.order);
}
@Override
public int hashCode() {
return Objects.hash(field, order);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CustomerSort {\n");
sb.append(" field: ").append(toIndentedString(field)).append("\n");
sb.append(" order: ").append(toIndentedString(order)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,902 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListTransactionsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.Transaction;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the [ListTransactions](#endpoint-listtransactions) endpoint. One of `errors` or `transactions` is present in a given response (never both).
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the [ListTransactions](#endpoint-listtransactions) endpoint. One of `errors` or `transactions` is present in a given response (never both).")
public class ListTransactionsResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("transactions")
private List<Transaction> transactions = new ArrayList<Transaction>();
@JsonProperty("cursor")
private String cursor = null;
public ListTransactionsResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public ListTransactionsResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public ListTransactionsResponse transactions(List<Transaction> transactions) {
this.transactions = transactions;
return this;
}
public ListTransactionsResponse addTransactionsItem(Transaction transactionsItem) {
this.transactions.add(transactionsItem);
return this;
}
/**
* An array of transactions that match your query.
* @return transactions
**/
@ApiModelProperty(value = "An array of transactions that match your query.")
public List<Transaction> getTransactions() {
return transactions;
}
public void setTransactions(List<Transaction> transactions) {
this.transactions = transactions;
}
public ListTransactionsResponse cursor(String cursor) {
this.cursor = cursor;
return this;
}
/**
* A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information.
* @return cursor
**/
@ApiModelProperty(value = "A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information.")
public String getCursor() {
return cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListTransactionsResponse listTransactionsResponse = (ListTransactionsResponse) o;
return Objects.equals(this.errors, listTransactionsResponse.errors) &&
Objects.equals(this.transactions, listTransactionsResponse.transactions) &&
Objects.equals(this.cursor, listTransactionsResponse.cursor);
}
@Override
public int hashCode() {
return Objects.hash(errors, transactions, cursor);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListTransactionsResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" transactions: ").append(toIndentedString(transactions)).append("\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,903 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/BusinessHoursPeriod.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents a period of time during which a business location is open.
*/
@ApiModel(description = "Represents a period of time during which a business location is open.")
public class BusinessHoursPeriod {
@JsonProperty("day_of_week")
private String dayOfWeek = null;
@JsonProperty("start_local_time")
private String startLocalTime = null;
@JsonProperty("end_local_time")
private String endLocalTime = null;
public BusinessHoursPeriod dayOfWeek(String dayOfWeek) {
this.dayOfWeek = dayOfWeek;
return this;
}
/**
* The day of week for this time period. See [DayOfWeek](#type-dayofweek) for possible values
* @return dayOfWeek
**/
@ApiModelProperty(value = "The day of week for this time period. See [DayOfWeek](#type-dayofweek) for possible values")
public String getDayOfWeek() {
return dayOfWeek;
}
public void setDayOfWeek(String dayOfWeek) {
this.dayOfWeek = dayOfWeek;
}
public BusinessHoursPeriod startLocalTime(String startLocalTime) {
this.startLocalTime = startLocalTime;
return this;
}
/**
* The start time of a business hours period, specified in local time using partial-time RFC3339 format.
* @return startLocalTime
**/
@ApiModelProperty(value = "The start time of a business hours period, specified in local time using partial-time RFC3339 format.")
public String getStartLocalTime() {
return startLocalTime;
}
public void setStartLocalTime(String startLocalTime) {
this.startLocalTime = startLocalTime;
}
public BusinessHoursPeriod endLocalTime(String endLocalTime) {
this.endLocalTime = endLocalTime;
return this;
}
/**
* The end time of a business hours period, specified in local time using partial-time RFC3339 format.
* @return endLocalTime
**/
@ApiModelProperty(value = "The end time of a business hours period, specified in local time using partial-time RFC3339 format.")
public String getEndLocalTime() {
return endLocalTime;
}
public void setEndLocalTime(String endLocalTime) {
this.endLocalTime = endLocalTime;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BusinessHoursPeriod businessHoursPeriod = (BusinessHoursPeriod) o;
return Objects.equals(this.dayOfWeek, businessHoursPeriod.dayOfWeek) &&
Objects.equals(this.startLocalTime, businessHoursPeriod.startLocalTime) &&
Objects.equals(this.endLocalTime, businessHoursPeriod.endLocalTime);
}
@Override
public int hashCode() {
return Objects.hash(dayOfWeek, startLocalTime, endLocalTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BusinessHoursPeriod {\n");
sb.append(" dayOfWeek: ").append(toIndentedString(dayOfWeek)).append("\n");
sb.append(" startLocalTime: ").append(toIndentedString(startLocalTime)).append("\n");
sb.append(" endLocalTime: ").append(toIndentedString(endLocalTime)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,904 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RetrieveCatalogObjectResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.CatalogObject;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class RetrieveCatalogObjectResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("object")
private CatalogObject object = null;
@JsonProperty("related_objects")
private List<CatalogObject> relatedObjects = new ArrayList<CatalogObject>();
public RetrieveCatalogObjectResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public RetrieveCatalogObjectResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Information on any errors encountered.
* @return errors
**/
@ApiModelProperty(value = "Information on any errors encountered.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public RetrieveCatalogObjectResponse object(CatalogObject object) {
this.object = object;
return this;
}
/**
* The CatalogObjects returned.
* @return object
**/
@ApiModelProperty(value = "The CatalogObjects returned.")
public CatalogObject getObject() {
return object;
}
public void setObject(CatalogObject object) {
this.object = object;
}
public RetrieveCatalogObjectResponse relatedObjects(List<CatalogObject> relatedObjects) {
this.relatedObjects = relatedObjects;
return this;
}
public RetrieveCatalogObjectResponse addRelatedObjectsItem(CatalogObject relatedObjectsItem) {
this.relatedObjects.add(relatedObjectsItem);
return this;
}
/**
* A list of CatalogObjects referenced by the object in the `object` field.
* @return relatedObjects
**/
@ApiModelProperty(value = "A list of CatalogObjects referenced by the object in the `object` field.")
public List<CatalogObject> getRelatedObjects() {
return relatedObjects;
}
public void setRelatedObjects(List<CatalogObject> relatedObjects) {
this.relatedObjects = relatedObjects;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RetrieveCatalogObjectResponse retrieveCatalogObjectResponse = (RetrieveCatalogObjectResponse) o;
return Objects.equals(this.errors, retrieveCatalogObjectResponse.errors) &&
Objects.equals(this.object, retrieveCatalogObjectResponse.object) &&
Objects.equals(this.relatedObjects, retrieveCatalogObjectResponse.relatedObjects);
}
@Override
public int hashCode() {
return Objects.hash(errors, object, relatedObjects);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetrieveCatalogObjectResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" object: ").append(toIndentedString(object)).append("\n");
sb.append(" relatedObjects: ").append(toIndentedString(relatedObjects)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,905 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateRefundRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Money;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Defines the body parameters that can be included in a request to the [CreateRefund](#endpoint-createrefund) endpoint. Deprecated - recommend using [RefundPayment](#endpoint-refunds-refundpayment)
*/
@ApiModel(description = "Defines the body parameters that can be included in a request to the [CreateRefund](#endpoint-createrefund) endpoint. Deprecated - recommend using [RefundPayment](#endpoint-refunds-refundpayment)")
public class CreateRefundRequest {
@JsonProperty("idempotency_key")
private String idempotencyKey = null;
@JsonProperty("tender_id")
private String tenderId = null;
@JsonProperty("reason")
private String reason = null;
@JsonProperty("amount_money")
private Money amountMoney = null;
public CreateRefundRequest idempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
return this;
}
/**
* A value you specify that uniquely identifies this refund among refunds you've created for the tender. If you're unsure whether a particular refund succeeded, you can reattempt it with the same idempotency key without worrying about duplicating the refund. See [Idempotency keys](#idempotencykeys) for more information.
* @return idempotencyKey
**/
@ApiModelProperty(required = true, value = "A value you specify that uniquely identifies this refund among refunds you've created for the tender. If you're unsure whether a particular refund succeeded, you can reattempt it with the same idempotency key without worrying about duplicating the refund. See [Idempotency keys](#idempotencykeys) for more information.")
public String getIdempotencyKey() {
return idempotencyKey;
}
public void setIdempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
}
public CreateRefundRequest tenderId(String tenderId) {
this.tenderId = tenderId;
return this;
}
/**
* The ID of the tender to refund. A ``Transaction`` has one or more `tenders` (i.e., methods of payment) associated with it, and you refund each tender separately with the Connect API.
* @return tenderId
**/
@ApiModelProperty(required = true, value = "The ID of the tender to refund. A ``Transaction`` has one or more `tenders` (i.e., methods of payment) associated with it, and you refund each tender separately with the Connect API.")
public String getTenderId() {
return tenderId;
}
public void setTenderId(String tenderId) {
this.tenderId = tenderId;
}
public CreateRefundRequest reason(String reason) {
this.reason = reason;
return this;
}
/**
* A description of the reason for the refund. Default value: `Refund via API`
* @return reason
**/
@ApiModelProperty(value = "A description of the reason for the refund. Default value: `Refund via API`")
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public CreateRefundRequest amountMoney(Money amountMoney) {
this.amountMoney = amountMoney;
return this;
}
/**
* The amount of money to refund. Note that you specify the amount in the __smallest denomination of the applicable currency__. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. This amount cannot exceed the amount that was originally charged to the tender that corresponds to `tender_id`.
* @return amountMoney
**/
@ApiModelProperty(required = true, value = "The amount of money to refund. Note that you specify the amount in the __smallest denomination of the applicable currency__. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. This amount cannot exceed the amount that was originally charged to the tender that corresponds to `tender_id`.")
public Money getAmountMoney() {
return amountMoney;
}
public void setAmountMoney(Money amountMoney) {
this.amountMoney = amountMoney;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateRefundRequest createRefundRequest = (CreateRefundRequest) o;
return Objects.equals(this.idempotencyKey, createRefundRequest.idempotencyKey) &&
Objects.equals(this.tenderId, createRefundRequest.tenderId) &&
Objects.equals(this.reason, createRefundRequest.reason) &&
Objects.equals(this.amountMoney, createRefundRequest.amountMoney);
}
@Override
public int hashCode() {
return Objects.hash(idempotencyKey, tenderId, reason, amountMoney);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateRefundRequest {\n");
sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).append("\n");
sb.append(" tenderId: ").append(toIndentedString(tenderId)).append("\n");
sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
sb.append(" amountMoney: ").append(toIndentedString(amountMoney)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,906 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateShiftResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.Shift;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* The response to the request to create a `Shift`. Contains the created `Shift` object. May contain a set of `Error` objects if the request resulted in errors.
*/
@ApiModel(description = "The response to the request to create a `Shift`. Contains the created `Shift` object. May contain a set of `Error` objects if the request resulted in errors.")
public class CreateShiftResponse {
@JsonProperty("shift")
private Shift shift = null;
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public CreateShiftResponse shift(Shift shift) {
this.shift = shift;
return this;
}
/**
* The `Shift` that was created on the request.
* @return shift
**/
@ApiModelProperty(value = "The `Shift` that was created on the request.")
public Shift getShift() {
return shift;
}
public void setShift(Shift shift) {
this.shift = shift;
}
public CreateShiftResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public CreateShiftResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateShiftResponse createShiftResponse = (CreateShiftResponse) o;
return Objects.equals(this.shift, createShiftResponse.shift) &&
Objects.equals(this.errors, createShiftResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(shift, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateShiftResponse {\n");
sb.append(" shift: ").append(toIndentedString(shift)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,907 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/BatchDeleteCatalogObjectsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class BatchDeleteCatalogObjectsResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("deleted_object_ids")
private List<String> deletedObjectIds = new ArrayList<String>();
@JsonProperty("deleted_at")
private String deletedAt = null;
public BatchDeleteCatalogObjectsResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public BatchDeleteCatalogObjectsResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* The set of Errors encountered.
* @return errors
**/
@ApiModelProperty(value = "The set of Errors encountered.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public BatchDeleteCatalogObjectsResponse deletedObjectIds(List<String> deletedObjectIds) {
this.deletedObjectIds = deletedObjectIds;
return this;
}
public BatchDeleteCatalogObjectsResponse addDeletedObjectIdsItem(String deletedObjectIdsItem) {
this.deletedObjectIds.add(deletedObjectIdsItem);
return this;
}
/**
* The IDs of all CatalogObjects deleted by this request.
* @return deletedObjectIds
**/
@ApiModelProperty(value = "The IDs of all CatalogObjects deleted by this request.")
public List<String> getDeletedObjectIds() {
return deletedObjectIds;
}
public void setDeletedObjectIds(List<String> deletedObjectIds) {
this.deletedObjectIds = deletedObjectIds;
}
public BatchDeleteCatalogObjectsResponse deletedAt(String deletedAt) {
this.deletedAt = deletedAt;
return this;
}
/**
* The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\".
* @return deletedAt
**/
@ApiModelProperty(value = "The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\".")
public String getDeletedAt() {
return deletedAt;
}
public void setDeletedAt(String deletedAt) {
this.deletedAt = deletedAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BatchDeleteCatalogObjectsResponse batchDeleteCatalogObjectsResponse = (BatchDeleteCatalogObjectsResponse) o;
return Objects.equals(this.errors, batchDeleteCatalogObjectsResponse.errors) &&
Objects.equals(this.deletedObjectIds, batchDeleteCatalogObjectsResponse.deletedObjectIds) &&
Objects.equals(this.deletedAt, batchDeleteCatalogObjectsResponse.deletedAt);
}
@Override
public int hashCode() {
return Objects.hash(errors, deletedObjectIds, deletedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BatchDeleteCatalogObjectsResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" deletedObjectIds: ").append(toIndentedString(deletedObjectIds)).append("\n");
sb.append(" deletedAt: ").append(toIndentedString(deletedAt)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,908 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1CashDrawerEvent.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Money;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* V1CashDrawerEvent
*/
@ApiModel(description = "V1CashDrawerEvent")
public class V1CashDrawerEvent {
@JsonProperty("id")
private String id = null;
@JsonProperty("employee_id")
private String employeeId = null;
@JsonProperty("event_type")
private String eventType = null;
@JsonProperty("event_money")
private V1Money eventMoney = null;
@JsonProperty("created_at")
private String createdAt = null;
@JsonProperty("description")
private String description = null;
public V1CashDrawerEvent id(String id) {
this.id = id;
return this;
}
/**
* The event's unique ID.
* @return id
**/
@ApiModelProperty(value = "The event's unique ID.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public V1CashDrawerEvent employeeId(String employeeId) {
this.employeeId = employeeId;
return this;
}
/**
* The ID of the employee that created the event.
* @return employeeId
**/
@ApiModelProperty(value = "The ID of the employee that created the event.")
public String getEmployeeId() {
return employeeId;
}
public void setEmployeeId(String employeeId) {
this.employeeId = employeeId;
}
public V1CashDrawerEvent eventType(String eventType) {
this.eventType = eventType;
return this;
}
/**
* The type of event that occurred. See [V1CashDrawerEventEventType](#type-v1cashdrawereventeventtype) for possible values
* @return eventType
**/
@ApiModelProperty(value = "The type of event that occurred. See [V1CashDrawerEventEventType](#type-v1cashdrawereventeventtype) for possible values")
public String getEventType() {
return eventType;
}
public void setEventType(String eventType) {
this.eventType = eventType;
}
public V1CashDrawerEvent eventMoney(V1Money eventMoney) {
this.eventMoney = eventMoney;
return this;
}
/**
* The amount of money that was added to or removed from the cash drawer because of the event. This value can be positive (for added money) or negative (for removed money).
* @return eventMoney
**/
@ApiModelProperty(value = "The amount of money that was added to or removed from the cash drawer because of the event. This value can be positive (for added money) or negative (for removed money).")
public V1Money getEventMoney() {
return eventMoney;
}
public void setEventMoney(V1Money eventMoney) {
this.eventMoney = eventMoney;
}
public V1CashDrawerEvent createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* The time when the event occurred, in ISO 8601 format.
* @return createdAt
**/
@ApiModelProperty(value = "The time when the event occurred, in ISO 8601 format.")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public V1CashDrawerEvent description(String description) {
this.description = description;
return this;
}
/**
* An optional description of the event, entered by the employee that created it.
* @return description
**/
@ApiModelProperty(value = "An optional description of the event, entered by the employee that created it.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1CashDrawerEvent v1CashDrawerEvent = (V1CashDrawerEvent) o;
return Objects.equals(this.id, v1CashDrawerEvent.id) &&
Objects.equals(this.employeeId, v1CashDrawerEvent.employeeId) &&
Objects.equals(this.eventType, v1CashDrawerEvent.eventType) &&
Objects.equals(this.eventMoney, v1CashDrawerEvent.eventMoney) &&
Objects.equals(this.createdAt, v1CashDrawerEvent.createdAt) &&
Objects.equals(this.description, v1CashDrawerEvent.description);
}
@Override
public int hashCode() {
return Objects.hash(id, employeeId, eventType, eventMoney, createdAt, description);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1CashDrawerEvent {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" employeeId: ").append(toIndentedString(employeeId)).append("\n");
sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
sb.append(" eventMoney: ").append(toIndentedString(eventMoney)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,909 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListPaymentsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Payment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class V1ListPaymentsResponse {
@JsonProperty("items")
private List<V1Payment> items = new ArrayList<V1Payment>();
public V1ListPaymentsResponse items(List<V1Payment> items) {
this.items = items;
return this;
}
public V1ListPaymentsResponse addItemsItem(V1Payment itemsItem) {
this.items.add(itemsItem);
return this;
}
/**
*
* @return items
**/
@ApiModelProperty(value = "")
public List<V1Payment> getItems() {
return items;
}
public void setItems(List<V1Payment> items) {
this.items = items;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ListPaymentsResponse v1ListPaymentsResponse = (V1ListPaymentsResponse) o;
return Objects.equals(this.items, v1ListPaymentsResponse.items);
}
@Override
public int hashCode() {
return Objects.hash(items);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ListPaymentsResponse {\n");
sb.append(" items: ").append(toIndentedString(items)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,910 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListPaymentRefundsRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Retrieves a list of refunds for the account making the request. Max results per page: 100
*/
@ApiModel(description = "Retrieves a list of refunds for the account making the request. Max results per page: 100")
public class ListPaymentRefundsRequest {
@JsonProperty("begin_time")
private String beginTime = null;
@JsonProperty("end_time")
private String endTime = null;
@JsonProperty("sort_order")
private String sortOrder = null;
@JsonProperty("cursor")
private String cursor = null;
@JsonProperty("location_id")
private String locationId = null;
@JsonProperty("status")
private String status = null;
@JsonProperty("source_type")
private String sourceType = null;
public ListPaymentRefundsRequest beginTime(String beginTime) {
this.beginTime = beginTime;
return this;
}
/**
* Timestamp for the beginning of the requested reporting period, in RFC 3339 format. Default: The current time minus one year.
* @return beginTime
**/
@ApiModelProperty(value = "Timestamp for the beginning of the requested reporting period, in RFC 3339 format. Default: The current time minus one year.")
public String getBeginTime() {
return beginTime;
}
public void setBeginTime(String beginTime) {
this.beginTime = beginTime;
}
public ListPaymentRefundsRequest endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time.
* @return endTime
**/
@ApiModelProperty(value = "Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time.")
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public ListPaymentRefundsRequest sortOrder(String sortOrder) {
this.sortOrder = sortOrder;
return this;
}
/**
* The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default).
* @return sortOrder
**/
@ApiModelProperty(value = "The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default).")
public String getSortOrder() {
return sortOrder;
}
public void setSortOrder(String sortOrder) {
this.sortOrder = sortOrder;
}
public ListPaymentRefundsRequest cursor(String cursor) {
this.cursor = cursor;
return this;
}
/**
* A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information.
* @return cursor
**/
@ApiModelProperty(value = "A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information.")
public String getCursor() {
return cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
}
public ListPaymentRefundsRequest locationId(String locationId) {
this.locationId = locationId;
return this;
}
/**
* ID of location associated with payment.
* @return locationId
**/
@ApiModelProperty(value = "ID of location associated with payment.")
public String getLocationId() {
return locationId;
}
public void setLocationId(String locationId) {
this.locationId = locationId;
}
public ListPaymentRefundsRequest status(String status) {
this.status = status;
return this;
}
/**
* If provided, only refunds with the given status are returned. For a list of refund status values, see `PaymentRefund`. Default: If omitted refunds are returned regardless of status.
* @return status
**/
@ApiModelProperty(value = "If provided, only refunds with the given status are returned. For a list of refund status values, see `PaymentRefund`. Default: If omitted refunds are returned regardless of status.")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public ListPaymentRefundsRequest sourceType(String sourceType) {
this.sourceType = sourceType;
return this;
}
/**
* If provided, only refunds with the given source type are returned. - `CARD` - List refunds only for payments where card was specified as payment source. Default: If omitted refunds are returned regardless of source type.
* @return sourceType
**/
@ApiModelProperty(value = "If provided, only refunds with the given source type are returned. - `CARD` - List refunds only for payments where card was specified as payment source. Default: If omitted refunds are returned regardless of source type.")
public String getSourceType() {
return sourceType;
}
public void setSourceType(String sourceType) {
this.sourceType = sourceType;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListPaymentRefundsRequest listPaymentRefundsRequest = (ListPaymentRefundsRequest) o;
return Objects.equals(this.beginTime, listPaymentRefundsRequest.beginTime) &&
Objects.equals(this.endTime, listPaymentRefundsRequest.endTime) &&
Objects.equals(this.sortOrder, listPaymentRefundsRequest.sortOrder) &&
Objects.equals(this.cursor, listPaymentRefundsRequest.cursor) &&
Objects.equals(this.locationId, listPaymentRefundsRequest.locationId) &&
Objects.equals(this.status, listPaymentRefundsRequest.status) &&
Objects.equals(this.sourceType, listPaymentRefundsRequest.sourceType);
}
@Override
public int hashCode() {
return Objects.hash(beginTime, endTime, sortOrder, cursor, locationId, status, sourceType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListPaymentRefundsRequest {\n");
sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" sortOrder: ").append(toIndentedString(sortOrder)).append("\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append(" locationId: ").append(toIndentedString(locationId)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,911 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/DeleteShiftRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
/**
* A request to delete a `Shift`
*/
@ApiModel(description = "A request to delete a `Shift`")
public class DeleteShiftRequest {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteShiftRequest {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,912 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RevokeTokenRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
*/
@ApiModel(description = "")
public class RevokeTokenRequest {
@JsonProperty("client_id")
private String clientId = null;
@JsonProperty("access_token")
private String accessToken = null;
@JsonProperty("merchant_id")
private String merchantId = null;
public RevokeTokenRequest clientId(String clientId) {
this.clientId = clientId;
return this;
}
/**
* The Square issued ID for your application, available from the [application dashboard](https://connect.squareup.com/apps).
* @return clientId
**/
@ApiModelProperty(value = "The Square issued ID for your application, available from the [application dashboard](https://connect.squareup.com/apps).")
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
}
public RevokeTokenRequest accessToken(String accessToken) {
this.accessToken = accessToken;
return this;
}
/**
* The access token of the merchant whose token you want to revoke. Do not provide a value for merchant_id if you provide this parameter.
* @return accessToken
**/
@ApiModelProperty(value = "The access token of the merchant whose token you want to revoke. Do not provide a value for merchant_id if you provide this parameter.")
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
public RevokeTokenRequest merchantId(String merchantId) {
this.merchantId = merchantId;
return this;
}
/**
* The ID of the merchant whose token you want to revoke. Do not provide a value for access_token if you provide this parameter.
* @return merchantId
**/
@ApiModelProperty(value = "The ID of the merchant whose token you want to revoke. Do not provide a value for access_token if you provide this parameter.")
public String getMerchantId() {
return merchantId;
}
public void setMerchantId(String merchantId) {
this.merchantId = merchantId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RevokeTokenRequest revokeTokenRequest = (RevokeTokenRequest) o;
return Objects.equals(this.clientId, revokeTokenRequest.clientId) &&
Objects.equals(this.accessToken, revokeTokenRequest.accessToken) &&
Objects.equals(this.merchantId, revokeTokenRequest.merchantId);
}
@Override
public int hashCode() {
return Objects.hash(clientId, accessToken, merchantId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RevokeTokenRequest {\n");
sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n");
sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n");
sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,913 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/DeleteCustomerCardResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the DeleteCustomerCard endpoint.
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the DeleteCustomerCard endpoint.")
public class DeleteCustomerCardResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public DeleteCustomerCardResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public DeleteCustomerCardResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeleteCustomerCardResponse deleteCustomerCardResponse = (DeleteCustomerCardResponse) o;
return Objects.equals(this.errors, deleteCustomerCardResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteCustomerCardResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,914 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1DeleteTimecardRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
/**
*
*/
@ApiModel(description = "")
public class V1DeleteTimecardRequest {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1DeleteTimecardRequest {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,915 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/PayOrderRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in requests to the [PayOrder](#endpoint-payorder) endpoint.
*/
@ApiModel(description = "Defines the fields that are included in requests to the [PayOrder](#endpoint-payorder) endpoint.")
public class PayOrderRequest {
@JsonProperty("idempotency_key")
private String idempotencyKey = null;
@JsonProperty("order_version")
private Integer orderVersion = null;
@JsonProperty("payment_ids")
private List<String> paymentIds = new ArrayList<String>();
public PayOrderRequest idempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
return this;
}
/**
* A value you specify that uniquely identifies this request among requests you've sent. If you're unsure whether a particular payment request was completed successfully, you can reattempt it with the same idempotency key without worrying about duplicate payments. See [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency) for more information.
* @return idempotencyKey
**/
@ApiModelProperty(required = true, value = "A value you specify that uniquely identifies this request among requests you've sent. If you're unsure whether a particular payment request was completed successfully, you can reattempt it with the same idempotency key without worrying about duplicate payments. See [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency) for more information.")
public String getIdempotencyKey() {
return idempotencyKey;
}
public void setIdempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
}
public PayOrderRequest orderVersion(Integer orderVersion) {
this.orderVersion = orderVersion;
return this;
}
/**
* The version of the order being paid. If not supplied, the latest version will be paid.
* @return orderVersion
**/
@ApiModelProperty(value = "The version of the order being paid. If not supplied, the latest version will be paid.")
public Integer getOrderVersion() {
return orderVersion;
}
public void setOrderVersion(Integer orderVersion) {
this.orderVersion = orderVersion;
}
public PayOrderRequest paymentIds(List<String> paymentIds) {
this.paymentIds = paymentIds;
return this;
}
public PayOrderRequest addPaymentIdsItem(String paymentIdsItem) {
this.paymentIds.add(paymentIdsItem);
return this;
}
/**
*
* @return paymentIds
**/
@ApiModelProperty(value = "")
public List<String> getPaymentIds() {
return paymentIds;
}
public void setPaymentIds(List<String> paymentIds) {
this.paymentIds = paymentIds;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PayOrderRequest payOrderRequest = (PayOrderRequest) o;
return Objects.equals(this.idempotencyKey, payOrderRequest.idempotencyKey) &&
Objects.equals(this.orderVersion, payOrderRequest.orderVersion) &&
Objects.equals(this.paymentIds, payOrderRequest.paymentIds);
}
@Override
public int hashCode() {
return Objects.hash(idempotencyKey, orderVersion, paymentIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PayOrderRequest {\n");
sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).append("\n");
sb.append(" orderVersion: ").append(toIndentedString(orderVersion)).append("\n");
sb.append(" paymentIds: ").append(toIndentedString(paymentIds)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,916 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogTimePeriod.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents a time period - either a single period or a repeating period.
*/
@ApiModel(description = "Represents a time period - either a single period or a repeating period.")
public class CatalogTimePeriod {
@JsonProperty("event")
private String event = null;
public CatalogTimePeriod event(String event) {
this.event = event;
return this;
}
/**
* An iCalendar (RFC5545) [event](https://tools.ietf.org/html/rfc5545#section-3.6.1), which specifies the name, timing, duration and recurrence of this time period. Example: ``` DTSTART:20190707T180000 DURATION:P2H RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR ``` Only `SUMMARY`, `DTSTART`, `DURATION` and `RRULE` fields are supported. `DTSTART` must be in local (unzoned) time format. Note that while `BEGIN:VEVENT` and `END:VEVENT` is not required in the request. The response will always include them.
* @return event
**/
@ApiModelProperty(value = "An iCalendar (RFC5545) [event](https://tools.ietf.org/html/rfc5545#section-3.6.1), which specifies the name, timing, duration and recurrence of this time period. Example: ``` DTSTART:20190707T180000 DURATION:P2H RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR ``` Only `SUMMARY`, `DTSTART`, `DURATION` and `RRULE` fields are supported. `DTSTART` must be in local (unzoned) time format. Note that while `BEGIN:VEVENT` and `END:VEVENT` is not required in the request. The response will always include them.")
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CatalogTimePeriod catalogTimePeriod = (CatalogTimePeriod) o;
return Objects.equals(this.event, catalogTimePeriod.event);
}
@Override
public int hashCode() {
return Objects.hash(event);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CatalogTimePeriod {\n");
sb.append(" event: ").append(toIndentedString(event)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,917 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/UpdateItemModifierListsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class UpdateItemModifierListsResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("updated_at")
private String updatedAt = null;
public UpdateItemModifierListsResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public UpdateItemModifierListsResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Information on any errors encountered.
* @return errors
**/
@ApiModelProperty(value = "Information on any errors encountered.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public UpdateItemModifierListsResponse updatedAt(String updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
*
* @return updatedAt
**/
@ApiModelProperty(value = "")
public String getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateItemModifierListsResponse updateItemModifierListsResponse = (UpdateItemModifierListsResponse) o;
return Objects.equals(this.errors, updateItemModifierListsResponse.errors) &&
Objects.equals(this.updatedAt, updateItemModifierListsResponse.updatedAt);
}
@Override
public int hashCode() {
return Objects.hash(errors, updatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateItemModifierListsResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,918 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/GetPaymentRefundResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.PaymentRefund;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the [GetRefund](#endpoint-refunds-getpaymentrefund) endpoint. Note: if there are errors processing the request, the refund field may not be present, or it may be present in a FAILED state.
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the [GetRefund](#endpoint-refunds-getpaymentrefund) endpoint. Note: if there are errors processing the request, the refund field may not be present, or it may be present in a FAILED state.")
public class GetPaymentRefundResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("refund")
private PaymentRefund refund = null;
public GetPaymentRefundResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public GetPaymentRefundResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Information on errors encountered during the request.
* @return errors
**/
@ApiModelProperty(value = "Information on errors encountered during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public GetPaymentRefundResponse refund(PaymentRefund refund) {
this.refund = refund;
return this;
}
/**
* The requested `PaymentRefund`.
* @return refund
**/
@ApiModelProperty(value = "The requested `PaymentRefund`.")
public PaymentRefund getRefund() {
return refund;
}
public void setRefund(PaymentRefund refund) {
this.refund = refund;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetPaymentRefundResponse getPaymentRefundResponse = (GetPaymentRefundResponse) o;
return Objects.equals(this.errors, getPaymentRefundResponse.errors) &&
Objects.equals(this.refund, getPaymentRefundResponse.refund);
}
@Override
public int hashCode() {
return Objects.hash(errors, refund);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetPaymentRefundResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" refund: ").append(toIndentedString(refund)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,919 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/PayOrderResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.Order;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the [PayOrder](#endpoint-payorder) endpoint.
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the [PayOrder](#endpoint-payorder) endpoint.")
public class PayOrderResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("order")
private Order order = null;
public PayOrderResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public PayOrderResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public PayOrderResponse order(Order order) {
this.order = order;
return this;
}
/**
* The paid, updated `order`.
* @return order
**/
@ApiModelProperty(value = "The paid, updated `order`.")
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
this.order = order;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PayOrderResponse payOrderResponse = (PayOrderResponse) o;
return Objects.equals(this.errors, payOrderResponse.errors) &&
Objects.equals(this.order, payOrderResponse.order);
}
@Override
public int hashCode() {
return Objects.hash(errors, order);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PayOrderResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" order: ").append(toIndentedString(order)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,920 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListOrdersRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
*/
@ApiModel(description = "")
public class V1ListOrdersRequest {
@JsonProperty("order")
private String order = null;
@JsonProperty("limit")
private Integer limit = null;
@JsonProperty("batch_token")
private String batchToken = null;
public V1ListOrdersRequest order(String order) {
this.order = order;
return this;
}
/**
* TThe order in which payments are listed in the response. See [SortOrder](#type-sortorder) for possible values
* @return order
**/
@ApiModelProperty(value = "TThe order in which payments are listed in the response. See [SortOrder](#type-sortorder) for possible values")
public String getOrder() {
return order;
}
public void setOrder(String order) {
this.order = order;
}
public V1ListOrdersRequest limit(Integer limit) {
this.limit = limit;
return this;
}
/**
* The maximum number of payments to return in a single response. This value cannot exceed 200.
* @return limit
**/
@ApiModelProperty(value = "The maximum number of payments to return in a single response. This value cannot exceed 200.")
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public V1ListOrdersRequest batchToken(String batchToken) {
this.batchToken = batchToken;
return this;
}
/**
* A pagination cursor to retrieve the next set of results for your original query to the endpoint.
* @return batchToken
**/
@ApiModelProperty(value = "A pagination cursor to retrieve the next set of results for your original query to the endpoint.")
public String getBatchToken() {
return batchToken;
}
public void setBatchToken(String batchToken) {
this.batchToken = batchToken;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ListOrdersRequest v1ListOrdersRequest = (V1ListOrdersRequest) o;
return Objects.equals(this.order, v1ListOrdersRequest.order) &&
Objects.equals(this.limit, v1ListOrdersRequest.limit) &&
Objects.equals(this.batchToken, v1ListOrdersRequest.batchToken);
}
@Override
public int hashCode() {
return Objects.hash(order, limit, batchToken);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ListOrdersRequest {\n");
sb.append(" order: ").append(toIndentedString(order)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" batchToken: ").append(toIndentedString(batchToken)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,921 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/InventoryCount.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents Square's estimated quantity of items in a particular state at a particular location based on the known history of physical counts and inventory adjustments.
*/
@ApiModel(description = "Represents Square's estimated quantity of items in a particular state at a particular location based on the known history of physical counts and inventory adjustments.")
public class InventoryCount {
@JsonProperty("catalog_object_id")
private String catalogObjectId = null;
@JsonProperty("catalog_object_type")
private String catalogObjectType = null;
@JsonProperty("state")
private String state = null;
@JsonProperty("location_id")
private String locationId = null;
@JsonProperty("quantity")
private String quantity = null;
@JsonProperty("calculated_at")
private String calculatedAt = null;
public InventoryCount catalogObjectId(String catalogObjectId) {
this.catalogObjectId = catalogObjectId;
return this;
}
/**
* The Square generated ID of the `CatalogObject` being tracked.
* @return catalogObjectId
**/
@ApiModelProperty(value = "The Square generated ID of the `CatalogObject` being tracked.")
public String getCatalogObjectId() {
return catalogObjectId;
}
public void setCatalogObjectId(String catalogObjectId) {
this.catalogObjectId = catalogObjectId;
}
public InventoryCount catalogObjectType(String catalogObjectType) {
this.catalogObjectType = catalogObjectType;
return this;
}
/**
* The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type.
* @return catalogObjectType
**/
@ApiModelProperty(value = "The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type.")
public String getCatalogObjectType() {
return catalogObjectType;
}
public void setCatalogObjectType(String catalogObjectType) {
this.catalogObjectType = catalogObjectType;
}
public InventoryCount state(String state) {
this.state = state;
return this;
}
/**
* The current `InventoryState` for the related quantity of items. See [InventoryState](#type-inventorystate) for possible values
* @return state
**/
@ApiModelProperty(value = "The current `InventoryState` for the related quantity of items. See [InventoryState](#type-inventorystate) for possible values")
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public InventoryCount locationId(String locationId) {
this.locationId = locationId;
return this;
}
/**
* The Square ID of the `Location` where the related quantity of items are being tracked.
* @return locationId
**/
@ApiModelProperty(value = "The Square ID of the `Location` where the related quantity of items are being tracked.")
public String getLocationId() {
return locationId;
}
public void setLocationId(String locationId) {
this.locationId = locationId;
}
public InventoryCount quantity(String quantity) {
this.quantity = quantity;
return this;
}
/**
* The number of items affected by the estimated count as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information.
* Note: This model is in beta.
* @return quantity
**/
@ApiModelProperty(value = "The number of items affected by the estimated count as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information.")
public String getQuantity() {
return quantity;
}
public void setQuantity(String quantity) {
this.quantity = quantity;
}
public InventoryCount calculatedAt(String calculatedAt) {
this.calculatedAt = calculatedAt;
return this;
}
/**
* A read-only timestamp in RFC 3339 format that indicates when Square received the most recent physical count or adjustment that had an affect on the estimated count.
* @return calculatedAt
**/
@ApiModelProperty(value = "A read-only timestamp in RFC 3339 format that indicates when Square received the most recent physical count or adjustment that had an affect on the estimated count.")
public String getCalculatedAt() {
return calculatedAt;
}
public void setCalculatedAt(String calculatedAt) {
this.calculatedAt = calculatedAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InventoryCount inventoryCount = (InventoryCount) o;
return Objects.equals(this.catalogObjectId, inventoryCount.catalogObjectId) &&
Objects.equals(this.catalogObjectType, inventoryCount.catalogObjectType) &&
Objects.equals(this.state, inventoryCount.state) &&
Objects.equals(this.locationId, inventoryCount.locationId) &&
Objects.equals(this.quantity, inventoryCount.quantity) &&
Objects.equals(this.calculatedAt, inventoryCount.calculatedAt);
}
@Override
public int hashCode() {
return Objects.hash(catalogObjectId, catalogObjectType, state, locationId, quantity, calculatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InventoryCount {\n");
sb.append(" catalogObjectId: ").append(toIndentedString(catalogObjectId)).append("\n");
sb.append(" catalogObjectType: ").append(toIndentedString(catalogObjectType)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" locationId: ").append(toIndentedString(locationId)).append("\n");
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
sb.append(" calculatedAt: ").append(toIndentedString(calculatedAt)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,922 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/UpdateItemModifierListsRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class UpdateItemModifierListsRequest {
@JsonProperty("item_ids")
private List<String> itemIds = new ArrayList<String>();
@JsonProperty("modifier_lists_to_enable")
private List<String> modifierListsToEnable = new ArrayList<String>();
@JsonProperty("modifier_lists_to_disable")
private List<String> modifierListsToDisable = new ArrayList<String>();
public UpdateItemModifierListsRequest itemIds(List<String> itemIds) {
this.itemIds = itemIds;
return this;
}
public UpdateItemModifierListsRequest addItemIdsItem(String itemIdsItem) {
this.itemIds.add(itemIdsItem);
return this;
}
/**
* The IDs of the catalog items associated with the CatalogModifierList objects being updated.
* @return itemIds
**/
@ApiModelProperty(required = true, value = "The IDs of the catalog items associated with the CatalogModifierList objects being updated.")
public List<String> getItemIds() {
return itemIds;
}
public void setItemIds(List<String> itemIds) {
this.itemIds = itemIds;
}
public UpdateItemModifierListsRequest modifierListsToEnable(List<String> modifierListsToEnable) {
this.modifierListsToEnable = modifierListsToEnable;
return this;
}
public UpdateItemModifierListsRequest addModifierListsToEnableItem(String modifierListsToEnableItem) {
this.modifierListsToEnable.add(modifierListsToEnableItem);
return this;
}
/**
* The IDs of the CatalogModifierList objects to enable for the CatalogItem.
* @return modifierListsToEnable
**/
@ApiModelProperty(value = "The IDs of the CatalogModifierList objects to enable for the CatalogItem.")
public List<String> getModifierListsToEnable() {
return modifierListsToEnable;
}
public void setModifierListsToEnable(List<String> modifierListsToEnable) {
this.modifierListsToEnable = modifierListsToEnable;
}
public UpdateItemModifierListsRequest modifierListsToDisable(List<String> modifierListsToDisable) {
this.modifierListsToDisable = modifierListsToDisable;
return this;
}
public UpdateItemModifierListsRequest addModifierListsToDisableItem(String modifierListsToDisableItem) {
this.modifierListsToDisable.add(modifierListsToDisableItem);
return this;
}
/**
* The IDs of the CatalogModifierList objects to disable for the CatalogItem.
* @return modifierListsToDisable
**/
@ApiModelProperty(value = "The IDs of the CatalogModifierList objects to disable for the CatalogItem.")
public List<String> getModifierListsToDisable() {
return modifierListsToDisable;
}
public void setModifierListsToDisable(List<String> modifierListsToDisable) {
this.modifierListsToDisable = modifierListsToDisable;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateItemModifierListsRequest updateItemModifierListsRequest = (UpdateItemModifierListsRequest) o;
return Objects.equals(this.itemIds, updateItemModifierListsRequest.itemIds) &&
Objects.equals(this.modifierListsToEnable, updateItemModifierListsRequest.modifierListsToEnable) &&
Objects.equals(this.modifierListsToDisable, updateItemModifierListsRequest.modifierListsToDisable);
}
@Override
public int hashCode() {
return Objects.hash(itemIds, modifierListsToEnable, modifierListsToDisable);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateItemModifierListsRequest {\n");
sb.append(" itemIds: ").append(toIndentedString(itemIds)).append("\n");
sb.append(" modifierListsToEnable: ").append(toIndentedString(modifierListsToEnable)).append("\n");
sb.append(" modifierListsToDisable: ").append(toIndentedString(modifierListsToDisable)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,923 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListPaymentsRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Retrieves a list of refunds taken by the account making the request. Max results per page: 100
*/
@ApiModel(description = "Retrieves a list of refunds taken by the account making the request. Max results per page: 100")
public class ListPaymentsRequest {
@JsonProperty("begin_time")
private String beginTime = null;
@JsonProperty("end_time")
private String endTime = null;
@JsonProperty("sort_order")
private String sortOrder = null;
@JsonProperty("cursor")
private String cursor = null;
@JsonProperty("location_id")
private String locationId = null;
@JsonProperty("total")
private Long total = null;
@JsonProperty("last_4")
private String last4 = null;
@JsonProperty("card_brand")
private String cardBrand = null;
public ListPaymentsRequest beginTime(String beginTime) {
this.beginTime = beginTime;
return this;
}
/**
* Timestamp for the beginning of the reporting period, in RFC 3339 format. Inclusive. Default: The current time minus one year.
* @return beginTime
**/
@ApiModelProperty(value = "Timestamp for the beginning of the reporting period, in RFC 3339 format. Inclusive. Default: The current time minus one year.")
public String getBeginTime() {
return beginTime;
}
public void setBeginTime(String beginTime) {
this.beginTime = beginTime;
}
public ListPaymentsRequest endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time.
* @return endTime
**/
@ApiModelProperty(value = "Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time.")
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public ListPaymentsRequest sortOrder(String sortOrder) {
this.sortOrder = sortOrder;
return this;
}
/**
* The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default).
* @return sortOrder
**/
@ApiModelProperty(value = "The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default).")
public String getSortOrder() {
return sortOrder;
}
public void setSortOrder(String sortOrder) {
this.sortOrder = sortOrder;
}
public ListPaymentsRequest cursor(String cursor) {
this.cursor = cursor;
return this;
}
/**
* A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information.
* @return cursor
**/
@ApiModelProperty(value = "A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information.")
public String getCursor() {
return cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
}
public ListPaymentsRequest locationId(String locationId) {
this.locationId = locationId;
return this;
}
/**
* ID of location associated with payment
* @return locationId
**/
@ApiModelProperty(value = "ID of location associated with payment")
public String getLocationId() {
return locationId;
}
public void setLocationId(String locationId) {
this.locationId = locationId;
}
public ListPaymentsRequest total(Long total) {
this.total = total;
return this;
}
/**
* The exact amount in the total_money for a `Payment`.
* minimum: 0
* @return total
**/
@ApiModelProperty(value = "The exact amount in the total_money for a `Payment`.")
public Long getTotal() {
return total;
}
public void setTotal(Long total) {
this.total = total;
}
public ListPaymentsRequest last4(String last4) {
this.last4 = last4;
return this;
}
/**
* The last 4 digits of `Payment` card.
* @return last4
**/
@ApiModelProperty(value = "The last 4 digits of `Payment` card.")
public String getLast4() {
return last4;
}
public void setLast4(String last4) {
this.last4 = last4;
}
public ListPaymentsRequest cardBrand(String cardBrand) {
this.cardBrand = cardBrand;
return this;
}
/**
* The brand of `Payment` card. For example, `VISA`
* @return cardBrand
**/
@ApiModelProperty(value = "The brand of `Payment` card. For example, `VISA`")
public String getCardBrand() {
return cardBrand;
}
public void setCardBrand(String cardBrand) {
this.cardBrand = cardBrand;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListPaymentsRequest listPaymentsRequest = (ListPaymentsRequest) o;
return Objects.equals(this.beginTime, listPaymentsRequest.beginTime) &&
Objects.equals(this.endTime, listPaymentsRequest.endTime) &&
Objects.equals(this.sortOrder, listPaymentsRequest.sortOrder) &&
Objects.equals(this.cursor, listPaymentsRequest.cursor) &&
Objects.equals(this.locationId, listPaymentsRequest.locationId) &&
Objects.equals(this.total, listPaymentsRequest.total) &&
Objects.equals(this.last4, listPaymentsRequest.last4) &&
Objects.equals(this.cardBrand, listPaymentsRequest.cardBrand);
}
@Override
public int hashCode() {
return Objects.hash(beginTime, endTime, sortOrder, cursor, locationId, total, last4, cardBrand);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListPaymentsRequest {\n");
sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" sortOrder: ").append(toIndentedString(sortOrder)).append("\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append(" locationId: ").append(toIndentedString(locationId)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" last4: ").append(toIndentedString(last4)).append("\n");
sb.append(" cardBrand: ").append(toIndentedString(cardBrand)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,924 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/AdditionalRecipientReceivable.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.AdditionalRecipientReceivableRefund;
import com.squareup.connect.models.Money;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Represents a monetary distribution of part of a [Transaction](#type-transaction)'s amount for Transactions which included additional recipients. The location of this receivable is that same as the one specified in the [AdditionalRecipient](#type-additionalrecipient).
*/
@ApiModel(description = "Represents a monetary distribution of part of a [Transaction](#type-transaction)'s amount for Transactions which included additional recipients. The location of this receivable is that same as the one specified in the [AdditionalRecipient](#type-additionalrecipient).")
public class AdditionalRecipientReceivable {
@JsonProperty("id")
private String id = null;
@JsonProperty("transaction_id")
private String transactionId = null;
@JsonProperty("transaction_location_id")
private String transactionLocationId = null;
@JsonProperty("amount_money")
private Money amountMoney = null;
@JsonProperty("created_at")
private String createdAt = null;
@JsonProperty("refunds")
private List<AdditionalRecipientReceivableRefund> refunds = new ArrayList<AdditionalRecipientReceivableRefund>();
public AdditionalRecipientReceivable id(String id) {
this.id = id;
return this;
}
/**
* The additional recipient receivable's unique ID, issued by Square payments servers.
* @return id
**/
@ApiModelProperty(required = true, value = "The additional recipient receivable's unique ID, issued by Square payments servers.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public AdditionalRecipientReceivable transactionId(String transactionId) {
this.transactionId = transactionId;
return this;
}
/**
* The ID of the transaction that the additional recipient receivable was applied to.
* @return transactionId
**/
@ApiModelProperty(required = true, value = "The ID of the transaction that the additional recipient receivable was applied to.")
public String getTransactionId() {
return transactionId;
}
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public AdditionalRecipientReceivable transactionLocationId(String transactionLocationId) {
this.transactionLocationId = transactionLocationId;
return this;
}
/**
* The ID of the location that created the receivable. This is the location ID on the associated transaction.
* @return transactionLocationId
**/
@ApiModelProperty(required = true, value = "The ID of the location that created the receivable. This is the location ID on the associated transaction.")
public String getTransactionLocationId() {
return transactionLocationId;
}
public void setTransactionLocationId(String transactionLocationId) {
this.transactionLocationId = transactionLocationId;
}
public AdditionalRecipientReceivable amountMoney(Money amountMoney) {
this.amountMoney = amountMoney;
return this;
}
/**
* The amount of the receivable. This will always be non-negative.
* @return amountMoney
**/
@ApiModelProperty(required = true, value = "The amount of the receivable. This will always be non-negative.")
public Money getAmountMoney() {
return amountMoney;
}
public void setAmountMoney(Money amountMoney) {
this.amountMoney = amountMoney;
}
public AdditionalRecipientReceivable createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* The time when the additional recipient receivable was created, in RFC 3339 format.
* @return createdAt
**/
@ApiModelProperty(value = "The time when the additional recipient receivable was created, in RFC 3339 format.")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public AdditionalRecipientReceivable refunds(List<AdditionalRecipientReceivableRefund> refunds) {
this.refunds = refunds;
return this;
}
public AdditionalRecipientReceivable addRefundsItem(AdditionalRecipientReceivableRefund refundsItem) {
this.refunds.add(refundsItem);
return this;
}
/**
* Any refunds of the receivable that have been applied.
* @return refunds
**/
@ApiModelProperty(value = "Any refunds of the receivable that have been applied.")
public List<AdditionalRecipientReceivableRefund> getRefunds() {
return refunds;
}
public void setRefunds(List<AdditionalRecipientReceivableRefund> refunds) {
this.refunds = refunds;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalRecipientReceivable additionalRecipientReceivable = (AdditionalRecipientReceivable) o;
return Objects.equals(this.id, additionalRecipientReceivable.id) &&
Objects.equals(this.transactionId, additionalRecipientReceivable.transactionId) &&
Objects.equals(this.transactionLocationId, additionalRecipientReceivable.transactionLocationId) &&
Objects.equals(this.amountMoney, additionalRecipientReceivable.amountMoney) &&
Objects.equals(this.createdAt, additionalRecipientReceivable.createdAt) &&
Objects.equals(this.refunds, additionalRecipientReceivable.refunds);
}
@Override
public int hashCode() {
return Objects.hash(id, transactionId, transactionLocationId, amountMoney, createdAt, refunds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalRecipientReceivable {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n");
sb.append(" transactionLocationId: ").append(toIndentedString(transactionLocationId)).append("\n");
sb.append(" amountMoney: ").append(toIndentedString(amountMoney)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" refunds: ").append(toIndentedString(refunds)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,925 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/GetPaymentResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.Payment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the [GetPayment](#endpoint-payments-getpayment) endpoint.
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the [GetPayment](#endpoint-payments-getpayment) endpoint.")
public class GetPaymentResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("payment")
private Payment payment = null;
public GetPaymentResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public GetPaymentResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Information on errors encountered during the request.
* @return errors
**/
@ApiModelProperty(value = "Information on errors encountered during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public GetPaymentResponse payment(Payment payment) {
this.payment = payment;
return this;
}
/**
* The requested `Payment`.
* @return payment
**/
@ApiModelProperty(value = "The requested `Payment`.")
public Payment getPayment() {
return payment;
}
public void setPayment(Payment payment) {
this.payment = payment;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetPaymentResponse getPaymentResponse = (GetPaymentResponse) o;
return Objects.equals(this.errors, getPaymentResponse.errors) &&
Objects.equals(this.payment, getPaymentResponse.payment);
}
@Override
public int hashCode() {
return Objects.hash(errors, payment);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetPaymentResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" payment: ").append(toIndentedString(payment)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,926 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1UpdateFeeRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Fee;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
*/
@ApiModel(description = "")
public class V1UpdateFeeRequest {
@JsonProperty("body")
private V1Fee body = null;
public V1UpdateFeeRequest body(V1Fee body) {
this.body = body;
return this;
}
/**
* An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return body
**/
@ApiModelProperty(required = true, value = "An object containing the fields to POST for the request. See the corresponding object definition for field details.")
public V1Fee getBody() {
return body;
}
public void setBody(V1Fee body) {
this.body = body;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1UpdateFeeRequest v1UpdateFeeRequest = (V1UpdateFeeRequest) o;
return Objects.equals(this.body, v1UpdateFeeRequest.body);
}
@Override
public int hashCode() {
return Objects.hash(body);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1UpdateFeeRequest {\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,927 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CardPaymentDetails.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Card;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Reflects the current status of a card payment.
*/
@ApiModel(description = "Reflects the current status of a card payment.")
public class CardPaymentDetails {
@JsonProperty("status")
private String status = null;
@JsonProperty("card")
private Card card = null;
@JsonProperty("entry_method")
private String entryMethod = null;
@JsonProperty("cvv_status")
private String cvvStatus = null;
@JsonProperty("avs_status")
private String avsStatus = null;
@JsonProperty("auth_result_code")
private String authResultCode = null;
@JsonProperty("application_identifier")
private String applicationIdentifier = null;
@JsonProperty("application_name")
private String applicationName = null;
@JsonProperty("application_cryptogram")
private String applicationCryptogram = null;
@JsonProperty("verification_method")
private String verificationMethod = null;
@JsonProperty("verification_results")
private String verificationResults = null;
@JsonProperty("statement_description")
private String statementDescription = null;
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public CardPaymentDetails status(String status) {
this.status = status;
return this;
}
/**
* The card payment's current state. It can be one of: `AUTHORIZED`, `CAPTURED`, `VOIDED`, `FAILED`.
* @return status
**/
@ApiModelProperty(value = "The card payment's current state. It can be one of: `AUTHORIZED`, `CAPTURED`, `VOIDED`, `FAILED`.")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public CardPaymentDetails card(Card card) {
this.card = card;
return this;
}
/**
* The credit card's non-confidential details.
* @return card
**/
@ApiModelProperty(value = "The credit card's non-confidential details.")
public Card getCard() {
return card;
}
public void setCard(Card card) {
this.card = card;
}
public CardPaymentDetails entryMethod(String entryMethod) {
this.entryMethod = entryMethod;
return this;
}
/**
* The method used to enter the card's details for the payment. Can be `KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.
* @return entryMethod
**/
@ApiModelProperty(value = "The method used to enter the card's details for the payment. Can be `KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.")
public String getEntryMethod() {
return entryMethod;
}
public void setEntryMethod(String entryMethod) {
this.entryMethod = entryMethod;
}
public CardPaymentDetails cvvStatus(String cvvStatus) {
this.cvvStatus = cvvStatus;
return this;
}
/**
* Status code returned from the Card Verification Value (CVV) check. Can be `CVV_ACCEPTED`, `CVV_REJECTED`, `CVV_NOT_CHECKED`.
* @return cvvStatus
**/
@ApiModelProperty(value = "Status code returned from the Card Verification Value (CVV) check. Can be `CVV_ACCEPTED`, `CVV_REJECTED`, `CVV_NOT_CHECKED`.")
public String getCvvStatus() {
return cvvStatus;
}
public void setCvvStatus(String cvvStatus) {
this.cvvStatus = cvvStatus;
}
public CardPaymentDetails avsStatus(String avsStatus) {
this.avsStatus = avsStatus;
return this;
}
/**
* Status code returned from the Address Verification System (AVS) check. Can be `AVS_ACCEPTED`, `AVS_REJECTED`, `AVS_NOT_CHECKED`.
* @return avsStatus
**/
@ApiModelProperty(value = "Status code returned from the Address Verification System (AVS) check. Can be `AVS_ACCEPTED`, `AVS_REJECTED`, `AVS_NOT_CHECKED`.")
public String getAvsStatus() {
return avsStatus;
}
public void setAvsStatus(String avsStatus) {
this.avsStatus = avsStatus;
}
public CardPaymentDetails authResultCode(String authResultCode) {
this.authResultCode = authResultCode;
return this;
}
/**
* Status code returned by the card issuer that describes the payment's authorization status.
* @return authResultCode
**/
@ApiModelProperty(value = "Status code returned by the card issuer that describes the payment's authorization status.")
public String getAuthResultCode() {
return authResultCode;
}
public void setAuthResultCode(String authResultCode) {
this.authResultCode = authResultCode;
}
public CardPaymentDetails applicationIdentifier(String applicationIdentifier) {
this.applicationIdentifier = applicationIdentifier;
return this;
}
/**
* For EMV payments, identifies the EMV application used for the payment.
* @return applicationIdentifier
**/
@ApiModelProperty(value = "For EMV payments, identifies the EMV application used for the payment.")
public String getApplicationIdentifier() {
return applicationIdentifier;
}
public void setApplicationIdentifier(String applicationIdentifier) {
this.applicationIdentifier = applicationIdentifier;
}
public CardPaymentDetails applicationName(String applicationName) {
this.applicationName = applicationName;
return this;
}
/**
* For EMV payments, the human-readable name of the EMV application used for the payment.
* @return applicationName
**/
@ApiModelProperty(value = "For EMV payments, the human-readable name of the EMV application used for the payment.")
public String getApplicationName() {
return applicationName;
}
public void setApplicationName(String applicationName) {
this.applicationName = applicationName;
}
public CardPaymentDetails applicationCryptogram(String applicationCryptogram) {
this.applicationCryptogram = applicationCryptogram;
return this;
}
/**
* For EMV payments, the cryptogram generated for the payment.
* @return applicationCryptogram
**/
@ApiModelProperty(value = "For EMV payments, the cryptogram generated for the payment.")
public String getApplicationCryptogram() {
return applicationCryptogram;
}
public void setApplicationCryptogram(String applicationCryptogram) {
this.applicationCryptogram = applicationCryptogram;
}
public CardPaymentDetails verificationMethod(String verificationMethod) {
this.verificationMethod = verificationMethod;
return this;
}
/**
* For EMV payments, method used to verify the cardholder's identity. Can be one of `PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`.
* @return verificationMethod
**/
@ApiModelProperty(value = "For EMV payments, method used to verify the cardholder's identity. Can be one of `PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`.")
public String getVerificationMethod() {
return verificationMethod;
}
public void setVerificationMethod(String verificationMethod) {
this.verificationMethod = verificationMethod;
}
public CardPaymentDetails verificationResults(String verificationResults) {
this.verificationResults = verificationResults;
return this;
}
/**
* For EMV payments, the results of the cardholder verification. Can be one of `SUCCESS`, `FAILURE`, or `UNKNOWN`.
* @return verificationResults
**/
@ApiModelProperty(value = "For EMV payments, the results of the cardholder verification. Can be one of `SUCCESS`, `FAILURE`, or `UNKNOWN`.")
public String getVerificationResults() {
return verificationResults;
}
public void setVerificationResults(String verificationResults) {
this.verificationResults = verificationResults;
}
public CardPaymentDetails statementDescription(String statementDescription) {
this.statementDescription = statementDescription;
return this;
}
/**
* The statement description sent to the card networks. Note: The actual statement description will vary and is likely to be truncated and appended with additional information on a per issuer basis.
* @return statementDescription
**/
@ApiModelProperty(value = "The statement description sent to the card networks. Note: The actual statement description will vary and is likely to be truncated and appended with additional information on a per issuer basis.")
public String getStatementDescription() {
return statementDescription;
}
public void setStatementDescription(String statementDescription) {
this.statementDescription = statementDescription;
}
public CardPaymentDetails errors(List<Error> errors) {
this.errors = errors;
return this;
}
public CardPaymentDetails addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Information on errors encountered during the request.
* @return errors
**/
@ApiModelProperty(value = "Information on errors encountered during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CardPaymentDetails cardPaymentDetails = (CardPaymentDetails) o;
return Objects.equals(this.status, cardPaymentDetails.status) &&
Objects.equals(this.card, cardPaymentDetails.card) &&
Objects.equals(this.entryMethod, cardPaymentDetails.entryMethod) &&
Objects.equals(this.cvvStatus, cardPaymentDetails.cvvStatus) &&
Objects.equals(this.avsStatus, cardPaymentDetails.avsStatus) &&
Objects.equals(this.authResultCode, cardPaymentDetails.authResultCode) &&
Objects.equals(this.applicationIdentifier, cardPaymentDetails.applicationIdentifier) &&
Objects.equals(this.applicationName, cardPaymentDetails.applicationName) &&
Objects.equals(this.applicationCryptogram, cardPaymentDetails.applicationCryptogram) &&
Objects.equals(this.verificationMethod, cardPaymentDetails.verificationMethod) &&
Objects.equals(this.verificationResults, cardPaymentDetails.verificationResults) &&
Objects.equals(this.statementDescription, cardPaymentDetails.statementDescription) &&
Objects.equals(this.errors, cardPaymentDetails.errors);
}
@Override
public int hashCode() {
return Objects.hash(status, card, entryMethod, cvvStatus, avsStatus, authResultCode, applicationIdentifier, applicationName, applicationCryptogram, verificationMethod, verificationResults, statementDescription, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CardPaymentDetails {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" card: ").append(toIndentedString(card)).append("\n");
sb.append(" entryMethod: ").append(toIndentedString(entryMethod)).append("\n");
sb.append(" cvvStatus: ").append(toIndentedString(cvvStatus)).append("\n");
sb.append(" avsStatus: ").append(toIndentedString(avsStatus)).append("\n");
sb.append(" authResultCode: ").append(toIndentedString(authResultCode)).append("\n");
sb.append(" applicationIdentifier: ").append(toIndentedString(applicationIdentifier)).append("\n");
sb.append(" applicationName: ").append(toIndentedString(applicationName)).append("\n");
sb.append(" applicationCryptogram: ").append(toIndentedString(applicationCryptogram)).append("\n");
sb.append(" verificationMethod: ").append(toIndentedString(verificationMethod)).append("\n");
sb.append(" verificationResults: ").append(toIndentedString(verificationResults)).append("\n");
sb.append(" statementDescription: ").append(toIndentedString(statementDescription)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,928 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CancelPaymentByIdempotencyKeyResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Return value from the [CancelPaymentByIdempotencyKey](#endpoint-payments-cancelpaymentbyidempotencykey) endpoint. On success, `errors` will be empty.
*/
@ApiModel(description = "Return value from the [CancelPaymentByIdempotencyKey](#endpoint-payments-cancelpaymentbyidempotencykey) endpoint. On success, `errors` will be empty.")
public class CancelPaymentByIdempotencyKeyResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public CancelPaymentByIdempotencyKeyResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public CancelPaymentByIdempotencyKeyResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CancelPaymentByIdempotencyKeyResponse cancelPaymentByIdempotencyKeyResponse = (CancelPaymentByIdempotencyKeyResponse) o;
return Objects.equals(this.errors, cancelPaymentByIdempotencyKeyResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CancelPaymentByIdempotencyKeyResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,929 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1CreateRefundRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Money;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* V1CreateRefundRequest
*/
@ApiModel(description = "V1CreateRefundRequest")
public class V1CreateRefundRequest {
@JsonProperty("payment_id")
private String paymentId = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("reason")
private String reason = null;
@JsonProperty("refunded_money")
private V1Money refundedMoney = null;
@JsonProperty("request_idempotence_key")
private String requestIdempotenceKey = null;
public V1CreateRefundRequest paymentId(String paymentId) {
this.paymentId = paymentId;
return this;
}
/**
* The ID of the payment to refund. If you are creating a `PARTIAL` refund for a split tender payment, instead provide the id of the particular tender you want to refund.
* @return paymentId
**/
@ApiModelProperty(required = true, value = "The ID of the payment to refund. If you are creating a `PARTIAL` refund for a split tender payment, instead provide the id of the particular tender you want to refund.")
public String getPaymentId() {
return paymentId;
}
public void setPaymentId(String paymentId) {
this.paymentId = paymentId;
}
public V1CreateRefundRequest type(String type) {
this.type = type;
return this;
}
/**
* TThe type of refund (FULL or PARTIAL). See [V1CreateRefundRequestType](#type-v1createrefundrequesttype) for possible values
* @return type
**/
@ApiModelProperty(required = true, value = "TThe type of refund (FULL or PARTIAL). See [V1CreateRefundRequestType](#type-v1createrefundrequesttype) for possible values")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public V1CreateRefundRequest reason(String reason) {
this.reason = reason;
return this;
}
/**
* The reason for the refund.
* @return reason
**/
@ApiModelProperty(required = true, value = "The reason for the refund.")
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public V1CreateRefundRequest refundedMoney(V1Money refundedMoney) {
this.refundedMoney = refundedMoney;
return this;
}
/**
* The amount of money to refund. Required only for PARTIAL refunds.
* @return refundedMoney
**/
@ApiModelProperty(value = "The amount of money to refund. Required only for PARTIAL refunds.")
public V1Money getRefundedMoney() {
return refundedMoney;
}
public void setRefundedMoney(V1Money refundedMoney) {
this.refundedMoney = refundedMoney;
}
public V1CreateRefundRequest requestIdempotenceKey(String requestIdempotenceKey) {
this.requestIdempotenceKey = requestIdempotenceKey;
return this;
}
/**
* An optional key to ensure idempotence if you issue the same PARTIAL refund request more than once.
* @return requestIdempotenceKey
**/
@ApiModelProperty(value = "An optional key to ensure idempotence if you issue the same PARTIAL refund request more than once.")
public String getRequestIdempotenceKey() {
return requestIdempotenceKey;
}
public void setRequestIdempotenceKey(String requestIdempotenceKey) {
this.requestIdempotenceKey = requestIdempotenceKey;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1CreateRefundRequest v1CreateRefundRequest = (V1CreateRefundRequest) o;
return Objects.equals(this.paymentId, v1CreateRefundRequest.paymentId) &&
Objects.equals(this.type, v1CreateRefundRequest.type) &&
Objects.equals(this.reason, v1CreateRefundRequest.reason) &&
Objects.equals(this.refundedMoney, v1CreateRefundRequest.refundedMoney) &&
Objects.equals(this.requestIdempotenceKey, v1CreateRefundRequest.requestIdempotenceKey);
}
@Override
public int hashCode() {
return Objects.hash(paymentId, type, reason, refundedMoney, requestIdempotenceKey);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1CreateRefundRequest {\n");
sb.append(" paymentId: ").append(toIndentedString(paymentId)).append("\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");
sb.append(" requestIdempotenceKey: ").append(toIndentedString(requestIdempotenceKey)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,930 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/Address.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents a physical address.
*/
@ApiModel(description = "Represents a physical address.")
public class Address {
@JsonProperty("address_line_1")
private String addressLine1 = null;
@JsonProperty("address_line_2")
private String addressLine2 = null;
@JsonProperty("address_line_3")
private String addressLine3 = null;
@JsonProperty("locality")
private String locality = null;
@JsonProperty("sublocality")
private String sublocality = null;
@JsonProperty("sublocality_2")
private String sublocality2 = null;
@JsonProperty("sublocality_3")
private String sublocality3 = null;
@JsonProperty("administrative_district_level_1")
private String administrativeDistrictLevel1 = null;
@JsonProperty("administrative_district_level_2")
private String administrativeDistrictLevel2 = null;
@JsonProperty("administrative_district_level_3")
private String administrativeDistrictLevel3 = null;
@JsonProperty("postal_code")
private String postalCode = null;
@JsonProperty("country")
private String country = null;
@JsonProperty("first_name")
private String firstName = null;
@JsonProperty("last_name")
private String lastName = null;
@JsonProperty("organization")
private String organization = null;
public Address addressLine1(String addressLine1) {
this.addressLine1 = addressLine1;
return this;
}
/**
* The first line of the address. Fields that start with `address_line` provide the address's most specific details, like street number, street name, and building name. They do *not* provide less specific details like city, state/province, or country (these details are provided in other fields).
* @return addressLine1
**/
@ApiModelProperty(value = "The first line of the address. Fields that start with `address_line` provide the address's most specific details, like street number, street name, and building name. They do *not* provide less specific details like city, state/province, or country (these details are provided in other fields).")
public String getAddressLine1() {
return addressLine1;
}
public void setAddressLine1(String addressLine1) {
this.addressLine1 = addressLine1;
}
public Address addressLine2(String addressLine2) {
this.addressLine2 = addressLine2;
return this;
}
/**
* The second line of the address, if any.
* @return addressLine2
**/
@ApiModelProperty(value = "The second line of the address, if any.")
public String getAddressLine2() {
return addressLine2;
}
public void setAddressLine2(String addressLine2) {
this.addressLine2 = addressLine2;
}
public Address addressLine3(String addressLine3) {
this.addressLine3 = addressLine3;
return this;
}
/**
* The third line of the address, if any.
* @return addressLine3
**/
@ApiModelProperty(value = "The third line of the address, if any.")
public String getAddressLine3() {
return addressLine3;
}
public void setAddressLine3(String addressLine3) {
this.addressLine3 = addressLine3;
}
public Address locality(String locality) {
this.locality = locality;
return this;
}
/**
* The city or town of the address.
* @return locality
**/
@ApiModelProperty(value = "The city or town of the address.")
public String getLocality() {
return locality;
}
public void setLocality(String locality) {
this.locality = locality;
}
public Address sublocality(String sublocality) {
this.sublocality = sublocality;
return this;
}
/**
* A civil region within the address's `locality`, if any.
* @return sublocality
**/
@ApiModelProperty(value = "A civil region within the address's `locality`, if any.")
public String getSublocality() {
return sublocality;
}
public void setSublocality(String sublocality) {
this.sublocality = sublocality;
}
public Address sublocality2(String sublocality2) {
this.sublocality2 = sublocality2;
return this;
}
/**
* A civil region within the address's `sublocality`, if any.
* @return sublocality2
**/
@ApiModelProperty(value = "A civil region within the address's `sublocality`, if any.")
public String getSublocality2() {
return sublocality2;
}
public void setSublocality2(String sublocality2) {
this.sublocality2 = sublocality2;
}
public Address sublocality3(String sublocality3) {
this.sublocality3 = sublocality3;
return this;
}
/**
* A civil region within the address's `sublocality_2`, if any.
* @return sublocality3
**/
@ApiModelProperty(value = "A civil region within the address's `sublocality_2`, if any.")
public String getSublocality3() {
return sublocality3;
}
public void setSublocality3(String sublocality3) {
this.sublocality3 = sublocality3;
}
public Address administrativeDistrictLevel1(String administrativeDistrictLevel1) {
this.administrativeDistrictLevel1 = administrativeDistrictLevel1;
return this;
}
/**
* A civil entity within the address's country. In the US, this is the state.
* @return administrativeDistrictLevel1
**/
@ApiModelProperty(value = "A civil entity within the address's country. In the US, this is the state.")
public String getAdministrativeDistrictLevel1() {
return administrativeDistrictLevel1;
}
public void setAdministrativeDistrictLevel1(String administrativeDistrictLevel1) {
this.administrativeDistrictLevel1 = administrativeDistrictLevel1;
}
public Address administrativeDistrictLevel2(String administrativeDistrictLevel2) {
this.administrativeDistrictLevel2 = administrativeDistrictLevel2;
return this;
}
/**
* A civil entity within the address's `administrative_district_level_1`. In the US, this is the county.
* @return administrativeDistrictLevel2
**/
@ApiModelProperty(value = "A civil entity within the address's `administrative_district_level_1`. In the US, this is the county.")
public String getAdministrativeDistrictLevel2() {
return administrativeDistrictLevel2;
}
public void setAdministrativeDistrictLevel2(String administrativeDistrictLevel2) {
this.administrativeDistrictLevel2 = administrativeDistrictLevel2;
}
public Address administrativeDistrictLevel3(String administrativeDistrictLevel3) {
this.administrativeDistrictLevel3 = administrativeDistrictLevel3;
return this;
}
/**
* A civil entity within the address's `administrative_district_level_2`, if any.
* @return administrativeDistrictLevel3
**/
@ApiModelProperty(value = "A civil entity within the address's `administrative_district_level_2`, if any.")
public String getAdministrativeDistrictLevel3() {
return administrativeDistrictLevel3;
}
public void setAdministrativeDistrictLevel3(String administrativeDistrictLevel3) {
this.administrativeDistrictLevel3 = administrativeDistrictLevel3;
}
public Address postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* The address's postal code.
* @return postalCode
**/
@ApiModelProperty(value = "The address's postal code.")
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
public Address country(String country) {
this.country = country;
return this;
}
/**
* The address's country, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values
* @return country
**/
@ApiModelProperty(value = "The address's country, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values")
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public Address firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* Optional first name when it's representing recipient.
* @return firstName
**/
@ApiModelProperty(value = "Optional first name when it's representing recipient.")
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public Address lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* Optional last name when it's representing recipient.
* @return lastName
**/
@ApiModelProperty(value = "Optional last name when it's representing recipient.")
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public Address organization(String organization) {
this.organization = organization;
return this;
}
/**
* Optional organization name when it's representing recipient.
* @return organization
**/
@ApiModelProperty(value = "Optional organization name when it's representing recipient.")
public String getOrganization() {
return organization;
}
public void setOrganization(String organization) {
this.organization = organization;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Address address = (Address) o;
return Objects.equals(this.addressLine1, address.addressLine1) &&
Objects.equals(this.addressLine2, address.addressLine2) &&
Objects.equals(this.addressLine3, address.addressLine3) &&
Objects.equals(this.locality, address.locality) &&
Objects.equals(this.sublocality, address.sublocality) &&
Objects.equals(this.sublocality2, address.sublocality2) &&
Objects.equals(this.sublocality3, address.sublocality3) &&
Objects.equals(this.administrativeDistrictLevel1, address.administrativeDistrictLevel1) &&
Objects.equals(this.administrativeDistrictLevel2, address.administrativeDistrictLevel2) &&
Objects.equals(this.administrativeDistrictLevel3, address.administrativeDistrictLevel3) &&
Objects.equals(this.postalCode, address.postalCode) &&
Objects.equals(this.country, address.country) &&
Objects.equals(this.firstName, address.firstName) &&
Objects.equals(this.lastName, address.lastName) &&
Objects.equals(this.organization, address.organization);
}
@Override
public int hashCode() {
return Objects.hash(addressLine1, addressLine2, addressLine3, locality, sublocality, sublocality2, sublocality3, administrativeDistrictLevel1, administrativeDistrictLevel2, administrativeDistrictLevel3, postalCode, country, firstName, lastName, organization);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Address {\n");
sb.append(" addressLine1: ").append(toIndentedString(addressLine1)).append("\n");
sb.append(" addressLine2: ").append(toIndentedString(addressLine2)).append("\n");
sb.append(" addressLine3: ").append(toIndentedString(addressLine3)).append("\n");
sb.append(" locality: ").append(toIndentedString(locality)).append("\n");
sb.append(" sublocality: ").append(toIndentedString(sublocality)).append("\n");
sb.append(" sublocality2: ").append(toIndentedString(sublocality2)).append("\n");
sb.append(" sublocality3: ").append(toIndentedString(sublocality3)).append("\n");
sb.append(" administrativeDistrictLevel1: ").append(toIndentedString(administrativeDistrictLevel1)).append("\n");
sb.append(" administrativeDistrictLevel2: ").append(toIndentedString(administrativeDistrictLevel2)).append("\n");
sb.append(" administrativeDistrictLevel3: ").append(toIndentedString(administrativeDistrictLevel3)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" organization: ").append(toIndentedString(organization)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,931 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1TimecardEvent.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* V1TimecardEvent
*/
@ApiModel(description = "V1TimecardEvent")
public class V1TimecardEvent {
@JsonProperty("id")
private String id = null;
@JsonProperty("event_type")
private String eventType = null;
@JsonProperty("clockin_time")
private String clockinTime = null;
@JsonProperty("clockout_time")
private String clockoutTime = null;
@JsonProperty("created_at")
private String createdAt = null;
public V1TimecardEvent id(String id) {
this.id = id;
return this;
}
/**
* The event's unique ID.
* @return id
**/
@ApiModelProperty(value = "The event's unique ID.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public V1TimecardEvent eventType(String eventType) {
this.eventType = eventType;
return this;
}
/**
* The ID of the timecard to list events for. See [V1TimecardEventEventType](#type-v1timecardeventeventtype) for possible values
* @return eventType
**/
@ApiModelProperty(value = "The ID of the timecard to list events for. See [V1TimecardEventEventType](#type-v1timecardeventeventtype) for possible values")
public String getEventType() {
return eventType;
}
public void setEventType(String eventType) {
this.eventType = eventType;
}
public V1TimecardEvent clockinTime(String clockinTime) {
this.clockinTime = clockinTime;
return this;
}
/**
* The time the employee clocked in, in ISO 8601 format.
* @return clockinTime
**/
@ApiModelProperty(value = "The time the employee clocked in, in ISO 8601 format.")
public String getClockinTime() {
return clockinTime;
}
public void setClockinTime(String clockinTime) {
this.clockinTime = clockinTime;
}
public V1TimecardEvent clockoutTime(String clockoutTime) {
this.clockoutTime = clockoutTime;
return this;
}
/**
* The time the employee clocked out, in ISO 8601 format.
* @return clockoutTime
**/
@ApiModelProperty(value = "The time the employee clocked out, in ISO 8601 format.")
public String getClockoutTime() {
return clockoutTime;
}
public void setClockoutTime(String clockoutTime) {
this.clockoutTime = clockoutTime;
}
public V1TimecardEvent createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* The time when the event was created, in ISO 8601 format.
* @return createdAt
**/
@ApiModelProperty(value = "The time when the event was created, in ISO 8601 format.")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1TimecardEvent v1TimecardEvent = (V1TimecardEvent) o;
return Objects.equals(this.id, v1TimecardEvent.id) &&
Objects.equals(this.eventType, v1TimecardEvent.eventType) &&
Objects.equals(this.clockinTime, v1TimecardEvent.clockinTime) &&
Objects.equals(this.clockoutTime, v1TimecardEvent.clockoutTime) &&
Objects.equals(this.createdAt, v1TimecardEvent.createdAt);
}
@Override
public int hashCode() {
return Objects.hash(id, eventType, clockinTime, clockoutTime, createdAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1TimecardEvent {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
sb.append(" clockinTime: ").append(toIndentedString(clockinTime)).append("\n");
sb.append(" clockoutTime: ").append(toIndentedString(clockoutTime)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,932 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CustomerGroupInfo.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Contains some brief information about a customer group with its identifier included.
*/
@ApiModel(description = "Contains some brief information about a customer group with its identifier included.")
public class CustomerGroupInfo {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
public CustomerGroupInfo id(String id) {
this.id = id;
return this;
}
/**
* The ID of the customer group.
* @return id
**/
@ApiModelProperty(required = true, value = "The ID of the customer group.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public CustomerGroupInfo name(String name) {
this.name = name;
return this;
}
/**
* The name of the customer group.
* @return name
**/
@ApiModelProperty(required = true, value = "The name of the customer group.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CustomerGroupInfo customerGroupInfo = (CustomerGroupInfo) o;
return Objects.equals(this.id, customerGroupInfo.id) &&
Objects.equals(this.name, customerGroupInfo.name);
}
@Override
public int hashCode() {
return Objects.hash(id, name);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CustomerGroupInfo {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,933 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogQueryItemsForModifierList.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class CatalogQueryItemsForModifierList {
@JsonProperty("modifier_list_ids")
private List<String> modifierListIds = new ArrayList<String>();
public CatalogQueryItemsForModifierList modifierListIds(List<String> modifierListIds) {
this.modifierListIds = modifierListIds;
return this;
}
public CatalogQueryItemsForModifierList addModifierListIdsItem(String modifierListIdsItem) {
this.modifierListIds.add(modifierListIdsItem);
return this;
}
/**
* A set of `CatalogModifierList` IDs to be used to find associated `CatalogItem`s.
* @return modifierListIds
**/
@ApiModelProperty(required = true, value = "A set of `CatalogModifierList` IDs to be used to find associated `CatalogItem`s.")
public List<String> getModifierListIds() {
return modifierListIds;
}
public void setModifierListIds(List<String> modifierListIds) {
this.modifierListIds = modifierListIds;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CatalogQueryItemsForModifierList catalogQueryItemsForModifierList = (CatalogQueryItemsForModifierList) o;
return Objects.equals(this.modifierListIds, catalogQueryItemsForModifierList.modifierListIds);
}
@Override
public int hashCode() {
return Objects.hash(modifierListIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CatalogQueryItemsForModifierList {\n");
sb.append(" modifierListIds: ").append(toIndentedString(modifierListIds)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,934 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1Category.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* V1Category
*/
@ApiModel(description = "V1Category")
public class V1Category {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("v2_id")
private String v2Id = null;
public V1Category id(String id) {
this.id = id;
return this;
}
/**
* The category's unique ID.
* @return id
**/
@ApiModelProperty(value = "The category's unique ID.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public V1Category name(String name) {
this.name = name;
return this;
}
/**
* The category's name.
* @return name
**/
@ApiModelProperty(value = "The category's name.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public V1Category v2Id(String v2Id) {
this.v2Id = v2Id;
return this;
}
/**
* The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID.
* @return v2Id
**/
@ApiModelProperty(value = "The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID.")
public String getV2Id() {
return v2Id;
}
public void setV2Id(String v2Id) {
this.v2Id = v2Id;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1Category v1Category = (V1Category) o;
return Objects.equals(this.id, v1Category.id) &&
Objects.equals(this.name, v1Category.name) &&
Objects.equals(this.v2Id, v1Category.v2Id);
}
@Override
public int hashCode() {
return Objects.hash(id, name, v2Id);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1Category {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" v2Id: ").append(toIndentedString(v2Id)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,935 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListTimecardEventsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1TimecardEvent;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class V1ListTimecardEventsResponse {
@JsonProperty("items")
private List<V1TimecardEvent> items = new ArrayList<V1TimecardEvent>();
public V1ListTimecardEventsResponse items(List<V1TimecardEvent> items) {
this.items = items;
return this;
}
public V1ListTimecardEventsResponse addItemsItem(V1TimecardEvent itemsItem) {
this.items.add(itemsItem);
return this;
}
/**
*
* @return items
**/
@ApiModelProperty(value = "")
public List<V1TimecardEvent> getItems() {
return items;
}
public void setItems(List<V1TimecardEvent> items) {
this.items = items;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ListTimecardEventsResponse v1ListTimecardEventsResponse = (V1ListTimecardEventsResponse) o;
return Objects.equals(this.items, v1ListTimecardEventsResponse.items);
}
@Override
public int hashCode() {
return Objects.hash(items);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ListTimecardEventsResponse {\n");
sb.append(" items: ").append(toIndentedString(items)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,936 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1PaymentSurcharge.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Money;
import com.squareup.connect.models.V1PaymentTax;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* V1PaymentSurcharge
*/
@ApiModel(description = "V1PaymentSurcharge")
public class V1PaymentSurcharge {
@JsonProperty("name")
private String name = null;
@JsonProperty("applied_money")
private V1Money appliedMoney = null;
@JsonProperty("rate")
private String rate = null;
@JsonProperty("amount_money")
private V1Money amountMoney = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("taxable")
private Boolean taxable = null;
@JsonProperty("taxes")
private List<V1PaymentTax> taxes = new ArrayList<V1PaymentTax>();
@JsonProperty("surcharge_id")
private String surchargeId = null;
public V1PaymentSurcharge name(String name) {
this.name = name;
return this;
}
/**
* The name of the surcharge.
* @return name
**/
@ApiModelProperty(value = "The name of the surcharge.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public V1PaymentSurcharge appliedMoney(V1Money appliedMoney) {
this.appliedMoney = appliedMoney;
return this;
}
/**
* The amount of money applied to the order as a result of the surcharge.
* @return appliedMoney
**/
@ApiModelProperty(value = "The amount of money applied to the order as a result of the surcharge.")
public V1Money getAppliedMoney() {
return appliedMoney;
}
public void setAppliedMoney(V1Money appliedMoney) {
this.appliedMoney = appliedMoney;
}
public V1PaymentSurcharge rate(String rate) {
this.rate = rate;
return this;
}
/**
* The amount of the surcharge as a percentage. The percentage is provided as a string representing the decimal equivalent of the percentage. For example, \"0.7\" corresponds to a 7% surcharge. Exactly one of rate or amount_money should be set.
* @return rate
**/
@ApiModelProperty(value = "The amount of the surcharge as a percentage. The percentage is provided as a string representing the decimal equivalent of the percentage. For example, \"0.7\" corresponds to a 7% surcharge. Exactly one of rate or amount_money should be set.")
public String getRate() {
return rate;
}
public void setRate(String rate) {
this.rate = rate;
}
public V1PaymentSurcharge amountMoney(V1Money amountMoney) {
this.amountMoney = amountMoney;
return this;
}
/**
* The amount of the surcharge as a Money object. Exactly one of rate or amount_money should be set.
* @return amountMoney
**/
@ApiModelProperty(value = "The amount of the surcharge as a Money object. Exactly one of rate or amount_money should be set.")
public V1Money getAmountMoney() {
return amountMoney;
}
public void setAmountMoney(V1Money amountMoney) {
this.amountMoney = amountMoney;
}
public V1PaymentSurcharge type(String type) {
this.type = type;
return this;
}
/**
* Indicates the source of the surcharge. For example, if it was applied as an automatic gratuity for a large group. See [V1PaymentSurchargeType](#type-v1paymentsurchargetype) for possible values
* @return type
**/
@ApiModelProperty(value = "Indicates the source of the surcharge. For example, if it was applied as an automatic gratuity for a large group. See [V1PaymentSurchargeType](#type-v1paymentsurchargetype) for possible values")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public V1PaymentSurcharge taxable(Boolean taxable) {
this.taxable = taxable;
return this;
}
/**
* Indicates whether the surcharge is taxable.
* @return taxable
**/
@ApiModelProperty(value = "Indicates whether the surcharge is taxable.")
public Boolean getTaxable() {
return taxable;
}
public void setTaxable(Boolean taxable) {
this.taxable = taxable;
}
public V1PaymentSurcharge taxes(List<V1PaymentTax> taxes) {
this.taxes = taxes;
return this;
}
public V1PaymentSurcharge addTaxesItem(V1PaymentTax taxesItem) {
this.taxes.add(taxesItem);
return this;
}
/**
* The list of taxes that should be applied to the surcharge.
* @return taxes
**/
@ApiModelProperty(value = "The list of taxes that should be applied to the surcharge.")
public List<V1PaymentTax> getTaxes() {
return taxes;
}
public void setTaxes(List<V1PaymentTax> taxes) {
this.taxes = taxes;
}
public V1PaymentSurcharge surchargeId(String surchargeId) {
this.surchargeId = surchargeId;
return this;
}
/**
* A Square-issued unique identifier associated with the surcharge.
* @return surchargeId
**/
@ApiModelProperty(value = "A Square-issued unique identifier associated with the surcharge.")
public String getSurchargeId() {
return surchargeId;
}
public void setSurchargeId(String surchargeId) {
this.surchargeId = surchargeId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1PaymentSurcharge v1PaymentSurcharge = (V1PaymentSurcharge) o;
return Objects.equals(this.name, v1PaymentSurcharge.name) &&
Objects.equals(this.appliedMoney, v1PaymentSurcharge.appliedMoney) &&
Objects.equals(this.rate, v1PaymentSurcharge.rate) &&
Objects.equals(this.amountMoney, v1PaymentSurcharge.amountMoney) &&
Objects.equals(this.type, v1PaymentSurcharge.type) &&
Objects.equals(this.taxable, v1PaymentSurcharge.taxable) &&
Objects.equals(this.taxes, v1PaymentSurcharge.taxes) &&
Objects.equals(this.surchargeId, v1PaymentSurcharge.surchargeId);
}
@Override
public int hashCode() {
return Objects.hash(name, appliedMoney, rate, amountMoney, type, taxable, taxes, surchargeId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1PaymentSurcharge {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" appliedMoney: ").append(toIndentedString(appliedMoney)).append("\n");
sb.append(" rate: ").append(toIndentedString(rate)).append("\n");
sb.append(" amountMoney: ").append(toIndentedString(amountMoney)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" taxable: ").append(toIndentedString(taxable)).append("\n");
sb.append(" taxes: ").append(toIndentedString(taxes)).append("\n");
sb.append(" surchargeId: ").append(toIndentedString(surchargeId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,937 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateBreakTypeResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.BreakType;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* The response to the request to create a `BreakType`. Contains the created `BreakType` object. May contain a set of `Error` objects if the request resulted in errors.
*/
@ApiModel(description = "The response to the request to create a `BreakType`. Contains the created `BreakType` object. May contain a set of `Error` objects if the request resulted in errors.")
public class CreateBreakTypeResponse {
@JsonProperty("break_type")
private BreakType breakType = null;
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public CreateBreakTypeResponse breakType(BreakType breakType) {
this.breakType = breakType;
return this;
}
/**
* The `BreakType` that was created by the request.
* @return breakType
**/
@ApiModelProperty(value = "The `BreakType` that was created by the request.")
public BreakType getBreakType() {
return breakType;
}
public void setBreakType(BreakType breakType) {
this.breakType = breakType;
}
public CreateBreakTypeResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public CreateBreakTypeResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateBreakTypeResponse createBreakTypeResponse = (CreateBreakTypeResponse) o;
return Objects.equals(this.breakType, createBreakTypeResponse.breakType) &&
Objects.equals(this.errors, createBreakTypeResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(breakType, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateBreakTypeResponse {\n");
sb.append(" breakType: ").append(toIndentedString(breakType)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,938 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RetrieveEmployeeRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
/**
*
*/
@ApiModel(description = "")
public class RetrieveEmployeeRequest {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetrieveEmployeeRequest {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,939 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListRefundsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.Refund;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the [ListRefunds](#endpoint-listrefunds) endpoint. One of `errors` or `refunds` is present in a given response (never both).
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the [ListRefunds](#endpoint-listrefunds) endpoint. One of `errors` or `refunds` is present in a given response (never both).")
public class ListRefundsResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("refunds")
private List<Refund> refunds = new ArrayList<Refund>();
@JsonProperty("cursor")
private String cursor = null;
public ListRefundsResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public ListRefundsResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public ListRefundsResponse refunds(List<Refund> refunds) {
this.refunds = refunds;
return this;
}
public ListRefundsResponse addRefundsItem(Refund refundsItem) {
this.refunds.add(refundsItem);
return this;
}
/**
* An array of refunds that match your query.
* @return refunds
**/
@ApiModelProperty(value = "An array of refunds that match your query.")
public List<Refund> getRefunds() {
return refunds;
}
public void setRefunds(List<Refund> refunds) {
this.refunds = refunds;
}
public ListRefundsResponse cursor(String cursor) {
this.cursor = cursor;
return this;
}
/**
* A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information.
* @return cursor
**/
@ApiModelProperty(value = "A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information.")
public String getCursor() {
return cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListRefundsResponse listRefundsResponse = (ListRefundsResponse) o;
return Objects.equals(this.errors, listRefundsResponse.errors) &&
Objects.equals(this.refunds, listRefundsResponse.refunds) &&
Objects.equals(this.cursor, listRefundsResponse.cursor);
}
@Override
public int hashCode() {
return Objects.hash(errors, refunds, cursor);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListRefundsResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" refunds: ").append(toIndentedString(refunds)).append("\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,940 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateCheckoutResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Checkout;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the [CreateCheckout](#endpoint-createcheckout) endpoint.
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the [CreateCheckout](#endpoint-createcheckout) endpoint.")
public class CreateCheckoutResponse {
@JsonProperty("checkout")
private Checkout checkout = null;
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public CreateCheckoutResponse checkout(Checkout checkout) {
this.checkout = checkout;
return this;
}
/**
* The newly created checkout. If the same request was made with the same idempotency_key, this will be the checkout created with the idempotency_key.
* @return checkout
**/
@ApiModelProperty(value = "The newly created checkout. If the same request was made with the same idempotency_key, this will be the checkout created with the idempotency_key.")
public Checkout getCheckout() {
return checkout;
}
public void setCheckout(Checkout checkout) {
this.checkout = checkout;
}
public CreateCheckoutResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public CreateCheckoutResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateCheckoutResponse createCheckoutResponse = (CreateCheckoutResponse) o;
return Objects.equals(this.checkout, createCheckoutResponse.checkout) &&
Objects.equals(this.errors, createCheckoutResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(checkout, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateCheckoutResponse {\n");
sb.append(" checkout: ").append(toIndentedString(checkout)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,941 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListEmployeesResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Employee;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class V1ListEmployeesResponse {
@JsonProperty("items")
private List<V1Employee> items = new ArrayList<V1Employee>();
public V1ListEmployeesResponse items(List<V1Employee> items) {
this.items = items;
return this;
}
public V1ListEmployeesResponse addItemsItem(V1Employee itemsItem) {
this.items.add(itemsItem);
return this;
}
/**
*
* @return items
**/
@ApiModelProperty(value = "")
public List<V1Employee> getItems() {
return items;
}
public void setItems(List<V1Employee> items) {
this.items = items;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ListEmployeesResponse v1ListEmployeesResponse = (V1ListEmployeesResponse) o;
return Objects.equals(this.items, v1ListEmployeesResponse.items);
}
@Override
public int hashCode() {
return Objects.hash(items);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ListEmployeesResponse {\n");
sb.append(" items: ").append(toIndentedString(items)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,942 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/SearchOrdersQuery.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.SearchOrdersFilter;
import com.squareup.connect.models.SearchOrdersSort;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Contains query criteria for the search.
*/
@ApiModel(description = "Contains query criteria for the search.")
public class SearchOrdersQuery {
@JsonProperty("filter")
private SearchOrdersFilter filter = null;
@JsonProperty("sort")
private SearchOrdersSort sort = null;
public SearchOrdersQuery filter(SearchOrdersFilter filter) {
this.filter = filter;
return this;
}
/**
* Criteria to filter results by.
* @return filter
**/
@ApiModelProperty(value = "Criteria to filter results by.")
public SearchOrdersFilter getFilter() {
return filter;
}
public void setFilter(SearchOrdersFilter filter) {
this.filter = filter;
}
public SearchOrdersQuery sort(SearchOrdersSort sort) {
this.sort = sort;
return this;
}
/**
* Criteria to sort results by.
* @return sort
**/
@ApiModelProperty(value = "Criteria to sort results by.")
public SearchOrdersSort getSort() {
return sort;
}
public void setSort(SearchOrdersSort sort) {
this.sort = sort;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SearchOrdersQuery searchOrdersQuery = (SearchOrdersQuery) o;
return Objects.equals(this.filter, searchOrdersQuery.filter) &&
Objects.equals(this.sort, searchOrdersQuery.sort);
}
@Override
public int hashCode() {
return Objects.hash(filter, sort);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SearchOrdersQuery {\n");
sb.append(" filter: ").append(toIndentedString(filter)).append("\n");
sb.append(" sort: ").append(toIndentedString(sort)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,943 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/SearchCustomersResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Customer;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the SearchCustomers endpoint. One of `errors` or `customers` is present in a given response (never both).
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the SearchCustomers endpoint. One of `errors` or `customers` is present in a given response (never both).")
public class SearchCustomersResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("customers")
private List<Customer> customers = new ArrayList<Customer>();
@JsonProperty("cursor")
private String cursor = null;
public SearchCustomersResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public SearchCustomersResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public SearchCustomersResponse customers(List<Customer> customers) {
this.customers = customers;
return this;
}
public SearchCustomersResponse addCustomersItem(Customer customersItem) {
this.customers.add(customersItem);
return this;
}
/**
* An array of `Customer` objects that match a query.
* @return customers
**/
@ApiModelProperty(value = "An array of `Customer` objects that match a query.")
public List<Customer> getCustomers() {
return customers;
}
public void setCustomers(List<Customer> customers) {
this.customers = customers;
}
public SearchCustomersResponse cursor(String cursor) {
this.cursor = cursor;
return this;
}
/**
* A pagination cursor that can be used during subsequent calls to SearchCustomers to retrieve the next set of results associated with the original query. Pagination cursors are only present when a request succeeds and additional results are available. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information.
* @return cursor
**/
@ApiModelProperty(value = "A pagination cursor that can be used during subsequent calls to SearchCustomers to retrieve the next set of results associated with the original query. Pagination cursors are only present when a request succeeds and additional results are available. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information.")
public String getCursor() {
return cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SearchCustomersResponse searchCustomersResponse = (SearchCustomersResponse) o;
return Objects.equals(this.errors, searchCustomersResponse.errors) &&
Objects.equals(this.customers, searchCustomersResponse.customers) &&
Objects.equals(this.cursor, searchCustomersResponse.cursor);
}
@Override
public int hashCode() {
return Objects.hash(errors, customers, cursor);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SearchCustomersResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" customers: ").append(toIndentedString(customers)).append("\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,944 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateCatalogImageResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.CatalogObject;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class CreateCatalogImageResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("image")
private CatalogObject image = null;
public CreateCatalogImageResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public CreateCatalogImageResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Information on any errors encountered.
* @return errors
**/
@ApiModelProperty(value = "Information on any errors encountered.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public CreateCatalogImageResponse image(CatalogObject image) {
this.image = image;
return this;
}
/**
* The newly created `CatalogImage` including a Square-generated URL for each image.
* @return image
**/
@ApiModelProperty(value = "The newly created `CatalogImage` including a Square-generated URL for each image.")
public CatalogObject getImage() {
return image;
}
public void setImage(CatalogObject image) {
this.image = image;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateCatalogImageResponse createCatalogImageResponse = (CreateCatalogImageResponse) o;
return Objects.equals(this.errors, createCatalogImageResponse.errors) &&
Objects.equals(this.image, createCatalogImageResponse.image);
}
@Override
public int hashCode() {
return Objects.hash(errors, image);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateCatalogImageResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" image: ").append(toIndentedString(image)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,945 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListAdditionalRecipientReceivableRefundsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.AdditionalRecipientReceivableRefund;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the [ListAdditionalRecipientReceivableRefunds](#endpoint-listadditionalrecipientreceivablerefunds) endpoint. One of `errors` or `additional_recipient_receivable_refunds` is present in a given response (never both).
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the [ListAdditionalRecipientReceivableRefunds](#endpoint-listadditionalrecipientreceivablerefunds) endpoint. One of `errors` or `additional_recipient_receivable_refunds` is present in a given response (never both).")
public class ListAdditionalRecipientReceivableRefundsResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("receivable_refunds")
private List<AdditionalRecipientReceivableRefund> receivableRefunds = new ArrayList<AdditionalRecipientReceivableRefund>();
@JsonProperty("cursor")
private String cursor = null;
public ListAdditionalRecipientReceivableRefundsResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public ListAdditionalRecipientReceivableRefundsResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public ListAdditionalRecipientReceivableRefundsResponse receivableRefunds(List<AdditionalRecipientReceivableRefund> receivableRefunds) {
this.receivableRefunds = receivableRefunds;
return this;
}
public ListAdditionalRecipientReceivableRefundsResponse addReceivableRefundsItem(AdditionalRecipientReceivableRefund receivableRefundsItem) {
this.receivableRefunds.add(receivableRefundsItem);
return this;
}
/**
* An array of AdditionalRecipientReceivableRefunds that match your query.
* @return receivableRefunds
**/
@ApiModelProperty(value = "An array of AdditionalRecipientReceivableRefunds that match your query.")
public List<AdditionalRecipientReceivableRefund> getReceivableRefunds() {
return receivableRefunds;
}
public void setReceivableRefunds(List<AdditionalRecipientReceivableRefund> receivableRefunds) {
this.receivableRefunds = receivableRefunds;
}
public ListAdditionalRecipientReceivableRefundsResponse cursor(String cursor) {
this.cursor = cursor;
return this;
}
/**
* A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information.
* @return cursor
**/
@ApiModelProperty(value = "A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information.")
public String getCursor() {
return cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListAdditionalRecipientReceivableRefundsResponse listAdditionalRecipientReceivableRefundsResponse = (ListAdditionalRecipientReceivableRefundsResponse) o;
return Objects.equals(this.errors, listAdditionalRecipientReceivableRefundsResponse.errors) &&
Objects.equals(this.receivableRefunds, listAdditionalRecipientReceivableRefundsResponse.receivableRefunds) &&
Objects.equals(this.cursor, listAdditionalRecipientReceivableRefundsResponse.cursor);
}
@Override
public int hashCode() {
return Objects.hash(errors, receivableRefunds, cursor);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListAdditionalRecipientReceivableRefundsResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" receivableRefunds: ").append(toIndentedString(receivableRefunds)).append("\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,946 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/BatchRetrieveOrdersResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.Order;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the BatchRetrieveOrders endpoint.
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the BatchRetrieveOrders endpoint.")
public class BatchRetrieveOrdersResponse {
@JsonProperty("orders")
private List<Order> orders = new ArrayList<Order>();
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public BatchRetrieveOrdersResponse orders(List<Order> orders) {
this.orders = orders;
return this;
}
public BatchRetrieveOrdersResponse addOrdersItem(Order ordersItem) {
this.orders.add(ordersItem);
return this;
}
/**
* The requested orders. This will omit any requested orders that do not exist.
* @return orders
**/
@ApiModelProperty(value = "The requested orders. This will omit any requested orders that do not exist.")
public List<Order> getOrders() {
return orders;
}
public void setOrders(List<Order> orders) {
this.orders = orders;
}
public BatchRetrieveOrdersResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public BatchRetrieveOrdersResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BatchRetrieveOrdersResponse batchRetrieveOrdersResponse = (BatchRetrieveOrdersResponse) o;
return Objects.equals(this.orders, batchRetrieveOrdersResponse.orders) &&
Objects.equals(this.errors, batchRetrieveOrdersResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(orders, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BatchRetrieveOrdersResponse {\n");
sb.append(" orders: ").append(toIndentedString(orders)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,947 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1PageCell.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* V1PageCell
*/
@ApiModel(description = "V1PageCell")
public class V1PageCell {
@JsonProperty("page_id")
private String pageId = null;
@JsonProperty("row")
private Integer row = null;
@JsonProperty("column")
private Integer column = null;
@JsonProperty("object_type")
private String objectType = null;
@JsonProperty("object_id")
private String objectId = null;
@JsonProperty("placeholder_type")
private String placeholderType = null;
public V1PageCell pageId(String pageId) {
this.pageId = pageId;
return this;
}
/**
* The unique identifier of the page the cell is included on.
* @return pageId
**/
@ApiModelProperty(value = "The unique identifier of the page the cell is included on.")
public String getPageId() {
return pageId;
}
public void setPageId(String pageId) {
this.pageId = pageId;
}
public V1PageCell row(Integer row) {
this.row = row;
return this;
}
/**
* The row of the cell. Always an integer between 0 and 4, inclusive.
* @return row
**/
@ApiModelProperty(value = "The row of the cell. Always an integer between 0 and 4, inclusive.")
public Integer getRow() {
return row;
}
public void setRow(Integer row) {
this.row = row;
}
public V1PageCell column(Integer column) {
this.column = column;
return this;
}
/**
* The column of the cell. Always an integer between 0 and 4, inclusive.
* @return column
**/
@ApiModelProperty(value = "The column of the cell. Always an integer between 0 and 4, inclusive.")
public Integer getColumn() {
return column;
}
public void setColumn(Integer column) {
this.column = column;
}
public V1PageCell objectType(String objectType) {
this.objectType = objectType;
return this;
}
/**
* The type of entity represented in the cell (ITEM, DISCOUNT, CATEGORY, or PLACEHOLDER). See [V1PageCellObjectType](#type-v1pagecellobjecttype) for possible values
* @return objectType
**/
@ApiModelProperty(value = "The type of entity represented in the cell (ITEM, DISCOUNT, CATEGORY, or PLACEHOLDER). See [V1PageCellObjectType](#type-v1pagecellobjecttype) for possible values")
public String getObjectType() {
return objectType;
}
public void setObjectType(String objectType) {
this.objectType = objectType;
}
public V1PageCell objectId(String objectId) {
this.objectId = objectId;
return this;
}
/**
* The unique identifier of the entity represented in the cell. Not present for cells with an object_type of PLACEHOLDER.
* @return objectId
**/
@ApiModelProperty(value = "The unique identifier of the entity represented in the cell. Not present for cells with an object_type of PLACEHOLDER.")
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
public V1PageCell placeholderType(String placeholderType) {
this.placeholderType = placeholderType;
return this;
}
/**
* For a cell with an object_type of PLACEHOLDER, this value indicates the cell's special behavior. See [V1PageCellPlaceholderType](#type-v1pagecellplaceholdertype) for possible values
* @return placeholderType
**/
@ApiModelProperty(value = "For a cell with an object_type of PLACEHOLDER, this value indicates the cell's special behavior. See [V1PageCellPlaceholderType](#type-v1pagecellplaceholdertype) for possible values")
public String getPlaceholderType() {
return placeholderType;
}
public void setPlaceholderType(String placeholderType) {
this.placeholderType = placeholderType;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1PageCell v1PageCell = (V1PageCell) o;
return Objects.equals(this.pageId, v1PageCell.pageId) &&
Objects.equals(this.row, v1PageCell.row) &&
Objects.equals(this.column, v1PageCell.column) &&
Objects.equals(this.objectType, v1PageCell.objectType) &&
Objects.equals(this.objectId, v1PageCell.objectId) &&
Objects.equals(this.placeholderType, v1PageCell.placeholderType);
}
@Override
public int hashCode() {
return Objects.hash(pageId, row, column, objectType, objectId, placeholderType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1PageCell {\n");
sb.append(" pageId: ").append(toIndentedString(pageId)).append("\n");
sb.append(" row: ").append(toIndentedString(row)).append("\n");
sb.append(" column: ").append(toIndentedString(column)).append("\n");
sb.append(" objectType: ").append(toIndentedString(objectType)).append("\n");
sb.append(" objectId: ").append(toIndentedString(objectId)).append("\n");
sb.append(" placeholderType: ").append(toIndentedString(placeholderType)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,948 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListFeesRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
/**
*
*/
@ApiModel(description = "")
public class V1ListFeesRequest {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ListFeesRequest {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,949 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/OrderReturn.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.OrderMoneyAmounts;
import com.squareup.connect.models.OrderReturnDiscount;
import com.squareup.connect.models.OrderReturnLineItem;
import com.squareup.connect.models.OrderReturnServiceCharge;
import com.squareup.connect.models.OrderReturnTax;
import com.squareup.connect.models.OrderRoundingAdjustment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* The set of line items, service charges, taxes, discounts, tips, etc. being returned in an Order.
*/
@ApiModel(description = "The set of line items, service charges, taxes, discounts, tips, etc. being returned in an Order.")
public class OrderReturn {
@JsonProperty("uid")
private String uid = null;
@JsonProperty("source_order_id")
private String sourceOrderId = null;
@JsonProperty("return_line_items")
private List<OrderReturnLineItem> returnLineItems = new ArrayList<OrderReturnLineItem>();
@JsonProperty("return_service_charges")
private List<OrderReturnServiceCharge> returnServiceCharges = new ArrayList<OrderReturnServiceCharge>();
@JsonProperty("return_taxes")
private List<OrderReturnTax> returnTaxes = new ArrayList<OrderReturnTax>();
@JsonProperty("return_discounts")
private List<OrderReturnDiscount> returnDiscounts = new ArrayList<OrderReturnDiscount>();
@JsonProperty("rounding_adjustment")
private OrderRoundingAdjustment roundingAdjustment = null;
@JsonProperty("return_amounts")
private OrderMoneyAmounts returnAmounts = null;
public OrderReturn uid(String uid) {
this.uid = uid;
return this;
}
/**
* Unique ID that identifies the return only within this order.
* @return uid
**/
@ApiModelProperty(value = "Unique ID that identifies the return only within this order.")
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public OrderReturn sourceOrderId(String sourceOrderId) {
this.sourceOrderId = sourceOrderId;
return this;
}
/**
* Order which contains the original sale of these returned line items. This will be unset for unlinked returns.
* @return sourceOrderId
**/
@ApiModelProperty(value = "Order which contains the original sale of these returned line items. This will be unset for unlinked returns.")
public String getSourceOrderId() {
return sourceOrderId;
}
public void setSourceOrderId(String sourceOrderId) {
this.sourceOrderId = sourceOrderId;
}
public OrderReturn returnLineItems(List<OrderReturnLineItem> returnLineItems) {
this.returnLineItems = returnLineItems;
return this;
}
public OrderReturn addReturnLineItemsItem(OrderReturnLineItem returnLineItemsItem) {
this.returnLineItems.add(returnLineItemsItem);
return this;
}
/**
* Collection of line items which are being returned.
* @return returnLineItems
**/
@ApiModelProperty(value = "Collection of line items which are being returned.")
public List<OrderReturnLineItem> getReturnLineItems() {
return returnLineItems;
}
public void setReturnLineItems(List<OrderReturnLineItem> returnLineItems) {
this.returnLineItems = returnLineItems;
}
public OrderReturn returnServiceCharges(List<OrderReturnServiceCharge> returnServiceCharges) {
this.returnServiceCharges = returnServiceCharges;
return this;
}
public OrderReturn addReturnServiceChargesItem(OrderReturnServiceCharge returnServiceChargesItem) {
this.returnServiceCharges.add(returnServiceChargesItem);
return this;
}
/**
* Collection of service charges which are being returned.
* @return returnServiceCharges
**/
@ApiModelProperty(value = "Collection of service charges which are being returned.")
public List<OrderReturnServiceCharge> getReturnServiceCharges() {
return returnServiceCharges;
}
public void setReturnServiceCharges(List<OrderReturnServiceCharge> returnServiceCharges) {
this.returnServiceCharges = returnServiceCharges;
}
public OrderReturn returnTaxes(List<OrderReturnTax> returnTaxes) {
this.returnTaxes = returnTaxes;
return this;
}
public OrderReturn addReturnTaxesItem(OrderReturnTax returnTaxesItem) {
this.returnTaxes.add(returnTaxesItem);
return this;
}
/**
* Collection of references to taxes being returned for an order, including the total applied tax amount to be returned. The taxes must reference a top-level tax ID from the source order.
* @return returnTaxes
**/
@ApiModelProperty(value = "Collection of references to taxes being returned for an order, including the total applied tax amount to be returned. The taxes must reference a top-level tax ID from the source order.")
public List<OrderReturnTax> getReturnTaxes() {
return returnTaxes;
}
public void setReturnTaxes(List<OrderReturnTax> returnTaxes) {
this.returnTaxes = returnTaxes;
}
public OrderReturn returnDiscounts(List<OrderReturnDiscount> returnDiscounts) {
this.returnDiscounts = returnDiscounts;
return this;
}
public OrderReturn addReturnDiscountsItem(OrderReturnDiscount returnDiscountsItem) {
this.returnDiscounts.add(returnDiscountsItem);
return this;
}
/**
* Collection of references to discounts being returned for an order, including the total applied discount amount to be returned. The discounts must reference a top-level discount ID from the source order.
* @return returnDiscounts
**/
@ApiModelProperty(value = "Collection of references to discounts being returned for an order, including the total applied discount amount to be returned. The discounts must reference a top-level discount ID from the source order.")
public List<OrderReturnDiscount> getReturnDiscounts() {
return returnDiscounts;
}
public void setReturnDiscounts(List<OrderReturnDiscount> returnDiscounts) {
this.returnDiscounts = returnDiscounts;
}
public OrderReturn roundingAdjustment(OrderRoundingAdjustment roundingAdjustment) {
this.roundingAdjustment = roundingAdjustment;
return this;
}
/**
* A positive or negative rounding adjustment to the total value being returned. Commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency.
* @return roundingAdjustment
**/
@ApiModelProperty(value = "A positive or negative rounding adjustment to the total value being returned. Commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency.")
public OrderRoundingAdjustment getRoundingAdjustment() {
return roundingAdjustment;
}
public void setRoundingAdjustment(OrderRoundingAdjustment roundingAdjustment) {
this.roundingAdjustment = roundingAdjustment;
}
public OrderReturn returnAmounts(OrderMoneyAmounts returnAmounts) {
this.returnAmounts = returnAmounts;
return this;
}
/**
* Aggregate monetary value being returned by this Return entry.
* @return returnAmounts
**/
@ApiModelProperty(value = "Aggregate monetary value being returned by this Return entry.")
public OrderMoneyAmounts getReturnAmounts() {
return returnAmounts;
}
public void setReturnAmounts(OrderMoneyAmounts returnAmounts) {
this.returnAmounts = returnAmounts;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OrderReturn orderReturn = (OrderReturn) o;
return Objects.equals(this.uid, orderReturn.uid) &&
Objects.equals(this.sourceOrderId, orderReturn.sourceOrderId) &&
Objects.equals(this.returnLineItems, orderReturn.returnLineItems) &&
Objects.equals(this.returnServiceCharges, orderReturn.returnServiceCharges) &&
Objects.equals(this.returnTaxes, orderReturn.returnTaxes) &&
Objects.equals(this.returnDiscounts, orderReturn.returnDiscounts) &&
Objects.equals(this.roundingAdjustment, orderReturn.roundingAdjustment) &&
Objects.equals(this.returnAmounts, orderReturn.returnAmounts);
}
@Override
public int hashCode() {
return Objects.hash(uid, sourceOrderId, returnLineItems, returnServiceCharges, returnTaxes, returnDiscounts, roundingAdjustment, returnAmounts);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OrderReturn {\n");
sb.append(" uid: ").append(toIndentedString(uid)).append("\n");
sb.append(" sourceOrderId: ").append(toIndentedString(sourceOrderId)).append("\n");
sb.append(" returnLineItems: ").append(toIndentedString(returnLineItems)).append("\n");
sb.append(" returnServiceCharges: ").append(toIndentedString(returnServiceCharges)).append("\n");
sb.append(" returnTaxes: ").append(toIndentedString(returnTaxes)).append("\n");
sb.append(" returnDiscounts: ").append(toIndentedString(returnDiscounts)).append("\n");
sb.append(" roundingAdjustment: ").append(toIndentedString(roundingAdjustment)).append("\n");
sb.append(" returnAmounts: ").append(toIndentedString(returnAmounts)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,950 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogInfoResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.CatalogInfoResponseLimits;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.StandardUnitDescriptionGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class CatalogInfoResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("limits")
private CatalogInfoResponseLimits limits = null;
@JsonProperty("standard_unit_description_group")
private StandardUnitDescriptionGroup standardUnitDescriptionGroup = null;
public CatalogInfoResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public CatalogInfoResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* The set of errors encountered.
* @return errors
**/
@ApiModelProperty(value = "The set of errors encountered.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public CatalogInfoResponse limits(CatalogInfoResponseLimits limits) {
this.limits = limits;
return this;
}
/**
*
* @return limits
**/
@ApiModelProperty(value = "")
public CatalogInfoResponseLimits getLimits() {
return limits;
}
public void setLimits(CatalogInfoResponseLimits limits) {
this.limits = limits;
}
public CatalogInfoResponse standardUnitDescriptionGroup(StandardUnitDescriptionGroup standardUnitDescriptionGroup) {
this.standardUnitDescriptionGroup = standardUnitDescriptionGroup;
return this;
}
/**
* Names and abbreviations for standard units.
* @return standardUnitDescriptionGroup
**/
@ApiModelProperty(value = "Names and abbreviations for standard units.")
public StandardUnitDescriptionGroup getStandardUnitDescriptionGroup() {
return standardUnitDescriptionGroup;
}
public void setStandardUnitDescriptionGroup(StandardUnitDescriptionGroup standardUnitDescriptionGroup) {
this.standardUnitDescriptionGroup = standardUnitDescriptionGroup;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CatalogInfoResponse catalogInfoResponse = (CatalogInfoResponse) o;
return Objects.equals(this.errors, catalogInfoResponse.errors) &&
Objects.equals(this.limits, catalogInfoResponse.limits) &&
Objects.equals(this.standardUnitDescriptionGroup, catalogInfoResponse.standardUnitDescriptionGroup);
}
@Override
public int hashCode() {
return Objects.hash(errors, limits, standardUnitDescriptionGroup);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CatalogInfoResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" limits: ").append(toIndentedString(limits)).append("\n");
sb.append(" standardUnitDescriptionGroup: ").append(toIndentedString(standardUnitDescriptionGroup)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,951 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1UpdateOrderRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* V1UpdateOrderRequest
*/
@ApiModel(description = "V1UpdateOrderRequest")
public class V1UpdateOrderRequest {
@JsonProperty("action")
private String action = null;
@JsonProperty("shipped_tracking_number")
private String shippedTrackingNumber = null;
@JsonProperty("completed_note")
private String completedNote = null;
@JsonProperty("refunded_note")
private String refundedNote = null;
@JsonProperty("canceled_note")
private String canceledNote = null;
public V1UpdateOrderRequest action(String action) {
this.action = action;
return this;
}
/**
* The action to perform on the order (COMPLETE, CANCEL, or REFUND). See [V1UpdateOrderRequestAction](#type-v1updateorderrequestaction) for possible values
* @return action
**/
@ApiModelProperty(required = true, value = "The action to perform on the order (COMPLETE, CANCEL, or REFUND). See [V1UpdateOrderRequestAction](#type-v1updateorderrequestaction) for possible values")
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public V1UpdateOrderRequest shippedTrackingNumber(String shippedTrackingNumber) {
this.shippedTrackingNumber = shippedTrackingNumber;
return this;
}
/**
* The tracking number of the shipment associated with the order. Only valid if action is COMPLETE.
* @return shippedTrackingNumber
**/
@ApiModelProperty(value = "The tracking number of the shipment associated with the order. Only valid if action is COMPLETE.")
public String getShippedTrackingNumber() {
return shippedTrackingNumber;
}
public void setShippedTrackingNumber(String shippedTrackingNumber) {
this.shippedTrackingNumber = shippedTrackingNumber;
}
public V1UpdateOrderRequest completedNote(String completedNote) {
this.completedNote = completedNote;
return this;
}
/**
* A merchant-specified note about the completion of the order. Only valid if action is COMPLETE.
* @return completedNote
**/
@ApiModelProperty(value = "A merchant-specified note about the completion of the order. Only valid if action is COMPLETE.")
public String getCompletedNote() {
return completedNote;
}
public void setCompletedNote(String completedNote) {
this.completedNote = completedNote;
}
public V1UpdateOrderRequest refundedNote(String refundedNote) {
this.refundedNote = refundedNote;
return this;
}
/**
* A merchant-specified note about the refunding of the order. Only valid if action is REFUND.
* @return refundedNote
**/
@ApiModelProperty(value = "A merchant-specified note about the refunding of the order. Only valid if action is REFUND.")
public String getRefundedNote() {
return refundedNote;
}
public void setRefundedNote(String refundedNote) {
this.refundedNote = refundedNote;
}
public V1UpdateOrderRequest canceledNote(String canceledNote) {
this.canceledNote = canceledNote;
return this;
}
/**
* A merchant-specified note about the canceling of the order. Only valid if action is CANCEL.
* @return canceledNote
**/
@ApiModelProperty(value = "A merchant-specified note about the canceling of the order. Only valid if action is CANCEL.")
public String getCanceledNote() {
return canceledNote;
}
public void setCanceledNote(String canceledNote) {
this.canceledNote = canceledNote;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1UpdateOrderRequest v1UpdateOrderRequest = (V1UpdateOrderRequest) o;
return Objects.equals(this.action, v1UpdateOrderRequest.action) &&
Objects.equals(this.shippedTrackingNumber, v1UpdateOrderRequest.shippedTrackingNumber) &&
Objects.equals(this.completedNote, v1UpdateOrderRequest.completedNote) &&
Objects.equals(this.refundedNote, v1UpdateOrderRequest.refundedNote) &&
Objects.equals(this.canceledNote, v1UpdateOrderRequest.canceledNote);
}
@Override
public int hashCode() {
return Objects.hash(action, shippedTrackingNumber, completedNote, refundedNote, canceledNote);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1UpdateOrderRequest {\n");
sb.append(" action: ").append(toIndentedString(action)).append("\n");
sb.append(" shippedTrackingNumber: ").append(toIndentedString(shippedTrackingNumber)).append("\n");
sb.append(" completedNote: ").append(toIndentedString(completedNote)).append("\n");
sb.append(" refundedNote: ").append(toIndentedString(refundedNote)).append("\n");
sb.append(" canceledNote: ").append(toIndentedString(canceledNote)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,952 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1AdjustInventoryRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
/**
* V1AdjustInventoryRequest
*/
@ApiModel(description = "V1AdjustInventoryRequest")
public class V1AdjustInventoryRequest {
@JsonProperty("quantity_delta")
private BigDecimal quantityDelta = null;
@JsonProperty("adjustment_type")
private String adjustmentType = null;
@JsonProperty("memo")
private String memo = null;
public V1AdjustInventoryRequest quantityDelta(BigDecimal quantityDelta) {
this.quantityDelta = quantityDelta;
return this;
}
/**
* The number to adjust the variation's quantity by.
* @return quantityDelta
**/
@ApiModelProperty(value = "The number to adjust the variation's quantity by.")
public BigDecimal getQuantityDelta() {
return quantityDelta;
}
public void setQuantityDelta(BigDecimal quantityDelta) {
this.quantityDelta = quantityDelta;
}
public V1AdjustInventoryRequest adjustmentType(String adjustmentType) {
this.adjustmentType = adjustmentType;
return this;
}
/**
* The reason for the inventory adjustment. See [V1AdjustInventoryRequestAdjustmentType](#type-v1adjustinventoryrequestadjustmenttype) for possible values
* @return adjustmentType
**/
@ApiModelProperty(value = "The reason for the inventory adjustment. See [V1AdjustInventoryRequestAdjustmentType](#type-v1adjustinventoryrequestadjustmenttype) for possible values")
public String getAdjustmentType() {
return adjustmentType;
}
public void setAdjustmentType(String adjustmentType) {
this.adjustmentType = adjustmentType;
}
public V1AdjustInventoryRequest memo(String memo) {
this.memo = memo;
return this;
}
/**
* A note about the inventory adjustment.
* @return memo
**/
@ApiModelProperty(value = "A note about the inventory adjustment.")
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1AdjustInventoryRequest v1AdjustInventoryRequest = (V1AdjustInventoryRequest) o;
return Objects.equals(this.quantityDelta, v1AdjustInventoryRequest.quantityDelta) &&
Objects.equals(this.adjustmentType, v1AdjustInventoryRequest.adjustmentType) &&
Objects.equals(this.memo, v1AdjustInventoryRequest.memo);
}
@Override
public int hashCode() {
return Objects.hash(quantityDelta, adjustmentType, memo);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1AdjustInventoryRequest {\n");
sb.append(" quantityDelta: ").append(toIndentedString(quantityDelta)).append("\n");
sb.append(" adjustmentType: ").append(toIndentedString(adjustmentType)).append("\n");
sb.append(" memo: ").append(toIndentedString(memo)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,953 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/OrderSource.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents the origination details of an order.
*/
@ApiModel(description = "Represents the origination details of an order.")
public class OrderSource {
@JsonProperty("name")
private String name = null;
public OrderSource name(String name) {
this.name = name;
return this;
}
/**
* The name used to identify the place (physical or digital) that an order originates. If unset, the name defaults to the name of the application that created the order.
* @return name
**/
@ApiModelProperty(value = "The name used to identify the place (physical or digital) that an order originates. If unset, the name defaults to the name of the application that created the order.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OrderSource orderSource = (OrderSource) o;
return Objects.equals(this.name, orderSource.name);
}
@Override
public int hashCode() {
return Objects.hash(name);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OrderSource {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,954 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/GetShiftResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.Shift;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* A response to request to get a `Shift`. Contains the requested `Shift` object. May contain a set of `Error` objects if the request resulted in errors.
*/
@ApiModel(description = "A response to request to get a `Shift`. Contains the requested `Shift` object. May contain a set of `Error` objects if the request resulted in errors.")
public class GetShiftResponse {
@JsonProperty("shift")
private Shift shift = null;
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public GetShiftResponse shift(Shift shift) {
this.shift = shift;
return this;
}
/**
* The requested `Shift`.
* @return shift
**/
@ApiModelProperty(value = "The requested `Shift`.")
public Shift getShift() {
return shift;
}
public void setShift(Shift shift) {
this.shift = shift;
}
public GetShiftResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public GetShiftResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetShiftResponse getShiftResponse = (GetShiftResponse) o;
return Objects.equals(this.shift, getShiftResponse.shift) &&
Objects.equals(this.errors, getShiftResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(shift, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetShiftResponse {\n");
sb.append(" shift: ").append(toIndentedString(shift)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,955 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogQueryItemVariationsForItemOptionValues.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class CatalogQueryItemVariationsForItemOptionValues {
@JsonProperty("item_option_value_ids")
private List<String> itemOptionValueIds = new ArrayList<String>();
public CatalogQueryItemVariationsForItemOptionValues itemOptionValueIds(List<String> itemOptionValueIds) {
this.itemOptionValueIds = itemOptionValueIds;
return this;
}
public CatalogQueryItemVariationsForItemOptionValues addItemOptionValueIdsItem(String itemOptionValueIdsItem) {
this.itemOptionValueIds.add(itemOptionValueIdsItem);
return this;
}
/**
* A set of `CatalogItemOptionValue` IDs to be used to find associated `CatalogItemVariation`s. All ItemVariations that contain all of the given Item Option Values (in any order) will be returned.
* @return itemOptionValueIds
**/
@ApiModelProperty(value = "A set of `CatalogItemOptionValue` IDs to be used to find associated `CatalogItemVariation`s. All ItemVariations that contain all of the given Item Option Values (in any order) will be returned.")
public List<String> getItemOptionValueIds() {
return itemOptionValueIds;
}
public void setItemOptionValueIds(List<String> itemOptionValueIds) {
this.itemOptionValueIds = itemOptionValueIds;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CatalogQueryItemVariationsForItemOptionValues catalogQueryItemVariationsForItemOptionValues = (CatalogQueryItemVariationsForItemOptionValues) o;
return Objects.equals(this.itemOptionValueIds, catalogQueryItemVariationsForItemOptionValues.itemOptionValueIds);
}
@Override
public int hashCode() {
return Objects.hash(itemOptionValueIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CatalogQueryItemVariationsForItemOptionValues {\n");
sb.append(" itemOptionValueIds: ").append(toIndentedString(itemOptionValueIds)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,956 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/SourceApplication.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Provides information about the application used to generate an inventory change.
*/
@ApiModel(description = "Provides information about the application used to generate an inventory change.")
public class SourceApplication {
@JsonProperty("product")
private String product = null;
@JsonProperty("application_id")
private String applicationId = null;
@JsonProperty("name")
private String name = null;
public SourceApplication product(String product) {
this.product = product;
return this;
}
/**
* Read-only `Product` type for the application. See [Product](#type-product) for possible values
* @return product
**/
@ApiModelProperty(value = "Read-only `Product` type for the application. See [Product](#type-product) for possible values")
public String getProduct() {
return product;
}
public void setProduct(String product) {
this.product = product;
}
public SourceApplication applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* Read-only Square ID assigned to the application. Only used for `Product` type `EXTERNAL_API`.
* @return applicationId
**/
@ApiModelProperty(value = "Read-only Square ID assigned to the application. Only used for `Product` type `EXTERNAL_API`.")
public String getApplicationId() {
return applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public SourceApplication name(String name) {
this.name = name;
return this;
}
/**
* Read-only display name assigned to the application (e.g. `\"Custom Application\"`, `\"Square POS 4.74 for Android\"`).
* @return name
**/
@ApiModelProperty(value = "Read-only display name assigned to the application (e.g. `\"Custom Application\"`, `\"Square POS 4.74 for Android\"`).")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SourceApplication sourceApplication = (SourceApplication) o;
return Objects.equals(this.product, sourceApplication.product) &&
Objects.equals(this.applicationId, sourceApplication.applicationId) &&
Objects.equals(this.name, sourceApplication.name);
}
@Override
public int hashCode() {
return Objects.hash(product, applicationId, name);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SourceApplication {\n");
sb.append(" product: ").append(toIndentedString(product)).append("\n");
sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,957 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateCustomerRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Address;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Defines the body parameters that can be provided in a request to the CreateCustomer endpoint.
*/
@ApiModel(description = "Defines the body parameters that can be provided in a request to the CreateCustomer endpoint.")
public class CreateCustomerRequest {
@JsonProperty("idempotency_key")
private String idempotencyKey = null;
@JsonProperty("given_name")
private String givenName = null;
@JsonProperty("family_name")
private String familyName = null;
@JsonProperty("company_name")
private String companyName = null;
@JsonProperty("nickname")
private String nickname = null;
@JsonProperty("email_address")
private String emailAddress = null;
@JsonProperty("address")
private Address address = null;
@JsonProperty("phone_number")
private String phoneNumber = null;
@JsonProperty("reference_id")
private String referenceId = null;
@JsonProperty("note")
private String note = null;
@JsonProperty("birthday")
private String birthday = null;
public CreateCustomerRequest idempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
return this;
}
/**
* The idempotency key for the request. See the [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency) guide for more information.
* @return idempotencyKey
**/
@ApiModelProperty(value = "The idempotency key for the request. See the [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency) guide for more information.")
public String getIdempotencyKey() {
return idempotencyKey;
}
public void setIdempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
}
public CreateCustomerRequest givenName(String givenName) {
this.givenName = givenName;
return this;
}
/**
* The given (i.e., first) name associated with the customer profile.
* @return givenName
**/
@ApiModelProperty(value = "The given (i.e., first) name associated with the customer profile.")
public String getGivenName() {
return givenName;
}
public void setGivenName(String givenName) {
this.givenName = givenName;
}
public CreateCustomerRequest familyName(String familyName) {
this.familyName = familyName;
return this;
}
/**
* The family (i.e., last) name associated with the customer profile.
* @return familyName
**/
@ApiModelProperty(value = "The family (i.e., last) name associated with the customer profile.")
public String getFamilyName() {
return familyName;
}
public void setFamilyName(String familyName) {
this.familyName = familyName;
}
public CreateCustomerRequest companyName(String companyName) {
this.companyName = companyName;
return this;
}
/**
* A business name associated with the customer profile.
* @return companyName
**/
@ApiModelProperty(value = "A business name associated with the customer profile.")
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public CreateCustomerRequest nickname(String nickname) {
this.nickname = nickname;
return this;
}
/**
* A nickname for the customer profile.
* @return nickname
**/
@ApiModelProperty(value = "A nickname for the customer profile.")
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public CreateCustomerRequest emailAddress(String emailAddress) {
this.emailAddress = emailAddress;
return this;
}
/**
* The email address associated with the customer profile.
* @return emailAddress
**/
@ApiModelProperty(value = "The email address associated with the customer profile.")
public String getEmailAddress() {
return emailAddress;
}
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
public CreateCustomerRequest address(Address address) {
this.address = address;
return this;
}
/**
* The physical address associated with the customer profile.
* @return address
**/
@ApiModelProperty(value = "The physical address associated with the customer profile.")
public Address getAddress() {
return address;
}
public void setAddress(Address address) {
this.address = address;
}
public CreateCustomerRequest phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
/**
* The 11-digit phone number associated with the customer profile.
* @return phoneNumber
**/
@ApiModelProperty(value = "The 11-digit phone number associated with the customer profile.")
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public CreateCustomerRequest referenceId(String referenceId) {
this.referenceId = referenceId;
return this;
}
/**
* An optional, second ID used to associate the customer profile with an entity in another system.
* @return referenceId
**/
@ApiModelProperty(value = "An optional, second ID used to associate the customer profile with an entity in another system.")
public String getReferenceId() {
return referenceId;
}
public void setReferenceId(String referenceId) {
this.referenceId = referenceId;
}
public CreateCustomerRequest note(String note) {
this.note = note;
return this;
}
/**
* A custom note associated with the customer profile.
* @return note
**/
@ApiModelProperty(value = "A custom note associated with the customer profile.")
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
public CreateCustomerRequest birthday(String birthday) {
this.birthday = birthday;
return this;
}
/**
* The birthday associated with the customer profile, in RFC-3339 format. Year is optional, timezone and times are not allowed. For example: `0000-09-01T00:00:00-00:00` indicates a birthday on September 1st. `1998-09-01T00:00:00-00:00` indications a birthday on September 1st __1998__.
* @return birthday
**/
@ApiModelProperty(value = "The birthday associated with the customer profile, in RFC-3339 format. Year is optional, timezone and times are not allowed. For example: `0000-09-01T00:00:00-00:00` indicates a birthday on September 1st. `1998-09-01T00:00:00-00:00` indications a birthday on September 1st __1998__.")
public String getBirthday() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateCustomerRequest createCustomerRequest = (CreateCustomerRequest) o;
return Objects.equals(this.idempotencyKey, createCustomerRequest.idempotencyKey) &&
Objects.equals(this.givenName, createCustomerRequest.givenName) &&
Objects.equals(this.familyName, createCustomerRequest.familyName) &&
Objects.equals(this.companyName, createCustomerRequest.companyName) &&
Objects.equals(this.nickname, createCustomerRequest.nickname) &&
Objects.equals(this.emailAddress, createCustomerRequest.emailAddress) &&
Objects.equals(this.address, createCustomerRequest.address) &&
Objects.equals(this.phoneNumber, createCustomerRequest.phoneNumber) &&
Objects.equals(this.referenceId, createCustomerRequest.referenceId) &&
Objects.equals(this.note, createCustomerRequest.note) &&
Objects.equals(this.birthday, createCustomerRequest.birthday);
}
@Override
public int hashCode() {
return Objects.hash(idempotencyKey, givenName, familyName, companyName, nickname, emailAddress, address, phoneNumber, referenceId, note, birthday);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateCustomerRequest {\n");
sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).append("\n");
sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n");
sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n");
sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n");
sb.append(" nickname: ").append(toIndentedString(nickname)).append("\n");
sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
sb.append(" note: ").append(toIndentedString(note)).append("\n");
sb.append(" birthday: ").append(toIndentedString(birthday)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,958 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/SearchCatalogObjectsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.CatalogObject;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class SearchCatalogObjectsResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("cursor")
private String cursor = null;
@JsonProperty("objects")
private List<CatalogObject> objects = new ArrayList<CatalogObject>();
@JsonProperty("related_objects")
private List<CatalogObject> relatedObjects = new ArrayList<CatalogObject>();
@JsonProperty("latest_time")
private String latestTime = null;
public SearchCatalogObjectsResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public SearchCatalogObjectsResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Information on any errors encountered.
* @return errors
**/
@ApiModelProperty(value = "Information on any errors encountered.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public SearchCatalogObjectsResponse cursor(String cursor) {
this.cursor = cursor;
return this;
}
/**
* The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information.
* @return cursor
**/
@ApiModelProperty(value = "The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information.")
public String getCursor() {
return cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
}
public SearchCatalogObjectsResponse objects(List<CatalogObject> objects) {
this.objects = objects;
return this;
}
public SearchCatalogObjectsResponse addObjectsItem(CatalogObject objectsItem) {
this.objects.add(objectsItem);
return this;
}
/**
* The CatalogObjects returned.
* @return objects
**/
@ApiModelProperty(value = "The CatalogObjects returned.")
public List<CatalogObject> getObjects() {
return objects;
}
public void setObjects(List<CatalogObject> objects) {
this.objects = objects;
}
public SearchCatalogObjectsResponse relatedObjects(List<CatalogObject> relatedObjects) {
this.relatedObjects = relatedObjects;
return this;
}
public SearchCatalogObjectsResponse addRelatedObjectsItem(CatalogObject relatedObjectsItem) {
this.relatedObjects.add(relatedObjectsItem);
return this;
}
/**
* A list of CatalogObjects referenced by the objects in the `objects` field.
* @return relatedObjects
**/
@ApiModelProperty(value = "A list of CatalogObjects referenced by the objects in the `objects` field.")
public List<CatalogObject> getRelatedObjects() {
return relatedObjects;
}
public void setRelatedObjects(List<CatalogObject> relatedObjects) {
this.relatedObjects = relatedObjects;
}
public SearchCatalogObjectsResponse latestTime(String latestTime) {
this.latestTime = latestTime;
return this;
}
/**
* When the associated product catalog was last updated. Will match the value for `end_time` or `cursor` if either field is included in the `SearchCatalog` request.
* Note: This model is in beta.
* @return latestTime
**/
@ApiModelProperty(value = "When the associated product catalog was last updated. Will match the value for `end_time` or `cursor` if either field is included in the `SearchCatalog` request.")
public String getLatestTime() {
return latestTime;
}
public void setLatestTime(String latestTime) {
this.latestTime = latestTime;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SearchCatalogObjectsResponse searchCatalogObjectsResponse = (SearchCatalogObjectsResponse) o;
return Objects.equals(this.errors, searchCatalogObjectsResponse.errors) &&
Objects.equals(this.cursor, searchCatalogObjectsResponse.cursor) &&
Objects.equals(this.objects, searchCatalogObjectsResponse.objects) &&
Objects.equals(this.relatedObjects, searchCatalogObjectsResponse.relatedObjects) &&
Objects.equals(this.latestTime, searchCatalogObjectsResponse.latestTime);
}
@Override
public int hashCode() {
return Objects.hash(errors, cursor, objects, relatedObjects, latestTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SearchCatalogObjectsResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append(" objects: ").append(toIndentedString(objects)).append("\n");
sb.append(" relatedObjects: ").append(toIndentedString(relatedObjects)).append("\n");
sb.append(" latestTime: ").append(toIndentedString(latestTime)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,959 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/DeleteBreakTypeResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* The response to a request to delete a `BreakType`. May contain a set of `Error` objects if the request resulted in errors.
*/
@ApiModel(description = "The response to a request to delete a `BreakType`. May contain a set of `Error` objects if the request resulted in errors.")
public class DeleteBreakTypeResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public DeleteBreakTypeResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public DeleteBreakTypeResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeleteBreakTypeResponse deleteBreakTypeResponse = (DeleteBreakTypeResponse) o;
return Objects.equals(this.errors, deleteBreakTypeResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteBreakTypeResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,960 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1RetrieveCashDrawerShiftRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
/**
*
*/
@ApiModel(description = "")
public class V1RetrieveCashDrawerShiftRequest {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1RetrieveCashDrawerShiftRequest {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,961 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/BatchRetrieveCatalogObjectsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.CatalogObject;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class BatchRetrieveCatalogObjectsResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("objects")
private List<CatalogObject> objects = new ArrayList<CatalogObject>();
@JsonProperty("related_objects")
private List<CatalogObject> relatedObjects = new ArrayList<CatalogObject>();
public BatchRetrieveCatalogObjectsResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public BatchRetrieveCatalogObjectsResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* The set of `Error`s encountered.
* @return errors
**/
@ApiModelProperty(value = "The set of `Error`s encountered.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public BatchRetrieveCatalogObjectsResponse objects(List<CatalogObject> objects) {
this.objects = objects;
return this;
}
public BatchRetrieveCatalogObjectsResponse addObjectsItem(CatalogObject objectsItem) {
this.objects.add(objectsItem);
return this;
}
/**
* A list of `CatalogObject`s returned.
* @return objects
**/
@ApiModelProperty(value = "A list of `CatalogObject`s returned.")
public List<CatalogObject> getObjects() {
return objects;
}
public void setObjects(List<CatalogObject> objects) {
this.objects = objects;
}
public BatchRetrieveCatalogObjectsResponse relatedObjects(List<CatalogObject> relatedObjects) {
this.relatedObjects = relatedObjects;
return this;
}
public BatchRetrieveCatalogObjectsResponse addRelatedObjectsItem(CatalogObject relatedObjectsItem) {
this.relatedObjects.add(relatedObjectsItem);
return this;
}
/**
* A list of `CatalogObject`s referenced by the object in the `objects` field.
* @return relatedObjects
**/
@ApiModelProperty(value = "A list of `CatalogObject`s referenced by the object in the `objects` field.")
public List<CatalogObject> getRelatedObjects() {
return relatedObjects;
}
public void setRelatedObjects(List<CatalogObject> relatedObjects) {
this.relatedObjects = relatedObjects;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BatchRetrieveCatalogObjectsResponse batchRetrieveCatalogObjectsResponse = (BatchRetrieveCatalogObjectsResponse) o;
return Objects.equals(this.errors, batchRetrieveCatalogObjectsResponse.errors) &&
Objects.equals(this.objects, batchRetrieveCatalogObjectsResponse.objects) &&
Objects.equals(this.relatedObjects, batchRetrieveCatalogObjectsResponse.relatedObjects);
}
@Override
public int hashCode() {
return Objects.hash(errors, objects, relatedObjects);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BatchRetrieveCatalogObjectsResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" objects: ").append(toIndentedString(objects)).append("\n");
sb.append(" relatedObjects: ").append(toIndentedString(relatedObjects)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,962 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1EmployeeRole.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* V1EmployeeRole
*/
@ApiModel(description = "V1EmployeeRole")
public class V1EmployeeRole {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("permissions")
private List<String> permissions = new ArrayList<String>();
@JsonProperty("is_owner")
private Boolean isOwner = null;
@JsonProperty("created_at")
private String createdAt = null;
@JsonProperty("updated_at")
private String updatedAt = null;
public V1EmployeeRole id(String id) {
this.id = id;
return this;
}
/**
* The role's unique ID, Can only be set by Square.
* @return id
**/
@ApiModelProperty(value = "The role's unique ID, Can only be set by Square.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public V1EmployeeRole name(String name) {
this.name = name;
return this;
}
/**
* The role's merchant-defined name.
* @return name
**/
@ApiModelProperty(required = true, value = "The role's merchant-defined name.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public V1EmployeeRole permissions(List<String> permissions) {
this.permissions = permissions;
return this;
}
public V1EmployeeRole addPermissionsItem(String permissionsItem) {
this.permissions.add(permissionsItem);
return this;
}
/**
* The role's permissions. See [V1EmployeeRolePermissions](#type-v1employeerolepermissions) for possible values
* @return permissions
**/
@ApiModelProperty(required = true, value = "The role's permissions. See [V1EmployeeRolePermissions](#type-v1employeerolepermissions) for possible values")
public List<String> getPermissions() {
return permissions;
}
public void setPermissions(List<String> permissions) {
this.permissions = permissions;
}
public V1EmployeeRole isOwner(Boolean isOwner) {
this.isOwner = isOwner;
return this;
}
/**
* If true, employees with this role have all permissions, regardless of the values indicated in permissions.
* @return isOwner
**/
@ApiModelProperty(value = "If true, employees with this role have all permissions, regardless of the values indicated in permissions.")
public Boolean getIsOwner() {
return isOwner;
}
public void setIsOwner(Boolean isOwner) {
this.isOwner = isOwner;
}
public V1EmployeeRole createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* The time when the employee entity was created, in ISO 8601 format. Is set by Square when the Role is created.
* @return createdAt
**/
@ApiModelProperty(value = "The time when the employee entity was created, in ISO 8601 format. Is set by Square when the Role is created.")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public V1EmployeeRole updatedAt(String updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* The time when the employee entity was most recently updated, in ISO 8601 format. Is set by Square when the Role updated.
* @return updatedAt
**/
@ApiModelProperty(value = "The time when the employee entity was most recently updated, in ISO 8601 format. Is set by Square when the Role updated.")
public String getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1EmployeeRole v1EmployeeRole = (V1EmployeeRole) o;
return Objects.equals(this.id, v1EmployeeRole.id) &&
Objects.equals(this.name, v1EmployeeRole.name) &&
Objects.equals(this.permissions, v1EmployeeRole.permissions) &&
Objects.equals(this.isOwner, v1EmployeeRole.isOwner) &&
Objects.equals(this.createdAt, v1EmployeeRole.createdAt) &&
Objects.equals(this.updatedAt, v1EmployeeRole.updatedAt);
}
@Override
public int hashCode() {
return Objects.hash(id, name, permissions, isOwner, createdAt, updatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1EmployeeRole {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n");
sb.append(" isOwner: ").append(toIndentedString(isOwner)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,963 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/StandardUnitDescriptionGroup.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.StandardUnitDescription;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Group of standard measurement units.
*/
@ApiModel(description = "Group of standard measurement units.")
public class StandardUnitDescriptionGroup {
@JsonProperty("standard_unit_descriptions")
private List<StandardUnitDescription> standardUnitDescriptions = new ArrayList<StandardUnitDescription>();
@JsonProperty("language_code")
private String languageCode = null;
public StandardUnitDescriptionGroup standardUnitDescriptions(List<StandardUnitDescription> standardUnitDescriptions) {
this.standardUnitDescriptions = standardUnitDescriptions;
return this;
}
public StandardUnitDescriptionGroup addStandardUnitDescriptionsItem(StandardUnitDescription standardUnitDescriptionsItem) {
this.standardUnitDescriptions.add(standardUnitDescriptionsItem);
return this;
}
/**
* List of standard (non-custom) measurement units in this description group.
* @return standardUnitDescriptions
**/
@ApiModelProperty(value = "List of standard (non-custom) measurement units in this description group.")
public List<StandardUnitDescription> getStandardUnitDescriptions() {
return standardUnitDescriptions;
}
public void setStandardUnitDescriptions(List<StandardUnitDescription> standardUnitDescriptions) {
this.standardUnitDescriptions = standardUnitDescriptions;
}
public StandardUnitDescriptionGroup languageCode(String languageCode) {
this.languageCode = languageCode;
return this;
}
/**
* IETF language tag.
* @return languageCode
**/
@ApiModelProperty(value = "IETF language tag.")
public String getLanguageCode() {
return languageCode;
}
public void setLanguageCode(String languageCode) {
this.languageCode = languageCode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StandardUnitDescriptionGroup standardUnitDescriptionGroup = (StandardUnitDescriptionGroup) o;
return Objects.equals(this.standardUnitDescriptions, standardUnitDescriptionGroup.standardUnitDescriptions) &&
Objects.equals(this.languageCode, standardUnitDescriptionGroup.languageCode);
}
@Override
public int hashCode() {
return Objects.hash(standardUnitDescriptions, languageCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StandardUnitDescriptionGroup {\n");
sb.append(" standardUnitDescriptions: ").append(toIndentedString(standardUnitDescriptions)).append("\n");
sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,964 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/Coordinates.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
/**
* Latitude and longitude coordinates.
*/
@ApiModel(description = "Latitude and longitude coordinates.")
public class Coordinates {
@JsonProperty("latitude")
private BigDecimal latitude = null;
@JsonProperty("longitude")
private BigDecimal longitude = null;
public Coordinates latitude(BigDecimal latitude) {
this.latitude = latitude;
return this;
}
/**
* The latitude of the coordinate expressed in degrees.
* @return latitude
**/
@ApiModelProperty(value = "The latitude of the coordinate expressed in degrees.")
public BigDecimal getLatitude() {
return latitude;
}
public void setLatitude(BigDecimal latitude) {
this.latitude = latitude;
}
public Coordinates longitude(BigDecimal longitude) {
this.longitude = longitude;
return this;
}
/**
* The longitude of the coordinate expressed in degrees.
* @return longitude
**/
@ApiModelProperty(value = "The longitude of the coordinate expressed in degrees.")
public BigDecimal getLongitude() {
return longitude;
}
public void setLongitude(BigDecimal longitude) {
this.longitude = longitude;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Coordinates coordinates = (Coordinates) o;
return Objects.equals(this.latitude, coordinates.latitude) &&
Objects.equals(this.longitude, coordinates.longitude);
}
@Override
public int hashCode() {
return Objects.hash(latitude, longitude);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Coordinates {\n");
sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n");
sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,965 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RetrieveMerchantRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
/**
* Request object for the [RetrieveMerchant](#endpoint-retrievemerchant) endpoint.
*/
@ApiModel(description = "Request object for the [RetrieveMerchant](#endpoint-retrievemerchant) endpoint.")
public class RetrieveMerchantRequest {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetrieveMerchantRequest {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,966 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RetrieveLocationResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.Location;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that the [RetrieveLocation](#endpoint-retrievelocation) endpoint returns in a response.
*/
@ApiModel(description = "Defines the fields that the [RetrieveLocation](#endpoint-retrievelocation) endpoint returns in a response.")
public class RetrieveLocationResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("location")
private Location location = null;
public RetrieveLocationResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public RetrieveLocationResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Information on errors encountered during the request.
* @return errors
**/
@ApiModelProperty(value = "Information on errors encountered during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public RetrieveLocationResponse location(Location location) {
this.location = location;
return this;
}
/**
* The requested location.
* @return location
**/
@ApiModelProperty(value = "The requested location.")
public Location getLocation() {
return location;
}
public void setLocation(Location location) {
this.location = location;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RetrieveLocationResponse retrieveLocationResponse = (RetrieveLocationResponse) o;
return Objects.equals(this.errors, retrieveLocationResponse.errors) &&
Objects.equals(this.location, retrieveLocationResponse.location);
}
@Override
public int hashCode() {
return Objects.hash(errors, location);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetrieveLocationResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" location: ").append(toIndentedString(location)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,967 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RetrieveCustomerResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Customer;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the RetrieveCustomer endpoint. One of `errors` or `customer` is present in a given response (never both).
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the RetrieveCustomer endpoint. One of `errors` or `customer` is present in a given response (never both).")
public class RetrieveCustomerResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("customer")
private Customer customer = null;
public RetrieveCustomerResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public RetrieveCustomerResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public RetrieveCustomerResponse customer(Customer customer) {
this.customer = customer;
return this;
}
/**
* The requested customer.
* @return customer
**/
@ApiModelProperty(value = "The requested customer.")
public Customer getCustomer() {
return customer;
}
public void setCustomer(Customer customer) {
this.customer = customer;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RetrieveCustomerResponse retrieveCustomerResponse = (RetrieveCustomerResponse) o;
return Objects.equals(this.errors, retrieveCustomerResponse.errors) &&
Objects.equals(this.customer, retrieveCustomerResponse.customer);
}
@Override
public int hashCode() {
return Objects.hash(errors, customer);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetrieveCustomerResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" customer: ").append(toIndentedString(customer)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,968 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RetrieveInventoryPhysicalCountRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
/**
*
*/
@ApiModel(description = "")
public class RetrieveInventoryPhysicalCountRequest {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetrieveInventoryPhysicalCountRequest {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,969 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/BatchRetrieveInventoryChangesResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.InventoryChange;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class BatchRetrieveInventoryChangesResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("changes")
private List<InventoryChange> changes = new ArrayList<InventoryChange>();
@JsonProperty("cursor")
private String cursor = null;
public BatchRetrieveInventoryChangesResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public BatchRetrieveInventoryChangesResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public BatchRetrieveInventoryChangesResponse changes(List<InventoryChange> changes) {
this.changes = changes;
return this;
}
public BatchRetrieveInventoryChangesResponse addChangesItem(InventoryChange changesItem) {
this.changes.add(changesItem);
return this;
}
/**
* The current calculated inventory changes for the requested objects and locations.
* @return changes
**/
@ApiModelProperty(value = "The current calculated inventory changes for the requested objects and locations.")
public List<InventoryChange> getChanges() {
return changes;
}
public void setChanges(List<InventoryChange> changes) {
this.changes = changes;
}
public BatchRetrieveInventoryChangesResponse cursor(String cursor) {
this.cursor = cursor;
return this;
}
/**
* The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information.
* @return cursor
**/
@ApiModelProperty(value = "The pagination cursor to be used in a subsequent request. If unset, this is the final response. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information.")
public String getCursor() {
return cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BatchRetrieveInventoryChangesResponse batchRetrieveInventoryChangesResponse = (BatchRetrieveInventoryChangesResponse) o;
return Objects.equals(this.errors, batchRetrieveInventoryChangesResponse.errors) &&
Objects.equals(this.changes, batchRetrieveInventoryChangesResponse.changes) &&
Objects.equals(this.cursor, batchRetrieveInventoryChangesResponse.cursor);
}
@Override
public int hashCode() {
return Objects.hash(errors, changes, cursor);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BatchRetrieveInventoryChangesResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" changes: ").append(toIndentedString(changes)).append("\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,970 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/OrderLineItemAppliedTax.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Money;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents an applied portion of a tax to a line item in an order. Order-scoped taxes automatically include the applied taxes in each line item. Line item taxes must be referenced from any applicable line items. The corresponding applied money is automatically computed, based on the set of participating line items.
*/
@ApiModel(description = "Represents an applied portion of a tax to a line item in an order. Order-scoped taxes automatically include the applied taxes in each line item. Line item taxes must be referenced from any applicable line items. The corresponding applied money is automatically computed, based on the set of participating line items.")
public class OrderLineItemAppliedTax {
@JsonProperty("uid")
private String uid = null;
@JsonProperty("tax_uid")
private String taxUid = null;
@JsonProperty("applied_money")
private Money appliedMoney = null;
public OrderLineItemAppliedTax uid(String uid) {
this.uid = uid;
return this;
}
/**
* Unique ID that identifies the applied tax only within this order.
* @return uid
**/
@ApiModelProperty(value = "Unique ID that identifies the applied tax only within this order.")
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public OrderLineItemAppliedTax taxUid(String taxUid) {
this.taxUid = taxUid;
return this;
}
/**
* The `uid` of the tax for which this applied tax represents. Must reference a tax present in the `order.taxes` field. This field is immutable. To change which taxes apply to a line item, delete and add new `OrderLineItemAppliedTax`s.
* @return taxUid
**/
@ApiModelProperty(required = true, value = "The `uid` of the tax for which this applied tax represents. Must reference a tax present in the `order.taxes` field. This field is immutable. To change which taxes apply to a line item, delete and add new `OrderLineItemAppliedTax`s.")
public String getTaxUid() {
return taxUid;
}
public void setTaxUid(String taxUid) {
this.taxUid = taxUid;
}
public OrderLineItemAppliedTax appliedMoney(Money appliedMoney) {
this.appliedMoney = appliedMoney;
return this;
}
/**
* The amount of money applied by the tax to the line item.
* @return appliedMoney
**/
@ApiModelProperty(value = "The amount of money applied by the tax to the line item.")
public Money getAppliedMoney() {
return appliedMoney;
}
public void setAppliedMoney(Money appliedMoney) {
this.appliedMoney = appliedMoney;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OrderLineItemAppliedTax orderLineItemAppliedTax = (OrderLineItemAppliedTax) o;
return Objects.equals(this.uid, orderLineItemAppliedTax.uid) &&
Objects.equals(this.taxUid, orderLineItemAppliedTax.taxUid) &&
Objects.equals(this.appliedMoney, orderLineItemAppliedTax.appliedMoney);
}
@Override
public int hashCode() {
return Objects.hash(uid, taxUid, appliedMoney);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OrderLineItemAppliedTax {\n");
sb.append(" uid: ").append(toIndentedString(uid)).append("\n");
sb.append(" taxUid: ").append(toIndentedString(taxUid)).append("\n");
sb.append(" appliedMoney: ").append(toIndentedString(appliedMoney)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,971 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateCatalogImageRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.CatalogObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
*/
@ApiModel(description = "")
public class CreateCatalogImageRequest {
@JsonProperty("idempotency_key")
private String idempotencyKey = null;
@JsonProperty("object_id")
private String objectId = null;
@JsonProperty("image")
private CatalogObject image = null;
public CreateCatalogImageRequest idempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
return this;
}
/**
* A unique string that identifies this CreateCatalogImage request. Keys can be any valid string but must be unique for every CreateCatalogImage request. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information.
* @return idempotencyKey
**/
@ApiModelProperty(required = true, value = "A unique string that identifies this CreateCatalogImage request. Keys can be any valid string but must be unique for every CreateCatalogImage request. See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information.")
public String getIdempotencyKey() {
return idempotencyKey;
}
public void setIdempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
}
public CreateCatalogImageRequest objectId(String objectId) {
this.objectId = objectId;
return this;
}
/**
* Unique ID of the `CatalogObject` to attach to this `CatalogImage`. Leave this field empty to create unattached images, for example if you are building an integration where these images can be attached to catalog items at a later time.
* @return objectId
**/
@ApiModelProperty(value = "Unique ID of the `CatalogObject` to attach to this `CatalogImage`. Leave this field empty to create unattached images, for example if you are building an integration where these images can be attached to catalog items at a later time.")
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
public CreateCatalogImageRequest image(CatalogObject image) {
this.image = image;
return this;
}
/**
* The new `IMAGE`-type `CatalogObject` to be attached to this `CatalogImage`. If the `CatalogObject` already has a `CatalogImage`, this call will overwrite it.
* @return image
**/
@ApiModelProperty(value = "The new `IMAGE`-type `CatalogObject` to be attached to this `CatalogImage`. If the `CatalogObject` already has a `CatalogImage`, this call will overwrite it.")
public CatalogObject getImage() {
return image;
}
public void setImage(CatalogObject image) {
this.image = image;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateCatalogImageRequest createCatalogImageRequest = (CreateCatalogImageRequest) o;
return Objects.equals(this.idempotencyKey, createCatalogImageRequest.idempotencyKey) &&
Objects.equals(this.objectId, createCatalogImageRequest.objectId) &&
Objects.equals(this.image, createCatalogImageRequest.image);
}
@Override
public int hashCode() {
return Objects.hash(idempotencyKey, objectId, image);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateCatalogImageRequest {\n");
sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).append("\n");
sb.append(" objectId: ").append(toIndentedString(objectId)).append("\n");
sb.append(" image: ").append(toIndentedString(image)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,972 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListPagesRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
/**
*
*/
@ApiModel(description = "")
public class V1ListPagesRequest {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ListPagesRequest {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,973 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1Tender.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Money;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* A tender represents a discrete monetary exchange. Square represents this exchange as a money object with a specific currency and amount, where the amount is given in the smallest denomination of the given currency. Square POS can accept more than one form of tender for a single payment (such as by splitting a bill between a credit card and a gift card). The `tender` field of the Payment object lists all forms of tender used for the payment. Split tender payments behave slightly differently from single tender payments: The receipt_url for a split tender corresponds only to the first tender listed in the tender field. To get the receipt URLs for the remaining tenders, use the receipt_url fields of the corresponding Tender objects. *A note on gift cards**: when a customer purchases a Square gift card from a merchant, the merchant receives the full amount of the gift card in the associated payment. When that gift card is used as a tender, the balance of the gift card is reduced and the merchant receives no funds. A `Tender` object with a type of `SQUARE_GIFT_CARD` indicates a gift card was used for some or all of the associated payment.
*/
@ApiModel(description = "A tender represents a discrete monetary exchange. Square represents this exchange as a money object with a specific currency and amount, where the amount is given in the smallest denomination of the given currency. Square POS can accept more than one form of tender for a single payment (such as by splitting a bill between a credit card and a gift card). The `tender` field of the Payment object lists all forms of tender used for the payment. Split tender payments behave slightly differently from single tender payments: The receipt_url for a split tender corresponds only to the first tender listed in the tender field. To get the receipt URLs for the remaining tenders, use the receipt_url fields of the corresponding Tender objects. *A note on gift cards**: when a customer purchases a Square gift card from a merchant, the merchant receives the full amount of the gift card in the associated payment. When that gift card is used as a tender, the balance of the gift card is reduced and the merchant receives no funds. A `Tender` object with a type of `SQUARE_GIFT_CARD` indicates a gift card was used for some or all of the associated payment.")
public class V1Tender {
@JsonProperty("id")
private String id = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("employee_id")
private String employeeId = null;
@JsonProperty("receipt_url")
private String receiptUrl = null;
@JsonProperty("card_brand")
private String cardBrand = null;
@JsonProperty("pan_suffix")
private String panSuffix = null;
@JsonProperty("entry_method")
private String entryMethod = null;
@JsonProperty("payment_note")
private String paymentNote = null;
@JsonProperty("total_money")
private V1Money totalMoney = null;
@JsonProperty("tendered_money")
private V1Money tenderedMoney = null;
@JsonProperty("tendered_at")
private String tenderedAt = null;
@JsonProperty("settled_at")
private String settledAt = null;
@JsonProperty("change_back_money")
private V1Money changeBackMoney = null;
@JsonProperty("refunded_money")
private V1Money refundedMoney = null;
@JsonProperty("is_exchange")
private Boolean isExchange = null;
public V1Tender id(String id) {
this.id = id;
return this;
}
/**
* The tender's unique ID.
* @return id
**/
@ApiModelProperty(value = "The tender's unique ID.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public V1Tender type(String type) {
this.type = type;
return this;
}
/**
* The type of tender. See [V1TenderType](#type-v1tendertype) for possible values
* @return type
**/
@ApiModelProperty(value = "The type of tender. See [V1TenderType](#type-v1tendertype) for possible values")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public V1Tender name(String name) {
this.name = name;
return this;
}
/**
* A human-readable description of the tender.
* @return name
**/
@ApiModelProperty(value = "A human-readable description of the tender.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public V1Tender employeeId(String employeeId) {
this.employeeId = employeeId;
return this;
}
/**
* The ID of the employee that processed the tender.
* @return employeeId
**/
@ApiModelProperty(value = "The ID of the employee that processed the tender.")
public String getEmployeeId() {
return employeeId;
}
public void setEmployeeId(String employeeId) {
this.employeeId = employeeId;
}
public V1Tender receiptUrl(String receiptUrl) {
this.receiptUrl = receiptUrl;
return this;
}
/**
* The URL of the receipt for the tender.
* @return receiptUrl
**/
@ApiModelProperty(value = "The URL of the receipt for the tender.")
public String getReceiptUrl() {
return receiptUrl;
}
public void setReceiptUrl(String receiptUrl) {
this.receiptUrl = receiptUrl;
}
public V1Tender cardBrand(String cardBrand) {
this.cardBrand = cardBrand;
return this;
}
/**
* The brand of credit card provided. See [V1TenderCardBrand](#type-v1tendercardbrand) for possible values
* @return cardBrand
**/
@ApiModelProperty(value = "The brand of credit card provided. See [V1TenderCardBrand](#type-v1tendercardbrand) for possible values")
public String getCardBrand() {
return cardBrand;
}
public void setCardBrand(String cardBrand) {
this.cardBrand = cardBrand;
}
public V1Tender panSuffix(String panSuffix) {
this.panSuffix = panSuffix;
return this;
}
/**
* The last four digits of the provided credit card's account number.
* @return panSuffix
**/
@ApiModelProperty(value = "The last four digits of the provided credit card's account number.")
public String getPanSuffix() {
return panSuffix;
}
public void setPanSuffix(String panSuffix) {
this.panSuffix = panSuffix;
}
public V1Tender entryMethod(String entryMethod) {
this.entryMethod = entryMethod;
return this;
}
/**
* The tender's unique ID. See [V1TenderEntryMethod](#type-v1tenderentrymethod) for possible values
* @return entryMethod
**/
@ApiModelProperty(value = "The tender's unique ID. See [V1TenderEntryMethod](#type-v1tenderentrymethod) for possible values")
public String getEntryMethod() {
return entryMethod;
}
public void setEntryMethod(String entryMethod) {
this.entryMethod = entryMethod;
}
public V1Tender paymentNote(String paymentNote) {
this.paymentNote = paymentNote;
return this;
}
/**
* Notes entered by the merchant about the tender at the time of payment, if any. Typically only present for tender with the type: OTHER.
* @return paymentNote
**/
@ApiModelProperty(value = "Notes entered by the merchant about the tender at the time of payment, if any. Typically only present for tender with the type: OTHER.")
public String getPaymentNote() {
return paymentNote;
}
public void setPaymentNote(String paymentNote) {
this.paymentNote = paymentNote;
}
public V1Tender totalMoney(V1Money totalMoney) {
this.totalMoney = totalMoney;
return this;
}
/**
* The total amount of money provided in this form of tender.
* @return totalMoney
**/
@ApiModelProperty(value = "The total amount of money provided in this form of tender.")
public V1Money getTotalMoney() {
return totalMoney;
}
public void setTotalMoney(V1Money totalMoney) {
this.totalMoney = totalMoney;
}
public V1Tender tenderedMoney(V1Money tenderedMoney) {
this.tenderedMoney = tenderedMoney;
return this;
}
/**
* The amount of total_money applied to the payment.
* @return tenderedMoney
**/
@ApiModelProperty(value = "The amount of total_money applied to the payment.")
public V1Money getTenderedMoney() {
return tenderedMoney;
}
public void setTenderedMoney(V1Money tenderedMoney) {
this.tenderedMoney = tenderedMoney;
}
public V1Tender tenderedAt(String tenderedAt) {
this.tenderedAt = tenderedAt;
return this;
}
/**
* The time when the tender was created, in ISO 8601 format.
* @return tenderedAt
**/
@ApiModelProperty(value = "The time when the tender was created, in ISO 8601 format.")
public String getTenderedAt() {
return tenderedAt;
}
public void setTenderedAt(String tenderedAt) {
this.tenderedAt = tenderedAt;
}
public V1Tender settledAt(String settledAt) {
this.settledAt = settledAt;
return this;
}
/**
* The time when the tender was settled, in ISO 8601 format.
* @return settledAt
**/
@ApiModelProperty(value = "The time when the tender was settled, in ISO 8601 format.")
public String getSettledAt() {
return settledAt;
}
public void setSettledAt(String settledAt) {
this.settledAt = settledAt;
}
public V1Tender changeBackMoney(V1Money changeBackMoney) {
this.changeBackMoney = changeBackMoney;
return this;
}
/**
* The amount of total_money returned to the buyer as change.
* @return changeBackMoney
**/
@ApiModelProperty(value = "The amount of total_money returned to the buyer as change.")
public V1Money getChangeBackMoney() {
return changeBackMoney;
}
public void setChangeBackMoney(V1Money changeBackMoney) {
this.changeBackMoney = changeBackMoney;
}
public V1Tender refundedMoney(V1Money refundedMoney) {
this.refundedMoney = refundedMoney;
return this;
}
/**
* The total of all refunds applied to this tender. This amount is always negative or zero.
* @return refundedMoney
**/
@ApiModelProperty(value = "The total of all refunds applied to this tender. This amount is always negative or zero.")
public V1Money getRefundedMoney() {
return refundedMoney;
}
public void setRefundedMoney(V1Money refundedMoney) {
this.refundedMoney = refundedMoney;
}
public V1Tender isExchange(Boolean isExchange) {
this.isExchange = isExchange;
return this;
}
/**
* Indicates whether or not the tender is associated with an exchange. If is_exchange is true, the tender represents the value of goods returned in an exchange not the actual money paid. The exchange value reduces the tender amounts needed to pay for items purchased in the exchange.
* @return isExchange
**/
@ApiModelProperty(value = "Indicates whether or not the tender is associated with an exchange. If is_exchange is true, the tender represents the value of goods returned in an exchange not the actual money paid. The exchange value reduces the tender amounts needed to pay for items purchased in the exchange.")
public Boolean getIsExchange() {
return isExchange;
}
public void setIsExchange(Boolean isExchange) {
this.isExchange = isExchange;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1Tender v1Tender = (V1Tender) o;
return Objects.equals(this.id, v1Tender.id) &&
Objects.equals(this.type, v1Tender.type) &&
Objects.equals(this.name, v1Tender.name) &&
Objects.equals(this.employeeId, v1Tender.employeeId) &&
Objects.equals(this.receiptUrl, v1Tender.receiptUrl) &&
Objects.equals(this.cardBrand, v1Tender.cardBrand) &&
Objects.equals(this.panSuffix, v1Tender.panSuffix) &&
Objects.equals(this.entryMethod, v1Tender.entryMethod) &&
Objects.equals(this.paymentNote, v1Tender.paymentNote) &&
Objects.equals(this.totalMoney, v1Tender.totalMoney) &&
Objects.equals(this.tenderedMoney, v1Tender.tenderedMoney) &&
Objects.equals(this.tenderedAt, v1Tender.tenderedAt) &&
Objects.equals(this.settledAt, v1Tender.settledAt) &&
Objects.equals(this.changeBackMoney, v1Tender.changeBackMoney) &&
Objects.equals(this.refundedMoney, v1Tender.refundedMoney) &&
Objects.equals(this.isExchange, v1Tender.isExchange);
}
@Override
public int hashCode() {
return Objects.hash(id, type, name, employeeId, receiptUrl, cardBrand, panSuffix, entryMethod, paymentNote, totalMoney, tenderedMoney, tenderedAt, settledAt, changeBackMoney, refundedMoney, isExchange);
}
@Override
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");
sb.append(" employeeId: ").append(toIndentedString(employeeId)).append("\n");
sb.append(" receiptUrl: ").append(toIndentedString(receiptUrl)).append("\n");
sb.append(" cardBrand: ").append(toIndentedString(cardBrand)).append("\n");
sb.append(" panSuffix: ").append(toIndentedString(panSuffix)).append("\n");
sb.append(" entryMethod: ").append(toIndentedString(entryMethod)).append("\n");
sb.append(" paymentNote: ").append(toIndentedString(paymentNote)).append("\n");
sb.append(" totalMoney: ").append(toIndentedString(totalMoney)).append("\n");
sb.append(" tenderedMoney: ").append(toIndentedString(tenderedMoney)).append("\n");
sb.append(" tenderedAt: ").append(toIndentedString(tenderedAt)).append("\n");
sb.append(" settledAt: ").append(toIndentedString(settledAt)).append("\n");
sb.append(" changeBackMoney: ").append(toIndentedString(changeBackMoney)).append("\n");
sb.append(" refundedMoney: ").append(toIndentedString(refundedMoney)).append("\n");
sb.append(" isExchange: ").append(toIndentedString(isExchange)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,974 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1Merchant.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Address;
import com.squareup.connect.models.V1MerchantLocationDetails;
import com.squareup.connect.models.V1PhoneNumber;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the **RetrieveBusiness** endpoint.
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the **RetrieveBusiness** endpoint.")
public class V1Merchant {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("email")
private String email = null;
@JsonProperty("account_type")
private String accountType = null;
@JsonProperty("account_capabilities")
private List<String> accountCapabilities = new ArrayList<String>();
@JsonProperty("country_code")
private String countryCode = null;
@JsonProperty("language_code")
private String languageCode = null;
@JsonProperty("currency_code")
private String currencyCode = null;
@JsonProperty("business_name")
private String businessName = null;
@JsonProperty("business_address")
private Address businessAddress = null;
@JsonProperty("business_phone")
private V1PhoneNumber businessPhone = null;
@JsonProperty("business_type")
private String businessType = null;
@JsonProperty("shipping_address")
private Address shippingAddress = null;
@JsonProperty("location_details")
private V1MerchantLocationDetails locationDetails = null;
@JsonProperty("market_url")
private String marketUrl = null;
public V1Merchant id(String id) {
this.id = id;
return this;
}
/**
* The merchant account's unique identifier.
* @return id
**/
@ApiModelProperty(value = "The merchant account's unique identifier.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public V1Merchant name(String name) {
this.name = name;
return this;
}
/**
* The name associated with the merchant account.
* @return name
**/
@ApiModelProperty(value = "The name associated with the merchant account.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public V1Merchant email(String email) {
this.email = email;
return this;
}
/**
* The email address associated with the merchant account.
* @return email
**/
@ApiModelProperty(value = "The email address associated with the merchant account.")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public V1Merchant accountType(String accountType) {
this.accountType = accountType;
return this;
}
/**
* Indicates whether the merchant account corresponds to a single-location account (LOCATION) or a business account (BUSINESS). This value is almost always LOCATION. See [V1MerchantAccountType](#type-v1merchantaccounttype) for possible values
* @return accountType
**/
@ApiModelProperty(value = "Indicates whether the merchant account corresponds to a single-location account (LOCATION) or a business account (BUSINESS). This value is almost always LOCATION. See [V1MerchantAccountType](#type-v1merchantaccounttype) for possible values")
public String getAccountType() {
return accountType;
}
public void setAccountType(String accountType) {
this.accountType = accountType;
}
public V1Merchant accountCapabilities(List<String> accountCapabilities) {
this.accountCapabilities = accountCapabilities;
return this;
}
public V1Merchant addAccountCapabilitiesItem(String accountCapabilitiesItem) {
this.accountCapabilities.add(accountCapabilitiesItem);
return this;
}
/**
* Capabilities that are enabled for the merchant's Square account. Capabilities that are not listed in this array are not enabled for the account.
* @return accountCapabilities
**/
@ApiModelProperty(value = "Capabilities that are enabled for the merchant's Square account. Capabilities that are not listed in this array are not enabled for the account.")
public List<String> getAccountCapabilities() {
return accountCapabilities;
}
public void setAccountCapabilities(List<String> accountCapabilities) {
this.accountCapabilities = accountCapabilities;
}
public V1Merchant countryCode(String countryCode) {
this.countryCode = countryCode;
return this;
}
/**
* The country associated with the merchant account, in ISO 3166-1-alpha-2 format.
* @return countryCode
**/
@ApiModelProperty(value = "The country associated with the merchant account, in ISO 3166-1-alpha-2 format.")
public String getCountryCode() {
return countryCode;
}
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
public V1Merchant languageCode(String languageCode) {
this.languageCode = languageCode;
return this;
}
/**
* The language associated with the merchant account, in BCP 47 format.
* @return languageCode
**/
@ApiModelProperty(value = "The language associated with the merchant account, in BCP 47 format.")
public String getLanguageCode() {
return languageCode;
}
public void setLanguageCode(String languageCode) {
this.languageCode = languageCode;
}
public V1Merchant currencyCode(String currencyCode) {
this.currencyCode = currencyCode;
return this;
}
/**
* The currency associated with the merchant account, in ISO 4217 format. For example, the currency code for US dollars is USD.
* @return currencyCode
**/
@ApiModelProperty(value = "The currency associated with the merchant account, in ISO 4217 format. For example, the currency code for US dollars is USD.")
public String getCurrencyCode() {
return currencyCode;
}
public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode;
}
public V1Merchant businessName(String businessName) {
this.businessName = businessName;
return this;
}
/**
* The name of the merchant's business.
* @return businessName
**/
@ApiModelProperty(value = "The name of the merchant's business.")
public String getBusinessName() {
return businessName;
}
public void setBusinessName(String businessName) {
this.businessName = businessName;
}
public V1Merchant businessAddress(Address businessAddress) {
this.businessAddress = businessAddress;
return this;
}
/**
* The address of the merchant's business.
* @return businessAddress
**/
@ApiModelProperty(value = "The address of the merchant's business.")
public Address getBusinessAddress() {
return businessAddress;
}
public void setBusinessAddress(Address businessAddress) {
this.businessAddress = businessAddress;
}
public V1Merchant businessPhone(V1PhoneNumber businessPhone) {
this.businessPhone = businessPhone;
return this;
}
/**
* The phone number of the merchant's business.
* @return businessPhone
**/
@ApiModelProperty(value = "The phone number of the merchant's business.")
public V1PhoneNumber getBusinessPhone() {
return businessPhone;
}
public void setBusinessPhone(V1PhoneNumber businessPhone) {
this.businessPhone = businessPhone;
}
public V1Merchant businessType(String businessType) {
this.businessType = businessType;
return this;
}
/**
* The type of business operated by the merchant. See [V1MerchantBusinessType](#type-v1merchantbusinesstype) for possible values
* @return businessType
**/
@ApiModelProperty(value = "The type of business operated by the merchant. See [V1MerchantBusinessType](#type-v1merchantbusinesstype) for possible values")
public String getBusinessType() {
return businessType;
}
public void setBusinessType(String businessType) {
this.businessType = businessType;
}
public V1Merchant shippingAddress(Address shippingAddress) {
this.shippingAddress = shippingAddress;
return this;
}
/**
* The merchant's shipping address.
* @return shippingAddress
**/
@ApiModelProperty(value = "The merchant's shipping address.")
public Address getShippingAddress() {
return shippingAddress;
}
public void setShippingAddress(Address shippingAddress) {
this.shippingAddress = shippingAddress;
}
public V1Merchant locationDetails(V1MerchantLocationDetails locationDetails) {
this.locationDetails = locationDetails;
return this;
}
/**
* Additional information for a single-location account specified by its associated business account, if it has one.
* @return locationDetails
**/
@ApiModelProperty(value = "Additional information for a single-location account specified by its associated business account, if it has one.")
public V1MerchantLocationDetails getLocationDetails() {
return locationDetails;
}
public void setLocationDetails(V1MerchantLocationDetails locationDetails) {
this.locationDetails = locationDetails;
}
public V1Merchant marketUrl(String marketUrl) {
this.marketUrl = marketUrl;
return this;
}
/**
* The URL of the merchant's online store.
* @return marketUrl
**/
@ApiModelProperty(value = "The URL of the merchant's online store.")
public String getMarketUrl() {
return marketUrl;
}
public void setMarketUrl(String marketUrl) {
this.marketUrl = marketUrl;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1Merchant v1Merchant = (V1Merchant) o;
return Objects.equals(this.id, v1Merchant.id) &&
Objects.equals(this.name, v1Merchant.name) &&
Objects.equals(this.email, v1Merchant.email) &&
Objects.equals(this.accountType, v1Merchant.accountType) &&
Objects.equals(this.accountCapabilities, v1Merchant.accountCapabilities) &&
Objects.equals(this.countryCode, v1Merchant.countryCode) &&
Objects.equals(this.languageCode, v1Merchant.languageCode) &&
Objects.equals(this.currencyCode, v1Merchant.currencyCode) &&
Objects.equals(this.businessName, v1Merchant.businessName) &&
Objects.equals(this.businessAddress, v1Merchant.businessAddress) &&
Objects.equals(this.businessPhone, v1Merchant.businessPhone) &&
Objects.equals(this.businessType, v1Merchant.businessType) &&
Objects.equals(this.shippingAddress, v1Merchant.shippingAddress) &&
Objects.equals(this.locationDetails, v1Merchant.locationDetails) &&
Objects.equals(this.marketUrl, v1Merchant.marketUrl);
}
@Override
public int hashCode() {
return Objects.hash(id, name, email, accountType, accountCapabilities, countryCode, languageCode, currencyCode, businessName, businessAddress, businessPhone, businessType, shippingAddress, locationDetails, marketUrl);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1Merchant {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n");
sb.append(" accountCapabilities: ").append(toIndentedString(accountCapabilities)).append("\n");
sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n");
sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n");
sb.append(" businessName: ").append(toIndentedString(businessName)).append("\n");
sb.append(" businessAddress: ").append(toIndentedString(businessAddress)).append("\n");
sb.append(" businessPhone: ").append(toIndentedString(businessPhone)).append("\n");
sb.append(" businessType: ").append(toIndentedString(businessType)).append("\n");
sb.append(" shippingAddress: ").append(toIndentedString(shippingAddress)).append("\n");
sb.append(" locationDetails: ").append(toIndentedString(locationDetails)).append("\n");
sb.append(" marketUrl: ").append(toIndentedString(marketUrl)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,975 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CashPaymentDetails.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Money;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Additional details about CASH type payments.
*/
@ApiModel(description = "Additional details about CASH type payments.")
public class CashPaymentDetails {
@JsonProperty("buyer_supplied_money")
private Money buyerSuppliedMoney = null;
@JsonProperty("change_back_money")
private Money changeBackMoney = null;
public CashPaymentDetails buyerSuppliedMoney(Money buyerSuppliedMoney) {
this.buyerSuppliedMoney = buyerSuppliedMoney;
return this;
}
/**
* The amount and currency of the money supplied by the buyer.
* @return buyerSuppliedMoney
**/
@ApiModelProperty(required = true, value = "The amount and currency of the money supplied by the buyer.")
public Money getBuyerSuppliedMoney() {
return buyerSuppliedMoney;
}
public void setBuyerSuppliedMoney(Money buyerSuppliedMoney) {
this.buyerSuppliedMoney = buyerSuppliedMoney;
}
public CashPaymentDetails changeBackMoney(Money changeBackMoney) {
this.changeBackMoney = changeBackMoney;
return this;
}
/**
* The amount of change due back to the buyer. Read Only field calculated from the amount_money and buyer_supplied_money fields.
* @return changeBackMoney
**/
@ApiModelProperty(value = "The amount of change due back to the buyer. Read Only field calculated from the amount_money and buyer_supplied_money fields.")
public Money getChangeBackMoney() {
return changeBackMoney;
}
public void setChangeBackMoney(Money changeBackMoney) {
this.changeBackMoney = changeBackMoney;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CashPaymentDetails cashPaymentDetails = (CashPaymentDetails) o;
return Objects.equals(this.buyerSuppliedMoney, cashPaymentDetails.buyerSuppliedMoney) &&
Objects.equals(this.changeBackMoney, cashPaymentDetails.changeBackMoney);
}
@Override
public int hashCode() {
return Objects.hash(buyerSuppliedMoney, changeBackMoney);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CashPaymentDetails {\n");
sb.append(" buyerSuppliedMoney: ").append(toIndentedString(buyerSuppliedMoney)).append("\n");
sb.append(" changeBackMoney: ").append(toIndentedString(changeBackMoney)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,976 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/InventoryAdjustment.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Money;
import com.squareup.connect.models.SourceApplication;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents a change in state or quantity of product inventory at a particular time and location.
*/
@ApiModel(description = "Represents a change in state or quantity of product inventory at a particular time and location.")
public class InventoryAdjustment {
@JsonProperty("id")
private String id = null;
@JsonProperty("reference_id")
private String referenceId = null;
@JsonProperty("from_state")
private String fromState = null;
@JsonProperty("to_state")
private String toState = null;
@JsonProperty("location_id")
private String locationId = null;
@JsonProperty("catalog_object_id")
private String catalogObjectId = null;
@JsonProperty("catalog_object_type")
private String catalogObjectType = null;
@JsonProperty("quantity")
private String quantity = null;
@JsonProperty("total_price_money")
private Money totalPriceMoney = null;
@JsonProperty("occurred_at")
private String occurredAt = null;
@JsonProperty("created_at")
private String createdAt = null;
@JsonProperty("source")
private SourceApplication source = null;
@JsonProperty("employee_id")
private String employeeId = null;
@JsonProperty("transaction_id")
private String transactionId = null;
@JsonProperty("refund_id")
private String refundId = null;
@JsonProperty("purchase_order_id")
private String purchaseOrderId = null;
@JsonProperty("goods_receipt_id")
private String goodsReceiptId = null;
public InventoryAdjustment id(String id) {
this.id = id;
return this;
}
/**
* A unique ID generated by Square for the `InventoryAdjustment`.
* @return id
**/
@ApiModelProperty(value = "A unique ID generated by Square for the `InventoryAdjustment`.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public InventoryAdjustment referenceId(String referenceId) {
this.referenceId = referenceId;
return this;
}
/**
* An optional ID provided by the application to tie the `InventoryAdjustment` to an external system.
* @return referenceId
**/
@ApiModelProperty(value = "An optional ID provided by the application to tie the `InventoryAdjustment` to an external system.")
public String getReferenceId() {
return referenceId;
}
public void setReferenceId(String referenceId) {
this.referenceId = referenceId;
}
public InventoryAdjustment fromState(String fromState) {
this.fromState = fromState;
return this;
}
/**
* The `InventoryState` of the related quantity of items before the adjustment. See [InventoryState](#type-inventorystate) for possible values
* @return fromState
**/
@ApiModelProperty(value = "The `InventoryState` of the related quantity of items before the adjustment. See [InventoryState](#type-inventorystate) for possible values")
public String getFromState() {
return fromState;
}
public void setFromState(String fromState) {
this.fromState = fromState;
}
public InventoryAdjustment toState(String toState) {
this.toState = toState;
return this;
}
/**
* The `InventoryState` of the related quantity of items after the adjustment. See [InventoryState](#type-inventorystate) for possible values
* @return toState
**/
@ApiModelProperty(value = "The `InventoryState` of the related quantity of items after the adjustment. See [InventoryState](#type-inventorystate) for possible values")
public String getToState() {
return toState;
}
public void setToState(String toState) {
this.toState = toState;
}
public InventoryAdjustment locationId(String locationId) {
this.locationId = locationId;
return this;
}
/**
* The Square ID of the `Location` where the related quantity of items are being tracked.
* @return locationId
**/
@ApiModelProperty(value = "The Square ID of the `Location` where the related quantity of items are being tracked.")
public String getLocationId() {
return locationId;
}
public void setLocationId(String locationId) {
this.locationId = locationId;
}
public InventoryAdjustment catalogObjectId(String catalogObjectId) {
this.catalogObjectId = catalogObjectId;
return this;
}
/**
* The Square generated ID of the `CatalogObject` being tracked.
* @return catalogObjectId
**/
@ApiModelProperty(value = "The Square generated ID of the `CatalogObject` being tracked.")
public String getCatalogObjectId() {
return catalogObjectId;
}
public void setCatalogObjectId(String catalogObjectId) {
this.catalogObjectId = catalogObjectId;
}
public InventoryAdjustment catalogObjectType(String catalogObjectType) {
this.catalogObjectType = catalogObjectType;
return this;
}
/**
* The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type.
* @return catalogObjectType
**/
@ApiModelProperty(value = "The `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type.")
public String getCatalogObjectType() {
return catalogObjectType;
}
public void setCatalogObjectType(String catalogObjectType) {
this.catalogObjectType = catalogObjectType;
}
public InventoryAdjustment quantity(String quantity) {
this.quantity = quantity;
return this;
}
/**
* The number of items affected by the adjustment as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information.
* Note: This model is in beta.
* @return quantity
**/
@ApiModelProperty(value = "The number of items affected by the adjustment as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information.")
public String getQuantity() {
return quantity;
}
public void setQuantity(String quantity) {
this.quantity = quantity;
}
public InventoryAdjustment totalPriceMoney(Money totalPriceMoney) {
this.totalPriceMoney = totalPriceMoney;
return this;
}
/**
* The read-only total price paid for goods associated with the adjustment. Present if and only if `to_state` is `SOLD`. Always non-negative.
* @return totalPriceMoney
**/
@ApiModelProperty(value = "The read-only total price paid for goods associated with the adjustment. Present if and only if `to_state` is `SOLD`. Always non-negative.")
public Money getTotalPriceMoney() {
return totalPriceMoney;
}
public void setTotalPriceMoney(Money totalPriceMoney) {
this.totalPriceMoney = totalPriceMoney;
}
public InventoryAdjustment occurredAt(String occurredAt) {
this.occurredAt = occurredAt;
return this;
}
/**
* A client-generated timestamp in RFC 3339 format that indicates when the adjustment took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request.
* @return occurredAt
**/
@ApiModelProperty(value = "A client-generated timestamp in RFC 3339 format that indicates when the adjustment took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request.")
public String getOccurredAt() {
return occurredAt;
}
public void setOccurredAt(String occurredAt) {
this.occurredAt = occurredAt;
}
public InventoryAdjustment createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* A read-only timestamp in RFC 3339 format that indicates when Square received the adjustment.
* @return createdAt
**/
@ApiModelProperty(value = "A read-only timestamp in RFC 3339 format that indicates when Square received the adjustment.")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public InventoryAdjustment source(SourceApplication source) {
this.source = source;
return this;
}
/**
* Read-only information about the application that caused the inventory adjustment.
* @return source
**/
@ApiModelProperty(value = "Read-only information about the application that caused the inventory adjustment.")
public SourceApplication getSource() {
return source;
}
public void setSource(SourceApplication source) {
this.source = source;
}
public InventoryAdjustment employeeId(String employeeId) {
this.employeeId = employeeId;
return this;
}
/**
* The Square ID of the `Employee` responsible for the inventory adjustment.
* @return employeeId
**/
@ApiModelProperty(value = "The Square ID of the `Employee` responsible for the inventory adjustment.")
public String getEmployeeId() {
return employeeId;
}
public void setEmployeeId(String employeeId) {
this.employeeId = employeeId;
}
public InventoryAdjustment transactionId(String transactionId) {
this.transactionId = transactionId;
return this;
}
/**
* The read-only Square ID of the [Transaction][#type-transaction] that caused the adjustment. Only relevant for payment-related state transitions.
* @return transactionId
**/
@ApiModelProperty(value = "The read-only Square ID of the [Transaction][#type-transaction] that caused the adjustment. Only relevant for payment-related state transitions.")
public String getTransactionId() {
return transactionId;
}
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public InventoryAdjustment refundId(String refundId) {
this.refundId = refundId;
return this;
}
/**
* The read-only Square ID of the [Refund][#type-refund] that caused the adjustment. Only relevant for refund-related state transitions.
* @return refundId
**/
@ApiModelProperty(value = "The read-only Square ID of the [Refund][#type-refund] that caused the adjustment. Only relevant for refund-related state transitions.")
public String getRefundId() {
return refundId;
}
public void setRefundId(String refundId) {
this.refundId = refundId;
}
public InventoryAdjustment purchaseOrderId(String purchaseOrderId) {
this.purchaseOrderId = purchaseOrderId;
return this;
}
/**
* The read-only Square ID of the purchase order that caused the adjustment. Only relevant for state transitions from the Square for Retail app.
* @return purchaseOrderId
**/
@ApiModelProperty(value = "The read-only Square ID of the purchase order that caused the adjustment. Only relevant for state transitions from the Square for Retail app.")
public String getPurchaseOrderId() {
return purchaseOrderId;
}
public void setPurchaseOrderId(String purchaseOrderId) {
this.purchaseOrderId = purchaseOrderId;
}
public InventoryAdjustment goodsReceiptId(String goodsReceiptId) {
this.goodsReceiptId = goodsReceiptId;
return this;
}
/**
* The read-only Square ID of the Square goods receipt that caused the adjustment. Only relevant for state transitions from the Square for Retail app.
* @return goodsReceiptId
**/
@ApiModelProperty(value = "The read-only Square ID of the Square goods receipt that caused the adjustment. Only relevant for state transitions from the Square for Retail app.")
public String getGoodsReceiptId() {
return goodsReceiptId;
}
public void setGoodsReceiptId(String goodsReceiptId) {
this.goodsReceiptId = goodsReceiptId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InventoryAdjustment inventoryAdjustment = (InventoryAdjustment) o;
return Objects.equals(this.id, inventoryAdjustment.id) &&
Objects.equals(this.referenceId, inventoryAdjustment.referenceId) &&
Objects.equals(this.fromState, inventoryAdjustment.fromState) &&
Objects.equals(this.toState, inventoryAdjustment.toState) &&
Objects.equals(this.locationId, inventoryAdjustment.locationId) &&
Objects.equals(this.catalogObjectId, inventoryAdjustment.catalogObjectId) &&
Objects.equals(this.catalogObjectType, inventoryAdjustment.catalogObjectType) &&
Objects.equals(this.quantity, inventoryAdjustment.quantity) &&
Objects.equals(this.totalPriceMoney, inventoryAdjustment.totalPriceMoney) &&
Objects.equals(this.occurredAt, inventoryAdjustment.occurredAt) &&
Objects.equals(this.createdAt, inventoryAdjustment.createdAt) &&
Objects.equals(this.source, inventoryAdjustment.source) &&
Objects.equals(this.employeeId, inventoryAdjustment.employeeId) &&
Objects.equals(this.transactionId, inventoryAdjustment.transactionId) &&
Objects.equals(this.refundId, inventoryAdjustment.refundId) &&
Objects.equals(this.purchaseOrderId, inventoryAdjustment.purchaseOrderId) &&
Objects.equals(this.goodsReceiptId, inventoryAdjustment.goodsReceiptId);
}
@Override
public int hashCode() {
return Objects.hash(id, referenceId, fromState, toState, locationId, catalogObjectId, catalogObjectType, quantity, totalPriceMoney, occurredAt, createdAt, source, employeeId, transactionId, refundId, purchaseOrderId, goodsReceiptId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InventoryAdjustment {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
sb.append(" fromState: ").append(toIndentedString(fromState)).append("\n");
sb.append(" toState: ").append(toIndentedString(toState)).append("\n");
sb.append(" locationId: ").append(toIndentedString(locationId)).append("\n");
sb.append(" catalogObjectId: ").append(toIndentedString(catalogObjectId)).append("\n");
sb.append(" catalogObjectType: ").append(toIndentedString(catalogObjectType)).append("\n");
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
sb.append(" totalPriceMoney: ").append(toIndentedString(totalPriceMoney)).append("\n");
sb.append(" occurredAt: ").append(toIndentedString(occurredAt)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" employeeId: ").append(toIndentedString(employeeId)).append("\n");
sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n");
sb.append(" refundId: ").append(toIndentedString(refundId)).append("\n");
sb.append(" purchaseOrderId: ").append(toIndentedString(purchaseOrderId)).append("\n");
sb.append(" goodsReceiptId: ").append(toIndentedString(goodsReceiptId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,977 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogItemOptionForItem.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* A list of item option values that can be assigned to item variations. For example, a t-shirt item may offer a color option or a size option.
*/
@ApiModel(description = " A list of item option values that can be assigned to item variations. For example, a t-shirt item may offer a color option or a size option.")
public class CatalogItemOptionForItem {
@JsonProperty("item_option_id")
private String itemOptionId = null;
public CatalogItemOptionForItem itemOptionId(String itemOptionId) {
this.itemOptionId = itemOptionId;
return this;
}
/**
* The unique id of the item option, used to form the dimensions of the item option matrix in a specified order.
* @return itemOptionId
**/
@ApiModelProperty(value = "The unique id of the item option, used to form the dimensions of the item option matrix in a specified order.")
public String getItemOptionId() {
return itemOptionId;
}
public void setItemOptionId(String itemOptionId) {
this.itemOptionId = itemOptionId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CatalogItemOptionForItem catalogItemOptionForItem = (CatalogItemOptionForItem) o;
return Objects.equals(this.itemOptionId, catalogItemOptionForItem.itemOptionId);
}
@Override
public int hashCode() {
return Objects.hash(itemOptionId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CatalogItemOptionForItem {\n");
sb.append(" itemOptionId: ").append(toIndentedString(itemOptionId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,978 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1UpdateCategoryRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Category;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
*/
@ApiModel(description = "")
public class V1UpdateCategoryRequest {
@JsonProperty("body")
private V1Category body = null;
public V1UpdateCategoryRequest body(V1Category body) {
this.body = body;
return this;
}
/**
* An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return body
**/
@ApiModelProperty(required = true, value = "An object containing the fields to POST for the request. See the corresponding object definition for field details.")
public V1Category getBody() {
return body;
}
public void setBody(V1Category body) {
this.body = body;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1UpdateCategoryRequest v1UpdateCategoryRequest = (V1UpdateCategoryRequest) o;
return Objects.equals(this.body, v1UpdateCategoryRequest.body);
}
@Override
public int hashCode() {
return Objects.hash(body);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1UpdateCategoryRequest {\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,979 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/GetBreakTypeResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.BreakType;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* The response to a request to get a `BreakType`. Contains the requested `BreakType` objects. May contain a set of `Error` objects if the request resulted in errors.
*/
@ApiModel(description = "The response to a request to get a `BreakType`. Contains the requested `BreakType` objects. May contain a set of `Error` objects if the request resulted in errors.")
public class GetBreakTypeResponse {
@JsonProperty("break_type")
private BreakType breakType = null;
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public GetBreakTypeResponse breakType(BreakType breakType) {
this.breakType = breakType;
return this;
}
/**
* The response object.
* @return breakType
**/
@ApiModelProperty(value = "The response object.")
public BreakType getBreakType() {
return breakType;
}
public void setBreakType(BreakType breakType) {
this.breakType = breakType;
}
public GetBreakTypeResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public GetBreakTypeResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetBreakTypeResponse getBreakTypeResponse = (GetBreakTypeResponse) o;
return Objects.equals(this.breakType, getBreakTypeResponse.breakType) &&
Objects.equals(this.errors, getBreakTypeResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(breakType, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetBreakTypeResponse {\n");
sb.append(" breakType: ").append(toIndentedString(breakType)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,980 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/InventoryTransfer.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.SourceApplication;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents the transfer of a quantity of product inventory at a particular time from one location to another.
*/
@ApiModel(description = "Represents the transfer of a quantity of product inventory at a particular time from one location to another.")
public class InventoryTransfer {
@JsonProperty("id")
private String id = null;
@JsonProperty("reference_id")
private String referenceId = null;
@JsonProperty("state")
private String state = null;
@JsonProperty("from_location_id")
private String fromLocationId = null;
@JsonProperty("to_location_id")
private String toLocationId = null;
@JsonProperty("catalog_object_id")
private String catalogObjectId = null;
@JsonProperty("catalog_object_type")
private String catalogObjectType = null;
@JsonProperty("quantity")
private String quantity = null;
@JsonProperty("occurred_at")
private String occurredAt = null;
@JsonProperty("created_at")
private String createdAt = null;
@JsonProperty("source")
private SourceApplication source = null;
@JsonProperty("employee_id")
private String employeeId = null;
public InventoryTransfer id(String id) {
this.id = id;
return this;
}
/**
* A unique ID generated by Square for the `InventoryTransfer`.
* @return id
**/
@ApiModelProperty(value = "A unique ID generated by Square for the `InventoryTransfer`.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public InventoryTransfer referenceId(String referenceId) {
this.referenceId = referenceId;
return this;
}
/**
* An optional ID provided by the application to tie the `InventoryTransfer` to an external system.
* @return referenceId
**/
@ApiModelProperty(value = "An optional ID provided by the application to tie the `InventoryTransfer` to an external system.")
public String getReferenceId() {
return referenceId;
}
public void setReferenceId(String referenceId) {
this.referenceId = referenceId;
}
public InventoryTransfer state(String state) {
this.state = state;
return this;
}
/**
* The `InventoryState` for the quantity of items being transfered. See [InventoryState](#type-inventorystate) for possible values
* @return state
**/
@ApiModelProperty(value = "The `InventoryState` for the quantity of items being transfered. See [InventoryState](#type-inventorystate) for possible values")
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public InventoryTransfer fromLocationId(String fromLocationId) {
this.fromLocationId = fromLocationId;
return this;
}
/**
* The Square ID of the `Location` where the related quantity of items were tracked before the transfer.
* @return fromLocationId
**/
@ApiModelProperty(value = "The Square ID of the `Location` where the related quantity of items were tracked before the transfer.")
public String getFromLocationId() {
return fromLocationId;
}
public void setFromLocationId(String fromLocationId) {
this.fromLocationId = fromLocationId;
}
public InventoryTransfer toLocationId(String toLocationId) {
this.toLocationId = toLocationId;
return this;
}
/**
* The Square ID of the `Location` where the related quantity of items were tracked after the transfer.
* @return toLocationId
**/
@ApiModelProperty(value = "The Square ID of the `Location` where the related quantity of items were tracked after the transfer.")
public String getToLocationId() {
return toLocationId;
}
public void setToLocationId(String toLocationId) {
this.toLocationId = toLocationId;
}
public InventoryTransfer catalogObjectId(String catalogObjectId) {
this.catalogObjectId = catalogObjectId;
return this;
}
/**
* The Square generated ID of the `CatalogObject` being tracked.
* @return catalogObjectId
**/
@ApiModelProperty(value = "The Square generated ID of the `CatalogObject` being tracked.")
public String getCatalogObjectId() {
return catalogObjectId;
}
public void setCatalogObjectId(String catalogObjectId) {
this.catalogObjectId = catalogObjectId;
}
public InventoryTransfer catalogObjectType(String catalogObjectType) {
this.catalogObjectType = catalogObjectType;
return this;
}
/**
* The `CatalogObjectType` of the `CatalogObject` being tracked.Tracking is only supported for the `ITEM_VARIATION` type.
* @return catalogObjectType
**/
@ApiModelProperty(value = "The `CatalogObjectType` of the `CatalogObject` being tracked.Tracking is only supported for the `ITEM_VARIATION` type.")
public String getCatalogObjectType() {
return catalogObjectType;
}
public void setCatalogObjectType(String catalogObjectType) {
this.catalogObjectType = catalogObjectType;
}
public InventoryTransfer quantity(String quantity) {
this.quantity = quantity;
return this;
}
/**
* The number of items affected by the transfer as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information.
* Note: This model is in beta.
* @return quantity
**/
@ApiModelProperty(value = "The number of items affected by the transfer as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](https://developer.squareup.com/docs/docs/inventory-api/what-it-does#decimal-quantities-beta) for more information.")
public String getQuantity() {
return quantity;
}
public void setQuantity(String quantity) {
this.quantity = quantity;
}
public InventoryTransfer occurredAt(String occurredAt) {
this.occurredAt = occurredAt;
return this;
}
/**
* A client-generated timestamp in RFC 3339 format that indicates when the transfer took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request.
* @return occurredAt
**/
@ApiModelProperty(value = "A client-generated timestamp in RFC 3339 format that indicates when the transfer took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request.")
public String getOccurredAt() {
return occurredAt;
}
public void setOccurredAt(String occurredAt) {
this.occurredAt = occurredAt;
}
public InventoryTransfer createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* A read-only timestamp in RFC 3339 format that indicates when Square received the transfer request.
* @return createdAt
**/
@ApiModelProperty(value = "A read-only timestamp in RFC 3339 format that indicates when Square received the transfer request.")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public InventoryTransfer source(SourceApplication source) {
this.source = source;
return this;
}
/**
* Read-only information about the application that initiated the inventory transfer.
* @return source
**/
@ApiModelProperty(value = "Read-only information about the application that initiated the inventory transfer.")
public SourceApplication getSource() {
return source;
}
public void setSource(SourceApplication source) {
this.source = source;
}
public InventoryTransfer employeeId(String employeeId) {
this.employeeId = employeeId;
return this;
}
/**
* The Square ID of the `Employee` responsible for the inventory transfer.
* @return employeeId
**/
@ApiModelProperty(value = "The Square ID of the `Employee` responsible for the inventory transfer.")
public String getEmployeeId() {
return employeeId;
}
public void setEmployeeId(String employeeId) {
this.employeeId = employeeId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InventoryTransfer inventoryTransfer = (InventoryTransfer) o;
return Objects.equals(this.id, inventoryTransfer.id) &&
Objects.equals(this.referenceId, inventoryTransfer.referenceId) &&
Objects.equals(this.state, inventoryTransfer.state) &&
Objects.equals(this.fromLocationId, inventoryTransfer.fromLocationId) &&
Objects.equals(this.toLocationId, inventoryTransfer.toLocationId) &&
Objects.equals(this.catalogObjectId, inventoryTransfer.catalogObjectId) &&
Objects.equals(this.catalogObjectType, inventoryTransfer.catalogObjectType) &&
Objects.equals(this.quantity, inventoryTransfer.quantity) &&
Objects.equals(this.occurredAt, inventoryTransfer.occurredAt) &&
Objects.equals(this.createdAt, inventoryTransfer.createdAt) &&
Objects.equals(this.source, inventoryTransfer.source) &&
Objects.equals(this.employeeId, inventoryTransfer.employeeId);
}
@Override
public int hashCode() {
return Objects.hash(id, referenceId, state, fromLocationId, toLocationId, catalogObjectId, catalogObjectType, quantity, occurredAt, createdAt, source, employeeId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InventoryTransfer {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" fromLocationId: ").append(toIndentedString(fromLocationId)).append("\n");
sb.append(" toLocationId: ").append(toIndentedString(toLocationId)).append("\n");
sb.append(" catalogObjectId: ").append(toIndentedString(catalogObjectId)).append("\n");
sb.append(" catalogObjectType: ").append(toIndentedString(catalogObjectType)).append("\n");
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
sb.append(" occurredAt: ").append(toIndentedString(occurredAt)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" employeeId: ").append(toIndentedString(employeeId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,981 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListWorkweekConfigsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.WorkweekConfig;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* The response to a request for a set of `WorkweekConfig` objects. Contains the requested `WorkweekConfig` objects. May contain a set of `Error` objects if the request resulted in errors.
*/
@ApiModel(description = "The response to a request for a set of `WorkweekConfig` objects. Contains the requested `WorkweekConfig` objects. May contain a set of `Error` objects if the request resulted in errors.")
public class ListWorkweekConfigsResponse {
@JsonProperty("workweek_configs")
private List<WorkweekConfig> workweekConfigs = new ArrayList<WorkweekConfig>();
@JsonProperty("cursor")
private String cursor = null;
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public ListWorkweekConfigsResponse workweekConfigs(List<WorkweekConfig> workweekConfigs) {
this.workweekConfigs = workweekConfigs;
return this;
}
public ListWorkweekConfigsResponse addWorkweekConfigsItem(WorkweekConfig workweekConfigsItem) {
this.workweekConfigs.add(workweekConfigsItem);
return this;
}
/**
* A page of Employee Wage results.
* @return workweekConfigs
**/
@ApiModelProperty(value = "A page of Employee Wage results.")
public List<WorkweekConfig> getWorkweekConfigs() {
return workweekConfigs;
}
public void setWorkweekConfigs(List<WorkweekConfig> workweekConfigs) {
this.workweekConfigs = workweekConfigs;
}
public ListWorkweekConfigsResponse cursor(String cursor) {
this.cursor = cursor;
return this;
}
/**
* Value supplied in the subsequent request to fetch the next page of Employee Wage results.
* @return cursor
**/
@ApiModelProperty(value = "Value supplied in the subsequent request to fetch the next page of Employee Wage results.")
public String getCursor() {
return cursor;
}
public void setCursor(String cursor) {
this.cursor = cursor;
}
public ListWorkweekConfigsResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public ListWorkweekConfigsResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListWorkweekConfigsResponse listWorkweekConfigsResponse = (ListWorkweekConfigsResponse) o;
return Objects.equals(this.workweekConfigs, listWorkweekConfigsResponse.workweekConfigs) &&
Objects.equals(this.cursor, listWorkweekConfigsResponse.cursor) &&
Objects.equals(this.errors, listWorkweekConfigsResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(workweekConfigs, cursor, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListWorkweekConfigsResponse {\n");
sb.append(" workweekConfigs: ").append(toIndentedString(workweekConfigs)).append("\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,982 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListMerchantsResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.Merchant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* The response object returned by the [ListMerchant](#endpoint-listmerchant) endpoint.
*/
@ApiModel(description = "The response object returned by the [ListMerchant](#endpoint-listmerchant) endpoint.")
public class ListMerchantsResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("merchant")
private List<Merchant> merchant = new ArrayList<Merchant>();
@JsonProperty("cursor")
private Integer cursor = null;
public ListMerchantsResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public ListMerchantsResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Information on errors encountered during the request.
* @return errors
**/
@ApiModelProperty(value = "Information on errors encountered during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public ListMerchantsResponse merchant(List<Merchant> merchant) {
this.merchant = merchant;
return this;
}
public ListMerchantsResponse addMerchantItem(Merchant merchantItem) {
this.merchant.add(merchantItem);
return this;
}
/**
* The requested `Merchant` entities.
* @return merchant
**/
@ApiModelProperty(value = "The requested `Merchant` entities.")
public List<Merchant> getMerchant() {
return merchant;
}
public void setMerchant(List<Merchant> merchant) {
this.merchant = merchant;
}
public ListMerchantsResponse cursor(Integer cursor) {
this.cursor = cursor;
return this;
}
/**
* If the response is truncated, the cursor to use in next request to fetch next set of objects.
* @return cursor
**/
@ApiModelProperty(value = "If the response is truncated, the cursor to use in next request to fetch next set of objects.")
public Integer getCursor() {
return cursor;
}
public void setCursor(Integer cursor) {
this.cursor = cursor;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListMerchantsResponse listMerchantsResponse = (ListMerchantsResponse) o;
return Objects.equals(this.errors, listMerchantsResponse.errors) &&
Objects.equals(this.merchant, listMerchantsResponse.merchant) &&
Objects.equals(this.cursor, listMerchantsResponse.cursor);
}
@Override
public int hashCode() {
return Objects.hash(errors, merchant, cursor);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListMerchantsResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" merchant: ").append(toIndentedString(merchant)).append("\n");
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,983 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateRefundResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Error;
import com.squareup.connect.models.Refund;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the fields that are included in the response body of a request to the [CreateRefund](#endpoint-createrefund) endpoint. One of `errors` or `refund` is present in a given response (never both).
*/
@ApiModel(description = "Defines the fields that are included in the response body of a request to the [CreateRefund](#endpoint-createrefund) endpoint. One of `errors` or `refund` is present in a given response (never both).")
public class CreateRefundResponse {
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
@JsonProperty("refund")
private Refund refund = null;
public CreateRefundResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public CreateRefundResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
public CreateRefundResponse refund(Refund refund) {
this.refund = refund;
return this;
}
/**
* The created refund.
* @return refund
**/
@ApiModelProperty(value = "The created refund.")
public Refund getRefund() {
return refund;
}
public void setRefund(Refund refund) {
this.refund = refund;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateRefundResponse createRefundResponse = (CreateRefundResponse) o;
return Objects.equals(this.errors, createRefundResponse.errors) &&
Objects.equals(this.refund, createRefundResponse.refund);
}
@Override
public int hashCode() {
return Objects.hash(errors, refund);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateRefundResponse {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" refund: ").append(toIndentedString(refund)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,984 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/OrderReturnTax.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Money;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents a tax being returned that applies to one or more return line items in an order. Fixed-amount, order-scoped taxes are distributed across all non-zero return line item totals. The amount distributed to each return line item is relative to that item’s contribution to the order subtotal.
*/
@ApiModel(description = "Represents a tax being returned that applies to one or more return line items in an order. Fixed-amount, order-scoped taxes are distributed across all non-zero return line item totals. The amount distributed to each return line item is relative to that item’s contribution to the order subtotal.")
public class OrderReturnTax {
@JsonProperty("uid")
private String uid = null;
@JsonProperty("source_tax_uid")
private String sourceTaxUid = null;
@JsonProperty("catalog_object_id")
private String catalogObjectId = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("percentage")
private String percentage = null;
@JsonProperty("applied_money")
private Money appliedMoney = null;
@JsonProperty("scope")
private String scope = null;
public OrderReturnTax uid(String uid) {
this.uid = uid;
return this;
}
/**
* Unique ID that identifies the return tax only within this order.
* @return uid
**/
@ApiModelProperty(value = "Unique ID that identifies the return tax only within this order.")
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public OrderReturnTax sourceTaxUid(String sourceTaxUid) {
this.sourceTaxUid = sourceTaxUid;
return this;
}
/**
* `uid` of the Tax from the Order which contains the original charge of this tax.
* @return sourceTaxUid
**/
@ApiModelProperty(value = "`uid` of the Tax from the Order which contains the original charge of this tax.")
public String getSourceTaxUid() {
return sourceTaxUid;
}
public void setSourceTaxUid(String sourceTaxUid) {
this.sourceTaxUid = sourceTaxUid;
}
public OrderReturnTax catalogObjectId(String catalogObjectId) {
this.catalogObjectId = catalogObjectId;
return this;
}
/**
* The catalog object id referencing `CatalogTax`.
* @return catalogObjectId
**/
@ApiModelProperty(value = "The catalog object id referencing `CatalogTax`.")
public String getCatalogObjectId() {
return catalogObjectId;
}
public void setCatalogObjectId(String catalogObjectId) {
this.catalogObjectId = catalogObjectId;
}
public OrderReturnTax name(String name) {
this.name = name;
return this;
}
/**
* The tax's name.
* @return name
**/
@ApiModelProperty(value = "The tax's name.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public OrderReturnTax type(String type) {
this.type = type;
return this;
}
/**
* Indicates the calculation method used to apply the tax. See [OrderLineItemTaxType](#type-orderlineitemtaxtype) for possible values
* @return type
**/
@ApiModelProperty(value = "Indicates the calculation method used to apply the tax. See [OrderLineItemTaxType](#type-orderlineitemtaxtype) for possible values")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public OrderReturnTax percentage(String percentage) {
this.percentage = percentage;
return this;
}
/**
* The percentage of the tax, as a string representation of a decimal number. For example, a value of `\"7.25\"` corresponds to a percentage of 7.25%.
* @return percentage
**/
@ApiModelProperty(value = "The percentage of the tax, as a string representation of a decimal number. For example, a value of `\"7.25\"` corresponds to a percentage of 7.25%.")
public String getPercentage() {
return percentage;
}
public void setPercentage(String percentage) {
this.percentage = percentage;
}
public OrderReturnTax appliedMoney(Money appliedMoney) {
this.appliedMoney = appliedMoney;
return this;
}
/**
* The amount of the money applied by the tax in an order.
* @return appliedMoney
**/
@ApiModelProperty(value = "The amount of the money applied by the tax in an order.")
public Money getAppliedMoney() {
return appliedMoney;
}
public void setAppliedMoney(Money appliedMoney) {
this.appliedMoney = appliedMoney;
}
public OrderReturnTax scope(String scope) {
this.scope = scope;
return this;
}
/**
* Indicates the level at which the `OrderReturnTax` applies. For `ORDER` scoped taxes, Square generates references in `applied_taxes` on all `OrderReturnLineItem`s. For `LINE_ITEM` scoped taxes, the tax will only apply to `OrderReturnLineItem`s with references in their `applied_discounts` field. See [OrderLineItemTaxScope](#type-orderlineitemtaxscope) for possible values
* @return scope
**/
@ApiModelProperty(value = "Indicates the level at which the `OrderReturnTax` applies. For `ORDER` scoped taxes, Square generates references in `applied_taxes` on all `OrderReturnLineItem`s. For `LINE_ITEM` scoped taxes, the tax will only apply to `OrderReturnLineItem`s with references in their `applied_discounts` field. See [OrderLineItemTaxScope](#type-orderlineitemtaxscope) for possible values")
public String getScope() {
return scope;
}
public void setScope(String scope) {
this.scope = scope;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OrderReturnTax orderReturnTax = (OrderReturnTax) o;
return Objects.equals(this.uid, orderReturnTax.uid) &&
Objects.equals(this.sourceTaxUid, orderReturnTax.sourceTaxUid) &&
Objects.equals(this.catalogObjectId, orderReturnTax.catalogObjectId) &&
Objects.equals(this.name, orderReturnTax.name) &&
Objects.equals(this.type, orderReturnTax.type) &&
Objects.equals(this.percentage, orderReturnTax.percentage) &&
Objects.equals(this.appliedMoney, orderReturnTax.appliedMoney) &&
Objects.equals(this.scope, orderReturnTax.scope);
}
@Override
public int hashCode() {
return Objects.hash(uid, sourceTaxUid, catalogObjectId, name, type, percentage, appliedMoney, scope);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OrderReturnTax {\n");
sb.append(" uid: ").append(toIndentedString(uid)).append("\n");
sb.append(" sourceTaxUid: ").append(toIndentedString(sourceTaxUid)).append("\n");
sb.append(" catalogObjectId: ").append(toIndentedString(catalogObjectId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" percentage: ").append(toIndentedString(percentage)).append("\n");
sb.append(" appliedMoney: ").append(toIndentedString(appliedMoney)).append("\n");
sb.append(" scope: ").append(toIndentedString(scope)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,985 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RetrieveEmployeeResponse.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Employee;
import com.squareup.connect.models.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class RetrieveEmployeeResponse {
@JsonProperty("employee")
private Employee employee = null;
@JsonProperty("errors")
private List<Error> errors = new ArrayList<Error>();
public RetrieveEmployeeResponse employee(Employee employee) {
this.employee = employee;
return this;
}
/**
* The response object.
* @return employee
**/
@ApiModelProperty(value = "The response object.")
public Employee getEmployee() {
return employee;
}
public void setEmployee(Employee employee) {
this.employee = employee;
}
public RetrieveEmployeeResponse errors(List<Error> errors) {
this.errors = errors;
return this;
}
public RetrieveEmployeeResponse addErrorsItem(Error errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Any errors that occurred during the request.
* @return errors
**/
@ApiModelProperty(value = "Any errors that occurred during the request.")
public List<Error> getErrors() {
return errors;
}
public void setErrors(List<Error> errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RetrieveEmployeeResponse retrieveEmployeeResponse = (RetrieveEmployeeResponse) o;
return Objects.equals(this.employee, retrieveEmployeeResponse.employee) &&
Objects.equals(this.errors, retrieveEmployeeResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(employee, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetrieveEmployeeResponse {\n");
sb.append(" employee: ").append(toIndentedString(employee)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,986 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1CreateEmployeeRoleRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1EmployeeRole;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
*/
@ApiModel(description = "")
public class V1CreateEmployeeRoleRequest {
@JsonProperty("employee_role")
private V1EmployeeRole employeeRole = null;
public V1CreateEmployeeRoleRequest employeeRole(V1EmployeeRole employeeRole) {
this.employeeRole = employeeRole;
return this;
}
/**
* An EmployeeRole object with a name and permissions, and an optional owner flag.
* @return employeeRole
**/
@ApiModelProperty(value = "An EmployeeRole object with a name and permissions, and an optional owner flag.")
public V1EmployeeRole getEmployeeRole() {
return employeeRole;
}
public void setEmployeeRole(V1EmployeeRole employeeRole) {
this.employeeRole = employeeRole;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1CreateEmployeeRoleRequest v1CreateEmployeeRoleRequest = (V1CreateEmployeeRoleRequest) o;
return Objects.equals(this.employeeRole, v1CreateEmployeeRoleRequest.employeeRole);
}
@Override
public int hashCode() {
return Objects.hash(employeeRole);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1CreateEmployeeRoleRequest {\n");
sb.append(" employeeRole: ").append(toIndentedString(employeeRole)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,987 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CompletePaymentRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
/**
* Completes (captures) a payment. By default, payments are set to autocomplete immediately after they are created. To complete payments manually, set `autocomplete` to false.
*/
@ApiModel(description = "Completes (captures) a payment. By default, payments are set to autocomplete immediately after they are created. To complete payments manually, set `autocomplete` to false.")
public class CompletePaymentRequest {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CompletePaymentRequest {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,988 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1UpdateVariationRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Variation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
*/
@ApiModel(description = "")
public class V1UpdateVariationRequest {
@JsonProperty("body")
private V1Variation body = null;
public V1UpdateVariationRequest body(V1Variation body) {
this.body = body;
return this;
}
/**
* An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return body
**/
@ApiModelProperty(required = true, value = "An object containing the fields to POST for the request. See the corresponding object definition for field details.")
public V1Variation getBody() {
return body;
}
public void setBody(V1Variation body) {
this.body = body;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1UpdateVariationRequest v1UpdateVariationRequest = (V1UpdateVariationRequest) o;
return Objects.equals(this.body, v1UpdateVariationRequest.body);
}
@Override
public int hashCode() {
return Objects.hash(body);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1UpdateVariationRequest {\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,989 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateShiftRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Shift;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents a request to create a `Shift`
*/
@ApiModel(description = "Represents a request to create a `Shift`")
public class CreateShiftRequest {
@JsonProperty("idempotency_key")
private String idempotencyKey = null;
@JsonProperty("shift")
private Shift shift = null;
public CreateShiftRequest idempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
return this;
}
/**
* Unique string value to insure the idempotency of the operation.
* @return idempotencyKey
**/
@ApiModelProperty(value = "Unique string value to insure the idempotency of the operation.")
public String getIdempotencyKey() {
return idempotencyKey;
}
public void setIdempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
}
public CreateShiftRequest shift(Shift shift) {
this.shift = shift;
return this;
}
/**
* The `Shift` to be created
* @return shift
**/
@ApiModelProperty(required = true, value = "The `Shift` to be created")
public Shift getShift() {
return shift;
}
public void setShift(Shift shift) {
this.shift = shift;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateShiftRequest createShiftRequest = (CreateShiftRequest) o;
return Objects.equals(this.idempotencyKey, createShiftRequest.idempotencyKey) &&
Objects.equals(this.shift, createShiftRequest.shift);
}
@Override
public int hashCode() {
return Objects.hash(idempotencyKey, shift);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateShiftRequest {\n");
sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).append("\n");
sb.append(" shift: ").append(toIndentedString(shift)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,990 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogQueryItemsForTax.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@ApiModel(description = "")
public class CatalogQueryItemsForTax {
@JsonProperty("tax_ids")
private List<String> taxIds = new ArrayList<String>();
public CatalogQueryItemsForTax taxIds(List<String> taxIds) {
this.taxIds = taxIds;
return this;
}
public CatalogQueryItemsForTax addTaxIdsItem(String taxIdsItem) {
this.taxIds.add(taxIdsItem);
return this;
}
/**
* A set of `CatalogTax` IDs to be used to find associated `CatalogItem`s.
* @return taxIds
**/
@ApiModelProperty(required = true, value = "A set of `CatalogTax` IDs to be used to find associated `CatalogItem`s.")
public List<String> getTaxIds() {
return taxIds;
}
public void setTaxIds(List<String> taxIds) {
this.taxIds = taxIds;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CatalogQueryItemsForTax catalogQueryItemsForTax = (CatalogQueryItemsForTax) o;
return Objects.equals(this.taxIds, catalogQueryItemsForTax.taxIds);
}
@Override
public int hashCode() {
return Objects.hash(taxIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CatalogQueryItemsForTax {\n");
sb.append(" taxIds: ").append(toIndentedString(taxIds)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,991 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1CreateVariationRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.V1Variation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
*/
@ApiModel(description = "")
public class V1CreateVariationRequest {
@JsonProperty("body")
private V1Variation body = null;
public V1CreateVariationRequest body(V1Variation body) {
this.body = body;
return this;
}
/**
* An object containing the fields to POST for the request. See the corresponding object definition for field details.
* @return body
**/
@ApiModelProperty(value = "An object containing the fields to POST for the request. See the corresponding object definition for field details.")
public V1Variation getBody() {
return body;
}
public void setBody(V1Variation body) {
this.body = body;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1CreateVariationRequest v1CreateVariationRequest = (V1CreateVariationRequest) o;
return Objects.equals(this.body, v1CreateVariationRequest.body);
}
@Override
public int hashCode() {
return Objects.hash(body);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1CreateVariationRequest {\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,992 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/Shift.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.ModelBreak;
import com.squareup.connect.models.ShiftWage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* A record of the hourly rate, start, and end times for a single work shift for an employee. May include a record of the start and end times for breaks taken during the shift.
*/
@ApiModel(description = "A record of the hourly rate, start, and end times for a single work shift for an employee. May include a record of the start and end times for breaks taken during the shift.")
public class Shift {
@JsonProperty("id")
private String id = null;
@JsonProperty("employee_id")
private String employeeId = null;
@JsonProperty("location_id")
private String locationId = null;
@JsonProperty("timezone")
private String timezone = null;
@JsonProperty("start_at")
private String startAt = null;
@JsonProperty("end_at")
private String endAt = null;
@JsonProperty("wage")
private ShiftWage wage = null;
@JsonProperty("breaks")
private List<ModelBreak> breaks = new ArrayList<ModelBreak>();
@JsonProperty("status")
private String status = null;
@JsonProperty("version")
private Integer version = null;
@JsonProperty("created_at")
private String createdAt = null;
@JsonProperty("updated_at")
private String updatedAt = null;
public Shift id(String id) {
this.id = id;
return this;
}
/**
* UUID for this object
* @return id
**/
@ApiModelProperty(value = "UUID for this object")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Shift employeeId(String employeeId) {
this.employeeId = employeeId;
return this;
}
/**
* The ID of the employee this shift belongs to.
* @return employeeId
**/
@ApiModelProperty(required = true, value = "The ID of the employee this shift belongs to.")
public String getEmployeeId() {
return employeeId;
}
public void setEmployeeId(String employeeId) {
this.employeeId = employeeId;
}
public Shift locationId(String locationId) {
this.locationId = locationId;
return this;
}
/**
* The ID of the location this shift occurred at. Should be based on where the employee clocked in.
* @return locationId
**/
@ApiModelProperty(value = "The ID of the location this shift occurred at. Should be based on where the employee clocked in.")
public String getLocationId() {
return locationId;
}
public void setLocationId(String locationId) {
this.locationId = locationId;
}
public Shift timezone(String timezone) {
this.timezone = timezone;
return this;
}
/**
* Read-only convenience value that is calculated from the location based on `location_id`. Format: the IANA Timezone Database identifier for the location timezone.
* @return timezone
**/
@ApiModelProperty(value = "Read-only convenience value that is calculated from the location based on `location_id`. Format: the IANA Timezone Database identifier for the location timezone.")
public String getTimezone() {
return timezone;
}
public void setTimezone(String timezone) {
this.timezone = timezone;
}
public Shift startAt(String startAt) {
this.startAt = startAt;
return this;
}
/**
* RFC 3339; shifted to location timezone + offset. Precision up to the minute is respected; seconds are truncated.
* @return startAt
**/
@ApiModelProperty(required = true, value = "RFC 3339; shifted to location timezone + offset. Precision up to the minute is respected; seconds are truncated.")
public String getStartAt() {
return startAt;
}
public void setStartAt(String startAt) {
this.startAt = startAt;
}
public Shift endAt(String endAt) {
this.endAt = endAt;
return this;
}
/**
* RFC 3339; shifted to timezone + offset. Precision up to the minute is respected; seconds are truncated. The `end_at` minute is not counted when the shift length is calculated. For example, a shift from `00:00` to `08:01` is considered an 8 hour shift (midnight to 8am).
* @return endAt
**/
@ApiModelProperty(value = "RFC 3339; shifted to timezone + offset. Precision up to the minute is respected; seconds are truncated. The `end_at` minute is not counted when the shift length is calculated. For example, a shift from `00:00` to `08:01` is considered an 8 hour shift (midnight to 8am).")
public String getEndAt() {
return endAt;
}
public void setEndAt(String endAt) {
this.endAt = endAt;
}
public Shift wage(ShiftWage wage) {
this.wage = wage;
return this;
}
/**
* Job and pay related information. If wage is not set on create, will default to a wage of zero money. If title is not set on create, will default to the name of the role the employee is assigned to, if any.
* @return wage
**/
@ApiModelProperty(value = "Job and pay related information. If wage is not set on create, will default to a wage of zero money. If title is not set on create, will default to the name of the role the employee is assigned to, if any.")
public ShiftWage getWage() {
return wage;
}
public void setWage(ShiftWage wage) {
this.wage = wage;
}
public Shift breaks(List<ModelBreak> breaks) {
this.breaks = breaks;
return this;
}
public Shift addBreaksItem(ModelBreak breaksItem) {
this.breaks.add(breaksItem);
return this;
}
/**
* A list of any paid or unpaid breaks that were taken during this shift.
* @return breaks
**/
@ApiModelProperty(value = "A list of any paid or unpaid breaks that were taken during this shift.")
public List<ModelBreak> getBreaks() {
return breaks;
}
public void setBreaks(List<ModelBreak> breaks) {
this.breaks = breaks;
}
public Shift status(String status) {
this.status = status;
return this;
}
/**
* Describes working state of the current `Shift`. See [ShiftStatus](#type-shiftstatus) for possible values
* @return status
**/
@ApiModelProperty(value = "Describes working state of the current `Shift`. See [ShiftStatus](#type-shiftstatus) for possible values")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Shift version(Integer version) {
this.version = version;
return this;
}
/**
* Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If not provided, Square executes a blind write; potentially overwriting data from another write.
* @return version
**/
@ApiModelProperty(value = "Used for resolving concurrency issues; request will fail if version provided does not match server version at time of request. If not provided, Square executes a blind write; potentially overwriting data from another write.")
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
public Shift createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* A read-only timestamp in RFC 3339 format; presented in UTC.
* @return createdAt
**/
@ApiModelProperty(value = "A read-only timestamp in RFC 3339 format; presented in UTC.")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public Shift updatedAt(String updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* A read-only timestamp in RFC 3339 format; presented in UTC.
* @return updatedAt
**/
@ApiModelProperty(value = "A read-only timestamp in RFC 3339 format; presented in UTC.")
public String getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Shift shift = (Shift) o;
return Objects.equals(this.id, shift.id) &&
Objects.equals(this.employeeId, shift.employeeId) &&
Objects.equals(this.locationId, shift.locationId) &&
Objects.equals(this.timezone, shift.timezone) &&
Objects.equals(this.startAt, shift.startAt) &&
Objects.equals(this.endAt, shift.endAt) &&
Objects.equals(this.wage, shift.wage) &&
Objects.equals(this.breaks, shift.breaks) &&
Objects.equals(this.status, shift.status) &&
Objects.equals(this.version, shift.version) &&
Objects.equals(this.createdAt, shift.createdAt) &&
Objects.equals(this.updatedAt, shift.updatedAt);
}
@Override
public int hashCode() {
return Objects.hash(id, employeeId, locationId, timezone, startAt, endAt, wage, breaks, status, version, createdAt, updatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Shift {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" employeeId: ").append(toIndentedString(employeeId)).append("\n");
sb.append(" locationId: ").append(toIndentedString(locationId)).append("\n");
sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n");
sb.append(" startAt: ").append(toIndentedString(startAt)).append("\n");
sb.append(" endAt: ").append(toIndentedString(endAt)).append("\n");
sb.append(" wage: ").append(toIndentedString(wage)).append("\n");
sb.append(" breaks: ").append(toIndentedString(breaks)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,993 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/Checkout.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.AdditionalRecipient;
import com.squareup.connect.models.Address;
import com.squareup.connect.models.Order;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Square Checkout lets merchants accept online payments for supported payment types using a checkout workflow hosted on squareup.com.
*/
@ApiModel(description = "Square Checkout lets merchants accept online payments for supported payment types using a checkout workflow hosted on squareup.com.")
public class Checkout {
@JsonProperty("id")
private String id = null;
@JsonProperty("checkout_page_url")
private String checkoutPageUrl = null;
@JsonProperty("ask_for_shipping_address")
private Boolean askForShippingAddress = null;
@JsonProperty("merchant_support_email")
private String merchantSupportEmail = null;
@JsonProperty("pre_populate_buyer_email")
private String prePopulateBuyerEmail = null;
@JsonProperty("pre_populate_shipping_address")
private Address prePopulateShippingAddress = null;
@JsonProperty("redirect_url")
private String redirectUrl = null;
@JsonProperty("order")
private Order order = null;
@JsonProperty("created_at")
private String createdAt = null;
@JsonProperty("additional_recipients")
private List<AdditionalRecipient> additionalRecipients = new ArrayList<AdditionalRecipient>();
public Checkout id(String id) {
this.id = id;
return this;
}
/**
* ID generated by Square Checkout when a new checkout is requested.
* @return id
**/
@ApiModelProperty(value = "ID generated by Square Checkout when a new checkout is requested.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Checkout checkoutPageUrl(String checkoutPageUrl) {
this.checkoutPageUrl = checkoutPageUrl;
return this;
}
/**
* The URL that the buyer's browser should be redirected to after the checkout is completed.
* @return checkoutPageUrl
**/
@ApiModelProperty(value = "The URL that the buyer's browser should be redirected to after the checkout is completed.")
public String getCheckoutPageUrl() {
return checkoutPageUrl;
}
public void setCheckoutPageUrl(String checkoutPageUrl) {
this.checkoutPageUrl = checkoutPageUrl;
}
public Checkout askForShippingAddress(Boolean askForShippingAddress) {
this.askForShippingAddress = askForShippingAddress;
return this;
}
/**
* If `true`, Square Checkout will collect shipping information on your behalf and store that information with the transaction information in your Square Dashboard. Default: `false`.
* @return askForShippingAddress
**/
@ApiModelProperty(value = "If `true`, Square Checkout will collect shipping information on your behalf and store that information with the transaction information in your Square Dashboard. Default: `false`.")
public Boolean getAskForShippingAddress() {
return askForShippingAddress;
}
public void setAskForShippingAddress(Boolean askForShippingAddress) {
this.askForShippingAddress = askForShippingAddress;
}
public Checkout merchantSupportEmail(String merchantSupportEmail) {
this.merchantSupportEmail = merchantSupportEmail;
return this;
}
/**
* The email address to display on the Square Checkout confirmation page and confirmation email that the buyer can use to contact the merchant. If this value is not set, the confirmation page and email will display the primary email address associated with the merchant's Square account. Default: none; only exists if explicitly set.
* @return merchantSupportEmail
**/
@ApiModelProperty(value = "The email address to display on the Square Checkout confirmation page and confirmation email that the buyer can use to contact the merchant. If this value is not set, the confirmation page and email will display the primary email address associated with the merchant's Square account. Default: none; only exists if explicitly set.")
public String getMerchantSupportEmail() {
return merchantSupportEmail;
}
public void setMerchantSupportEmail(String merchantSupportEmail) {
this.merchantSupportEmail = merchantSupportEmail;
}
public Checkout prePopulateBuyerEmail(String prePopulateBuyerEmail) {
this.prePopulateBuyerEmail = prePopulateBuyerEmail;
return this;
}
/**
* If provided, the buyer's email is pre-populated on the checkout page as an editable text field. Default: none; only exists if explicitly set.
* @return prePopulateBuyerEmail
**/
@ApiModelProperty(value = "If provided, the buyer's email is pre-populated on the checkout page as an editable text field. Default: none; only exists if explicitly set.")
public String getPrePopulateBuyerEmail() {
return prePopulateBuyerEmail;
}
public void setPrePopulateBuyerEmail(String prePopulateBuyerEmail) {
this.prePopulateBuyerEmail = prePopulateBuyerEmail;
}
public Checkout prePopulateShippingAddress(Address prePopulateShippingAddress) {
this.prePopulateShippingAddress = prePopulateShippingAddress;
return this;
}
/**
* If provided, the buyer's shipping info is pre-populated on the checkout page as editable text fields. Default: none; only exists if explicitly set.
* @return prePopulateShippingAddress
**/
@ApiModelProperty(value = "If provided, the buyer's shipping info is pre-populated on the checkout page as editable text fields. Default: none; only exists if explicitly set.")
public Address getPrePopulateShippingAddress() {
return prePopulateShippingAddress;
}
public void setPrePopulateShippingAddress(Address prePopulateShippingAddress) {
this.prePopulateShippingAddress = prePopulateShippingAddress;
}
public Checkout redirectUrl(String redirectUrl) {
this.redirectUrl = redirectUrl;
return this;
}
/**
* The URL to redirect to after checkout is completed with `checkoutId`, Square's `orderId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect_url is `http://www.example.com/order-complete`, a successful transaction redirects the customer to: `http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx` If you do not provide a redirect URL, Square Checkout will display an order confirmation page on your behalf; however Square strongly recommends that you provide a redirect URL so you can verify the transaction results and finalize the order through your existing/normal confirmation workflow.
* @return redirectUrl
**/
@ApiModelProperty(value = "The URL to redirect to after checkout is completed with `checkoutId`, Square's `orderId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect_url is `http://www.example.com/order-complete`, a successful transaction redirects the customer to: `http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx` If you do not provide a redirect URL, Square Checkout will display an order confirmation page on your behalf; however Square strongly recommends that you provide a redirect URL so you can verify the transaction results and finalize the order through your existing/normal confirmation workflow.")
public String getRedirectUrl() {
return redirectUrl;
}
public void setRedirectUrl(String redirectUrl) {
this.redirectUrl = redirectUrl;
}
public Checkout order(Order order) {
this.order = order;
return this;
}
/**
* Order to be checked out.
* @return order
**/
@ApiModelProperty(value = "Order to be checked out.")
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
this.order = order;
}
public Checkout createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* The time when the checkout was created, in RFC 3339 format.
* @return createdAt
**/
@ApiModelProperty(value = "The time when the checkout was created, in RFC 3339 format.")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public Checkout additionalRecipients(List<AdditionalRecipient> additionalRecipients) {
this.additionalRecipients = additionalRecipients;
return this;
}
public Checkout addAdditionalRecipientsItem(AdditionalRecipient additionalRecipientsItem) {
this.additionalRecipients.add(additionalRecipientsItem);
return this;
}
/**
* Additional recipients (other than the merchant) receiving a portion of this checkout. For example, fees assessed on the purchase by a third party integration.
* @return additionalRecipients
**/
@ApiModelProperty(value = "Additional recipients (other than the merchant) receiving a portion of this checkout. For example, fees assessed on the purchase by a third party integration.")
public List<AdditionalRecipient> getAdditionalRecipients() {
return additionalRecipients;
}
public void setAdditionalRecipients(List<AdditionalRecipient> additionalRecipients) {
this.additionalRecipients = additionalRecipients;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Checkout checkout = (Checkout) o;
return Objects.equals(this.id, checkout.id) &&
Objects.equals(this.checkoutPageUrl, checkout.checkoutPageUrl) &&
Objects.equals(this.askForShippingAddress, checkout.askForShippingAddress) &&
Objects.equals(this.merchantSupportEmail, checkout.merchantSupportEmail) &&
Objects.equals(this.prePopulateBuyerEmail, checkout.prePopulateBuyerEmail) &&
Objects.equals(this.prePopulateShippingAddress, checkout.prePopulateShippingAddress) &&
Objects.equals(this.redirectUrl, checkout.redirectUrl) &&
Objects.equals(this.order, checkout.order) &&
Objects.equals(this.createdAt, checkout.createdAt) &&
Objects.equals(this.additionalRecipients, checkout.additionalRecipients);
}
@Override
public int hashCode() {
return Objects.hash(id, checkoutPageUrl, askForShippingAddress, merchantSupportEmail, prePopulateBuyerEmail, prePopulateShippingAddress, redirectUrl, order, createdAt, additionalRecipients);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Checkout {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" checkoutPageUrl: ").append(toIndentedString(checkoutPageUrl)).append("\n");
sb.append(" askForShippingAddress: ").append(toIndentedString(askForShippingAddress)).append("\n");
sb.append(" merchantSupportEmail: ").append(toIndentedString(merchantSupportEmail)).append("\n");
sb.append(" prePopulateBuyerEmail: ").append(toIndentedString(prePopulateBuyerEmail)).append("\n");
sb.append(" prePopulateShippingAddress: ").append(toIndentedString(prePopulateShippingAddress)).append("\n");
sb.append(" redirectUrl: ").append(toIndentedString(redirectUrl)).append("\n");
sb.append(" order: ").append(toIndentedString(order)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" additionalRecipients: ").append(toIndentedString(additionalRecipients)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,994 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/Money.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents an amount of money. `Money` fields can be signed or unsigned. Fields that do not explicitly define whether they are signed or unsigned are considered unsigned and can only hold positive amounts. For signed fields, the sign of the value indicates the purpose of the money transfer. See [Working with Monetary Amounts](/build-basics/working-with-monetary-amounts) for more information.
*/
@ApiModel(description = "Represents an amount of money. `Money` fields can be signed or unsigned. Fields that do not explicitly define whether they are signed or unsigned are considered unsigned and can only hold positive amounts. For signed fields, the sign of the value indicates the purpose of the money transfer. See [Working with Monetary Amounts](/build-basics/working-with-monetary-amounts) for more information.")
public class Money {
@JsonProperty("amount")
private Long amount = null;
@JsonProperty("currency")
private String currency = null;
public Money amount(Long amount) {
this.amount = amount;
return this;
}
/**
* The amount of money, in the smallest denomination of the currency indicated by `currency`. For example, when `currency` is `USD`, `amount` is in cents. Monetary amounts can be positive or negative. See the specific field description to determine the meaning of the sign in a particular case.
* @return amount
**/
@ApiModelProperty(value = "The amount of money, in the smallest denomination of the currency indicated by `currency`. For example, when `currency` is `USD`, `amount` is in cents. Monetary amounts can be positive or negative. See the specific field description to determine the meaning of the sign in a particular case.")
public Long getAmount() {
return amount;
}
public void setAmount(Long amount) {
this.amount = amount;
}
public Money currency(String currency) {
this.currency = currency;
return this;
}
/**
* The type of currency, in __ISO 4217 format__. For example, the currency code for US dollars is `USD`. See `Currency` for possible values. See [Currency](#type-currency) for possible values
* @return currency
**/
@ApiModelProperty(value = "The type of currency, in __ISO 4217 format__. For example, the currency code for US dollars is `USD`. See `Currency` for possible values. See [Currency](#type-currency) for possible values")
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Money money = (Money) o;
return Objects.equals(this.amount, money.amount) &&
Objects.equals(this.currency, money.currency);
}
@Override
public int hashCode() {
return Objects.hash(amount, currency);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Money {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,995 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/DeleteCustomerRequest.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
/**
* Defines the fields that are included in a request to the DeleteCustomer endpoint.
*/
@ApiModel(description = "Defines the fields that are included in a request to the DeleteCustomer endpoint.")
public class DeleteCustomerRequest {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeleteCustomerRequest {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,996 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogQueryExact.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
*
*/
@ApiModel(description = "")
public class CatalogQueryExact {
@JsonProperty("attribute_name")
private String attributeName = null;
@JsonProperty("attribute_value")
private String attributeValue = null;
public CatalogQueryExact attributeName(String attributeName) {
this.attributeName = attributeName;
return this;
}
/**
* The name of the attribute to be searched.
* @return attributeName
**/
@ApiModelProperty(required = true, value = "The name of the attribute to be searched.")
public String getAttributeName() {
return attributeName;
}
public void setAttributeName(String attributeName) {
this.attributeName = attributeName;
}
public CatalogQueryExact attributeValue(String attributeValue) {
this.attributeValue = attributeValue;
return this;
}
/**
* The desired value of the search attribute.
* @return attributeValue
**/
@ApiModelProperty(required = true, value = "The desired value of the search attribute.")
public String getAttributeValue() {
return attributeValue;
}
public void setAttributeValue(String attributeValue) {
this.attributeValue = attributeValue;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CatalogQueryExact catalogQueryExact = (CatalogQueryExact) o;
return Objects.equals(this.attributeName, catalogQueryExact.attributeName) &&
Objects.equals(this.attributeValue, catalogQueryExact.attributeValue);
}
@Override
public int hashCode() {
return Objects.hash(attributeName, attributeValue);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CatalogQueryExact {\n");
sb.append(" attributeName: ").append(toIndentedString(attributeName)).append("\n");
sb.append(" attributeValue: ").append(toIndentedString(attributeValue)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,997 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ProcessingFee.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.squareup.connect.models.Money;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Represents Square processing fee.
*/
@ApiModel(description = "Represents Square processing fee.")
public class ProcessingFee {
@JsonProperty("effective_at")
private String effectiveAt = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("amount_money")
private Money amountMoney = null;
public ProcessingFee effectiveAt(String effectiveAt) {
this.effectiveAt = effectiveAt;
return this;
}
/**
* Timestamp of when the fee takes effect, in RFC 3339 format.
* @return effectiveAt
**/
@ApiModelProperty(value = "Timestamp of when the fee takes effect, in RFC 3339 format.")
public String getEffectiveAt() {
return effectiveAt;
}
public void setEffectiveAt(String effectiveAt) {
this.effectiveAt = effectiveAt;
}
public ProcessingFee type(String type) {
this.type = type;
return this;
}
/**
* The type of fee assessed or adjusted. Can be one of: `INITIAL`, `ADJUSTMENT`.
* @return type
**/
@ApiModelProperty(value = "The type of fee assessed or adjusted. Can be one of: `INITIAL`, `ADJUSTMENT`.")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public ProcessingFee amountMoney(Money amountMoney) {
this.amountMoney = amountMoney;
return this;
}
/**
* The fee amount assessed or adjusted by Square. May be negative. Positive values represent funds being assessed, while negative values represent funds being returned.
* @return amountMoney
**/
@ApiModelProperty(value = "The fee amount assessed or adjusted by Square. May be negative. Positive values represent funds being assessed, while negative values represent funds being returned.")
public Money getAmountMoney() {
return amountMoney;
}
public void setAmountMoney(Money amountMoney) {
this.amountMoney = amountMoney;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ProcessingFee processingFee = (ProcessingFee) o;
return Objects.equals(this.effectiveAt, processingFee.effectiveAt) &&
Objects.equals(this.type, processingFee.type) &&
Objects.equals(this.amountMoney, processingFee.amountMoney);
}
@Override
public int hashCode() {
return Objects.hash(effectiveAt, type, amountMoney);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProcessingFee {\n");
sb.append(" effectiveAt: ").append(toIndentedString(effectiveAt)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" amountMoney: ").append(toIndentedString(amountMoney)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,998 |
0 | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect | Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogProductSet.java | /*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.squareup.connect.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Represents a collection of catalog objects for the purpose of applying a `PricingRule`. Including a catalog object will include all of its subtypes. For example, including a category in a product set will include all of its items and associated item variations in the product set. Including an item in a product set will also include its item variations.
*/
@ApiModel(description = "Represents a collection of catalog objects for the purpose of applying a `PricingRule`. Including a catalog object will include all of its subtypes. For example, including a category in a product set will include all of its items and associated item variations in the product set. Including an item in a product set will also include its item variations.")
public class CatalogProductSet {
@JsonProperty("name")
private String name = null;
@JsonProperty("product_ids_any")
private List<String> productIdsAny = new ArrayList<String>();
@JsonProperty("product_ids_all")
private List<String> productIdsAll = new ArrayList<String>();
@JsonProperty("quantity_exact")
private Long quantityExact = null;
@JsonProperty("quantity_min")
private Long quantityMin = null;
@JsonProperty("quantity_max")
private Long quantityMax = null;
@JsonProperty("all_products")
private Boolean allProducts = null;
public CatalogProductSet name(String name) {
this.name = name;
return this;
}
/**
* User-defined name for the product set. For example, \"Clearance Items\" or \"Winter Sale Items\".
* @return name
**/
@ApiModelProperty(value = "User-defined name for the product set. For example, \"Clearance Items\" or \"Winter Sale Items\".")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CatalogProductSet productIdsAny(List<String> productIdsAny) {
this.productIdsAny = productIdsAny;
return this;
}
public CatalogProductSet addProductIdsAnyItem(String productIdsAnyItem) {
this.productIdsAny.add(productIdsAnyItem);
return this;
}
/**
* Unique IDs for any `CatalogObject` included in this product set. Any number of these catalog objects can be in an order for a pricing rule to apply. This can be used with `product_ids_all` in a parent `CatalogProductSet` to match groups of products for a bulk discount, such as a discount for an entree and side combo. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs.
* @return productIdsAny
**/
@ApiModelProperty(value = " Unique IDs for any `CatalogObject` included in this product set. Any number of these catalog objects can be in an order for a pricing rule to apply. This can be used with `product_ids_all` in a parent `CatalogProductSet` to match groups of products for a bulk discount, such as a discount for an entree and side combo. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs.")
public List<String> getProductIdsAny() {
return productIdsAny;
}
public void setProductIdsAny(List<String> productIdsAny) {
this.productIdsAny = productIdsAny;
}
public CatalogProductSet productIdsAll(List<String> productIdsAll) {
this.productIdsAll = productIdsAll;
return this;
}
public CatalogProductSet addProductIdsAllItem(String productIdsAllItem) {
this.productIdsAll.add(productIdsAllItem);
return this;
}
/**
* Unique IDs for any `CatalogObject` included in this product set. All objects in this set must be included in an order for a pricing rule to apply. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs.
* @return productIdsAll
**/
@ApiModelProperty(value = "Unique IDs for any `CatalogObject` included in this product set. All objects in this set must be included in an order for a pricing rule to apply. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set. Max: 500 catalog object IDs.")
public List<String> getProductIdsAll() {
return productIdsAll;
}
public void setProductIdsAll(List<String> productIdsAll) {
this.productIdsAll = productIdsAll;
}
public CatalogProductSet quantityExact(Long quantityExact) {
this.quantityExact = quantityExact;
return this;
}
/**
* If set, there must be exactly this many items from `products_any` or `products_all` in the cart for the discount to apply. Cannot be combined with either `quantity_min` or `quantity_max`.
* @return quantityExact
**/
@ApiModelProperty(value = "If set, there must be exactly this many items from `products_any` or `products_all` in the cart for the discount to apply. Cannot be combined with either `quantity_min` or `quantity_max`.")
public Long getQuantityExact() {
return quantityExact;
}
public void setQuantityExact(Long quantityExact) {
this.quantityExact = quantityExact;
}
public CatalogProductSet quantityMin(Long quantityMin) {
this.quantityMin = quantityMin;
return this;
}
/**
* If set, there must be at least this many items from `products_any` or `products_all` in a cart for the discount to apply. See `quantity_exact`. Defaults to 0 if `quantity_exact`, `quantity_min` and `quantity_max` are all unspecified.
* @return quantityMin
**/
@ApiModelProperty(value = "If set, there must be at least this many items from `products_any` or `products_all` in a cart for the discount to apply. See `quantity_exact`. Defaults to 0 if `quantity_exact`, `quantity_min` and `quantity_max` are all unspecified.")
public Long getQuantityMin() {
return quantityMin;
}
public void setQuantityMin(Long quantityMin) {
this.quantityMin = quantityMin;
}
public CatalogProductSet quantityMax(Long quantityMax) {
this.quantityMax = quantityMax;
return this;
}
/**
* If set, the pricing rule will apply to a maximum of this many items from `products_any` or `products_all`.
* @return quantityMax
**/
@ApiModelProperty(value = "If set, the pricing rule will apply to a maximum of this many items from `products_any` or `products_all`.")
public Long getQuantityMax() {
return quantityMax;
}
public void setQuantityMax(Long quantityMax) {
this.quantityMax = quantityMax;
}
public CatalogProductSet allProducts(Boolean allProducts) {
this.allProducts = allProducts;
return this;
}
/**
* If set to `true`, the product set will include every item in the catalog. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.
* @return allProducts
**/
@ApiModelProperty(value = "If set to `true`, the product set will include every item in the catalog. Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.")
public Boolean getAllProducts() {
return allProducts;
}
public void setAllProducts(Boolean allProducts) {
this.allProducts = allProducts;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CatalogProductSet catalogProductSet = (CatalogProductSet) o;
return Objects.equals(this.name, catalogProductSet.name) &&
Objects.equals(this.productIdsAny, catalogProductSet.productIdsAny) &&
Objects.equals(this.productIdsAll, catalogProductSet.productIdsAll) &&
Objects.equals(this.quantityExact, catalogProductSet.quantityExact) &&
Objects.equals(this.quantityMin, catalogProductSet.quantityMin) &&
Objects.equals(this.quantityMax, catalogProductSet.quantityMax) &&
Objects.equals(this.allProducts, catalogProductSet.allProducts);
}
@Override
public int hashCode() {
return Objects.hash(name, productIdsAny, productIdsAll, quantityExact, quantityMin, quantityMax, allProducts);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CatalogProductSet {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" productIdsAny: ").append(toIndentedString(productIdsAny)).append("\n");
sb.append(" productIdsAll: ").append(toIndentedString(productIdsAll)).append("\n");
sb.append(" quantityExact: ").append(toIndentedString(quantityExact)).append("\n");
sb.append(" quantityMin: ").append(toIndentedString(quantityMin)).append("\n");
sb.append(" quantityMax: ").append(toIndentedString(quantityMax)).append("\n");
sb.append(" allProducts: ").append(toIndentedString(allProducts)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 4,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.