Skip to content

Commit ff0e3f5

Browse files
committed
Rendered docs
1 parent 5d0c927 commit ff0e3f5

File tree

164 files changed

+1377
-701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1377
-701
lines changed

scenario.cache

Lines changed: 175 additions & 186 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
<%namespace file='/_main.mako' name='main'/>
21
% if mode == 'definition':
3-
balanced.Account.add_card
42

3+
balanced.Account.add_card
54
% else:
6-
${main.python_boilerplate()}
7-
account = balanced.Account.find('${request['uri']}')
8-
account.add_card('${payload['card_uri']}')
5+
import balanced
6+
7+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
8+
9+
10+
account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN')
11+
account.add_card('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC1UxG1UwXYFcslMhp4wq2Mg')
912

10-
% endif
13+
% endif
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
${main.python_boilerplate()}
2-
account = balanced.Account.find('${request['uri']}')
3-
account.add_card('${payload['card_uri']}')
1+
import balanced
2+
3+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
4+
5+
6+
account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN')
7+
account.add_card('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC1UxG1UwXYFcslMhp4wq2Mg')
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
<%namespace file='/_main.mako' name='main'/>
21
% if mode == 'definition':
3-
balanced.Account.debit()
42

3+
balanced.Account.debit()
54
% else:
6-
${main.python_boilerplate()}
7-
account = balanced.Account.find('${request['account_uri']}')
8-
account.debit(amount=${payload['amount']}, hold_uri='${payload['hold_uri']}')
5+
import balanced
6+
7+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
8+
9+
10+
account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC41WWE1V0nZtw5J8BicNwnB')
11+
account.debit(amount=1000, hold_uri='/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL4b3zuvRlumVNFMeKl0h5Pk')
912

10-
% endif
13+
% endif
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
${main.python_boilerplate()}
2-
account = balanced.Account.find('${request['account_uri']}')
3-
account.debit(amount=${payload['amount']}, hold_uri='${payload['hold_uri']}')
1+
import balanced
2+
3+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
4+
5+
6+
account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC41WWE1V0nZtw5J8BicNwnB')
7+
account.debit(amount=1000, hold_uri='/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL4b3zuvRlumVNFMeKl0h5Pk')
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
<%namespace file='/_main.mako' name='main'/>
21
% if mode == 'definition':
3-
balanced.Account(...).save()
42

3+
balanced.Account(...).save()
54
% else:
6-
${main.python_boilerplate()}
5+
import balanced
6+
7+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
8+
9+
710
account = balanced.Account().save()
811

9-
% endif
12+
% endif

scenarios/account_create/request.mako

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
${main.python_boilerplate()}
1+
import balanced
2+
3+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
4+
5+
26
account = balanced.Account().save()
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
<%namespace file='/_main.mako' name='main'/>
21
% if mode == 'definition':
3-
balanced.Account(...).save()
42

3+
balanced.Account(...).save()
54
% else:
6-
${main.python_boilerplate()}
5+
import balanced
6+
7+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
8+
9+
710
buyer = balanced.Marketplace.my_marketplace.create_buyer(
8-
% for k, v in payload.iteritems():
9-
${k}='${v}',
10-
% endfor
11+
card_uri='/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC1SAhs8uur7HA0JoyocY7Cw',
1112
)
1213

13-
% endif
14+
% endif
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
${main.python_boilerplate()}
1+
import balanced
2+
3+
balanced.configure("46c08048cd8811e2acae026ba7c1aba6")
4+
5+
26
buyer = balanced.Marketplace.my_marketplace.create_buyer(
3-
% for k, v in payload.iteritems():
4-
${k}='${v}',
5-
% endfor
7+
card_uri='/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC1SAhs8uur7HA0JoyocY7Cw',
68
)

0 commit comments

Comments
 (0)