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

Customer verify request + other updates #13

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

mifzp-dev
Copy link

  • Add customer verify request and related stuff (VO, interface, convertISO, etc);
  • Fix wrong validation for password and secret word;
  • Some PSR code style fixes + remove unused use;
  • Change strval() to (string) typecasting to decrease cognitive loading and improve speed performance;
  • Add ability to set request headers depending on content type (xml or json);
  • Add ability to set request method;
  • Add nullable to $response->get() to be able to get response as array with default value $response->get(null, []);

@codecov
Copy link

codecov bot commented Aug 27, 2020

Codecov Report

Merging #13 into master will decrease coverage by 16.35%.
The diff coverage is 44.23%.

Impacted file tree graph

@@              Coverage Diff               @@
##              master      #13       +/-   ##
==============================================
- Coverage     100.00%   83.64%   -16.36%     
- Complexity       145      186       +41     
==============================================
  Files             45       51        +6     
  Lines            426      532      +106     
==============================================
+ Hits             426      445       +19     
- Misses             0       87       +87     
Impacted Files Coverage Δ Complexity Δ
src/Factory/VerificationServiceFactory.php 0.00% <0.00%> (ø) 2.00 <2.00> (?)
src/Request/CustomerVerificationRequest.php 0.00% <0.00%> (ø) 2.00 <2.00> (?)
src/ValueObject/Address.php 0.00% <0.00%> (ø) 17.00 <17.00> (?)
src/ValueObject/Customer.php 0.00% <0.00%> (ø) 6.00 <6.00> (?)
src/ValueObject/CustomerId.php 0.00% <0.00%> (ø) 2.00 <2.00> (?)
src/ValueObject/DateOfBirth.php 0.00% <0.00%> (ø) 4.00 <4.00> (?)
src/SkrillClient.php 90.81% <71.87%> (-9.19%) 22.00 <6.00> (+5.00) ⬇️
src/Exception/InvalidSecretWordException.php 80.00% <75.00%> (-20.00%) 4.00 <3.00> (+1.00) ⬇️
src/ValueObject/SecretWord.php 90.90% <83.33%> (-9.10%) 5.00 <0.00> (+1.00) ⬇️
src/Exception/InvalidPasswordException.php 100.00% <100.00%> (ø) 3.00 <1.00> (ø)
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15b634b...624be78. Read the comment docs.

@zhooravell
Copy link
Owner

You've made a lot of these changes strval ($ transactionId) => (string) $ transactionId. Why?
Pay attention to Codecov Report

@mifzp-dev
Copy link
Author

mifzp-dev commented Aug 28, 2020 via email

@mifzp-dev
Copy link
Author

So what?

@zhooravell
Copy link
Owner

  • Coverage 100.00% 83.45% -16.55%
  • Complexity 145 186 +41
    Code coverage by tests decreased by 16%
    Code complexity increased by 41%

Conflicts

@mifzp-dev
Copy link
Author

Merged

Eugene Yaroshenko added 2 commits September 10, 2020 12:34
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.

2 participants