@@ -87,7 +87,75 @@ The supported options are as follows:
8787Resources
8888---------
8989
90- We currently expose two resources to manage, ``Orders `` and ``Accounts ``.
90+ We currently expose the following resources to manage:
91+
92+ * ``Accounts ``
93+ * ``Merchants ``
94+ * ``Orders ``
95+
96+ Accounts
97+ ~~~~~~~~
98+
99+ All
100+ '''
101+
102+ .. code :: python
103+
104+ from pybutton import Client
105+
106+ client = Client(' sk-XXX' )
107+
108+ response = client.accounts.all()
109+
110+ print (response)
111+ # <class pybutton.Response [2 elements]>
112+
113+ Transactions
114+ ''''''''''''
115+
116+ Along with the required account ID, you may also
117+ pass the following optional arguments:
118+
119+ * ``cursor `` (string): An API cursor to fetch a specific set of results.
120+ * ``start `` (ISO-8601 datetime string): Fetch transactions after this time.
121+ * ``end `` (ISO-8601 datetime string): Fetch transactions before this time.
122+
123+ .. code :: python
124+
125+ from pybutton import Client
126+
127+ client = Client(' sk-XXX' )
128+
129+ response = client.accounts.transactions(
130+ ' acc-123' ,
131+ start = ' 2016-07-15T00:00:00.000Z' ,
132+ end = ' 2016-09-30T00:00:00.000Z'
133+ )
134+
135+ print (response)
136+ # <class pybutton.Response [100 elements]>
137+
138+ Merchants
139+ ~~~~~~~~~
140+
141+ All
142+ '''
143+
144+ You may pass the following optional arguments:
145+
146+ * ``status `` (string): Partnership status to filter by. One of ('approved', 'pending', or 'available')
147+ * ``currency `` (ISO-4217 string): Currency code to filter returned rates by
148+
149+ .. code :: python
150+
151+ from pybutton import Client
152+
153+ client = Client(' sk-XXX' )
154+
155+ response = client.merchants.all()
156+
157+ print (response)
158+ # <class pybutton.Response [23 elements]>
91159
92160 Orders
93161~~~~~~
@@ -160,48 +228,6 @@ Delete
160228 print (response)
161229 # <class pybutton.Response >
162230
163- Accounts
164- ~~~~~~~~
165-
166- All
167- '''
168-
169- .. code :: python
170-
171- from pybutton import Client
172-
173- client = Client(' sk-XXX' )
174-
175- response = client.accounts.all()
176-
177- print (response)
178- # <class pybutton.Response [2 elements]>
179-
180- Transactions
181- ''''''''''''
182-
183- Along with the required account ID, you may also
184- pass the following optional arguments:
185-
186- * ``cursor `` (string): An API cursor to fetch a specific set of results.
187- * ``start `` (ISO-8601 datetime string): Fetch transactions after this time.
188- * ``end `` (ISO-8601 datetime string): Fetch transactions before this time.
189-
190- .. code :: python
191-
192- from pybutton import Client
193-
194- client = Client(' sk-XXX' )
195-
196- response = client.accounts.transactions(
197- ' acc-123' ,
198- start = ' 2016-07-15T00:00:00.000Z' ,
199- end = ' 2016-09-30T00:00:00.000Z'
200- )
201-
202- print (response)
203- # <class pybutton.Response [100 elements]>
204-
205231 Response
206232--------
207233
0 commit comments