Skip to content

Commit b6628aa

Browse files
author
autobot
committed
Generated PR for Release: 40.0.0.20240515
1 parent 2c83526 commit b6628aa

15 files changed

+220
-67
lines changed

doc/client.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
55

66
| Parameter | Type | Description |
77
| --- | --- | --- |
8-
| `squareVersion` | `String` | Square Connect API versions<br>*Default*: `"2024-04-17"` |
8+
| `squareVersion` | `String` | Square Connect API versions<br>*Default*: `"2024-05-15"` |
99
| `customUrl` | `String` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `"https://connect.squareup.com"` |
1010
| `environment` | `string` | The API environment. <br> **Default: `production`** |
1111
| `httpClientConfig` | [`ReadonlyHttpClientConfiguration`](http-client-configuration.md) | Http Client Configuration instance. |
@@ -19,7 +19,7 @@ The API client can be initialized as follows:
1919
SquareClient client = new SquareClient.Builder()
2020
.httpClientConfig(configBuilder -> configBuilder
2121
.timeout(0))
22-
.squareVersion("2024-04-17")
22+
.squareVersion("2024-05-15")
2323
.bearerAuthCredentials(new BearerAuthModel.Builder(
2424
"AccessToken"
2525
)
@@ -44,7 +44,7 @@ public class Program {
4444
SquareClient client = new SquareClient.Builder()
4545
.httpClientConfig(configBuilder -> configBuilder
4646
.timeout(0))
47-
.squareVersion("2024-04-17")
47+
.squareVersion("2024-05-15")
4848
.bearerAuthCredentials(new BearerAuthModel.Builder(
4949
"AccessToken"
5050
)

doc/models/catalog-item.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ A [CatalogObject](../../doc/models/catalog-object.md) instance of the `ITEM` typ
1515
| `Description` | `String` | Optional | The item's description. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.<br><br>Deprecated at 2022-07-20, this field is planned to retire in 6 months. You should migrate to use `description_html` to set the description<br>of the [CatalogItem](entity:CatalogItem) instance. The `description` and `description_html` field values are kept in sync. If you try to<br>set the both fields, the `description_html` text value overwrites the `description` value. Updates in one field are also reflected in the other,<br>except for when you use an early version before Square API 2022-07-20 and `description_html` is set to blank, setting the `description` value to null<br>does not nullify `description_html`.<br>**Constraints**: *Maximum Length*: `4096` | String getDescription() |
1616
| `Abbreviation` | `String` | Optional | The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used.<br>This attribute is searchable, and its value length is of Unicode code points.<br>**Constraints**: *Maximum Length*: `24` | String getAbbreviation() |
1717
| `LabelColor` | `String` | Optional | The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code. | String getLabelColor() |
18+
| `IsTaxable` | `Boolean` | Optional | Indicates whether the item is taxable (`true`) or non-taxable (`false`). Default is `true`. | Boolean getIsTaxable() |
1819
| `AvailableOnline` | `Boolean` | Optional | If `true`, the item can be added to shipping orders from the merchant's online store. | Boolean getAvailableOnline() |
1920
| `AvailableForPickup` | `Boolean` | Optional | If `true`, the item can be added to pickup orders from the merchant's online store. | Boolean getAvailableForPickup() |
2021
| `AvailableElectronically` | `Boolean` | Optional | If `true`, the item can be added to electronically fulfilled orders from the merchant's online store. | Boolean getAvailableElectronically() |
@@ -44,7 +45,7 @@ A [CatalogObject](../../doc/models/catalog-object.md) instance of the `ITEM` typ
4445
"description": "description6",
4546
"abbreviation": "abbreviation8",
4647
"label_color": "label_color8",
47-
"available_online": false
48+
"is_taxable": false
4849
}
4950
```
5051

doc/models/destination-details-card-refund-details.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
| --- | --- | --- | --- | --- |
1212
| `Card` | [`Card`](../../doc/models/card.md) | Optional | Represents the payment details of a card to be used for payments. These<br>details are determined by the payment token generated by Web Payments SDK. | Card getCard() |
1313
| `EntryMethod` | `String` | Optional | The method used to enter the card's details for the refund. The method can be<br>`KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.<br>**Constraints**: *Maximum Length*: `50` | String getEntryMethod() |
14+
| `AuthResultCode` | `String` | Optional | The authorization code provided by the issuer when a refund is approved.<br>**Constraints**: *Maximum Length*: `10` | String getAuthResultCode() |
1415

1516
## Example (as JSON)
1617

@@ -23,7 +24,8 @@
2324
"exp_month": 228,
2425
"exp_year": 68
2526
},
26-
"entry_method": "entry_method4"
27+
"entry_method": "entry_method4",
28+
"auth_result_code": "auth_result_code6"
2729
}
2830
```
2931

doc/models/destination-details.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Details about a refund's destination.
2525
"exp_month": 228,
2626
"exp_year": 68
2727
},
28-
"entry_method": "entry_method8"
28+
"entry_method": "entry_method8",
29+
"auth_result_code": "auth_result_code0"
2930
}
3031
}
3132
```

