1
-
2
-
3
-
4
-
5
-
6
1
type Query {
7
2
products (
8
3
filter : ProductFilter
9
4
): ProductsPage
10
- subscriptions (
5
+ subscriptions (
11
6
filter : SubscriptionFilter
12
7
): [Subscription ! ]
13
8
paymentIntents (
@@ -18,10 +13,16 @@ type Query{
18
13
): [Invoice ! ]
19
14
customer (
20
15
customerId : String !
21
- ):Customer
16
+ ): Customer
22
17
}
23
18
24
19
type Mutation {
20
+ """
21
+ create session for simply payment
22
+ """
23
+ createPaymentSession (
24
+ payload : CreatePaymentSessionInput !
25
+ ): String !
25
26
"""
26
27
Creates stripe customer for further purchases, links with user "email" field in UserCollection
27
28
"""
@@ -61,6 +62,9 @@ type Mutation{
61
62
setDefaultPaymentMethod (
62
63
payload : setDefaultPaymentMethodInput !
63
64
): Boolean !
65
+ """
66
+ Payment from stripe account to connected bank account
67
+ """
64
68
createPayoutForConnectedAccount (
65
69
payload : createPayoutForConnectedAccountInput !
66
70
): Boolean !
@@ -70,13 +74,23 @@ type Mutation{
70
74
webhook : String
71
75
}
72
76
73
- input createPayoutForConnectedAccountInput {
74
- accountId : String !
77
+ input CreatePaymentSessionInput {
78
+ amount : Int !
79
+ currency : String !
80
+ successUrl : String !
81
+ cancelUrl : String !
82
+ }
83
+
84
+ input createPayoutForConnectedAccountInput {
85
+ """
86
+ If accountId is not specified, the default connected account is used.
87
+ """
88
+ accountId : String
75
89
amount : Int !
76
90
currency : String !
77
91
}
78
92
79
- enum PaymentIntentStatus {
93
+ enum PaymentIntentStatus {
80
94
requires_payment_method
81
95
requires_confirmation
82
96
requires_action
@@ -86,7 +100,7 @@ enum PaymentIntentStatus {
86
100
succeeded
87
101
}
88
102
89
- type Invoice {
103
+ type Invoice {
90
104
id : String !
91
105
account_country : String !
92
106
account_name : String !
@@ -123,23 +137,23 @@ type Invoice {
123
137
total : Int !
124
138
}
125
139
126
- enum InvoiceStatus {
140
+ enum InvoiceStatus {
127
141
draft
128
142
open
129
143
paid
130
144
uncollectible
131
145
void
132
146
}
133
147
134
- enum InvoiceCollectionMethod {
148
+ enum InvoiceCollectionMethod {
135
149
charge_automatically
136
150
"""
137
151
Email payment instructions to the customer.
138
152
"""
139
153
send_invoice
140
154
}
141
155
142
- type PaymentIntent {
156
+ type PaymentIntent {
143
157
id : String !
144
158
client_secret : String !
145
159
"""
@@ -187,7 +201,7 @@ type PaymentIntent {
187
201
on_behalf_of : String
188
202
}
189
203
190
- type PaymentIntentLastPaymentError {
204
+ type PaymentIntentLastPaymentError {
191
205
type : String !
192
206
"""
193
207
For card errors, the ID of the failed charge.
@@ -204,7 +218,7 @@ type PaymentIntentLastPaymentError {
204
218
payment_method_type : String
205
219
}
206
220
207
- enum PaymentIntentSetupFutureUsage {
221
+ enum PaymentIntentSetupFutureUsage {
208
222
"""
209
223
Use on_session if you intend to only reuse the payment method when your customer is present in your checkout flow.
210
224
"""
@@ -215,12 +229,12 @@ enum PaymentIntentSetupFutureUsage {
215
229
off_session
216
230
}
217
231
218
- input InvoiceFilter {
232
+ input InvoiceFilter {
219
233
customerId : String !
220
234
status : InvoiceStatus
221
235
}
222
236
223
- input PaymentIntentFilter {
237
+ input PaymentIntentFilter {
224
238
customerId : String !
225
239
status : PaymentIntentStatus
226
240
}
@@ -230,12 +244,12 @@ input setDefaultPaymentMethodInput{
230
244
customerId : String !
231
245
}
232
246
233
- input AttachPaymentMethodInput {
247
+ input AttachPaymentMethodInput {
234
248
paymentMethodId : String !
235
249
customerId : String !
236
250
}
237
251
238
- input CreateConnectAccountInput {
252
+ input CreateConnectAccountInput {
239
253
type : ConnectAccountType !
240
254
country : String !
241
255
email : String !
@@ -250,13 +264,13 @@ enum ConnectAccountBusinessType{
250
264
non_profit
251
265
}
252
266
253
- enum ConnectAccountType {
267
+ enum ConnectAccountType {
254
268
standard
255
269
express
256
270
custom
257
271
}
258
272
259
- input BankAccountInput {
273
+ input BankAccountInput {
260
274
country : String !
261
275
"""
262
276
Required supported currency for the country https://stripe.com/docs/payouts
@@ -273,12 +287,12 @@ input BankAccountInput {
273
287
account_holder_type : BankAccountHolderType !
274
288
}
275
289
276
- enum BankAccountHolderType {
290
+ enum BankAccountHolderType {
277
291
individual
278
292
company
279
293
}
280
294
281
- input SubscriptionFilter {
295
+ input SubscriptionFilter {
282
296
id : String
283
297
cancel_at_period_end : Boolean
284
298
current_period_end : TimestampFilter
@@ -290,7 +304,7 @@ input SubscriptionFilter {
290
304
status : SubStatus
291
305
}
292
306
293
- type Subscription {
307
+ type Subscription {
294
308
id : String !
295
309
cancel_at_period_end : Boolean !
296
310
current_period_end : Timestamp !
@@ -312,15 +326,15 @@ enum SubStatus{
312
326
unpaid
313
327
}
314
328
315
- type SubscriptionItems {
329
+ type SubscriptionItems {
316
330
data : [Item ! ]!
317
331
has_more : Boolean !
318
332
total_count : Int !
319
333
url : String !
320
334
object : String !
321
335
}
322
336
323
- type Item {
337
+ type Item {
324
338
id : String !
325
339
created : Timestamp !
326
340
metadata : AnyObject
@@ -368,7 +382,7 @@ input CreateCheckoutSessionInput{
368
382
applicationFee : ApplicationFeeInput
369
383
}
370
384
371
- input ApplicationFeeInput {
385
+ input ApplicationFeeInput {
372
386
"""
373
387
Value from 0-100
374
388
"""
@@ -426,10 +440,11 @@ type Customer{
426
440
invoicePrefix : String
427
441
paymentMethods : [PaymentMethod ! ]
428
442
}
443
+
429
444
"""
430
445
https://stripe.com/docs/api/payment_methods/object
431
446
"""
432
- type PaymentMethod {
447
+ type PaymentMethod {
433
448
id : String !
434
449
billing_details : PaymentBillingDetails !
435
450
customer : String !
@@ -440,7 +455,7 @@ type PaymentMethod {
440
455
card : Card
441
456
}
442
457
443
- type Card {
458
+ type Card {
444
459
brand : Card !
445
460
checks : CardChecks !
446
461
country : String !
@@ -453,22 +468,22 @@ type Card {
453
468
three_d_secure_usage : CardThreeDSecureUsage !
454
469
}
455
470
456
- type CardThreeDSecureUsage {
471
+ type CardThreeDSecureUsage {
457
472
supported : Boolean !
458
473
}
459
474
460
- type CardNetworks {
475
+ type CardNetworks {
461
476
preferred : String
462
- available : [String!]
477
+ available : [String ! ]
463
478
}
464
479
465
- type CardChecks {
480
+ type CardChecks {
466
481
address_line1_check : String !
467
482
address_postal_code_check : String !
468
483
cvc_check : String !
469
484
}
470
485
471
- enum PaymentMethodType {
486
+ enum PaymentMethodType {
472
487
acss_debit
473
488
affirm
474
489
afterpay_clearpay
@@ -504,7 +519,7 @@ enum PaymentMethodType {
504
519
zip
505
520
}
506
521
507
- type PaymentBillingDetails {
522
+ type PaymentBillingDetails {
508
523
address : Address
509
524
email : String !
510
525
name : String !
@@ -683,8 +698,7 @@ type ProductsPage{
683
698
endingBefore : ID
684
699
}
685
700
686
-
687
701
schema {
688
702
mutation : Mutation
689
703
query : Query
690
- }
704
+ }
0 commit comments