-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated PR for Release: 11.0.0.20210513
- Loading branch information
autobot
committed
May 13, 2021
1 parent
71eedba
commit 2e8309c
Showing
193 changed files
with
3,454 additions
and
1,335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: PHP Composer | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
env: | ||
SQUARE_ENVIRONMENT: sandbox | ||
SQUARE_ACCESS_TOKEN: ${{ secrets.SQUARE_SANDBOX_TOKEN }} | ||
|
||
runs-on: ubuntu-18.04 | ||
|
||
strategy: | ||
matrix: | ||
php-versions: ["7.2", "7.3", "7.4", "8.0"] | ||
phpunit-versions: ["8.5.8"] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: phpunit:${{ matrix.phpunit-versions }} | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php-${{ matrix.php-versions }}- | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress | ||
|
||
- name: Run test suite | ||
run: composer run test | ||
|
||
- name: Run test suite | ||
run: composer run analyze |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Sites | ||
|
||
```php | ||
$sitesApi = $client->getSitesApi(); | ||
``` | ||
|
||
## Class Name | ||
|
||
`SitesApi` | ||
|
||
|
||
# List Sites | ||
|
||
Lists the Square Online sites that belong to a seller. | ||
|
||
__Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis). | ||
|
||
```php | ||
function listSites(): ApiResponse | ||
``` | ||
|
||
## Response Type | ||
|
||
[`ListSitesResponse`](/doc/models/list-sites-response.md) | ||
|
||
## Example Usage | ||
|
||
```php | ||
$apiResponse = $sitesApi->listSites(); | ||
|
||
if ($apiResponse->isSuccess()) { | ||
$listSitesResponse = $apiResponse->getResult(); | ||
} else { | ||
$errors = $apiResponse->getErrors(); | ||
} | ||
|
||
// Get more response info... | ||
// $statusCode = $apiResponse->getStatusCode(); | ||
// $headers = $apiResponse->getHeaders(); | ||
``` | ||
|
Oops, something went wrong.