Skip to content

Commit

Permalink
Merge pull request #125 from square/release/2024-11-20
Browse files Browse the repository at this point in the history
Generated PR for Release: 2024-11-20
  • Loading branch information
mikekono authored Nov 20, 2024
2 parents be3114b + 0a1ef41 commit f591cd5
Show file tree
Hide file tree
Showing 378 changed files with 1,484 additions and 871 deletions.
3 changes: 0 additions & 3 deletions doc/api/location-custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,10 @@ CompletableFuture<BulkDeleteLocationCustomAttributesResponse> bulkDeleteLocation
BulkDeleteLocationCustomAttributesRequest body = new BulkDeleteLocationCustomAttributesRequest.Builder(
new LinkedHashMap<String, BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest>() {{
put("id1", new BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.Builder()
.key("bestseller")
.build());
put("id2", new BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.Builder()
.key("bestseller")
.build());
put("id3", new BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.Builder()
.key("phone-number")
.build());
}}
)
Expand Down
2 changes: 0 additions & 2 deletions doc/api/merchant-custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,8 @@ CompletableFuture<BulkDeleteMerchantCustomAttributesResponse> bulkDeleteMerchant
BulkDeleteMerchantCustomAttributesRequest body = new BulkDeleteMerchantCustomAttributesRequest.Builder(
new LinkedHashMap<String, BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest>() {{
put("id1", new BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.Builder()
.key("alternative_seller_name")
.build());
put("id2", new BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.Builder()
.key("has_seen_tutorial")
.build());
}}
)
Expand Down
2 changes: 0 additions & 2 deletions doc/api/order-custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,10 @@ BulkDeleteOrderCustomAttributesRequest body = new BulkDeleteOrderCustomAttribute
put("cover-count", new BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.Builder(
"7BbXGEIWNldxAzrtGf9GPVZTwZ4F"
)
.key("cover-count")
.build());
put("table-number", new BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.Builder(
"7BbXGEIWNldxAzrtGf9GPVZTwZ4F"
)
.key("table-number")
.build());
}}
)
Expand Down
2 changes: 0 additions & 2 deletions doc/api/team.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ BulkUpdateTeamMembersRequest body = new BulkUpdateTeamMembersRequest.Builder(
put("AFMwA08kR-MIF-3Vs0OE", new UpdateTeamMemberRequest.Builder()
.teamMember(new TeamMember.Builder()
.referenceId("reference_id_2")
.isOwner(false)
.status("ACTIVE")
.givenName("Jane")
.familyName("Smith")
Expand All @@ -195,7 +194,6 @@ BulkUpdateTeamMembersRequest body = new BulkUpdateTeamMembersRequest.Builder(
put("fpgteZNMaf0qOK-a4t6P", new UpdateTeamMemberRequest.Builder()
.teamMember(new TeamMember.Builder()
.referenceId("reference_id_1")
.isOwner(false)
.status("ACTIVE")
.givenName("Joe")
.familyName("Doe")
Expand Down
6 changes: 3 additions & 3 deletions doc/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:

| Parameter | Type | Description |
| --- | --- | --- |
| `squareVersion` | `String` | Square Connect API versions<br>*Default*: `"2024-10-17"` |
| `squareVersion` | `String` | Square Connect API versions<br>*Default*: `"2024-11-20"` |
| `customUrl` | `String` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `"https://connect.squareup.com"` |
| `environment` | `string` | The API environment. <br> **Default: `production`** |
| `httpClientConfig` | [`Consumer<HttpClientConfiguration.Builder>`](http-client-configuration-builder.md) | Set up Http Client Configuration instance. |
Expand All @@ -19,7 +19,7 @@ The API client can be initialized as follows:
SquareClient client = new SquareClient.Builder()
.httpClientConfig(configBuilder -> configBuilder
.timeout(0))
.squareVersion("2024-10-17")
.squareVersion("2024-11-20")
.bearerAuthCredentials(new BearerAuthModel.Builder(
"AccessToken"
)
Expand All @@ -45,7 +45,7 @@ public class Program {
SquareClient client = new SquareClient.Builder()
.httpClientConfig(configBuilder -> configBuilder
.timeout(0))
.squareVersion("2024-10-17")
.squareVersion("2024-11-20")
.bearerAuthCredentials(new BearerAuthModel.Builder(
"AccessToken"
)
Expand Down
6 changes: 3 additions & 3 deletions doc/models/accept-dispute-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ Defines the fields in an `AcceptDispute` response.
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/models/accumulate-loyalty-points-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Represents an [AccumulateLoyaltyPoints](../../doc/api/loyalty.md#accumulate-loya
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
7 changes: 5 additions & 2 deletions doc/models/activity-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
| `AUTOMATIC_SAVINGS` | An automatic transfer from the payment processing balance to the Square Savings account. These are generally proportional to the seller's sales. |
| `AUTOMATIC_SAVINGS_REVERSED` | An automatic transfer from the Square Savings account back to the processing balance. These are generally proportional to the seller's refunds. |
| `CHARGE` | A credit card payment capture. |
| `DEPOSIT_FEE` | Any fees involved with deposits such as instant deposits. |
| `DEPOSIT_FEE` | A fee assessed because of a deposit, such as an instant deposit. |
| `DEPOSIT_FEE_REVERSED` | Indicates that Square returned a fee that was previously assessed because of a deposit, such as an instant deposit, back to the seller's account. |
| `DISPUTE` | The balance change due to a dispute event. |
| `ESCHEATMENT` | An escheatment entry for remittance. |
| `FEE` | The cost plus adjustment fee. |
Expand Down Expand Up @@ -43,7 +44,7 @@
| `TAX_ON_FEE` | The tax paid on fee amounts. |
| `THIRD_PARTY_FEE` | Fees collected by a third-party platform. |
| `THIRD_PARTY_FEE_REFUND` | Refunded fees from a third-party platform. |
| `PAYOUT` | The balance change due to money transfer. |
| `PAYOUT` | The balance change due to a money transfer. Note that this type is never returned by the Payouts API. |
| `AUTOMATIC_BITCOIN_CONVERSIONS` | Indicates that the portion of each payment withheld by Square was automatically converted into bitcoin using Cash App. The seller manages their bitcoin in their Cash App account. |
| `AUTOMATIC_BITCOIN_CONVERSIONS_REVERSED` | Indicates that a withheld payment, which was scheduled to be converted into bitcoin using Cash App, was deposited back to the Square payments balance. |
| `CREDIT_CARD_REPAYMENT` | Indicates that a repayment toward the outstanding balance on the seller's Square credit card was made. |
Expand All @@ -64,4 +65,6 @@
| `BALANCE_FOLDERS_TRANSFER_REVERSED` | A reversal of transfer of funds from a banking folder. In the United States, the folder name is 'Checking Folder'; in Canada, it's 'Balance Folder.' |
| `GIFT_CARD_POOL_TRANSFER` | A transfer of gift card funds to a central gift card pool account. In franchises, when gift cards are loaded or reloaded at any location, the money transfers to the franchisor's account. |
| `GIFT_CARD_POOL_TRANSFER_REVERSED` | A reversal of transfer of gift card funds from a central gift card pool account. In franchises, when gift cards are loaded or reloaded at any location, the money transfers to the franchisor's account. |
| `SQUARE_PAYROLL_TRANSFER` | A payroll payment that was transferred to a team member’s bank account. |
| `SQUARE_PAYROLL_TRANSFER_REVERSED` | A payroll payment to a team member’s bank account that was deposited back to the seller’s account by Square. |

2 changes: 1 addition & 1 deletion doc/models/add-group-to-customer-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ a request to the [AddGroupToCustomer](../../doc/api/customers.md#add-group-to-cu
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/models/additional-recipient.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Represents an additional recipient (other than the merchant) receiving a portion
"description": "description2",
"amount_money": {
"amount": 186,
"currency": "TZS"
"currency": "AUD"
},
"receivable_id": "receivable_id8"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/models/adjust-loyalty-points-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Represents an [AdjustLoyaltyPoints](../../doc/api/loyalty.md#adjust-loyalty-poin
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/models/bank-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ linking a bank account to a Square account, see
"id": "id2",
"account_number_suffix": "account_number_suffix6",
"country": "TT",
"currency": "SLL",
"currency": "MVR",
"account_type": "OTHER",
"holder_name": "holder_name8",
"primary_bank_identification_number": "primary_bank_identification_number0",
Expand Down
2 changes: 1 addition & 1 deletion doc/models/batch-delete-catalog-objects-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
6 changes: 3 additions & 3 deletions doc/models/batch-retrieve-catalog-objects-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,19 @@
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
6 changes: 3 additions & 3 deletions doc/models/batch-retrieve-orders-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,19 @@ a request to the `BatchRetrieveOrders` endpoint.
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
2 changes: 1 addition & 1 deletion doc/models/batch-upsert-catalog-objects-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
6 changes: 3 additions & 3 deletions doc/models/booking-custom-attribute-upsert-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ Represents a response for an individual upsert request in a [BulkUpsertBookingCu
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
16 changes: 8 additions & 8 deletions doc/models/bulk-create-customers-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ Defines the fields included in the response body from the
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down Expand Up @@ -112,19 +112,19 @@ Defines the fields included in the response body from the
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand All @@ -134,13 +134,13 @@ Defines the fields included in the response body from the
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
10 changes: 5 additions & 5 deletions doc/models/bulk-create-team-members-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ Represents a response from a bulk create request containing the created `TeamMem
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand All @@ -69,13 +69,13 @@ Represents a response from a bulk create request containing the created `TeamMem
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand All @@ -85,7 +85,7 @@ Represents a response from a bulk create request containing the created `TeamMem
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
6 changes: 3 additions & 3 deletions doc/models/bulk-create-vendors-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@ Represents an output from a call to [BulkCreateVendors](../../doc/api/vendors.md
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"code": "INVALID_EXPIRATION",
"detail": "detail6",
"field": "field4"
}
Expand Down
Loading

0 comments on commit f591cd5

Please sign in to comment.