@superdurable/connector-braintree 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1419 @@
1
+ {
2
+ "connectorId": "braintree",
3
+ "releaseTag": "connectors/braintree/go/v0.2.1",
4
+ "package": {
5
+ "ecosystem": "npm",
6
+ "name": "@superdurable/connector-braintree",
7
+ "version": "0.2.0"
8
+ },
9
+ "factories": [
10
+ {
11
+ "name": "newGetDisputeStep",
12
+ "kind": "query",
13
+ "operationId": "getDispute",
14
+ "inputType": "GetDisputeInput",
15
+ "description": "Read one dispute and its evidence.",
16
+ "fields": {
17
+ "stepType": "stepType",
18
+ "annotations": "annotations",
19
+ "connectionName": "connectionName",
20
+ "resultAttribute": "resultAttribute"
21
+ },
22
+ "branches": [
23
+ {
24
+ "id": "found",
25
+ "field": "found",
26
+ "optional": false
27
+ },
28
+ {
29
+ "id": "notFound",
30
+ "field": "notFound",
31
+ "optional": true
32
+ },
33
+ {
34
+ "id": "providerRejected",
35
+ "field": "providerRejected",
36
+ "optional": true
37
+ },
38
+ {
39
+ "id": "invalidResponse",
40
+ "field": "invalidResponse",
41
+ "optional": true
42
+ },
43
+ {
44
+ "id": "defect",
45
+ "field": "defect",
46
+ "optional": true
47
+ }
48
+ ],
49
+ "inputSchema": {
50
+ "additionalProperties": false,
51
+ "description": "GetDisputeInput identifies one GraphQL dispute.",
52
+ "properties": {
53
+ "disputeId": {
54
+ "description": "DisputeID is the GraphQL ID, not the Control Panel case number.",
55
+ "type": "string"
56
+ }
57
+ },
58
+ "required": [
59
+ "disputeId"
60
+ ],
61
+ "type": "object"
62
+ }
63
+ },
64
+ {
65
+ "name": "newSearchDisputesStep",
66
+ "kind": "query",
67
+ "operationId": "searchDisputes",
68
+ "inputType": "SearchDisputesInput",
69
+ "description": "Search disputes by ID or status.",
70
+ "fields": {
71
+ "stepType": "stepType",
72
+ "annotations": "annotations",
73
+ "connectionName": "connectionName",
74
+ "resultAttribute": "resultAttribute"
75
+ },
76
+ "branches": [
77
+ {
78
+ "id": "searched",
79
+ "field": "searched",
80
+ "optional": false
81
+ },
82
+ {
83
+ "id": "notFound",
84
+ "field": "notFound",
85
+ "optional": true
86
+ },
87
+ {
88
+ "id": "providerRejected",
89
+ "field": "providerRejected",
90
+ "optional": true
91
+ },
92
+ {
93
+ "id": "invalidResponse",
94
+ "field": "invalidResponse",
95
+ "optional": true
96
+ },
97
+ {
98
+ "id": "defect",
99
+ "field": "defect",
100
+ "optional": true
101
+ }
102
+ ],
103
+ "inputSchema": {
104
+ "additionalProperties": false,
105
+ "description": "SearchDisputesInput filters by exact dispute ID or status.",
106
+ "properties": {
107
+ "after": {
108
+ "description": "After is the previous page's end cursor.",
109
+ "type": "string"
110
+ },
111
+ "disputeId": {
112
+ "description": "DisputeID is an optional exact GraphQL ID.",
113
+ "type": "string"
114
+ },
115
+ "first": {
116
+ "description": "First is 1 through 100; zero uses 50.",
117
+ "type": "integer"
118
+ },
119
+ "status": {
120
+ "description": "Status is an optional DisputeStatus enum such as OPEN.",
121
+ "type": "string"
122
+ }
123
+ },
124
+ "type": "object"
125
+ }
126
+ },
127
+ {
128
+ "name": "newAcceptDisputeStep",
129
+ "kind": "mutation",
130
+ "operationId": "acceptDispute",
131
+ "inputType": "GetDisputeInput",
132
+ "description": "Accept an open dispute.",
133
+ "fields": {
134
+ "stepType": "stepType",
135
+ "annotations": "annotations",
136
+ "connectionName": "connectionName",
137
+ "resultAttribute": "resultAttribute"
138
+ },
139
+ "branches": [
140
+ {
141
+ "id": "accepted",
142
+ "field": "accepted",
143
+ "optional": false
144
+ },
145
+ {
146
+ "id": "notFound",
147
+ "field": "notFound",
148
+ "optional": true
149
+ },
150
+ {
151
+ "id": "providerRejected",
152
+ "field": "providerRejected",
153
+ "optional": true
154
+ },
155
+ {
156
+ "id": "defect",
157
+ "field": "defect",
158
+ "optional": true
159
+ },
160
+ {
161
+ "id": "uncertain",
162
+ "field": "uncertain",
163
+ "optional": true
164
+ }
165
+ ],
166
+ "inputSchema": {
167
+ "additionalProperties": false,
168
+ "description": "GetDisputeInput identifies one GraphQL dispute.",
169
+ "properties": {
170
+ "disputeId": {
171
+ "description": "DisputeID is the GraphQL ID, not the Control Panel case number.",
172
+ "type": "string"
173
+ }
174
+ },
175
+ "required": [
176
+ "disputeId"
177
+ ],
178
+ "type": "object"
179
+ }
180
+ },
181
+ {
182
+ "name": "newCreateDisputeTextEvidenceStep",
183
+ "kind": "mutation",
184
+ "operationId": "createDisputeTextEvidence",
185
+ "inputType": "CreateDisputeTextEvidenceInput",
186
+ "description": "Add text evidence to an open dispute.",
187
+ "fields": {
188
+ "stepType": "stepType",
189
+ "annotations": "annotations",
190
+ "connectionName": "connectionName",
191
+ "resultAttribute": "resultAttribute"
192
+ },
193
+ "branches": [
194
+ {
195
+ "id": "created",
196
+ "field": "created",
197
+ "optional": false
198
+ },
199
+ {
200
+ "id": "notFound",
201
+ "field": "notFound",
202
+ "optional": true
203
+ },
204
+ {
205
+ "id": "providerRejected",
206
+ "field": "providerRejected",
207
+ "optional": true
208
+ },
209
+ {
210
+ "id": "defect",
211
+ "field": "defect",
212
+ "optional": true
213
+ },
214
+ {
215
+ "id": "uncertain",
216
+ "field": "uncertain",
217
+ "optional": true
218
+ }
219
+ ],
220
+ "inputSchema": {
221
+ "additionalProperties": false,
222
+ "description": "CreateDisputeTextEvidenceInput attaches one text statement to an open dispute.",
223
+ "properties": {
224
+ "category": {
225
+ "description": "Category is a Braintree DisputeTextEvidenceCategory enum.",
226
+ "type": "string"
227
+ },
228
+ "content": {
229
+ "description": "Content is the statement; never put credentials in evidence.",
230
+ "type": "string"
231
+ },
232
+ "disputeId": {
233
+ "description": "DisputeID is the GraphQL dispute ID.",
234
+ "type": "string"
235
+ }
236
+ },
237
+ "required": [
238
+ "category",
239
+ "content",
240
+ "disputeId"
241
+ ],
242
+ "type": "object"
243
+ }
244
+ },
245
+ {
246
+ "name": "newCreateDisputeFileEvidenceStep",
247
+ "kind": "mutation",
248
+ "operationId": "createDisputeFileEvidence",
249
+ "inputType": "CreateDisputeFileEvidenceInput",
250
+ "description": "Upload a worker-mounted file as dispute evidence.",
251
+ "fields": {
252
+ "stepType": "stepType",
253
+ "annotations": "annotations",
254
+ "connectionName": "connectionName",
255
+ "resultAttribute": "resultAttribute"
256
+ },
257
+ "branches": [
258
+ {
259
+ "id": "created",
260
+ "field": "created",
261
+ "optional": false
262
+ },
263
+ {
264
+ "id": "notFound",
265
+ "field": "notFound",
266
+ "optional": true
267
+ },
268
+ {
269
+ "id": "providerRejected",
270
+ "field": "providerRejected",
271
+ "optional": true
272
+ },
273
+ {
274
+ "id": "defect",
275
+ "field": "defect",
276
+ "optional": true
277
+ },
278
+ {
279
+ "id": "uncertain",
280
+ "field": "uncertain",
281
+ "optional": true
282
+ }
283
+ ],
284
+ "inputSchema": {
285
+ "additionalProperties": false,
286
+ "description": "CreateDisputeFileEvidenceInput references an immutable file on every Worker.",
287
+ "properties": {
288
+ "category": {
289
+ "description": "Category is a DisputeFileEvidenceCategory enum.",
290
+ "type": "string"
291
+ },
292
+ "disputeId": {
293
+ "description": "DisputeID is the GraphQL dispute ID.",
294
+ "type": "string"
295
+ },
296
+ "expectedSha256": {
297
+ "description": "ExpectedSHA256 is the lowercase hex digest of the complete file.",
298
+ "type": "string"
299
+ },
300
+ "fileName": {
301
+ "description": "FileName is a basename in the configured evidence directory.",
302
+ "type": "string"
303
+ }
304
+ },
305
+ "required": [
306
+ "category",
307
+ "disputeId",
308
+ "expectedSha256",
309
+ "fileName"
310
+ ],
311
+ "type": "object"
312
+ }
313
+ },
314
+ {
315
+ "name": "newDeleteDisputeEvidenceStep",
316
+ "kind": "mutation",
317
+ "operationId": "deleteDisputeEvidence",
318
+ "inputType": "DeleteDisputeEvidenceInput",
319
+ "description": "Remove evidence from an open dispute.",
320
+ "fields": {
321
+ "stepType": "stepType",
322
+ "annotations": "annotations",
323
+ "connectionName": "connectionName",
324
+ "resultAttribute": "resultAttribute"
325
+ },
326
+ "branches": [
327
+ {
328
+ "id": "deleted",
329
+ "field": "deleted",
330
+ "optional": false
331
+ },
332
+ {
333
+ "id": "notFound",
334
+ "field": "notFound",
335
+ "optional": true
336
+ },
337
+ {
338
+ "id": "providerRejected",
339
+ "field": "providerRejected",
340
+ "optional": true
341
+ },
342
+ {
343
+ "id": "invalidResponse",
344
+ "field": "invalidResponse",
345
+ "optional": true
346
+ },
347
+ {
348
+ "id": "defect",
349
+ "field": "defect",
350
+ "optional": true
351
+ }
352
+ ],
353
+ "inputSchema": {
354
+ "additionalProperties": false,
355
+ "description": "DeleteDisputeEvidenceInput identifies one attached evidence item.",
356
+ "properties": {
357
+ "disputeId": {
358
+ "description": "DisputeID is the owning GraphQL dispute ID.",
359
+ "type": "string"
360
+ },
361
+ "evidenceId": {
362
+ "description": "EvidenceID is the attached evidence GraphQL ID.",
363
+ "type": "string"
364
+ }
365
+ },
366
+ "required": [
367
+ "disputeId",
368
+ "evidenceId"
369
+ ],
370
+ "type": "object"
371
+ }
372
+ },
373
+ {
374
+ "name": "newFinalizeDisputeStep",
375
+ "kind": "mutation",
376
+ "operationId": "finalizeDispute",
377
+ "inputType": "GetDisputeInput",
378
+ "description": "Submit an open dispute and its evidence.",
379
+ "fields": {
380
+ "stepType": "stepType",
381
+ "annotations": "annotations",
382
+ "connectionName": "connectionName",
383
+ "resultAttribute": "resultAttribute"
384
+ },
385
+ "branches": [
386
+ {
387
+ "id": "finalized",
388
+ "field": "finalized",
389
+ "optional": false
390
+ },
391
+ {
392
+ "id": "notFound",
393
+ "field": "notFound",
394
+ "optional": true
395
+ },
396
+ {
397
+ "id": "providerRejected",
398
+ "field": "providerRejected",
399
+ "optional": true
400
+ },
401
+ {
402
+ "id": "defect",
403
+ "field": "defect",
404
+ "optional": true
405
+ },
406
+ {
407
+ "id": "uncertain",
408
+ "field": "uncertain",
409
+ "optional": true
410
+ }
411
+ ],
412
+ "inputSchema": {
413
+ "additionalProperties": false,
414
+ "description": "GetDisputeInput identifies one GraphQL dispute.",
415
+ "properties": {
416
+ "disputeId": {
417
+ "description": "DisputeID is the GraphQL ID, not the Control Panel case number.",
418
+ "type": "string"
419
+ }
420
+ },
421
+ "required": [
422
+ "disputeId"
423
+ ],
424
+ "type": "object"
425
+ }
426
+ },
427
+ {
428
+ "name": "newSearchTransactionsStep",
429
+ "kind": "query",
430
+ "operationId": "searchTransactions",
431
+ "inputType": "SearchTransactionsInput",
432
+ "description": "Search transactions by ID or order ID.",
433
+ "fields": {
434
+ "stepType": "stepType",
435
+ "annotations": "annotations",
436
+ "connectionName": "connectionName",
437
+ "resultAttribute": "resultAttribute"
438
+ },
439
+ "branches": [
440
+ {
441
+ "id": "searched",
442
+ "field": "searched",
443
+ "optional": false
444
+ },
445
+ {
446
+ "id": "notFound",
447
+ "field": "notFound",
448
+ "optional": true
449
+ },
450
+ {
451
+ "id": "providerRejected",
452
+ "field": "providerRejected",
453
+ "optional": true
454
+ },
455
+ {
456
+ "id": "invalidResponse",
457
+ "field": "invalidResponse",
458
+ "optional": true
459
+ },
460
+ {
461
+ "id": "defect",
462
+ "field": "defect",
463
+ "optional": true
464
+ }
465
+ ],
466
+ "inputSchema": {
467
+ "additionalProperties": false,
468
+ "description": "SearchTransactionsInput filters by exact GraphQL transaction or order ID.",
469
+ "properties": {
470
+ "after": {
471
+ "description": "After is the previous page's end cursor; blank starts at the first page.",
472
+ "type": "string"
473
+ },
474
+ "first": {
475
+ "description": "First is the page size from 1 through 100; zero uses 50.",
476
+ "type": "integer"
477
+ },
478
+ "orderId": {
479
+ "description": "OrderID is an optional exact merchant order ID.",
480
+ "type": "string"
481
+ },
482
+ "transactionId": {
483
+ "description": "TransactionID is an optional exact GraphQL ID.",
484
+ "type": "string"
485
+ }
486
+ },
487
+ "type": "object"
488
+ }
489
+ },
490
+ {
491
+ "name": "newChargePaymentMethodStep",
492
+ "kind": "mutation",
493
+ "operationId": "chargePaymentMethod",
494
+ "inputType": "ChargePaymentMethodInput",
495
+ "description": "Charge a payment method with provider deduplication.",
496
+ "fields": {
497
+ "stepType": "stepType",
498
+ "annotations": "annotations",
499
+ "connectionName": "connectionName",
500
+ "resultAttribute": "resultAttribute"
501
+ },
502
+ "branches": [
503
+ {
504
+ "id": "charged",
505
+ "field": "charged",
506
+ "optional": false
507
+ },
508
+ {
509
+ "id": "notFound",
510
+ "field": "notFound",
511
+ "optional": true
512
+ },
513
+ {
514
+ "id": "providerRejected",
515
+ "field": "providerRejected",
516
+ "optional": true
517
+ },
518
+ {
519
+ "id": "defect",
520
+ "field": "defect",
521
+ "optional": true
522
+ }
523
+ ],
524
+ "inputSchema": {
525
+ "additionalProperties": false,
526
+ "description": "ChargePaymentMethodInput supplies a tokenized payment method and charge amount.",
527
+ "properties": {
528
+ "amount": {
529
+ "description": "Amount is a positive decimal amount in the merchant account's currency.",
530
+ "type": "string"
531
+ },
532
+ "merchantAccountId": {
533
+ "description": "MerchantAccountID selects a merchant account; blank uses the provider default.",
534
+ "type": "string"
535
+ },
536
+ "orderId": {
537
+ "description": "OrderID is an optional merchant reconciliation ID.",
538
+ "type": "string"
539
+ },
540
+ "paymentMethodId": {
541
+ "description": "PaymentMethodID is a single-use or vaulted GraphQL payment method ID.",
542
+ "type": "string"
543
+ }
544
+ },
545
+ "required": [
546
+ "amount",
547
+ "paymentMethodId"
548
+ ],
549
+ "type": "object"
550
+ }
551
+ },
552
+ {
553
+ "name": "newCaptureTransactionStep",
554
+ "kind": "mutation",
555
+ "operationId": "captureTransaction",
556
+ "inputType": "CaptureTransactionInput",
557
+ "description": "Capture an authorized transaction.",
558
+ "fields": {
559
+ "stepType": "stepType",
560
+ "annotations": "annotations",
561
+ "connectionName": "connectionName",
562
+ "resultAttribute": "resultAttribute"
563
+ },
564
+ "branches": [
565
+ {
566
+ "id": "captured",
567
+ "field": "captured",
568
+ "optional": false
569
+ },
570
+ {
571
+ "id": "notFound",
572
+ "field": "notFound",
573
+ "optional": true
574
+ },
575
+ {
576
+ "id": "providerRejected",
577
+ "field": "providerRejected",
578
+ "optional": true
579
+ },
580
+ {
581
+ "id": "defect",
582
+ "field": "defect",
583
+ "optional": true
584
+ }
585
+ ],
586
+ "inputSchema": {
587
+ "additionalProperties": false,
588
+ "description": "CaptureTransactionInput identifies an authorization and optional partial amount.",
589
+ "properties": {
590
+ "amount": {
591
+ "description": "Amount is a positive partial amount; blank captures the entire authorization.",
592
+ "type": "string"
593
+ },
594
+ "transactionId": {
595
+ "description": "TransactionID is the authorized GraphQL transaction ID.",
596
+ "type": "string"
597
+ }
598
+ },
599
+ "required": [
600
+ "transactionId"
601
+ ],
602
+ "type": "object"
603
+ }
604
+ },
605
+ {
606
+ "name": "newVoidTransactionStep",
607
+ "kind": "mutation",
608
+ "operationId": "voidTransaction",
609
+ "inputType": "GetTransactionInput",
610
+ "description": "Void an unsettled transaction.",
611
+ "fields": {
612
+ "stepType": "stepType",
613
+ "annotations": "annotations",
614
+ "connectionName": "connectionName",
615
+ "resultAttribute": "resultAttribute"
616
+ },
617
+ "branches": [
618
+ {
619
+ "id": "voided",
620
+ "field": "voided",
621
+ "optional": false
622
+ },
623
+ {
624
+ "id": "notFound",
625
+ "field": "notFound",
626
+ "optional": true
627
+ },
628
+ {
629
+ "id": "providerRejected",
630
+ "field": "providerRejected",
631
+ "optional": true
632
+ },
633
+ {
634
+ "id": "defect",
635
+ "field": "defect",
636
+ "optional": true
637
+ }
638
+ ],
639
+ "inputSchema": {
640
+ "additionalProperties": false,
641
+ "description": "GetTransactionInput selects one Braintree GraphQL node by ID.",
642
+ "properties": {
643
+ "transactionId": {
644
+ "description": "TransactionID is the GraphQL transaction ID, not a legacy SDK ID.",
645
+ "type": "string"
646
+ }
647
+ },
648
+ "required": [
649
+ "transactionId"
650
+ ],
651
+ "type": "object"
652
+ }
653
+ },
654
+ {
655
+ "name": "newRefundTransactionStep",
656
+ "kind": "mutation",
657
+ "operationId": "refundTransaction",
658
+ "inputType": "RefundTransactionInput",
659
+ "description": "Refund a settled transaction.",
660
+ "fields": {
661
+ "stepType": "stepType",
662
+ "annotations": "annotations",
663
+ "connectionName": "connectionName",
664
+ "resultAttribute": "resultAttribute"
665
+ },
666
+ "branches": [
667
+ {
668
+ "id": "refunded",
669
+ "field": "refunded",
670
+ "optional": false
671
+ },
672
+ {
673
+ "id": "notFound",
674
+ "field": "notFound",
675
+ "optional": true
676
+ },
677
+ {
678
+ "id": "providerRejected",
679
+ "field": "providerRejected",
680
+ "optional": true
681
+ },
682
+ {
683
+ "id": "defect",
684
+ "field": "defect",
685
+ "optional": true
686
+ }
687
+ ],
688
+ "inputSchema": {
689
+ "additionalProperties": false,
690
+ "description": "RefundTransactionInput identifies a settled transaction and optional partial amount.",
691
+ "properties": {
692
+ "amount": {
693
+ "description": "Amount is a positive partial refund; blank refunds the entire transaction.",
694
+ "type": "string"
695
+ },
696
+ "orderId": {
697
+ "description": "OrderID is an optional refund reconciliation ID; blank inherits the transaction's.",
698
+ "type": "string"
699
+ },
700
+ "transactionId": {
701
+ "description": "TransactionID is the settled GraphQL transaction ID.",
702
+ "type": "string"
703
+ }
704
+ },
705
+ "required": [
706
+ "transactionId"
707
+ ],
708
+ "type": "object"
709
+ }
710
+ },
711
+ {
712
+ "name": "newVaultPaymentMethodStep",
713
+ "kind": "mutation",
714
+ "operationId": "vaultPaymentMethod",
715
+ "inputType": "VaultPaymentMethodInput",
716
+ "description": "Vault a single-use payment method for repeat use.",
717
+ "fields": {
718
+ "stepType": "stepType",
719
+ "annotations": "annotations",
720
+ "connectionName": "connectionName",
721
+ "resultAttribute": "resultAttribute"
722
+ },
723
+ "branches": [
724
+ {
725
+ "id": "vaulted",
726
+ "field": "vaulted",
727
+ "optional": false
728
+ },
729
+ {
730
+ "id": "notFound",
731
+ "field": "notFound",
732
+ "optional": true
733
+ },
734
+ {
735
+ "id": "providerRejected",
736
+ "field": "providerRejected",
737
+ "optional": true
738
+ },
739
+ {
740
+ "id": "defect",
741
+ "field": "defect",
742
+ "optional": true
743
+ },
744
+ {
745
+ "id": "uncertain",
746
+ "field": "uncertain",
747
+ "optional": true
748
+ }
749
+ ],
750
+ "inputSchema": {
751
+ "additionalProperties": false,
752
+ "description": "VaultPaymentMethodInput identifies one client-tokenized single-use method.",
753
+ "properties": {
754
+ "customerId": {
755
+ "description": "CustomerID optionally associates the resulting multi-use method with a customer.",
756
+ "type": "string"
757
+ },
758
+ "paymentMethodId": {
759
+ "description": "PaymentMethodID is the single-use GraphQL ID, not raw card data.",
760
+ "type": "string"
761
+ }
762
+ },
763
+ "required": [
764
+ "paymentMethodId"
765
+ ],
766
+ "type": "object"
767
+ }
768
+ },
769
+ {
770
+ "name": "newUpdateCreditCardCardholderNameStep",
771
+ "kind": "mutation",
772
+ "operationId": "updateCreditCardCardholderName",
773
+ "inputType": "UpdateCreditCardCardholderNameInput",
774
+ "description": "Update a vaulted cardholder name with verification.",
775
+ "fields": {
776
+ "stepType": "stepType",
777
+ "annotations": "annotations",
778
+ "connectionName": "connectionName",
779
+ "resultAttribute": "resultAttribute"
780
+ },
781
+ "branches": [
782
+ {
783
+ "id": "updated",
784
+ "field": "updated",
785
+ "optional": false
786
+ },
787
+ {
788
+ "id": "notFound",
789
+ "field": "notFound",
790
+ "optional": true
791
+ },
792
+ {
793
+ "id": "providerRejected",
794
+ "field": "providerRejected",
795
+ "optional": true
796
+ },
797
+ {
798
+ "id": "defect",
799
+ "field": "defect",
800
+ "optional": true
801
+ },
802
+ {
803
+ "id": "uncertain",
804
+ "field": "uncertain",
805
+ "optional": true
806
+ }
807
+ ],
808
+ "inputSchema": {
809
+ "additionalProperties": false,
810
+ "description": "UpdateCreditCardCardholderNameInput selects a vaulted card and its replacement name.",
811
+ "properties": {
812
+ "cardholderName": {
813
+ "description": "CardholderName is the new non-blank name.",
814
+ "type": "string"
815
+ },
816
+ "paymentMethodId": {
817
+ "description": "PaymentMethodID is the vaulted multi-use GraphQL ID.",
818
+ "type": "string"
819
+ }
820
+ },
821
+ "required": [
822
+ "cardholderName",
823
+ "paymentMethodId"
824
+ ],
825
+ "type": "object"
826
+ }
827
+ },
828
+ {
829
+ "name": "newUpdateCreditCardExpirationDateStep",
830
+ "kind": "mutation",
831
+ "operationId": "updateCreditCardExpirationDate",
832
+ "inputType": "UpdateCreditCardExpirationDateInput",
833
+ "description": "Update a vaulted card expiration date with verification.",
834
+ "fields": {
835
+ "stepType": "stepType",
836
+ "annotations": "annotations",
837
+ "connectionName": "connectionName",
838
+ "resultAttribute": "resultAttribute"
839
+ },
840
+ "branches": [
841
+ {
842
+ "id": "updated",
843
+ "field": "updated",
844
+ "optional": false
845
+ },
846
+ {
847
+ "id": "notFound",
848
+ "field": "notFound",
849
+ "optional": true
850
+ },
851
+ {
852
+ "id": "providerRejected",
853
+ "field": "providerRejected",
854
+ "optional": true
855
+ },
856
+ {
857
+ "id": "defect",
858
+ "field": "defect",
859
+ "optional": true
860
+ },
861
+ {
862
+ "id": "uncertain",
863
+ "field": "uncertain",
864
+ "optional": true
865
+ }
866
+ ],
867
+ "inputSchema": {
868
+ "additionalProperties": false,
869
+ "description": "UpdateCreditCardExpirationDateInput selects a vaulted card and its replacement date.",
870
+ "properties": {
871
+ "expirationMonth": {
872
+ "description": "ExpirationMonth is a two-digit month.",
873
+ "type": "string"
874
+ },
875
+ "expirationYear": {
876
+ "description": "ExpirationYear is a four-digit year.",
877
+ "type": "string"
878
+ },
879
+ "paymentMethodId": {
880
+ "description": "PaymentMethodID is the vaulted multi-use GraphQL ID.",
881
+ "type": "string"
882
+ }
883
+ },
884
+ "required": [
885
+ "expirationMonth",
886
+ "expirationYear",
887
+ "paymentMethodId"
888
+ ],
889
+ "type": "object"
890
+ }
891
+ },
892
+ {
893
+ "name": "newUpdateCreditCardBillingAddressStep",
894
+ "kind": "mutation",
895
+ "operationId": "updateCreditCardBillingAddress",
896
+ "inputType": "UpdateCreditCardBillingAddressInput",
897
+ "description": "Update a vaulted card billing address with verification.",
898
+ "fields": {
899
+ "stepType": "stepType",
900
+ "annotations": "annotations",
901
+ "connectionName": "connectionName",
902
+ "resultAttribute": "resultAttribute"
903
+ },
904
+ "branches": [
905
+ {
906
+ "id": "updated",
907
+ "field": "updated",
908
+ "optional": false
909
+ },
910
+ {
911
+ "id": "notFound",
912
+ "field": "notFound",
913
+ "optional": true
914
+ },
915
+ {
916
+ "id": "providerRejected",
917
+ "field": "providerRejected",
918
+ "optional": true
919
+ },
920
+ {
921
+ "id": "defect",
922
+ "field": "defect",
923
+ "optional": true
924
+ },
925
+ {
926
+ "id": "uncertain",
927
+ "field": "uncertain",
928
+ "optional": true
929
+ }
930
+ ],
931
+ "inputSchema": {
932
+ "additionalProperties": false,
933
+ "description": "UpdateCreditCardBillingAddressInput selects a vaulted card and replacement billing address.",
934
+ "properties": {
935
+ "addressLine1": {
936
+ "description": "AddressLine1 is the street address.",
937
+ "type": "string"
938
+ },
939
+ "city": {
940
+ "description": "City is the locality.",
941
+ "type": "string"
942
+ },
943
+ "countryCode": {
944
+ "description": "CountryCode is a Braintree CountryCode value.",
945
+ "type": "string"
946
+ },
947
+ "paymentMethodId": {
948
+ "description": "PaymentMethodID is the vaulted multi-use GraphQL ID.",
949
+ "type": "string"
950
+ },
951
+ "postalCode": {
952
+ "description": "PostalCode is the postal or ZIP code.",
953
+ "type": "string"
954
+ },
955
+ "state": {
956
+ "description": "State is the state or province.",
957
+ "type": "string"
958
+ }
959
+ },
960
+ "required": [
961
+ "addressLine1",
962
+ "city",
963
+ "countryCode",
964
+ "paymentMethodId",
965
+ "postalCode",
966
+ "state"
967
+ ],
968
+ "type": "object"
969
+ }
970
+ },
971
+ {
972
+ "name": "newDeletePaymentMethodFromVaultStep",
973
+ "kind": "mutation",
974
+ "operationId": "deletePaymentMethodFromVault",
975
+ "inputType": "GetPaymentMethodInput",
976
+ "description": "Delete a multi-use payment method from the vault.",
977
+ "fields": {
978
+ "stepType": "stepType",
979
+ "annotations": "annotations",
980
+ "connectionName": "connectionName",
981
+ "resultAttribute": "resultAttribute"
982
+ },
983
+ "branches": [
984
+ {
985
+ "id": "deleted",
986
+ "field": "deleted",
987
+ "optional": false
988
+ },
989
+ {
990
+ "id": "notFound",
991
+ "field": "notFound",
992
+ "optional": true
993
+ },
994
+ {
995
+ "id": "providerRejected",
996
+ "field": "providerRejected",
997
+ "optional": true
998
+ },
999
+ {
1000
+ "id": "invalidResponse",
1001
+ "field": "invalidResponse",
1002
+ "optional": true
1003
+ },
1004
+ {
1005
+ "id": "defect",
1006
+ "field": "defect",
1007
+ "optional": true
1008
+ }
1009
+ ],
1010
+ "inputSchema": {
1011
+ "additionalProperties": false,
1012
+ "description": "GetPaymentMethodInput identifies a payment method by its GraphQL ID.",
1013
+ "properties": {
1014
+ "paymentMethodId": {
1015
+ "description": "PaymentMethodID is a GraphQL ID, not a legacy SDK ID.",
1016
+ "type": "string"
1017
+ }
1018
+ },
1019
+ "required": [
1020
+ "paymentMethodId"
1021
+ ],
1022
+ "type": "object"
1023
+ }
1024
+ },
1025
+ {
1026
+ "name": "newCreateCustomerStep",
1027
+ "kind": "mutation",
1028
+ "operationId": "createCustomer",
1029
+ "inputType": "CreateCustomerInput",
1030
+ "description": "Create a customer with contact details.",
1031
+ "fields": {
1032
+ "stepType": "stepType",
1033
+ "annotations": "annotations",
1034
+ "connectionName": "connectionName",
1035
+ "resultAttribute": "resultAttribute"
1036
+ },
1037
+ "branches": [
1038
+ {
1039
+ "id": "created",
1040
+ "field": "created",
1041
+ "optional": false
1042
+ },
1043
+ {
1044
+ "id": "providerRejected",
1045
+ "field": "providerRejected",
1046
+ "optional": true
1047
+ },
1048
+ {
1049
+ "id": "defect",
1050
+ "field": "defect",
1051
+ "optional": true
1052
+ },
1053
+ {
1054
+ "id": "uncertain",
1055
+ "field": "uncertain",
1056
+ "optional": true
1057
+ }
1058
+ ],
1059
+ "inputSchema": {
1060
+ "additionalProperties": false,
1061
+ "description": "CreateCustomerInput supplies non-secret customer contact fields.",
1062
+ "properties": {
1063
+ "email": {
1064
+ "description": "Email is the optional contact address.",
1065
+ "type": "string"
1066
+ },
1067
+ "firstName": {
1068
+ "description": "FirstName is the optional given name.",
1069
+ "type": "string"
1070
+ },
1071
+ "lastName": {
1072
+ "description": "LastName is the optional family name.",
1073
+ "type": "string"
1074
+ }
1075
+ },
1076
+ "type": "object"
1077
+ }
1078
+ },
1079
+ {
1080
+ "name": "newUpdateCustomerStep",
1081
+ "kind": "mutation",
1082
+ "operationId": "updateCustomer",
1083
+ "inputType": "UpdateCustomerInput",
1084
+ "description": "Replace a customer's selected contact details.",
1085
+ "fields": {
1086
+ "stepType": "stepType",
1087
+ "annotations": "annotations",
1088
+ "connectionName": "connectionName",
1089
+ "resultAttribute": "resultAttribute"
1090
+ },
1091
+ "branches": [
1092
+ {
1093
+ "id": "updated",
1094
+ "field": "updated",
1095
+ "optional": false
1096
+ },
1097
+ {
1098
+ "id": "notFound",
1099
+ "field": "notFound",
1100
+ "optional": true
1101
+ },
1102
+ {
1103
+ "id": "providerRejected",
1104
+ "field": "providerRejected",
1105
+ "optional": true
1106
+ },
1107
+ {
1108
+ "id": "invalidResponse",
1109
+ "field": "invalidResponse",
1110
+ "optional": true
1111
+ },
1112
+ {
1113
+ "id": "defect",
1114
+ "field": "defect",
1115
+ "optional": true
1116
+ }
1117
+ ],
1118
+ "inputSchema": {
1119
+ "additionalProperties": false,
1120
+ "description": "UpdateCustomerInput replaces the selected contact fields.",
1121
+ "properties": {
1122
+ "customerId": {
1123
+ "description": "CustomerID is the Braintree GraphQL customer ID.",
1124
+ "type": "string"
1125
+ },
1126
+ "email": {
1127
+ "description": "Email is the replacement contact address; blank clears it.",
1128
+ "type": "string"
1129
+ },
1130
+ "firstName": {
1131
+ "description": "FirstName is the replacement given name; blank clears it.",
1132
+ "type": "string"
1133
+ },
1134
+ "lastName": {
1135
+ "description": "LastName is the replacement family name; blank clears it.",
1136
+ "type": "string"
1137
+ }
1138
+ },
1139
+ "required": [
1140
+ "customerId",
1141
+ "email",
1142
+ "firstName",
1143
+ "lastName"
1144
+ ],
1145
+ "type": "object"
1146
+ }
1147
+ },
1148
+ {
1149
+ "name": "newDeleteCustomerStep",
1150
+ "kind": "mutation",
1151
+ "operationId": "deleteCustomer",
1152
+ "inputType": "GetCustomerInput",
1153
+ "description": "Delete a customer without vaulted payment methods.",
1154
+ "fields": {
1155
+ "stepType": "stepType",
1156
+ "annotations": "annotations",
1157
+ "connectionName": "connectionName",
1158
+ "resultAttribute": "resultAttribute"
1159
+ },
1160
+ "branches": [
1161
+ {
1162
+ "id": "deleted",
1163
+ "field": "deleted",
1164
+ "optional": false
1165
+ },
1166
+ {
1167
+ "id": "notFound",
1168
+ "field": "notFound",
1169
+ "optional": true
1170
+ },
1171
+ {
1172
+ "id": "providerRejected",
1173
+ "field": "providerRejected",
1174
+ "optional": true
1175
+ },
1176
+ {
1177
+ "id": "invalidResponse",
1178
+ "field": "invalidResponse",
1179
+ "optional": true
1180
+ },
1181
+ {
1182
+ "id": "defect",
1183
+ "field": "defect",
1184
+ "optional": true
1185
+ }
1186
+ ],
1187
+ "inputSchema": {
1188
+ "additionalProperties": false,
1189
+ "description": "GetCustomerInput identifies a customer by its GraphQL ID.",
1190
+ "properties": {
1191
+ "customerId": {
1192
+ "description": "CustomerID is a GraphQL ID, not a legacy SDK ID.",
1193
+ "type": "string"
1194
+ }
1195
+ },
1196
+ "required": [
1197
+ "customerId"
1198
+ ],
1199
+ "type": "object"
1200
+ }
1201
+ },
1202
+ {
1203
+ "name": "newGetCustomerStep",
1204
+ "kind": "query",
1205
+ "operationId": "getCustomer",
1206
+ "inputType": "GetCustomerInput",
1207
+ "description": "Read a Braintree customer ID, name, and email.",
1208
+ "fields": {
1209
+ "stepType": "stepType",
1210
+ "annotations": "annotations",
1211
+ "connectionName": "connectionName",
1212
+ "resultAttribute": "resultAttribute"
1213
+ },
1214
+ "branches": [
1215
+ {
1216
+ "id": "found",
1217
+ "field": "found",
1218
+ "optional": false
1219
+ },
1220
+ {
1221
+ "id": "notFound",
1222
+ "field": "notFound",
1223
+ "optional": true
1224
+ },
1225
+ {
1226
+ "id": "providerRejected",
1227
+ "field": "providerRejected",
1228
+ "optional": true
1229
+ },
1230
+ {
1231
+ "id": "invalidResponse",
1232
+ "field": "invalidResponse",
1233
+ "optional": true
1234
+ },
1235
+ {
1236
+ "id": "defect",
1237
+ "field": "defect",
1238
+ "optional": true
1239
+ }
1240
+ ],
1241
+ "inputSchema": {
1242
+ "additionalProperties": false,
1243
+ "description": "GetCustomerInput identifies a customer by its GraphQL ID.",
1244
+ "properties": {
1245
+ "customerId": {
1246
+ "description": "CustomerID is a GraphQL ID, not a legacy SDK ID.",
1247
+ "type": "string"
1248
+ }
1249
+ },
1250
+ "required": [
1251
+ "customerId"
1252
+ ],
1253
+ "type": "object"
1254
+ }
1255
+ },
1256
+ {
1257
+ "name": "newGetPaymentMethodStep",
1258
+ "kind": "query",
1259
+ "operationId": "getPaymentMethod",
1260
+ "inputType": "GetPaymentMethodInput",
1261
+ "description": "Read a Braintree payment method ID and usage.",
1262
+ "fields": {
1263
+ "stepType": "stepType",
1264
+ "annotations": "annotations",
1265
+ "connectionName": "connectionName",
1266
+ "resultAttribute": "resultAttribute"
1267
+ },
1268
+ "branches": [
1269
+ {
1270
+ "id": "found",
1271
+ "field": "found",
1272
+ "optional": false
1273
+ },
1274
+ {
1275
+ "id": "notFound",
1276
+ "field": "notFound",
1277
+ "optional": true
1278
+ },
1279
+ {
1280
+ "id": "providerRejected",
1281
+ "field": "providerRejected",
1282
+ "optional": true
1283
+ },
1284
+ {
1285
+ "id": "invalidResponse",
1286
+ "field": "invalidResponse",
1287
+ "optional": true
1288
+ },
1289
+ {
1290
+ "id": "defect",
1291
+ "field": "defect",
1292
+ "optional": true
1293
+ }
1294
+ ],
1295
+ "inputSchema": {
1296
+ "additionalProperties": false,
1297
+ "description": "GetPaymentMethodInput identifies a payment method by its GraphQL ID.",
1298
+ "properties": {
1299
+ "paymentMethodId": {
1300
+ "description": "PaymentMethodID is a GraphQL ID, not a legacy SDK ID.",
1301
+ "type": "string"
1302
+ }
1303
+ },
1304
+ "required": [
1305
+ "paymentMethodId"
1306
+ ],
1307
+ "type": "object"
1308
+ }
1309
+ },
1310
+ {
1311
+ "name": "newGetRefundStep",
1312
+ "kind": "query",
1313
+ "operationId": "getRefund",
1314
+ "inputType": "GetRefundInput",
1315
+ "description": "Read a Braintree refund ID and status.",
1316
+ "fields": {
1317
+ "stepType": "stepType",
1318
+ "annotations": "annotations",
1319
+ "connectionName": "connectionName",
1320
+ "resultAttribute": "resultAttribute"
1321
+ },
1322
+ "branches": [
1323
+ {
1324
+ "id": "found",
1325
+ "field": "found",
1326
+ "optional": false
1327
+ },
1328
+ {
1329
+ "id": "notFound",
1330
+ "field": "notFound",
1331
+ "optional": true
1332
+ },
1333
+ {
1334
+ "id": "providerRejected",
1335
+ "field": "providerRejected",
1336
+ "optional": true
1337
+ },
1338
+ {
1339
+ "id": "invalidResponse",
1340
+ "field": "invalidResponse",
1341
+ "optional": true
1342
+ },
1343
+ {
1344
+ "id": "defect",
1345
+ "field": "defect",
1346
+ "optional": true
1347
+ }
1348
+ ],
1349
+ "inputSchema": {
1350
+ "additionalProperties": false,
1351
+ "description": "GetRefundInput identifies a refund by its GraphQL ID.",
1352
+ "properties": {
1353
+ "refundId": {
1354
+ "description": "RefundID is a GraphQL ID, not a legacy SDK ID.",
1355
+ "type": "string"
1356
+ }
1357
+ },
1358
+ "required": [
1359
+ "refundId"
1360
+ ],
1361
+ "type": "object"
1362
+ }
1363
+ },
1364
+ {
1365
+ "name": "newGetTransactionStep",
1366
+ "kind": "query",
1367
+ "operationId": "getTransaction",
1368
+ "inputType": "GetTransactionInput",
1369
+ "description": "Return one Braintree transaction's GraphQL ID and status.",
1370
+ "fields": {
1371
+ "stepType": "stepType",
1372
+ "annotations": "annotations",
1373
+ "connectionName": "connectionName",
1374
+ "resultAttribute": "resultAttribute"
1375
+ },
1376
+ "branches": [
1377
+ {
1378
+ "id": "found",
1379
+ "field": "found",
1380
+ "optional": false
1381
+ },
1382
+ {
1383
+ "id": "notFound",
1384
+ "field": "notFound",
1385
+ "optional": true
1386
+ },
1387
+ {
1388
+ "id": "providerRejected",
1389
+ "field": "providerRejected",
1390
+ "optional": true
1391
+ },
1392
+ {
1393
+ "id": "invalidResponse",
1394
+ "field": "invalidResponse",
1395
+ "optional": true
1396
+ },
1397
+ {
1398
+ "id": "defect",
1399
+ "field": "defect",
1400
+ "optional": true
1401
+ }
1402
+ ],
1403
+ "inputSchema": {
1404
+ "additionalProperties": false,
1405
+ "description": "GetTransactionInput selects one Braintree GraphQL node by ID.",
1406
+ "properties": {
1407
+ "transactionId": {
1408
+ "description": "TransactionID is the GraphQL transaction ID, not a legacy SDK ID.",
1409
+ "type": "string"
1410
+ }
1411
+ },
1412
+ "required": [
1413
+ "transactionId"
1414
+ ],
1415
+ "type": "object"
1416
+ }
1417
+ }
1418
+ ]
1419
+ }