Skip to content
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

Merged
merged 4 commits into from Sep 24, 2018
Merged

Conversation

daz-stripe
Copy link
Contributor

Bindings for Terminal endpoints

  • Connection Tokens
  • Locations
  • Readers

Copy link
Contributor

@ob-stripe ob-stripe left a 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);
Copy link
Contributor

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);
Copy link
Contributor

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.

["registration_code" => "a-b-c"]
);
$resource = Reader::create(['registration_code' => 'a-b-c']);
$this->assertInstanceOf("Stripe\\Terminal\\Reader", $resource);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here too.

const OBJECT_NAME = "terminal.connection_token";

use \Stripe\ApiOperations\Create;
}
Copy link
Contributor

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.

use \Stripe\ApiOperations\Create;
use \Stripe\ApiOperations\Retrieve;
use \Stripe\ApiOperations\Update;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

use \Stripe\ApiOperations\Create;
use \Stripe\ApiOperations\Retrieve;
use \Stripe\ApiOperations\Update;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here.

@stripe-ci stripe-ci assigned daz-stripe and unassigned ob-stripe Sep 18, 2018
@daz-stripe daz-stripe assigned ob-stripe and unassigned daz-stripe Sep 18, 2018
Copy link
Contributor

@ob-stripe ob-stripe left a 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.

/**
* Class ConnectionToken
*
* @property string $connection_token
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep!

@brandur-stripe
Copy link
Contributor

ptal @daz-stripe

@daz-stripe
Copy link
Contributor Author

Updated and fixed the misname!
r? @brandur-stripe

@brandur-stripe
Copy link
Contributor

Thanks!

@brandur-stripe brandur-stripe merged commit 514eaf8 into master Sep 24, 2018
@brandur-stripe brandur-stripe deleted the daz-terminal-bindings branch September 24, 2018 23:08
@brandur-stripe
Copy link
Contributor

Released as 6.19.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants