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/CancelPaymentRequest.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; /** * Cancels (voids) a payment before it has been completed. Note: only payments created with `autocomplete` set to false can be canceled. */ @ApiModel(description = "Cancels (voids) a payment before it has been completed. Note: only payments created with `autocomplete` set to false can be canceled.") public class CancelPaymentRequest { @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 CancelPaymentRequest {\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 "); } }
5,000
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1PaymentModifier.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; /** * V1PaymentModifier */ @ApiModel(description = "V1PaymentModifier") public class V1PaymentModifier { @JsonProperty("name") private String name = null; @JsonProperty("applied_money") private V1Money appliedMoney = null; @JsonProperty("modifier_option_id") private String modifierOptionId = null; public V1PaymentModifier name(String name) { this.name = name; return this; } /** * The modifier option's name. * @return name **/ @ApiModelProperty(value = "The modifier option's name.") public String getName() { return name; } public void setName(String name) { this.name = name; } public V1PaymentModifier appliedMoney(V1Money appliedMoney) { this.appliedMoney = appliedMoney; return this; } /** * The amount of money that this modifier option adds to the payment. * @return appliedMoney **/ @ApiModelProperty(value = "The amount of money that this modifier option adds to the payment.") public V1Money getAppliedMoney() { return appliedMoney; } public void setAppliedMoney(V1Money appliedMoney) { this.appliedMoney = appliedMoney; } public V1PaymentModifier modifierOptionId(String modifierOptionId) { this.modifierOptionId = modifierOptionId; return this; } /** * TThe ID of the applied modifier option, if available. Modifier options applied in older versions of Square Register might not have an ID. * @return modifierOptionId **/ @ApiModelProperty(value = "TThe ID of the applied modifier option, if available. Modifier options applied in older versions of Square Register might not have an ID.") public String getModifierOptionId() { return modifierOptionId; } public void setModifierOptionId(String modifierOptionId) { this.modifierOptionId = modifierOptionId; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } V1PaymentModifier v1PaymentModifier = (V1PaymentModifier) o; return Objects.equals(this.name, v1PaymentModifier.name) && Objects.equals(this.appliedMoney, v1PaymentModifier.appliedMoney) && Objects.equals(this.modifierOptionId, v1PaymentModifier.modifierOptionId); } @Override public int hashCode() { return Objects.hash(name, appliedMoney, modifierOptionId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PaymentModifier {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" appliedMoney: ").append(toIndentedString(appliedMoney)).append("\n"); sb.append(" modifierOptionId: ").append(toIndentedString(modifierOptionId)).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 "); } }
5,001
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListItemsRequest.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 V1ListItemsRequest { @JsonProperty("batch_token") private String batchToken = null; public V1ListItemsRequest 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; } V1ListItemsRequest v1ListItemsRequest = (V1ListItemsRequest) o; return Objects.equals(this.batchToken, v1ListItemsRequest.batchToken); } @Override public int hashCode() { return Objects.hash(batchToken); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ListItemsRequest {\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 "); } }
5,002
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreatePaymentRequest.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.Money; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * Creates a payment from the source (nonce, card on file, etc.) The `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required to enable application fees. For more information, see [Payments and Refunds Overview](/payments-api/overview). For information about application fees in a payment, see [Collect Fees](/payments-api/take-payments-and-collect-fees). */ @ApiModel(description = "Creates a payment from the source (nonce, card on file, etc.) The `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required to enable application fees. For more information, see [Payments and Refunds Overview](/payments-api/overview). For information about application fees in a payment, see [Collect Fees](/payments-api/take-payments-and-collect-fees).") public class CreatePaymentRequest { @JsonProperty("source_id") private String sourceId = null; @JsonProperty("idempotency_key") private String idempotencyKey = null; @JsonProperty("amount_money") private Money amountMoney = null; @JsonProperty("tip_money") private Money tipMoney = null; @JsonProperty("app_fee_money") private Money appFeeMoney = null; @JsonProperty("autocomplete") private Boolean autocomplete = null; @JsonProperty("order_id") private String orderId = null; @JsonProperty("customer_id") private String customerId = null; @JsonProperty("location_id") private String locationId = null; @JsonProperty("reference_id") private String referenceId = null; @JsonProperty("verification_token") private String verificationToken = null; @JsonProperty("accept_partial_authorization") private Boolean acceptPartialAuthorization = null; @JsonProperty("buyer_email_address") private String buyerEmailAddress = null; @JsonProperty("billing_address") private Address billingAddress = null; @JsonProperty("shipping_address") private Address shippingAddress = null; @JsonProperty("note") private String note = null; @JsonProperty("statement_description_identifier") private String statementDescriptionIdentifier = null; public CreatePaymentRequest sourceId(String sourceId) { this.sourceId = sourceId; return this; } /** * The ID for the source of funds for this payment. This can be a nonce generated by the Payment Form or a card on file made with the Customers API. * @return sourceId **/ @ApiModelProperty(required = true, value = "The ID for the source of funds for this payment. This can be a nonce generated by the Payment Form or a card on file made with the Customers API.") public String getSourceId() { return sourceId; } public void setSourceId(String sourceId) { this.sourceId = sourceId; } public CreatePaymentRequest idempotencyKey(String idempotencyKey) { this.idempotencyKey = idempotencyKey; return this; } /** * A unique string that identifies this CreatePayment request. Keys can be any valid string but must be unique for every CreatePayment request. Max: 45 characters 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 CreatePayment request. Keys can be any valid string but must be unique for every CreatePayment request. Max: 45 characters 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 CreatePaymentRequest amountMoney(Money amountMoney) { this.amountMoney = amountMoney; return this; } /** * The amount of money to accept for this payment, not including `tip_money`. Must be specified 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. The currency code must match the currency associated with the business that is accepting the payment. * @return amountMoney **/ @ApiModelProperty(required = true, value = "The amount of money to accept for this payment, not including `tip_money`. Must be specified 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. The currency code must match the currency associated with the business that is accepting the payment.") public Money getAmountMoney() { return amountMoney; } public void setAmountMoney(Money amountMoney) { this.amountMoney = amountMoney; } public CreatePaymentRequest tipMoney(Money tipMoney) { this.tipMoney = tipMoney; return this; } /** * The amount designated as a tip, in addition to `amount_money` Must be specified 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. The currency code must match the currency associated with the business that is accepting the payment. * @return tipMoney **/ @ApiModelProperty(value = "The amount designated as a tip, in addition to `amount_money` Must be specified 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. The currency code must match the currency associated with the business that is accepting the payment.") public Money getTipMoney() { return tipMoney; } public void setTipMoney(Money tipMoney) { this.tipMoney = tipMoney; } public CreatePaymentRequest appFeeMoney(Money appFeeMoney) { this.appFeeMoney = appFeeMoney; return this; } /** * The amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Cannot be more than 90% of the total amount of the Payment. Must be specified 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. The currency code must match the currency associated with the business that is accepting the payment. For more information about the application fee scenario, see [Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). * @return appFeeMoney **/ @ApiModelProperty(value = "The amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Cannot be more than 90% of the total amount of the Payment. Must be specified 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. The currency code must match the currency associated with the business that is accepting the payment. For more information about the application fee scenario, see [Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees).") public Money getAppFeeMoney() { return appFeeMoney; } public void setAppFeeMoney(Money appFeeMoney) { this.appFeeMoney = appFeeMoney; } public CreatePaymentRequest autocomplete(Boolean autocomplete) { this.autocomplete = autocomplete; return this; } /** * If set to `true`, this payment will be completed when possible. If set to `false`, this payment will be held in an approved state until either explicitly completed (captured) or canceled (voided). For more information, see [Delayed Payments](https://developer.squareup.com/docs/payments-api/take-payments#delayed-payments). Default: true * @return autocomplete **/ @ApiModelProperty(value = "If set to `true`, this payment will be completed when possible. If set to `false`, this payment will be held in an approved state until either explicitly completed (captured) or canceled (voided). For more information, see [Delayed Payments](https://developer.squareup.com/docs/payments-api/take-payments#delayed-payments). Default: true") public Boolean getAutocomplete() { return autocomplete; } public void setAutocomplete(Boolean autocomplete) { this.autocomplete = autocomplete; } public CreatePaymentRequest orderId(String orderId) { this.orderId = orderId; return this; } /** * Associate a previously created order with this payment * @return orderId **/ @ApiModelProperty(value = "Associate a previously created order with this payment") public String getOrderId() { return orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } public CreatePaymentRequest customerId(String customerId) { this.customerId = customerId; return this; } /** * The ID of the customer associated with the payment. Required if the `source_id` refers to a card on file created using the Customers API. * @return customerId **/ @ApiModelProperty(value = "The ID of the customer associated with the payment. Required if the `source_id` refers to a card on file created using the Customers API.") public String getCustomerId() { return customerId; } public void setCustomerId(String customerId) { this.customerId = customerId; } public CreatePaymentRequest locationId(String locationId) { this.locationId = locationId; return this; } /** * The location ID to associate with the payment. If not specified, the default location is used. * @return locationId **/ @ApiModelProperty(value = "The location ID to associate with the payment. If not specified, the default location is used.") public String getLocationId() { return locationId; } public void setLocationId(String locationId) { this.locationId = locationId; } public CreatePaymentRequest referenceId(String referenceId) { this.referenceId = referenceId; return this; } /** * A user-defined ID to associate with the payment. You can use this field to associate the payment to an entity in an external system. For example, you might specify an order ID that is generated by a third-party shopping cart. Limit 40 characters. * @return referenceId **/ @ApiModelProperty(value = "A user-defined ID to associate with the payment. You can use this field to associate the payment to an entity in an external system. For example, you might specify an order ID that is generated by a third-party shopping cart. Limit 40 characters.") public String getReferenceId() { return referenceId; } public void setReferenceId(String referenceId) { this.referenceId = referenceId; } public CreatePaymentRequest verificationToken(String verificationToken) { this.verificationToken = verificationToken; return this; } /** * An identifying token generated by `SqPaymentForm.verifyBuyer()`. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. See the [SCA Overview](https://developer.squareup.com/sca-overview) for more. * @return verificationToken **/ @ApiModelProperty(value = "An identifying token generated by `SqPaymentForm.verifyBuyer()`. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. See the [SCA Overview](https://developer.squareup.com/sca-overview) for more.") public String getVerificationToken() { return verificationToken; } public void setVerificationToken(String verificationToken) { this.verificationToken = verificationToken; } public CreatePaymentRequest acceptPartialAuthorization(Boolean acceptPartialAuthorization) { this.acceptPartialAuthorization = acceptPartialAuthorization; return this; } /** * If set to true and charging a Square Gift Card, a payment may be returned with amount_money equal to less than what was requested. Example, a request for $20 when charging a Square Gift Card with balance of $5 wil result in an APPROVED payment of $5. You may choose to prompt the buyer for an additional payment to cover the remainder, or cancel the gift card payment. Cannot be `true` when `autocomplete = true`. For more information, see [Partial amount with Square gift cards](https://developer.squareup.com/docs/payments-api/take-payments#partial-payment-gift-card). Default: false * Note: This model is in beta. * @return acceptPartialAuthorization **/ @ApiModelProperty(value = "If set to true and charging a Square Gift Card, a payment may be returned with amount_money equal to less than what was requested. Example, a request for $20 when charging a Square Gift Card with balance of $5 wil result in an APPROVED payment of $5. You may choose to prompt the buyer for an additional payment to cover the remainder, or cancel the gift card payment. Cannot be `true` when `autocomplete = true`. For more information, see [Partial amount with Square gift cards](https://developer.squareup.com/docs/payments-api/take-payments#partial-payment-gift-card). Default: false") public Boolean getAcceptPartialAuthorization() { return acceptPartialAuthorization; } public void setAcceptPartialAuthorization(Boolean acceptPartialAuthorization) { this.acceptPartialAuthorization = acceptPartialAuthorization; } public CreatePaymentRequest buyerEmailAddress(String buyerEmailAddress) { this.buyerEmailAddress = buyerEmailAddress; return this; } /** * The buyer's e-mail address * @return buyerEmailAddress **/ @ApiModelProperty(value = "The buyer's e-mail address") public String getBuyerEmailAddress() { return buyerEmailAddress; } public void setBuyerEmailAddress(String buyerEmailAddress) { this.buyerEmailAddress = buyerEmailAddress; } public CreatePaymentRequest billingAddress(Address billingAddress) { this.billingAddress = billingAddress; return this; } /** * The buyer's billing address. * @return billingAddress **/ @ApiModelProperty(value = "The buyer's billing address.") public Address getBillingAddress() { return billingAddress; } public void setBillingAddress(Address billingAddress) { this.billingAddress = billingAddress; } public CreatePaymentRequest shippingAddress(Address shippingAddress) { this.shippingAddress = shippingAddress; return this; } /** * The buyer's shipping address. * @return shippingAddress **/ @ApiModelProperty(value = "The buyer's shipping address.") public Address getShippingAddress() { return shippingAddress; } public void setShippingAddress(Address shippingAddress) { this.shippingAddress = shippingAddress; } public CreatePaymentRequest note(String note) { this.note = note; return this; } /** * An optional note to be entered by the developer when creating a payment Limit 500 characters. * @return note **/ @ApiModelProperty(value = "An optional note to be entered by the developer when creating a payment Limit 500 characters.") public String getNote() { return note; } public void setNote(String note) { this.note = note; } public CreatePaymentRequest statementDescriptionIdentifier(String statementDescriptionIdentifier) { this.statementDescriptionIdentifier = statementDescriptionIdentifier; return this; } /** * Optional additional payment information to include on the customer's card statement as part of statement description. This can be, for example, an invoice number, ticket number, or short description that uniquely identifies the purchase. Limit 20 characters. Note that the statement_description_identifier may get truncated on the statement description to fit the required information including the Square identifier (SQ *) and name of the merchant taking the payment. * Note: This model is in beta. * @return statementDescriptionIdentifier **/ @ApiModelProperty(value = "Optional additional payment information to include on the customer's card statement as part of statement description. This can be, for example, an invoice number, ticket number, or short description that uniquely identifies the purchase. Limit 20 characters. Note that the statement_description_identifier may get truncated on the statement description to fit the required information including the Square identifier (SQ *) and name of the merchant taking the payment.") public String getStatementDescriptionIdentifier() { return statementDescriptionIdentifier; } public void setStatementDescriptionIdentifier(String statementDescriptionIdentifier) { this.statementDescriptionIdentifier = statementDescriptionIdentifier; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CreatePaymentRequest createPaymentRequest = (CreatePaymentRequest) o; return Objects.equals(this.sourceId, createPaymentRequest.sourceId) && Objects.equals(this.idempotencyKey, createPaymentRequest.idempotencyKey) && Objects.equals(this.amountMoney, createPaymentRequest.amountMoney) && Objects.equals(this.tipMoney, createPaymentRequest.tipMoney) && Objects.equals(this.appFeeMoney, createPaymentRequest.appFeeMoney) && Objects.equals(this.autocomplete, createPaymentRequest.autocomplete) && Objects.equals(this.orderId, createPaymentRequest.orderId) && Objects.equals(this.customerId, createPaymentRequest.customerId) && Objects.equals(this.locationId, createPaymentRequest.locationId) && Objects.equals(this.referenceId, createPaymentRequest.referenceId) && Objects.equals(this.verificationToken, createPaymentRequest.verificationToken) && Objects.equals(this.acceptPartialAuthorization, createPaymentRequest.acceptPartialAuthorization) && Objects.equals(this.buyerEmailAddress, createPaymentRequest.buyerEmailAddress) && Objects.equals(this.billingAddress, createPaymentRequest.billingAddress) && Objects.equals(this.shippingAddress, createPaymentRequest.shippingAddress) && Objects.equals(this.note, createPaymentRequest.note) && Objects.equals(this.statementDescriptionIdentifier, createPaymentRequest.statementDescriptionIdentifier); } @Override public int hashCode() { return Objects.hash(sourceId, idempotencyKey, amountMoney, tipMoney, appFeeMoney, autocomplete, orderId, customerId, locationId, referenceId, verificationToken, acceptPartialAuthorization, buyerEmailAddress, billingAddress, shippingAddress, note, statementDescriptionIdentifier); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreatePaymentRequest {\n"); sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n"); sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).append("\n"); sb.append(" amountMoney: ").append(toIndentedString(amountMoney)).append("\n"); sb.append(" tipMoney: ").append(toIndentedString(tipMoney)).append("\n"); sb.append(" appFeeMoney: ").append(toIndentedString(appFeeMoney)).append("\n"); sb.append(" autocomplete: ").append(toIndentedString(autocomplete)).append("\n"); sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); sb.append(" locationId: ").append(toIndentedString(locationId)).append("\n"); sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n"); sb.append(" verificationToken: ").append(toIndentedString(verificationToken)).append("\n"); sb.append(" acceptPartialAuthorization: ").append(toIndentedString(acceptPartialAuthorization)).append("\n"); sb.append(" buyerEmailAddress: ").append(toIndentedString(buyerEmailAddress)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); sb.append(" shippingAddress: ").append(toIndentedString(shippingAddress)).append("\n"); sb.append(" note: ").append(toIndentedString(note)).append("\n"); sb.append(" statementDescriptionIdentifier: ").append(toIndentedString(statementDescriptionIdentifier)).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 "); } }
5,003
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1CreateModifierListRequest.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.V1ModifierList; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * */ @ApiModel(description = "") public class V1CreateModifierListRequest { @JsonProperty("body") private V1ModifierList body = null; public V1CreateModifierListRequest body(V1ModifierList 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 V1ModifierList getBody() { return body; } public void setBody(V1ModifierList 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; } V1CreateModifierListRequest v1CreateModifierListRequest = (V1CreateModifierListRequest) o; return Objects.equals(this.body, v1CreateModifierListRequest.body); } @Override public int hashCode() { return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CreateModifierListRequest {\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 "); } }
5,004
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1UpdatePageCellRequest.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.V1PageCell; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * */ @ApiModel(description = "") public class V1UpdatePageCellRequest { @JsonProperty("body") private V1PageCell body = null; public V1UpdatePageCellRequest body(V1PageCell 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 V1PageCell getBody() { return body; } public void setBody(V1PageCell 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; } V1UpdatePageCellRequest v1UpdatePageCellRequest = (V1UpdatePageCellRequest) o; return Objects.equals(this.body, v1UpdatePageCellRequest.body); } @Override public int hashCode() { return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1UpdatePageCellRequest {\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 "); } }
5,005
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/GetShiftRequest.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 get a `Shift` by ID */ @ApiModel(description = "A request to get a `Shift` by ID") public class GetShiftRequest { @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 GetShiftRequest {\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 "); } }
5,006
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/Device.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 Device { @JsonProperty("id") private String id = null; @JsonProperty("name") private String name = null; public Device id(String id) { this.id = id; return this; } /** * The device's Square-issued ID. * @return id **/ @ApiModelProperty(value = "The device's Square-issued ID.") public String getId() { return id; } public void setId(String id) { this.id = id; } public Device name(String name) { this.name = name; return this; } /** * The device's merchant-specified name. * @return name **/ @ApiModelProperty(value = "The device's merchant-specified name.") 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; } Device device = (Device) o; return Objects.equals(this.id, device.id) && Objects.equals(this.name, device.name); } @Override public int hashCode() { return Objects.hash(id, name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Device {\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 "); } }
5,007
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1UpdateEmployeeRequest.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; /** * */ @ApiModel(description = "") public class V1UpdateEmployeeRequest { @JsonProperty("body") private V1Employee body = null; public V1UpdateEmployeeRequest body(V1Employee 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 V1Employee getBody() { return body; } public void setBody(V1Employee 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; } V1UpdateEmployeeRequest v1UpdateEmployeeRequest = (V1UpdateEmployeeRequest) o; return Objects.equals(this.body, v1UpdateEmployeeRequest.body); } @Override public int hashCode() { return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1UpdateEmployeeRequest {\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 "); } }
5,008
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ShiftQuery.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.ShiftFilter; import com.squareup.connect.models.ShiftSort; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * The parameters of a `Shift` search query. Includes filter and sort options. */ @ApiModel(description = "The parameters of a `Shift` search query. Includes filter and sort options.") public class ShiftQuery { @JsonProperty("filter") private ShiftFilter filter = null; @JsonProperty("sort") private ShiftSort sort = null; public ShiftQuery filter(ShiftFilter filter) { this.filter = filter; return this; } /** * Query filter options * @return filter **/ @ApiModelProperty(value = "Query filter options") public ShiftFilter getFilter() { return filter; } public void setFilter(ShiftFilter filter) { this.filter = filter; } public ShiftQuery sort(ShiftSort sort) { this.sort = sort; return this; } /** * Sort order details * @return sort **/ @ApiModelProperty(value = "Sort order details") public ShiftSort getSort() { return sort; } public void setSort(ShiftSort 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; } ShiftQuery shiftQuery = (ShiftQuery) o; return Objects.equals(this.filter, shiftQuery.filter) && Objects.equals(this.sort, shiftQuery.sort); } @Override public int hashCode() { return Objects.hash(filter, sort); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShiftQuery {\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 "); } }
5,009
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/SearchOrdersDateTimeFilter.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.TimeRange; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * Filter for `Order` objects based on whether their `CREATED_AT`, `CLOSED_AT` or `UPDATED_AT` timestamps fall within a specified time range. You can specify the time range and which timestamp to filter for. You can filter for only one time range at a time. For each time range, the start time and end time are inclusive. If the end time is absent, it defaults to the time of the first request for the cursor. __Important:__ If you use the DateTimeFilter in a SearchOrders query, you must also set the `sort_field` in [OrdersSort](#type-searchorderordersort) to the same field you filter for. For example, if you set the `CLOSED_AT` field in DateTimeFilter, you must also set the `sort_field` in SearchOrdersSort to `CLOSED_AT`. Otherwise, SearchOrders will throw an error. [Learn more about filtering orders by time range](/orders-api/manage-orders#important-note-on-filtering-orders-by-time-range). */ @ApiModel(description = "Filter for `Order` objects based on whether their `CREATED_AT`, `CLOSED_AT` or `UPDATED_AT` timestamps fall within a specified time range. You can specify the time range and which timestamp to filter for. You can filter for only one time range at a time. For each time range, the start time and end time are inclusive. If the end time is absent, it defaults to the time of the first request for the cursor. __Important:__ If you use the DateTimeFilter in a SearchOrders query, you must also set the `sort_field` in [OrdersSort](#type-searchorderordersort) to the same field you filter for. For example, if you set the `CLOSED_AT` field in DateTimeFilter, you must also set the `sort_field` in SearchOrdersSort to `CLOSED_AT`. Otherwise, SearchOrders will throw an error. [Learn more about filtering orders by time range](/orders-api/manage-orders#important-note-on-filtering-orders-by-time-range).") public class SearchOrdersDateTimeFilter { @JsonProperty("created_at") private TimeRange createdAt = null; @JsonProperty("updated_at") private TimeRange updatedAt = null; @JsonProperty("closed_at") private TimeRange closedAt = null; public SearchOrdersDateTimeFilter createdAt(TimeRange createdAt) { this.createdAt = createdAt; return this; } /** * Time range for filtering on the `created_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `CREATED_AT`. * @return createdAt **/ @ApiModelProperty(value = "Time range for filtering on the `created_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `CREATED_AT`.") public TimeRange getCreatedAt() { return createdAt; } public void setCreatedAt(TimeRange createdAt) { this.createdAt = createdAt; } public SearchOrdersDateTimeFilter updatedAt(TimeRange updatedAt) { this.updatedAt = updatedAt; return this; } /** * Time range for filtering on the `updated_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `UPDATED_AT`. * @return updatedAt **/ @ApiModelProperty(value = "Time range for filtering on the `updated_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `UPDATED_AT`.") public TimeRange getUpdatedAt() { return updatedAt; } public void setUpdatedAt(TimeRange updatedAt) { this.updatedAt = updatedAt; } public SearchOrdersDateTimeFilter closedAt(TimeRange closedAt) { this.closedAt = closedAt; return this; } /** * Time range for filtering on the `closed_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `CLOSED_AT`. * @return closedAt **/ @ApiModelProperty(value = "Time range for filtering on the `closed_at` timestamp. If you use this value, you must also set the `sort_field` in the OrdersSearchSort object to `CLOSED_AT`.") public TimeRange getClosedAt() { return closedAt; } public void setClosedAt(TimeRange closedAt) { this.closedAt = closedAt; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SearchOrdersDateTimeFilter searchOrdersDateTimeFilter = (SearchOrdersDateTimeFilter) o; return Objects.equals(this.createdAt, searchOrdersDateTimeFilter.createdAt) && Objects.equals(this.updatedAt, searchOrdersDateTimeFilter.updatedAt) && Objects.equals(this.closedAt, searchOrdersDateTimeFilter.closedAt); } @Override public int hashCode() { return Objects.hash(createdAt, updatedAt, closedAt); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchOrdersDateTimeFilter {\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" closedAt: ").append(toIndentedString(closedAt)).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 "); } }
5,010
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1DeleteTimecardResponse.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 V1DeleteTimecardResponse { @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 V1DeleteTimecardResponse {\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 "); } }
5,011
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/SearchOrdersFilter.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.SearchOrdersCustomerFilter; import com.squareup.connect.models.SearchOrdersDateTimeFilter; import com.squareup.connect.models.SearchOrdersFulfillmentFilter; import com.squareup.connect.models.SearchOrdersSourceFilter; import com.squareup.connect.models.SearchOrdersStateFilter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * Filtering criteria to use for a SearchOrders request. Multiple filters will be ANDed together. */ @ApiModel(description = "Filtering criteria to use for a SearchOrders request. Multiple filters will be ANDed together.") public class SearchOrdersFilter { @JsonProperty("state_filter") private SearchOrdersStateFilter stateFilter = null; @JsonProperty("date_time_filter") private SearchOrdersDateTimeFilter dateTimeFilter = null; @JsonProperty("fulfillment_filter") private SearchOrdersFulfillmentFilter fulfillmentFilter = null; @JsonProperty("source_filter") private SearchOrdersSourceFilter sourceFilter = null; @JsonProperty("customer_filter") private SearchOrdersCustomerFilter customerFilter = null; public SearchOrdersFilter stateFilter(SearchOrdersStateFilter stateFilter) { this.stateFilter = stateFilter; return this; } /** * Filter by ``OrderState``. * @return stateFilter **/ @ApiModelProperty(value = "Filter by ``OrderState``.") public SearchOrdersStateFilter getStateFilter() { return stateFilter; } public void setStateFilter(SearchOrdersStateFilter stateFilter) { this.stateFilter = stateFilter; } public SearchOrdersFilter dateTimeFilter(SearchOrdersDateTimeFilter dateTimeFilter) { this.dateTimeFilter = dateTimeFilter; return this; } /** * Filter for results within a time range. __Important:__ If you filter for orders by time range, you must set SearchOrdersSort to sort by the same field. [Learn more about filtering orders by time range](https://developer.squareup.com/docs/orders-api/manage-orders#important-note-on-filtering-orders-by-time-range) * @return dateTimeFilter **/ @ApiModelProperty(value = "Filter for results within a time range. __Important:__ If you filter for orders by time range, you must set SearchOrdersSort to sort by the same field. [Learn more about filtering orders by time range](https://developer.squareup.com/docs/orders-api/manage-orders#important-note-on-filtering-orders-by-time-range)") public SearchOrdersDateTimeFilter getDateTimeFilter() { return dateTimeFilter; } public void setDateTimeFilter(SearchOrdersDateTimeFilter dateTimeFilter) { this.dateTimeFilter = dateTimeFilter; } public SearchOrdersFilter fulfillmentFilter(SearchOrdersFulfillmentFilter fulfillmentFilter) { this.fulfillmentFilter = fulfillmentFilter; return this; } /** * Filter by fulfillment type or state. * @return fulfillmentFilter **/ @ApiModelProperty(value = "Filter by fulfillment type or state.") public SearchOrdersFulfillmentFilter getFulfillmentFilter() { return fulfillmentFilter; } public void setFulfillmentFilter(SearchOrdersFulfillmentFilter fulfillmentFilter) { this.fulfillmentFilter = fulfillmentFilter; } public SearchOrdersFilter sourceFilter(SearchOrdersSourceFilter sourceFilter) { this.sourceFilter = sourceFilter; return this; } /** * Filter by source of order. * @return sourceFilter **/ @ApiModelProperty(value = "Filter by source of order.") public SearchOrdersSourceFilter getSourceFilter() { return sourceFilter; } public void setSourceFilter(SearchOrdersSourceFilter sourceFilter) { this.sourceFilter = sourceFilter; } public SearchOrdersFilter customerFilter(SearchOrdersCustomerFilter customerFilter) { this.customerFilter = customerFilter; return this; } /** * Filter by customers associated with the order. * @return customerFilter **/ @ApiModelProperty(value = "Filter by customers associated with the order.") public SearchOrdersCustomerFilter getCustomerFilter() { return customerFilter; } public void setCustomerFilter(SearchOrdersCustomerFilter customerFilter) { this.customerFilter = customerFilter; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SearchOrdersFilter searchOrdersFilter = (SearchOrdersFilter) o; return Objects.equals(this.stateFilter, searchOrdersFilter.stateFilter) && Objects.equals(this.dateTimeFilter, searchOrdersFilter.dateTimeFilter) && Objects.equals(this.fulfillmentFilter, searchOrdersFilter.fulfillmentFilter) && Objects.equals(this.sourceFilter, searchOrdersFilter.sourceFilter) && Objects.equals(this.customerFilter, searchOrdersFilter.customerFilter); } @Override public int hashCode() { return Objects.hash(stateFilter, dateTimeFilter, fulfillmentFilter, sourceFilter, customerFilter); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchOrdersFilter {\n"); sb.append(" stateFilter: ").append(toIndentedString(stateFilter)).append("\n"); sb.append(" dateTimeFilter: ").append(toIndentedString(dateTimeFilter)).append("\n"); sb.append(" fulfillmentFilter: ").append(toIndentedString(fulfillmentFilter)).append("\n"); sb.append(" sourceFilter: ").append(toIndentedString(sourceFilter)).append("\n"); sb.append(" customerFilter: ").append(toIndentedString(customerFilter)).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 "); } }
5,012
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1UpdateItemRequest.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.V1Item; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * */ @ApiModel(description = "") public class V1UpdateItemRequest { @JsonProperty("body") private V1Item body = null; public V1UpdateItemRequest body(V1Item 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 V1Item getBody() { return body; } public void setBody(V1Item 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; } V1UpdateItemRequest v1UpdateItemRequest = (V1UpdateItemRequest) o; return Objects.equals(this.body, v1UpdateItemRequest.body); } @Override public int hashCode() { return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1UpdateItemRequest {\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 "); } }
5,013
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/MeasurementUnit.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.MeasurementUnitCustom; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * Represents a unit of measurement to use with a quantity, such as ounces or inches. Exactly one of the following fields are required: `custom_unit`, `area_unit`, `length_unit`, `volume_unit`, and `weight_unit`. */ @ApiModel(description = "Represents a unit of measurement to use with a quantity, such as ounces or inches. Exactly one of the following fields are required: `custom_unit`, `area_unit`, `length_unit`, `volume_unit`, and `weight_unit`.") public class MeasurementUnit { @JsonProperty("custom_unit") private MeasurementUnitCustom customUnit = null; @JsonProperty("area_unit") private String areaUnit = null; @JsonProperty("length_unit") private String lengthUnit = null; @JsonProperty("volume_unit") private String volumeUnit = null; @JsonProperty("weight_unit") private String weightUnit = null; @JsonProperty("generic_unit") private String genericUnit = null; @JsonProperty("time_unit") private String timeUnit = null; @JsonProperty("type") private String type = null; public MeasurementUnit customUnit(MeasurementUnitCustom customUnit) { this.customUnit = customUnit; return this; } /** * A custom unit of measurement defined by the seller using the Point of Sale app or ad-hoc as an order line item. * @return customUnit **/ @ApiModelProperty(value = "A custom unit of measurement defined by the seller using the Point of Sale app or ad-hoc as an order line item.") public MeasurementUnitCustom getCustomUnit() { return customUnit; } public void setCustomUnit(MeasurementUnitCustom customUnit) { this.customUnit = customUnit; } public MeasurementUnit areaUnit(String areaUnit) { this.areaUnit = areaUnit; return this; } /** * Represents a standard area unit. See [MeasurementUnitArea](#type-measurementunitarea) for possible values * @return areaUnit **/ @ApiModelProperty(value = "Represents a standard area unit. See [MeasurementUnitArea](#type-measurementunitarea) for possible values") public String getAreaUnit() { return areaUnit; } public void setAreaUnit(String areaUnit) { this.areaUnit = areaUnit; } public MeasurementUnit lengthUnit(String lengthUnit) { this.lengthUnit = lengthUnit; return this; } /** * Represents a standard length unit. See [MeasurementUnitLength](#type-measurementunitlength) for possible values * @return lengthUnit **/ @ApiModelProperty(value = "Represents a standard length unit. See [MeasurementUnitLength](#type-measurementunitlength) for possible values") public String getLengthUnit() { return lengthUnit; } public void setLengthUnit(String lengthUnit) { this.lengthUnit = lengthUnit; } public MeasurementUnit volumeUnit(String volumeUnit) { this.volumeUnit = volumeUnit; return this; } /** * Represents a standard volume unit. See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values * @return volumeUnit **/ @ApiModelProperty(value = "Represents a standard volume unit. See [MeasurementUnitVolume](#type-measurementunitvolume) for possible values") public String getVolumeUnit() { return volumeUnit; } public void setVolumeUnit(String volumeUnit) { this.volumeUnit = volumeUnit; } public MeasurementUnit weightUnit(String weightUnit) { this.weightUnit = weightUnit; return this; } /** * Represents a standard unit of weight or mass. See [MeasurementUnitWeight](#type-measurementunitweight) for possible values * @return weightUnit **/ @ApiModelProperty(value = "Represents a standard unit of weight or mass. See [MeasurementUnitWeight](#type-measurementunitweight) for possible values") public String getWeightUnit() { return weightUnit; } public void setWeightUnit(String weightUnit) { this.weightUnit = weightUnit; } public MeasurementUnit genericUnit(String genericUnit) { this.genericUnit = genericUnit; return this; } /** * Reserved for API integrations that lack the ability to specify a real measurement unit See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values * @return genericUnit **/ @ApiModelProperty(value = "Reserved for API integrations that lack the ability to specify a real measurement unit See [MeasurementUnitGeneric](#type-measurementunitgeneric) for possible values") public String getGenericUnit() { return genericUnit; } public void setGenericUnit(String genericUnit) { this.genericUnit = genericUnit; } public MeasurementUnit timeUnit(String timeUnit) { this.timeUnit = timeUnit; return this; } /** * Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values * @return timeUnit **/ @ApiModelProperty(value = "Represents a standard unit of time. See [MeasurementUnitTime](#type-measurementunittime) for possible values") public String getTimeUnit() { return timeUnit; } public void setTimeUnit(String timeUnit) { this.timeUnit = timeUnit; } public MeasurementUnit type(String type) { this.type = type; return this; } /** * Represents the type of the measurement unit. See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values * @return type **/ @ApiModelProperty(value = "Represents the type of the measurement unit. See [MeasurementUnitUnitType](#type-measurementunitunittype) for possible values") public String getType() { return type; } public void setType(String type) { this.type = type; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MeasurementUnit measurementUnit = (MeasurementUnit) o; return Objects.equals(this.customUnit, measurementUnit.customUnit) && Objects.equals(this.areaUnit, measurementUnit.areaUnit) && Objects.equals(this.lengthUnit, measurementUnit.lengthUnit) && Objects.equals(this.volumeUnit, measurementUnit.volumeUnit) && Objects.equals(this.weightUnit, measurementUnit.weightUnit) && Objects.equals(this.genericUnit, measurementUnit.genericUnit) && Objects.equals(this.timeUnit, measurementUnit.timeUnit) && Objects.equals(this.type, measurementUnit.type); } @Override public int hashCode() { return Objects.hash(customUnit, areaUnit, lengthUnit, volumeUnit, weightUnit, genericUnit, timeUnit, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MeasurementUnit {\n"); sb.append(" customUnit: ").append(toIndentedString(customUnit)).append("\n"); sb.append(" areaUnit: ").append(toIndentedString(areaUnit)).append("\n"); sb.append(" lengthUnit: ").append(toIndentedString(lengthUnit)).append("\n"); sb.append(" volumeUnit: ").append(toIndentedString(volumeUnit)).append("\n"); sb.append(" weightUnit: ").append(toIndentedString(weightUnit)).append("\n"); sb.append(" genericUnit: ").append(toIndentedString(genericUnit)).append("\n"); sb.append(" timeUnit: ").append(toIndentedString(timeUnit)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).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 "); } }
5,014
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/OrderLineItemDiscount.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; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Represents a discount that applies to one or more line items in an order. Fixed-amount, order-scoped discounts are distributed across all non-zero line item totals. The amount distributed to each line item is relative to the amount contributed by the item to the order subtotal. */ @ApiModel(description = "Represents a discount that applies to one or more line items in an order. Fixed-amount, order-scoped discounts are distributed across all non-zero line item totals. The amount distributed to each line item is relative to the amount contributed by the item to the order subtotal.") public class OrderLineItemDiscount { @JsonProperty("uid") private String uid = 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("amount_money") private Money amountMoney = null; @JsonProperty("applied_money") private Money appliedMoney = null; @JsonProperty("metadata") private Map<String, String> metadata = new HashMap<String, String>(); @JsonProperty("scope") private String scope = null; public OrderLineItemDiscount uid(String uid) { this.uid = uid; return this; } /** * Unique ID that identifies the discount only within this order. * Note: This model is in beta. * @return uid **/ @ApiModelProperty(value = "Unique ID that identifies the discount only within this order.") public String getUid() { return uid; } public void setUid(String uid) { this.uid = uid; } public OrderLineItemDiscount catalogObjectId(String catalogObjectId) { this.catalogObjectId = catalogObjectId; return this; } /** * The catalog object id referencing `CatalogDiscount`. * @return catalogObjectId **/ @ApiModelProperty(value = "The catalog object id referencing `CatalogDiscount`.") public String getCatalogObjectId() { return catalogObjectId; } public void setCatalogObjectId(String catalogObjectId) { this.catalogObjectId = catalogObjectId; } public OrderLineItemDiscount name(String name) { this.name = name; return this; } /** * The discount's name. * @return name **/ @ApiModelProperty(value = "The discount's name.") public String getName() { return name; } public void setName(String name) { this.name = name; } public OrderLineItemDiscount type(String type) { this.type = type; return this; } /** * The type of the discount. Discounts that don't reference a catalog object ID must have a type of `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. See [OrderLineItemDiscountType](#type-orderlineitemdiscounttype) for possible values * @return type **/ @ApiModelProperty(value = "The type of the discount. Discounts that don't reference a catalog object ID must have a type of `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. See [OrderLineItemDiscountType](#type-orderlineitemdiscounttype) for possible values") public String getType() { return type; } public void setType(String type) { this.type = type; } public OrderLineItemDiscount percentage(String percentage) { this.percentage = percentage; return this; } /** * The percentage of the discount, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. `percentage` is not set for amount-based discounts. * @return percentage **/ @ApiModelProperty(value = "The percentage of the discount, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. `percentage` is not set for amount-based discounts.") public String getPercentage() { return percentage; } public void setPercentage(String percentage) { this.percentage = percentage; } public OrderLineItemDiscount amountMoney(Money amountMoney) { this.amountMoney = amountMoney; return this; } /** * The total declared monetary amount of the discount. `amount_money` is not set for percentage-based discounts. * @return amountMoney **/ @ApiModelProperty(value = "The total declared monetary amount of the discount. `amount_money` is not set for percentage-based discounts.") public Money getAmountMoney() { return amountMoney; } public void setAmountMoney(Money amountMoney) { this.amountMoney = amountMoney; } public OrderLineItemDiscount appliedMoney(Money appliedMoney) { this.appliedMoney = appliedMoney; return this; } /** * The amount of discount actually applied to the line item. Represents the amount of money applied as a line item-scoped discount. When an amount-based discount is scoped to the entire order, the value of `applied_money` is different from `amount_money` because the total amount of the discount is distributed across all line items. * @return appliedMoney **/ @ApiModelProperty(value = "The amount of discount actually applied to the line item. Represents the amount of money applied as a line item-scoped discount. When an amount-based discount is scoped to the entire order, the value of `applied_money` is different from `amount_money` because the total amount of the discount is distributed across all line items.") public Money getAppliedMoney() { return appliedMoney; } public void setAppliedMoney(Money appliedMoney) { this.appliedMoney = appliedMoney; } public OrderLineItemDiscount metadata(Map<String, String> metadata) { this.metadata = metadata; return this; } public OrderLineItemDiscount putMetadataItem(String key, String metadataItem) { this.metadata.put(key, metadataItem); return this; } /** * Application-defined data attached to this discount. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. * Note: This model is in beta. * @return metadata **/ @ApiModelProperty(value = "Application-defined data attached to this discount. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information.") public Map<String, String> getMetadata() { return metadata; } public void setMetadata(Map<String, String> metadata) { this.metadata = metadata; } public OrderLineItemDiscount scope(String scope) { this.scope = scope; return this; } /** * Indicates the level at which the discount applies. For `ORDER` scoped discounts, Square generates references in `applied_discounts` on all order line items that do not have them. For `LINE_ITEM` scoped discounts, the discount only applies to line items with a discount reference in their `applied_discounts` field. This field is immutable. To change the scope of a discount you must delete the discount and re-add it as a new discount. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) for possible values * @return scope **/ @ApiModelProperty(value = "Indicates the level at which the discount applies. For `ORDER` scoped discounts, Square generates references in `applied_discounts` on all order line items that do not have them. For `LINE_ITEM` scoped discounts, the discount only applies to line items with a discount reference in their `applied_discounts` field. This field is immutable. To change the scope of a discount you must delete the discount and re-add it as a new discount. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) 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; } OrderLineItemDiscount orderLineItemDiscount = (OrderLineItemDiscount) o; return Objects.equals(this.uid, orderLineItemDiscount.uid) && Objects.equals(this.catalogObjectId, orderLineItemDiscount.catalogObjectId) && Objects.equals(this.name, orderLineItemDiscount.name) && Objects.equals(this.type, orderLineItemDiscount.type) && Objects.equals(this.percentage, orderLineItemDiscount.percentage) && Objects.equals(this.amountMoney, orderLineItemDiscount.amountMoney) && Objects.equals(this.appliedMoney, orderLineItemDiscount.appliedMoney) && Objects.equals(this.metadata, orderLineItemDiscount.metadata) && Objects.equals(this.scope, orderLineItemDiscount.scope); } @Override public int hashCode() { return Objects.hash(uid, catalogObjectId, name, type, percentage, amountMoney, appliedMoney, metadata, scope); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderLineItemDiscount {\n"); sb.append(" uid: ").append(toIndentedString(uid)).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(" amountMoney: ").append(toIndentedString(amountMoney)).append("\n"); sb.append(" appliedMoney: ").append(toIndentedString(appliedMoney)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).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 "); } }
5,015
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1UpdateDiscountRequest.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.V1Discount; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * */ @ApiModel(description = "") public class V1UpdateDiscountRequest { @JsonProperty("body") private V1Discount body = null; public V1UpdateDiscountRequest body(V1Discount 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 V1Discount getBody() { return body; } public void setBody(V1Discount 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; } V1UpdateDiscountRequest v1UpdateDiscountRequest = (V1UpdateDiscountRequest) o; return Objects.equals(this.body, v1UpdateDiscountRequest.body); } @Override public int hashCode() { return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1UpdateDiscountRequest {\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 "); } }
5,016
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogImage.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; /** * An image file to use in Square catalogs. Can be associated with catalog items, item variations, and categories. */ @ApiModel(description = "An image file to use in Square catalogs. Can be associated with catalog items, item variations, and categories.") public class CatalogImage { @JsonProperty("name") private String name = null; @JsonProperty("url") private String url = null; @JsonProperty("caption") private String caption = null; public CatalogImage name(String name) { this.name = name; return this; } /** * The internal name of this image. Identifies this image in calls to the Connect APIs. * @return name **/ @ApiModelProperty(value = "The internal name of this image. Identifies this image in calls to the Connect APIs.") public String getName() { return name; } public void setName(String name) { this.name = name; } public CatalogImage url(String url) { this.url = url; return this; } /** * The URL of this image. Generated by Square after an image is uploaded to the CreateCatalogImage endpoint. * @return url **/ @ApiModelProperty(value = "The URL of this image. Generated by Square after an image is uploaded to the CreateCatalogImage endpoint.") public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public CatalogImage caption(String caption) { this.caption = caption; return this; } /** * A caption that describes what is shown in the image. Displayed in the Square Online Store. * @return caption **/ @ApiModelProperty(value = "A caption that describes what is shown in the image. Displayed in the Square Online Store.") public String getCaption() { return caption; } public void setCaption(String caption) { this.caption = caption; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CatalogImage catalogImage = (CatalogImage) o; return Objects.equals(this.name, catalogImage.name) && Objects.equals(this.url, catalogImage.url) && Objects.equals(this.caption, catalogImage.caption); } @Override public int hashCode() { return Objects.hash(name, url, caption); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogImage {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" caption: ").append(toIndentedString(caption)).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 "); } }
5,017
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ItemVariationLocationOverrides.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; /** * Price and inventory alerting overrides for a &#x60;CatalogItemVariation&#x60; at a specific &#x60;Location&#x60;. */ @ApiModel(description = "Price and inventory alerting overrides for a `CatalogItemVariation` at a specific `Location`.") public class ItemVariationLocationOverrides { @JsonProperty("location_id") private String locationId = null; @JsonProperty("price_money") private Money priceMoney = null; @JsonProperty("pricing_type") private String pricingType = null; @JsonProperty("track_inventory") private Boolean trackInventory = null; @JsonProperty("inventory_alert_type") private String inventoryAlertType = null; @JsonProperty("inventory_alert_threshold") private Long inventoryAlertThreshold = null; public ItemVariationLocationOverrides locationId(String locationId) { this.locationId = locationId; return this; } /** * The ID of the `Location`. * @return locationId **/ @ApiModelProperty(value = "The ID of the `Location`.") public String getLocationId() { return locationId; } public void setLocationId(String locationId) { this.locationId = locationId; } public ItemVariationLocationOverrides priceMoney(Money priceMoney) { this.priceMoney = priceMoney; return this; } /** * The price of the `CatalogItemVariation` at the given `Location`, or blank for variable pricing. * @return priceMoney **/ @ApiModelProperty(value = "The price of the `CatalogItemVariation` at the given `Location`, or blank for variable pricing.") public Money getPriceMoney() { return priceMoney; } public void setPriceMoney(Money priceMoney) { this.priceMoney = priceMoney; } public ItemVariationLocationOverrides pricingType(String pricingType) { this.pricingType = pricingType; return this; } /** * The pricing type (fixed or variable) for the `CatalogItemVariation` at the given `Location`. See [CatalogPricingType](#type-catalogpricingtype) for possible values * @return pricingType **/ @ApiModelProperty(value = "The pricing type (fixed or variable) for the `CatalogItemVariation` at the given `Location`. See [CatalogPricingType](#type-catalogpricingtype) for possible values") public String getPricingType() { return pricingType; } public void setPricingType(String pricingType) { this.pricingType = pricingType; } public ItemVariationLocationOverrides trackInventory(Boolean trackInventory) { this.trackInventory = trackInventory; return this; } /** * If `true`, inventory tracking is active for the `CatalogItemVariation` at this `Location`. * @return trackInventory **/ @ApiModelProperty(value = "If `true`, inventory tracking is active for the `CatalogItemVariation` at this `Location`.") public Boolean getTrackInventory() { return trackInventory; } public void setTrackInventory(Boolean trackInventory) { this.trackInventory = trackInventory; } public ItemVariationLocationOverrides inventoryAlertType(String inventoryAlertType) { this.inventoryAlertType = inventoryAlertType; return this; } /** * Indicates whether the `CatalogItemVariation` displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. See [InventoryAlertType](#type-inventoryalerttype) for possible values * @return inventoryAlertType **/ @ApiModelProperty(value = "Indicates whether the `CatalogItemVariation` displays an alert when its inventory quantity is less than or equal to its `inventory_alert_threshold`. See [InventoryAlertType](#type-inventoryalerttype) for possible values") public String getInventoryAlertType() { return inventoryAlertType; } public void setInventoryAlertType(String inventoryAlertType) { this.inventoryAlertType = inventoryAlertType; } public ItemVariationLocationOverrides inventoryAlertThreshold(Long inventoryAlertThreshold) { this.inventoryAlertThreshold = inventoryAlertThreshold; return this; } /** * If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. * @return inventoryAlertThreshold **/ @ApiModelProperty(value = "If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer.") public Long getInventoryAlertThreshold() { return inventoryAlertThreshold; } public void setInventoryAlertThreshold(Long inventoryAlertThreshold) { this.inventoryAlertThreshold = inventoryAlertThreshold; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ItemVariationLocationOverrides itemVariationLocationOverrides = (ItemVariationLocationOverrides) o; return Objects.equals(this.locationId, itemVariationLocationOverrides.locationId) && Objects.equals(this.priceMoney, itemVariationLocationOverrides.priceMoney) && Objects.equals(this.pricingType, itemVariationLocationOverrides.pricingType) && Objects.equals(this.trackInventory, itemVariationLocationOverrides.trackInventory) && Objects.equals(this.inventoryAlertType, itemVariationLocationOverrides.inventoryAlertType) && Objects.equals(this.inventoryAlertThreshold, itemVariationLocationOverrides.inventoryAlertThreshold); } @Override public int hashCode() { return Objects.hash(locationId, priceMoney, pricingType, trackInventory, inventoryAlertType, inventoryAlertThreshold); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ItemVariationLocationOverrides {\n"); sb.append(" locationId: ").append(toIndentedString(locationId)).append("\n"); sb.append(" priceMoney: ").append(toIndentedString(priceMoney)).append("\n"); sb.append(" pricingType: ").append(toIndentedString(pricingType)).append("\n"); sb.append(" trackInventory: ").append(toIndentedString(trackInventory)).append("\n"); sb.append(" inventoryAlertType: ").append(toIndentedString(inventoryAlertType)).append("\n"); sb.append(" inventoryAlertThreshold: ").append(toIndentedString(inventoryAlertThreshold)).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 "); } }
5,018
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ModifierOption.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; /** * V1ModifierOption */ @ApiModel(description = "V1ModifierOption") public class V1ModifierOption { @JsonProperty("id") private String id = null; @JsonProperty("name") private String name = null; @JsonProperty("price_money") private V1Money priceMoney = null; @JsonProperty("on_by_default") private Boolean onByDefault = null; @JsonProperty("ordinal") private Integer ordinal = null; @JsonProperty("modifier_list_id") private String modifierListId = null; @JsonProperty("v2_id") private String v2Id = null; public V1ModifierOption id(String id) { this.id = id; return this; } /** * The modifier option's unique ID. * @return id **/ @ApiModelProperty(value = "The modifier option's unique ID.") public String getId() { return id; } public void setId(String id) { this.id = id; } public V1ModifierOption name(String name) { this.name = name; return this; } /** * The modifier option's name. * @return name **/ @ApiModelProperty(value = "The modifier option's name.") public String getName() { return name; } public void setName(String name) { this.name = name; } public V1ModifierOption priceMoney(V1Money priceMoney) { this.priceMoney = priceMoney; return this; } /** * The modifier option's price. * @return priceMoney **/ @ApiModelProperty(value = "The modifier option's price.") public V1Money getPriceMoney() { return priceMoney; } public void setPriceMoney(V1Money priceMoney) { this.priceMoney = priceMoney; } public V1ModifierOption onByDefault(Boolean onByDefault) { this.onByDefault = onByDefault; return this; } /** * If true, the modifier option is the default option in a modifier list for which selection_type is SINGLE. * @return onByDefault **/ @ApiModelProperty(value = "If true, the modifier option is the default option in a modifier list for which selection_type is SINGLE.") public Boolean getOnByDefault() { return onByDefault; } public void setOnByDefault(Boolean onByDefault) { this.onByDefault = onByDefault; } public V1ModifierOption ordinal(Integer ordinal) { this.ordinal = ordinal; return this; } /** * Indicates the modifier option's list position when displayed in Square Point of Sale and the merchant dashboard. If more than one modifier option in the same modifier list has the same ordinal value, those options are displayed in alphabetical order. * @return ordinal **/ @ApiModelProperty(value = "Indicates the modifier option's list position when displayed in Square Point of Sale and the merchant dashboard. If more than one modifier option in the same modifier list has the same ordinal value, those options are displayed in alphabetical order.") public Integer getOrdinal() { return ordinal; } public void setOrdinal(Integer ordinal) { this.ordinal = ordinal; } public V1ModifierOption modifierListId(String modifierListId) { this.modifierListId = modifierListId; return this; } /** * The ID of the modifier list the option belongs to. * @return modifierListId **/ @ApiModelProperty(value = "The ID of the modifier list the option belongs to.") public String getModifierListId() { return modifierListId; } public void setModifierListId(String modifierListId) { this.modifierListId = modifierListId; } public V1ModifierOption 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; } V1ModifierOption v1ModifierOption = (V1ModifierOption) o; return Objects.equals(this.id, v1ModifierOption.id) && Objects.equals(this.name, v1ModifierOption.name) && Objects.equals(this.priceMoney, v1ModifierOption.priceMoney) && Objects.equals(this.onByDefault, v1ModifierOption.onByDefault) && Objects.equals(this.ordinal, v1ModifierOption.ordinal) && Objects.equals(this.modifierListId, v1ModifierOption.modifierListId) && Objects.equals(this.v2Id, v1ModifierOption.v2Id); } @Override public int hashCode() { return Objects.hash(id, name, priceMoney, onByDefault, ordinal, modifierListId, v2Id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ModifierOption {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" priceMoney: ").append(toIndentedString(priceMoney)).append("\n"); sb.append(" onByDefault: ").append(toIndentedString(onByDefault)).append("\n"); sb.append(" ordinal: ").append(toIndentedString(ordinal)).append("\n"); sb.append(" modifierListId: ").append(toIndentedString(modifierListId)).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 "); } }
5,019
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/Merchant.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 Square seller. */ @ApiModel(description = "Represents a Square seller.") public class Merchant { @JsonProperty("id") private String id = null; @JsonProperty("business_name") private String businessName = null; @JsonProperty("country") private String country = null; @JsonProperty("language_code") private String languageCode = null; @JsonProperty("currency") private String currency = null; @JsonProperty("status") private String status = null; public Merchant id(String id) { this.id = id; return this; } /** * The Square-issued ID of the merchant. * @return id **/ @ApiModelProperty(value = "The Square-issued ID of the merchant.") public String getId() { return id; } public void setId(String id) { this.id = id; } public Merchant businessName(String businessName) { this.businessName = businessName; return this; } /** * The business name of the merchant. * @return businessName **/ @ApiModelProperty(value = "The business name of the merchant.") public String getBusinessName() { return businessName; } public void setBusinessName(String businessName) { this.businessName = businessName; } public Merchant country(String country) { this.country = country; return this; } /** * The country code associated with the merchant account, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values * @return country **/ @ApiModelProperty(required = true, value = "The country code associated with the merchant account, 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 Merchant languageCode(String languageCode) { this.languageCode = languageCode; return this; } /** * The language code associated with the merchant account, in BCP 47 format. * @return languageCode **/ @ApiModelProperty(value = "The language code associated with the merchant account, in BCP 47 format.") public String getLanguageCode() { return languageCode; } public void setLanguageCode(String languageCode) { this.languageCode = languageCode; } public Merchant currency(String currency) { this.currency = currency; return this; } /** * The currency associated with the merchant account, in ISO 4217 format. See [Currency](#type-currency) for possible values * @return currency **/ @ApiModelProperty(value = "The currency associated with the merchant account, in ISO 4217 format. See [Currency](#type-currency) for possible values") public String getCurrency() { return currency; } public void setCurrency(String currency) { this.currency = currency; } public Merchant status(String status) { this.status = status; return this; } /** * The merchant status, active or inactive. See [MerchantStatus](#type-merchantstatus) for possible values * @return status **/ @ApiModelProperty(value = "The merchant status, active or inactive. See [MerchantStatus](#type-merchantstatus) for possible values") public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Merchant merchant = (Merchant) o; return Objects.equals(this.id, merchant.id) && Objects.equals(this.businessName, merchant.businessName) && Objects.equals(this.country, merchant.country) && Objects.equals(this.languageCode, merchant.languageCode) && Objects.equals(this.currency, merchant.currency) && Objects.equals(this.status, merchant.status); } @Override public int hashCode() { return Objects.hash(id, businessName, country, languageCode, currency, status); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Merchant {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" businessName: ").append(toIndentedString(businessName)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).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 "); } }
5,020
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListPaymentRefundsResponse.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 [ListPaymentRefunds](#endpoint-refunds-listpaymentrefunds) endpoint. One of &#x60;errors&#x60; or &#x60;refunds&#x60; 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 [ListPaymentRefunds](#endpoint-refunds-listpaymentrefunds) endpoint. One of `errors` or `refunds` is present in a given response (never both).") public class ListPaymentRefundsResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); @JsonProperty("refunds") private List<PaymentRefund> refunds = new ArrayList<PaymentRefund>(); @JsonProperty("cursor") private String cursor = null; public ListPaymentRefundsResponse errors(List<Error> errors) { this.errors = errors; return this; } public ListPaymentRefundsResponse 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 ListPaymentRefundsResponse refunds(List<PaymentRefund> refunds) { this.refunds = refunds; return this; } public ListPaymentRefundsResponse addRefundsItem(PaymentRefund refundsItem) { this.refunds.add(refundsItem); return this; } /** * The list of requested refunds. * @return refunds **/ @ApiModelProperty(value = "The list of requested refunds.") public List<PaymentRefund> getRefunds() { return refunds; } public void setRefunds(List<PaymentRefund> refunds) { this.refunds = refunds; } public ListPaymentRefundsResponse cursor(String cursor) { this.cursor = cursor; return this; } /** * The pagination cursor to be used in a subsequent request. If empty, 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 empty, 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; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ListPaymentRefundsResponse listPaymentRefundsResponse = (ListPaymentRefundsResponse) o; return Objects.equals(this.errors, listPaymentRefundsResponse.errors) && Objects.equals(this.refunds, listPaymentRefundsResponse.refunds) && Objects.equals(this.cursor, listPaymentRefundsResponse.cursor); } @Override public int hashCode() { return Objects.hash(errors, refunds, cursor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListPaymentRefundsResponse {\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 "); } }
5,021
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogDiscount.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; /** * A discount in the Catalog object model. */ @ApiModel(description = "A discount in the Catalog object model.") public class CatalogDiscount { @JsonProperty("name") private String name = null; @JsonProperty("discount_type") private String discountType = null; @JsonProperty("percentage") private String percentage = null; @JsonProperty("amount_money") private Money amountMoney = null; @JsonProperty("pin_required") private Boolean pinRequired = null; @JsonProperty("label_color") private String labelColor = null; @JsonProperty("modify_tax_basis") private String modifyTaxBasis = null; public CatalogDiscount name(String name) { this.name = name; return this; } /** * The discount name. Searchable. This field has max length of 255 Unicode code points. * @return name **/ @ApiModelProperty(value = "The discount name. Searchable. This field has max length of 255 Unicode code points.") public String getName() { return name; } public void setName(String name) { this.name = name; } public CatalogDiscount discountType(String discountType) { this.discountType = discountType; return this; } /** * Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale. See [CatalogDiscountType](#type-catalogdiscounttype) for possible values * @return discountType **/ @ApiModelProperty(value = "Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale. See [CatalogDiscountType](#type-catalogdiscounttype) for possible values") public String getDiscountType() { return discountType; } public void setDiscountType(String discountType) { this.discountType = discountType; } public CatalogDiscount percentage(String percentage) { this.percentage = percentage; return this; } /** * The percentage of the discount as a string representation of a decimal number, using a `.` as the decimal separator and without a `%` sign. A value of `7.5` corresponds to `7.5%`. Specify a percentage of `0` if `discount_type` is `VARIABLE_PERCENTAGE`. Do not include this field for amount-based or variable discounts. * @return percentage **/ @ApiModelProperty(value = "The percentage of the discount as a string representation of a decimal number, using a `.` as the decimal separator and without a `%` sign. A value of `7.5` corresponds to `7.5%`. Specify a percentage of `0` if `discount_type` is `VARIABLE_PERCENTAGE`. Do not include this field for amount-based or variable discounts.") public String getPercentage() { return percentage; } public void setPercentage(String percentage) { this.percentage = percentage; } public CatalogDiscount amountMoney(Money amountMoney) { this.amountMoney = amountMoney; return this; } /** * The amount of the discount. Specify an amount of `0` if `discount_type` is `VARIABLE_AMOUNT`. Do not include this field for percentage-based or variable discounts. * @return amountMoney **/ @ApiModelProperty(value = "The amount of the discount. Specify an amount of `0` if `discount_type` is `VARIABLE_AMOUNT`. Do not include this field for percentage-based or variable discounts.") public Money getAmountMoney() { return amountMoney; } public void setAmountMoney(Money amountMoney) { this.amountMoney = amountMoney; } public CatalogDiscount pinRequired(Boolean pinRequired) { this.pinRequired = pinRequired; return this; } /** * Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment in the Square Point of Sale app. * @return pinRequired **/ @ApiModelProperty(value = "Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment in the Square Point of Sale app.") public Boolean getPinRequired() { return pinRequired; } public void setPinRequired(Boolean pinRequired) { this.pinRequired = pinRequired; } public CatalogDiscount labelColor(String labelColor) { this.labelColor = labelColor; return this; } /** * The color of the discount display label in the Square Point of Sale app. This must be a valid hex color code. * @return labelColor **/ @ApiModelProperty(value = "The color of the discount display label in the Square Point of Sale app. This must be a valid hex color code.") public String getLabelColor() { return labelColor; } public void setLabelColor(String labelColor) { this.labelColor = labelColor; } public CatalogDiscount modifyTaxBasis(String modifyTaxBasis) { this.modifyTaxBasis = modifyTaxBasis; return this; } /** * Indicates whether this discount should reduce the price used to calculate tax. Most discounts should use `MODIFY_TAX_BASIS`. However, in some circumstances taxes must be calculated based on an item's price, ignoring a particular discount. For example, in many US jurisdictions, a manufacturer coupon or instant rebate reduces the price a customer pays but does not reduce the sale price used to calculate how much sales tax is due. In this case, the discount representing that manufacturer coupon should have `DO_NOT_MODIFY_TAX_BASIS` for this field. If you are unsure whether you need to use this field, consult your tax professional. See [CatalogDiscountModifyTaxBasis](#type-catalogdiscountmodifytaxbasis) for possible values * @return modifyTaxBasis **/ @ApiModelProperty(value = "Indicates whether this discount should reduce the price used to calculate tax. Most discounts should use `MODIFY_TAX_BASIS`. However, in some circumstances taxes must be calculated based on an item's price, ignoring a particular discount. For example, in many US jurisdictions, a manufacturer coupon or instant rebate reduces the price a customer pays but does not reduce the sale price used to calculate how much sales tax is due. In this case, the discount representing that manufacturer coupon should have `DO_NOT_MODIFY_TAX_BASIS` for this field. If you are unsure whether you need to use this field, consult your tax professional. See [CatalogDiscountModifyTaxBasis](#type-catalogdiscountmodifytaxbasis) for possible values") public String getModifyTaxBasis() { return modifyTaxBasis; } public void setModifyTaxBasis(String modifyTaxBasis) { this.modifyTaxBasis = modifyTaxBasis; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CatalogDiscount catalogDiscount = (CatalogDiscount) o; return Objects.equals(this.name, catalogDiscount.name) && Objects.equals(this.discountType, catalogDiscount.discountType) && Objects.equals(this.percentage, catalogDiscount.percentage) && Objects.equals(this.amountMoney, catalogDiscount.amountMoney) && Objects.equals(this.pinRequired, catalogDiscount.pinRequired) && Objects.equals(this.labelColor, catalogDiscount.labelColor) && Objects.equals(this.modifyTaxBasis, catalogDiscount.modifyTaxBasis); } @Override public int hashCode() { return Objects.hash(name, discountType, percentage, amountMoney, pinRequired, labelColor, modifyTaxBasis); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogDiscount {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" discountType: ").append(toIndentedString(discountType)).append("\n"); sb.append(" percentage: ").append(toIndentedString(percentage)).append("\n"); sb.append(" amountMoney: ").append(toIndentedString(amountMoney)).append("\n"); sb.append(" pinRequired: ").append(toIndentedString(pinRequired)).append("\n"); sb.append(" labelColor: ").append(toIndentedString(labelColor)).append("\n"); sb.append(" modifyTaxBasis: ").append(toIndentedString(modifyTaxBasis)).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 "); } }
5,022
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/VoidTransactionRequest.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 VoidTransactionRequest { @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 VoidTransactionRequest {\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 "); } }
5,023
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/MeasurementUnitCustom.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; /** * The information needed to define a custom unit, provided by the seller. */ @ApiModel(description = "The information needed to define a custom unit, provided by the seller.") public class MeasurementUnitCustom { @JsonProperty("name") private String name = null; @JsonProperty("abbreviation") private String abbreviation = null; public MeasurementUnitCustom name(String name) { this.name = name; return this; } /** * The name of the custom unit, for example \"bushel\". * @return name **/ @ApiModelProperty(required = true, value = "The name of the custom unit, for example \"bushel\".") public String getName() { return name; } public void setName(String name) { this.name = name; } public MeasurementUnitCustom abbreviation(String abbreviation) { this.abbreviation = abbreviation; return this; } /** * The abbreviation of the custom unit, such as \"bsh\" (bushel). This appears in the cart for the Point of Sale app, and in reports. * @return abbreviation **/ @ApiModelProperty(required = true, value = "The abbreviation of the custom unit, such as \"bsh\" (bushel). This appears in the cart for the Point of Sale app, and in reports.") public String getAbbreviation() { return abbreviation; } public void setAbbreviation(String abbreviation) { this.abbreviation = abbreviation; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MeasurementUnitCustom measurementUnitCustom = (MeasurementUnitCustom) o; return Objects.equals(this.name, measurementUnitCustom.name) && Objects.equals(this.abbreviation, measurementUnitCustom.abbreviation); } @Override public int hashCode() { return Objects.hash(name, abbreviation); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MeasurementUnitCustom {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" abbreviation: ").append(toIndentedString(abbreviation)).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 "); } }
5,024
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListModifierListsRequest.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 V1ListModifierListsRequest { @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 V1ListModifierListsRequest {\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 "); } }
5,025
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/DeleteCustomerResponse.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 DeleteCustomer endpoint. */ @ApiModel(description = "Defines the fields that are included in the response body of a request to the DeleteCustomer endpoint.") public class DeleteCustomerResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); public DeleteCustomerResponse errors(List<Error> errors) { this.errors = errors; return this; } public DeleteCustomerResponse 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; } DeleteCustomerResponse deleteCustomerResponse = (DeleteCustomerResponse) o; return Objects.equals(this.errors, deleteCustomerResponse.errors); } @Override public int hashCode() { return Objects.hash(errors); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteCustomerResponse {\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 "); } }
5,026
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1PaymentItemDetail.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; /** * V1PaymentItemDetail */ @ApiModel(description = "V1PaymentItemDetail") public class V1PaymentItemDetail { @JsonProperty("category_name") private String categoryName = null; @JsonProperty("sku") private String sku = null; @JsonProperty("item_id") private String itemId = null; @JsonProperty("item_variation_id") private String itemVariationId = null; public V1PaymentItemDetail categoryName(String categoryName) { this.categoryName = categoryName; return this; } /** * The name of the item's merchant-defined category, if any. * @return categoryName **/ @ApiModelProperty(value = "The name of the item's merchant-defined category, if any.") public String getCategoryName() { return categoryName; } public void setCategoryName(String categoryName) { this.categoryName = categoryName; } public V1PaymentItemDetail sku(String sku) { this.sku = sku; return this; } /** * The item's merchant-defined SKU, if any. * @return sku **/ @ApiModelProperty(value = " The item's merchant-defined SKU, if any.") public String getSku() { return sku; } public void setSku(String sku) { this.sku = sku; } public V1PaymentItemDetail itemId(String itemId) { this.itemId = itemId; return this; } /** * The unique ID of the item purchased, if any. * @return itemId **/ @ApiModelProperty(value = "The unique ID of the item purchased, if any.") public String getItemId() { return itemId; } public void setItemId(String itemId) { this.itemId = itemId; } public V1PaymentItemDetail itemVariationId(String itemVariationId) { this.itemVariationId = itemVariationId; return this; } /** * The unique ID of the item variation purchased, if any. * @return itemVariationId **/ @ApiModelProperty(value = "The unique ID of the item variation purchased, if any.") public String getItemVariationId() { return itemVariationId; } public void setItemVariationId(String itemVariationId) { this.itemVariationId = itemVariationId; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } V1PaymentItemDetail v1PaymentItemDetail = (V1PaymentItemDetail) o; return Objects.equals(this.categoryName, v1PaymentItemDetail.categoryName) && Objects.equals(this.sku, v1PaymentItemDetail.sku) && Objects.equals(this.itemId, v1PaymentItemDetail.itemId) && Objects.equals(this.itemVariationId, v1PaymentItemDetail.itemVariationId); } @Override public int hashCode() { return Objects.hash(categoryName, sku, itemId, itemVariationId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PaymentItemDetail {\n"); sb.append(" categoryName: ").append(toIndentedString(categoryName)).append("\n"); sb.append(" sku: ").append(toIndentedString(sku)).append("\n"); sb.append(" itemId: ").append(toIndentedString(itemId)).append("\n"); sb.append(" itemVariationId: ").append(toIndentedString(itemVariationId)).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 "); } }
5,027
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ChargeResponse.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 [Charge](#endpoint-charge) endpoint. One of &#x60;errors&#x60; or &#x60;transaction&#x60; 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 [Charge](#endpoint-charge) endpoint. One of `errors` or `transaction` is present in a given response (never both).") public class ChargeResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); @JsonProperty("transaction") private Transaction transaction = null; public ChargeResponse errors(List<Error> errors) { this.errors = errors; return this; } public ChargeResponse 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 ChargeResponse transaction(Transaction transaction) { this.transaction = transaction; return this; } /** * The created transaction. * @return transaction **/ @ApiModelProperty(value = "The created transaction.") public Transaction getTransaction() { return transaction; } public void setTransaction(Transaction transaction) { this.transaction = transaction; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ChargeResponse chargeResponse = (ChargeResponse) o; return Objects.equals(this.errors, chargeResponse.errors) && Objects.equals(this.transaction, chargeResponse.transaction); } @Override public int hashCode() { return Objects.hash(errors, transaction); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChargeResponse {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append(" transaction: ").append(toIndentedString(transaction)).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 "); } }
5,028
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1CreateFeeRequest.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 V1CreateFeeRequest { @JsonProperty("body") private V1Fee body = null; public V1CreateFeeRequest 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(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; } V1CreateFeeRequest v1CreateFeeRequest = (V1CreateFeeRequest) o; return Objects.equals(this.body, v1CreateFeeRequest.body); } @Override public int hashCode() { return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CreateFeeRequest {\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 "); } }
5,029
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/WorkweekConfig.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; /** * Sets the Day of the week and hour of the day that a business starts a work week. Used for the calculation of overtime pay. */ @ApiModel(description = "Sets the Day of the week and hour of the day that a business starts a work week. Used for the calculation of overtime pay.") public class WorkweekConfig { @JsonProperty("id") private String id = null; @JsonProperty("start_of_week") private String startOfWeek = null; @JsonProperty("start_of_day_local_time") private String startOfDayLocalTime = null; @JsonProperty("version") private Integer version = null; @JsonProperty("created_at") private String createdAt = null; @JsonProperty("updated_at") private String updatedAt = null; public WorkweekConfig 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 WorkweekConfig startOfWeek(String startOfWeek) { this.startOfWeek = startOfWeek; return this; } /** * The day of the week on which a business week cuts over for compensation purposes. See [Weekday](#type-weekday) for possible values * @return startOfWeek **/ @ApiModelProperty(required = true, value = "The day of the week on which a business week cuts over for compensation purposes. See [Weekday](#type-weekday) for possible values") public String getStartOfWeek() { return startOfWeek; } public void setStartOfWeek(String startOfWeek) { this.startOfWeek = startOfWeek; } public WorkweekConfig startOfDayLocalTime(String startOfDayLocalTime) { this.startOfDayLocalTime = startOfDayLocalTime; return this; } /** * The local time at which a business week cuts over. Represented as a string in `HH:MM` format (`HH:MM:SS` is also accepted, but seconds are truncated). * @return startOfDayLocalTime **/ @ApiModelProperty(required = true, value = "The local time at which a business week cuts over. Represented as a string in `HH:MM` format (`HH:MM:SS` is also accepted, but seconds are truncated).") public String getStartOfDayLocalTime() { return startOfDayLocalTime; } public void setStartOfDayLocalTime(String startOfDayLocalTime) { this.startOfDayLocalTime = startOfDayLocalTime; } public WorkweekConfig 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 WorkweekConfig 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 WorkweekConfig 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; } WorkweekConfig workweekConfig = (WorkweekConfig) o; return Objects.equals(this.id, workweekConfig.id) && Objects.equals(this.startOfWeek, workweekConfig.startOfWeek) && Objects.equals(this.startOfDayLocalTime, workweekConfig.startOfDayLocalTime) && Objects.equals(this.version, workweekConfig.version) && Objects.equals(this.createdAt, workweekConfig.createdAt) && Objects.equals(this.updatedAt, workweekConfig.updatedAt); } @Override public int hashCode() { return Objects.hash(id, startOfWeek, startOfDayLocalTime, version, createdAt, updatedAt); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WorkweekConfig {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" startOfWeek: ").append(toIndentedString(startOfWeek)).append("\n"); sb.append(" startOfDayLocalTime: ").append(toIndentedString(startOfDayLocalTime)).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 "); } }
5,030
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/Location.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.BusinessHours; import com.squareup.connect.models.Coordinates; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; /** * */ @ApiModel(description = "") public class Location { @JsonProperty("id") private String id = null; @JsonProperty("name") private String name = null; @JsonProperty("address") private Address address = null; @JsonProperty("timezone") private String timezone = null; @JsonProperty("capabilities") private List<String> capabilities = new ArrayList<String>(); @JsonProperty("status") private String status = null; @JsonProperty("created_at") private String createdAt = null; @JsonProperty("merchant_id") private String merchantId = null; @JsonProperty("country") private String country = null; @JsonProperty("language_code") private String languageCode = null; @JsonProperty("currency") private String currency = null; @JsonProperty("phone_number") private String phoneNumber = null; @JsonProperty("business_name") private String businessName = null; @JsonProperty("type") private String type = null; @JsonProperty("website_url") private String websiteUrl = null; @JsonProperty("business_hours") private BusinessHours businessHours = null; @JsonProperty("business_email") private String businessEmail = null; @JsonProperty("description") private String description = null; @JsonProperty("twitter_username") private String twitterUsername = null; @JsonProperty("instagram_username") private String instagramUsername = null; @JsonProperty("facebook_url") private String facebookUrl = null; @JsonProperty("coordinates") private Coordinates coordinates = null; @JsonProperty("logo_url") private String logoUrl = null; @JsonProperty("pos_background_url") private String posBackgroundUrl = null; @JsonProperty("mcc") private String mcc = null; public Location id(String id) { this.id = id; return this; } /** * The Square-issued ID of the location. * @return id **/ @ApiModelProperty(value = "The Square-issued ID of the location.") public String getId() { return id; } public void setId(String id) { this.id = id; } public Location name(String name) { this.name = name; return this; } /** * The name of the location. This information appears in the dashboard as the nickname. * @return name **/ @ApiModelProperty(value = "The name of the location. This information appears in the dashboard as the nickname.") public String getName() { return name; } public void setName(String name) { this.name = name; } public Location address(Address address) { this.address = address; return this; } /** * The physical address of the location. * @return address **/ @ApiModelProperty(value = "The physical address of the location.") public Address getAddress() { return address; } public void setAddress(Address address) { this.address = address; } public Location timezone(String timezone) { this.timezone = timezone; return this; } /** * The [IANA Timezone](https://www.iana.org/time-zones) identifier for the timezone of the location. * @return timezone **/ @ApiModelProperty(value = "The [IANA Timezone](https://www.iana.org/time-zones) identifier for the timezone of the location.") public String getTimezone() { return timezone; } public void setTimezone(String timezone) { this.timezone = timezone; } public Location capabilities(List<String> capabilities) { this.capabilities = capabilities; return this; } public Location addCapabilitiesItem(String capabilitiesItem) { this.capabilities.add(capabilitiesItem); return this; } /** * The Square features that are enabled for the location. See `LocationCapability` for possible values. See [LocationCapability](#type-locationcapability) for possible values * @return capabilities **/ @ApiModelProperty(value = "The Square features that are enabled for the location. See `LocationCapability` for possible values. See [LocationCapability](#type-locationcapability) for possible values") public List<String> getCapabilities() { return capabilities; } public void setCapabilities(List<String> capabilities) { this.capabilities = capabilities; } public Location status(String status) { this.status = status; return this; } /** * The status of the location, either active or inactive. See [LocationStatus](#type-locationstatus) for possible values * @return status **/ @ApiModelProperty(value = "The status of the location, either active or inactive. See [LocationStatus](#type-locationstatus) for possible values") public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public Location createdAt(String createdAt) { this.createdAt = createdAt; return this; } /** * The time when the location was created, in RFC 3339 format. * @return createdAt **/ @ApiModelProperty(value = "The time when the location was created, in RFC 3339 format.") public String getCreatedAt() { return createdAt; } public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } public Location merchantId(String merchantId) { this.merchantId = merchantId; return this; } /** * The ID of the merchant that owns the location. * @return merchantId **/ @ApiModelProperty(value = "The ID of the merchant that owns the location.") public String getMerchantId() { return merchantId; } public void setMerchantId(String merchantId) { this.merchantId = merchantId; } public Location country(String country) { this.country = country; return this; } /** * The country of the location, in ISO 3166-1-alpha-2 format. See `Country` for possible values. See [Country](#type-country) for possible values * @return country **/ @ApiModelProperty(value = "The country of the location, in ISO 3166-1-alpha-2 format. See `Country` for possible values. See [Country](#type-country) for possible values") public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public Location languageCode(String languageCode) { this.languageCode = languageCode; return this; } /** * The language associated with the location, in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A). * @return languageCode **/ @ApiModelProperty(value = "The language associated with the location, in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A).") public String getLanguageCode() { return languageCode; } public void setLanguageCode(String languageCode) { this.languageCode = languageCode; } public Location currency(String currency) { this.currency = currency; return this; } /** * The currency used for all transactions at this location, in ISO 4217 format. See `Currency` for possible values. See [Currency](#type-currency) for possible values * @return currency **/ @ApiModelProperty(value = "The currency used for all transactions at this location, in ISO 4217 format. 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; } public Location phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** * The phone number of the location in human readable format. * @return phoneNumber **/ @ApiModelProperty(value = "The phone number of the location in human readable format.") public String getPhoneNumber() { return phoneNumber; } public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } public Location businessName(String businessName) { this.businessName = businessName; return this; } /** * The business name of the location This is the name visible to the customers of the location. For example, this name appears on customer receipts. * @return businessName **/ @ApiModelProperty(value = "The business name of the location This is the name visible to the customers of the location. For example, this name appears on customer receipts.") public String getBusinessName() { return businessName; } public void setBusinessName(String businessName) { this.businessName = businessName; } public Location type(String type) { this.type = type; return this; } /** * The type of the location, either physical or mobile. See [LocationType](#type-locationtype) for possible values * @return type **/ @ApiModelProperty(value = "The type of the location, either physical or mobile. See [LocationType](#type-locationtype) for possible values") public String getType() { return type; } public void setType(String type) { this.type = type; } public Location websiteUrl(String websiteUrl) { this.websiteUrl = websiteUrl; return this; } /** * The website URL of the location. * @return websiteUrl **/ @ApiModelProperty(value = "The website URL of the location.") public String getWebsiteUrl() { return websiteUrl; } public void setWebsiteUrl(String websiteUrl) { this.websiteUrl = websiteUrl; } public Location businessHours(BusinessHours businessHours) { this.businessHours = businessHours; return this; } /** * Represents the hours of operation for the location. * @return businessHours **/ @ApiModelProperty(value = " Represents the hours of operation for the location.") public BusinessHours getBusinessHours() { return businessHours; } public void setBusinessHours(BusinessHours businessHours) { this.businessHours = businessHours; } public Location businessEmail(String businessEmail) { this.businessEmail = businessEmail; return this; } /** * The email of the location. This email is visible to the customers of the location. For example, the email appears on customer receipts. * @return businessEmail **/ @ApiModelProperty(value = "The email of the location. This email is visible to the customers of the location. For example, the email appears on customer receipts.") public String getBusinessEmail() { return businessEmail; } public void setBusinessEmail(String businessEmail) { this.businessEmail = businessEmail; } public Location description(String description) { this.description = description; return this; } /** * The description of the location. * @return description **/ @ApiModelProperty(value = "The description of the location.") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Location twitterUsername(String twitterUsername) { this.twitterUsername = twitterUsername; return this; } /** * The Twitter username of the location without the '&#64;' symbol. * @return twitterUsername **/ @ApiModelProperty(value = "The Twitter username of the location without the '&#64;' symbol.") public String getTwitterUsername() { return twitterUsername; } public void setTwitterUsername(String twitterUsername) { this.twitterUsername = twitterUsername; } public Location instagramUsername(String instagramUsername) { this.instagramUsername = instagramUsername; return this; } /** * The Instagram username of the location without the '&#64;' symbol. * @return instagramUsername **/ @ApiModelProperty(value = "The Instagram username of the location without the '&#64;' symbol.") public String getInstagramUsername() { return instagramUsername; } public void setInstagramUsername(String instagramUsername) { this.instagramUsername = instagramUsername; } public Location facebookUrl(String facebookUrl) { this.facebookUrl = facebookUrl; return this; } /** * The Facebook profile URL of the location. The URL should begin with 'facebook.com/'. * @return facebookUrl **/ @ApiModelProperty(value = "The Facebook profile URL of the location. The URL should begin with 'facebook.com/'.") public String getFacebookUrl() { return facebookUrl; } public void setFacebookUrl(String facebookUrl) { this.facebookUrl = facebookUrl; } public Location coordinates(Coordinates coordinates) { this.coordinates = coordinates; return this; } /** * The physical coordinates (latitude and longitude) of the location. * @return coordinates **/ @ApiModelProperty(value = "The physical coordinates (latitude and longitude) of the location.") public Coordinates getCoordinates() { return coordinates; } public void setCoordinates(Coordinates coordinates) { this.coordinates = coordinates; } public Location logoUrl(String logoUrl) { this.logoUrl = logoUrl; return this; } /** * The URL of the logo image for the location. * @return logoUrl **/ @ApiModelProperty(value = "The URL of the logo image for the location.") public String getLogoUrl() { return logoUrl; } public void setLogoUrl(String logoUrl) { this.logoUrl = logoUrl; } public Location posBackgroundUrl(String posBackgroundUrl) { this.posBackgroundUrl = posBackgroundUrl; return this; } /** * The URL of the Point of Sale background image for the location. * @return posBackgroundUrl **/ @ApiModelProperty(value = "The URL of the Point of Sale background image for the location.") public String getPosBackgroundUrl() { return posBackgroundUrl; } public void setPosBackgroundUrl(String posBackgroundUrl) { this.posBackgroundUrl = posBackgroundUrl; } public Location mcc(String mcc) { this.mcc = mcc; return this; } /** * The merchant category code (MCC) of the location, as standardized by ISO 18245. The MCC describes the kind of goods or services sold at the location. * Note: This model is in beta. * @return mcc **/ @ApiModelProperty(value = "The merchant category code (MCC) of the location, as standardized by ISO 18245. The MCC describes the kind of goods or services sold at the location.") public String getMcc() { return mcc; } public void setMcc(String mcc) { this.mcc = mcc; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Location location = (Location) o; return Objects.equals(this.id, location.id) && Objects.equals(this.name, location.name) && Objects.equals(this.address, location.address) && Objects.equals(this.timezone, location.timezone) && Objects.equals(this.capabilities, location.capabilities) && Objects.equals(this.status, location.status) && Objects.equals(this.createdAt, location.createdAt) && Objects.equals(this.merchantId, location.merchantId) && Objects.equals(this.country, location.country) && Objects.equals(this.languageCode, location.languageCode) && Objects.equals(this.currency, location.currency) && Objects.equals(this.phoneNumber, location.phoneNumber) && Objects.equals(this.businessName, location.businessName) && Objects.equals(this.type, location.type) && Objects.equals(this.websiteUrl, location.websiteUrl) && Objects.equals(this.businessHours, location.businessHours) && Objects.equals(this.businessEmail, location.businessEmail) && Objects.equals(this.description, location.description) && Objects.equals(this.twitterUsername, location.twitterUsername) && Objects.equals(this.instagramUsername, location.instagramUsername) && Objects.equals(this.facebookUrl, location.facebookUrl) && Objects.equals(this.coordinates, location.coordinates) && Objects.equals(this.logoUrl, location.logoUrl) && Objects.equals(this.posBackgroundUrl, location.posBackgroundUrl) && Objects.equals(this.mcc, location.mcc); } @Override public int hashCode() { return Objects.hash(id, name, address, timezone, capabilities, status, createdAt, merchantId, country, languageCode, currency, phoneNumber, businessName, type, websiteUrl, businessHours, businessEmail, description, twitterUsername, instagramUsername, facebookUrl, coordinates, logoUrl, posBackgroundUrl, mcc); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Location {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" businessName: ").append(toIndentedString(businessName)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" websiteUrl: ").append(toIndentedString(websiteUrl)).append("\n"); sb.append(" businessHours: ").append(toIndentedString(businessHours)).append("\n"); sb.append(" businessEmail: ").append(toIndentedString(businessEmail)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" twitterUsername: ").append(toIndentedString(twitterUsername)).append("\n"); sb.append(" instagramUsername: ").append(toIndentedString(instagramUsername)).append("\n"); sb.append(" facebookUrl: ").append(toIndentedString(facebookUrl)).append("\n"); sb.append(" coordinates: ").append(toIndentedString(coordinates)).append("\n"); sb.append(" logoUrl: ").append(toIndentedString(logoUrl)).append("\n"); sb.append(" posBackgroundUrl: ").append(toIndentedString(posBackgroundUrl)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).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 "); } }
5,031
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ShiftSort.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; /** * Sets the sort order of search results. */ @ApiModel(description = "Sets the sort order of search results.") public class ShiftSort { @JsonProperty("field") private String field = null; @JsonProperty("order") private String order = null; public ShiftSort field(String field) { this.field = field; return this; } /** * The field to sort on. See [ShiftSortField](#type-shiftsortfield) for possible values * @return field **/ @ApiModelProperty(value = "The field to sort on. See [ShiftSortField](#type-shiftsortfield) for possible values") public String getField() { return field; } public void setField(String field) { this.field = field; } public ShiftSort order(String order) { this.order = order; return this; } /** * The order in which results are returned. Defaults to DESC. See [SortOrder](#type-sortorder) for possible values * @return order **/ @ApiModelProperty(value = "The order in which results are returned. Defaults to DESC. 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; } ShiftSort shiftSort = (ShiftSort) o; return Objects.equals(this.field, shiftSort.field) && Objects.equals(this.order, shiftSort.order); } @Override public int hashCode() { return Objects.hash(field, order); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShiftSort {\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 "); } }
5,032
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateMobileAuthorizationCodeRequest.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; /** * Defines the body parameters that can be provided in a request to the __CreateMobileAuthorizationCode__ endpoint. */ @ApiModel(description = "Defines the body parameters that can be provided in a request to the __CreateMobileAuthorizationCode__ endpoint.") public class CreateMobileAuthorizationCodeRequest { @JsonProperty("location_id") private String locationId = null; public CreateMobileAuthorizationCodeRequest locationId(String locationId) { this.locationId = locationId; return this; } /** * The Square location ID the authorization code should be tied to. * @return locationId **/ @ApiModelProperty(value = "The Square location ID the authorization code should be tied to.") public String getLocationId() { return locationId; } public void setLocationId(String locationId) { this.locationId = locationId; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CreateMobileAuthorizationCodeRequest createMobileAuthorizationCodeRequest = (CreateMobileAuthorizationCodeRequest) o; return Objects.equals(this.locationId, createMobileAuthorizationCodeRequest.locationId); } @Override public int hashCode() { return Objects.hash(locationId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateMobileAuthorizationCodeRequest {\n"); sb.append(" locationId: ").append(toIndentedString(locationId)).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 "); } }
5,033
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ApplyModifierListRequest.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 V1ApplyModifierListRequest { @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 V1ApplyModifierListRequest {\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 "); } }
5,034
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateCustomerCardRequest.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 fields that are included in the request body of a request to the CreateCustomerCard endpoint. */ @ApiModel(description = "Defines the fields that are included in the request body of a request to the CreateCustomerCard endpoint.") public class CreateCustomerCardRequest { @JsonProperty("card_nonce") private String cardNonce = null; @JsonProperty("billing_address") private Address billingAddress = null; @JsonProperty("cardholder_name") private String cardholderName = null; @JsonProperty("verification_token") private String verificationToken = null; public CreateCustomerCardRequest cardNonce(String cardNonce) { this.cardNonce = cardNonce; return this; } /** * A card nonce representing the credit card to link to the customer. Card nonces are generated by the Square Payment Form when customers enter their card information. See [Embedding the payment form](https://developer.squareup.com/docs/payment-form/payment-form-walkthrough) for more information. __NOTE:__ Card nonces generated by digital wallets (e.g., Apple Pay) cannot be used to create a customer card. * @return cardNonce **/ @ApiModelProperty(required = true, value = "A card nonce representing the credit card to link to the customer. Card nonces are generated by the Square Payment Form when customers enter their card information. See [Embedding the payment form](https://developer.squareup.com/docs/payment-form/payment-form-walkthrough) for more information. __NOTE:__ Card nonces generated by digital wallets (e.g., Apple Pay) cannot be used to create a customer card.") public String getCardNonce() { return cardNonce; } public void setCardNonce(String cardNonce) { this.cardNonce = cardNonce; } public CreateCustomerCardRequest billingAddress(Address billingAddress) { this.billingAddress = billingAddress; return this; } /** * Address information for the card on file. Only the `postal_code` field is required for payments in the US and Canada. * @return billingAddress **/ @ApiModelProperty(value = "Address information for the card on file. Only the `postal_code` field is required for payments in the US and Canada.") public Address getBillingAddress() { return billingAddress; } public void setBillingAddress(Address billingAddress) { this.billingAddress = billingAddress; } public CreateCustomerCardRequest cardholderName(String cardholderName) { this.cardholderName = cardholderName; return this; } /** * The full name printed on the credit card. * @return cardholderName **/ @ApiModelProperty(value = "The full name printed on the credit card.") public String getCardholderName() { return cardholderName; } public void setCardholderName(String cardholderName) { this.cardholderName = cardholderName; } public CreateCustomerCardRequest verificationToken(String verificationToken) { this.verificationToken = verificationToken; return this; } /** * An identifying token generated by `SqPaymentForm.verifyBuyer()`. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. * @return verificationToken **/ @ApiModelProperty(value = "An identifying token generated by `SqPaymentForm.verifyBuyer()`. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity.") public String getVerificationToken() { return verificationToken; } public void setVerificationToken(String verificationToken) { this.verificationToken = verificationToken; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CreateCustomerCardRequest createCustomerCardRequest = (CreateCustomerCardRequest) o; return Objects.equals(this.cardNonce, createCustomerCardRequest.cardNonce) && Objects.equals(this.billingAddress, createCustomerCardRequest.billingAddress) && Objects.equals(this.cardholderName, createCustomerCardRequest.cardholderName) && Objects.equals(this.verificationToken, createCustomerCardRequest.verificationToken); } @Override public int hashCode() { return Objects.hash(cardNonce, billingAddress, cardholderName, verificationToken); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCustomerCardRequest {\n"); sb.append(" cardNonce: ").append(toIndentedString(cardNonce)).append("\n"); sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n"); sb.append(" cardholderName: ").append(toIndentedString(cardholderName)).append("\n"); sb.append(" verificationToken: ").append(toIndentedString(verificationToken)).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 "); } }
5,035
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/SearchCustomersRequest.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.CustomerQuery; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * Defines the fields included in the request body for the SearchCustomers endpoint. */ @ApiModel(description = "Defines the fields included in the request body for the SearchCustomers endpoint.") public class SearchCustomersRequest { @JsonProperty("cursor") private String cursor = null; @JsonProperty("limit") private Long limit = null; @JsonProperty("query") private CustomerQuery query = null; public SearchCustomersRequest cursor(String cursor) { this.cursor = cursor; return this; } /** * Include the pagination cursor in subsequent calls to this endpoint to retrieve the next set of results associated with the original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. * @return cursor **/ @ApiModelProperty(value = "Include the pagination cursor in subsequent calls to this endpoint to retrieve the next set of results associated with the original query. 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; } public SearchCustomersRequest limit(Long limit) { this.limit = limit; return this; } /** * A limit on the number of results to be returned in a single page. The limit is advisory - the implementation may return more or fewer results. If the supplied limit is negative, zero, or is higher than the maximum limit of 1,000, it will be ignored. * @return limit **/ @ApiModelProperty(value = "A limit on the number of results to be returned in a single page. The limit is advisory - the implementation may return more or fewer results. If the supplied limit is negative, zero, or is higher than the maximum limit of 1,000, it will be ignored.") public Long getLimit() { return limit; } public void setLimit(Long limit) { this.limit = limit; } public SearchCustomersRequest query(CustomerQuery query) { this.query = query; return this; } /** * Query customers based on the given conditions and sort order. Calling SearchCustomers without an explicit query parameter will return all customers ordered alphabetically based on `given_name` and `family_name`. * @return query **/ @ApiModelProperty(value = "Query customers based on the given conditions and sort order. Calling SearchCustomers without an explicit query parameter will return all customers ordered alphabetically based on `given_name` and `family_name`.") public CustomerQuery getQuery() { return query; } public void setQuery(CustomerQuery query) { this.query = query; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SearchCustomersRequest searchCustomersRequest = (SearchCustomersRequest) o; return Objects.equals(this.cursor, searchCustomersRequest.cursor) && Objects.equals(this.limit, searchCustomersRequest.limit) && Objects.equals(this.query, searchCustomersRequest.query); } @Override public int hashCode() { return Objects.hash(cursor, limit, query); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchCustomersRequest {\n"); sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).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 "); } }
5,036
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/SearchOrdersRequest.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.SearchOrdersQuery; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; /** * The request does not have any required fields. When given no query criteria, SearchOrders will return all results for all of the merchant’s locations. When fetching additional pages using a &#x60;cursor&#x60;, the &#x60;query&#x60; must be equal to the &#x60;query&#x60; used to fetch the first page of results. */ @ApiModel(description = "The request does not have any required fields. When given no query criteria, SearchOrders will return all results for all of the merchant’s locations. When fetching additional pages using a `cursor`, the `query` must be equal to the `query` used to fetch the first page of results.") public class SearchOrdersRequest { @JsonProperty("location_ids") private List<String> locationIds = new ArrayList<String>(); @JsonProperty("cursor") private String cursor = null; @JsonProperty("query") private SearchOrdersQuery query = null; @JsonProperty("limit") private Integer limit = null; @JsonProperty("return_entries") private Boolean returnEntries = null; public SearchOrdersRequest locationIds(List<String> locationIds) { this.locationIds = locationIds; return this; } public SearchOrdersRequest addLocationIdsItem(String locationIdsItem) { this.locationIds.add(locationIdsItem); return this; } /** * The location IDs for the orders to query. All locations must belong to the same merchant. Min: 1 location IDs. Max: 10 location IDs. * @return locationIds **/ @ApiModelProperty(value = "The location IDs for the orders to query. All locations must belong to the same merchant. Min: 1 location IDs. Max: 10 location IDs.") public List<String> getLocationIds() { return locationIds; } public void setLocationIds(List<String> locationIds) { this.locationIds = locationIds; } public SearchOrdersRequest 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 your 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 your 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 SearchOrdersRequest query(SearchOrdersQuery query) { this.query = query; return this; } /** * Query conditions used to filter or sort the results. Note that when fetching additional pages using a cursor, the query must be equal to the query used to fetch the first page of results. * @return query **/ @ApiModelProperty(value = "Query conditions used to filter or sort the results. Note that when fetching additional pages using a cursor, the query must be equal to the query used to fetch the first page of results.") public SearchOrdersQuery getQuery() { return query; } public void setQuery(SearchOrdersQuery query) { this.query = query; } public SearchOrdersRequest limit(Integer limit) { this.limit = limit; return this; } /** * Maximum number of results to be returned in a single page. It is possible to receive fewer results than the specified limit on a given page. Default: `500` * minimum: 1 * @return limit **/ @ApiModelProperty(value = "Maximum number of results to be returned in a single page. It is possible to receive fewer results than the specified limit on a given page. Default: `500`") public Integer getLimit() { return limit; } public void setLimit(Integer limit) { this.limit = limit; } public SearchOrdersRequest returnEntries(Boolean returnEntries) { this.returnEntries = returnEntries; return this; } /** * Boolean that controls the format of the search results. If `true`, SearchOrders will return ``OrderEntry`` objects. If `false`, SearchOrders will return complete Order objects. Default: `false`. * @return returnEntries **/ @ApiModelProperty(value = "Boolean that controls the format of the search results. If `true`, SearchOrders will return ``OrderEntry`` objects. If `false`, SearchOrders will return complete Order objects. Default: `false`.") public Boolean getReturnEntries() { return returnEntries; } public void setReturnEntries(Boolean returnEntries) { this.returnEntries = returnEntries; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SearchOrdersRequest searchOrdersRequest = (SearchOrdersRequest) o; return Objects.equals(this.locationIds, searchOrdersRequest.locationIds) && Objects.equals(this.cursor, searchOrdersRequest.cursor) && Objects.equals(this.query, searchOrdersRequest.query) && Objects.equals(this.limit, searchOrdersRequest.limit) && Objects.equals(this.returnEntries, searchOrdersRequest.returnEntries); } @Override public int hashCode() { return Objects.hash(locationIds, cursor, query, limit, returnEntries); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchOrdersRequest {\n"); sb.append(" locationIds: ").append(toIndentedString(locationIds)).append("\n"); sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" returnEntries: ").append(toIndentedString(returnEntries)).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 "); } }
5,037
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/UpdateOrderRequest.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.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 requests to the [UpdateOrder](#endpoint-orders-updateorder) endpoint. */ @ApiModel(description = "Defines the fields that are included in requests to the [UpdateOrder](#endpoint-orders-updateorder) endpoint.") public class UpdateOrderRequest { @JsonProperty("order") private Order order = null; @JsonProperty("fields_to_clear") private List<String> fieldsToClear = new ArrayList<String>(); @JsonProperty("idempotency_key") private String idempotencyKey = null; public UpdateOrderRequest order(Order order) { this.order = order; return this; } /** * The [sparse order](https://developer.squareup.com/docs/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to. * @return order **/ @ApiModelProperty(value = "The [sparse order](https://developer.squareup.com/docs/orders-api/manage-orders#sparse-order-objects) containing only the fields to update and the version the update is being applied to.") public Order getOrder() { return order; } public void setOrder(Order order) { this.order = order; } public UpdateOrderRequest fieldsToClear(List<String> fieldsToClear) { this.fieldsToClear = fieldsToClear; return this; } public UpdateOrderRequest addFieldsToClearItem(String fieldsToClearItem) { this.fieldsToClear.add(fieldsToClearItem); return this; } /** * The [dot notation paths](https://developer.squareup.com/docs/orders-api/manage-orders#on-dot-notation) fields to clear. For example, `line_items[uid].note` [Read more about Deleting fields](https://developer.squareup.com/docs/orders-api/manage-orders#delete-fields). * @return fieldsToClear **/ @ApiModelProperty(value = "The [dot notation paths](https://developer.squareup.com/docs/orders-api/manage-orders#on-dot-notation) fields to clear. For example, `line_items[uid].note` [Read more about Deleting fields](https://developer.squareup.com/docs/orders-api/manage-orders#delete-fields).") public List<String> getFieldsToClear() { return fieldsToClear; } public void setFieldsToClear(List<String> fieldsToClear) { this.fieldsToClear = fieldsToClear; } public UpdateOrderRequest idempotencyKey(String idempotencyKey) { this.idempotencyKey = idempotencyKey; return this; } /** * A value you specify that uniquely identifies this update request If you're unsure whether a particular update was applied to an order successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate updates to the order. The latest order version will be returned. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. * @return idempotencyKey **/ @ApiModelProperty(value = "A value you specify that uniquely identifies this update request If you're unsure whether a particular update was applied to an order successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate updates to the order. The latest order version will be returned. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information.") public String getIdempotencyKey() { return idempotencyKey; } public void setIdempotencyKey(String idempotencyKey) { this.idempotencyKey = idempotencyKey; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } UpdateOrderRequest updateOrderRequest = (UpdateOrderRequest) o; return Objects.equals(this.order, updateOrderRequest.order) && Objects.equals(this.fieldsToClear, updateOrderRequest.fieldsToClear) && Objects.equals(this.idempotencyKey, updateOrderRequest.idempotencyKey); } @Override public int hashCode() { return Objects.hash(order, fieldsToClear, idempotencyKey); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateOrderRequest {\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); sb.append(" fieldsToClear: ").append(toIndentedString(fieldsToClear)).append("\n"); sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).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 "); } }
5,038
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateLocationRequest.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.Location; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * Request object for the [CreateLocation](#endpoint-createlocation) endpoint. */ @ApiModel(description = "Request object for the [CreateLocation](#endpoint-createlocation) endpoint.") public class CreateLocationRequest { @JsonProperty("location") private Location location = null; public CreateLocationRequest location(Location location) { this.location = location; return this; } /** * The initial values of the location being created. The `name` field is required. All other fields are optional. Unspecified fields will be set to default values using existing location data. * @return location **/ @ApiModelProperty(value = "The initial values of the location being created. The `name` field is required. All other fields are optional. Unspecified fields will be set to default values using existing location data.") 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; } CreateLocationRequest createLocationRequest = (CreateLocationRequest) o; return Objects.equals(this.location, createLocationRequest.location); } @Override public int hashCode() { return Objects.hash(location); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateLocationRequest {\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 "); } }
5,039
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/OrderFulfillmentShipmentDetails.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.OrderFulfillmentRecipient; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * Contains details necessary to fulfill a shipment order. */ @ApiModel(description = "Contains details necessary to fulfill a shipment order.") public class OrderFulfillmentShipmentDetails { @JsonProperty("recipient") private OrderFulfillmentRecipient recipient = null; @JsonProperty("carrier") private String carrier = null; @JsonProperty("shipping_note") private String shippingNote = null; @JsonProperty("shipping_type") private String shippingType = null; @JsonProperty("tracking_number") private String trackingNumber = null; @JsonProperty("tracking_url") private String trackingUrl = null; @JsonProperty("placed_at") private String placedAt = null; @JsonProperty("in_progress_at") private String inProgressAt = null; @JsonProperty("packaged_at") private String packagedAt = null; @JsonProperty("expected_shipped_at") private String expectedShippedAt = null; @JsonProperty("shipped_at") private String shippedAt = null; @JsonProperty("canceled_at") private String canceledAt = null; @JsonProperty("cancel_reason") private String cancelReason = null; @JsonProperty("failed_at") private String failedAt = null; @JsonProperty("failure_reason") private String failureReason = null; public OrderFulfillmentShipmentDetails recipient(OrderFulfillmentRecipient recipient) { this.recipient = recipient; return this; } /** * Information on the person meant to receive this shipment fulfillment. * @return recipient **/ @ApiModelProperty(value = "Information on the person meant to receive this shipment fulfillment.") public OrderFulfillmentRecipient getRecipient() { return recipient; } public void setRecipient(OrderFulfillmentRecipient recipient) { this.recipient = recipient; } public OrderFulfillmentShipmentDetails carrier(String carrier) { this.carrier = carrier; return this; } /** * The shipping carrier being used to ship this fulfillment e.g. UPS, FedEx, USPS, etc. * @return carrier **/ @ApiModelProperty(value = "The shipping carrier being used to ship this fulfillment e.g. UPS, FedEx, USPS, etc.") public String getCarrier() { return carrier; } public void setCarrier(String carrier) { this.carrier = carrier; } public OrderFulfillmentShipmentDetails shippingNote(String shippingNote) { this.shippingNote = shippingNote; return this; } /** * A note with additional information for the shipping carrier. * @return shippingNote **/ @ApiModelProperty(value = "A note with additional information for the shipping carrier.") public String getShippingNote() { return shippingNote; } public void setShippingNote(String shippingNote) { this.shippingNote = shippingNote; } public OrderFulfillmentShipmentDetails shippingType(String shippingType) { this.shippingType = shippingType; return this; } /** * A description of the type of shipping product purchased from the carrier. e.g. First Class, Priority, Express * @return shippingType **/ @ApiModelProperty(value = "A description of the type of shipping product purchased from the carrier. e.g. First Class, Priority, Express") public String getShippingType() { return shippingType; } public void setShippingType(String shippingType) { this.shippingType = shippingType; } public OrderFulfillmentShipmentDetails trackingNumber(String trackingNumber) { this.trackingNumber = trackingNumber; return this; } /** * The reference number provided by the carrier to track the shipment's progress. * @return trackingNumber **/ @ApiModelProperty(value = "The reference number provided by the carrier to track the shipment's progress.") public String getTrackingNumber() { return trackingNumber; } public void setTrackingNumber(String trackingNumber) { this.trackingNumber = trackingNumber; } public OrderFulfillmentShipmentDetails trackingUrl(String trackingUrl) { this.trackingUrl = trackingUrl; return this; } /** * A link to the tracking webpage on the carrier's website. * @return trackingUrl **/ @ApiModelProperty(value = "A link to the tracking webpage on the carrier's website.") public String getTrackingUrl() { return trackingUrl; } public void setTrackingUrl(String trackingUrl) { this.trackingUrl = trackingUrl; } public OrderFulfillmentShipmentDetails placedAt(String placedAt) { this.placedAt = placedAt; return this; } /** * The [timestamp](#workingwithdates) indicating when the shipment was requested. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". * @return placedAt **/ @ApiModelProperty(value = "The [timestamp](#workingwithdates) indicating when the shipment was requested. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\".") public String getPlacedAt() { return placedAt; } public void setPlacedAt(String placedAt) { this.placedAt = placedAt; } public OrderFulfillmentShipmentDetails inProgressAt(String inProgressAt) { this.inProgressAt = inProgressAt; return this; } /** * The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `RESERVED` state. Indicates that preparation of this shipment has begun. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". * @return inProgressAt **/ @ApiModelProperty(value = "The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `RESERVED` state. Indicates that preparation of this shipment has begun. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\".") public String getInProgressAt() { return inProgressAt; } public void setInProgressAt(String inProgressAt) { this.inProgressAt = inProgressAt; } public OrderFulfillmentShipmentDetails packagedAt(String packagedAt) { this.packagedAt = packagedAt; return this; } /** * The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `PREPARED` state. Indicates that the fulfillment is packaged. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". * @return packagedAt **/ @ApiModelProperty(value = "The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `PREPARED` state. Indicates that the fulfillment is packaged. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\".") public String getPackagedAt() { return packagedAt; } public void setPackagedAt(String packagedAt) { this.packagedAt = packagedAt; } public OrderFulfillmentShipmentDetails expectedShippedAt(String expectedShippedAt) { this.expectedShippedAt = expectedShippedAt; return this; } /** * The [timestamp](#workingwithdates) indicating when the shipment is expected to be delivered to the shipping carrier. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". * @return expectedShippedAt **/ @ApiModelProperty(value = "The [timestamp](#workingwithdates) indicating when the shipment is expected to be delivered to the shipping carrier. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\".") public String getExpectedShippedAt() { return expectedShippedAt; } public void setExpectedShippedAt(String expectedShippedAt) { this.expectedShippedAt = expectedShippedAt; } public OrderFulfillmentShipmentDetails shippedAt(String shippedAt) { this.shippedAt = shippedAt; return this; } /** * The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `COMPLETED`state. Indicates that the fulfillment has been given to the shipping carrier. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". * @return shippedAt **/ @ApiModelProperty(value = "The [timestamp](#workingwithdates) indicating when this fulfillment was moved to the `COMPLETED`state. Indicates that the fulfillment has been given to the shipping carrier. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\".") public String getShippedAt() { return shippedAt; } public void setShippedAt(String shippedAt) { this.shippedAt = shippedAt; } public OrderFulfillmentShipmentDetails canceledAt(String canceledAt) { this.canceledAt = canceledAt; return this; } /** * The [timestamp](#workingwithdates) indicating the shipment was canceled. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". * @return canceledAt **/ @ApiModelProperty(value = "The [timestamp](#workingwithdates) indicating the shipment was canceled. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\".") public String getCanceledAt() { return canceledAt; } public void setCanceledAt(String canceledAt) { this.canceledAt = canceledAt; } public OrderFulfillmentShipmentDetails cancelReason(String cancelReason) { this.cancelReason = cancelReason; return this; } /** * A description of why the shipment was canceled. * @return cancelReason **/ @ApiModelProperty(value = "A description of why the shipment was canceled.") public String getCancelReason() { return cancelReason; } public void setCancelReason(String cancelReason) { this.cancelReason = cancelReason; } public OrderFulfillmentShipmentDetails failedAt(String failedAt) { this.failedAt = failedAt; return this; } /** * The [timestamp](#workingwithdates) indicating when the shipment failed to be completed. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\". * @return failedAt **/ @ApiModelProperty(value = "The [timestamp](#workingwithdates) indicating when the shipment failed to be completed. Must be in RFC3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\".") public String getFailedAt() { return failedAt; } public void setFailedAt(String failedAt) { this.failedAt = failedAt; } public OrderFulfillmentShipmentDetails failureReason(String failureReason) { this.failureReason = failureReason; return this; } /** * A description of why the shipment failed to be completed. * @return failureReason **/ @ApiModelProperty(value = "A description of why the shipment failed to be completed.") public String getFailureReason() { return failureReason; } public void setFailureReason(String failureReason) { this.failureReason = failureReason; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } OrderFulfillmentShipmentDetails orderFulfillmentShipmentDetails = (OrderFulfillmentShipmentDetails) o; return Objects.equals(this.recipient, orderFulfillmentShipmentDetails.recipient) && Objects.equals(this.carrier, orderFulfillmentShipmentDetails.carrier) && Objects.equals(this.shippingNote, orderFulfillmentShipmentDetails.shippingNote) && Objects.equals(this.shippingType, orderFulfillmentShipmentDetails.shippingType) && Objects.equals(this.trackingNumber, orderFulfillmentShipmentDetails.trackingNumber) && Objects.equals(this.trackingUrl, orderFulfillmentShipmentDetails.trackingUrl) && Objects.equals(this.placedAt, orderFulfillmentShipmentDetails.placedAt) && Objects.equals(this.inProgressAt, orderFulfillmentShipmentDetails.inProgressAt) && Objects.equals(this.packagedAt, orderFulfillmentShipmentDetails.packagedAt) && Objects.equals(this.expectedShippedAt, orderFulfillmentShipmentDetails.expectedShippedAt) && Objects.equals(this.shippedAt, orderFulfillmentShipmentDetails.shippedAt) && Objects.equals(this.canceledAt, orderFulfillmentShipmentDetails.canceledAt) && Objects.equals(this.cancelReason, orderFulfillmentShipmentDetails.cancelReason) && Objects.equals(this.failedAt, orderFulfillmentShipmentDetails.failedAt) && Objects.equals(this.failureReason, orderFulfillmentShipmentDetails.failureReason); } @Override public int hashCode() { return Objects.hash(recipient, carrier, shippingNote, shippingType, trackingNumber, trackingUrl, placedAt, inProgressAt, packagedAt, expectedShippedAt, shippedAt, canceledAt, cancelReason, failedAt, failureReason); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderFulfillmentShipmentDetails {\n"); sb.append(" recipient: ").append(toIndentedString(recipient)).append("\n"); sb.append(" carrier: ").append(toIndentedString(carrier)).append("\n"); sb.append(" shippingNote: ").append(toIndentedString(shippingNote)).append("\n"); sb.append(" shippingType: ").append(toIndentedString(shippingType)).append("\n"); sb.append(" trackingNumber: ").append(toIndentedString(trackingNumber)).append("\n"); sb.append(" trackingUrl: ").append(toIndentedString(trackingUrl)).append("\n"); sb.append(" placedAt: ").append(toIndentedString(placedAt)).append("\n"); sb.append(" inProgressAt: ").append(toIndentedString(inProgressAt)).append("\n"); sb.append(" packagedAt: ").append(toIndentedString(packagedAt)).append("\n"); sb.append(" expectedShippedAt: ").append(toIndentedString(expectedShippedAt)).append("\n"); sb.append(" shippedAt: ").append(toIndentedString(shippedAt)).append("\n"); sb.append(" canceledAt: ").append(toIndentedString(canceledAt)).append("\n"); sb.append(" cancelReason: ").append(toIndentedString(cancelReason)).append("\n"); sb.append(" failedAt: ").append(toIndentedString(failedAt)).append("\n"); sb.append(" failureReason: ").append(toIndentedString(failureReason)).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 "); } }
5,040
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/OrderReturnLineItem.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.OrderLineItemAppliedDiscount; import com.squareup.connect.models.OrderLineItemAppliedTax; import com.squareup.connect.models.OrderQuantityUnit; import com.squareup.connect.models.OrderReturnDiscount; import com.squareup.connect.models.OrderReturnLineItemModifier; import com.squareup.connect.models.OrderReturnTax; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; /** * The line item being returned in an Order. */ @ApiModel(description = "The line item being returned in an Order.") public class OrderReturnLineItem { @JsonProperty("uid") private String uid = null; @JsonProperty("source_line_item_uid") private String sourceLineItemUid = null; @JsonProperty("name") private String name = null; @JsonProperty("quantity") private String quantity = null; @JsonProperty("quantity_unit") private OrderQuantityUnit quantityUnit = null; @JsonProperty("note") private String note = null; @JsonProperty("catalog_object_id") private String catalogObjectId = null; @JsonProperty("variation_name") private String variationName = null; @JsonProperty("return_modifiers") private List<OrderReturnLineItemModifier> returnModifiers = new ArrayList<OrderReturnLineItemModifier>(); @JsonProperty("return_taxes") private List<OrderReturnTax> returnTaxes = new ArrayList<OrderReturnTax>(); @JsonProperty("return_discounts") private List<OrderReturnDiscount> returnDiscounts = new ArrayList<OrderReturnDiscount>(); @JsonProperty("applied_taxes") private List<OrderLineItemAppliedTax> appliedTaxes = new ArrayList<OrderLineItemAppliedTax>(); @JsonProperty("applied_discounts") private List<OrderLineItemAppliedDiscount> appliedDiscounts = new ArrayList<OrderLineItemAppliedDiscount>(); @JsonProperty("base_price_money") private Money basePriceMoney = null; @JsonProperty("variation_total_price_money") private Money variationTotalPriceMoney = null; @JsonProperty("gross_return_money") private Money grossReturnMoney = null; @JsonProperty("total_tax_money") private Money totalTaxMoney = null; @JsonProperty("total_discount_money") private Money totalDiscountMoney = null; @JsonProperty("total_money") private Money totalMoney = null; public OrderReturnLineItem uid(String uid) { this.uid = uid; return this; } /** * Unique identifier for this return line item entry. * @return uid **/ @ApiModelProperty(value = "Unique identifier for this return line item entry.") public String getUid() { return uid; } public void setUid(String uid) { this.uid = uid; } public OrderReturnLineItem sourceLineItemUid(String sourceLineItemUid) { this.sourceLineItemUid = sourceLineItemUid; return this; } /** * `uid` of the LineItem in the original sale Order. * @return sourceLineItemUid **/ @ApiModelProperty(value = "`uid` of the LineItem in the original sale Order.") public String getSourceLineItemUid() { return sourceLineItemUid; } public void setSourceLineItemUid(String sourceLineItemUid) { this.sourceLineItemUid = sourceLineItemUid; } public OrderReturnLineItem name(String name) { this.name = name; return this; } /** * The name of the line item. * @return name **/ @ApiModelProperty(value = "The name of the line item.") public String getName() { return name; } public void setName(String name) { this.name = name; } public OrderReturnLineItem quantity(String quantity) { this.quantity = quantity; return this; } /** * The quantity returned, formatted as a decimal number. For example: `\"3\"`. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`. * @return quantity **/ @ApiModelProperty(required = true, value = "The quantity returned, formatted as a decimal number. For example: `\"3\"`. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`.") public String getQuantity() { return quantity; } public void setQuantity(String quantity) { this.quantity = quantity; } public OrderReturnLineItem quantityUnit(OrderQuantityUnit quantityUnit) { this.quantityUnit = quantityUnit; return this; } /** * The unit and precision that this return line item's quantity is measured in. * @return quantityUnit **/ @ApiModelProperty(value = "The unit and precision that this return line item's quantity is measured in.") public OrderQuantityUnit getQuantityUnit() { return quantityUnit; } public void setQuantityUnit(OrderQuantityUnit quantityUnit) { this.quantityUnit = quantityUnit; } public OrderReturnLineItem note(String note) { this.note = note; return this; } /** * The note of the returned line item. * @return note **/ @ApiModelProperty(value = "The note of the returned line item.") public String getNote() { return note; } public void setNote(String note) { this.note = note; } public OrderReturnLineItem catalogObjectId(String catalogObjectId) { this.catalogObjectId = catalogObjectId; return this; } /** * The `CatalogItemVariation` id applied to this returned line item. * @return catalogObjectId **/ @ApiModelProperty(value = "The `CatalogItemVariation` id applied to this returned line item.") public String getCatalogObjectId() { return catalogObjectId; } public void setCatalogObjectId(String catalogObjectId) { this.catalogObjectId = catalogObjectId; } public OrderReturnLineItem variationName(String variationName) { this.variationName = variationName; return this; } /** * The name of the variation applied to this returned line item. * @return variationName **/ @ApiModelProperty(value = "The name of the variation applied to this returned line item.") public String getVariationName() { return variationName; } public void setVariationName(String variationName) { this.variationName = variationName; } public OrderReturnLineItem returnModifiers(List<OrderReturnLineItemModifier> returnModifiers) { this.returnModifiers = returnModifiers; return this; } public OrderReturnLineItem addReturnModifiersItem(OrderReturnLineItemModifier returnModifiersItem) { this.returnModifiers.add(returnModifiersItem); return this; } /** * The `CatalogModifier`s applied to this line item. * @return returnModifiers **/ @ApiModelProperty(value = "The `CatalogModifier`s applied to this line item.") public List<OrderReturnLineItemModifier> getReturnModifiers() { return returnModifiers; } public void setReturnModifiers(List<OrderReturnLineItemModifier> returnModifiers) { this.returnModifiers = returnModifiers; } public OrderReturnLineItem returnTaxes(List<OrderReturnTax> returnTaxes) { this.returnTaxes = returnTaxes; return this; } public OrderReturnLineItem addReturnTaxesItem(OrderReturnTax returnTaxesItem) { this.returnTaxes.add(returnTaxesItem); return this; } /** * A list of taxes applied to this line item. On read or retrieve, this list includes both item-level taxes and any return-level taxes apportioned to this item. This field has been deprecated in favour of `applied_taxes`. * @return returnTaxes **/ @ApiModelProperty(value = "A list of taxes applied to this line item. On read or retrieve, this list includes both item-level taxes and any return-level taxes apportioned to this item. This field has been deprecated in favour of `applied_taxes`.") @Deprecated public List<OrderReturnTax> getReturnTaxes() { return returnTaxes; } public void setReturnTaxes(List<OrderReturnTax> returnTaxes) { this.returnTaxes = returnTaxes; } public OrderReturnLineItem returnDiscounts(List<OrderReturnDiscount> returnDiscounts) { this.returnDiscounts = returnDiscounts; return this; } public OrderReturnLineItem addReturnDiscountsItem(OrderReturnDiscount returnDiscountsItem) { this.returnDiscounts.add(returnDiscountsItem); return this; } /** * A list of discounts applied to this line item. On read or retrieve, this list includes both item-level discounts and any return-level discounts apportioned to this item. This field has been deprecated in favour of `applied_discounts`. * @return returnDiscounts **/ @ApiModelProperty(value = "A list of discounts applied to this line item. On read or retrieve, this list includes both item-level discounts and any return-level discounts apportioned to this item. This field has been deprecated in favour of `applied_discounts`.") @Deprecated public List<OrderReturnDiscount> getReturnDiscounts() { return returnDiscounts; } public void setReturnDiscounts(List<OrderReturnDiscount> returnDiscounts) { this.returnDiscounts = returnDiscounts; } public OrderReturnLineItem appliedTaxes(List<OrderLineItemAppliedTax> appliedTaxes) { this.appliedTaxes = appliedTaxes; return this; } public OrderReturnLineItem addAppliedTaxesItem(OrderLineItemAppliedTax appliedTaxesItem) { this.appliedTaxes.add(appliedTaxesItem); return this; } /** * The list of references to `OrderReturnTax` entities applied to the returned line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderReturnTax` applied to the returned line item. On reads, the amount applied is populated. * @return appliedTaxes **/ @ApiModelProperty(value = "The list of references to `OrderReturnTax` entities applied to the returned line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderReturnTax` applied to the returned line item. On reads, the amount applied is populated.") public List<OrderLineItemAppliedTax> getAppliedTaxes() { return appliedTaxes; } public void setAppliedTaxes(List<OrderLineItemAppliedTax> appliedTaxes) { this.appliedTaxes = appliedTaxes; } public OrderReturnLineItem appliedDiscounts(List<OrderLineItemAppliedDiscount> appliedDiscounts) { this.appliedDiscounts = appliedDiscounts; return this; } public OrderReturnLineItem addAppliedDiscountsItem(OrderLineItemAppliedDiscount appliedDiscountsItem) { this.appliedDiscounts.add(appliedDiscountsItem); return this; } /** * The list of references to `OrderReturnDiscount` entities applied to the returned line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderReturnDiscount` applied to the returned line item. On reads, the amount applied is populated. * @return appliedDiscounts **/ @ApiModelProperty(value = "The list of references to `OrderReturnDiscount` entities applied to the returned line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderReturnDiscount` applied to the returned line item. On reads, the amount applied is populated.") public List<OrderLineItemAppliedDiscount> getAppliedDiscounts() { return appliedDiscounts; } public void setAppliedDiscounts(List<OrderLineItemAppliedDiscount> appliedDiscounts) { this.appliedDiscounts = appliedDiscounts; } public OrderReturnLineItem basePriceMoney(Money basePriceMoney) { this.basePriceMoney = basePriceMoney; return this; } /** * The base price for a single unit of the line item. * @return basePriceMoney **/ @ApiModelProperty(value = "The base price for a single unit of the line item.") public Money getBasePriceMoney() { return basePriceMoney; } public void setBasePriceMoney(Money basePriceMoney) { this.basePriceMoney = basePriceMoney; } public OrderReturnLineItem variationTotalPriceMoney(Money variationTotalPriceMoney) { this.variationTotalPriceMoney = variationTotalPriceMoney; return this; } /** * The total price of all item variations returned in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers. * @return variationTotalPriceMoney **/ @ApiModelProperty(value = "The total price of all item variations returned in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers.") public Money getVariationTotalPriceMoney() { return variationTotalPriceMoney; } public void setVariationTotalPriceMoney(Money variationTotalPriceMoney) { this.variationTotalPriceMoney = variationTotalPriceMoney; } public OrderReturnLineItem grossReturnMoney(Money grossReturnMoney) { this.grossReturnMoney = grossReturnMoney; return this; } /** * The gross return amount of money calculated as (item base price + modifiers price) * quantity. * @return grossReturnMoney **/ @ApiModelProperty(value = "The gross return amount of money calculated as (item base price + modifiers price) * quantity.") public Money getGrossReturnMoney() { return grossReturnMoney; } public void setGrossReturnMoney(Money grossReturnMoney) { this.grossReturnMoney = grossReturnMoney; } public OrderReturnLineItem totalTaxMoney(Money totalTaxMoney) { this.totalTaxMoney = totalTaxMoney; return this; } /** * The total tax amount of money to return for the line item. * @return totalTaxMoney **/ @ApiModelProperty(value = "The total tax amount of money to return for the line item.") public Money getTotalTaxMoney() { return totalTaxMoney; } public void setTotalTaxMoney(Money totalTaxMoney) { this.totalTaxMoney = totalTaxMoney; } public OrderReturnLineItem totalDiscountMoney(Money totalDiscountMoney) { this.totalDiscountMoney = totalDiscountMoney; return this; } /** * The total discount amount of money to return for the line item. * @return totalDiscountMoney **/ @ApiModelProperty(value = "The total discount amount of money to return for the line item.") public Money getTotalDiscountMoney() { return totalDiscountMoney; } public void setTotalDiscountMoney(Money totalDiscountMoney) { this.totalDiscountMoney = totalDiscountMoney; } public OrderReturnLineItem totalMoney(Money totalMoney) { this.totalMoney = totalMoney; return this; } /** * The total amount of money to return for this line item. * @return totalMoney **/ @ApiModelProperty(value = "The total amount of money to return for this line item.") public Money getTotalMoney() { return totalMoney; } public void setTotalMoney(Money totalMoney) { this.totalMoney = totalMoney; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } OrderReturnLineItem orderReturnLineItem = (OrderReturnLineItem) o; return Objects.equals(this.uid, orderReturnLineItem.uid) && Objects.equals(this.sourceLineItemUid, orderReturnLineItem.sourceLineItemUid) && Objects.equals(this.name, orderReturnLineItem.name) && Objects.equals(this.quantity, orderReturnLineItem.quantity) && Objects.equals(this.quantityUnit, orderReturnLineItem.quantityUnit) && Objects.equals(this.note, orderReturnLineItem.note) && Objects.equals(this.catalogObjectId, orderReturnLineItem.catalogObjectId) && Objects.equals(this.variationName, orderReturnLineItem.variationName) && Objects.equals(this.returnModifiers, orderReturnLineItem.returnModifiers) && Objects.equals(this.returnTaxes, orderReturnLineItem.returnTaxes) && Objects.equals(this.returnDiscounts, orderReturnLineItem.returnDiscounts) && Objects.equals(this.appliedTaxes, orderReturnLineItem.appliedTaxes) && Objects.equals(this.appliedDiscounts, orderReturnLineItem.appliedDiscounts) && Objects.equals(this.basePriceMoney, orderReturnLineItem.basePriceMoney) && Objects.equals(this.variationTotalPriceMoney, orderReturnLineItem.variationTotalPriceMoney) && Objects.equals(this.grossReturnMoney, orderReturnLineItem.grossReturnMoney) && Objects.equals(this.totalTaxMoney, orderReturnLineItem.totalTaxMoney) && Objects.equals(this.totalDiscountMoney, orderReturnLineItem.totalDiscountMoney) && Objects.equals(this.totalMoney, orderReturnLineItem.totalMoney); } @Override public int hashCode() { return Objects.hash(uid, sourceLineItemUid, name, quantity, quantityUnit, note, catalogObjectId, variationName, returnModifiers, returnTaxes, returnDiscounts, appliedTaxes, appliedDiscounts, basePriceMoney, variationTotalPriceMoney, grossReturnMoney, totalTaxMoney, totalDiscountMoney, totalMoney); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderReturnLineItem {\n"); sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); sb.append(" sourceLineItemUid: ").append(toIndentedString(sourceLineItemUid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); sb.append(" quantityUnit: ").append(toIndentedString(quantityUnit)).append("\n"); sb.append(" note: ").append(toIndentedString(note)).append("\n"); sb.append(" catalogObjectId: ").append(toIndentedString(catalogObjectId)).append("\n"); sb.append(" variationName: ").append(toIndentedString(variationName)).append("\n"); sb.append(" returnModifiers: ").append(toIndentedString(returnModifiers)).append("\n"); sb.append(" returnTaxes: ").append(toIndentedString(returnTaxes)).append("\n"); sb.append(" returnDiscounts: ").append(toIndentedString(returnDiscounts)).append("\n"); sb.append(" appliedTaxes: ").append(toIndentedString(appliedTaxes)).append("\n"); sb.append(" appliedDiscounts: ").append(toIndentedString(appliedDiscounts)).append("\n"); sb.append(" basePriceMoney: ").append(toIndentedString(basePriceMoney)).append("\n"); sb.append(" variationTotalPriceMoney: ").append(toIndentedString(variationTotalPriceMoney)).append("\n"); sb.append(" grossReturnMoney: ").append(toIndentedString(grossReturnMoney)).append("\n"); sb.append(" totalTaxMoney: ").append(toIndentedString(totalTaxMoney)).append("\n"); sb.append(" totalDiscountMoney: ").append(toIndentedString(totalDiscountMoney)).append("\n"); sb.append(" totalMoney: ").append(toIndentedString(totalMoney)).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 "); } }
5,041
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RegisterDomainRequest.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; /** * Defines the parameters that can be included in the body of a request to the __RegisterDomain__ endpoint. */ @ApiModel(description = "Defines the parameters that can be included in the body of a request to the __RegisterDomain__ endpoint.") public class RegisterDomainRequest { @JsonProperty("domain_name") private String domainName = null; public RegisterDomainRequest domainName(String domainName) { this.domainName = domainName; return this; } /** * A domain name as described in RFC-1034 that will be registered with ApplePay * @return domainName **/ @ApiModelProperty(required = true, value = "A domain name as described in RFC-1034 that will be registered with ApplePay") public String getDomainName() { return domainName; } public void setDomainName(String domainName) { this.domainName = domainName; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RegisterDomainRequest registerDomainRequest = (RegisterDomainRequest) o; return Objects.equals(this.domainName, registerDomainRequest.domainName); } @Override public int hashCode() { return Objects.hash(domainName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegisterDomainRequest {\n"); sb.append(" domainName: ").append(toIndentedString(domainName)).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 "); } }
5,042
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/VoidTransactionResponse.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 [VoidTransaction](#endpoint-voidtransaction) endpoint. */ @ApiModel(description = "Defines the fields that are included in the response body of a request to the [VoidTransaction](#endpoint-voidtransaction) endpoint.") public class VoidTransactionResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); public VoidTransactionResponse errors(List<Error> errors) { this.errors = errors; return this; } public VoidTransactionResponse 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; } VoidTransactionResponse voidTransactionResponse = (VoidTransactionResponse) o; return Objects.equals(this.errors, voidTransactionResponse.errors); } @Override public int hashCode() { return Objects.hash(errors); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VoidTransactionResponse {\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 "); } }
5,043
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/OrderFulfillment.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.OrderFulfillmentPickupDetails; import com.squareup.connect.models.OrderFulfillmentShipmentDetails; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Contains details on how to fulfill this order. */ @ApiModel(description = "Contains details on how to fulfill this order.") public class OrderFulfillment { @JsonProperty("uid") private String uid = null; @JsonProperty("type") private String type = null; @JsonProperty("state") private String state = null; @JsonProperty("metadata") private Map<String, String> metadata = new HashMap<String, String>(); @JsonProperty("pickup_details") private OrderFulfillmentPickupDetails pickupDetails = null; @JsonProperty("shipment_details") private OrderFulfillmentShipmentDetails shipmentDetails = null; public OrderFulfillment uid(String uid) { this.uid = uid; return this; } /** * Unique ID that identifies the fulfillment only within this order. * Note: This model is in beta. * @return uid **/ @ApiModelProperty(value = "Unique ID that identifies the fulfillment only within this order.") public String getUid() { return uid; } public void setUid(String uid) { this.uid = uid; } public OrderFulfillment type(String type) { this.type = type; return this; } /** * The type of the fulfillment. See [OrderFulfillmentType](#type-orderfulfillmenttype) for possible values * @return type **/ @ApiModelProperty(value = "The type of the fulfillment. See [OrderFulfillmentType](#type-orderfulfillmenttype) for possible values") public String getType() { return type; } public void setType(String type) { this.type = type; } public OrderFulfillment state(String state) { this.state = state; return this; } /** * The state of the fulfillment. See [OrderFulfillmentState](#type-orderfulfillmentstate) for possible values * @return state **/ @ApiModelProperty(value = "The state of the fulfillment. See [OrderFulfillmentState](#type-orderfulfillmentstate) for possible values") public String getState() { return state; } public void setState(String state) { this.state = state; } public OrderFulfillment metadata(Map<String, String> metadata) { this.metadata = metadata; return this; } public OrderFulfillment putMetadataItem(String key, String metadataItem) { this.metadata.put(key, metadataItem); return this; } /** * Application-defined data attached to this fulfillment. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. * Note: This model is in beta. * @return metadata **/ @ApiModelProperty(value = "Application-defined data attached to this fulfillment. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information.") public Map<String, String> getMetadata() { return metadata; } public void setMetadata(Map<String, String> metadata) { this.metadata = metadata; } public OrderFulfillment pickupDetails(OrderFulfillmentPickupDetails pickupDetails) { this.pickupDetails = pickupDetails; return this; } /** * Contains details for a pickup fulfillment. Required when fulfillment type is `PICKUP`. * @return pickupDetails **/ @ApiModelProperty(value = "Contains details for a pickup fulfillment. Required when fulfillment type is `PICKUP`.") public OrderFulfillmentPickupDetails getPickupDetails() { return pickupDetails; } public void setPickupDetails(OrderFulfillmentPickupDetails pickupDetails) { this.pickupDetails = pickupDetails; } public OrderFulfillment shipmentDetails(OrderFulfillmentShipmentDetails shipmentDetails) { this.shipmentDetails = shipmentDetails; return this; } /** * Contains details for a shipment fulfillment. Required when fulfillment type is `SHIPMENT`. A shipment fulfillment's relationship to fulfillment `state`: `PROPOSED`: A shipment is requested. `RESERVED`: Fulfillment accepted. Shipment processing. `PREPARED`: Shipment packaged. Shipping label created. `COMPLETED`: Package has been shipped. `CANCELED`: Shipment has been canceled. `FAILED`: Shipment has failed. * @return shipmentDetails **/ @ApiModelProperty(value = "Contains details for a shipment fulfillment. Required when fulfillment type is `SHIPMENT`. A shipment fulfillment's relationship to fulfillment `state`: `PROPOSED`: A shipment is requested. `RESERVED`: Fulfillment accepted. Shipment processing. `PREPARED`: Shipment packaged. Shipping label created. `COMPLETED`: Package has been shipped. `CANCELED`: Shipment has been canceled. `FAILED`: Shipment has failed.") public OrderFulfillmentShipmentDetails getShipmentDetails() { return shipmentDetails; } public void setShipmentDetails(OrderFulfillmentShipmentDetails shipmentDetails) { this.shipmentDetails = shipmentDetails; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } OrderFulfillment orderFulfillment = (OrderFulfillment) o; return Objects.equals(this.uid, orderFulfillment.uid) && Objects.equals(this.type, orderFulfillment.type) && Objects.equals(this.state, orderFulfillment.state) && Objects.equals(this.metadata, orderFulfillment.metadata) && Objects.equals(this.pickupDetails, orderFulfillment.pickupDetails) && Objects.equals(this.shipmentDetails, orderFulfillment.shipmentDetails); } @Override public int hashCode() { return Objects.hash(uid, type, state, metadata, pickupDetails, shipmentDetails); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderFulfillment {\n"); sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" pickupDetails: ").append(toIndentedString(pickupDetails)).append("\n"); sb.append(" shipmentDetails: ").append(toIndentedString(shipmentDetails)).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 "); } }
5,044
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RenewTokenRequest.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 RenewTokenRequest { @JsonProperty("access_token") private String accessToken = null; public RenewTokenRequest accessToken(String accessToken) { this.accessToken = accessToken; return this; } /** * The token you want to renew. * @return accessToken **/ @ApiModelProperty(value = "The token you want to renew.") public String getAccessToken() { return accessToken; } public void setAccessToken(String accessToken) { this.accessToken = accessToken; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RenewTokenRequest renewTokenRequest = (RenewTokenRequest) o; return Objects.equals(this.accessToken, renewTokenRequest.accessToken); } @Override public int hashCode() { return Objects.hash(accessToken); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RenewTokenRequest {\n"); sb.append(" accessToken: ").append(toIndentedString(accessToken)).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 "); } }
5,045
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RetrieveTransactionRequest.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 RetrieveTransactionRequest { @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 RetrieveTransactionRequest {\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 "); } }
5,046
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/TenderCardDetails.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 io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * Represents additional details of a tender with &#x60;type&#x60; &#x60;CARD&#x60; or &#x60;SQUARE_GIFT_CARD&#x60; */ @ApiModel(description = "Represents additional details of a tender with `type` `CARD` or `SQUARE_GIFT_CARD`") public class TenderCardDetails { @JsonProperty("status") private String status = null; @JsonProperty("card") private Card card = null; @JsonProperty("entry_method") private String entryMethod = null; public TenderCardDetails status(String status) { this.status = status; return this; } /** * The credit card payment's current state (such as `AUTHORIZED` or `CAPTURED`). See `TenderCardDetailsStatus` for possible values. See [TenderCardDetailsStatus](#type-tendercarddetailsstatus) for possible values * @return status **/ @ApiModelProperty(value = "The credit card payment's current state (such as `AUTHORIZED` or `CAPTURED`). See `TenderCardDetailsStatus` for possible values. See [TenderCardDetailsStatus](#type-tendercarddetailsstatus) for possible values") public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public TenderCardDetails 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 TenderCardDetails entryMethod(String entryMethod) { this.entryMethod = entryMethod; return this; } /** * The method used to enter the card's details for the transaction. See [TenderCardDetailsEntryMethod](#type-tendercarddetailsentrymethod) for possible values * @return entryMethod **/ @ApiModelProperty(value = "The method used to enter the card's details for the transaction. See [TenderCardDetailsEntryMethod](#type-tendercarddetailsentrymethod) for possible values") public String getEntryMethod() { return entryMethod; } public void setEntryMethod(String entryMethod) { this.entryMethod = entryMethod; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } TenderCardDetails tenderCardDetails = (TenderCardDetails) o; return Objects.equals(this.status, tenderCardDetails.status) && Objects.equals(this.card, tenderCardDetails.card) && Objects.equals(this.entryMethod, tenderCardDetails.entryMethod); } @Override public int hashCode() { return Objects.hash(status, card, entryMethod); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TenderCardDetails {\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("}"); 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 "); } }
5,047
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1RetrieveModifierListRequest.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 V1RetrieveModifierListRequest { @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 V1RetrieveModifierListRequest {\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 "); } }
5,048
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogModifierList.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; import java.util.ArrayList; import java.util.List; /** * A modifier list in the Catalog object model. A &#x60;CatalogModifierList&#x60; contains &#x60;CatalogModifier&#x60; objects that can be applied to a &#x60;CatalogItem&#x60; at the time of sale. For example, a modifier list \&quot;Condiments\&quot; that would apply to a \&quot;Hot Dog\&quot; &#x60;CatalogItem&#x60; might contain &#x60;CatalogModifier&#x60;s \&quot;Ketchup\&quot;, \&quot;Mustard\&quot;, and \&quot;Relish\&quot;. The &#x60;selection_type&#x60; field specifies whether or not multiple selections from the modifier list are allowed. */ @ApiModel(description = "A modifier list in the Catalog object model. A `CatalogModifierList` contains `CatalogModifier` objects that can be applied to a `CatalogItem` at the time of sale. For example, a modifier list \"Condiments\" that would apply to a \"Hot Dog\" `CatalogItem` might contain `CatalogModifier`s \"Ketchup\", \"Mustard\", and \"Relish\". The `selection_type` field specifies whether or not multiple selections from the modifier list are allowed.") public class CatalogModifierList { @JsonProperty("name") private String name = null; @JsonProperty("selection_type") private String selectionType = null; @JsonProperty("modifiers") private List<CatalogObject> modifiers = new ArrayList<CatalogObject>(); public CatalogModifierList name(String name) { this.name = name; return this; } /** * A searchable name for the `CatalogModifierList`. This field has max length of 255 Unicode code points. * @return name **/ @ApiModelProperty(value = "A searchable name for the `CatalogModifierList`. This field has max length of 255 Unicode code points.") public String getName() { return name; } public void setName(String name) { this.name = name; } public CatalogModifierList selectionType(String selectionType) { this.selectionType = selectionType; return this; } /** * Indicates whether multiple options from the `CatalogModifierList` can be applied to a single `CatalogItem`. See [CatalogModifierListSelectionType](#type-catalogmodifierlistselectiontype) for possible values * @return selectionType **/ @ApiModelProperty(value = "Indicates whether multiple options from the `CatalogModifierList` can be applied to a single `CatalogItem`. See [CatalogModifierListSelectionType](#type-catalogmodifierlistselectiontype) for possible values") public String getSelectionType() { return selectionType; } public void setSelectionType(String selectionType) { this.selectionType = selectionType; } public CatalogModifierList modifiers(List<CatalogObject> modifiers) { this.modifiers = modifiers; return this; } public CatalogModifierList addModifiersItem(CatalogObject modifiersItem) { this.modifiers.add(modifiersItem); return this; } /** * The options included in the `CatalogModifierList`. You must include at least one `CatalogModifier`. Each CatalogObject must have type `MODIFIER` and contain `CatalogModifier` data. * @return modifiers **/ @ApiModelProperty(value = "The options included in the `CatalogModifierList`. You must include at least one `CatalogModifier`. Each CatalogObject must have type `MODIFIER` and contain `CatalogModifier` data.") public List<CatalogObject> getModifiers() { return modifiers; } public void setModifiers(List<CatalogObject> modifiers) { this.modifiers = modifiers; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CatalogModifierList catalogModifierList = (CatalogModifierList) o; return Objects.equals(this.name, catalogModifierList.name) && Objects.equals(this.selectionType, catalogModifierList.selectionType) && Objects.equals(this.modifiers, catalogModifierList.modifiers); } @Override public int hashCode() { return Objects.hash(name, selectionType, modifiers); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogModifierList {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" selectionType: ").append(toIndentedString(selectionType)).append("\n"); sb.append(" modifiers: ").append(toIndentedString(modifiers)).append("\n"); 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 "); } }
5,049
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1DeleteDiscountRequest.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 V1DeleteDiscountRequest { @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 V1DeleteDiscountRequest {\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 "); } }
5,050
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1RetrieveItemRequest.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 V1RetrieveItemRequest { @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 V1RetrieveItemRequest {\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 "); } }
5,051
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListInventoryRequest.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 V1ListInventoryRequest { @JsonProperty("limit") private Integer limit = null; @JsonProperty("batch_token") private String batchToken = null; public V1ListInventoryRequest limit(Integer limit) { this.limit = limit; return this; } /** * The maximum number of inventory entries to return in a single response. This value cannot exceed 1000. * @return limit **/ @ApiModelProperty(value = "The maximum number of inventory entries to return in a single response. This value cannot exceed 1000.") public Integer getLimit() { return limit; } public void setLimit(Integer limit) { this.limit = limit; } public V1ListInventoryRequest 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; } V1ListInventoryRequest v1ListInventoryRequest = (V1ListInventoryRequest) o; return Objects.equals(this.limit, v1ListInventoryRequest.limit) && Objects.equals(this.batchToken, v1ListInventoryRequest.batchToken); } @Override public int hashCode() { return Objects.hash(limit, batchToken); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ListInventoryRequest {\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 "); } }
5,052
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1DeletePageCellRequest.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 V1DeletePageCellRequest { @JsonProperty("row") private String row = null; @JsonProperty("column") private String column = null; public V1DeletePageCellRequest row(String row) { this.row = row; return this; } /** * The row of the cell to clear. Always an integer between 0 and 4, inclusive. Row 0 is the top row. * @return row **/ @ApiModelProperty(value = "The row of the cell to clear. Always an integer between 0 and 4, inclusive. Row 0 is the top row.") public String getRow() { return row; } public void setRow(String row) { this.row = row; } public V1DeletePageCellRequest column(String column) { this.column = column; return this; } /** * The column of the cell to clear. Always an integer between 0 and 4, inclusive. Column 0 is the leftmost column. * @return column **/ @ApiModelProperty(value = "The column of the cell to clear. Always an integer between 0 and 4, inclusive. Column 0 is the leftmost column.") public String getColumn() { return column; } public void setColumn(String column) { this.column = column; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } V1DeletePageCellRequest v1DeletePageCellRequest = (V1DeletePageCellRequest) o; return Objects.equals(this.row, v1DeletePageCellRequest.row) && Objects.equals(this.column, v1DeletePageCellRequest.column); } @Override public int hashCode() { return Objects.hash(row, column); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DeletePageCellRequest {\n"); sb.append(" row: ").append(toIndentedString(row)).append("\n"); sb.append(" column: ").append(toIndentedString(column)).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 "); } }
5,053
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1RetrieveEmployeeRoleRequest.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 V1RetrieveEmployeeRoleRequest { @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 V1RetrieveEmployeeRoleRequest {\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 "); } }
5,054
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/EmployeeWage.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; /** * The hourly wage rate that an employee will earn on a &#x60;Shift&#x60; for doing the job specified by the &#x60;title&#x60; property of this object. */ @ApiModel(description = "The hourly wage rate that an employee will earn on a `Shift` for doing the job specified by the `title` property of this object.") public class EmployeeWage { @JsonProperty("id") private String id = null; @JsonProperty("employee_id") private String employeeId = null; @JsonProperty("title") private String title = null; @JsonProperty("hourly_rate") private Money hourlyRate = null; public EmployeeWage 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 EmployeeWage employeeId(String employeeId) { this.employeeId = employeeId; return this; } /** * The `Employee` that this wage is assigned to. * @return employeeId **/ @ApiModelProperty(required = true, value = "The `Employee` that this wage is assigned to.") public String getEmployeeId() { return employeeId; } public void setEmployeeId(String employeeId) { this.employeeId = employeeId; } public EmployeeWage title(String title) { this.title = title; return this; } /** * The job title that this wage relates to. * @return title **/ @ApiModelProperty(value = "The job title that this wage relates to.") public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public EmployeeWage hourlyRate(Money hourlyRate) { this.hourlyRate = hourlyRate; return this; } /** * Can be a custom-set hourly wage or the calculated effective hourly wage based on annual wage and hours worked per week. * @return hourlyRate **/ @ApiModelProperty(value = "Can be a custom-set hourly wage or the calculated effective hourly wage based on annual wage and hours worked per week.") public Money getHourlyRate() { return hourlyRate; } public void setHourlyRate(Money hourlyRate) { this.hourlyRate = hourlyRate; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } EmployeeWage employeeWage = (EmployeeWage) o; return Objects.equals(this.id, employeeWage.id) && Objects.equals(this.employeeId, employeeWage.employeeId) && Objects.equals(this.title, employeeWage.title) && Objects.equals(this.hourlyRate, employeeWage.hourlyRate); } @Override public int hashCode() { return Objects.hash(id, employeeId, title, hourlyRate); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EmployeeWage {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" employeeId: ").append(toIndentedString(employeeId)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" hourlyRate: ").append(toIndentedString(hourlyRate)).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 "); } }
5,055
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1BankAccount.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; /** * V1BankAccount */ @ApiModel(description = "V1BankAccount") public class V1BankAccount { @JsonProperty("id") private String id = null; @JsonProperty("merchant_id") private String merchantId = null; @JsonProperty("bank_name") private String bankName = null; @JsonProperty("name") private String name = null; @JsonProperty("routing_number") private String routingNumber = null; @JsonProperty("account_number_suffix") private String accountNumberSuffix = null; @JsonProperty("currency_code") private String currencyCode = null; @JsonProperty("type") private String type = null; public V1BankAccount id(String id) { this.id = id; return this; } /** * The bank account's Square-issued ID. * @return id **/ @ApiModelProperty(value = "The bank account's Square-issued ID.") public String getId() { return id; } public void setId(String id) { this.id = id; } public V1BankAccount merchantId(String merchantId) { this.merchantId = merchantId; return this; } /** * The Square-issued ID of the merchant associated with the bank account. * @return merchantId **/ @ApiModelProperty(value = "The Square-issued ID of the merchant associated with the bank account.") public String getMerchantId() { return merchantId; } public void setMerchantId(String merchantId) { this.merchantId = merchantId; } public V1BankAccount bankName(String bankName) { this.bankName = bankName; return this; } /** * The name of the bank that manages the account. * @return bankName **/ @ApiModelProperty(value = "The name of the bank that manages the account.") public String getBankName() { return bankName; } public void setBankName(String bankName) { this.bankName = bankName; } public V1BankAccount name(String name) { this.name = name; return this; } /** * The name associated with the bank account. * @return name **/ @ApiModelProperty(value = "The name associated with the bank account.") public String getName() { return name; } public void setName(String name) { this.name = name; } public V1BankAccount routingNumber(String routingNumber) { this.routingNumber = routingNumber; return this; } /** * The bank account's routing number. * @return routingNumber **/ @ApiModelProperty(value = "The bank account's routing number.") public String getRoutingNumber() { return routingNumber; } public void setRoutingNumber(String routingNumber) { this.routingNumber = routingNumber; } public V1BankAccount accountNumberSuffix(String accountNumberSuffix) { this.accountNumberSuffix = accountNumberSuffix; return this; } /** * The last few digits of the bank account number. * @return accountNumberSuffix **/ @ApiModelProperty(value = "The last few digits of the bank account number.") public String getAccountNumberSuffix() { return accountNumberSuffix; } public void setAccountNumberSuffix(String accountNumberSuffix) { this.accountNumberSuffix = accountNumberSuffix; } public V1BankAccount currencyCode(String currencyCode) { this.currencyCode = currencyCode; return this; } /** * The currency code of the currency associated with the bank account, in ISO 4217 format. For example, the currency code for US dollars is USD. * @return currencyCode **/ @ApiModelProperty(value = "The currency code of the currency associated with the bank 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 V1BankAccount type(String type) { this.type = type; return this; } /** * The bank account's type (for example, savings or checking). See [V1BankAccountType](#type-v1bankaccounttype) for possible values * @return type **/ @ApiModelProperty(value = "The bank account's type (for example, savings or checking). See [V1BankAccountType](#type-v1bankaccounttype) for possible values") public String getType() { return type; } public void setType(String type) { this.type = type; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } V1BankAccount v1BankAccount = (V1BankAccount) o; return Objects.equals(this.id, v1BankAccount.id) && Objects.equals(this.merchantId, v1BankAccount.merchantId) && Objects.equals(this.bankName, v1BankAccount.bankName) && Objects.equals(this.name, v1BankAccount.name) && Objects.equals(this.routingNumber, v1BankAccount.routingNumber) && Objects.equals(this.accountNumberSuffix, v1BankAccount.accountNumberSuffix) && Objects.equals(this.currencyCode, v1BankAccount.currencyCode) && Objects.equals(this.type, v1BankAccount.type); } @Override public int hashCode() { return Objects.hash(id, merchantId, bankName, name, routingNumber, accountNumberSuffix, currencyCode, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1BankAccount {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); sb.append(" bankName: ").append(toIndentedString(bankName)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" routingNumber: ").append(toIndentedString(routingNumber)).append("\n"); sb.append(" accountNumberSuffix: ").append(toIndentedString(accountNumberSuffix)).append("\n"); sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).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 "); } }
5,056
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/OrderServiceCharge.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.OrderLineItemAppliedTax; import com.squareup.connect.models.OrderLineItemTax; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Represents a service charge applied to an order. */ @ApiModel(description = "Represents a service charge applied to an order.") public class OrderServiceCharge { @JsonProperty("uid") private String uid = null; @JsonProperty("name") private String name = null; @JsonProperty("catalog_object_id") private String catalogObjectId = null; @JsonProperty("percentage") private String percentage = null; @JsonProperty("amount_money") private Money amountMoney = null; @JsonProperty("applied_money") private Money appliedMoney = null; @JsonProperty("total_money") private Money totalMoney = null; @JsonProperty("total_tax_money") private Money totalTaxMoney = null; @JsonProperty("calculation_phase") private String calculationPhase = null; @JsonProperty("taxable") private Boolean taxable = null; @JsonProperty("taxes") private List<OrderLineItemTax> taxes = new ArrayList<OrderLineItemTax>(); @JsonProperty("applied_taxes") private List<OrderLineItemAppliedTax> appliedTaxes = new ArrayList<OrderLineItemAppliedTax>(); @JsonProperty("metadata") private Map<String, String> metadata = new HashMap<String, String>(); public OrderServiceCharge uid(String uid) { this.uid = uid; return this; } /** * Unique ID that identifies the service charge only within this order. * Note: This model is in beta. * @return uid **/ @ApiModelProperty(value = "Unique ID that identifies the service charge only within this order.") public String getUid() { return uid; } public void setUid(String uid) { this.uid = uid; } public OrderServiceCharge name(String name) { this.name = name; return this; } /** * The name of the service charge. * @return name **/ @ApiModelProperty(value = "The name of the service charge.") public String getName() { return name; } public void setName(String name) { this.name = name; } public OrderServiceCharge catalogObjectId(String catalogObjectId) { this.catalogObjectId = catalogObjectId; return this; } /** * The catalog object ID referencing the service charge `CatalogObject`. * @return catalogObjectId **/ @ApiModelProperty(value = "The catalog object ID referencing the service charge `CatalogObject`.") public String getCatalogObjectId() { return catalogObjectId; } public void setCatalogObjectId(String catalogObjectId) { this.catalogObjectId = catalogObjectId; } public OrderServiceCharge percentage(String percentage) { this.percentage = percentage; return this; } /** * The service charge percentage as a string representation of a decimal number. For example, `\"7.25\"` indicates a service charge of 7.25%. Exactly 1 of `percentage` or `amount_money` should be set. * @return percentage **/ @ApiModelProperty(value = "The service charge percentage as a string representation of a decimal number. For example, `\"7.25\"` indicates a service charge of 7.25%. Exactly 1 of `percentage` or `amount_money` should be set.") public String getPercentage() { return percentage; } public void setPercentage(String percentage) { this.percentage = percentage; } public OrderServiceCharge amountMoney(Money amountMoney) { this.amountMoney = amountMoney; return this; } /** * The amount of a non-percentage based service charge. Exactly one of `percentage` or `amount_money` should be set. * @return amountMoney **/ @ApiModelProperty(value = "The amount of a non-percentage based service charge. Exactly one of `percentage` or `amount_money` should be set.") public Money getAmountMoney() { return amountMoney; } public void setAmountMoney(Money amountMoney) { this.amountMoney = amountMoney; } public OrderServiceCharge appliedMoney(Money appliedMoney) { this.appliedMoney = appliedMoney; return this; } /** * The amount of money applied to the order by the service charge, including any inclusive tax amounts, as calculated by Square. - For fixed-amount service charges, `applied_money` is equal to `amount_money`. - For percentage-based service charges, `applied_money` is the money calculated using the percentage. * @return appliedMoney **/ @ApiModelProperty(value = "The amount of money applied to the order by the service charge, including any inclusive tax amounts, as calculated by Square. - For fixed-amount service charges, `applied_money` is equal to `amount_money`. - For percentage-based service charges, `applied_money` is the money calculated using the percentage.") public Money getAppliedMoney() { return appliedMoney; } public void setAppliedMoney(Money appliedMoney) { this.appliedMoney = appliedMoney; } public OrderServiceCharge totalMoney(Money totalMoney) { this.totalMoney = totalMoney; return this; } /** * The total amount of money to collect for the service charge. __Note__: if an inclusive tax is applied to the service charge, `total_money` __does not__ equal `applied_money` plus `total_tax_money` since the inclusive tax amount will already be included in both `applied_money` and `total_tax_money`. * @return totalMoney **/ @ApiModelProperty(value = "The total amount of money to collect for the service charge. __Note__: if an inclusive tax is applied to the service charge, `total_money` __does not__ equal `applied_money` plus `total_tax_money` since the inclusive tax amount will already be included in both `applied_money` and `total_tax_money`.") public Money getTotalMoney() { return totalMoney; } public void setTotalMoney(Money totalMoney) { this.totalMoney = totalMoney; } public OrderServiceCharge totalTaxMoney(Money totalTaxMoney) { this.totalTaxMoney = totalTaxMoney; return this; } /** * The total amount of tax money to collect for the service charge. * @return totalTaxMoney **/ @ApiModelProperty(value = "The total amount of tax money to collect for the service charge.") public Money getTotalTaxMoney() { return totalTaxMoney; } public void setTotalTaxMoney(Money totalTaxMoney) { this.totalTaxMoney = totalTaxMoney; } public OrderServiceCharge calculationPhase(String calculationPhase) { this.calculationPhase = calculationPhase; return this; } /** * The calculation phase at which to apply the service charge. See [OrderServiceChargeCalculationPhase](#type-orderservicechargecalculationphase) for possible values * @return calculationPhase **/ @ApiModelProperty(value = "The calculation phase at which to apply the service charge. See [OrderServiceChargeCalculationPhase](#type-orderservicechargecalculationphase) for possible values") public String getCalculationPhase() { return calculationPhase; } public void setCalculationPhase(String calculationPhase) { this.calculationPhase = calculationPhase; } public OrderServiceCharge taxable(Boolean taxable) { this.taxable = taxable; return this; } /** * Indicates whether the service charge can be taxed. If set to `true`, order-level taxes automatically apply to the service charge. Note that service charges calculated in the `TOTAL_PHASE` cannot be marked as taxable. * @return taxable **/ @ApiModelProperty(value = "Indicates whether the service charge can be taxed. If set to `true`, order-level taxes automatically apply to the service charge. Note that service charges calculated in the `TOTAL_PHASE` cannot be marked as taxable.") public Boolean getTaxable() { return taxable; } public void setTaxable(Boolean taxable) { this.taxable = taxable; } public OrderServiceCharge taxes(List<OrderLineItemTax> taxes) { this.taxes = taxes; return this; } public OrderServiceCharge addTaxesItem(OrderLineItemTax taxesItem) { this.taxes.add(taxesItem); return this; } /** * A list of taxes applied to this service charge. On read or retrieve, this list includes both item-level taxes and any order-level taxes apportioned to this service charge. When creating an Order, set your service charge-level taxes in this list. By default, order-level taxes apply to service charges calculated in the `SUBTOTAL_PHASE` if `taxable` is set to `true`. This field has been deprecated in favour of `applied_taxes`. Usage of both this field and `applied_taxes` when creating an order will result in an error. Usage of this field when sending requests to the UpdateOrder endpoint will result in an error. * @return taxes **/ @ApiModelProperty(value = "A list of taxes applied to this service charge. On read or retrieve, this list includes both item-level taxes and any order-level taxes apportioned to this service charge. When creating an Order, set your service charge-level taxes in this list. By default, order-level taxes apply to service charges calculated in the `SUBTOTAL_PHASE` if `taxable` is set to `true`. This field has been deprecated in favour of `applied_taxes`. Usage of both this field and `applied_taxes` when creating an order will result in an error. Usage of this field when sending requests to the UpdateOrder endpoint will result in an error.") @Deprecated public List<OrderLineItemTax> getTaxes() { return taxes; } public void setTaxes(List<OrderLineItemTax> taxes) { this.taxes = taxes; } public OrderServiceCharge appliedTaxes(List<OrderLineItemAppliedTax> appliedTaxes) { this.appliedTaxes = appliedTaxes; return this; } public OrderServiceCharge addAppliedTaxesItem(OrderLineItemAppliedTax appliedTaxesItem) { this.appliedTaxes.add(appliedTaxesItem); return this; } /** * The list of references to taxes applied to this service charge. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderLineItemTax` that is being applied to this service charge. On reads, the amount applied is populated. An `OrderLineItemAppliedTax` will be automatically created on every taxable service charge for all `ORDER` scoped taxes that are added to the order. `OrderLineItemAppliedTax` records for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any taxable service charge. Taxable service charges have the `taxable` field set to true and calculated in the `SUBTOTAL_PHASE`. To change the amount of a tax, modify the referenced top-level tax. * Note: This model is in beta. * @return appliedTaxes **/ @ApiModelProperty(value = "The list of references to taxes applied to this service charge. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderLineItemTax` that is being applied to this service charge. On reads, the amount applied is populated. An `OrderLineItemAppliedTax` will be automatically created on every taxable service charge for all `ORDER` scoped taxes that are added to the order. `OrderLineItemAppliedTax` records for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any taxable service charge. Taxable service charges have the `taxable` field set to true and calculated in the `SUBTOTAL_PHASE`. To change the amount of a tax, modify the referenced top-level tax.") public List<OrderLineItemAppliedTax> getAppliedTaxes() { return appliedTaxes; } public void setAppliedTaxes(List<OrderLineItemAppliedTax> appliedTaxes) { this.appliedTaxes = appliedTaxes; } public OrderServiceCharge metadata(Map<String, String> metadata) { this.metadata = metadata; return this; } public OrderServiceCharge putMetadataItem(String key, String metadataItem) { this.metadata.put(key, metadataItem); return this; } /** * Application-defined data attached to this service charge. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information. * Note: This model is in beta. * @return metadata **/ @ApiModelProperty(value = "Application-defined data attached to this service charge. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (personally identifiable information, card details, etc.). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries may also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a max length of 255 characters. An application may have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. See [Metadata](https://developer.squareup.com/docs/build-basics/metadata) for more information.") public Map<String, String> getMetadata() { return metadata; } public void setMetadata(Map<String, String> metadata) { this.metadata = metadata; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } OrderServiceCharge orderServiceCharge = (OrderServiceCharge) o; return Objects.equals(this.uid, orderServiceCharge.uid) && Objects.equals(this.name, orderServiceCharge.name) && Objects.equals(this.catalogObjectId, orderServiceCharge.catalogObjectId) && Objects.equals(this.percentage, orderServiceCharge.percentage) && Objects.equals(this.amountMoney, orderServiceCharge.amountMoney) && Objects.equals(this.appliedMoney, orderServiceCharge.appliedMoney) && Objects.equals(this.totalMoney, orderServiceCharge.totalMoney) && Objects.equals(this.totalTaxMoney, orderServiceCharge.totalTaxMoney) && Objects.equals(this.calculationPhase, orderServiceCharge.calculationPhase) && Objects.equals(this.taxable, orderServiceCharge.taxable) && Objects.equals(this.taxes, orderServiceCharge.taxes) && Objects.equals(this.appliedTaxes, orderServiceCharge.appliedTaxes) && Objects.equals(this.metadata, orderServiceCharge.metadata); } @Override public int hashCode() { return Objects.hash(uid, name, catalogObjectId, percentage, amountMoney, appliedMoney, totalMoney, totalTaxMoney, calculationPhase, taxable, taxes, appliedTaxes, metadata); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderServiceCharge {\n"); sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" catalogObjectId: ").append(toIndentedString(catalogObjectId)).append("\n"); sb.append(" percentage: ").append(toIndentedString(percentage)).append("\n"); sb.append(" amountMoney: ").append(toIndentedString(amountMoney)).append("\n"); sb.append(" appliedMoney: ").append(toIndentedString(appliedMoney)).append("\n"); sb.append(" totalMoney: ").append(toIndentedString(totalMoney)).append("\n"); sb.append(" totalTaxMoney: ").append(toIndentedString(totalTaxMoney)).append("\n"); sb.append(" calculationPhase: ").append(toIndentedString(calculationPhase)).append("\n"); sb.append(" taxable: ").append(toIndentedString(taxable)).append("\n"); sb.append(" taxes: ").append(toIndentedString(taxes)).append("\n"); sb.append(" appliedTaxes: ").append(toIndentedString(appliedTaxes)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).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 "); } }
5,057
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1Variation.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; /** * V1Variation */ @ApiModel(description = "V1Variation") public class V1Variation { @JsonProperty("id") private String id = null; @JsonProperty("name") private String name = null; @JsonProperty("item_id") private String itemId = null; @JsonProperty("ordinal") private Integer ordinal = null; @JsonProperty("pricing_type") private String pricingType = null; @JsonProperty("price_money") private V1Money priceMoney = null; @JsonProperty("sku") private String sku = null; @JsonProperty("track_inventory") private Boolean trackInventory = null; @JsonProperty("inventory_alert_type") private String inventoryAlertType = null; @JsonProperty("inventory_alert_threshold") private Integer inventoryAlertThreshold = null; @JsonProperty("user_data") private String userData = null; @JsonProperty("v2_id") private String v2Id = null; public V1Variation id(String id) { this.id = id; return this; } /** * The item variation's unique ID. * @return id **/ @ApiModelProperty(value = "The item variation's unique ID.") public String getId() { return id; } public void setId(String id) { this.id = id; } public V1Variation name(String name) { this.name = name; return this; } /** * The item variation's name. * @return name **/ @ApiModelProperty(value = "The item variation's name.") public String getName() { return name; } public void setName(String name) { this.name = name; } public V1Variation itemId(String itemId) { this.itemId = itemId; return this; } /** * The ID of the variation's associated item. * @return itemId **/ @ApiModelProperty(value = "The ID of the variation's associated item.") public String getItemId() { return itemId; } public void setItemId(String itemId) { this.itemId = itemId; } public V1Variation ordinal(Integer ordinal) { this.ordinal = ordinal; return this; } /** * Indicates the variation's list position when displayed in Square Point of Sale and the merchant dashboard. If more than one variation for the same item has the same ordinal value, those variations are displayed in alphabetical order * @return ordinal **/ @ApiModelProperty(value = "Indicates the variation's list position when displayed in Square Point of Sale and the merchant dashboard. If more than one variation for the same item has the same ordinal value, those variations are displayed in alphabetical order") public Integer getOrdinal() { return ordinal; } public void setOrdinal(Integer ordinal) { this.ordinal = ordinal; } public V1Variation pricingType(String pricingType) { this.pricingType = pricingType; return this; } /** * Indicates whether the item variation's price is fixed or determined at the time of sale. See [V1VariationPricingType](#type-v1variationpricingtype) for possible values * @return pricingType **/ @ApiModelProperty(value = "Indicates whether the item variation's price is fixed or determined at the time of sale. See [V1VariationPricingType](#type-v1variationpricingtype) for possible values") public String getPricingType() { return pricingType; } public void setPricingType(String pricingType) { this.pricingType = pricingType; } public V1Variation priceMoney(V1Money priceMoney) { this.priceMoney = priceMoney; return this; } /** * The item variation's price, if any. * @return priceMoney **/ @ApiModelProperty(value = "The item variation's price, if any.") public V1Money getPriceMoney() { return priceMoney; } public void setPriceMoney(V1Money priceMoney) { this.priceMoney = priceMoney; } public V1Variation sku(String sku) { this.sku = sku; return this; } /** * The item variation's SKU, if any. * @return sku **/ @ApiModelProperty(value = "The item variation's SKU, if any.") public String getSku() { return sku; } public void setSku(String sku) { this.sku = sku; } public V1Variation trackInventory(Boolean trackInventory) { this.trackInventory = trackInventory; return this; } /** * If true, inventory tracking is active for the variation. * @return trackInventory **/ @ApiModelProperty(value = "If true, inventory tracking is active for the variation.") public Boolean getTrackInventory() { return trackInventory; } public void setTrackInventory(Boolean trackInventory) { this.trackInventory = trackInventory; } public V1Variation inventoryAlertType(String inventoryAlertType) { this.inventoryAlertType = inventoryAlertType; return this; } /** * Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its inventory_alert_threshold. See [V1VariationInventoryAlertType](#type-v1variationinventoryalerttype) for possible values * @return inventoryAlertType **/ @ApiModelProperty(value = "Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its inventory_alert_threshold. See [V1VariationInventoryAlertType](#type-v1variationinventoryalerttype) for possible values") public String getInventoryAlertType() { return inventoryAlertType; } public void setInventoryAlertType(String inventoryAlertType) { this.inventoryAlertType = inventoryAlertType; } public V1Variation inventoryAlertThreshold(Integer inventoryAlertThreshold) { this.inventoryAlertThreshold = inventoryAlertThreshold; return this; } /** * If the inventory quantity for the variation is less than or equal to this value and inventory_alert_type is LOW_QUANTITY, the variation displays an alert in the merchant dashboard. * @return inventoryAlertThreshold **/ @ApiModelProperty(value = "If the inventory quantity for the variation is less than or equal to this value and inventory_alert_type is LOW_QUANTITY, the variation displays an alert in the merchant dashboard.") public Integer getInventoryAlertThreshold() { return inventoryAlertThreshold; } public void setInventoryAlertThreshold(Integer inventoryAlertThreshold) { this.inventoryAlertThreshold = inventoryAlertThreshold; } public V1Variation userData(String userData) { this.userData = userData; return this; } /** * Arbitrary metadata associated with the variation. Cannot exceed 255 characters. * @return userData **/ @ApiModelProperty(value = "Arbitrary metadata associated with the variation. Cannot exceed 255 characters.") public String getUserData() { return userData; } public void setUserData(String userData) { this.userData = userData; } public V1Variation 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; } V1Variation v1Variation = (V1Variation) o; return Objects.equals(this.id, v1Variation.id) && Objects.equals(this.name, v1Variation.name) && Objects.equals(this.itemId, v1Variation.itemId) && Objects.equals(this.ordinal, v1Variation.ordinal) && Objects.equals(this.pricingType, v1Variation.pricingType) && Objects.equals(this.priceMoney, v1Variation.priceMoney) && Objects.equals(this.sku, v1Variation.sku) && Objects.equals(this.trackInventory, v1Variation.trackInventory) && Objects.equals(this.inventoryAlertType, v1Variation.inventoryAlertType) && Objects.equals(this.inventoryAlertThreshold, v1Variation.inventoryAlertThreshold) && Objects.equals(this.userData, v1Variation.userData) && Objects.equals(this.v2Id, v1Variation.v2Id); } @Override public int hashCode() { return Objects.hash(id, name, itemId, ordinal, pricingType, priceMoney, sku, trackInventory, inventoryAlertType, inventoryAlertThreshold, userData, v2Id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Variation {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" itemId: ").append(toIndentedString(itemId)).append("\n"); sb.append(" ordinal: ").append(toIndentedString(ordinal)).append("\n"); sb.append(" pricingType: ").append(toIndentedString(pricingType)).append("\n"); sb.append(" priceMoney: ").append(toIndentedString(priceMoney)).append("\n"); sb.append(" sku: ").append(toIndentedString(sku)).append("\n"); sb.append(" trackInventory: ").append(toIndentedString(trackInventory)).append("\n"); sb.append(" inventoryAlertType: ").append(toIndentedString(inventoryAlertType)).append("\n"); sb.append(" inventoryAlertThreshold: ").append(toIndentedString(inventoryAlertThreshold)).append("\n"); sb.append(" userData: ").append(toIndentedString(userData)).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 "); } }
5,058
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/UpdateCustomerRequest.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 UpdateCustomer endpoint. */ @ApiModel(description = "Defines the body parameters that can be provided in a request to the UpdateCustomer endpoint.") public class UpdateCustomerRequest { @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 UpdateCustomerRequest 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 UpdateCustomerRequest 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 UpdateCustomerRequest 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 UpdateCustomerRequest 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 UpdateCustomerRequest 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 UpdateCustomerRequest 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 UpdateCustomerRequest 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 UpdateCustomerRequest 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 UpdateCustomerRequest 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 UpdateCustomerRequest 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; } UpdateCustomerRequest updateCustomerRequest = (UpdateCustomerRequest) o; return Objects.equals(this.givenName, updateCustomerRequest.givenName) && Objects.equals(this.familyName, updateCustomerRequest.familyName) && Objects.equals(this.companyName, updateCustomerRequest.companyName) && Objects.equals(this.nickname, updateCustomerRequest.nickname) && Objects.equals(this.emailAddress, updateCustomerRequest.emailAddress) && Objects.equals(this.address, updateCustomerRequest.address) && Objects.equals(this.phoneNumber, updateCustomerRequest.phoneNumber) && Objects.equals(this.referenceId, updateCustomerRequest.referenceId) && Objects.equals(this.note, updateCustomerRequest.note) && Objects.equals(this.birthday, updateCustomerRequest.birthday); } @Override public int hashCode() { return Objects.hash(givenName, familyName, companyName, nickname, emailAddress, address, phoneNumber, referenceId, note, birthday); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateCustomerRequest {\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 "); } }
5,059
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RegisterDomainResponse.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 __RegisterDomain__ endpoint. Either &#x60;errors&#x60; or &#x60;status&#x60; will be present in a given response (never both). */ @ApiModel(description = "Defines the fields that are included in the response body of a request to the __RegisterDomain__ endpoint. Either `errors` or `status` will be present in a given response (never both).") public class RegisterDomainResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); @JsonProperty("status") private String status = null; public RegisterDomainResponse errors(List<Error> errors) { this.errors = errors; return this; } public RegisterDomainResponse 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 RegisterDomainResponse status(String status) { this.status = status; return this; } /** * Status of the domain registration. See `RegisterDomainResponseStatus` for possible values. See [RegisterDomainResponseStatus](#type-registerdomainresponsestatus) for possible values * @return status **/ @ApiModelProperty(value = "Status of the domain registration. See `RegisterDomainResponseStatus` for possible values. See [RegisterDomainResponseStatus](#type-registerdomainresponsestatus) for possible values") public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RegisterDomainResponse registerDomainResponse = (RegisterDomainResponse) o; return Objects.equals(this.errors, registerDomainResponse.errors) && Objects.equals(this.status, registerDomainResponse.status); } @Override public int hashCode() { return Objects.hash(errors, status); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegisterDomainResponse {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).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 "); } }
5,060
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateOrderResponse.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 CreateOrder endpoint. One of &#x60;errors&#x60; or &#x60;order&#x60; 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 CreateOrder endpoint. One of `errors` or `order` is present in a given response (never both).") public class CreateOrderResponse { @JsonProperty("order") private Order order = null; @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); public CreateOrderResponse order(Order order) { this.order = order; return this; } /** * The newly created order. * @return order **/ @ApiModelProperty(value = "The newly created order.") public Order getOrder() { return order; } public void setOrder(Order order) { this.order = order; } public CreateOrderResponse errors(List<Error> errors) { this.errors = errors; return this; } public CreateOrderResponse 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; } CreateOrderResponse createOrderResponse = (CreateOrderResponse) o; return Objects.equals(this.order, createOrderResponse.order) && Objects.equals(this.errors, createOrderResponse.errors); } @Override public int hashCode() { return Objects.hash(order, errors); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateOrderResponse {\n"); sb.append(" order: ").append(toIndentedString(order)).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 "); } }
5,061
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1DeleteVariationRequest.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 V1DeleteVariationRequest { @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 V1DeleteVariationRequest {\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 "); } }
5,062
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1RemoveFeeRequest.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 V1RemoveFeeRequest { @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 V1RemoveFeeRequest {\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 "); } }
5,063
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/DeleteShiftResponse.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 &#x60;Shift&#x60;. May contain a set of &#x60;Error&#x60; objects if the request resulted in errors. */ @ApiModel(description = "The response to a request to delete a `Shift`. May contain a set of `Error` objects if the request resulted in errors.") public class DeleteShiftResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); public DeleteShiftResponse errors(List<Error> errors) { this.errors = errors; return this; } public DeleteShiftResponse 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; } DeleteShiftResponse deleteShiftResponse = (DeleteShiftResponse) o; return Objects.equals(this.errors, deleteShiftResponse.errors); } @Override public int hashCode() { return Objects.hash(errors); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteShiftResponse {\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 "); } }
5,064
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/TenderCashDetails.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 the details of a tender with &#x60;type&#x60; &#x60;CASH&#x60;. */ @ApiModel(description = "Represents the details of a tender with `type` `CASH`.") public class TenderCashDetails { @JsonProperty("buyer_tendered_money") private Money buyerTenderedMoney = null; @JsonProperty("change_back_money") private Money changeBackMoney = null; public TenderCashDetails buyerTenderedMoney(Money buyerTenderedMoney) { this.buyerTenderedMoney = buyerTenderedMoney; return this; } /** * The total amount of cash provided by the buyer, before change is given. * @return buyerTenderedMoney **/ @ApiModelProperty(value = "The total amount of cash provided by the buyer, before change is given.") public Money getBuyerTenderedMoney() { return buyerTenderedMoney; } public void setBuyerTenderedMoney(Money buyerTenderedMoney) { this.buyerTenderedMoney = buyerTenderedMoney; } public TenderCashDetails changeBackMoney(Money changeBackMoney) { this.changeBackMoney = changeBackMoney; return this; } /** * The amount of change returned to the buyer. * @return changeBackMoney **/ @ApiModelProperty(value = "The amount of change returned to the buyer.") 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; } TenderCashDetails tenderCashDetails = (TenderCashDetails) o; return Objects.equals(this.buyerTenderedMoney, tenderCashDetails.buyerTenderedMoney) && Objects.equals(this.changeBackMoney, tenderCashDetails.changeBackMoney); } @Override public int hashCode() { return Objects.hash(buyerTenderedMoney, changeBackMoney); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TenderCashDetails {\n"); sb.append(" buyerTenderedMoney: ").append(toIndentedString(buyerTenderedMoney)).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 "); } }
5,065
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogQueryRange.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 CatalogQueryRange { @JsonProperty("attribute_name") private String attributeName = null; @JsonProperty("attribute_min_value") private Long attributeMinValue = null; @JsonProperty("attribute_max_value") private Long attributeMaxValue = null; public CatalogQueryRange 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 CatalogQueryRange attributeMinValue(Long attributeMinValue) { this.attributeMinValue = attributeMinValue; return this; } /** * The desired minimum value for the search attribute (inclusive). * @return attributeMinValue **/ @ApiModelProperty(value = "The desired minimum value for the search attribute (inclusive).") public Long getAttributeMinValue() { return attributeMinValue; } public void setAttributeMinValue(Long attributeMinValue) { this.attributeMinValue = attributeMinValue; } public CatalogQueryRange attributeMaxValue(Long attributeMaxValue) { this.attributeMaxValue = attributeMaxValue; return this; } /** * The desired maximum value for the search attribute (inclusive). * @return attributeMaxValue **/ @ApiModelProperty(value = "The desired maximum value for the search attribute (inclusive).") public Long getAttributeMaxValue() { return attributeMaxValue; } public void setAttributeMaxValue(Long attributeMaxValue) { this.attributeMaxValue = attributeMaxValue; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CatalogQueryRange catalogQueryRange = (CatalogQueryRange) o; return Objects.equals(this.attributeName, catalogQueryRange.attributeName) && Objects.equals(this.attributeMinValue, catalogQueryRange.attributeMinValue) && Objects.equals(this.attributeMaxValue, catalogQueryRange.attributeMaxValue); } @Override public int hashCode() { return Objects.hash(attributeName, attributeMinValue, attributeMaxValue); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogQueryRange {\n"); sb.append(" attributeName: ").append(toIndentedString(attributeName)).append("\n"); sb.append(" attributeMinValue: ").append(toIndentedString(attributeMinValue)).append("\n"); sb.append(" attributeMaxValue: ").append(toIndentedString(attributeMaxValue)).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 "); } }
5,066
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ExternalPaymentDetails.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 EXTERNAL type payments. */ @ApiModel(description = "Additional details about EXTERNAL type payments.") public class ExternalPaymentDetails { @JsonProperty("type") private String type = null; @JsonProperty("source") private String source = null; @JsonProperty("source_id") private String sourceId = null; @JsonProperty("source_fee_money") private Money sourceFeeMoney = null; public ExternalPaymentDetails type(String type) { this.type = type; return this; } /** * The type of External payment which can be one of: CHECK - Paid by a physical check BANK_TRANSFER - Paid by ACH or other bank transfer OTHER_GIFT_CARD - Paid by a non-square gift card CRYPTO - Paid via a crypto currency SQUARE_CASH - Paid via Square Cash app SOCIAL - Venmo, WeChatPay, AliPay, etc. EXTERNAL - A 3rd party application gathered this payment outside of Square EMONEY - A Japanese e-money brand Square doesn’t support CREDIT/DEBIT - A credit/debit card Square doesn’t support OTHER - A type not listed here * @return type **/ @ApiModelProperty(required = true, value = "The type of External payment which can be one of: CHECK - Paid by a physical check BANK_TRANSFER - Paid by ACH or other bank transfer OTHER_GIFT_CARD - Paid by a non-square gift card CRYPTO - Paid via a crypto currency SQUARE_CASH - Paid via Square Cash app SOCIAL - Venmo, WeChatPay, AliPay, etc. EXTERNAL - A 3rd party application gathered this payment outside of Square EMONEY - A Japanese e-money brand Square doesn’t support CREDIT/DEBIT - A credit/debit card Square doesn’t support OTHER - A type not listed here") public String getType() { return type; } public void setType(String type) { this.type = type; } public ExternalPaymentDetails source(String source) { this.source = source; return this; } /** * A description of the source of the external payment, e.g. “Uber Eats”, “Stripe”, “Shopify”. Limit 255 characters * @return source **/ @ApiModelProperty(required = true, value = "A description of the source of the external payment, e.g. “Uber Eats”, “Stripe”, “Shopify”. Limit 255 characters") public String getSource() { return source; } public void setSource(String source) { this.source = source; } public ExternalPaymentDetails sourceId(String sourceId) { this.sourceId = sourceId; return this; } /** * An ID to associate this payment to its originating source Limit 255 characters. * @return sourceId **/ @ApiModelProperty(value = "An ID to associate this payment to its originating source Limit 255 characters.") public String getSourceId() { return sourceId; } public void setSourceId(String sourceId) { this.sourceId = sourceId; } public ExternalPaymentDetails sourceFeeMoney(Money sourceFeeMoney) { this.sourceFeeMoney = sourceFeeMoney; return this; } /** * The total of fees paid to the source. (amount_money - source_fee_money) = net money to the merchant * @return sourceFeeMoney **/ @ApiModelProperty(value = "The total of fees paid to the source. (amount_money - source_fee_money) = net money to the merchant") public Money getSourceFeeMoney() { return sourceFeeMoney; } public void setSourceFeeMoney(Money sourceFeeMoney) { this.sourceFeeMoney = sourceFeeMoney; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ExternalPaymentDetails externalPaymentDetails = (ExternalPaymentDetails) o; return Objects.equals(this.type, externalPaymentDetails.type) && Objects.equals(this.source, externalPaymentDetails.source) && Objects.equals(this.sourceId, externalPaymentDetails.sourceId) && Objects.equals(this.sourceFeeMoney, externalPaymentDetails.sourceFeeMoney); } @Override public int hashCode() { return Objects.hash(type, source, sourceId, sourceFeeMoney); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExternalPaymentDetails {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n"); sb.append(" sourceFeeMoney: ").append(toIndentedString(sourceFeeMoney)).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 "); } }
5,067
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CompletePaymentResponse.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; /** * Return value from a [CompletePayment](#endpoint-payments-completepayment) call. */ @ApiModel(description = "Return value from a [CompletePayment](#endpoint-payments-completepayment) call.") public class CompletePaymentResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); @JsonProperty("payment") private Payment payment = null; public CompletePaymentResponse errors(List<Error> errors) { this.errors = errors; return this; } public CompletePaymentResponse 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 CompletePaymentResponse payment(Payment payment) { this.payment = payment; return this; } /** * The successfully completed `Payment`. * @return payment **/ @ApiModelProperty(value = "The successfully completed `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; } CompletePaymentResponse completePaymentResponse = (CompletePaymentResponse) o; return Objects.equals(this.errors, completePaymentResponse.errors) && Objects.equals(this.payment, completePaymentResponse.payment); } @Override public int hashCode() { return Objects.hash(errors, payment); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CompletePaymentResponse {\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 "); } }
5,068
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1Item.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 com.squareup.connect.models.V1Fee; import com.squareup.connect.models.V1ItemImage; import com.squareup.connect.models.V1ModifierList; import com.squareup.connect.models.V1Variation; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; /** * V1Item */ @ApiModel(description = "V1Item") public class V1Item { @JsonProperty("id") private String id = null; @JsonProperty("name") private String name = null; @JsonProperty("description") private String description = null; @JsonProperty("type") private String type = null; @JsonProperty("color") private String color = null; @JsonProperty("abbreviation") private String abbreviation = null; @JsonProperty("visibility") private String visibility = null; @JsonProperty("available_online") private Boolean availableOnline = null; @JsonProperty("master_image") private V1ItemImage masterImage = null; @JsonProperty("category") private V1Category category = null; @JsonProperty("variations") private List<V1Variation> variations = new ArrayList<V1Variation>(); @JsonProperty("modifier_lists") private List<V1ModifierList> modifierLists = new ArrayList<V1ModifierList>(); @JsonProperty("fees") private List<V1Fee> fees = new ArrayList<V1Fee>(); @JsonProperty("taxable") private Boolean taxable = null; @JsonProperty("category_id") private String categoryId = null; @JsonProperty("available_for_pickup") private Boolean availableForPickup = null; @JsonProperty("v2_id") private String v2Id = null; public V1Item id(String id) { this.id = id; return this; } /** * The item's ID. Must be unique among all entity IDs ever provided on behalf of the merchant. You can never reuse an ID. This value can include alphanumeric characters, dashes (-), and underscores (_). * @return id **/ @ApiModelProperty(value = "The item's ID. Must be unique among all entity IDs ever provided on behalf of the merchant. You can never reuse an ID. This value can include alphanumeric characters, dashes (-), and underscores (_).") public String getId() { return id; } public void setId(String id) { this.id = id; } public V1Item name(String name) { this.name = name; return this; } /** * The item's name. * @return name **/ @ApiModelProperty(value = "The item's name.") public String getName() { return name; } public void setName(String name) { this.name = name; } public V1Item description(String description) { this.description = description; return this; } /** * The item's description. * @return description **/ @ApiModelProperty(value = "The item's description.") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public V1Item type(String type) { this.type = type; return this; } /** * The item's type. This value is NORMAL for almost all items. See [V1ItemType](#type-v1itemtype) for possible values * @return type **/ @ApiModelProperty(value = "The item's type. This value is NORMAL for almost all items. See [V1ItemType](#type-v1itemtype) for possible values") public String getType() { return type; } public void setType(String type) { this.type = type; } public V1Item color(String color) { this.color = color; return this; } /** * The color of the discount's display label in Square Point of Sale, if not the default color. The default color is 9da2a6. See [V1ItemColor](#type-v1itemcolor) for possible values * @return color **/ @ApiModelProperty(value = "The color of the discount's display label in Square Point of Sale, if not the default color. The default color is 9da2a6. See [V1ItemColor](#type-v1itemcolor) for possible values") public String getColor() { return color; } public void setColor(String color) { this.color = color; } public V1Item abbreviation(String abbreviation) { this.abbreviation = abbreviation; return this; } /** * The text of the item's display label in Square Point of Sale. Only up to the first five characters of the string are used. * @return abbreviation **/ @ApiModelProperty(value = "The text of the item's display label in Square Point of Sale. Only up to the first five characters of the string are used.") public String getAbbreviation() { return abbreviation; } public void setAbbreviation(String abbreviation) { this.abbreviation = abbreviation; } public V1Item visibility(String visibility) { this.visibility = visibility; return this; } /** * Indicates whether the item is viewable from the merchant's online store (PUBLIC) or PRIVATE. See [V1ItemVisibility](#type-v1itemvisibility) for possible values * @return visibility **/ @ApiModelProperty(value = "Indicates whether the item is viewable from the merchant's online store (PUBLIC) or PRIVATE. See [V1ItemVisibility](#type-v1itemvisibility) for possible values") public String getVisibility() { return visibility; } public void setVisibility(String visibility) { this.visibility = visibility; } public V1Item availableOnline(Boolean availableOnline) { this.availableOnline = availableOnline; return this; } /** * If true, the item can be added to shipping orders from the merchant's online store. * @return availableOnline **/ @ApiModelProperty(value = "If true, the item can be added to shipping orders from the merchant's online store.") public Boolean getAvailableOnline() { return availableOnline; } public void setAvailableOnline(Boolean availableOnline) { this.availableOnline = availableOnline; } public V1Item masterImage(V1ItemImage masterImage) { this.masterImage = masterImage; return this; } /** * The item's master image, if any. * @return masterImage **/ @ApiModelProperty(value = "The item's master image, if any.") public V1ItemImage getMasterImage() { return masterImage; } public void setMasterImage(V1ItemImage masterImage) { this.masterImage = masterImage; } public V1Item category(V1Category category) { this.category = category; return this; } /** * The category the item belongs to, if any. * @return category **/ @ApiModelProperty(value = "The category the item belongs to, if any.") public V1Category getCategory() { return category; } public void setCategory(V1Category category) { this.category = category; } public V1Item variations(List<V1Variation> variations) { this.variations = variations; return this; } public V1Item addVariationsItem(V1Variation variationsItem) { this.variations.add(variationsItem); return this; } /** * The item's variations. You must specify at least one variation. * @return variations **/ @ApiModelProperty(value = "The item's variations. You must specify at least one variation.") public List<V1Variation> getVariations() { return variations; } public void setVariations(List<V1Variation> variations) { this.variations = variations; } public V1Item modifierLists(List<V1ModifierList> modifierLists) { this.modifierLists = modifierLists; return this; } public V1Item addModifierListsItem(V1ModifierList modifierListsItem) { this.modifierLists.add(modifierListsItem); return this; } /** * The modifier lists that apply to the item, if any. * @return modifierLists **/ @ApiModelProperty(value = "The modifier lists that apply to the item, if any.") public List<V1ModifierList> getModifierLists() { return modifierLists; } public void setModifierLists(List<V1ModifierList> modifierLists) { this.modifierLists = modifierLists; } public V1Item fees(List<V1Fee> fees) { this.fees = fees; return this; } public V1Item addFeesItem(V1Fee feesItem) { this.fees.add(feesItem); return this; } /** * The fees that apply to the item, if any. * @return fees **/ @ApiModelProperty(value = "The fees that apply to the item, if any.") public List<V1Fee> getFees() { return fees; } public void setFees(List<V1Fee> fees) { this.fees = fees; } public V1Item taxable(Boolean taxable) { this.taxable = taxable; return this; } /** * Deprecated. This field is not used. * @return taxable **/ @ApiModelProperty(value = "Deprecated. This field is not used.") public Boolean getTaxable() { return taxable; } public void setTaxable(Boolean taxable) { this.taxable = taxable; } public V1Item categoryId(String categoryId) { this.categoryId = categoryId; return this; } /** * The ID of the item's category, if any. * @return categoryId **/ @ApiModelProperty(value = "The ID of the item's category, if any.") public String getCategoryId() { return categoryId; } public void setCategoryId(String categoryId) { this.categoryId = categoryId; } public V1Item availableForPickup(Boolean availableForPickup) { this.availableForPickup = availableForPickup; return this; } /** * If true, the item can be added to pickup orders from the merchant's online store. Default value: false * @return availableForPickup **/ @ApiModelProperty(value = "If true, the item can be added to pickup orders from the merchant's online store. Default value: false") public Boolean getAvailableForPickup() { return availableForPickup; } public void setAvailableForPickup(Boolean availableForPickup) { this.availableForPickup = availableForPickup; } public V1Item 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; } V1Item v1Item = (V1Item) o; return Objects.equals(this.id, v1Item.id) && Objects.equals(this.name, v1Item.name) && Objects.equals(this.description, v1Item.description) && Objects.equals(this.type, v1Item.type) && Objects.equals(this.color, v1Item.color) && Objects.equals(this.abbreviation, v1Item.abbreviation) && Objects.equals(this.visibility, v1Item.visibility) && Objects.equals(this.availableOnline, v1Item.availableOnline) && Objects.equals(this.masterImage, v1Item.masterImage) && Objects.equals(this.category, v1Item.category) && Objects.equals(this.variations, v1Item.variations) && Objects.equals(this.modifierLists, v1Item.modifierLists) && Objects.equals(this.fees, v1Item.fees) && Objects.equals(this.taxable, v1Item.taxable) && Objects.equals(this.categoryId, v1Item.categoryId) && Objects.equals(this.availableForPickup, v1Item.availableForPickup) && Objects.equals(this.v2Id, v1Item.v2Id); } @Override public int hashCode() { return Objects.hash(id, name, description, type, color, abbreviation, visibility, availableOnline, masterImage, category, variations, modifierLists, fees, taxable, categoryId, availableForPickup, v2Id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Item {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" abbreviation: ").append(toIndentedString(abbreviation)).append("\n"); sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n"); sb.append(" availableOnline: ").append(toIndentedString(availableOnline)).append("\n"); sb.append(" masterImage: ").append(toIndentedString(masterImage)).append("\n"); sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append(" variations: ").append(toIndentedString(variations)).append("\n"); sb.append(" modifierLists: ").append(toIndentedString(modifierLists)).append("\n"); sb.append(" fees: ").append(toIndentedString(fees)).append("\n"); sb.append(" taxable: ").append(toIndentedString(taxable)).append("\n"); sb.append(" categoryId: ").append(toIndentedString(categoryId)).append("\n"); sb.append(" availableForPickup: ").append(toIndentedString(availableForPickup)).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 "); } }
5,069
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1UpdateEmployeeRoleRequest.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 V1UpdateEmployeeRoleRequest { @JsonProperty("body") private V1EmployeeRole body = null; public V1UpdateEmployeeRoleRequest body(V1EmployeeRole 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 V1EmployeeRole getBody() { return body; } public void setBody(V1EmployeeRole 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; } V1UpdateEmployeeRoleRequest v1UpdateEmployeeRoleRequest = (V1UpdateEmployeeRoleRequest) o; return Objects.equals(this.body, v1UpdateEmployeeRoleRequest.body); } @Override public int hashCode() { return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1UpdateEmployeeRoleRequest {\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 "); } }
5,070
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1CreateItemRequest.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.V1Item; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * */ @ApiModel(description = "") public class V1CreateItemRequest { @JsonProperty("body") private V1Item body = null; public V1CreateItemRequest body(V1Item 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 V1Item getBody() { return body; } public void setBody(V1Item 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; } V1CreateItemRequest v1CreateItemRequest = (V1CreateItemRequest) o; return Objects.equals(this.body, v1CreateItemRequest.body); } @Override public int hashCode() { return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CreateItemRequest {\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 "); } }
5,071
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogQuerySortedAttribute.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 CatalogQuerySortedAttribute { @JsonProperty("attribute_name") private String attributeName = null; @JsonProperty("initial_attribute_value") private String initialAttributeValue = null; @JsonProperty("sort_order") private String sortOrder = null; public CatalogQuerySortedAttribute attributeName(String attributeName) { this.attributeName = attributeName; return this; } /** * The attribute whose value should be used as the sort key. * @return attributeName **/ @ApiModelProperty(required = true, value = "The attribute whose value should be used as the sort key.") public String getAttributeName() { return attributeName; } public void setAttributeName(String attributeName) { this.attributeName = attributeName; } public CatalogQuerySortedAttribute initialAttributeValue(String initialAttributeValue) { this.initialAttributeValue = initialAttributeValue; return this; } /** * The first attribute value to be returned by the query. Ascending sorts will return only objects with this value or greater, while descending sorts will return only objects with this value or less. If unset, start at the beginning (for ascending sorts) or end (for descending sorts). * @return initialAttributeValue **/ @ApiModelProperty(value = "The first attribute value to be returned by the query. Ascending sorts will return only objects with this value or greater, while descending sorts will return only objects with this value or less. If unset, start at the beginning (for ascending sorts) or end (for descending sorts).") public String getInitialAttributeValue() { return initialAttributeValue; } public void setInitialAttributeValue(String initialAttributeValue) { this.initialAttributeValue = initialAttributeValue; } public CatalogQuerySortedAttribute sortOrder(String sortOrder) { this.sortOrder = sortOrder; return this; } /** * The desired sort order, `\"ASC\"` (ascending) or `\"DESC\"` (descending). See [SortOrder](#type-sortorder) for possible values * @return sortOrder **/ @ApiModelProperty(value = "The desired sort order, `\"ASC\"` (ascending) or `\"DESC\"` (descending). See [SortOrder](#type-sortorder) for possible values") public String getSortOrder() { return sortOrder; } public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CatalogQuerySortedAttribute catalogQuerySortedAttribute = (CatalogQuerySortedAttribute) o; return Objects.equals(this.attributeName, catalogQuerySortedAttribute.attributeName) && Objects.equals(this.initialAttributeValue, catalogQuerySortedAttribute.initialAttributeValue) && Objects.equals(this.sortOrder, catalogQuerySortedAttribute.sortOrder); } @Override public int hashCode() { return Objects.hash(attributeName, initialAttributeValue, sortOrder); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogQuerySortedAttribute {\n"); sb.append(" attributeName: ").append(toIndentedString(attributeName)).append("\n"); sb.append(" initialAttributeValue: ").append(toIndentedString(initialAttributeValue)).append("\n"); sb.append(" sortOrder: ").append(toIndentedString(sortOrder)).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 "); } }
5,072
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/SearchOrdersCustomerFilter.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; /** * Filter based on Order &#x60;customer_id&#x60; and any Tender &#x60;customer_id&#x60; associated with the Order. Does not filter based on the [FulfillmentRecipient](#type-orderfulfillmentrecipient) &#x60;customer_id&#x60;. */ @ApiModel(description = "Filter based on Order `customer_id` and any Tender `customer_id` associated with the Order. Does not filter based on the [FulfillmentRecipient](#type-orderfulfillmentrecipient) `customer_id`.") public class SearchOrdersCustomerFilter { @JsonProperty("customer_ids") private List<String> customerIds = new ArrayList<String>(); public SearchOrdersCustomerFilter customerIds(List<String> customerIds) { this.customerIds = customerIds; return this; } public SearchOrdersCustomerFilter addCustomerIdsItem(String customerIdsItem) { this.customerIds.add(customerIdsItem); return this; } /** * List of customer IDs to filter by. Max: 10 customer IDs. * @return customerIds **/ @ApiModelProperty(value = "List of customer IDs to filter by. Max: 10 customer IDs.") public List<String> getCustomerIds() { return customerIds; } public void setCustomerIds(List<String> customerIds) { this.customerIds = customerIds; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SearchOrdersCustomerFilter searchOrdersCustomerFilter = (SearchOrdersCustomerFilter) o; return Objects.equals(this.customerIds, searchOrdersCustomerFilter.customerIds); } @Override public int hashCode() { return Objects.hash(customerIds); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchOrdersCustomerFilter {\n"); sb.append(" customerIds: ").append(toIndentedString(customerIds)).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 "); } }
5,073
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1UpdateModifierListRequest.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; /** * V1UpdateModifierListRequest */ @ApiModel(description = "V1UpdateModifierListRequest") public class V1UpdateModifierListRequest { @JsonProperty("name") private String name = null; @JsonProperty("selection_type") private String selectionType = null; public V1UpdateModifierListRequest name(String name) { this.name = name; return this; } /** * The modifier list's name. * @return name **/ @ApiModelProperty(value = "The modifier list's name.") public String getName() { return name; } public void setName(String name) { this.name = name; } public V1UpdateModifierListRequest selectionType(String selectionType) { this.selectionType = selectionType; return this; } /** * Indicates whether multiple options from the modifier list can be applied to a single item. See [V1UpdateModifierListRequestSelectionType](#type-v1updatemodifierlistrequestselectiontype) for possible values * @return selectionType **/ @ApiModelProperty(value = "Indicates whether multiple options from the modifier list can be applied to a single item. See [V1UpdateModifierListRequestSelectionType](#type-v1updatemodifierlistrequestselectiontype) for possible values") public String getSelectionType() { return selectionType; } public void setSelectionType(String selectionType) { this.selectionType = selectionType; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } V1UpdateModifierListRequest v1UpdateModifierListRequest = (V1UpdateModifierListRequest) o; return Objects.equals(this.name, v1UpdateModifierListRequest.name) && Objects.equals(this.selectionType, v1UpdateModifierListRequest.selectionType); } @Override public int hashCode() { return Objects.hash(name, selectionType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1UpdateModifierListRequest {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" selectionType: ").append(toIndentedString(selectionType)).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 "); } }
5,074
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListEmployeesRequest.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 ListEmployeesRequest { @JsonProperty("location_id") private String locationId = null; @JsonProperty("status") private String status = null; @JsonProperty("limit") private Integer limit = null; @JsonProperty("cursor") private String cursor = null; public ListEmployeesRequest locationId(String locationId) { this.locationId = locationId; return this; } /** * Filter employees returned to only those that are associated with the specified location. * @return locationId **/ @ApiModelProperty(value = "Filter employees returned to only those that are associated with the specified location.") public String getLocationId() { return locationId; } public void setLocationId(String locationId) { this.locationId = locationId; } public ListEmployeesRequest status(String status) { this.status = status; return this; } /** * Specifies the EmployeeStatus to filter the employee by. See [EmployeeStatus](#type-employeestatus) for possible values * @return status **/ @ApiModelProperty(value = "Specifies the EmployeeStatus to filter the employee by. See [EmployeeStatus](#type-employeestatus) for possible values") public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public ListEmployeesRequest limit(Integer limit) { this.limit = limit; return this; } /** * The number of employees to be returned on each page. * @return limit **/ @ApiModelProperty(value = "The number of employees to be returned on each page.") public Integer getLimit() { return limit; } public void setLimit(Integer limit) { this.limit = limit; } public ListEmployeesRequest cursor(String cursor) { this.cursor = cursor; return this; } /** * The token required to retrieve the specified page of results. * @return cursor **/ @ApiModelProperty(value = "The token required to retrieve the specified page of results.") 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; } ListEmployeesRequest listEmployeesRequest = (ListEmployeesRequest) o; return Objects.equals(this.locationId, listEmployeesRequest.locationId) && Objects.equals(this.status, listEmployeesRequest.status) && Objects.equals(this.limit, listEmployeesRequest.limit) && Objects.equals(this.cursor, listEmployeesRequest.cursor); } @Override public int hashCode() { return Objects.hash(locationId, status, limit, cursor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListEmployeesRequest {\n"); sb.append(" locationId: ").append(toIndentedString(locationId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).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 "); } }
5,075
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListBankAccountsResponse.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.V1BankAccount; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; /** * */ @ApiModel(description = "") public class V1ListBankAccountsResponse { @JsonProperty("items") private List<V1BankAccount> items = new ArrayList<V1BankAccount>(); public V1ListBankAccountsResponse items(List<V1BankAccount> items) { this.items = items; return this; } public V1ListBankAccountsResponse addItemsItem(V1BankAccount itemsItem) { this.items.add(itemsItem); return this; } /** * * @return items **/ @ApiModelProperty(value = "") public List<V1BankAccount> getItems() { return items; } public void setItems(List<V1BankAccount> 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; } V1ListBankAccountsResponse v1ListBankAccountsResponse = (V1ListBankAccountsResponse) o; return Objects.equals(this.items, v1ListBankAccountsResponse.items); } @Override public int hashCode() { return Objects.hash(items); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ListBankAccountsResponse {\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 "); } }
5,076
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1DeleteItemRequest.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 V1DeleteItemRequest { @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 V1DeleteItemRequest {\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 "); } }
5,077
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateLocationResponse.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; /** * Response object returned by the [CreateLocation](#endpoint-createlocation) endpoint. */ @ApiModel(description = "Response object returned by the [CreateLocation](#endpoint-createlocation) endpoint.") public class CreateLocationResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); @JsonProperty("location") private Location location = null; public CreateLocationResponse errors(List<Error> errors) { this.errors = errors; return this; } public CreateLocationResponse 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 CreateLocationResponse location(Location location) { this.location = location; return this; } /** * The newly created `Location`. * @return location **/ @ApiModelProperty(value = "The newly created `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; } CreateLocationResponse createLocationResponse = (CreateLocationResponse) o; return Objects.equals(this.errors, createLocationResponse.errors) && Objects.equals(this.location, createLocationResponse.location); } @Override public int hashCode() { return Objects.hash(errors, location); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateLocationResponse {\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 "); } }
5,078
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/AdditionalRecipient.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 additional recipient (other than the merchant) receiving a portion of this tender. */ @ApiModel(description = "Represents an additional recipient (other than the merchant) receiving a portion of this tender.") public class AdditionalRecipient { @JsonProperty("location_id") private String locationId = null; @JsonProperty("description") private String description = null; @JsonProperty("amount_money") private Money amountMoney = null; @JsonProperty("receivable_id") private String receivableId = null; public AdditionalRecipient locationId(String locationId) { this.locationId = locationId; return this; } /** * The location ID for a recipient (other than the merchant) receiving a portion of this tender. * @return locationId **/ @ApiModelProperty(required = true, value = "The location ID for a recipient (other than the merchant) receiving a portion of this tender.") public String getLocationId() { return locationId; } public void setLocationId(String locationId) { this.locationId = locationId; } public AdditionalRecipient description(String description) { this.description = description; return this; } /** * The description of the additional recipient. * @return description **/ @ApiModelProperty(required = true, value = "The description of the additional recipient.") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public AdditionalRecipient amountMoney(Money amountMoney) { this.amountMoney = amountMoney; return this; } /** * The amount of money distributed to the recipient. * @return amountMoney **/ @ApiModelProperty(required = true, value = "The amount of money distributed to the recipient.") public Money getAmountMoney() { return amountMoney; } public void setAmountMoney(Money amountMoney) { this.amountMoney = amountMoney; } public AdditionalRecipient receivableId(String receivableId) { this.receivableId = receivableId; return this; } /** * The unique ID for this `AdditionalRecipientReceivable`, assigned by the server. * @return receivableId **/ @ApiModelProperty(value = "The unique ID for this `AdditionalRecipientReceivable`, assigned by the server.") public String getReceivableId() { return receivableId; } public void setReceivableId(String receivableId) { this.receivableId = receivableId; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AdditionalRecipient additionalRecipient = (AdditionalRecipient) o; return Objects.equals(this.locationId, additionalRecipient.locationId) && Objects.equals(this.description, additionalRecipient.description) && Objects.equals(this.amountMoney, additionalRecipient.amountMoney) && Objects.equals(this.receivableId, additionalRecipient.receivableId); } @Override public int hashCode() { return Objects.hash(locationId, description, amountMoney, receivableId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalRecipient {\n"); sb.append(" locationId: ").append(toIndentedString(locationId)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" amountMoney: ").append(toIndentedString(amountMoney)).append("\n"); sb.append(" receivableId: ").append(toIndentedString(receivableId)).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 "); } }
5,079
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CreateCustomerResponse.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 CreateCustomer endpoint. One of &#x60;errors&#x60; or &#x60;customer&#x60; 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 CreateCustomer endpoint. One of `errors` or `customer` is present in a given response (never both).") public class CreateCustomerResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); @JsonProperty("customer") private Customer customer = null; public CreateCustomerResponse errors(List<Error> errors) { this.errors = errors; return this; } public CreateCustomerResponse 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 CreateCustomerResponse customer(Customer customer) { this.customer = customer; return this; } /** * The created customer. * @return customer **/ @ApiModelProperty(value = "The created 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; } CreateCustomerResponse createCustomerResponse = (CreateCustomerResponse) o; return Objects.equals(this.errors, createCustomerResponse.errors) && Objects.equals(this.customer, createCustomerResponse.customer); } @Override public int hashCode() { return Objects.hash(errors, customer); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCustomerResponse {\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 "); } }
5,080
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogItemOptionValue.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; /** * An enumerated value that can link a &#x60;CatalogItemVariation&#x60; to an item option as one of its item option values. */ @ApiModel(description = "An enumerated value that can link a `CatalogItemVariation` to an item option as one of its item option values.") public class CatalogItemOptionValue { @JsonProperty("item_option_id") private String itemOptionId = null; @JsonProperty("name") private String name = null; @JsonProperty("description") private String description = null; @JsonProperty("color") private String color = null; @JsonProperty("ordinal") private Integer ordinal = null; @JsonProperty("item_variation_count") private Long itemVariationCount = null; public CatalogItemOptionValue itemOptionId(String itemOptionId) { this.itemOptionId = itemOptionId; return this; } /** * Unique ID of the associated item option. * @return itemOptionId **/ @ApiModelProperty(value = "Unique ID of the associated item option.") public String getItemOptionId() { return itemOptionId; } public void setItemOptionId(String itemOptionId) { this.itemOptionId = itemOptionId; } public CatalogItemOptionValue name(String name) { this.name = name; return this; } /** * Name of this item option value. Searchable. * @return name **/ @ApiModelProperty(value = "Name of this item option value. Searchable.") public String getName() { return name; } public void setName(String name) { this.name = name; } public CatalogItemOptionValue description(String description) { this.description = description; return this; } /** * A human-readable description for the option value. * @return description **/ @ApiModelProperty(value = "A human-readable description for the option value.") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public CatalogItemOptionValue color(String color) { this.color = color; return this; } /** * The HTML-supported hex color for the item option (e.g., \"#ff8d4e85\"). Only displayed if `show_colors` is enabled on the parent `ItemOption`. When left unset, `color` defaults to white (\"#ffffff\") when `show_colors` is enabled on the parent `ItemOption`. * @return color **/ @ApiModelProperty(value = "The HTML-supported hex color for the item option (e.g., \"#ff8d4e85\"). Only displayed if `show_colors` is enabled on the parent `ItemOption`. When left unset, `color` defaults to white (\"#ffffff\") when `show_colors` is enabled on the parent `ItemOption`.") public String getColor() { return color; } public void setColor(String color) { this.color = color; } public CatalogItemOptionValue ordinal(Integer ordinal) { this.ordinal = ordinal; return this; } /** * Determines where this option value appears in a list of option values. * @return ordinal **/ @ApiModelProperty(value = "Determines where this option value appears in a list of option values.") public Integer getOrdinal() { return ordinal; } public void setOrdinal(Integer ordinal) { this.ordinal = ordinal; } public CatalogItemOptionValue itemVariationCount(Long itemVariationCount) { this.itemVariationCount = itemVariationCount; return this; } /** * The number of `CatalogItemVariation`s that currently make use of this Item Option value. Present only if `retrieve_counts` was specified on the request used to retrieve the parent Item Option of this value. Maximum: 100 counts. * @return itemVariationCount **/ @ApiModelProperty(value = "The number of `CatalogItemVariation`s that currently make use of this Item Option value. Present only if `retrieve_counts` was specified on the request used to retrieve the parent Item Option of this value. Maximum: 100 counts.") public Long getItemVariationCount() { return itemVariationCount; } public void setItemVariationCount(Long itemVariationCount) { this.itemVariationCount = itemVariationCount; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CatalogItemOptionValue catalogItemOptionValue = (CatalogItemOptionValue) o; return Objects.equals(this.itemOptionId, catalogItemOptionValue.itemOptionId) && Objects.equals(this.name, catalogItemOptionValue.name) && Objects.equals(this.description, catalogItemOptionValue.description) && Objects.equals(this.color, catalogItemOptionValue.color) && Objects.equals(this.ordinal, catalogItemOptionValue.ordinal) && Objects.equals(this.itemVariationCount, catalogItemOptionValue.itemVariationCount); } @Override public int hashCode() { return Objects.hash(itemOptionId, name, description, color, ordinal, itemVariationCount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogItemOptionValue {\n"); sb.append(" itemOptionId: ").append(toIndentedString(itemOptionId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" color: ").append(toIndentedString(color)).append("\n"); sb.append(" ordinal: ").append(toIndentedString(ordinal)).append("\n"); sb.append(" itemVariationCount: ").append(toIndentedString(itemVariationCount)).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 "); } }
5,081
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/UpdateLocationResponse.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; /** * Response object returned by the [UpdateLocation](#endpoint-updatelocation) endpoint. */ @ApiModel(description = "Response object returned by the [UpdateLocation](#endpoint-updatelocation) endpoint.") public class UpdateLocationResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); @JsonProperty("location") private Location location = null; public UpdateLocationResponse errors(List<Error> errors) { this.errors = errors; return this; } public UpdateLocationResponse 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 UpdateLocationResponse location(Location location) { this.location = location; return this; } /** * The updated `Location`. * @return location **/ @ApiModelProperty(value = "The updated `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; } UpdateLocationResponse updateLocationResponse = (UpdateLocationResponse) o; return Objects.equals(this.errors, updateLocationResponse.errors) && Objects.equals(this.location, updateLocationResponse.location); } @Override public int hashCode() { return Objects.hash(errors, location); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateLocationResponse {\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 "); } }
5,082
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListLocationsRequest.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 requests to the __ListLocations__ endpoint. */ @ApiModel(description = "Defines the fields that are included in requests to the __ListLocations__ endpoint.") public class ListLocationsRequest { @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 ListLocationsRequest {\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 "); } }
5,083
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ListCustomersRequest.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; /** * Defines the query parameters that can be provided in a request to the ListCustomers endpoint. */ @ApiModel(description = "Defines the query parameters that can be provided in a request to the ListCustomers endpoint.") public class ListCustomersRequest { @JsonProperty("cursor") private String cursor = null; @JsonProperty("sort_field") private String sortField = null; @JsonProperty("sort_order") private String sortOrder = null; public ListCustomersRequest 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 your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/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 your original query. 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; } public ListCustomersRequest sortField(String sortField) { this.sortField = sortField; return this; } /** * Indicates how Customers should be sorted. Default: `DEFAULT`. See [CustomerSortField](#type-customersortfield) for possible values * @return sortField **/ @ApiModelProperty(value = "Indicates how Customers should be sorted. Default: `DEFAULT`. See [CustomerSortField](#type-customersortfield) for possible values") public String getSortField() { return sortField; } public void setSortField(String sortField) { this.sortField = sortField; } public ListCustomersRequest sortOrder(String sortOrder) { this.sortOrder = sortOrder; return this; } /** * Indicates whether Customers should be sorted in ascending (`ASC`) or descending (`DESC`) order. Default: `ASC`. See [SortOrder](#type-sortorder) for possible values * @return sortOrder **/ @ApiModelProperty(value = "Indicates whether Customers should be sorted in ascending (`ASC`) or descending (`DESC`) order. Default: `ASC`. See [SortOrder](#type-sortorder) for possible values") public String getSortOrder() { return sortOrder; } public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ListCustomersRequest listCustomersRequest = (ListCustomersRequest) o; return Objects.equals(this.cursor, listCustomersRequest.cursor) && Objects.equals(this.sortField, listCustomersRequest.sortField) && Objects.equals(this.sortOrder, listCustomersRequest.sortOrder); } @Override public int hashCode() { return Objects.hash(cursor, sortField, sortOrder); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListCustomersRequest {\n"); sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n"); sb.append(" sortField: ").append(toIndentedString(sortField)).append("\n"); sb.append(" sortOrder: ").append(toIndentedString(sortOrder)).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 "); } }
5,084
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/UpdateCustomerResponse.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 UpdateCustomer endpoint. One of &#x60;errors&#x60; or &#x60;customer&#x60; 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 UpdateCustomer endpoint. One of `errors` or `customer` is present in a given response (never both).") public class UpdateCustomerResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); @JsonProperty("customer") private Customer customer = null; public UpdateCustomerResponse errors(List<Error> errors) { this.errors = errors; return this; } public UpdateCustomerResponse 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 UpdateCustomerResponse customer(Customer customer) { this.customer = customer; return this; } /** * The updated customer. * @return customer **/ @ApiModelProperty(value = "The updated 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; } UpdateCustomerResponse updateCustomerResponse = (UpdateCustomerResponse) o; return Objects.equals(this.errors, updateCustomerResponse.errors) && Objects.equals(this.customer, updateCustomerResponse.customer); } @Override public int hashCode() { return Objects.hash(errors, customer); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateCustomerResponse {\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 "); } }
5,085
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1CreateCategoryRequest.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 V1CreateCategoryRequest { @JsonProperty("body") private V1Category body = null; public V1CreateCategoryRequest 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(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; } V1CreateCategoryRequest v1CreateCategoryRequest = (V1CreateCategoryRequest) o; return Objects.equals(this.body, v1CreateCategoryRequest.body); } @Override public int hashCode() { return Objects.hash(body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CreateCategoryRequest {\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 "); } }
5,086
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1Payment.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.Device; import com.squareup.connect.models.V1Money; import com.squareup.connect.models.V1PaymentItemization; import com.squareup.connect.models.V1PaymentSurcharge; import com.squareup.connect.models.V1PaymentTax; import com.squareup.connect.models.V1Refund; import com.squareup.connect.models.V1Tender; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; /** * A payment represents a paid transaction between a Square merchant and a customer. Payment details are usually available from Connect API endpoints within a few minutes after the transaction completes. Each Payment object includes several fields that end in &#x60;_money&#x60;. These fields describe the various amounts of money that contribute to the payment total: &lt;ul&gt; &lt;li&gt; Monetary values are &lt;b&gt;positive&lt;/b&gt; if they represent an &lt;em&gt;increase&lt;/em&gt; in the amount of money the merchant receives (e.g., &lt;code&gt;tax_money&lt;/code&gt;, &lt;code&gt;tip_money&lt;/code&gt;). &lt;/li&gt; &lt;li&gt; Monetary values are &lt;b&gt;negative&lt;/b&gt; if they represent an &lt;em&gt;decrease&lt;/em&gt; in the amount of money the merchant receives (e.g., &lt;code&gt;discount_money&lt;/code&gt;, &lt;code&gt;refunded_money&lt;/code&gt;). &lt;/li&gt; &lt;/ul&gt; */ @ApiModel(description = "A payment represents a paid transaction between a Square merchant and a customer. Payment details are usually available from Connect API endpoints within a few minutes after the transaction completes. Each Payment object includes several fields that end in `_money`. These fields describe the various amounts of money that contribute to the payment total: <ul> <li> Monetary values are <b>positive</b> if they represent an <em>increase</em> in the amount of money the merchant receives (e.g., <code>tax_money</code>, <code>tip_money</code>). </li> <li> Monetary values are <b>negative</b> if they represent an <em>decrease</em> in the amount of money the merchant receives (e.g., <code>discount_money</code>, <code>refunded_money</code>). </li> </ul>") public class V1Payment { @JsonProperty("id") private String id = null; @JsonProperty("merchant_id") private String merchantId = null; @JsonProperty("created_at") private String createdAt = null; @JsonProperty("creator_id") private String creatorId = null; @JsonProperty("device") private Device device = null; @JsonProperty("payment_url") private String paymentUrl = null; @JsonProperty("receipt_url") private String receiptUrl = null; @JsonProperty("inclusive_tax_money") private V1Money inclusiveTaxMoney = null; @JsonProperty("additive_tax_money") private V1Money additiveTaxMoney = null; @JsonProperty("tax_money") private V1Money taxMoney = null; @JsonProperty("tip_money") private V1Money tipMoney = null; @JsonProperty("discount_money") private V1Money discountMoney = null; @JsonProperty("total_collected_money") private V1Money totalCollectedMoney = null; @JsonProperty("processing_fee_money") private V1Money processingFeeMoney = null; @JsonProperty("net_total_money") private V1Money netTotalMoney = null; @JsonProperty("refunded_money") private V1Money refundedMoney = null; @JsonProperty("swedish_rounding_money") private V1Money swedishRoundingMoney = null; @JsonProperty("gross_sales_money") private V1Money grossSalesMoney = null; @JsonProperty("net_sales_money") private V1Money netSalesMoney = null; @JsonProperty("inclusive_tax") private List<V1PaymentTax> inclusiveTax = new ArrayList<V1PaymentTax>(); @JsonProperty("additive_tax") private List<V1PaymentTax> additiveTax = new ArrayList<V1PaymentTax>(); @JsonProperty("tender") private List<V1Tender> tender = new ArrayList<V1Tender>(); @JsonProperty("refunds") private List<V1Refund> refunds = new ArrayList<V1Refund>(); @JsonProperty("itemizations") private List<V1PaymentItemization> itemizations = new ArrayList<V1PaymentItemization>(); @JsonProperty("surcharge_money") private V1Money surchargeMoney = null; @JsonProperty("surcharges") private List<V1PaymentSurcharge> surcharges = new ArrayList<V1PaymentSurcharge>(); @JsonProperty("is_partial") private Boolean isPartial = null; public V1Payment id(String id) { this.id = id; return this; } /** * The payment's unique identifier. * @return id **/ @ApiModelProperty(value = "The payment's unique identifier.") public String getId() { return id; } public void setId(String id) { this.id = id; } public V1Payment merchantId(String merchantId) { this.merchantId = merchantId; return this; } /** * The unique identifier of the merchant that took the payment. * @return merchantId **/ @ApiModelProperty(value = "The unique identifier of the merchant that took the payment.") public String getMerchantId() { return merchantId; } public void setMerchantId(String merchantId) { this.merchantId = merchantId; } public V1Payment createdAt(String createdAt) { this.createdAt = createdAt; return this; } /** * The time when the payment was created, in ISO 8601 format. Reflects the time of the first payment if the object represents an incomplete partial payment, and the time of the last or complete payment otherwise. * @return createdAt **/ @ApiModelProperty(value = "The time when the payment was created, in ISO 8601 format. Reflects the time of the first payment if the object represents an incomplete partial payment, and the time of the last or complete payment otherwise.") public String getCreatedAt() { return createdAt; } public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } public V1Payment creatorId(String creatorId) { this.creatorId = creatorId; return this; } /** * The unique identifier of the Square account that took the payment. * @return creatorId **/ @ApiModelProperty(value = "The unique identifier of the Square account that took the payment.") public String getCreatorId() { return creatorId; } public void setCreatorId(String creatorId) { this.creatorId = creatorId; } public V1Payment device(Device device) { this.device = device; return this; } /** * The device that took the payment. * @return device **/ @ApiModelProperty(value = "The device that took the payment.") public Device getDevice() { return device; } public void setDevice(Device device) { this.device = device; } public V1Payment paymentUrl(String paymentUrl) { this.paymentUrl = paymentUrl; return this; } /** * The URL of the payment's detail page in the merchant dashboard. The merchant must be signed in to the merchant dashboard to view this page. * @return paymentUrl **/ @ApiModelProperty(value = "The URL of the payment's detail page in the merchant dashboard. The merchant must be signed in to the merchant dashboard to view this page.") public String getPaymentUrl() { return paymentUrl; } public void setPaymentUrl(String paymentUrl) { this.paymentUrl = paymentUrl; } public V1Payment receiptUrl(String receiptUrl) { this.receiptUrl = receiptUrl; return this; } /** * The URL of the receipt for the payment. Note that for split tender payments, this URL corresponds to the receipt for the first tender listed in the payment's tender field. Each Tender object has its own receipt_url field you can use to get the other receipts associated with a split tender payment. * @return receiptUrl **/ @ApiModelProperty(value = "The URL of the receipt for the payment. Note that for split tender payments, this URL corresponds to the receipt for the first tender listed in the payment's tender field. Each Tender object has its own receipt_url field you can use to get the other receipts associated with a split tender payment.") public String getReceiptUrl() { return receiptUrl; } public void setReceiptUrl(String receiptUrl) { this.receiptUrl = receiptUrl; } public V1Payment inclusiveTaxMoney(V1Money inclusiveTaxMoney) { this.inclusiveTaxMoney = inclusiveTaxMoney; return this; } /** * The sum of all inclusive taxes associated with the payment. * @return inclusiveTaxMoney **/ @ApiModelProperty(value = "The sum of all inclusive taxes associated with the payment.") public V1Money getInclusiveTaxMoney() { return inclusiveTaxMoney; } public void setInclusiveTaxMoney(V1Money inclusiveTaxMoney) { this.inclusiveTaxMoney = inclusiveTaxMoney; } public V1Payment additiveTaxMoney(V1Money additiveTaxMoney) { this.additiveTaxMoney = additiveTaxMoney; return this; } /** * The sum of all additive taxes associated with the payment. * @return additiveTaxMoney **/ @ApiModelProperty(value = "The sum of all additive taxes associated with the payment.") public V1Money getAdditiveTaxMoney() { return additiveTaxMoney; } public void setAdditiveTaxMoney(V1Money additiveTaxMoney) { this.additiveTaxMoney = additiveTaxMoney; } public V1Payment taxMoney(V1Money taxMoney) { this.taxMoney = taxMoney; return this; } /** * The total of all taxes applied to the payment. This is always the sum of inclusive_tax_money and additive_tax_money. * @return taxMoney **/ @ApiModelProperty(value = "The total of all taxes applied to the payment. This is always the sum of inclusive_tax_money and additive_tax_money.") public V1Money getTaxMoney() { return taxMoney; } public void setTaxMoney(V1Money taxMoney) { this.taxMoney = taxMoney; } public V1Payment tipMoney(V1Money tipMoney) { this.tipMoney = tipMoney; return this; } /** * The total of all tips applied to the payment. * @return tipMoney **/ @ApiModelProperty(value = "The total of all tips applied to the payment.") public V1Money getTipMoney() { return tipMoney; } public void setTipMoney(V1Money tipMoney) { this.tipMoney = tipMoney; } public V1Payment discountMoney(V1Money discountMoney) { this.discountMoney = discountMoney; return this; } /** * The total of all discounts applied to the payment. * @return discountMoney **/ @ApiModelProperty(value = "The total of all discounts applied to the payment.") public V1Money getDiscountMoney() { return discountMoney; } public void setDiscountMoney(V1Money discountMoney) { this.discountMoney = discountMoney; } public V1Payment totalCollectedMoney(V1Money totalCollectedMoney) { this.totalCollectedMoney = totalCollectedMoney; return this; } /** * The total of all discounts applied to the payment. * @return totalCollectedMoney **/ @ApiModelProperty(value = "The total of all discounts applied to the payment.") public V1Money getTotalCollectedMoney() { return totalCollectedMoney; } public void setTotalCollectedMoney(V1Money totalCollectedMoney) { this.totalCollectedMoney = totalCollectedMoney; } public V1Payment processingFeeMoney(V1Money processingFeeMoney) { this.processingFeeMoney = processingFeeMoney; return this; } /** * The total of all processing fees collected by Square for the payment. * @return processingFeeMoney **/ @ApiModelProperty(value = "The total of all processing fees collected by Square for the payment.") public V1Money getProcessingFeeMoney() { return processingFeeMoney; } public void setProcessingFeeMoney(V1Money processingFeeMoney) { this.processingFeeMoney = processingFeeMoney; } public V1Payment netTotalMoney(V1Money netTotalMoney) { this.netTotalMoney = netTotalMoney; return this; } /** * The amount to be deposited into the merchant's bank account for the payment. * @return netTotalMoney **/ @ApiModelProperty(value = "The amount to be deposited into the merchant's bank account for the payment.") public V1Money getNetTotalMoney() { return netTotalMoney; } public void setNetTotalMoney(V1Money netTotalMoney) { this.netTotalMoney = netTotalMoney; } public V1Payment refundedMoney(V1Money refundedMoney) { this.refundedMoney = refundedMoney; return this; } /** * The total of all refunds applied to the payment. * @return refundedMoney **/ @ApiModelProperty(value = "The total of all refunds applied to the payment.") public V1Money getRefundedMoney() { return refundedMoney; } public void setRefundedMoney(V1Money refundedMoney) { this.refundedMoney = refundedMoney; } public V1Payment swedishRoundingMoney(V1Money swedishRoundingMoney) { this.swedishRoundingMoney = swedishRoundingMoney; return this; } /** * The total of all sales, including any applicable taxes, rounded to the smallest legal unit of currency (e.g., the nearest penny in USD, the nearest nickel in CAD) * @return swedishRoundingMoney **/ @ApiModelProperty(value = "The total of all sales, including any applicable taxes, rounded to the smallest legal unit of currency (e.g., the nearest penny in USD, the nearest nickel in CAD)") public V1Money getSwedishRoundingMoney() { return swedishRoundingMoney; } public void setSwedishRoundingMoney(V1Money swedishRoundingMoney) { this.swedishRoundingMoney = swedishRoundingMoney; } public V1Payment grossSalesMoney(V1Money grossSalesMoney) { this.grossSalesMoney = grossSalesMoney; return this; } /** * The total of all sales, including any applicable taxes. * @return grossSalesMoney **/ @ApiModelProperty(value = "The total of all sales, including any applicable taxes.") public V1Money getGrossSalesMoney() { return grossSalesMoney; } public void setGrossSalesMoney(V1Money grossSalesMoney) { this.grossSalesMoney = grossSalesMoney; } public V1Payment netSalesMoney(V1Money netSalesMoney) { this.netSalesMoney = netSalesMoney; return this; } /** * The total of all sales, minus any applicable taxes. * @return netSalesMoney **/ @ApiModelProperty(value = "The total of all sales, minus any applicable taxes.") public V1Money getNetSalesMoney() { return netSalesMoney; } public void setNetSalesMoney(V1Money netSalesMoney) { this.netSalesMoney = netSalesMoney; } public V1Payment inclusiveTax(List<V1PaymentTax> inclusiveTax) { this.inclusiveTax = inclusiveTax; return this; } public V1Payment addInclusiveTaxItem(V1PaymentTax inclusiveTaxItem) { this.inclusiveTax.add(inclusiveTaxItem); return this; } /** * All of the inclusive taxes associated with the payment. * @return inclusiveTax **/ @ApiModelProperty(value = "All of the inclusive taxes associated with the payment.") public List<V1PaymentTax> getInclusiveTax() { return inclusiveTax; } public void setInclusiveTax(List<V1PaymentTax> inclusiveTax) { this.inclusiveTax = inclusiveTax; } public V1Payment additiveTax(List<V1PaymentTax> additiveTax) { this.additiveTax = additiveTax; return this; } public V1Payment addAdditiveTaxItem(V1PaymentTax additiveTaxItem) { this.additiveTax.add(additiveTaxItem); return this; } /** * All of the additive taxes associated with the payment. * @return additiveTax **/ @ApiModelProperty(value = "All of the additive taxes associated with the payment.") public List<V1PaymentTax> getAdditiveTax() { return additiveTax; } public void setAdditiveTax(List<V1PaymentTax> additiveTax) { this.additiveTax = additiveTax; } public V1Payment tender(List<V1Tender> tender) { this.tender = tender; return this; } public V1Payment addTenderItem(V1Tender tenderItem) { this.tender.add(tenderItem); return this; } /** * All of the tenders associated with the payment. * @return tender **/ @ApiModelProperty(value = "All of the tenders associated with the payment.") public List<V1Tender> getTender() { return tender; } public void setTender(List<V1Tender> tender) { this.tender = tender; } public V1Payment refunds(List<V1Refund> refunds) { this.refunds = refunds; return this; } public V1Payment addRefundsItem(V1Refund refundsItem) { this.refunds.add(refundsItem); return this; } /** * All of the refunds applied to the payment. Note that the value of all refunds on a payment can exceed the value of all tenders if a merchant chooses to refund money to a tender after previously accepting returned goods as part of an exchange. * @return refunds **/ @ApiModelProperty(value = "All of the refunds applied to the payment. Note that the value of all refunds on a payment can exceed the value of all tenders if a merchant chooses to refund money to a tender after previously accepting returned goods as part of an exchange.") public List<V1Refund> getRefunds() { return refunds; } public void setRefunds(List<V1Refund> refunds) { this.refunds = refunds; } public V1Payment itemizations(List<V1PaymentItemization> itemizations) { this.itemizations = itemizations; return this; } public V1Payment addItemizationsItem(V1PaymentItemization itemizationsItem) { this.itemizations.add(itemizationsItem); return this; } /** * The items purchased in the payment. * @return itemizations **/ @ApiModelProperty(value = "The items purchased in the payment.") public List<V1PaymentItemization> getItemizations() { return itemizations; } public void setItemizations(List<V1PaymentItemization> itemizations) { this.itemizations = itemizations; } public V1Payment surchargeMoney(V1Money surchargeMoney) { this.surchargeMoney = surchargeMoney; return this; } /** * The total of all surcharges applied to the payment. * @return surchargeMoney **/ @ApiModelProperty(value = "The total of all surcharges applied to the payment.") public V1Money getSurchargeMoney() { return surchargeMoney; } public void setSurchargeMoney(V1Money surchargeMoney) { this.surchargeMoney = surchargeMoney; } public V1Payment surcharges(List<V1PaymentSurcharge> surcharges) { this.surcharges = surcharges; return this; } public V1Payment addSurchargesItem(V1PaymentSurcharge surchargesItem) { this.surcharges.add(surchargesItem); return this; } /** * A list of all surcharges associated with the payment. * @return surcharges **/ @ApiModelProperty(value = "A list of all surcharges associated with the payment.") public List<V1PaymentSurcharge> getSurcharges() { return surcharges; } public void setSurcharges(List<V1PaymentSurcharge> surcharges) { this.surcharges = surcharges; } public V1Payment isPartial(Boolean isPartial) { this.isPartial = isPartial; return this; } /** * Indicates whether or not the payment is only partially paid for. If true, this payment will have the tenders collected so far, but the itemizations will be empty until the payment is completed. * @return isPartial **/ @ApiModelProperty(value = "Indicates whether or not the payment is only partially paid for. If true, this payment will have the tenders collected so far, but the itemizations will be empty until the payment is completed.") public Boolean getIsPartial() { return isPartial; } public void setIsPartial(Boolean isPartial) { this.isPartial = isPartial; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } V1Payment v1Payment = (V1Payment) o; return Objects.equals(this.id, v1Payment.id) && Objects.equals(this.merchantId, v1Payment.merchantId) && Objects.equals(this.createdAt, v1Payment.createdAt) && Objects.equals(this.creatorId, v1Payment.creatorId) && Objects.equals(this.device, v1Payment.device) && Objects.equals(this.paymentUrl, v1Payment.paymentUrl) && Objects.equals(this.receiptUrl, v1Payment.receiptUrl) && Objects.equals(this.inclusiveTaxMoney, v1Payment.inclusiveTaxMoney) && Objects.equals(this.additiveTaxMoney, v1Payment.additiveTaxMoney) && Objects.equals(this.taxMoney, v1Payment.taxMoney) && Objects.equals(this.tipMoney, v1Payment.tipMoney) && Objects.equals(this.discountMoney, v1Payment.discountMoney) && Objects.equals(this.totalCollectedMoney, v1Payment.totalCollectedMoney) && Objects.equals(this.processingFeeMoney, v1Payment.processingFeeMoney) && Objects.equals(this.netTotalMoney, v1Payment.netTotalMoney) && Objects.equals(this.refundedMoney, v1Payment.refundedMoney) && Objects.equals(this.swedishRoundingMoney, v1Payment.swedishRoundingMoney) && Objects.equals(this.grossSalesMoney, v1Payment.grossSalesMoney) && Objects.equals(this.netSalesMoney, v1Payment.netSalesMoney) && Objects.equals(this.inclusiveTax, v1Payment.inclusiveTax) && Objects.equals(this.additiveTax, v1Payment.additiveTax) && Objects.equals(this.tender, v1Payment.tender) && Objects.equals(this.refunds, v1Payment.refunds) && Objects.equals(this.itemizations, v1Payment.itemizations) && Objects.equals(this.surchargeMoney, v1Payment.surchargeMoney) && Objects.equals(this.surcharges, v1Payment.surcharges) && Objects.equals(this.isPartial, v1Payment.isPartial); } @Override public int hashCode() { return Objects.hash(id, merchantId, createdAt, creatorId, device, paymentUrl, receiptUrl, inclusiveTaxMoney, additiveTaxMoney, taxMoney, tipMoney, discountMoney, totalCollectedMoney, processingFeeMoney, netTotalMoney, refundedMoney, swedishRoundingMoney, grossSalesMoney, netSalesMoney, inclusiveTax, additiveTax, tender, refunds, itemizations, surchargeMoney, surcharges, isPartial); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Payment {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" creatorId: ").append(toIndentedString(creatorId)).append("\n"); sb.append(" device: ").append(toIndentedString(device)).append("\n"); sb.append(" paymentUrl: ").append(toIndentedString(paymentUrl)).append("\n"); sb.append(" receiptUrl: ").append(toIndentedString(receiptUrl)).append("\n"); sb.append(" inclusiveTaxMoney: ").append(toIndentedString(inclusiveTaxMoney)).append("\n"); sb.append(" additiveTaxMoney: ").append(toIndentedString(additiveTaxMoney)).append("\n"); sb.append(" taxMoney: ").append(toIndentedString(taxMoney)).append("\n"); sb.append(" tipMoney: ").append(toIndentedString(tipMoney)).append("\n"); sb.append(" discountMoney: ").append(toIndentedString(discountMoney)).append("\n"); sb.append(" totalCollectedMoney: ").append(toIndentedString(totalCollectedMoney)).append("\n"); sb.append(" processingFeeMoney: ").append(toIndentedString(processingFeeMoney)).append("\n"); sb.append(" netTotalMoney: ").append(toIndentedString(netTotalMoney)).append("\n"); sb.append(" refundedMoney: ").append(toIndentedString(refundedMoney)).append("\n"); sb.append(" swedishRoundingMoney: ").append(toIndentedString(swedishRoundingMoney)).append("\n"); sb.append(" grossSalesMoney: ").append(toIndentedString(grossSalesMoney)).append("\n"); sb.append(" netSalesMoney: ").append(toIndentedString(netSalesMoney)).append("\n"); sb.append(" inclusiveTax: ").append(toIndentedString(inclusiveTax)).append("\n"); sb.append(" additiveTax: ").append(toIndentedString(additiveTax)).append("\n"); sb.append(" tender: ").append(toIndentedString(tender)).append("\n"); sb.append(" refunds: ").append(toIndentedString(refunds)).append("\n"); sb.append(" itemizations: ").append(toIndentedString(itemizations)).append("\n"); sb.append(" surchargeMoney: ").append(toIndentedString(surchargeMoney)).append("\n"); sb.append(" surcharges: ").append(toIndentedString(surcharges)).append("\n"); sb.append(" isPartial: ").append(toIndentedString(isPartial)).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 "); } }
5,087
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1Employee.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 one of a business&#39;s employees. */ @ApiModel(description = "Represents one of a business's employees.") public class V1Employee { @JsonProperty("id") private String id = null; @JsonProperty("first_name") private String firstName = null; @JsonProperty("last_name") private String lastName = null; @JsonProperty("role_ids") private List<String> roleIds = new ArrayList<String>(); @JsonProperty("authorized_location_ids") private List<String> authorizedLocationIds = new ArrayList<String>(); @JsonProperty("email") private String email = null; @JsonProperty("status") private String status = null; @JsonProperty("external_id") private String externalId = null; @JsonProperty("created_at") private String createdAt = null; @JsonProperty("updated_at") private String updatedAt = null; public V1Employee id(String id) { this.id = id; return this; } /** * The employee's unique ID. * @return id **/ @ApiModelProperty(value = "The employee's unique ID.") public String getId() { return id; } public void setId(String id) { this.id = id; } public V1Employee firstName(String firstName) { this.firstName = firstName; return this; } /** * The employee's first name. * @return firstName **/ @ApiModelProperty(required = true, value = "The employee's first name.") public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public V1Employee lastName(String lastName) { this.lastName = lastName; return this; } /** * The employee's last name. * @return lastName **/ @ApiModelProperty(required = true, value = "The employee's last name.") public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public V1Employee roleIds(List<String> roleIds) { this.roleIds = roleIds; return this; } public V1Employee addRoleIdsItem(String roleIdsItem) { this.roleIds.add(roleIdsItem); return this; } /** * The ids of the employee's associated roles. Currently, you can specify only one or zero roles per employee. * @return roleIds **/ @ApiModelProperty(value = "The ids of the employee's associated roles. Currently, you can specify only one or zero roles per employee.") public List<String> getRoleIds() { return roleIds; } public void setRoleIds(List<String> roleIds) { this.roleIds = roleIds; } public V1Employee authorizedLocationIds(List<String> authorizedLocationIds) { this.authorizedLocationIds = authorizedLocationIds; return this; } public V1Employee addAuthorizedLocationIdsItem(String authorizedLocationIdsItem) { this.authorizedLocationIds.add(authorizedLocationIdsItem); return this; } /** * The IDs of the locations the employee is allowed to clock in at. * @return authorizedLocationIds **/ @ApiModelProperty(value = "The IDs of the locations the employee is allowed to clock in at.") public List<String> getAuthorizedLocationIds() { return authorizedLocationIds; } public void setAuthorizedLocationIds(List<String> authorizedLocationIds) { this.authorizedLocationIds = authorizedLocationIds; } public V1Employee email(String email) { this.email = email; return this; } /** * The employee's email address. * @return email **/ @ApiModelProperty(value = "The employee's email address.") public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public V1Employee status(String status) { this.status = status; return this; } /** * CWhether the employee is ACTIVE or INACTIVE. Inactive employees cannot sign in to Square Register.Merchants update this field from the Square Dashboard. See [V1EmployeeStatus](#type-v1employeestatus) for possible values * @return status **/ @ApiModelProperty(value = "CWhether the employee is ACTIVE or INACTIVE. Inactive employees cannot sign in to Square Register.Merchants update this field from the Square Dashboard. See [V1EmployeeStatus](#type-v1employeestatus) for possible values") public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public V1Employee externalId(String externalId) { this.externalId = externalId; return this; } /** * An ID the merchant can set to associate the employee with an entity in another system. * @return externalId **/ @ApiModelProperty(value = "An ID the merchant can set to associate the employee with an entity in another system.") public String getExternalId() { return externalId; } public void setExternalId(String externalId) { this.externalId = externalId; } public V1Employee createdAt(String createdAt) { this.createdAt = createdAt; return this; } /** * The time when the employee entity was created, in ISO 8601 format. * @return createdAt **/ @ApiModelProperty(value = "The time when the employee entity was created, in ISO 8601 format.") public String getCreatedAt() { return createdAt; } public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } public V1Employee updatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } /** * The time when the employee entity was most recently updated, in ISO 8601 format. * @return updatedAt **/ @ApiModelProperty(value = "The time when the employee entity was most recently updated, in ISO 8601 format.") 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; } V1Employee v1Employee = (V1Employee) o; return Objects.equals(this.id, v1Employee.id) && Objects.equals(this.firstName, v1Employee.firstName) && Objects.equals(this.lastName, v1Employee.lastName) && Objects.equals(this.roleIds, v1Employee.roleIds) && Objects.equals(this.authorizedLocationIds, v1Employee.authorizedLocationIds) && Objects.equals(this.email, v1Employee.email) && Objects.equals(this.status, v1Employee.status) && Objects.equals(this.externalId, v1Employee.externalId) && Objects.equals(this.createdAt, v1Employee.createdAt) && Objects.equals(this.updatedAt, v1Employee.updatedAt); } @Override public int hashCode() { return Objects.hash(id, firstName, lastName, roleIds, authorizedLocationIds, email, status, externalId, createdAt, updatedAt); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Employee {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" roleIds: ").append(toIndentedString(roleIds)).append("\n"); sb.append(" authorizedLocationIds: ").append(toIndentedString(authorizedLocationIds)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" externalId: ").append(toIndentedString(externalId)).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 "); } }
5,088
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1InventoryEntry.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; /** * V1InventoryEntry */ @ApiModel(description = "V1InventoryEntry") public class V1InventoryEntry { @JsonProperty("variation_id") private String variationId = null; @JsonProperty("quantity_on_hand") private BigDecimal quantityOnHand = null; public V1InventoryEntry variationId(String variationId) { this.variationId = variationId; return this; } /** * The variation that the entry corresponds to. * @return variationId **/ @ApiModelProperty(value = "The variation that the entry corresponds to.") public String getVariationId() { return variationId; } public void setVariationId(String variationId) { this.variationId = variationId; } public V1InventoryEntry quantityOnHand(BigDecimal quantityOnHand) { this.quantityOnHand = quantityOnHand; return this; } /** * The current available quantity of the item variation. * @return quantityOnHand **/ @ApiModelProperty(value = "The current available quantity of the item variation.") public BigDecimal getQuantityOnHand() { return quantityOnHand; } public void setQuantityOnHand(BigDecimal quantityOnHand) { this.quantityOnHand = quantityOnHand; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } V1InventoryEntry v1InventoryEntry = (V1InventoryEntry) o; return Objects.equals(this.variationId, v1InventoryEntry.variationId) && Objects.equals(this.quantityOnHand, v1InventoryEntry.quantityOnHand); } @Override public int hashCode() { return Objects.hash(variationId, quantityOnHand); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1InventoryEntry {\n"); sb.append(" variationId: ").append(toIndentedString(variationId)).append("\n"); sb.append(" quantityOnHand: ").append(toIndentedString(quantityOnHand)).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 "); } }
5,089
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1Timecard.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; /** * Represents a timecard for an employee. */ @ApiModel(description = "Represents a timecard for an employee.") public class V1Timecard { @JsonProperty("id") private String id = null; @JsonProperty("employee_id") private String employeeId = null; @JsonProperty("deleted") private Boolean deleted = null; @JsonProperty("clockin_time") private String clockinTime = null; @JsonProperty("clockout_time") private String clockoutTime = null; @JsonProperty("clockin_location_id") private String clockinLocationId = null; @JsonProperty("clockout_location_id") private String clockoutLocationId = null; @JsonProperty("created_at") private String createdAt = null; @JsonProperty("updated_at") private String updatedAt = null; @JsonProperty("regular_seconds_worked") private BigDecimal regularSecondsWorked = null; @JsonProperty("overtime_seconds_worked") private BigDecimal overtimeSecondsWorked = null; @JsonProperty("doubletime_seconds_worked") private BigDecimal doubletimeSecondsWorked = null; public V1Timecard id(String id) { this.id = id; return this; } /** * The timecard's unique ID. * @return id **/ @ApiModelProperty(value = "The timecard's unique ID.") public String getId() { return id; } public void setId(String id) { this.id = id; } public V1Timecard employeeId(String employeeId) { this.employeeId = employeeId; return this; } /** * The ID of the employee the timecard is associated with. * @return employeeId **/ @ApiModelProperty(required = true, value = "The ID of the employee the timecard is associated with.") public String getEmployeeId() { return employeeId; } public void setEmployeeId(String employeeId) { this.employeeId = employeeId; } public V1Timecard deleted(Boolean deleted) { this.deleted = deleted; return this; } /** * If true, the timecard was deleted by the merchant, and it is no longer valid. * @return deleted **/ @ApiModelProperty(value = "If true, the timecard was deleted by the merchant, and it is no longer valid.") public Boolean getDeleted() { return deleted; } public void setDeleted(Boolean deleted) { this.deleted = deleted; } public V1Timecard clockinTime(String clockinTime) { this.clockinTime = clockinTime; return this; } /** * The clock-in time for the timecard, in ISO 8601 format. * @return clockinTime **/ @ApiModelProperty(value = "The clock-in time for the timecard, in ISO 8601 format.") public String getClockinTime() { return clockinTime; } public void setClockinTime(String clockinTime) { this.clockinTime = clockinTime; } public V1Timecard clockoutTime(String clockoutTime) { this.clockoutTime = clockoutTime; return this; } /** * The clock-out time for the timecard, in ISO 8601 format. Provide this value only if importing timecard information from another system. * @return clockoutTime **/ @ApiModelProperty(value = "The clock-out time for the timecard, in ISO 8601 format. Provide this value only if importing timecard information from another system.") public String getClockoutTime() { return clockoutTime; } public void setClockoutTime(String clockoutTime) { this.clockoutTime = clockoutTime; } public V1Timecard clockinLocationId(String clockinLocationId) { this.clockinLocationId = clockinLocationId; return this; } /** * The ID of the location the employee clocked in from. We strongly reccomend providing a clockin_location_id. Square uses the clockin_location_id to determine a timecard’s timezone and overtime rules. * @return clockinLocationId **/ @ApiModelProperty(value = "The ID of the location the employee clocked in from. We strongly reccomend providing a clockin_location_id. Square uses the clockin_location_id to determine a timecard’s timezone and overtime rules.") public String getClockinLocationId() { return clockinLocationId; } public void setClockinLocationId(String clockinLocationId) { this.clockinLocationId = clockinLocationId; } public V1Timecard clockoutLocationId(String clockoutLocationId) { this.clockoutLocationId = clockoutLocationId; return this; } /** * The ID of the location the employee clocked out from. Provide this value only if importing timecard information from another system. * @return clockoutLocationId **/ @ApiModelProperty(value = "The ID of the location the employee clocked out from. Provide this value only if importing timecard information from another system.") public String getClockoutLocationId() { return clockoutLocationId; } public void setClockoutLocationId(String clockoutLocationId) { this.clockoutLocationId = clockoutLocationId; } public V1Timecard createdAt(String createdAt) { this.createdAt = createdAt; return this; } /** * The time when the timecard was created, in ISO 8601 format. * @return createdAt **/ @ApiModelProperty(value = "The time when the timecard was created, in ISO 8601 format.") public String getCreatedAt() { return createdAt; } public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } public V1Timecard updatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } /** * The time when the timecard was most recently updated, in ISO 8601 format. * @return updatedAt **/ @ApiModelProperty(value = "The time when the timecard was most recently updated, in ISO 8601 format.") public String getUpdatedAt() { return updatedAt; } public void setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; } public V1Timecard regularSecondsWorked(BigDecimal regularSecondsWorked) { this.regularSecondsWorked = regularSecondsWorked; return this; } /** * The total number of regular (non-overtime) seconds worked in the timecard. * @return regularSecondsWorked **/ @ApiModelProperty(value = "The total number of regular (non-overtime) seconds worked in the timecard.") public BigDecimal getRegularSecondsWorked() { return regularSecondsWorked; } public void setRegularSecondsWorked(BigDecimal regularSecondsWorked) { this.regularSecondsWorked = regularSecondsWorked; } public V1Timecard overtimeSecondsWorked(BigDecimal overtimeSecondsWorked) { this.overtimeSecondsWorked = overtimeSecondsWorked; return this; } /** * The total number of overtime seconds worked in the timecard. * @return overtimeSecondsWorked **/ @ApiModelProperty(value = "The total number of overtime seconds worked in the timecard.") public BigDecimal getOvertimeSecondsWorked() { return overtimeSecondsWorked; } public void setOvertimeSecondsWorked(BigDecimal overtimeSecondsWorked) { this.overtimeSecondsWorked = overtimeSecondsWorked; } public V1Timecard doubletimeSecondsWorked(BigDecimal doubletimeSecondsWorked) { this.doubletimeSecondsWorked = doubletimeSecondsWorked; return this; } /** * The total number of doubletime seconds worked in the timecard. * @return doubletimeSecondsWorked **/ @ApiModelProperty(value = "The total number of doubletime seconds worked in the timecard.") public BigDecimal getDoubletimeSecondsWorked() { return doubletimeSecondsWorked; } public void setDoubletimeSecondsWorked(BigDecimal doubletimeSecondsWorked) { this.doubletimeSecondsWorked = doubletimeSecondsWorked; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } V1Timecard v1Timecard = (V1Timecard) o; return Objects.equals(this.id, v1Timecard.id) && Objects.equals(this.employeeId, v1Timecard.employeeId) && Objects.equals(this.deleted, v1Timecard.deleted) && Objects.equals(this.clockinTime, v1Timecard.clockinTime) && Objects.equals(this.clockoutTime, v1Timecard.clockoutTime) && Objects.equals(this.clockinLocationId, v1Timecard.clockinLocationId) && Objects.equals(this.clockoutLocationId, v1Timecard.clockoutLocationId) && Objects.equals(this.createdAt, v1Timecard.createdAt) && Objects.equals(this.updatedAt, v1Timecard.updatedAt) && Objects.equals(this.regularSecondsWorked, v1Timecard.regularSecondsWorked) && Objects.equals(this.overtimeSecondsWorked, v1Timecard.overtimeSecondsWorked) && Objects.equals(this.doubletimeSecondsWorked, v1Timecard.doubletimeSecondsWorked); } @Override public int hashCode() { return Objects.hash(id, employeeId, deleted, clockinTime, clockoutTime, clockinLocationId, clockoutLocationId, createdAt, updatedAt, regularSecondsWorked, overtimeSecondsWorked, doubletimeSecondsWorked); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Timecard {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" employeeId: ").append(toIndentedString(employeeId)).append("\n"); sb.append(" deleted: ").append(toIndentedString(deleted)).append("\n"); sb.append(" clockinTime: ").append(toIndentedString(clockinTime)).append("\n"); sb.append(" clockoutTime: ").append(toIndentedString(clockoutTime)).append("\n"); sb.append(" clockinLocationId: ").append(toIndentedString(clockinLocationId)).append("\n"); sb.append(" clockoutLocationId: ").append(toIndentedString(clockoutLocationId)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" regularSecondsWorked: ").append(toIndentedString(regularSecondsWorked)).append("\n"); sb.append(" overtimeSecondsWorked: ").append(toIndentedString(overtimeSecondsWorked)).append("\n"); sb.append(" doubletimeSecondsWorked: ").append(toIndentedString(doubletimeSecondsWorked)).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 "); } }
5,090
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListLocationsResponse.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.V1Merchant; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; /** * */ @ApiModel(description = "") public class V1ListLocationsResponse { @JsonProperty("items") private List<V1Merchant> items = new ArrayList<V1Merchant>(); public V1ListLocationsResponse items(List<V1Merchant> items) { this.items = items; return this; } public V1ListLocationsResponse addItemsItem(V1Merchant itemsItem) { this.items.add(itemsItem); return this; } /** * * @return items **/ @ApiModelProperty(value = "") public List<V1Merchant> getItems() { return items; } public void setItems(List<V1Merchant> 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; } V1ListLocationsResponse v1ListLocationsResponse = (V1ListLocationsResponse) o; return Objects.equals(this.items, v1ListLocationsResponse.items); } @Override public int hashCode() { return Objects.hash(items); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ListLocationsResponse {\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 "); } }
5,091
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/CatalogItemModifierListInfo.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.CatalogModifierOverride; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; /** * Controls the properties of a &#x60;CatalogModifierList&#x60; as it applies to this &#x60;CatalogItem&#x60;. */ @ApiModel(description = "Controls the properties of a `CatalogModifierList` as it applies to this `CatalogItem`.") public class CatalogItemModifierListInfo { @JsonProperty("modifier_list_id") private String modifierListId = null; @JsonProperty("modifier_overrides") private List<CatalogModifierOverride> modifierOverrides = new ArrayList<CatalogModifierOverride>(); @JsonProperty("min_selected_modifiers") private Integer minSelectedModifiers = null; @JsonProperty("max_selected_modifiers") private Integer maxSelectedModifiers = null; @JsonProperty("enabled") private Boolean enabled = null; public CatalogItemModifierListInfo modifierListId(String modifierListId) { this.modifierListId = modifierListId; return this; } /** * The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`. * @return modifierListId **/ @ApiModelProperty(required = true, value = "The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`.") public String getModifierListId() { return modifierListId; } public void setModifierListId(String modifierListId) { this.modifierListId = modifierListId; } public CatalogItemModifierListInfo modifierOverrides(List<CatalogModifierOverride> modifierOverrides) { this.modifierOverrides = modifierOverrides; return this; } public CatalogItemModifierListInfo addModifierOverridesItem(CatalogModifierOverride modifierOverridesItem) { this.modifierOverrides.add(modifierOverridesItem); return this; } /** * A set of `CatalogModifierOverride` objects that override whether a given `CatalogModifier` is enabled by default. * @return modifierOverrides **/ @ApiModelProperty(value = "A set of `CatalogModifierOverride` objects that override whether a given `CatalogModifier` is enabled by default.") public List<CatalogModifierOverride> getModifierOverrides() { return modifierOverrides; } public void setModifierOverrides(List<CatalogModifierOverride> modifierOverrides) { this.modifierOverrides = modifierOverrides; } public CatalogItemModifierListInfo minSelectedModifiers(Integer minSelectedModifiers) { this.minSelectedModifiers = minSelectedModifiers; return this; } /** * If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`. * @return minSelectedModifiers **/ @ApiModelProperty(value = "If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this `CatalogModifierList`.") public Integer getMinSelectedModifiers() { return minSelectedModifiers; } public void setMinSelectedModifiers(Integer minSelectedModifiers) { this.minSelectedModifiers = minSelectedModifiers; } public CatalogItemModifierListInfo maxSelectedModifiers(Integer maxSelectedModifiers) { this.maxSelectedModifiers = maxSelectedModifiers; return this; } /** * If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`. * @return maxSelectedModifiers **/ @ApiModelProperty(value = "If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this `CatalogModifierList`.") public Integer getMaxSelectedModifiers() { return maxSelectedModifiers; } public void setMaxSelectedModifiers(Integer maxSelectedModifiers) { this.maxSelectedModifiers = maxSelectedModifiers; } public CatalogItemModifierListInfo enabled(Boolean enabled) { this.enabled = enabled; return this; } /** * If `true`, enable this `CatalogModifierList`. * @return enabled **/ @ApiModelProperty(value = "If `true`, enable this `CatalogModifierList`.") public Boolean getEnabled() { return enabled; } public void setEnabled(Boolean enabled) { this.enabled = enabled; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CatalogItemModifierListInfo catalogItemModifierListInfo = (CatalogItemModifierListInfo) o; return Objects.equals(this.modifierListId, catalogItemModifierListInfo.modifierListId) && Objects.equals(this.modifierOverrides, catalogItemModifierListInfo.modifierOverrides) && Objects.equals(this.minSelectedModifiers, catalogItemModifierListInfo.minSelectedModifiers) && Objects.equals(this.maxSelectedModifiers, catalogItemModifierListInfo.maxSelectedModifiers) && Objects.equals(this.enabled, catalogItemModifierListInfo.enabled); } @Override public int hashCode() { return Objects.hash(modifierListId, modifierOverrides, minSelectedModifiers, maxSelectedModifiers, enabled); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CatalogItemModifierListInfo {\n"); sb.append(" modifierListId: ").append(toIndentedString(modifierListId)).append("\n"); sb.append(" modifierOverrides: ").append(toIndentedString(modifierOverrides)).append("\n"); sb.append(" minSelectedModifiers: ").append(toIndentedString(minSelectedModifiers)).append("\n"); sb.append(" maxSelectedModifiers: ").append(toIndentedString(maxSelectedModifiers)).append("\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).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 "); } }
5,092
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/UpdateShiftRequest.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; /** * A request to update a &#x60;Shift&#x60; object. */ @ApiModel(description = "A request to update a `Shift` object.") public class UpdateShiftRequest { @JsonProperty("shift") private Shift shift = null; public UpdateShiftRequest shift(Shift shift) { this.shift = shift; return this; } /** * The updated `Shift` object. * @return shift **/ @ApiModelProperty(required = true, value = "The updated `Shift` object.") 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; } UpdateShiftRequest updateShiftRequest = (UpdateShiftRequest) o; return Objects.equals(this.shift, updateShiftRequest.shift); } @Override public int hashCode() { return Objects.hash(shift); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateShiftRequest {\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 "); } }
5,093
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/ObtainTokenRequest.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 ObtainTokenRequest { @JsonProperty("client_id") private String clientId = null; @JsonProperty("client_secret") private String clientSecret = null; @JsonProperty("code") private String code = null; @JsonProperty("redirect_uri") private String redirectUri = null; @JsonProperty("grant_type") private String grantType = null; @JsonProperty("refresh_token") private String refreshToken = null; @JsonProperty("migration_token") private String migrationToken = null; public ObtainTokenRequest clientId(String clientId) { this.clientId = clientId; return this; } /** * The Square-issued ID of your application, available from the [application dashboard](https://connect.squareup.com/apps). * @return clientId **/ @ApiModelProperty(required = true, value = "The Square-issued ID of 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 ObtainTokenRequest clientSecret(String clientSecret) { this.clientSecret = clientSecret; return this; } /** * The Square-issued application secret for your application, available from the [application dashboard](https://connect.squareup.com/apps). * @return clientSecret **/ @ApiModelProperty(required = true, value = "The Square-issued application secret for your application, available from the [application dashboard](https://connect.squareup.com/apps).") public String getClientSecret() { return clientSecret; } public void setClientSecret(String clientSecret) { this.clientSecret = clientSecret; } public ObtainTokenRequest code(String code) { this.code = code; return this; } /** * The authorization code to exchange. This is required if `grant_type` is set to `authorization_code`, to indicate that the application wants to exchange an authorization code for an OAuth access token. * @return code **/ @ApiModelProperty(value = "The authorization code to exchange. This is required if `grant_type` is set to `authorization_code`, to indicate that the application wants to exchange an authorization code for an OAuth access token.") public String getCode() { return code; } public void setCode(String code) { this.code = code; } public ObtainTokenRequest redirectUri(String redirectUri) { this.redirectUri = redirectUri; return this; } /** * The redirect URL assigned in the [application dashboard](https://connect.squareup.com/apps). * @return redirectUri **/ @ApiModelProperty(value = "The redirect URL assigned in the [application dashboard](https://connect.squareup.com/apps).") public String getRedirectUri() { return redirectUri; } public void setRedirectUri(String redirectUri) { this.redirectUri = redirectUri; } public ObtainTokenRequest grantType(String grantType) { this.grantType = grantType; return this; } /** * Specifies the method to request an OAuth access token. Valid values are: `authorization_code`, `refresh_token`, and `migration_token` * @return grantType **/ @ApiModelProperty(required = true, value = "Specifies the method to request an OAuth access token. Valid values are: `authorization_code`, `refresh_token`, and `migration_token`") public String getGrantType() { return grantType; } public void setGrantType(String grantType) { this.grantType = grantType; } public ObtainTokenRequest refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } /** * A valid refresh token for generating a new OAuth access token. A valid refresh token is required if `grant_type` is set to `refresh_token` , to indicate the application wants a replacement for an expired OAuth access token. * @return refreshToken **/ @ApiModelProperty(value = "A valid refresh token for generating a new OAuth access token. A valid refresh token is required if `grant_type` is set to `refresh_token` , to indicate the application wants a replacement for an expired OAuth access token.") public String getRefreshToken() { return refreshToken; } public void setRefreshToken(String refreshToken) { this.refreshToken = refreshToken; } public ObtainTokenRequest migrationToken(String migrationToken) { this.migrationToken = migrationToken; return this; } /** * Legacy OAuth access token obtained using a Connect API version prior to 2019-03-13. This parameter is required if `grant_type` is set to `migration_token` to indicate that the application wants to get a replacement OAuth access token. The response also returns a refresh token. For more information, see [Migrate to Using Refresh Tokens](https://developer.squareup.com/docs/authz/oauth/migration). * @return migrationToken **/ @ApiModelProperty(value = "Legacy OAuth access token obtained using a Connect API version prior to 2019-03-13. This parameter is required if `grant_type` is set to `migration_token` to indicate that the application wants to get a replacement OAuth access token. The response also returns a refresh token. For more information, see [Migrate to Using Refresh Tokens](https://developer.squareup.com/docs/authz/oauth/migration).") public String getMigrationToken() { return migrationToken; } public void setMigrationToken(String migrationToken) { this.migrationToken = migrationToken; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ObtainTokenRequest obtainTokenRequest = (ObtainTokenRequest) o; return Objects.equals(this.clientId, obtainTokenRequest.clientId) && Objects.equals(this.clientSecret, obtainTokenRequest.clientSecret) && Objects.equals(this.code, obtainTokenRequest.code) && Objects.equals(this.redirectUri, obtainTokenRequest.redirectUri) && Objects.equals(this.grantType, obtainTokenRequest.grantType) && Objects.equals(this.refreshToken, obtainTokenRequest.refreshToken) && Objects.equals(this.migrationToken, obtainTokenRequest.migrationToken); } @Override public int hashCode() { return Objects.hash(clientId, clientSecret, code, redirectUri, grantType, refreshToken, migrationToken); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObtainTokenRequest {\n"); sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); sb.append(" clientSecret: ").append(toIndentedString(clientSecret)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" redirectUri: ").append(toIndentedString(redirectUri)).append("\n"); sb.append(" grantType: ").append(toIndentedString(grantType)).append("\n"); sb.append(" refreshToken: ").append(toIndentedString(refreshToken)).append("\n"); sb.append(" migrationToken: ").append(toIndentedString(migrationToken)).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 "); } }
5,094
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1ListEmployeesRequest.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 V1ListEmployeesRequest { @JsonProperty("order") private String order = null; @JsonProperty("begin_updated_at") private String beginUpdatedAt = null; @JsonProperty("end_updated_at") private String endUpdatedAt = null; @JsonProperty("begin_created_at") private String beginCreatedAt = null; @JsonProperty("end_created_at") private String endCreatedAt = null; @JsonProperty("status") private String status = null; @JsonProperty("external_id") private String externalId = null; @JsonProperty("limit") private Integer limit = null; @JsonProperty("batch_token") private String batchToken = null; public V1ListEmployeesRequest order(String order) { this.order = order; return this; } /** * The order in which employees are listed in the response, based on their created_at field. Default value: ASC See [SortOrder](#type-sortorder) for possible values * @return order **/ @ApiModelProperty(value = "The order in which employees are listed in the response, based on their created_at field. Default value: ASC See [SortOrder](#type-sortorder) for possible values") public String getOrder() { return order; } public void setOrder(String order) { this.order = order; } public V1ListEmployeesRequest beginUpdatedAt(String beginUpdatedAt) { this.beginUpdatedAt = beginUpdatedAt; return this; } /** * If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format * @return beginUpdatedAt **/ @ApiModelProperty(value = "If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format") public String getBeginUpdatedAt() { return beginUpdatedAt; } public void setBeginUpdatedAt(String beginUpdatedAt) { this.beginUpdatedAt = beginUpdatedAt; } public V1ListEmployeesRequest endUpdatedAt(String endUpdatedAt) { this.endUpdatedAt = endUpdatedAt; return this; } /** * If filtering results by there updated_at field, the end of the requested reporting period, in ISO 8601 format. * @return endUpdatedAt **/ @ApiModelProperty(value = "If filtering results by there updated_at field, the end of the requested reporting period, in ISO 8601 format.") public String getEndUpdatedAt() { return endUpdatedAt; } public void setEndUpdatedAt(String endUpdatedAt) { this.endUpdatedAt = endUpdatedAt; } public V1ListEmployeesRequest beginCreatedAt(String beginCreatedAt) { this.beginCreatedAt = beginCreatedAt; return this; } /** * If filtering results by their created_at field, the beginning of the requested reporting period, in ISO 8601 format. * @return beginCreatedAt **/ @ApiModelProperty(value = "If filtering results by their created_at field, the beginning of the requested reporting period, in ISO 8601 format.") public String getBeginCreatedAt() { return beginCreatedAt; } public void setBeginCreatedAt(String beginCreatedAt) { this.beginCreatedAt = beginCreatedAt; } public V1ListEmployeesRequest endCreatedAt(String endCreatedAt) { this.endCreatedAt = endCreatedAt; return this; } /** * If filtering results by their created_at field, the end of the requested reporting period, in ISO 8601 format. * @return endCreatedAt **/ @ApiModelProperty(value = "If filtering results by their created_at field, the end of the requested reporting period, in ISO 8601 format.") public String getEndCreatedAt() { return endCreatedAt; } public void setEndCreatedAt(String endCreatedAt) { this.endCreatedAt = endCreatedAt; } public V1ListEmployeesRequest status(String status) { this.status = status; return this; } /** * If provided, the endpoint returns only employee entities with the specified status (ACTIVE or INACTIVE). See [V1ListEmployeesRequestStatus](#type-v1listemployeesrequeststatus) for possible values * @return status **/ @ApiModelProperty(value = "If provided, the endpoint returns only employee entities with the specified status (ACTIVE or INACTIVE). See [V1ListEmployeesRequestStatus](#type-v1listemployeesrequeststatus) for possible values") public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public V1ListEmployeesRequest externalId(String externalId) { this.externalId = externalId; return this; } /** * If provided, the endpoint returns only employee entities with the specified external_id. * @return externalId **/ @ApiModelProperty(value = "If provided, the endpoint returns only employee entities with the specified external_id.") public String getExternalId() { return externalId; } public void setExternalId(String externalId) { this.externalId = externalId; } public V1ListEmployeesRequest limit(Integer limit) { this.limit = limit; return this; } /** * The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. * @return limit **/ @ApiModelProperty(value = "The maximum integer number of employee entities to return in a single response. Default 100, maximum 200.") public Integer getLimit() { return limit; } public void setLimit(Integer limit) { this.limit = limit; } public V1ListEmployeesRequest 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; } V1ListEmployeesRequest v1ListEmployeesRequest = (V1ListEmployeesRequest) o; return Objects.equals(this.order, v1ListEmployeesRequest.order) && Objects.equals(this.beginUpdatedAt, v1ListEmployeesRequest.beginUpdatedAt) && Objects.equals(this.endUpdatedAt, v1ListEmployeesRequest.endUpdatedAt) && Objects.equals(this.beginCreatedAt, v1ListEmployeesRequest.beginCreatedAt) && Objects.equals(this.endCreatedAt, v1ListEmployeesRequest.endCreatedAt) && Objects.equals(this.status, v1ListEmployeesRequest.status) && Objects.equals(this.externalId, v1ListEmployeesRequest.externalId) && Objects.equals(this.limit, v1ListEmployeesRequest.limit) && Objects.equals(this.batchToken, v1ListEmployeesRequest.batchToken); } @Override public int hashCode() { return Objects.hash(order, beginUpdatedAt, endUpdatedAt, beginCreatedAt, endCreatedAt, status, externalId, limit, batchToken); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ListEmployeesRequest {\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); sb.append(" beginUpdatedAt: ").append(toIndentedString(beginUpdatedAt)).append("\n"); sb.append(" endUpdatedAt: ").append(toIndentedString(endUpdatedAt)).append("\n"); sb.append(" beginCreatedAt: ").append(toIndentedString(beginCreatedAt)).append("\n"); sb.append(" endCreatedAt: ").append(toIndentedString(endCreatedAt)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" externalId: ").append(toIndentedString(externalId)).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 "); } }
5,095
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/BatchRetrieveInventoryCountsResponse.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.InventoryCount; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; /** * */ @ApiModel(description = "") public class BatchRetrieveInventoryCountsResponse { @JsonProperty("errors") private List<Error> errors = new ArrayList<Error>(); @JsonProperty("counts") private List<InventoryCount> counts = new ArrayList<InventoryCount>(); @JsonProperty("cursor") private String cursor = null; public BatchRetrieveInventoryCountsResponse errors(List<Error> errors) { this.errors = errors; return this; } public BatchRetrieveInventoryCountsResponse 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 BatchRetrieveInventoryCountsResponse counts(List<InventoryCount> counts) { this.counts = counts; return this; } public BatchRetrieveInventoryCountsResponse addCountsItem(InventoryCount countsItem) { this.counts.add(countsItem); return this; } /** * The current calculated inventory counts for the requested objects and locations. * @return counts **/ @ApiModelProperty(value = "The current calculated inventory counts for the requested objects and locations.") public List<InventoryCount> getCounts() { return counts; } public void setCounts(List<InventoryCount> counts) { this.counts = counts; } public BatchRetrieveInventoryCountsResponse 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; } BatchRetrieveInventoryCountsResponse batchRetrieveInventoryCountsResponse = (BatchRetrieveInventoryCountsResponse) o; return Objects.equals(this.errors, batchRetrieveInventoryCountsResponse.errors) && Objects.equals(this.counts, batchRetrieveInventoryCountsResponse.counts) && Objects.equals(this.cursor, batchRetrieveInventoryCountsResponse.cursor); } @Override public int hashCode() { return Objects.hash(errors, counts, cursor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BatchRetrieveInventoryCountsResponse {\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append(" counts: ").append(toIndentedString(counts)).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 "); } }
5,096
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/Error.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 error encountered during a request to the Connect API. See [Handling errors](#handlingerrors) for more information. */ @ApiModel(description = "Represents an error encountered during a request to the Connect API. See [Handling errors](#handlingerrors) for more information.") public class Error { @JsonProperty("category") private String category = null; @JsonProperty("code") private String code = null; @JsonProperty("detail") private String detail = null; @JsonProperty("field") private String field = null; public Error category(String category) { this.category = category; return this; } /** * The high-level category for the error. See `ErrorCategory` for possible values. See [ErrorCategory](#type-errorcategory) for possible values * @return category **/ @ApiModelProperty(required = true, value = "The high-level category for the error. See `ErrorCategory` for possible values. See [ErrorCategory](#type-errorcategory) for possible values") public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public Error code(String code) { this.code = code; return this; } /** * The specific code of the error. See `ErrorCode` for possible values See [ErrorCode](#type-errorcode) for possible values * @return code **/ @ApiModelProperty(required = true, value = "The specific code of the error. See `ErrorCode` for possible values See [ErrorCode](#type-errorcode) for possible values") public String getCode() { return code; } public void setCode(String code) { this.code = code; } public Error detail(String detail) { this.detail = detail; return this; } /** * A human-readable description of the error for debugging purposes. * @return detail **/ @ApiModelProperty(value = "A human-readable description of the error for debugging purposes.") public String getDetail() { return detail; } public void setDetail(String detail) { this.detail = detail; } public Error field(String field) { this.field = field; return this; } /** * The name of the field provided in the original request (if any) that the error pertains to. * @return field **/ @ApiModelProperty(value = "The name of the field provided in the original request (if any) that the error pertains to.") public String getField() { return field; } public void setField(String field) { this.field = field; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Error error = (Error) o; return Objects.equals(this.category, error.category) && Objects.equals(this.code, error.code) && Objects.equals(this.detail, error.detail) && Objects.equals(this.field, error.field); } @Override public int hashCode() { return Objects.hash(category, code, detail, field); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Error {\n"); sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append(" field: ").append(toIndentedString(field)).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 "); } }
5,097
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/RetrieveInventoryChangesResponse.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 RetrieveInventoryChangesResponse { @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 RetrieveInventoryChangesResponse errors(List<Error> errors) { this.errors = errors; return this; } public RetrieveInventoryChangesResponse 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 RetrieveInventoryChangesResponse changes(List<InventoryChange> changes) { this.changes = changes; return this; } public RetrieveInventoryChangesResponse addChangesItem(InventoryChange changesItem) { this.changes.add(changesItem); return this; } /** * The set of inventory changes for the requested object and locations. * @return changes **/ @ApiModelProperty(value = "The set of inventory changes for the requested object and locations.") public List<InventoryChange> getChanges() { return changes; } public void setChanges(List<InventoryChange> changes) { this.changes = changes; } public RetrieveInventoryChangesResponse 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; } RetrieveInventoryChangesResponse retrieveInventoryChangesResponse = (RetrieveInventoryChangesResponse) o; return Objects.equals(this.errors, retrieveInventoryChangesResponse.errors) && Objects.equals(this.changes, retrieveInventoryChangesResponse.changes) && Objects.equals(this.cursor, retrieveInventoryChangesResponse.cursor); } @Override public int hashCode() { return Objects.hash(errors, changes, cursor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RetrieveInventoryChangesResponse {\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 "); } }
5,098
0
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect
Create_ds/connect-java-sdk/src/main/java/com/squareup/connect/models/V1Money.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 V1Money { @JsonProperty("amount") private Integer amount = null; @JsonProperty("currency_code") private String currencyCode = null; public V1Money amount(Integer amount) { this.amount = amount; return this; } /** * Amount in the lowest denominated value of this Currency. E.g. in USD these are cents, in JPY they are Yen (which do not have a 'cent' concept). * @return amount **/ @ApiModelProperty(value = "Amount in the lowest denominated value of this Currency. E.g. in USD these are cents, in JPY they are Yen (which do not have a 'cent' concept).") public Integer getAmount() { return amount; } public void setAmount(Integer amount) { this.amount = amount; } public V1Money currencyCode(String currencyCode) { this.currencyCode = currencyCode; return this; } /** * See [Currency](#type-currency) for possible values * @return currencyCode **/ @ApiModelProperty(value = " See [Currency](#type-currency) for possible values") public String getCurrencyCode() { return currencyCode; } public void setCurrencyCode(String currencyCode) { this.currencyCode = currencyCode; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } V1Money v1Money = (V1Money) o; return Objects.equals(this.amount, v1Money.amount) && Objects.equals(this.currencyCode, v1Money.currencyCode); } @Override public int hashCode() { return Objects.hash(amount, currencyCode); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Money {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).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 "); } }
5,099