summaryrefslogtreecommitdiff
path: root/design-documents
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-04-23 22:26:16 +0200
committerFlorian Dold <florian@dold.me>2023-04-23 22:26:26 +0200
commitf8b1c04607b79758e6f295e3158db45faaafb5df (patch)
tree29fec00f18ba4ee87ac001891ca0aba657666bf7 /design-documents
parentdba2b83e01b9d64e5567507c7d48b63054d3a91a (diff)
downloaddocs-f8b1c04607b79758e6f295e3158db45faaafb5df.tar.gz
docs-f8b1c04607b79758e6f295e3158db45faaafb5df.tar.bz2
docs-f8b1c04607b79758e6f295e3158db45faaafb5df.zip
No auto-refunds, fix diagram.
Still leaving in refunds for peer-pull-debit, even though exchange doesn't support it.
Diffstat (limited to 'design-documents')
-rw-r--r--design-documents/037-wallet-transactions-lifecycle.rst29
1 files changed, 18 insertions, 11 deletions
diff --git a/design-documents/037-wallet-transactions-lifecycle.rst b/design-documents/037-wallet-transactions-lifecycle.rst
index 0829f9b1..e89c91c6 100644
--- a/design-documents/037-wallet-transactions-lifecycle.rst
+++ b/design-documents/037-wallet-transactions-lifecycle.rst
@@ -679,12 +679,13 @@ Transaction Type: Deposit
All the coins were submitted, waiting to be wired.
* ``[poll-success] => done``
- * ``[poll-accepted] => pending(kyc)``
+ * ``[poll-accepted-kyc] => pending(kyc)``
+ * ``[poll-accepted-aml] => pending(aml)``
* ``[action:abort] => aborting(refund)``
* ``pending(kyc)``
- Exchange requires KYC (or AML) before making the wire transfer.
+ Exchange requires KYC before making the wire transfer.
* ``[long-poll:kyc] => done``
* ``[action:suspend] => suspended(kyc)``
@@ -696,6 +697,20 @@ Transaction Type: Deposit
* ``[action:resume] => pending(kyc)``
* ``[action:force-delete] => deleted``
+* ``pending(aml)``
+
+ Exchange requires AML before making the wire transfer.
+
+ * ``[long-poll:aml] => done``
+ * ``[action:suspend] => suspended(aml)``
+
+* ``suspended(aml)``
+
+ The user suspended us while we were waiting for AML to be finished.
+
+ * ``[action:resume] => pending(aml)``
+ * ``[action:force-delete] => deleted``
+
* ``aborting(refund)``
Wallet should try to get the deposited amount back from the exchange (by submitting a refund).
@@ -1105,8 +1120,7 @@ Transaction Type: Peer Pull Debit
into the provided purse.
* ``[action:suspend] => suspended(deposit)``
- * ``[processed-success(auto-refund-enabled)] => pending(refundable)``. FIXME(CG): I think we should not support auto-refund.
- * ``[processed-success(auto-refund-disabled)] => done``
+ * ``[processed-success] => done``
* ``[failure:timeout] => aborting(refresh)``
* ``[processed-success] => done``
* ``[failure:other] => aborting(refund)``
@@ -1118,13 +1132,6 @@ Transaction Type: Peer Pull Debit
* ``[action:resume] => pending(deposit)``
* ``[action:abort] => aborting_refund``
-* ``pending(refundable)``
-
- The payment succeed but if auto-refund-check is active it will be checking for refunds.
- FIXME(CG): I do not think we should support auto-refunds here. Not included in diagram.
-
- * ``[auto-refund-timeout] => done``
-
* ``aborting(refund)``
Aborts the payment, asking for the already deposited coins to be refunded.