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

Feature/pp 68940 #222

Merged
merged 6 commits into from
Apr 19, 2021
Merged

Feature/pp 68940 #222

merged 6 commits into from
Apr 19, 2021

Conversation

solancer
Copy link
Contributor

@solancer solancer commented Apr 15, 2021

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you read and signed the automated Contributor's License Agreement?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you lint your code locally prior to submission?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@codeclimate
Copy link

codeclimate bot commented Apr 15, 2021

Code Climate has analyzed commit d4b3d9b and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 80.0% (5% is the threshold).

This pull request will bring the total coverage in the repository to 84.0% (-0.4% change).

View more on Code Climate.

@blackduck-copilot
Copy link

Black Duck Security Report

Merging #222 into master will not change security risk.

Added Components

Clean: 1

Removed Components

Clean: 1

Click here to see full report

@sonarcloud
Copy link

sonarcloud bot commented Apr 19, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@shreyanshp shreyanshp merged commit 5daea31 into master Apr 19, 2021
@shreyanshp shreyanshp deleted the feature/PP-68940 branch April 19, 2021 06:34
@@ -15,28 +15,30 @@ export interface HttpsClientMessage {
class PayPayRestSDK {
private options: any = "";
private productionMode: boolean = false;
private perfMode: boolean = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you keep instance variables?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tilfin we are refactoring the whole SDK (repeating config files etc), we will be pushing that feature branch in a day or two please feel free to contribute on that draft PR.

this.auth.setAuth(clientConfig.clientId, clientConfig.clientSecret, clientConfig.merchantId);
if (clientConfig.productionMode) {
this.productionMode = clientConfig.productionMode
} else {
this.productionMode = false;
}
this.config = new Conf(this.productionMode);
if (clientConfig.perfMode) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional boolean variables should be compared with undefined to determine if those are applied.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tilfin we are refactoring the whole SDK (repeating config files etc), we will be pushing that feature branch in a day or two please feel free to contribute on that draft PR.

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.

3 participants