Skip to content

Commit 9d98398

Browse files
authored
Merge pull request #110 from square/release/26.0.0.20230419
Generated PR for Release: 26.0.0.20230419
2 parents a665cac + b82b9bd commit 9d98398

File tree

1,625 files changed

+109242
-6834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,625 files changed

+109242
-6834
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
SQUARE_ENVIRONMENT: sandbox
1313
SQUARE_ACCESS_TOKEN: ${{ secrets.SQUARE_SANDBOX_TOKEN }}
1414

15-
runs-on: ubuntu-18.04
15+
runs-on: ubuntu-latest
1616

1717
strategy:
1818
matrix:

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ All environment variables:
136136
* [Mobile Authorization]
137137
* [OAuth]
138138

139+
### Webhook Subscriptions
140+
* [Webhook Subscriptions]
139141
## Deprecated APIs
140142

141143
The following Square APIs are [deprecated](https://developer.squareup.com/docs/build-basics/api-lifecycle):
@@ -180,9 +182,10 @@ The following Square APIs are [deprecated](https://developer.squareup.com/docs/b
180182
[Team]: doc/apis/team.md
181183
[Sites]: doc/apis/sites.md
182184
[Snippets]: doc/apis/snippets.md
183-
[Cards]: doc/api/cards.md
184-
[Payouts]: doc/api/payouts.md
185-
[Gift Cards]: doc/api/gift-cards.md
186-
[Gift Card Activities]: doc/api/gift-card-activities.md
185+
[Cards]: doc/apis/cards.md
186+
[Payouts]: doc/apis/payouts.md
187+
[Gift Cards]: doc/apis/gift-cards.md
188+
[Gift Card Activities]: doc/apis/gift-card-activities.md
187189
[Employees]: doc/apis/employees.md
188190
[Transactions]: doc/apis/transactions.md
191+
[Webhook Subscriptions]: doc/api/webhook-subscriptions.md

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "square/square",
33
"description": "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.",
4-
"version": "25.2.0.20230315",
4+
"version": "26.0.0.20230419",
55
"type": "library",
66
"keywords": [
77
"Square",
@@ -20,15 +20,15 @@
2020
}
2121
],
2222
"require": {
23-
"php": ">=7.2 <8.2",
23+
"php": "^7.2 || ^8.0",
2424
"ext-json": "*",
2525
"apimatic/unirest-php": "^4.0.0",
2626
"apimatic/core-interfaces": "~0.1.0",
2727
"apimatic/core": "~0.2.0"
2828
},
2929
"require-dev": {
3030
"squizlabs/php_codesniffer": "^3.5",
31-
"phan/phan": "5.3.1",
31+
"phan/phan": "5.4.2",
3232
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5"
3333
},
3434
"autoload": {

doc/apis/apple-pay.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ function registerDomain(RegisterDomainRequest $body): ApiResponse
4040
## Example Usage
4141

4242
```php
43-
$body_domainName = 'example.com';
44-
$body = new Models\RegisterDomainRequest(
45-
$body_domainName
46-
);
43+
$body = RegisterDomainRequestBuilder::init(
44+
'example.com'
45+
)->build();
4746

4847
$apiResponse = $applePayApi->registerDomain($body);
4948

@@ -53,8 +52,8 @@ if ($apiResponse->isSuccess()) {
5352
$errors = $apiResponse->getErrors();
5453
}
5554

56-
// Get more response info...
57-
// $statusCode = $apiResponse->getStatusCode();
58-
// $headers = $apiResponse->getHeaders();
55+
// Getting more response information
56+
var_dump($apiResponse->getStatusCode());
57+
var_dump($apiResponse->getHeaders());
5958
```
6059

doc/apis/bank-accounts.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ if ($apiResponse->isSuccess()) {
4646
$errors = $apiResponse->getErrors();
4747
}
4848

49-
// Get more response info...
50-
// $statusCode = $apiResponse->getStatusCode();
51-
// $headers = $apiResponse->getHeaders();
49+
// Getting more response information
50+
var_dump($apiResponse->getStatusCode());
51+
var_dump($apiResponse->getHeaders());
5252
```
5353

5454

@@ -83,9 +83,9 @@ if ($apiResponse->isSuccess()) {
8383
$errors = $apiResponse->getErrors();
8484
}
8585

86-
// Get more response info...
87-
// $statusCode = $apiResponse->getStatusCode();
88-
// $headers = $apiResponse->getHeaders();
86+
// Getting more response information
87+
var_dump($apiResponse->getStatusCode());
88+
var_dump($apiResponse->getHeaders());
8989
```
9090

9191

@@ -121,8 +121,8 @@ if ($apiResponse->isSuccess()) {
121121
$errors = $apiResponse->getErrors();
122122
}
123123

124-
// Get more response info...
125-
// $statusCode = $apiResponse->getStatusCode();
126-
// $headers = $apiResponse->getHeaders();
124+
// Getting more response information
125+
var_dump($apiResponse->getStatusCode());
126+
var_dump($apiResponse->getHeaders());
127127
```
128128

0 commit comments

Comments
 (0)