Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions craftgate/request/init_multi_payment_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class InitMultiPaymentRequest(object):
def __init__(
self,
price: Optional[Decimal] = None,
paid_price: Optional[Decimal] = None,
currency: Optional[Currency] = None,
payment_group: Optional[PaymentGroup] = None,
conversation_id: Optional[str] = None,
Expand All @@ -39,7 +38,6 @@ def __init__(
additional_params: Optional[Dict[str, Any]] = None,
) -> None:
self.price = price
self.paid_price = paid_price
self.currency = currency
self.payment_group = payment_group
self.conversation_id = conversation_id
Expand Down
4 changes: 2 additions & 2 deletions craftgate/response/multi_payment_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(
token: Optional[str] = None,
conversation_id: Optional[str] = None,
external_id: Optional[str] = None,
paid_price: Optional[Decimal] = None,
price: Optional[Decimal] = None,
remaining_amount: Optional[Decimal] = None,
token_expire_date: Optional[datetime] = None,
payment_ids: Optional[List[int]] = None
Expand All @@ -23,7 +23,7 @@ def __init__(
self.token = token
self.conversation_id = conversation_id
self.external_id = external_id
self.paid_price = paid_price
self.price = price
self.remaining_amount = remaining_amount
self.token_expire_date = token_expire_date
self.payment_ids = payment_ids
1 change: 0 additions & 1 deletion tests/test_payment_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,6 @@ def test_init_multi_payment(self):

req = InitMultiPaymentRequest()
req.price = Decimal("100")
req.paid_price = Decimal("100")
req.callback_url = "https://www.your-website.com/craftgate-checkout-callback"
req.currency = Currency.TRY
req.conversation_id = "456d1297-908e-4bd6-a13b-4be31a6e47d5"
Expand Down
Loading