-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaccounts.clj
More file actions
481 lines (351 loc) · 20.5 KB
/
Copy pathaccounts.clj
File metadata and controls
481 lines (351 loc) · 20.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
(ns stream.clojure.stripe.api.accounts
"Info: This ns is auto-generated from the Stripe OpenAPI spec."
(:require [stream.clojure.stripe.request :refer [stripe-request]]))
(defn list-all
"List all connected accounts
HTTP Method: GET
Endpoint: /v1/accounts
Query Parameters:
- created (Unknown): Only return connected accounts that were created during the given date interval.
- ending-before (String): A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
- expand (Array): Specifies which fields in the response should be expanded.
- limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- starting-after (String): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
Example Usage:
(list-all {:query-params {:limit 10}})"
[{:keys [query-params]}]
(stripe-request :get {:endpoint "/v1/accounts" :query-params query-params}))
(defn create
"Create an account
HTTP Method: POST
Endpoint: /v1/accounts
Example Usage:
(create {})"
[{:keys [body]}]
(stripe-request :post {:endpoint "/v1/accounts" :body body}))
(defn create-account-login-links
"Create a login link
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/login_links
Path Parameters:
- account-id (String): The account-id parameter. (required)
Example Usage:
(create-account-login-links {:account-id example-account-id})"
[{:keys [account-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/login_links" :path-params {:account-id account-id} :body body}))
(defn retrieve-account-persons-person
"Retrieve a person
HTTP Method: GET
Endpoint: /v1/accounts/{account-id}/persons/{person-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- person-id (String): The person-id parameter. (required)
Query Parameters:
- expand (Array): Specifies which fields in the response should be expanded.
Example Usage:
(retrieve-account-persons-person {:account-id example-account-id :person-id example-person-id :query-params {:limit 10}})"
[{:keys [account-id person-id query-params]}]
(stripe-request :get {:endpoint "/v1/accounts/{account-id}/persons/{person-id}" :path-params {:account-id account-id :person-id person-id} :query-params query-params}))
(defn delete-account-persons-person
"Delete a person
HTTP Method: DELETE
Endpoint: /v1/accounts/{account-id}/persons/{person-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- person-id (String): The person-id parameter. (required)
Example Usage:
(delete-account-persons-person {:account-id example-account-id :person-id example-person-id})"
[{:keys [account-id person-id]}]
(stripe-request :delete {:endpoint "/v1/accounts/{account-id}/persons/{person-id}" :path-params {:account-id account-id :person-id person-id}}))
(defn update-account-persons-person
"Update a person
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/persons/{person-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- person-id (String): The person-id parameter. (required)
Example Usage:
(update-account-persons-person {:account-id example-account-id :person-id example-person-id})"
[{:keys [account-id person-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/persons/{person-id}" :path-params {:account-id account-id :person-id person-id} :body body}))
(defn retrieve-account-bank-id
"Retrieve an external account
HTTP Method: GET
Endpoint: /v1/accounts/{account-id}/bank_accounts/{bank-account-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- bank-account-id (String): Unique identifier for the external account to be retrieved.
Query Parameters:
- expand (Array): Specifies which fields in the response should be expanded.
Example Usage:
(retrieve-account-bank-id {:account-id example-account-id :bank-account-id example-bank-account-id :query-params {:limit 10}})"
[{:keys [account-id bank-account-id query-params]}]
(stripe-request :get {:endpoint "/v1/accounts/{account-id}/bank_accounts/{bank-account-id}" :path-params {:account-id account-id :bank-account-id bank-account-id} :query-params query-params}))
(defn delete-account-bank-id
"Delete an external account
HTTP Method: DELETE
Endpoint: /v1/accounts/{account-id}/bank_accounts/{bank-account-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- bank-account-id (String): Unique identifier for the external account to be deleted.
Example Usage:
(delete-account-bank-id {:account-id example-account-id :bank-account-id example-bank-account-id})"
[{:keys [account-id bank-account-id]}]
(stripe-request :delete {:endpoint "/v1/accounts/{account-id}/bank_accounts/{bank-account-id}" :path-params {:account-id account-id :bank-account-id bank-account-id}}))
(defn update-account-bank-id
"Update a bank account
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/bank_accounts/{bank-account-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- bank-account-id (String): The bank-account-id parameter. (required)
Example Usage:
(update-account-bank-id {:account-id example-account-id :bank-account-id example-bank-account-id})"
[{:keys [account-id bank-account-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/bank_accounts/{bank-account-id}" :path-params {:account-id account-id :bank-account-id bank-account-id} :body body}))
(defn retrieve-account-people-person
"Retrieve a person
HTTP Method: GET
Endpoint: /v1/accounts/{account-id}/people/{people-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- people-id (String): The people-id parameter. (required)
Query Parameters:
- expand (Array): Specifies which fields in the response should be expanded.
Example Usage:
(retrieve-account-people-person {:account-id example-account-id :people-id example-people-id :query-params {:limit 10}})"
[{:keys [account-id people-id query-params]}]
(stripe-request :get {:endpoint "/v1/accounts/{account-id}/people/{people-id}" :path-params {:account-id account-id :people-id people-id} :query-params query-params}))
(defn delete-account-people-person
"Delete a person
HTTP Method: DELETE
Endpoint: /v1/accounts/{account-id}/people/{people-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- people-id (String): The people-id parameter. (required)
Example Usage:
(delete-account-people-person {:account-id example-account-id :people-id example-people-id})"
[{:keys [account-id people-id]}]
(stripe-request :delete {:endpoint "/v1/accounts/{account-id}/people/{people-id}" :path-params {:account-id account-id :people-id people-id}}))
(defn update-account-people-person
"Update a person
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/people/{people-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- people-id (String): The people-id parameter. (required)
Example Usage:
(update-account-people-person {:account-id example-account-id :people-id example-people-id})"
[{:keys [account-id people-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/people/{people-id}" :path-params {:account-id account-id :people-id people-id} :body body}))
(defn list-all-account-people
"List all persons
HTTP Method: GET
Endpoint: /v1/accounts/{account-id}/people
Path Parameters:
- account-id (String): The account-id parameter. (required)
Query Parameters:
- ending-before (String): A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
- expand (Array): Specifies which fields in the response should be expanded.
- limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- relationship (Object): Filters on the list of people returned based on the person's relationship to the account's company.
- starting-after (String): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
Example Usage:
(list-all-account-people {:account-id example-account-id :query-params {:limit 10}})"
[{:keys [account-id query-params]}]
(stripe-request :get {:endpoint "/v1/accounts/{account-id}/people" :path-params {:account-id account-id} :query-params query-params}))
(defn create-account-people
"Create a person
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/people
Path Parameters:
- account-id (String): The account-id parameter. (required)
Example Usage:
(create-account-people {:account-id example-account-id})"
[{:keys [account-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/people" :path-params {:account-id account-id} :body body}))
(defn post-account-unreject
"Unreject an account
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/unreject
Path Parameters:
- account-id (String): The account-id parameter. (required)
Example Usage:
(post-account-unreject {:account-id example-account-id})"
[{:keys [account-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/unreject" :path-params {:account-id account-id} :body body}))
(defn retrieve-account
"Retrieve account
HTTP Method: GET
Endpoint: /v1/accounts/{account-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
Query Parameters:
- expand (Array): Specifies which fields in the response should be expanded.
Example Usage:
(retrieve-account {:account-id example-account-id :query-params {:limit 10}})"
[{:keys [account-id query-params]}]
(stripe-request :get {:endpoint "/v1/accounts/{account-id}" :path-params {:account-id account-id} :query-params query-params}))
(defn delete-account
"Delete an account
HTTP Method: DELETE
Endpoint: /v1/accounts/{account-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
Example Usage:
(delete-account {:account-id example-account-id})"
[{:keys [account-id]}]
(stripe-request :delete {:endpoint "/v1/accounts/{account-id}" :path-params {:account-id account-id}}))
(defn update-account
"Update an account
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
Example Usage:
(update-account {:account-id example-account-id})"
[{:keys [account-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}" :path-params {:account-id account-id} :body body}))
(defn list-all-account-persons
"List all persons
HTTP Method: GET
Endpoint: /v1/accounts/{account-id}/persons
Path Parameters:
- account-id (String): The account-id parameter. (required)
Query Parameters:
- ending-before (String): A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
- expand (Array): Specifies which fields in the response should be expanded.
- limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- relationship (Object): Filters on the list of people returned based on the person's relationship to the account's company.
- starting-after (String): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
Example Usage:
(list-all-account-persons {:account-id example-account-id :query-params {:limit 10}})"
[{:keys [account-id query-params]}]
(stripe-request :get {:endpoint "/v1/accounts/{account-id}/persons" :path-params {:account-id account-id} :query-params query-params}))
(defn create-account-persons
"Create a person
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/persons
Path Parameters:
- account-id (String): The account-id parameter. (required)
Example Usage:
(create-account-persons {:account-id example-account-id})"
[{:keys [account-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/persons" :path-params {:account-id account-id} :body body}))
(defn retrieve-account-capabilities-capability
"Retrieve an Account Capability
HTTP Method: GET
Endpoint: /v1/accounts/{account-id}/capabilities/{capabilitie-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- capabilitie-id (String): The capabilitie-id parameter. (required)
Query Parameters:
- expand (Array): Specifies which fields in the response should be expanded.
Example Usage:
(retrieve-account-capabilities-capability {:account-id example-account-id :capabilitie-id example-capabilitie-id :query-params {:limit 10}})"
[{:keys [account-id capabilitie-id query-params]}]
(stripe-request :get {:endpoint "/v1/accounts/{account-id}/capabilities/{capabilitie-id}" :path-params {:account-id account-id :capabilitie-id capabilitie-id} :query-params query-params}))
(defn update-account-capabilities-capability
"Update an Account Capability
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/capabilities/{capabilitie-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- capabilitie-id (String): The capabilitie-id parameter. (required)
Example Usage:
(update-account-capabilities-capability {:account-id example-account-id :capabilitie-id example-capabilitie-id})"
[{:keys [account-id capabilitie-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/capabilities/{capabilitie-id}" :path-params {:account-id account-id :capabilitie-id capabilitie-id} :body body}))
(defn list-all-account-capabilities
"List all account capabilities
HTTP Method: GET
Endpoint: /v1/accounts/{account-id}/capabilities
Path Parameters:
- account-id (String): The account-id parameter. (required)
Query Parameters:
- expand (Array): Specifies which fields in the response should be expanded.
Example Usage:
(list-all-account-capabilities {:account-id example-account-id :query-params {:limit 10}})"
[{:keys [account-id query-params]}]
(stripe-request :get {:endpoint "/v1/accounts/{account-id}/capabilities" :path-params {:account-id account-id} :query-params query-params}))
(defn create-account-bank
"Create an external account
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/bank_accounts
Path Parameters:
- account-id (String): The account-id parameter. (required)
Example Usage:
(create-account-bank {:account-id example-account-id})"
[{:keys [account-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/bank_accounts" :path-params {:account-id account-id} :body body}))
(defn list-all-account-external
"List all external accounts
HTTP Method: GET
Endpoint: /v1/accounts/{account-id}/external_accounts
Path Parameters:
- account-id (String): The account-id parameter. (required)
Query Parameters:
- ending-before (String): A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
- expand (Array): Specifies which fields in the response should be expanded.
- limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- object (String): Filter external accounts according to a particular object type.
- starting-after (String): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
Example Usage:
(list-all-account-external {:account-id example-account-id :query-params {:limit 10}})"
[{:keys [account-id query-params]}]
(stripe-request :get {:endpoint "/v1/accounts/{account-id}/external_accounts" :path-params {:account-id account-id} :query-params query-params}))
(defn create-account-external
"Create an external account
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/external_accounts
Path Parameters:
- account-id (String): The account-id parameter. (required)
Example Usage:
(create-account-external {:account-id example-account-id})"
[{:keys [account-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/external_accounts" :path-params {:account-id account-id} :body body}))
(defn retrieve-account-external-id
"Retrieve an external account
HTTP Method: GET
Endpoint: /v1/accounts/{account-id}/external_accounts/{external-account-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- external-account-id (String): Unique identifier for the external account to be retrieved.
Query Parameters:
- expand (Array): Specifies which fields in the response should be expanded.
Example Usage:
(retrieve-account-external-id {:account-id example-account-id :external-account-id example-external-account-id :query-params {:limit 10}})"
[{:keys [account-id external-account-id query-params]}]
(stripe-request :get {:endpoint "/v1/accounts/{account-id}/external_accounts/{external-account-id}" :path-params {:account-id account-id :external-account-id external-account-id} :query-params query-params}))
(defn delete-account-external-id
"Delete an external account
HTTP Method: DELETE
Endpoint: /v1/accounts/{account-id}/external_accounts/{external-account-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- external-account-id (String): Unique identifier for the external account to be deleted.
Example Usage:
(delete-account-external-id {:account-id example-account-id :external-account-id example-external-account-id})"
[{:keys [account-id external-account-id]}]
(stripe-request :delete {:endpoint "/v1/accounts/{account-id}/external_accounts/{external-account-id}" :path-params {:account-id account-id :external-account-id external-account-id}}))
(defn update-account-external-id
"Update a bank account
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/external_accounts/{external-account-id}
Path Parameters:
- account-id (String): The account-id parameter. (required)
- external-account-id (String): The external-account-id parameter. (required)
Example Usage:
(update-account-external-id {:account-id example-account-id :external-account-id example-external-account-id})"
[{:keys [account-id external-account-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/external_accounts/{external-account-id}" :path-params {:account-id account-id :external-account-id external-account-id} :body body}))
(defn post-account-reject
"Reject an account
HTTP Method: POST
Endpoint: /v1/accounts/{account-id}/reject
Path Parameters:
- account-id (String): The account-id parameter. (required)
Example Usage:
(post-account-reject {:account-id example-account-id})"
[{:keys [account-id body]}]
(stripe-request :post {:endpoint "/v1/accounts/{account-id}/reject" :path-params {:account-id account-id} :body body}))