doc/models/get-payment-refund-response.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ present or it might be present in a FAILED state.
5555
"exp_month": 228,
5656
"exp_year": 68
5757
},
58-
"entry_method": "entry_method8"
58+
"entry_method": "entry_method8",
59+
"auth_result_code": "auth_result_code0"
5960
}
6061
}
6162
},

doc/models/list-payment-refunds-response.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ Either `errors` or `refunds` is present in a given response (never both).
5757
"exp_month": 228,
5858
"exp_year": 68
5959
},
60-
"entry_method": "entry_method8"
60+
"entry_method": "entry_method8",
61+
"auth_result_code": "auth_result_code0"
6162
}
6263
}
6364
}

doc/models/payment-refund.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ the original payment and the amount of money refunded.
4646
"exp_month": 228,
4747
"exp_year": 68
4848
},
49-
"entry_method": "entry_method8"
49+
"entry_method": "entry_method8",
50+
"auth_result_code": "auth_result_code0"
5051
}
5152
},
5253
"amount_money": {

doc/models/payment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Represents a payment processed by the Square API.
5151
| `ReceiptUrl` | `String` | Optional | The URL for the payment's receipt.<br>The field is only populated for COMPLETED payments.<br>**Constraints**: *Maximum Length*: `255` | String getReceiptUrl() |
5252
| `DeviceDetails` | [`DeviceDetails`](../../doc/models/device-details.md) | Optional | Details about the device that took the payment. | DeviceDetails getDeviceDetails() |
5353
| `ApplicationDetails` | [`ApplicationDetails`](../../doc/models/application-details.md) | Optional | Details about the application that took the payment. | ApplicationDetails getApplicationDetails() |
54+
| `IsOfflinePayment` | `Boolean` | Optional | Whether or not this payment was taken offline. | Boolean getIsOfflinePayment() |
5455
| `VersionToken` | `String` | Optional | Used for optimistic concurrency. This opaque token identifies a specific version of the<br>`Payment` object. | String getVersionToken() |
5556

5657
## Example (as JSON)

doc/models/refund-payment-response.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ present, or it might be present with a status of `FAILED`.
5050
"exp_month": 228,
5151
"exp_year": 68
5252
},
53-
"entry_method": "entry_method8"
53+
"entry_method": "entry_method8",
54+
"auth_result_code": "auth_result_code0"
5455
}
5556
}
5657
},

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.squareup</groupId>
55
<artifactId>square</artifactId>
6-
<version>39.0.0.20240417</version>
6+
<version>40.0.0.20240515</version>
77
<packaging>jar</packaging>
88
<name>Square</name>
99
<description>Java client library for the Square API</description>
@@ -40,17 +40,17 @@
4040
<dependency>
4141
<groupId>io.apimatic</groupId>
4242
<artifactId>core-interfaces</artifactId>
43-
<version>[0.2, 0.3)</version>
43+
<version>[0.3, 0.4)</version>
4444
</dependency>
4545
<dependency>
4646
<groupId>io.apimatic</groupId>
4747
<artifactId>core</artifactId>
48-
<version>[0.5, 0.6)</version>
48+
<version>[0.6, 0.7)</version>
4949
</dependency>
5050
<dependency>
5151
<groupId>io.apimatic</groupId>
5252
<artifactId>okhttp-client-adapter</artifactId>
53-
<version>[0.2, 0.3)</version>
53+
<version>[0.3, 0.4)</version>
5454
</dependency>
5555
<dependency>
5656
<groupId>junit</groupId>

0 commit comments

Comments
 (0)