Skip to content

Commit 20fde12

Browse files
committed
uncomment last steps
1 parent 5c1c052 commit 20fde12

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
This guide introduces you how can interact with points platform through easy examples. Adicionally, I'll show you how to configure the server api.
5454

55-
### User Roles
55+
### User Roles (under cosstruction)
5656

5757
Each user has a role that allow perform different actions on the platform. Next I'll show each role and its associated actions.
5858

@@ -525,9 +525,9 @@ _Guidelines:
525525
3. Then a client spent N points there are transfered to an entity acount to control the amount of spent points.
526526

527527
How we implement this with _points_?
528-
You can see the exercise resolution in an executable scenario in [exercise_2](scripts/exercises/exercise_2) script. You must execute next command to run the exercise:
528+
You can see the exercise resolution in an executable scenario under [exercise_2](scripts/exercises/exercise_2) script. You must execute next command to run the exercise:
529529
```bash
530-
$ bash scripts/exercises/exercise_1
530+
$ bash scripts/exercises/exercise_2
531531
```
532532

533533
##### Exercise 3: X company offer buy with points that belong to Y company clients.

scripts/exercises/exercise_2

+8-8
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ sign_out $TOKEN
9898
#-------------------------------------------------------------------------
9999
# Resolution
100100
#-------------------------------------------------------------------------
101-
# TOKEN=$(sign_in $NORMAL_USER $PASSWORD)
101+
TOKEN=$(sign_in $NORMAL_USER $PASSWORD)
102102
AMOUNT=1000
103-
# print "$NORMAL_USER transfer $AMOUNT B points to A points account under A company"
104-
# mix cli.transactions.exec.transfer $TOKEN \
105-
# '{"from":{"email":"'"$NORMAL_USER"'","currency":"BPT"},"to":{"email":"'"$NORMAL_USER"'","currency":"APT"},"amount":'"$AMOUNT"'}'
103+
print "$NORMAL_USER transfer $AMOUNT B points to A points account under A company"
104+
mix cli.transactions.exec.transfer $TOKEN \
105+
'{"from":{"email":"'"$NORMAL_USER"'","currency":"BPT"},"to":{"email":"'"$NORMAL_USER"'","currency":"APT"},"amount":'"$AMOUNT"'}'
106106

107-
# print "$NORMAL_USER spend all A points to paid a product of by A company"
108-
# mix cli.transactions.exec.transfer $TOKEN \
109-
# '{"from":{"email":"'"$NORMAL_USER"'","currency":"APT"},"to":{"email":"'"$ENTITY_ADMIN_A"'","currency":"'"$ISSUER_ACCOUNT_CURRENCY"'"},"amount":'"$AMOUNT"'}'
107+
print "$NORMAL_USER spend all A points to paid a product of by A company"
108+
mix cli.transactions.exec.transfer $TOKEN \
109+
'{"from":{"email":"'"$NORMAL_USER"'","currency":"APT"},"to":{"email":"'"$ENTITY_ADMIN_A"'","currency":"'"$ISSUER_ACCOUNT_CURRENCY"'"},"amount":'"$AMOUNT"'}'
110110

111-
# sign_out $TOKEN
111+
sign_out $TOKEN

0 commit comments

Comments
 (0)