-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e123a27
commit f46b2a5
Showing
12 changed files
with
20 additions
and
20 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
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
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
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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
ListPaymentMethods, | ||
) | ||
|
||
from paddle_billing.Entities.Shared import Card, Paypal, SavedPaymentMethodOrigin, SavedPaymentMethodType | ||
from paddle_billing.Entities.Shared import Card, PayPal, SavedPaymentMethodOrigin, SavedPaymentMethodType | ||
|
||
from tests.Utils.ReadsFixture import ReadsFixtures | ||
|
||
|
@@ -252,13 +252,13 @@ def test_get_payment_methods_returns_expected_paypal_response( | |
assert response.customer_id == "ctm_01hv6y1jedq4p1n0yqn5ba3ky4" | ||
assert response.address_id == "add_01hv8h6jj90jjz0d71m6hj4r9z" | ||
assert response.card is None | ||
assert response.type == SavedPaymentMethodType.Paypal | ||
assert response.type == SavedPaymentMethodType.PayPal | ||
assert response.origin == SavedPaymentMethodOrigin.SavedDuringPurchase | ||
assert response.saved_at.isoformat() == "2024-05-03T11:50:23.422000+00:00" | ||
assert response.updated_at.isoformat() == "2024-05-04T11:50:23.422000+00:00" | ||
|
||
paypal = response.paypal | ||
assert isinstance(paypal, Paypal) | ||
assert isinstance(paypal, PayPal) | ||
assert paypal.email == "[email protected]" | ||
assert paypal.reference == "some-reference" | ||
|
||
|
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