Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add fully charged and rename charged to partially charged

Unknown0a7e48638df5
diff --git a/saleor/payment/__init__.py b/saleor/payment/__init__.py
index ae8f94dd3f..414032780a 100644
--- a/saleor/payment/__init__.py
+++ b/saleor/payment/__init__.py
@@ -75,22 +75,24 @@ class TransactionKind:
class ChargeStatus:
"""
- Not charged: No funds were take off the customer founding source yet.
- - Charged: Funds were taken off the customer founding source, partly or
- completely covering the payment amount.
+ - Partially charged: Funds were taken off the customer founding source,
+ partly covering the payment amount.
+ - Fully charged: Funds were taken off the customer founding source,
+ completely covering the payment amount.
- Partially refunded: Part of charged funds were returned to the customer.
- Fully refunded: All charged funds were returned to the customer.
"""
NOT_CHARGED = 'not-charged'
- CHARGED = 'charged'
+ PARTIALLY_CHARGED = 'partially-charged'
+ FULLY_CHARGED = 'fully-charged'
PARTIALLY_REFUNDED = 'partially-refunded'
FULLY_REFUNDED = 'fully-refunded'
- # FIXME
- # We could probably support other statuses, like:
- # fully charged
- # ...?
+
CHOICES = [
(NOT_CHARGED, pgettext_lazy('payment status', 'Not charged')),
- (CHARGED, pgettext_lazy('payment status', 'Charged')),
+ (PARTIALLY_CHARGED, pgettext_lazy(
+ 'payment status', 'Partially charged')),
+ (FULLY_CHARGED, pgettext_lazy('payment status', 'Fully charged')),
(PARTIALLY_REFUNDED, pgettext_lazy(
'payment status', 'Partially refunded')),
(FULLY_REFUNDED, pgettext_lazy('payment status', 'Fully refunded'))]