Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit a8c932b

Browse files
committed
Add alternate contact info
1 parent 43c94e3 commit a8c932b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

api/restapi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,10 @@ def handle_response(resp, contract):
710710
request.args["country"][0].decode("utf8")
711711
if "country" in request.args else None,
712712
request.args["moderator"][0] if "moderator" in request.args else None,
713-
options)
713+
options,
714+
request.args["alternate_contact"][0].decode("utf8")
715+
if "alternate_contact" in request.args else None,
716+
)
714717

715718
def get_node(node):
716719
if node is not None:

market/contracts.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ def add_purchase_info(self,
288288
postal_code=None,
289289
country=None,
290290
moderator=None,
291-
options=None):
291+
options=None,
292+
alternate_contact=None):
292293
"""
293294
Update the contract with the buyer's purchase information.
294295
"""
@@ -322,7 +323,8 @@ def add_purchase_info(self,
322323
}
323324
},
324325
"payment": {},
325-
"refund_address": refund_address
326+
"refund_address": refund_address,
327+
"alternate_contact": alternate_contact if alternate_contact is not None else ""
326328
}
327329
}
328330
}

0 commit comments

Comments
 (0)