Skip to content

Commit f00152c

Browse files
authored
Merge pull request #147 from square/release/37.0.0
Generated PR for Release: 37.0.0
2 parents b7b5c59 + 3664543 commit f00152c

15 files changed

+33
-14
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
| `additionalHeaders` | `Readonly<Record<string, string>>` | Additional headers to add to each API call<br>*Default*: `{}` |
@@ -43,7 +43,7 @@ const client = new Client({
4343
bearerAuthCredentials: {
4444
accessToken: 'AccessToken'
4545
},
46-
squareVersion: '2024-04-17',
46+
squareVersion: '2024-05-15',
4747
timeout: 60000,
4848
additionalHeaders: {},
4949
userAgentDetail: '',
@@ -60,7 +60,7 @@ const client = new Client({
6060
bearerAuthCredentials: {
6161
accessToken: 'AccessToken'
6262
},
63-
squareVersion: '2024-04-17',
63+
squareVersion: '2024-05-15',
6464
timeout: 60000,
6565
additionalHeaders: {},
6666
userAgentDetail: '',

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 \| null \| undefined` | 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` |
1616
| `abbreviation` | `string \| null \| undefined` | 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` |
1717
| `labelColor` | `string \| null \| undefined` | Optional | The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code. |
18+
| `isTaxable` | `boolean \| null \| undefined` | Optional | Indicates whether the item is taxable (`true`) or non-taxable (`false`). Default is `true`. |
1819
| `availableOnline` | `boolean \| null \| undefined` | Optional | If `true`, the item can be added to shipping orders from the merchant's online store. |
1920
| `availableForPickup` | `boolean \| null \| undefined` | Optional | If `true`, the item can be added to pickup orders from the merchant's online store. |
2021
| `availableElectronically` | `boolean \| null \| undefined` | Optional | If `true`, the item can be added to electronically fulfilled orders from the merchant's online store. |
@@ -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 \| undefined`](../../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. |
1313
| `entryMethod` | `string \| null \| undefined` | 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` |
14+
| `authResultCode` | `string \| null \| undefined` | Optional | The authorization code provided by the issuer when a refund is approved.<br>**Constraints**: *Maximum Length*: `10` |
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 \| undefined` | Optional | The URL for the payment's receipt.<br>The field is only populated for COMPLETED payments.<br>**Constraints**: *Maximum Length*: `255` |
5252
| `deviceDetails` | [`DeviceDetails \| undefined`](../../doc/models/device-details.md) | Optional | Details about the device that took the payment. |
5353
| `applicationDetails` | [`ApplicationDetails \| undefined`](../../doc/models/application-details.md) | Optional | Details about the application that took the payment. |
54+
| `isOfflinePayment` | `boolean \| undefined` | Optional | Whether or not this payment was taken offline. |
5455
| `versionToken` | `string \| null \| undefined` | Optional | Used for optimistic concurrency. This opaque token identifies a specific version of the<br>`Payment` object. |
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
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "36.0.0",
2+
"version": "37.0.0",
33
"license": "MIT",
44
"sideEffects": false,
55
"main": "dist/cjs/index.js",

0 commit comments

Comments
 (0)