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

Feat: accept optional concession_expiry #35

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

thekaveman
Copy link
Member

When linking a funding source to a concession group.

  • concession_expiry must be a Python datetime instance
  • for aware datetime instances, ensure the datetime is in UTC
  • for naive datetime instances, assume the datetime is in UTC (making it aware)

More about aware/naive datetimes: https://docs.python.org/3/library/datetime.html#determining-if-an-object-is-aware-or-naive

Closes #17

when linking a funding source to a concession group

* concession_expiry must be a Python datetime instance
* for 'aware' datetime instances, ensure the datetime is in UTC
* for 'naive' datetime instances, assume the datetime is in UTC (making it 'aware')

more about aware/naive datetimes: https://docs.python.org/3/library/datetime.html#determining-if-an-object-is-aware-or-naive
@thekaveman thekaveman added the api New API feature implementation or refactor label Mar 18, 2024
@thekaveman thekaveman self-assigned this Mar 18, 2024
@thekaveman thekaveman requested a review from a team as a code owner March 18, 2024 21:57
Copy link

github-actions bot commented Mar 18, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  littlepay/api
  groups.py
Project Total  

This report was generated by python-coverage-comment-action

@thekaveman thekaveman marked this pull request as draft March 18, 2024 22:08
will need to reuse for the PUT case as well
@thekaveman thekaveman marked this pull request as ready for review March 18, 2024 22:14
Copy link
Member

@angela-tran angela-tran left a comment

Choose a reason for hiding this comment

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

This looks good to me ⏳

@thekaveman thekaveman merged commit aaa4252 into main Mar 19, 2024
3 checks passed
@thekaveman thekaveman deleted the feat/concession-expiry-post branch March 19, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api New API feature implementation or refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add optional expiry_date parameter to link_concession_group_funding_source
2 participants