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

add tax rate to the PurchasedItem #224

Closed

Conversation

PetrDlouhy
Copy link
Contributor

@PetrDlouhy PetrDlouhy commented Aug 7, 2020

PayU provider needs to state every item price including tax in contrast with PayPal, that needs the price without tax.
So if the PurchasedItem.price is without tax I don't have enough information for PayU implementation.
I think, that it would be best to add tax rate, because some theoretical provider could need tax rate stated for every item (every item could have different rate).

@codecov
Copy link

codecov bot commented Aug 7, 2020

Codecov Report

Merging #224 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #224   +/-   ##
=======================================
  Coverage   79.57%   79.57%           
=======================================
  Files          27       27           
  Lines        1611     1611           
  Branches      192      192           
=======================================
  Hits         1282     1282           
  Misses        225      225           
  Partials      104      104           

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 3b1dbfb...120ff8d. Read the comment docs.

Copy link
Member

@WhyNotHugo WhyNotHugo left a comment

Choose a reason for hiding this comment

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

The intent here makes sense to me, but I think it would be a lot better to use typing.NamedTuple.

It's a lot easier to read, and setting default is less hacky.

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

2 participants