-
Notifications
You must be signed in to change notification settings - Fork 848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bindings for Terminal endpoints #523
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some linting issues. Other than that, LGTM assuming tests still after stripe-mock update.
'/v1/terminal/connection_tokens' | ||
); | ||
$resource = ConnectionToken::create(); | ||
$this->assertInstanceOf("Stripe\\Terminal\\ConnectionToken", $resource); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHP uses 4 spaces for indents, but you only used only 2 spaces here.
"city" => "San Francisco" | ||
] | ||
]); | ||
$this->assertInstanceOf("Stripe\\Terminal\\Location", $resource); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same indentation issue in this function.
tests/Stripe/Terminal/ReaderTest.php
Outdated
["registration_code" => "a-b-c"] | ||
); | ||
$resource = Reader::create(['registration_code' => 'a-b-c']); | ||
$this->assertInstanceOf("Stripe\\Terminal\\Reader", $resource); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here too.
lib/Terminal/ConnectionToken.php
Outdated
const OBJECT_NAME = "terminal.connection_token"; | ||
|
||
use \Stripe\ApiOperations\Create; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add a newline character at end of file to satisfy the linter.
lib/Terminal/Location.php
Outdated
use \Stripe\ApiOperations\Create; | ||
use \Stripe\ApiOperations\Retrieve; | ||
use \Stripe\ApiOperations\Update; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
lib/Terminal/Reader.php
Outdated
use \Stripe\ApiOperations\Create; | ||
use \Stripe\ApiOperations\Retrieve; | ||
use \Stripe\ApiOperations\Update; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, assuming tests pass after stripe-mock update.
71e5e08
to
dddab39
Compare
lib/Terminal/ConnectionToken.php
Outdated
/** | ||
* Class ConnectionToken | ||
* | ||
* @property string $connection_token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, but can we change this to the new $secret
property?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep!
ptal @daz-stripe |
Updated and fixed the misname! |
Thanks! |
Released as 6.19.0. |
Bindings for Terminal endpoints