-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: apply travelperk sync fix to all existing accounts (#220)
* fix: travelperk not loading all invoice profiles integrate with the travelperk pagination API to fetch invoice profiles from all pages * refactor: move `get_all_generator` to `ApiBase` and rename variable * fix: generalise the `get_all_generator` method for all onject types and create an implementation in `InvoiceProfiles` * refactor: clarity * fix: apply travelperk sync fix to all existing accounts * test: add request and response logs to the travelperk api
- Loading branch information
1 parent
cb67842
commit 45c567f
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from apps.travelperk.models import TravelperkCredential | ||
from apps.travelperk.serializers import SyncPaymentProfileSerializer | ||
|
||
|
||
all_creds = TravelperkCredential.objects.all() | ||
|
||
for creds in all_creds: | ||
SyncPaymentProfileSerializer().sync_payment_profiles(creds.org_id) |