Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added support for linking accounts to sub-merchants#3

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
thomshutt merged 4 commits intomasterfromlink-account
Nov 2, 2016

Conversation

@thomshutt
Copy link
Contributor

No description provided.

try (finalCloseableHttpResponsehttpResponse =httpclient.execute(httpRequest)) {
finalintstatusCode =httpResponse.getStatusLine().getStatusCode();

if (statusCode <200 ||statusCode >=300) {

Choose a reason for hiding this comment

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

I'd be surprised iforg.apache.http didn't have constants for these somewhere. Could we double-check?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Switched to just checking for the 204 that Castlabs currently return on success

* Add a sub merchant account to Castlabs.
*
* @param request Request parameters to pass to Castlabs
* @param requestRequest parameters to pass to Castlabs

Choose a reason for hiding this comment

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

Is your IDE adding the whitespace here?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yep, it lines it up with the@param on the line below

}
}

privateHttpPostcreateHttpPostRequest(finalStringuri,finalObjectbody)throwsJsonProcessingException,UnsupportedEncodingException {

Choose a reason for hiding this comment

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

I approve of this refactoring 👍

Copy link

@stuarthicksstuarthicks left a comment

Choose a reason for hiding this comment

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

LGTM.

@thomshuttthomshutt merged commit333e5ae intomasterNov 2, 2016
@thomshuttthomshutt deleted the link-account branchNovember 2, 2016 08:11
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stuarthicksstuarthicksstuarthicks approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@thomshutt@stuarthicks

[8]ページ先頭

©2009-2025 Movatter.jp