Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Release/2.1.0 #18

Merged
merged 16 commits into from
May 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ cache:
directories:
- $HOME/.composer/cache/files
before_install:
- composer install
- composer config -g repositories.packagist composer https://packagist.jp
- composer install -vvv
install:
- openssl aes-256-cbc -K $encrypted_c2c0feadb429_key -iv $encrypted_c2c0feadb429_iv -in ./travis-ci/accounts.enc -out ./travis-ci/accounts.json -d
script:
script:
- vendor/bin/phpunit test

222 changes: 198 additions & 24 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "square/connect",
"version": "2.0.2",
"version": "2.1.0",
"description": "PHP client library for the Square Connect v2 API",
"keywords": [
"swagger",
Expand Down
547 changes: 547 additions & 0 deletions docs/Api/CatalogApi.md

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions docs/Api/CheckoutApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Method | HTTP request | Description


# **createCheckout**
> \SquareConnect\Model\CreateCheckoutResponse createCheckout($authorization, $location_id, $body)
> \SquareConnect\Model\CreateCheckoutResponse createCheckout($location_id, $body)

CreateCheckout

Expand All @@ -19,13 +19,15 @@ Creates a [Checkout](#type-checkout) response that links a `checkoutId` and `che
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2
SquareConnect\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new SquareConnect\Api\CheckoutApi();
$authorization = "authorization_example"; // string | The value to provide in the Authorization header of your request. This value should follow the format `Bearer YOUR_ACCESS_TOKEN_HERE`.
$location_id = "location_id_example"; // string | The ID of the business location to associate the checkout with.
$body = new \SquareConnect\Model\CreateCheckoutRequest(); // \SquareConnect\Model\CreateCheckoutRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details.

try {
$result = $api_instance->createCheckout($authorization, $location_id, $body);
$result = $api_instance->createCheckout($location_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CheckoutApi->createCheckout: ', $e->getMessage(), PHP_EOL;
Expand All @@ -37,7 +39,6 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**authorization** | **string**| The value to provide in the Authorization header of your request. This value should follow the format &#x60;Bearer YOUR_ACCESS_TOKEN_HERE&#x60;. |
**location_id** | **string**| The ID of the business location to associate the checkout with. |
**body** | [**\SquareConnect\Model\CreateCheckoutRequest**](../Model/\SquareConnect\Model\CreateCheckoutRequest.md)| An object containing the fields to POST for the request. See the corresponding object definition for field details. |

Expand All @@ -47,7 +48,7 @@ Name | Type | Description | Notes

### Authorization

No authorization required
[oauth2](../../README.md#oauth2)

### HTTP request headers

Expand Down
250 changes: 0 additions & 250 deletions docs/Api/CustomerApi.md

This file was deleted.

Loading