fragment-dev 2.4.1 → 2.4.2

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.
@@ -957,6 +957,55 @@
957
957
  "enumValues": null,
958
958
  "possibleTypes": null
959
959
  },
960
+ {
961
+ "kind": "OBJECT",
962
+ "name": "CheckoutPaymentAttempt",
963
+ "description": "An attempt the payer made through checkout.",
964
+ "fields": [
965
+ {
966
+ "name": "id",
967
+ "description": "The ID of this Payment attempt.",
968
+ "args": [],
969
+ "type": {
970
+ "kind": "NON_NULL",
971
+ "name": null,
972
+ "ofType": {
973
+ "kind": "SCALAR",
974
+ "name": "ID",
975
+ "ofType": null
976
+ }
977
+ },
978
+ "isDeprecated": false,
979
+ "deprecationReason": null
980
+ },
981
+ {
982
+ "name": "status",
983
+ "description": "The status of this Payment attempt.",
984
+ "args": [],
985
+ "type": {
986
+ "kind": "NON_NULL",
987
+ "name": null,
988
+ "ofType": {
989
+ "kind": "ENUM",
990
+ "name": "PaymentAttemptStatus",
991
+ "ofType": null
992
+ }
993
+ },
994
+ "isDeprecated": false,
995
+ "deprecationReason": null
996
+ }
997
+ ],
998
+ "inputFields": null,
999
+ "interfaces": [
1000
+ {
1001
+ "kind": "INTERFACE",
1002
+ "name": "PaymentAttempt",
1003
+ "ofType": null
1004
+ }
1005
+ ],
1006
+ "enumValues": null,
1007
+ "possibleTypes": null
1008
+ },
960
1009
  {
961
1010
  "kind": "INPUT_OBJECT",
962
1011
  "name": "CreateCustomCurrencyInput",
@@ -13397,6 +13446,120 @@
13397
13446
  "isDeprecated": false,
13398
13447
  "deprecationReason": null
13399
13448
  },
13449
+ {
13450
+ "name": "refundPayment",
13451
+ "description": "Refund a settled Payment.\n\nThe Payment's Payment Type must define the `refund_initiated` and `refund_failed` Ledger Entries.\nA Payment can be refunded at most 10 times.",
13452
+ "args": [
13453
+ {
13454
+ "name": "ik",
13455
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) for this Payment Refund. Can be up to 128 characters long.",
13456
+ "type": {
13457
+ "kind": "NON_NULL",
13458
+ "name": null,
13459
+ "ofType": {
13460
+ "kind": "SCALAR",
13461
+ "name": "SafeString",
13462
+ "ofType": null
13463
+ }
13464
+ },
13465
+ "defaultValue": null
13466
+ },
13467
+ {
13468
+ "name": "payment",
13469
+ "description": "The Payment to refund.",
13470
+ "type": {
13471
+ "kind": "NON_NULL",
13472
+ "name": null,
13473
+ "ofType": {
13474
+ "kind": "INPUT_OBJECT",
13475
+ "name": "PaymentMatchInput",
13476
+ "ofType": null
13477
+ }
13478
+ },
13479
+ "defaultValue": null
13480
+ },
13481
+ {
13482
+ "name": "refund",
13483
+ "description": "The Payment Refund to create.",
13484
+ "type": {
13485
+ "kind": "NON_NULL",
13486
+ "name": null,
13487
+ "ofType": {
13488
+ "kind": "INPUT_OBJECT",
13489
+ "name": "RefundPaymentInput",
13490
+ "ofType": null
13491
+ }
13492
+ },
13493
+ "defaultValue": null
13494
+ }
13495
+ ],
13496
+ "type": {
13497
+ "kind": "NON_NULL",
13498
+ "name": null,
13499
+ "ofType": {
13500
+ "kind": "UNION",
13501
+ "name": "RefundPaymentResponse",
13502
+ "ofType": null
13503
+ }
13504
+ },
13505
+ "isDeprecated": false,
13506
+ "deprecationReason": null
13507
+ },
13508
+ {
13509
+ "name": "retryPayment",
13510
+ "description": "Retry a Payment on a saved Payment Method after its latest attempt was declined, rejected or canceled.",
13511
+ "args": [
13512
+ {
13513
+ "name": "attemptIk",
13514
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) for this Retry, unique within the Payment. Can be up to 128 characters long.",
13515
+ "type": {
13516
+ "kind": "NON_NULL",
13517
+ "name": null,
13518
+ "ofType": {
13519
+ "kind": "SCALAR",
13520
+ "name": "SafeString",
13521
+ "ofType": null
13522
+ }
13523
+ },
13524
+ "defaultValue": null
13525
+ },
13526
+ {
13527
+ "name": "payment",
13528
+ "description": "The Payment to retry.",
13529
+ "type": {
13530
+ "kind": "NON_NULL",
13531
+ "name": null,
13532
+ "ofType": {
13533
+ "kind": "INPUT_OBJECT",
13534
+ "name": "PaymentMatchInput",
13535
+ "ofType": null
13536
+ }
13537
+ },
13538
+ "defaultValue": null
13539
+ },
13540
+ {
13541
+ "name": "paymentMethod",
13542
+ "description": "The saved Payment Method to charge. When omitted, charges the previous attempt's saved Payment Method.",
13543
+ "type": {
13544
+ "kind": "INPUT_OBJECT",
13545
+ "name": "PaymentMethodMatchInput",
13546
+ "ofType": null
13547
+ },
13548
+ "defaultValue": null
13549
+ }
13550
+ ],
13551
+ "type": {
13552
+ "kind": "NON_NULL",
13553
+ "name": null,
13554
+ "ofType": {
13555
+ "kind": "UNION",
13556
+ "name": "RetryPaymentResponse",
13557
+ "ofType": null
13558
+ }
13559
+ },
13560
+ "isDeprecated": false,
13561
+ "deprecationReason": null
13562
+ },
13400
13563
  {
13401
13564
  "name": "reverseLedgerEntry",
13402
13565
  "description": "Reverses a Ledger Entry",
@@ -13814,6 +13977,22 @@
13814
13977
  "isDeprecated": false,
13815
13978
  "deprecationReason": null
13816
13979
  },
13980
+ {
13981
+ "name": "attempts",
13982
+ "description": "The Payment's attempts, newest first.",
13983
+ "args": [],
13984
+ "type": {
13985
+ "kind": "NON_NULL",
13986
+ "name": null,
13987
+ "ofType": {
13988
+ "kind": "OBJECT",
13989
+ "name": "PaymentAttemptsConnection",
13990
+ "ofType": null
13991
+ }
13992
+ },
13993
+ "isDeprecated": false,
13994
+ "deprecationReason": null
13995
+ },
13817
13996
  {
13818
13997
  "name": "clientSecret",
13819
13998
  "description": "The credential the payments SDK presents to `confirmPayment`.",
@@ -13958,6 +14137,38 @@
13958
14137
  "isDeprecated": false,
13959
14138
  "deprecationReason": null
13960
14139
  },
14140
+ {
14141
+ "name": "refundedAmount",
14142
+ "description": "The amount refunded from this Payment, in whole cents.",
14143
+ "args": [],
14144
+ "type": {
14145
+ "kind": "NON_NULL",
14146
+ "name": null,
14147
+ "ofType": {
14148
+ "kind": "SCALAR",
14149
+ "name": "Int96",
14150
+ "ofType": null
14151
+ }
14152
+ },
14153
+ "isDeprecated": false,
14154
+ "deprecationReason": null
14155
+ },
14156
+ {
14157
+ "name": "refunds",
14158
+ "description": "The Payment's refunds, newest first.",
14159
+ "args": [],
14160
+ "type": {
14161
+ "kind": "NON_NULL",
14162
+ "name": null,
14163
+ "ofType": {
14164
+ "kind": "OBJECT",
14165
+ "name": "PaymentRefundsConnection",
14166
+ "ofType": null
14167
+ }
14168
+ },
14169
+ "isDeprecated": false,
14170
+ "deprecationReason": null
14171
+ },
13961
14172
  {
13962
14173
  "name": "status",
13963
14174
  "description": "The status of this Payment.",
@@ -14013,13 +14224,13 @@
14013
14224
  "possibleTypes": null
14014
14225
  },
14015
14226
  {
14016
- "kind": "OBJECT",
14017
- "name": "PaymentCardCapturedEvent",
14018
- "description": "The card network captured the Payment.",
14227
+ "kind": "INTERFACE",
14228
+ "name": "PaymentAttempt",
14229
+ "description": "One try at charging a Payment.",
14019
14230
  "fields": [
14020
14231
  {
14021
14232
  "name": "id",
14022
- "description": "The ID of this Payment event.",
14233
+ "description": "The ID of this Payment attempt.",
14023
14234
  "args": [],
14024
14235
  "type": {
14025
14236
  "kind": "NON_NULL",
@@ -14033,44 +14244,16 @@
14033
14244
  "isDeprecated": false,
14034
14245
  "deprecationReason": null
14035
14246
  },
14036
- {
14037
- "name": "ledgerEntry",
14038
- "description": "The `initiated` Ledger Entry, `null` where the Payment Type defines none.",
14039
- "args": [],
14040
- "type": {
14041
- "kind": "OBJECT",
14042
- "name": "LedgerEntry",
14043
- "ofType": null
14044
- },
14045
- "isDeprecated": false,
14046
- "deprecationReason": null
14047
- },
14048
- {
14049
- "name": "occurredAt",
14050
- "description": "When this event occurred.",
14051
- "args": [],
14052
- "type": {
14053
- "kind": "NON_NULL",
14054
- "name": null,
14055
- "ofType": {
14056
- "kind": "SCALAR",
14057
- "name": "DateTime",
14058
- "ofType": null
14059
- }
14060
- },
14061
- "isDeprecated": false,
14062
- "deprecationReason": null
14063
- },
14064
14247
  {
14065
14248
  "name": "status",
14066
- "description": "The status of the Payment after this event.",
14249
+ "description": "The status of this Payment attempt.",
14067
14250
  "args": [],
14068
14251
  "type": {
14069
14252
  "kind": "NON_NULL",
14070
14253
  "name": null,
14071
14254
  "ofType": {
14072
14255
  "kind": "ENUM",
14073
- "name": "PaymentStatus",
14256
+ "name": "PaymentAttemptStatus",
14074
14257
  "ofType": null
14075
14258
  }
14076
14259
  },
@@ -14079,63 +14262,89 @@
14079
14262
  }
14080
14263
  ],
14081
14264
  "inputFields": null,
14082
- "interfaces": [
14265
+ "interfaces": [],
14266
+ "enumValues": null,
14267
+ "possibleTypes": [
14083
14268
  {
14084
- "kind": "INTERFACE",
14085
- "name": "PaymentEvent",
14269
+ "kind": "OBJECT",
14270
+ "name": "CheckoutPaymentAttempt",
14271
+ "ofType": null
14272
+ },
14273
+ {
14274
+ "kind": "OBJECT",
14275
+ "name": "SavedPaymentMethodPaymentAttempt",
14086
14276
  "ofType": null
14087
14277
  }
14088
- ],
14089
- "enumValues": null,
14090
- "possibleTypes": null
14278
+ ]
14091
14279
  },
14092
14280
  {
14093
- "kind": "OBJECT",
14094
- "name": "PaymentCheckoutEvent",
14095
- "description": "The payer went through checkout.",
14096
- "fields": [
14281
+ "kind": "ENUM",
14282
+ "name": "PaymentAttemptStatus",
14283
+ "description": "Status of a Payment attempt.",
14284
+ "fields": null,
14285
+ "inputFields": null,
14286
+ "interfaces": null,
14287
+ "enumValues": [
14097
14288
  {
14098
- "name": "id",
14099
- "description": "The ID of this Payment event.",
14100
- "args": [],
14101
- "type": {
14102
- "kind": "NON_NULL",
14103
- "name": null,
14104
- "ofType": {
14105
- "kind": "SCALAR",
14106
- "name": "ID",
14107
- "ofType": null
14108
- }
14109
- },
14289
+ "name": "failed",
14290
+ "description": null,
14110
14291
  "isDeprecated": false,
14111
14292
  "deprecationReason": null
14112
14293
  },
14113
14294
  {
14114
- "name": "occurredAt",
14115
- "description": "When this event occurred.",
14295
+ "name": "processing",
14296
+ "description": null,
14297
+ "isDeprecated": false,
14298
+ "deprecationReason": null
14299
+ },
14300
+ {
14301
+ "name": "succeeded",
14302
+ "description": null,
14303
+ "isDeprecated": false,
14304
+ "deprecationReason": null
14305
+ }
14306
+ ],
14307
+ "possibleTypes": null
14308
+ },
14309
+ {
14310
+ "kind": "OBJECT",
14311
+ "name": "PaymentAttemptsConnection",
14312
+ "description": "A paginated list of Payment attempts.",
14313
+ "fields": [
14314
+ {
14315
+ "name": "nodes",
14316
+ "description": "The current page of results.",
14116
14317
  "args": [],
14117
14318
  "type": {
14118
14319
  "kind": "NON_NULL",
14119
14320
  "name": null,
14120
14321
  "ofType": {
14121
- "kind": "SCALAR",
14122
- "name": "DateTime",
14123
- "ofType": null
14322
+ "kind": "LIST",
14323
+ "name": null,
14324
+ "ofType": {
14325
+ "kind": "NON_NULL",
14326
+ "name": null,
14327
+ "ofType": {
14328
+ "kind": "INTERFACE",
14329
+ "name": "PaymentAttempt",
14330
+ "ofType": null
14331
+ }
14332
+ }
14124
14333
  }
14125
14334
  },
14126
14335
  "isDeprecated": false,
14127
14336
  "deprecationReason": null
14128
14337
  },
14129
14338
  {
14130
- "name": "status",
14131
- "description": "The status of the Payment after this event.",
14339
+ "name": "pageInfo",
14340
+ "description": "The pagination info for this list.",
14132
14341
  "args": [],
14133
14342
  "type": {
14134
14343
  "kind": "NON_NULL",
14135
14344
  "name": null,
14136
14345
  "ofType": {
14137
- "kind": "ENUM",
14138
- "name": "PaymentStatus",
14346
+ "kind": "OBJECT",
14347
+ "name": "PageInfo",
14139
14348
  "ofType": null
14140
14349
  }
14141
14350
  },
@@ -14144,20 +14353,14 @@
14144
14353
  }
14145
14354
  ],
14146
14355
  "inputFields": null,
14147
- "interfaces": [
14148
- {
14149
- "kind": "INTERFACE",
14150
- "name": "PaymentEvent",
14151
- "ofType": null
14152
- }
14153
- ],
14356
+ "interfaces": [],
14154
14357
  "enumValues": null,
14155
14358
  "possibleTypes": null
14156
14359
  },
14157
14360
  {
14158
14361
  "kind": "OBJECT",
14159
- "name": "PaymentCreatedEvent",
14160
- "description": "The Payment was created.",
14362
+ "name": "PaymentCard3DSCanceledEvent",
14363
+ "description": "The payer abandoned or failed the 3DS check.",
14161
14364
  "fields": [
14162
14365
  {
14163
14366
  "name": "id",
@@ -14192,8 +14395,8 @@
14192
14395
  "deprecationReason": null
14193
14396
  },
14194
14397
  {
14195
- "name": "status",
14196
- "description": "The status of the Payment after this event.",
14398
+ "name": "paymentStatus",
14399
+ "description": "The status of the Payment after this event. Always `needs_payment_method`, even while a newer attempt keeps the Payment `processing`.",
14197
14400
  "args": [],
14198
14401
  "type": {
14199
14402
  "kind": "NON_NULL",
@@ -14206,6 +14409,22 @@
14206
14409
  },
14207
14410
  "isDeprecated": false,
14208
14411
  "deprecationReason": null
14412
+ },
14413
+ {
14414
+ "name": "status",
14415
+ "description": "The status of the Payment after this event.",
14416
+ "args": [],
14417
+ "type": {
14418
+ "kind": "NON_NULL",
14419
+ "name": null,
14420
+ "ofType": {
14421
+ "kind": "ENUM",
14422
+ "name": "PaymentStatus",
14423
+ "ofType": null
14424
+ }
14425
+ },
14426
+ "isDeprecated": true,
14427
+ "deprecationReason": "Use `paymentStatus` on each event type."
14209
14428
  }
14210
14429
  ],
14211
14430
  "inputFields": null,
@@ -14221,95 +14440,71 @@
14221
14440
  },
14222
14441
  {
14223
14442
  "kind": "OBJECT",
14224
- "name": "PaymentCurrency",
14225
- "description": "The currency a Payment is denominated in.",
14443
+ "name": "PaymentCardCapturedEvent",
14444
+ "description": "The card network captured the Payment.",
14226
14445
  "fields": [
14227
14446
  {
14228
- "name": "code",
14229
- "description": "The currency code.",
14447
+ "name": "attempt",
14448
+ "description": "The captured attempt. `null` on events recorded before attempts.",
14230
14449
  "args": [],
14231
14450
  "type": {
14232
- "kind": "NON_NULL",
14233
- "name": null,
14234
- "ofType": {
14235
- "kind": "ENUM",
14236
- "name": "PaymentCurrencyCode",
14237
- "ofType": null
14238
- }
14451
+ "kind": "INTERFACE",
14452
+ "name": "PaymentAttempt",
14453
+ "ofType": null
14239
14454
  },
14240
14455
  "isDeprecated": false,
14241
14456
  "deprecationReason": null
14242
14457
  },
14243
14458
  {
14244
- "name": "name",
14245
- "description": "A human readable name for the currency (e.g. United States Dollar). This is used for display purposes.",
14459
+ "name": "attemptStatus",
14460
+ "description": "The status of the attempt after this event. Always `succeeded`. `null` on events recorded before attempt statuses.",
14246
14461
  "args": [],
14247
14462
  "type": {
14248
- "kind": "NON_NULL",
14249
- "name": null,
14250
- "ofType": {
14251
- "kind": "SCALAR",
14252
- "name": "String",
14253
- "ofType": null
14254
- }
14463
+ "kind": "ENUM",
14464
+ "name": "PaymentAttemptStatus",
14465
+ "ofType": null
14255
14466
  },
14256
14467
  "isDeprecated": false,
14257
14468
  "deprecationReason": null
14258
14469
  },
14259
14470
  {
14260
- "name": "precision",
14261
- "description": "The number of decimal places this currency goes to. For example, United States Dollars have a precision of 2 (i.e. 100 cents in a dollar), whereas the Jordanian Dinar has a precision of 3. This is used for display purposes.",
14471
+ "name": "id",
14472
+ "description": "The ID of this Payment event.",
14262
14473
  "args": [],
14263
14474
  "type": {
14264
14475
  "kind": "NON_NULL",
14265
14476
  "name": null,
14266
14477
  "ofType": {
14267
14478
  "kind": "SCALAR",
14268
- "name": "Int",
14479
+ "name": "ID",
14269
14480
  "ofType": null
14270
14481
  }
14271
14482
  },
14272
14483
  "isDeprecated": false,
14273
14484
  "deprecationReason": null
14274
- }
14275
- ],
14276
- "inputFields": null,
14277
- "interfaces": [],
14278
- "enumValues": null,
14279
- "possibleTypes": null
14280
- },
14281
- {
14282
- "kind": "ENUM",
14283
- "name": "PaymentCurrencyCode",
14284
- "description": "The currencies a Payment can be denominated in.",
14285
- "fields": null,
14286
- "inputFields": null,
14287
- "interfaces": null,
14288
- "enumValues": [
14485
+ },
14289
14486
  {
14290
- "name": "USD",
14291
- "description": null,
14487
+ "name": "ledgerEntry",
14488
+ "description": "The `initiated` Ledger Entry, `null` where the Payment Type defines none.",
14489
+ "args": [],
14490
+ "type": {
14491
+ "kind": "OBJECT",
14492
+ "name": "LedgerEntry",
14493
+ "ofType": null
14494
+ },
14292
14495
  "isDeprecated": false,
14293
14496
  "deprecationReason": null
14294
- }
14295
- ],
14296
- "possibleTypes": null
14297
- },
14298
- {
14299
- "kind": "INTERFACE",
14300
- "name": "PaymentEvent",
14301
- "description": "Something that happened to a Payment.",
14302
- "fields": [
14497
+ },
14303
14498
  {
14304
- "name": "id",
14305
- "description": "The ID of this Payment event.",
14499
+ "name": "occurredAt",
14500
+ "description": "When this event occurred.",
14306
14501
  "args": [],
14307
14502
  "type": {
14308
14503
  "kind": "NON_NULL",
14309
14504
  "name": null,
14310
14505
  "ofType": {
14311
14506
  "kind": "SCALAR",
14312
- "name": "ID",
14507
+ "name": "DateTime",
14313
14508
  "ofType": null
14314
14509
  }
14315
14510
  },
@@ -14317,15 +14512,15 @@
14317
14512
  "deprecationReason": null
14318
14513
  },
14319
14514
  {
14320
- "name": "occurredAt",
14321
- "description": "When this event occurred.",
14515
+ "name": "paymentStatus",
14516
+ "description": "The status of the Payment after this event. Always `accepted`.",
14322
14517
  "args": [],
14323
14518
  "type": {
14324
14519
  "kind": "NON_NULL",
14325
14520
  "name": null,
14326
14521
  "ofType": {
14327
- "kind": "SCALAR",
14328
- "name": "DateTime",
14522
+ "kind": "ENUM",
14523
+ "name": "PaymentStatus",
14329
14524
  "ofType": null
14330
14525
  }
14331
14526
  },
@@ -14345,134 +14540,1040 @@
14345
14540
  "ofType": null
14346
14541
  }
14347
14542
  },
14348
- "isDeprecated": false,
14349
- "deprecationReason": null
14543
+ "isDeprecated": true,
14544
+ "deprecationReason": "Use `paymentStatus` on each event type."
14350
14545
  }
14351
14546
  ],
14352
14547
  "inputFields": null,
14353
- "interfaces": [],
14354
- "enumValues": null,
14355
- "possibleTypes": [
14356
- {
14357
- "kind": "OBJECT",
14358
- "name": "PaymentCardCapturedEvent",
14359
- "ofType": null
14360
- },
14361
- {
14362
- "kind": "OBJECT",
14363
- "name": "PaymentCheckoutEvent",
14364
- "ofType": null
14365
- },
14366
- {
14367
- "kind": "OBJECT",
14368
- "name": "PaymentCreatedEvent",
14369
- "ofType": null
14370
- },
14548
+ "interfaces": [
14371
14549
  {
14372
- "kind": "OBJECT",
14373
- "name": "PaymentSettledEvent",
14550
+ "kind": "INTERFACE",
14551
+ "name": "PaymentEvent",
14374
14552
  "ofType": null
14375
14553
  }
14376
- ]
14554
+ ],
14555
+ "enumValues": null,
14556
+ "possibleTypes": null
14377
14557
  },
14378
14558
  {
14379
14559
  "kind": "OBJECT",
14380
- "name": "PaymentEventsConnection",
14381
- "description": "A paginated list of Payment events.",
14560
+ "name": "PaymentCardDeclinedEvent",
14561
+ "description": "The card was declined, or the charge refused.",
14382
14562
  "fields": [
14383
14563
  {
14384
- "name": "nodes",
14385
- "description": "The current page of results.",
14564
+ "name": "attempt",
14565
+ "description": "The attempt that failed.",
14386
14566
  "args": [],
14387
14567
  "type": {
14388
14568
  "kind": "NON_NULL",
14389
14569
  "name": null,
14390
14570
  "ofType": {
14391
- "kind": "LIST",
14392
- "name": null,
14393
- "ofType": {
14394
- "kind": "NON_NULL",
14395
- "name": null,
14396
- "ofType": {
14397
- "kind": "INTERFACE",
14398
- "name": "PaymentEvent",
14399
- "ofType": null
14400
- }
14401
- }
14571
+ "kind": "INTERFACE",
14572
+ "name": "PaymentAttempt",
14573
+ "ofType": null
14402
14574
  }
14403
14575
  },
14404
14576
  "isDeprecated": false,
14405
14577
  "deprecationReason": null
14406
14578
  },
14407
14579
  {
14408
- "name": "pageInfo",
14409
- "description": "The pagination info for this list.",
14580
+ "name": "attemptStatus",
14581
+ "description": "The status of the attempt after this event. Always `failed`.",
14410
14582
  "args": [],
14411
14583
  "type": {
14412
14584
  "kind": "NON_NULL",
14413
14585
  "name": null,
14414
14586
  "ofType": {
14415
- "kind": "OBJECT",
14416
- "name": "PageInfo",
14587
+ "kind": "ENUM",
14588
+ "name": "PaymentAttemptStatus",
14417
14589
  "ofType": null
14418
14590
  }
14419
14591
  },
14420
14592
  "isDeprecated": false,
14421
14593
  "deprecationReason": null
14422
- }
14423
- ],
14424
- "inputFields": null,
14425
- "interfaces": [],
14426
- "enumValues": null,
14427
- "possibleTypes": null
14428
- },
14429
- {
14430
- "kind": "INPUT_OBJECT",
14431
- "name": "PaymentMatchInput",
14432
- "description": "Specify a Ledger Payment by using `ledger` and `ik`.",
14433
- "fields": null,
14434
- "inputFields": [
14594
+ },
14435
14595
  {
14436
- "name": "ik",
14437
- "description": "The Idempotency Key the Payment was created with.",
14596
+ "name": "declineCode",
14597
+ "description": "The payment processor's reason for the decline, `null` when it gave none.",
14598
+ "args": [],
14438
14599
  "type": {
14439
- "kind": "NON_NULL",
14440
- "name": null,
14441
- "ofType": {
14442
- "kind": "SCALAR",
14443
- "name": "SafeString",
14444
- "ofType": null
14445
- }
14600
+ "kind": "SCALAR",
14601
+ "name": "String",
14602
+ "ofType": null
14446
14603
  },
14447
- "defaultValue": null
14604
+ "isDeprecated": false,
14605
+ "deprecationReason": null
14448
14606
  },
14449
14607
  {
14450
- "name": "ledger",
14451
- "description": "The Ledger the Payment belongs to.",
14608
+ "name": "id",
14609
+ "description": "The ID of this Payment event.",
14610
+ "args": [],
14452
14611
  "type": {
14453
14612
  "kind": "NON_NULL",
14454
14613
  "name": null,
14455
14614
  "ofType": {
14456
- "kind": "INPUT_OBJECT",
14457
- "name": "LedgerMatchInput",
14615
+ "kind": "SCALAR",
14616
+ "name": "ID",
14458
14617
  "ofType": null
14459
14618
  }
14460
14619
  },
14461
- "defaultValue": null
14462
- }
14463
- ],
14464
- "interfaces": null,
14465
- "enumValues": null,
14466
- "possibleTypes": null
14467
- },
14468
- {
14469
- "kind": "INTERFACE",
14470
- "name": "PaymentMethod",
14471
- "description": "A payment method saved for a User.",
14472
- "fields": [
14620
+ "isDeprecated": false,
14621
+ "deprecationReason": null
14622
+ },
14473
14623
  {
14474
- "name": "created",
14475
- "description": "When the payment method was saved.",
14624
+ "name": "occurredAt",
14625
+ "description": "When this event occurred.",
14626
+ "args": [],
14627
+ "type": {
14628
+ "kind": "NON_NULL",
14629
+ "name": null,
14630
+ "ofType": {
14631
+ "kind": "SCALAR",
14632
+ "name": "DateTime",
14633
+ "ofType": null
14634
+ }
14635
+ },
14636
+ "isDeprecated": false,
14637
+ "deprecationReason": null
14638
+ },
14639
+ {
14640
+ "name": "paymentStatus",
14641
+ "description": "The status of the Payment after this event. Always `needs_payment_method`, even while a newer attempt keeps the Payment `processing`.",
14642
+ "args": [],
14643
+ "type": {
14644
+ "kind": "NON_NULL",
14645
+ "name": null,
14646
+ "ofType": {
14647
+ "kind": "ENUM",
14648
+ "name": "PaymentStatus",
14649
+ "ofType": null
14650
+ }
14651
+ },
14652
+ "isDeprecated": false,
14653
+ "deprecationReason": null
14654
+ },
14655
+ {
14656
+ "name": "status",
14657
+ "description": "The status of the Payment after this event.",
14658
+ "args": [],
14659
+ "type": {
14660
+ "kind": "NON_NULL",
14661
+ "name": null,
14662
+ "ofType": {
14663
+ "kind": "ENUM",
14664
+ "name": "PaymentStatus",
14665
+ "ofType": null
14666
+ }
14667
+ },
14668
+ "isDeprecated": true,
14669
+ "deprecationReason": "Use `paymentStatus` on each event type."
14670
+ }
14671
+ ],
14672
+ "inputFields": null,
14673
+ "interfaces": [
14674
+ {
14675
+ "kind": "INTERFACE",
14676
+ "name": "PaymentEvent",
14677
+ "ofType": null
14678
+ }
14679
+ ],
14680
+ "enumValues": null,
14681
+ "possibleTypes": null
14682
+ },
14683
+ {
14684
+ "kind": "OBJECT",
14685
+ "name": "PaymentCheckoutEvent",
14686
+ "description": "The payer went through checkout.",
14687
+ "fields": [
14688
+ {
14689
+ "name": "attempt",
14690
+ "description": "The attempt checkout started. `null` on events recorded before attempts.",
14691
+ "args": [],
14692
+ "type": {
14693
+ "kind": "INTERFACE",
14694
+ "name": "PaymentAttempt",
14695
+ "ofType": null
14696
+ },
14697
+ "isDeprecated": false,
14698
+ "deprecationReason": null
14699
+ },
14700
+ {
14701
+ "name": "attemptStatus",
14702
+ "description": "The status of the attempt after this event. Always `processing`. `null` on events recorded before attempt statuses.",
14703
+ "args": [],
14704
+ "type": {
14705
+ "kind": "ENUM",
14706
+ "name": "PaymentAttemptStatus",
14707
+ "ofType": null
14708
+ },
14709
+ "isDeprecated": false,
14710
+ "deprecationReason": null
14711
+ },
14712
+ {
14713
+ "name": "id",
14714
+ "description": "The ID of this Payment event.",
14715
+ "args": [],
14716
+ "type": {
14717
+ "kind": "NON_NULL",
14718
+ "name": null,
14719
+ "ofType": {
14720
+ "kind": "SCALAR",
14721
+ "name": "ID",
14722
+ "ofType": null
14723
+ }
14724
+ },
14725
+ "isDeprecated": false,
14726
+ "deprecationReason": null
14727
+ },
14728
+ {
14729
+ "name": "occurredAt",
14730
+ "description": "When this event occurred.",
14731
+ "args": [],
14732
+ "type": {
14733
+ "kind": "NON_NULL",
14734
+ "name": null,
14735
+ "ofType": {
14736
+ "kind": "SCALAR",
14737
+ "name": "DateTime",
14738
+ "ofType": null
14739
+ }
14740
+ },
14741
+ "isDeprecated": false,
14742
+ "deprecationReason": null
14743
+ },
14744
+ {
14745
+ "name": "paymentStatus",
14746
+ "description": "The status of the Payment after this event. Always `processing`.",
14747
+ "args": [],
14748
+ "type": {
14749
+ "kind": "NON_NULL",
14750
+ "name": null,
14751
+ "ofType": {
14752
+ "kind": "ENUM",
14753
+ "name": "PaymentStatus",
14754
+ "ofType": null
14755
+ }
14756
+ },
14757
+ "isDeprecated": false,
14758
+ "deprecationReason": null
14759
+ },
14760
+ {
14761
+ "name": "status",
14762
+ "description": "The status of the Payment after this event.",
14763
+ "args": [],
14764
+ "type": {
14765
+ "kind": "NON_NULL",
14766
+ "name": null,
14767
+ "ofType": {
14768
+ "kind": "ENUM",
14769
+ "name": "PaymentStatus",
14770
+ "ofType": null
14771
+ }
14772
+ },
14773
+ "isDeprecated": true,
14774
+ "deprecationReason": "Use `paymentStatus` on each event type."
14775
+ }
14776
+ ],
14777
+ "inputFields": null,
14778
+ "interfaces": [
14779
+ {
14780
+ "kind": "INTERFACE",
14781
+ "name": "PaymentEvent",
14782
+ "ofType": null
14783
+ }
14784
+ ],
14785
+ "enumValues": null,
14786
+ "possibleTypes": null
14787
+ },
14788
+ {
14789
+ "kind": "OBJECT",
14790
+ "name": "PaymentCreatedEvent",
14791
+ "description": "The Payment was created.",
14792
+ "fields": [
14793
+ {
14794
+ "name": "id",
14795
+ "description": "The ID of this Payment event.",
14796
+ "args": [],
14797
+ "type": {
14798
+ "kind": "NON_NULL",
14799
+ "name": null,
14800
+ "ofType": {
14801
+ "kind": "SCALAR",
14802
+ "name": "ID",
14803
+ "ofType": null
14804
+ }
14805
+ },
14806
+ "isDeprecated": false,
14807
+ "deprecationReason": null
14808
+ },
14809
+ {
14810
+ "name": "occurredAt",
14811
+ "description": "When this event occurred.",
14812
+ "args": [],
14813
+ "type": {
14814
+ "kind": "NON_NULL",
14815
+ "name": null,
14816
+ "ofType": {
14817
+ "kind": "SCALAR",
14818
+ "name": "DateTime",
14819
+ "ofType": null
14820
+ }
14821
+ },
14822
+ "isDeprecated": false,
14823
+ "deprecationReason": null
14824
+ },
14825
+ {
14826
+ "name": "paymentStatus",
14827
+ "description": "The status of the Payment after this event: `needs_payment_method` for checkout, `processing` for a saved Payment Method.",
14828
+ "args": [],
14829
+ "type": {
14830
+ "kind": "NON_NULL",
14831
+ "name": null,
14832
+ "ofType": {
14833
+ "kind": "ENUM",
14834
+ "name": "PaymentStatus",
14835
+ "ofType": null
14836
+ }
14837
+ },
14838
+ "isDeprecated": false,
14839
+ "deprecationReason": null
14840
+ },
14841
+ {
14842
+ "name": "status",
14843
+ "description": "The status of the Payment after this event.",
14844
+ "args": [],
14845
+ "type": {
14846
+ "kind": "NON_NULL",
14847
+ "name": null,
14848
+ "ofType": {
14849
+ "kind": "ENUM",
14850
+ "name": "PaymentStatus",
14851
+ "ofType": null
14852
+ }
14853
+ },
14854
+ "isDeprecated": true,
14855
+ "deprecationReason": "Use `paymentStatus` on each event type."
14856
+ }
14857
+ ],
14858
+ "inputFields": null,
14859
+ "interfaces": [
14860
+ {
14861
+ "kind": "INTERFACE",
14862
+ "name": "PaymentEvent",
14863
+ "ofType": null
14864
+ }
14865
+ ],
14866
+ "enumValues": null,
14867
+ "possibleTypes": null
14868
+ },
14869
+ {
14870
+ "kind": "OBJECT",
14871
+ "name": "PaymentCurrency",
14872
+ "description": "The currency a Payment is denominated in.",
14873
+ "fields": [
14874
+ {
14875
+ "name": "code",
14876
+ "description": "The currency code.",
14877
+ "args": [],
14878
+ "type": {
14879
+ "kind": "NON_NULL",
14880
+ "name": null,
14881
+ "ofType": {
14882
+ "kind": "ENUM",
14883
+ "name": "PaymentCurrencyCode",
14884
+ "ofType": null
14885
+ }
14886
+ },
14887
+ "isDeprecated": false,
14888
+ "deprecationReason": null
14889
+ },
14890
+ {
14891
+ "name": "name",
14892
+ "description": "A human readable name for the currency (e.g. United States Dollar). This is used for display purposes.",
14893
+ "args": [],
14894
+ "type": {
14895
+ "kind": "NON_NULL",
14896
+ "name": null,
14897
+ "ofType": {
14898
+ "kind": "SCALAR",
14899
+ "name": "String",
14900
+ "ofType": null
14901
+ }
14902
+ },
14903
+ "isDeprecated": false,
14904
+ "deprecationReason": null
14905
+ },
14906
+ {
14907
+ "name": "precision",
14908
+ "description": "The number of decimal places this currency goes to. For example, United States Dollars have a precision of 2 (i.e. 100 cents in a dollar), whereas the Jordanian Dinar has a precision of 3. This is used for display purposes.",
14909
+ "args": [],
14910
+ "type": {
14911
+ "kind": "NON_NULL",
14912
+ "name": null,
14913
+ "ofType": {
14914
+ "kind": "SCALAR",
14915
+ "name": "Int",
14916
+ "ofType": null
14917
+ }
14918
+ },
14919
+ "isDeprecated": false,
14920
+ "deprecationReason": null
14921
+ }
14922
+ ],
14923
+ "inputFields": null,
14924
+ "interfaces": [],
14925
+ "enumValues": null,
14926
+ "possibleTypes": null
14927
+ },
14928
+ {
14929
+ "kind": "ENUM",
14930
+ "name": "PaymentCurrencyCode",
14931
+ "description": "The currencies a Payment can be denominated in.",
14932
+ "fields": null,
14933
+ "inputFields": null,
14934
+ "interfaces": null,
14935
+ "enumValues": [
14936
+ {
14937
+ "name": "USD",
14938
+ "description": null,
14939
+ "isDeprecated": false,
14940
+ "deprecationReason": null
14941
+ }
14942
+ ],
14943
+ "possibleTypes": null
14944
+ },
14945
+ {
14946
+ "kind": "INTERFACE",
14947
+ "name": "PaymentEvent",
14948
+ "description": "Something that happened to a Payment.",
14949
+ "fields": [
14950
+ {
14951
+ "name": "id",
14952
+ "description": "The ID of this Payment event.",
14953
+ "args": [],
14954
+ "type": {
14955
+ "kind": "NON_NULL",
14956
+ "name": null,
14957
+ "ofType": {
14958
+ "kind": "SCALAR",
14959
+ "name": "ID",
14960
+ "ofType": null
14961
+ }
14962
+ },
14963
+ "isDeprecated": false,
14964
+ "deprecationReason": null
14965
+ },
14966
+ {
14967
+ "name": "occurredAt",
14968
+ "description": "When this event occurred.",
14969
+ "args": [],
14970
+ "type": {
14971
+ "kind": "NON_NULL",
14972
+ "name": null,
14973
+ "ofType": {
14974
+ "kind": "SCALAR",
14975
+ "name": "DateTime",
14976
+ "ofType": null
14977
+ }
14978
+ },
14979
+ "isDeprecated": false,
14980
+ "deprecationReason": null
14981
+ },
14982
+ {
14983
+ "name": "status",
14984
+ "description": "The status of the Payment after this event.",
14985
+ "args": [],
14986
+ "type": {
14987
+ "kind": "NON_NULL",
14988
+ "name": null,
14989
+ "ofType": {
14990
+ "kind": "ENUM",
14991
+ "name": "PaymentStatus",
14992
+ "ofType": null
14993
+ }
14994
+ },
14995
+ "isDeprecated": true,
14996
+ "deprecationReason": "Use `paymentStatus` on each event type."
14997
+ }
14998
+ ],
14999
+ "inputFields": null,
15000
+ "interfaces": [],
15001
+ "enumValues": null,
15002
+ "possibleTypes": [
15003
+ {
15004
+ "kind": "OBJECT",
15005
+ "name": "PaymentCard3DSCanceledEvent",
15006
+ "ofType": null
15007
+ },
15008
+ {
15009
+ "kind": "OBJECT",
15010
+ "name": "PaymentCardCapturedEvent",
15011
+ "ofType": null
15012
+ },
15013
+ {
15014
+ "kind": "OBJECT",
15015
+ "name": "PaymentCardDeclinedEvent",
15016
+ "ofType": null
15017
+ },
15018
+ {
15019
+ "kind": "OBJECT",
15020
+ "name": "PaymentCheckoutEvent",
15021
+ "ofType": null
15022
+ },
15023
+ {
15024
+ "kind": "OBJECT",
15025
+ "name": "PaymentCreatedEvent",
15026
+ "ofType": null
15027
+ },
15028
+ {
15029
+ "kind": "OBJECT",
15030
+ "name": "PaymentRefundFailedEvent",
15031
+ "ofType": null
15032
+ },
15033
+ {
15034
+ "kind": "OBJECT",
15035
+ "name": "PaymentRefundInitiatedEvent",
15036
+ "ofType": null
15037
+ },
15038
+ {
15039
+ "kind": "OBJECT",
15040
+ "name": "PaymentRefundSettledEvent",
15041
+ "ofType": null
15042
+ },
15043
+ {
15044
+ "kind": "OBJECT",
15045
+ "name": "PaymentRetryEvent",
15046
+ "ofType": null
15047
+ },
15048
+ {
15049
+ "kind": "OBJECT",
15050
+ "name": "PaymentSettledEvent",
15051
+ "ofType": null
15052
+ }
15053
+ ]
15054
+ },
15055
+ {
15056
+ "kind": "OBJECT",
15057
+ "name": "PaymentEventsConnection",
15058
+ "description": "A paginated list of Payment events.",
15059
+ "fields": [
15060
+ {
15061
+ "name": "nodes",
15062
+ "description": "The current page of results.",
15063
+ "args": [],
15064
+ "type": {
15065
+ "kind": "NON_NULL",
15066
+ "name": null,
15067
+ "ofType": {
15068
+ "kind": "LIST",
15069
+ "name": null,
15070
+ "ofType": {
15071
+ "kind": "NON_NULL",
15072
+ "name": null,
15073
+ "ofType": {
15074
+ "kind": "INTERFACE",
15075
+ "name": "PaymentEvent",
15076
+ "ofType": null
15077
+ }
15078
+ }
15079
+ }
15080
+ },
15081
+ "isDeprecated": false,
15082
+ "deprecationReason": null
15083
+ },
15084
+ {
15085
+ "name": "pageInfo",
15086
+ "description": "The pagination info for this list.",
15087
+ "args": [],
15088
+ "type": {
15089
+ "kind": "NON_NULL",
15090
+ "name": null,
15091
+ "ofType": {
15092
+ "kind": "OBJECT",
15093
+ "name": "PageInfo",
15094
+ "ofType": null
15095
+ }
15096
+ },
15097
+ "isDeprecated": false,
15098
+ "deprecationReason": null
15099
+ }
15100
+ ],
15101
+ "inputFields": null,
15102
+ "interfaces": [],
15103
+ "enumValues": null,
15104
+ "possibleTypes": null
15105
+ },
15106
+ {
15107
+ "kind": "INPUT_OBJECT",
15108
+ "name": "PaymentMatchInput",
15109
+ "description": "Specify a Payment by `id`, or by `ledger` and `ik`.",
15110
+ "fields": null,
15111
+ "inputFields": [
15112
+ {
15113
+ "name": "id",
15114
+ "description": "The FRAGMENT ID of the Payment.",
15115
+ "type": {
15116
+ "kind": "SCALAR",
15117
+ "name": "ID",
15118
+ "ofType": null
15119
+ },
15120
+ "defaultValue": null
15121
+ },
15122
+ {
15123
+ "name": "ik",
15124
+ "description": "The Idempotency Key the Payment was created with.",
15125
+ "type": {
15126
+ "kind": "SCALAR",
15127
+ "name": "SafeString",
15128
+ "ofType": null
15129
+ },
15130
+ "defaultValue": null
15131
+ },
15132
+ {
15133
+ "name": "ledger",
15134
+ "description": "The Ledger the Payment belongs to.",
15135
+ "type": {
15136
+ "kind": "INPUT_OBJECT",
15137
+ "name": "LedgerMatchInput",
15138
+ "ofType": null
15139
+ },
15140
+ "defaultValue": null
15141
+ }
15142
+ ],
15143
+ "interfaces": null,
15144
+ "enumValues": null,
15145
+ "possibleTypes": null
15146
+ },
15147
+ {
15148
+ "kind": "INTERFACE",
15149
+ "name": "PaymentMethod",
15150
+ "description": "A payment method saved for a User.",
15151
+ "fields": [
15152
+ {
15153
+ "name": "created",
15154
+ "description": "When the payment method was saved.",
15155
+ "args": [],
15156
+ "type": {
15157
+ "kind": "NON_NULL",
15158
+ "name": null,
15159
+ "ofType": {
15160
+ "kind": "SCALAR",
15161
+ "name": "DateTime",
15162
+ "ofType": null
15163
+ }
15164
+ },
15165
+ "isDeprecated": false,
15166
+ "deprecationReason": null
15167
+ },
15168
+ {
15169
+ "name": "id",
15170
+ "description": "FRAGMENT ID of the saved Payment Method.",
15171
+ "args": [],
15172
+ "type": {
15173
+ "kind": "NON_NULL",
15174
+ "name": null,
15175
+ "ofType": {
15176
+ "kind": "SCALAR",
15177
+ "name": "ID",
15178
+ "ofType": null
15179
+ }
15180
+ },
15181
+ "isDeprecated": false,
15182
+ "deprecationReason": null
15183
+ },
15184
+ {
15185
+ "name": "user",
15186
+ "description": "The user who owns this payment method.",
15187
+ "args": [],
15188
+ "type": {
15189
+ "kind": "NON_NULL",
15190
+ "name": null,
15191
+ "ofType": {
15192
+ "kind": "OBJECT",
15193
+ "name": "User",
15194
+ "ofType": null
15195
+ }
15196
+ },
15197
+ "isDeprecated": false,
15198
+ "deprecationReason": null
15199
+ }
15200
+ ],
15201
+ "inputFields": null,
15202
+ "interfaces": [],
15203
+ "enumValues": null,
15204
+ "possibleTypes": [
15205
+ {
15206
+ "kind": "OBJECT",
15207
+ "name": "CardPaymentMethod",
15208
+ "ofType": null
15209
+ }
15210
+ ]
15211
+ },
15212
+ {
15213
+ "kind": "INPUT_OBJECT",
15214
+ "name": "PaymentMethodMatchInput",
15215
+ "description": "Specify a saved Payment Method by its ID.",
15216
+ "fields": null,
15217
+ "inputFields": [
15218
+ {
15219
+ "name": "id",
15220
+ "description": "FRAGMENT ID of the Payment Method.",
15221
+ "type": {
15222
+ "kind": "NON_NULL",
15223
+ "name": null,
15224
+ "ofType": {
15225
+ "kind": "SCALAR",
15226
+ "name": "ID",
15227
+ "ofType": null
15228
+ }
15229
+ },
15230
+ "defaultValue": null
15231
+ }
15232
+ ],
15233
+ "interfaces": null,
15234
+ "enumValues": null,
15235
+ "possibleTypes": null
15236
+ },
15237
+ {
15238
+ "kind": "OBJECT",
15239
+ "name": "PaymentMethodSetup",
15240
+ "description": "An attempt to save the Payment Method for a User.",
15241
+ "fields": [
15242
+ {
15243
+ "name": "clientSecret",
15244
+ "description": "The credential to provide to the `<PaymentMethodSetupSession>` component in the Fragment Elements SDK.",
15245
+ "args": [],
15246
+ "type": {
15247
+ "kind": "NON_NULL",
15248
+ "name": null,
15249
+ "ofType": {
15250
+ "kind": "SCALAR",
15251
+ "name": "String",
15252
+ "ofType": null
15253
+ }
15254
+ },
15255
+ "isDeprecated": false,
15256
+ "deprecationReason": null
15257
+ },
15258
+ {
15259
+ "name": "created",
15260
+ "description": "When the Payment Method Setup was created.",
15261
+ "args": [],
15262
+ "type": {
15263
+ "kind": "NON_NULL",
15264
+ "name": null,
15265
+ "ofType": {
15266
+ "kind": "SCALAR",
15267
+ "name": "DateTime",
15268
+ "ofType": null
15269
+ }
15270
+ },
15271
+ "isDeprecated": false,
15272
+ "deprecationReason": null
15273
+ },
15274
+ {
15275
+ "name": "currency",
15276
+ "description": "The currency the saved payment method will be charged in.",
15277
+ "args": [],
15278
+ "type": {
15279
+ "kind": "NON_NULL",
15280
+ "name": null,
15281
+ "ofType": {
15282
+ "kind": "OBJECT",
15283
+ "name": "PaymentCurrency",
15284
+ "ofType": null
15285
+ }
15286
+ },
15287
+ "isDeprecated": false,
15288
+ "deprecationReason": null
15289
+ },
15290
+ {
15291
+ "name": "id",
15292
+ "description": "The Fragment ID of this Payment Method Setup.",
15293
+ "args": [],
15294
+ "type": {
15295
+ "kind": "NON_NULL",
15296
+ "name": null,
15297
+ "ofType": {
15298
+ "kind": "SCALAR",
15299
+ "name": "ID",
15300
+ "ofType": null
15301
+ }
15302
+ },
15303
+ "isDeprecated": false,
15304
+ "deprecationReason": null
15305
+ },
15306
+ {
15307
+ "name": "ik",
15308
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) the Payment Method Setup was created with.",
15309
+ "args": [],
15310
+ "type": {
15311
+ "kind": "NON_NULL",
15312
+ "name": null,
15313
+ "ofType": {
15314
+ "kind": "SCALAR",
15315
+ "name": "SafeString",
15316
+ "ofType": null
15317
+ }
15318
+ },
15319
+ "isDeprecated": false,
15320
+ "deprecationReason": null
15321
+ },
15322
+ {
15323
+ "name": "mode",
15324
+ "description": "Whether this Payment Method Setup was created in sandbox or production.",
15325
+ "args": [],
15326
+ "type": {
15327
+ "kind": "NON_NULL",
15328
+ "name": null,
15329
+ "ofType": {
15330
+ "kind": "ENUM",
15331
+ "name": "PaymentMode",
15332
+ "ofType": null
15333
+ }
15334
+ },
15335
+ "isDeprecated": false,
15336
+ "deprecationReason": null
15337
+ },
15338
+ {
15339
+ "name": "paymentMethod",
15340
+ "description": "The Payment Method this setup saved, once its status is `saved`.",
15341
+ "args": [],
15342
+ "type": {
15343
+ "kind": "INTERFACE",
15344
+ "name": "PaymentMethod",
15345
+ "ofType": null
15346
+ },
15347
+ "isDeprecated": false,
15348
+ "deprecationReason": null
15349
+ },
15350
+ {
15351
+ "name": "status",
15352
+ "description": "The status of this Payment Method Setup.",
15353
+ "args": [],
15354
+ "type": {
15355
+ "kind": "NON_NULL",
15356
+ "name": null,
15357
+ "ofType": {
15358
+ "kind": "ENUM",
15359
+ "name": "PaymentMethodSetupStatus",
15360
+ "ofType": null
15361
+ }
15362
+ },
15363
+ "isDeprecated": false,
15364
+ "deprecationReason": null
15365
+ }
15366
+ ],
15367
+ "inputFields": null,
15368
+ "interfaces": [],
15369
+ "enumValues": null,
15370
+ "possibleTypes": null
15371
+ },
15372
+ {
15373
+ "kind": "INPUT_OBJECT",
15374
+ "name": "PaymentMethodSetupMatchInput",
15375
+ "description": "Specify a Payment Method Setup by using `id`, or `ik` and `ledger`, or all three when they name the same Payment Method Setup.",
15376
+ "fields": null,
15377
+ "inputFields": [
15378
+ {
15379
+ "name": "id",
15380
+ "description": "The FRAGMENT ID of the Payment Method Setup.",
15381
+ "type": {
15382
+ "kind": "SCALAR",
15383
+ "name": "ID",
15384
+ "ofType": null
15385
+ },
15386
+ "defaultValue": null
15387
+ },
15388
+ {
15389
+ "name": "ik",
15390
+ "description": "The IK passed to `createPaymentMethodSetup`. Required if you have not provided `id`.",
15391
+ "type": {
15392
+ "kind": "SCALAR",
15393
+ "name": "SafeString",
15394
+ "ofType": null
15395
+ },
15396
+ "defaultValue": null
15397
+ },
15398
+ {
15399
+ "name": "ledger",
15400
+ "description": "The Ledger the Payment Method Setup belongs to. Required if you have not provided `id`.",
15401
+ "type": {
15402
+ "kind": "INPUT_OBJECT",
15403
+ "name": "LedgerMatchInput",
15404
+ "ofType": null
15405
+ },
15406
+ "defaultValue": null
15407
+ }
15408
+ ],
15409
+ "interfaces": null,
15410
+ "enumValues": null,
15411
+ "possibleTypes": null
15412
+ },
15413
+ {
15414
+ "kind": "ENUM",
15415
+ "name": "PaymentMethodSetupStatus",
15416
+ "description": "Status of a Payment Method Setup.",
15417
+ "fields": null,
15418
+ "inputFields": null,
15419
+ "interfaces": null,
15420
+ "enumValues": [
15421
+ {
15422
+ "name": "canceled",
15423
+ "description": null,
15424
+ "isDeprecated": false,
15425
+ "deprecationReason": null
15426
+ },
15427
+ {
15428
+ "name": "needs_action",
15429
+ "description": null,
15430
+ "isDeprecated": false,
15431
+ "deprecationReason": null
15432
+ },
15433
+ {
15434
+ "name": "needs_payment_method",
15435
+ "description": null,
15436
+ "isDeprecated": false,
15437
+ "deprecationReason": null
15438
+ },
15439
+ {
15440
+ "name": "processing",
15441
+ "description": null,
15442
+ "isDeprecated": false,
15443
+ "deprecationReason": null
15444
+ },
15445
+ {
15446
+ "name": "saved",
15447
+ "description": null,
15448
+ "isDeprecated": false,
15449
+ "deprecationReason": null
15450
+ }
15451
+ ],
15452
+ "possibleTypes": null
15453
+ },
15454
+ {
15455
+ "kind": "OBJECT",
15456
+ "name": "PaymentMethodsConnection",
15457
+ "description": "A list of Payment Methods, all in one page.",
15458
+ "fields": [
15459
+ {
15460
+ "name": "nodes",
15461
+ "description": "Every Payment Method in the list.",
15462
+ "args": [],
15463
+ "type": {
15464
+ "kind": "NON_NULL",
15465
+ "name": null,
15466
+ "ofType": {
15467
+ "kind": "LIST",
15468
+ "name": null,
15469
+ "ofType": {
15470
+ "kind": "NON_NULL",
15471
+ "name": null,
15472
+ "ofType": {
15473
+ "kind": "INTERFACE",
15474
+ "name": "PaymentMethod",
15475
+ "ofType": null
15476
+ }
15477
+ }
15478
+ }
15479
+ },
15480
+ "isDeprecated": false,
15481
+ "deprecationReason": null
15482
+ },
15483
+ {
15484
+ "name": "pageInfo",
15485
+ "description": "The pagination info for this list. It never reports another page.",
15486
+ "args": [],
15487
+ "type": {
15488
+ "kind": "NON_NULL",
15489
+ "name": null,
15490
+ "ofType": {
15491
+ "kind": "OBJECT",
15492
+ "name": "PageInfo",
15493
+ "ofType": null
15494
+ }
15495
+ },
15496
+ "isDeprecated": false,
15497
+ "deprecationReason": null
15498
+ }
15499
+ ],
15500
+ "inputFields": null,
15501
+ "interfaces": [],
15502
+ "enumValues": null,
15503
+ "possibleTypes": null
15504
+ },
15505
+ {
15506
+ "kind": "INPUT_OBJECT",
15507
+ "name": "PaymentMethodsFilterSet",
15508
+ "description": "Filter the list of saved Payment Methods returned.",
15509
+ "fields": null,
15510
+ "inputFields": [
15511
+ {
15512
+ "name": "user",
15513
+ "description": "Filter by the User the Payment Method belongs to.",
15514
+ "type": {
15515
+ "kind": "NON_NULL",
15516
+ "name": null,
15517
+ "ofType": {
15518
+ "kind": "INPUT_OBJECT",
15519
+ "name": "UserFilter",
15520
+ "ofType": null
15521
+ }
15522
+ },
15523
+ "defaultValue": null
15524
+ }
15525
+ ],
15526
+ "interfaces": null,
15527
+ "enumValues": null,
15528
+ "possibleTypes": null
15529
+ },
15530
+ {
15531
+ "kind": "ENUM",
15532
+ "name": "PaymentMode",
15533
+ "description": "Mode of a Payment.",
15534
+ "fields": null,
15535
+ "inputFields": null,
15536
+ "interfaces": null,
15537
+ "enumValues": [
15538
+ {
15539
+ "name": "production",
15540
+ "description": null,
15541
+ "isDeprecated": false,
15542
+ "deprecationReason": null
15543
+ },
15544
+ {
15545
+ "name": "sandbox",
15546
+ "description": null,
15547
+ "isDeprecated": false,
15548
+ "deprecationReason": null
15549
+ }
15550
+ ],
15551
+ "possibleTypes": null
15552
+ },
15553
+ {
15554
+ "kind": "OBJECT",
15555
+ "name": "PaymentRefund",
15556
+ "description": "A refund issued against a Payment.",
15557
+ "fields": [
15558
+ {
15559
+ "name": "amount",
15560
+ "description": "The amount of this Payment Refund, in whole cents.",
15561
+ "args": [],
15562
+ "type": {
15563
+ "kind": "NON_NULL",
15564
+ "name": null,
15565
+ "ofType": {
15566
+ "kind": "SCALAR",
15567
+ "name": "Int96",
15568
+ "ofType": null
15569
+ }
15570
+ },
15571
+ "isDeprecated": false,
15572
+ "deprecationReason": null
15573
+ },
15574
+ {
15575
+ "name": "created",
15576
+ "description": "When this Payment Refund was created.",
14476
15577
  "args": [],
14477
15578
  "type": {
14478
15579
  "kind": "NON_NULL",
@@ -14488,14 +15589,266 @@
14488
15589
  },
14489
15590
  {
14490
15591
  "name": "id",
14491
- "description": "FRAGMENT ID of the saved Payment Method.",
15592
+ "description": "The ID of this Payment Refund.",
15593
+ "args": [],
15594
+ "type": {
15595
+ "kind": "NON_NULL",
15596
+ "name": null,
15597
+ "ofType": {
15598
+ "kind": "SCALAR",
15599
+ "name": "ID",
15600
+ "ofType": null
15601
+ }
15602
+ },
15603
+ "isDeprecated": false,
15604
+ "deprecationReason": null
15605
+ },
15606
+ {
15607
+ "name": "ik",
15608
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) the Payment Refund was created with.",
15609
+ "args": [],
15610
+ "type": {
15611
+ "kind": "NON_NULL",
15612
+ "name": null,
15613
+ "ofType": {
15614
+ "kind": "SCALAR",
15615
+ "name": "SafeString",
15616
+ "ofType": null
15617
+ }
15618
+ },
15619
+ "isDeprecated": false,
15620
+ "deprecationReason": null
15621
+ },
15622
+ {
15623
+ "name": "status",
15624
+ "description": "The status of this Payment Refund.",
15625
+ "args": [],
15626
+ "type": {
15627
+ "kind": "NON_NULL",
15628
+ "name": null,
15629
+ "ofType": {
15630
+ "kind": "ENUM",
15631
+ "name": "PaymentRefundStatus",
15632
+ "ofType": null
15633
+ }
15634
+ },
15635
+ "isDeprecated": false,
15636
+ "deprecationReason": null
15637
+ }
15638
+ ],
15639
+ "inputFields": null,
15640
+ "interfaces": [],
15641
+ "enumValues": null,
15642
+ "possibleTypes": null
15643
+ },
15644
+ {
15645
+ "kind": "OBJECT",
15646
+ "name": "PaymentRefundFailedEvent",
15647
+ "description": "A refund against the Payment failed.",
15648
+ "fields": [
15649
+ {
15650
+ "name": "id",
15651
+ "description": "The ID of this Payment event.",
15652
+ "args": [],
15653
+ "type": {
15654
+ "kind": "NON_NULL",
15655
+ "name": null,
15656
+ "ofType": {
15657
+ "kind": "SCALAR",
15658
+ "name": "ID",
15659
+ "ofType": null
15660
+ }
15661
+ },
15662
+ "isDeprecated": false,
15663
+ "deprecationReason": null
15664
+ },
15665
+ {
15666
+ "name": "ledgerEntry",
15667
+ "description": "The refund reversal's Ledger Entry.",
15668
+ "args": [],
15669
+ "type": {
15670
+ "kind": "NON_NULL",
15671
+ "name": null,
15672
+ "ofType": {
15673
+ "kind": "OBJECT",
15674
+ "name": "LedgerEntry",
15675
+ "ofType": null
15676
+ }
15677
+ },
15678
+ "isDeprecated": false,
15679
+ "deprecationReason": null
15680
+ },
15681
+ {
15682
+ "name": "occurredAt",
15683
+ "description": "When this event occurred.",
15684
+ "args": [],
15685
+ "type": {
15686
+ "kind": "NON_NULL",
15687
+ "name": null,
15688
+ "ofType": {
15689
+ "kind": "SCALAR",
15690
+ "name": "DateTime",
15691
+ "ofType": null
15692
+ }
15693
+ },
15694
+ "isDeprecated": false,
15695
+ "deprecationReason": null
15696
+ },
15697
+ {
15698
+ "name": "paymentStatus",
15699
+ "description": "The status of the Payment after this event.",
15700
+ "args": [],
15701
+ "type": {
15702
+ "kind": "NON_NULL",
15703
+ "name": null,
15704
+ "ofType": {
15705
+ "kind": "ENUM",
15706
+ "name": "PaymentStatus",
15707
+ "ofType": null
15708
+ }
15709
+ },
15710
+ "isDeprecated": false,
15711
+ "deprecationReason": null
15712
+ },
15713
+ {
15714
+ "name": "refund",
15715
+ "description": "The Payment Refund this event describes.",
15716
+ "args": [],
15717
+ "type": {
15718
+ "kind": "NON_NULL",
15719
+ "name": null,
15720
+ "ofType": {
15721
+ "kind": "OBJECT",
15722
+ "name": "PaymentRefund",
15723
+ "ofType": null
15724
+ }
15725
+ },
15726
+ "isDeprecated": false,
15727
+ "deprecationReason": null
15728
+ },
15729
+ {
15730
+ "name": "refundStatus",
15731
+ "description": "The status of the refund after this event. Always `failed`.",
15732
+ "args": [],
15733
+ "type": {
15734
+ "kind": "NON_NULL",
15735
+ "name": null,
15736
+ "ofType": {
15737
+ "kind": "ENUM",
15738
+ "name": "PaymentRefundStatus",
15739
+ "ofType": null
15740
+ }
15741
+ },
15742
+ "isDeprecated": false,
15743
+ "deprecationReason": null
15744
+ },
15745
+ {
15746
+ "name": "status",
15747
+ "description": "The status of the Payment after this event.",
15748
+ "args": [],
15749
+ "type": {
15750
+ "kind": "NON_NULL",
15751
+ "name": null,
15752
+ "ofType": {
15753
+ "kind": "ENUM",
15754
+ "name": "PaymentStatus",
15755
+ "ofType": null
15756
+ }
15757
+ },
15758
+ "isDeprecated": true,
15759
+ "deprecationReason": "Use `paymentStatus` on each event type."
15760
+ }
15761
+ ],
15762
+ "inputFields": null,
15763
+ "interfaces": [
15764
+ {
15765
+ "kind": "INTERFACE",
15766
+ "name": "PaymentEvent",
15767
+ "ofType": null
15768
+ }
15769
+ ],
15770
+ "enumValues": null,
15771
+ "possibleTypes": null
15772
+ },
15773
+ {
15774
+ "kind": "OBJECT",
15775
+ "name": "PaymentRefundInitiatedEvent",
15776
+ "description": "A refund was initiated against the Payment.",
15777
+ "fields": [
15778
+ {
15779
+ "name": "id",
15780
+ "description": "The ID of this Payment event.",
15781
+ "args": [],
15782
+ "type": {
15783
+ "kind": "NON_NULL",
15784
+ "name": null,
15785
+ "ofType": {
15786
+ "kind": "SCALAR",
15787
+ "name": "ID",
15788
+ "ofType": null
15789
+ }
15790
+ },
15791
+ "isDeprecated": false,
15792
+ "deprecationReason": null
15793
+ },
15794
+ {
15795
+ "name": "ledgerEntry",
15796
+ "description": "The refund's Ledger Entry.",
15797
+ "args": [],
15798
+ "type": {
15799
+ "kind": "NON_NULL",
15800
+ "name": null,
15801
+ "ofType": {
15802
+ "kind": "OBJECT",
15803
+ "name": "LedgerEntry",
15804
+ "ofType": null
15805
+ }
15806
+ },
15807
+ "isDeprecated": false,
15808
+ "deprecationReason": null
15809
+ },
15810
+ {
15811
+ "name": "occurredAt",
15812
+ "description": "When this event occurred.",
15813
+ "args": [],
15814
+ "type": {
15815
+ "kind": "NON_NULL",
15816
+ "name": null,
15817
+ "ofType": {
15818
+ "kind": "SCALAR",
15819
+ "name": "DateTime",
15820
+ "ofType": null
15821
+ }
15822
+ },
15823
+ "isDeprecated": false,
15824
+ "deprecationReason": null
15825
+ },
15826
+ {
15827
+ "name": "paymentStatus",
15828
+ "description": "The status of the Payment after this event.",
15829
+ "args": [],
15830
+ "type": {
15831
+ "kind": "NON_NULL",
15832
+ "name": null,
15833
+ "ofType": {
15834
+ "kind": "ENUM",
15835
+ "name": "PaymentStatus",
15836
+ "ofType": null
15837
+ }
15838
+ },
15839
+ "isDeprecated": false,
15840
+ "deprecationReason": null
15841
+ },
15842
+ {
15843
+ "name": "refund",
15844
+ "description": "The Payment Refund this event describes.",
14492
15845
  "args": [],
14493
15846
  "type": {
14494
15847
  "kind": "NON_NULL",
14495
15848
  "name": null,
14496
15849
  "ofType": {
14497
- "kind": "SCALAR",
14498
- "name": "ID",
15850
+ "kind": "OBJECT",
15851
+ "name": "PaymentRefund",
14499
15852
  "ofType": null
14500
15853
  }
14501
15854
  },
@@ -14503,73 +15856,64 @@
14503
15856
  "deprecationReason": null
14504
15857
  },
14505
15858
  {
14506
- "name": "user",
14507
- "description": "The user who owns this payment method.",
15859
+ "name": "refundStatus",
15860
+ "description": "The status of the refund after this event. Always `processing`.",
14508
15861
  "args": [],
14509
15862
  "type": {
14510
15863
  "kind": "NON_NULL",
14511
15864
  "name": null,
14512
15865
  "ofType": {
14513
- "kind": "OBJECT",
14514
- "name": "User",
15866
+ "kind": "ENUM",
15867
+ "name": "PaymentRefundStatus",
14515
15868
  "ofType": null
14516
15869
  }
14517
15870
  },
14518
15871
  "isDeprecated": false,
14519
15872
  "deprecationReason": null
14520
- }
14521
- ],
14522
- "inputFields": null,
14523
- "interfaces": [],
14524
- "enumValues": null,
14525
- "possibleTypes": [
14526
- {
14527
- "kind": "OBJECT",
14528
- "name": "CardPaymentMethod",
14529
- "ofType": null
14530
- }
14531
- ]
14532
- },
14533
- {
14534
- "kind": "INPUT_OBJECT",
14535
- "name": "PaymentMethodMatchInput",
14536
- "description": "Specify a saved Payment Method by its ID.",
14537
- "fields": null,
14538
- "inputFields": [
15873
+ },
14539
15874
  {
14540
- "name": "id",
14541
- "description": "FRAGMENT ID of the Payment Method.",
15875
+ "name": "status",
15876
+ "description": "The status of the Payment after this event.",
15877
+ "args": [],
14542
15878
  "type": {
14543
15879
  "kind": "NON_NULL",
14544
15880
  "name": null,
14545
15881
  "ofType": {
14546
- "kind": "SCALAR",
14547
- "name": "ID",
15882
+ "kind": "ENUM",
15883
+ "name": "PaymentStatus",
14548
15884
  "ofType": null
14549
15885
  }
14550
15886
  },
14551
- "defaultValue": null
15887
+ "isDeprecated": true,
15888
+ "deprecationReason": "Use `paymentStatus` on each event type."
15889
+ }
15890
+ ],
15891
+ "inputFields": null,
15892
+ "interfaces": [
15893
+ {
15894
+ "kind": "INTERFACE",
15895
+ "name": "PaymentEvent",
15896
+ "ofType": null
14552
15897
  }
14553
15898
  ],
14554
- "interfaces": null,
14555
15899
  "enumValues": null,
14556
15900
  "possibleTypes": null
14557
15901
  },
14558
15902
  {
14559
15903
  "kind": "OBJECT",
14560
- "name": "PaymentMethodSetup",
14561
- "description": "An attempt to save the Payment Method for a User.",
15904
+ "name": "PaymentRefundSettledEvent",
15905
+ "description": "A refund against the Payment settled.",
14562
15906
  "fields": [
14563
15907
  {
14564
- "name": "clientSecret",
14565
- "description": "The credential to provide to the `<PaymentMethodSetupSession>` component in the Fragment Elements SDK.",
15908
+ "name": "id",
15909
+ "description": "The ID of this Payment event.",
14566
15910
  "args": [],
14567
15911
  "type": {
14568
15912
  "kind": "NON_NULL",
14569
15913
  "name": null,
14570
15914
  "ofType": {
14571
15915
  "kind": "SCALAR",
14572
- "name": "String",
15916
+ "name": "ID",
14573
15917
  "ofType": null
14574
15918
  }
14575
15919
  },
@@ -14577,8 +15921,8 @@
14577
15921
  "deprecationReason": null
14578
15922
  },
14579
15923
  {
14580
- "name": "created",
14581
- "description": "When the Payment Method Setup was created.",
15924
+ "name": "occurredAt",
15925
+ "description": "When this event occurred.",
14582
15926
  "args": [],
14583
15927
  "type": {
14584
15928
  "kind": "NON_NULL",
@@ -14593,31 +15937,15 @@
14593
15937
  "deprecationReason": null
14594
15938
  },
14595
15939
  {
14596
- "name": "currency",
14597
- "description": "The currency the saved payment method will be charged in.",
14598
- "args": [],
14599
- "type": {
14600
- "kind": "NON_NULL",
14601
- "name": null,
14602
- "ofType": {
14603
- "kind": "OBJECT",
14604
- "name": "PaymentCurrency",
14605
- "ofType": null
14606
- }
14607
- },
14608
- "isDeprecated": false,
14609
- "deprecationReason": null
14610
- },
14611
- {
14612
- "name": "id",
14613
- "description": "The Fragment ID of this Payment Method Setup.",
15940
+ "name": "paymentStatus",
15941
+ "description": "The status of the Payment after this event.",
14614
15942
  "args": [],
14615
15943
  "type": {
14616
15944
  "kind": "NON_NULL",
14617
15945
  "name": null,
14618
15946
  "ofType": {
14619
- "kind": "SCALAR",
14620
- "name": "ID",
15947
+ "kind": "ENUM",
15948
+ "name": "PaymentStatus",
14621
15949
  "ofType": null
14622
15950
  }
14623
15951
  },
@@ -14625,15 +15953,15 @@
14625
15953
  "deprecationReason": null
14626
15954
  },
14627
15955
  {
14628
- "name": "ik",
14629
- "description": "The [Idempotency Key](https://fragment.dev/api-reference/api-overview#idempotency) the Payment Method Setup was created with.",
15956
+ "name": "refund",
15957
+ "description": "The Payment Refund this event describes.",
14630
15958
  "args": [],
14631
15959
  "type": {
14632
15960
  "kind": "NON_NULL",
14633
15961
  "name": null,
14634
15962
  "ofType": {
14635
- "kind": "SCALAR",
14636
- "name": "SafeString",
15963
+ "kind": "OBJECT",
15964
+ "name": "PaymentRefund",
14637
15965
  "ofType": null
14638
15966
  }
14639
15967
  },
@@ -14641,118 +15969,59 @@
14641
15969
  "deprecationReason": null
14642
15970
  },
14643
15971
  {
14644
- "name": "mode",
14645
- "description": "Whether this Payment Method Setup was created in sandbox or production.",
15972
+ "name": "refundStatus",
15973
+ "description": "The status of the refund after this event. Always `settled`.",
14646
15974
  "args": [],
14647
15975
  "type": {
14648
15976
  "kind": "NON_NULL",
14649
15977
  "name": null,
14650
15978
  "ofType": {
14651
15979
  "kind": "ENUM",
14652
- "name": "PaymentMode",
15980
+ "name": "PaymentRefundStatus",
14653
15981
  "ofType": null
14654
15982
  }
14655
15983
  },
14656
15984
  "isDeprecated": false,
14657
15985
  "deprecationReason": null
14658
15986
  },
14659
- {
14660
- "name": "paymentMethod",
14661
- "description": "The Payment Method this setup saved, once its status is `saved`.",
14662
- "args": [],
14663
- "type": {
14664
- "kind": "INTERFACE",
14665
- "name": "PaymentMethod",
14666
- "ofType": null
14667
- },
14668
- "isDeprecated": false,
14669
- "deprecationReason": null
14670
- },
14671
15987
  {
14672
15988
  "name": "status",
14673
- "description": "The status of this Payment Method Setup.",
15989
+ "description": "The status of the Payment after this event.",
14674
15990
  "args": [],
14675
15991
  "type": {
14676
15992
  "kind": "NON_NULL",
14677
15993
  "name": null,
14678
15994
  "ofType": {
14679
15995
  "kind": "ENUM",
14680
- "name": "PaymentMethodSetupStatus",
15996
+ "name": "PaymentStatus",
14681
15997
  "ofType": null
14682
15998
  }
14683
15999
  },
14684
- "isDeprecated": false,
14685
- "deprecationReason": null
16000
+ "isDeprecated": true,
16001
+ "deprecationReason": "Use `paymentStatus` on each event type."
14686
16002
  }
14687
16003
  ],
14688
16004
  "inputFields": null,
14689
- "interfaces": [],
14690
- "enumValues": null,
14691
- "possibleTypes": null
14692
- },
14693
- {
14694
- "kind": "INPUT_OBJECT",
14695
- "name": "PaymentMethodSetupMatchInput",
14696
- "description": "Specify a Payment Method Setup by using `id`, or `ik` and `ledger`, or all three when they name the same Payment Method Setup.",
14697
- "fields": null,
14698
- "inputFields": [
14699
- {
14700
- "name": "id",
14701
- "description": "The FRAGMENT ID of the Payment Method Setup.",
14702
- "type": {
14703
- "kind": "SCALAR",
14704
- "name": "ID",
14705
- "ofType": null
14706
- },
14707
- "defaultValue": null
14708
- },
14709
- {
14710
- "name": "ik",
14711
- "description": "The IK passed to `createPaymentMethodSetup`. Required if you have not provided `id`.",
14712
- "type": {
14713
- "kind": "SCALAR",
14714
- "name": "SafeString",
14715
- "ofType": null
14716
- },
14717
- "defaultValue": null
14718
- },
16005
+ "interfaces": [
14719
16006
  {
14720
- "name": "ledger",
14721
- "description": "The Ledger the Payment Method Setup belongs to. Required if you have not provided `id`.",
14722
- "type": {
14723
- "kind": "INPUT_OBJECT",
14724
- "name": "LedgerMatchInput",
14725
- "ofType": null
14726
- },
14727
- "defaultValue": null
16007
+ "kind": "INTERFACE",
16008
+ "name": "PaymentEvent",
16009
+ "ofType": null
14728
16010
  }
14729
16011
  ],
14730
- "interfaces": null,
14731
16012
  "enumValues": null,
14732
16013
  "possibleTypes": null
14733
16014
  },
14734
16015
  {
14735
16016
  "kind": "ENUM",
14736
- "name": "PaymentMethodSetupStatus",
14737
- "description": "Status of a Payment Method Setup.",
16017
+ "name": "PaymentRefundStatus",
16018
+ "description": "Status of a Payment refund.",
14738
16019
  "fields": null,
14739
16020
  "inputFields": null,
14740
16021
  "interfaces": null,
14741
16022
  "enumValues": [
14742
16023
  {
14743
- "name": "canceled",
14744
- "description": null,
14745
- "isDeprecated": false,
14746
- "deprecationReason": null
14747
- },
14748
- {
14749
- "name": "needs_action",
14750
- "description": null,
14751
- "isDeprecated": false,
14752
- "deprecationReason": null
14753
- },
14754
- {
14755
- "name": "needs_payment_method",
16024
+ "name": "failed",
14756
16025
  "description": null,
14757
16026
  "isDeprecated": false,
14758
16027
  "deprecationReason": null
@@ -14764,7 +16033,7 @@
14764
16033
  "deprecationReason": null
14765
16034
  },
14766
16035
  {
14767
- "name": "saved",
16036
+ "name": "settled",
14768
16037
  "description": null,
14769
16038
  "isDeprecated": false,
14770
16039
  "deprecationReason": null
@@ -14774,12 +16043,12 @@
14774
16043
  },
14775
16044
  {
14776
16045
  "kind": "OBJECT",
14777
- "name": "PaymentMethodsConnection",
14778
- "description": "A list of Payment Methods, all in one page.",
16046
+ "name": "PaymentRefundsConnection",
16047
+ "description": "A paginated list of Payment refunds.",
14779
16048
  "fields": [
14780
16049
  {
14781
16050
  "name": "nodes",
14782
- "description": "Every Payment Method in the list.",
16051
+ "description": "The current page of results.",
14783
16052
  "args": [],
14784
16053
  "type": {
14785
16054
  "kind": "NON_NULL",
@@ -14791,8 +16060,8 @@
14791
16060
  "kind": "NON_NULL",
14792
16061
  "name": null,
14793
16062
  "ofType": {
14794
- "kind": "INTERFACE",
14795
- "name": "PaymentMethod",
16063
+ "kind": "OBJECT",
16064
+ "name": "PaymentRefund",
14796
16065
  "ofType": null
14797
16066
  }
14798
16067
  }
@@ -14803,7 +16072,7 @@
14803
16072
  },
14804
16073
  {
14805
16074
  "name": "pageInfo",
14806
- "description": "The pagination info for this list. It never reports another page.",
16075
+ "description": "The pagination info for this list.",
14807
16076
  "args": [],
14808
16077
  "type": {
14809
16078
  "kind": "NON_NULL",
@@ -14824,51 +16093,116 @@
14824
16093
  "possibleTypes": null
14825
16094
  },
14826
16095
  {
14827
- "kind": "INPUT_OBJECT",
14828
- "name": "PaymentMethodsFilterSet",
14829
- "description": "Filter the list of saved Payment Methods returned.",
14830
- "fields": null,
14831
- "inputFields": [
16096
+ "kind": "OBJECT",
16097
+ "name": "PaymentRetryEvent",
16098
+ "description": "The Customer retried the Payment on a saved payment method.",
16099
+ "fields": [
16100
+ {
16101
+ "name": "attempt",
16102
+ "description": "The attempt the Retry started.",
16103
+ "args": [],
16104
+ "type": {
16105
+ "kind": "NON_NULL",
16106
+ "name": null,
16107
+ "ofType": {
16108
+ "kind": "OBJECT",
16109
+ "name": "SavedPaymentMethodPaymentAttempt",
16110
+ "ofType": null
16111
+ }
16112
+ },
16113
+ "isDeprecated": false,
16114
+ "deprecationReason": null
16115
+ },
16116
+ {
16117
+ "name": "attemptStatus",
16118
+ "description": "The status of the attempt after this event. Always `processing`.",
16119
+ "args": [],
16120
+ "type": {
16121
+ "kind": "NON_NULL",
16122
+ "name": null,
16123
+ "ofType": {
16124
+ "kind": "ENUM",
16125
+ "name": "PaymentAttemptStatus",
16126
+ "ofType": null
16127
+ }
16128
+ },
16129
+ "isDeprecated": false,
16130
+ "deprecationReason": null
16131
+ },
16132
+ {
16133
+ "name": "id",
16134
+ "description": "The ID of this Payment event.",
16135
+ "args": [],
16136
+ "type": {
16137
+ "kind": "NON_NULL",
16138
+ "name": null,
16139
+ "ofType": {
16140
+ "kind": "SCALAR",
16141
+ "name": "ID",
16142
+ "ofType": null
16143
+ }
16144
+ },
16145
+ "isDeprecated": false,
16146
+ "deprecationReason": null
16147
+ },
16148
+ {
16149
+ "name": "occurredAt",
16150
+ "description": "When this event occurred.",
16151
+ "args": [],
16152
+ "type": {
16153
+ "kind": "NON_NULL",
16154
+ "name": null,
16155
+ "ofType": {
16156
+ "kind": "SCALAR",
16157
+ "name": "DateTime",
16158
+ "ofType": null
16159
+ }
16160
+ },
16161
+ "isDeprecated": false,
16162
+ "deprecationReason": null
16163
+ },
16164
+ {
16165
+ "name": "paymentStatus",
16166
+ "description": "The status of the Payment after this event. Always `processing`.",
16167
+ "args": [],
16168
+ "type": {
16169
+ "kind": "NON_NULL",
16170
+ "name": null,
16171
+ "ofType": {
16172
+ "kind": "ENUM",
16173
+ "name": "PaymentStatus",
16174
+ "ofType": null
16175
+ }
16176
+ },
16177
+ "isDeprecated": false,
16178
+ "deprecationReason": null
16179
+ },
14832
16180
  {
14833
- "name": "user",
14834
- "description": "Filter by the User the Payment Method belongs to.",
16181
+ "name": "status",
16182
+ "description": "The status of the Payment after this event.",
16183
+ "args": [],
14835
16184
  "type": {
14836
16185
  "kind": "NON_NULL",
14837
16186
  "name": null,
14838
16187
  "ofType": {
14839
- "kind": "INPUT_OBJECT",
14840
- "name": "UserFilter",
16188
+ "kind": "ENUM",
16189
+ "name": "PaymentStatus",
14841
16190
  "ofType": null
14842
16191
  }
14843
16192
  },
14844
- "defaultValue": null
16193
+ "isDeprecated": true,
16194
+ "deprecationReason": "Use `paymentStatus` on each event type."
14845
16195
  }
14846
16196
  ],
14847
- "interfaces": null,
14848
- "enumValues": null,
14849
- "possibleTypes": null
14850
- },
14851
- {
14852
- "kind": "ENUM",
14853
- "name": "PaymentMode",
14854
- "description": "Mode of a Payment.",
14855
- "fields": null,
14856
16197
  "inputFields": null,
14857
- "interfaces": null,
14858
- "enumValues": [
14859
- {
14860
- "name": "production",
14861
- "description": null,
14862
- "isDeprecated": false,
14863
- "deprecationReason": null
14864
- },
16198
+ "interfaces": [
14865
16199
  {
14866
- "name": "sandbox",
14867
- "description": null,
14868
- "isDeprecated": false,
14869
- "deprecationReason": null
16200
+ "kind": "INTERFACE",
16201
+ "name": "PaymentEvent",
16202
+ "ofType": null
14870
16203
  }
14871
16204
  ],
16205
+ "enumValues": null,
14872
16206
  "possibleTypes": null
14873
16207
  },
14874
16208
  {
@@ -14925,8 +16259,8 @@
14925
16259
  "deprecationReason": null
14926
16260
  },
14927
16261
  {
14928
- "name": "status",
14929
- "description": "The status of the Payment after this event.",
16262
+ "name": "paymentStatus",
16263
+ "description": "The status of the Payment after this event. Always `settled`.",
14930
16264
  "args": [],
14931
16265
  "type": {
14932
16266
  "kind": "NON_NULL",
@@ -14939,6 +16273,22 @@
14939
16273
  },
14940
16274
  "isDeprecated": false,
14941
16275
  "deprecationReason": null
16276
+ },
16277
+ {
16278
+ "name": "status",
16279
+ "description": "The status of the Payment after this event.",
16280
+ "args": [],
16281
+ "type": {
16282
+ "kind": "NON_NULL",
16283
+ "name": null,
16284
+ "ofType": {
16285
+ "kind": "ENUM",
16286
+ "name": "PaymentStatus",
16287
+ "ofType": null
16288
+ }
16289
+ },
16290
+ "isDeprecated": true,
16291
+ "deprecationReason": "Use `paymentStatus` on each event type."
14942
16292
  }
14943
16293
  ],
14944
16294
  "inputFields": null,
@@ -15579,7 +16929,7 @@
15579
16929
  },
15580
16930
  {
15581
16931
  "name": "payment",
15582
- "description": "Get a single Payment by its Idempotency Key.",
16932
+ "description": "Get a single Payment by its ID or Idempotency Key in a Ledger.",
15583
16933
  "args": [
15584
16934
  {
15585
16935
  "name": "payment",
@@ -15818,43 +17168,232 @@
15818
17168
  "deprecationReason": null
15819
17169
  },
15820
17170
  {
15821
- "name": "tx",
15822
- "description": "Get a Tx by ID",
15823
- "args": [
15824
- {
15825
- "name": "tx",
15826
- "description": "The transaction you're querying. You can specify either:\n- The FRAGMENT ID of the transaction (id)\n- The external system's transaction ID (externalId) and FRAGMENT ID of the external account (accountId)\n- The external system's transaction ID (externalId), the external system's account ID (externalAccountId) and FRAGMENT ID of the Link (linkId)",
15827
- "type": {
15828
- "kind": "NON_NULL",
15829
- "name": null,
15830
- "ofType": {
15831
- "kind": "INPUT_OBJECT",
15832
- "name": "TxMatchInput",
15833
- "ofType": null
15834
- }
15835
- },
15836
- "defaultValue": null
15837
- }
15838
- ],
17171
+ "name": "tx",
17172
+ "description": "Get a Tx by ID",
17173
+ "args": [
17174
+ {
17175
+ "name": "tx",
17176
+ "description": "The transaction you're querying. You can specify either:\n- The FRAGMENT ID of the transaction (id)\n- The external system's transaction ID (externalId) and FRAGMENT ID of the external account (accountId)\n- The external system's transaction ID (externalId), the external system's account ID (externalAccountId) and FRAGMENT ID of the Link (linkId)",
17177
+ "type": {
17178
+ "kind": "NON_NULL",
17179
+ "name": null,
17180
+ "ofType": {
17181
+ "kind": "INPUT_OBJECT",
17182
+ "name": "TxMatchInput",
17183
+ "ofType": null
17184
+ }
17185
+ },
17186
+ "defaultValue": null
17187
+ }
17188
+ ],
17189
+ "type": {
17190
+ "kind": "OBJECT",
17191
+ "name": "Tx",
17192
+ "ofType": null
17193
+ },
17194
+ "isDeprecated": false,
17195
+ "deprecationReason": null
17196
+ },
17197
+ {
17198
+ "name": "workspace",
17199
+ "description": "Get the current Workspace",
17200
+ "args": [],
17201
+ "type": {
17202
+ "kind": "NON_NULL",
17203
+ "name": null,
17204
+ "ofType": {
17205
+ "kind": "OBJECT",
17206
+ "name": "Workspace",
17207
+ "ofType": null
17208
+ }
17209
+ },
17210
+ "isDeprecated": false,
17211
+ "deprecationReason": null
17212
+ }
17213
+ ],
17214
+ "inputFields": null,
17215
+ "interfaces": [],
17216
+ "enumValues": null,
17217
+ "possibleTypes": null
17218
+ },
17219
+ {
17220
+ "kind": "ENUM",
17221
+ "name": "ReadBalanceConsistencyMode",
17222
+ "description": "The consistency configuration of a Ledger Account's balance queries. If not provided as an argument to a balance query, the default behavior is to read eventually consistent balances. See [Configure consistency](https://fragment.dev/guides/configure-consistency).",
17223
+ "fields": null,
17224
+ "inputFields": null,
17225
+ "interfaces": null,
17226
+ "enumValues": [
17227
+ {
17228
+ "name": "eventual",
17229
+ "description": "Balance queries will read eventually consistent balances. This is the default behavior if `ReadBalanceConsistencyMode` is not provided as an argument to the balance field. Both Ledger Accounts configured with strongly and eventually consistent balance updates support this enum.",
17230
+ "isDeprecated": false,
17231
+ "deprecationReason": null
17232
+ },
17233
+ {
17234
+ "name": "strong",
17235
+ "description": "Balance queries will read strongly consistent balances. This is only allowed if the Ledger Account's `ownBalanceUpdates` in its `consistencyConfig` is `strong`.",
17236
+ "isDeprecated": false,
17237
+ "deprecationReason": null
17238
+ },
17239
+ {
17240
+ "name": "use_account",
17241
+ "description": "Balance queries will use the value from the Ledger Account's `ownBalanceUpdates` in its `consistencyConfig`.",
17242
+ "isDeprecated": false,
17243
+ "deprecationReason": null
17244
+ }
17245
+ ],
17246
+ "possibleTypes": null
17247
+ },
17248
+ {
17249
+ "kind": "UNION",
17250
+ "name": "ReconcileTxResponse",
17251
+ "description": null,
17252
+ "fields": null,
17253
+ "inputFields": null,
17254
+ "interfaces": null,
17255
+ "enumValues": null,
17256
+ "possibleTypes": [
17257
+ {
17258
+ "kind": "OBJECT",
17259
+ "name": "BadRequestError",
17260
+ "ofType": null
17261
+ },
17262
+ {
17263
+ "kind": "OBJECT",
17264
+ "name": "InternalError",
17265
+ "ofType": null
17266
+ },
17267
+ {
17268
+ "kind": "OBJECT",
17269
+ "name": "ReconcileTxResult",
17270
+ "ofType": null
17271
+ }
17272
+ ]
17273
+ },
17274
+ {
17275
+ "kind": "OBJECT",
17276
+ "name": "ReconcileTxResult",
17277
+ "description": null,
17278
+ "fields": [
17279
+ {
17280
+ "name": "entry",
17281
+ "description": "The ledger entry that was posted",
17282
+ "args": [],
17283
+ "type": {
17284
+ "kind": "NON_NULL",
17285
+ "name": null,
17286
+ "ofType": {
17287
+ "kind": "OBJECT",
17288
+ "name": "LedgerEntry",
17289
+ "ofType": null
17290
+ }
17291
+ },
17292
+ "isDeprecated": false,
17293
+ "deprecationReason": null
17294
+ },
17295
+ {
17296
+ "name": "isIkReplay",
17297
+ "description": "True if this request successfully completed before and the previous response is being returned",
17298
+ "args": [],
17299
+ "type": {
17300
+ "kind": "NON_NULL",
17301
+ "name": null,
17302
+ "ofType": {
17303
+ "kind": "SCALAR",
17304
+ "name": "Boolean",
17305
+ "ofType": null
17306
+ }
17307
+ },
17308
+ "isDeprecated": false,
17309
+ "deprecationReason": null
17310
+ },
17311
+ {
17312
+ "name": "lines",
17313
+ "description": "The ledger lines that were created in that entry",
17314
+ "args": [],
17315
+ "type": {
17316
+ "kind": "NON_NULL",
17317
+ "name": null,
17318
+ "ofType": {
17319
+ "kind": "LIST",
17320
+ "name": null,
17321
+ "ofType": {
17322
+ "kind": "NON_NULL",
17323
+ "name": null,
17324
+ "ofType": {
17325
+ "kind": "OBJECT",
17326
+ "name": "LedgerLine",
17327
+ "ofType": null
17328
+ }
17329
+ }
17330
+ }
17331
+ },
17332
+ "isDeprecated": false,
17333
+ "deprecationReason": null
17334
+ }
17335
+ ],
17336
+ "inputFields": null,
17337
+ "interfaces": [],
17338
+ "enumValues": null,
17339
+ "possibleTypes": null
17340
+ },
17341
+ {
17342
+ "kind": "OBJECT",
17343
+ "name": "ReconciliationReport",
17344
+ "description": "Reconciliation counts grouped by age, measured from endTime.",
17345
+ "fields": [
17346
+ {
17347
+ "name": "endTime",
17348
+ "description": "Time of the request; the exclusive cutoff used to compute interval boundaries.",
17349
+ "args": [],
17350
+ "type": {
17351
+ "kind": "NON_NULL",
17352
+ "name": null,
17353
+ "ofType": {
17354
+ "kind": "SCALAR",
17355
+ "name": "DateTime",
17356
+ "ofType": null
17357
+ }
17358
+ },
17359
+ "isDeprecated": false,
17360
+ "deprecationReason": null
17361
+ },
17362
+ {
17363
+ "name": "granularity",
17364
+ "description": "Unit used to compute interval boundaries.",
17365
+ "args": [],
15839
17366
  "type": {
15840
- "kind": "OBJECT",
15841
- "name": "Tx",
15842
- "ofType": null
17367
+ "kind": "NON_NULL",
17368
+ "name": null,
17369
+ "ofType": {
17370
+ "kind": "ENUM",
17371
+ "name": "Granularity",
17372
+ "ofType": null
17373
+ }
15843
17374
  },
15844
17375
  "isDeprecated": false,
15845
17376
  "deprecationReason": null
15846
17377
  },
15847
17378
  {
15848
- "name": "workspace",
15849
- "description": "Get the current Workspace",
17379
+ "name": "intervals",
17380
+ "description": "Intervals ordered youngest first. The final interval has no lower time bound.",
15850
17381
  "args": [],
15851
17382
  "type": {
15852
17383
  "kind": "NON_NULL",
15853
17384
  "name": null,
15854
17385
  "ofType": {
15855
- "kind": "OBJECT",
15856
- "name": "Workspace",
15857
- "ofType": null
17386
+ "kind": "LIST",
17387
+ "name": null,
17388
+ "ofType": {
17389
+ "kind": "NON_NULL",
17390
+ "name": null,
17391
+ "ofType": {
17392
+ "kind": "OBJECT",
17393
+ "name": "AgingInterval",
17394
+ "ofType": null
17395
+ }
17396
+ }
15858
17397
  }
15859
17398
  },
15860
17399
  "isDeprecated": false,
@@ -15867,37 +17406,43 @@
15867
17406
  "possibleTypes": null
15868
17407
  },
15869
17408
  {
15870
- "kind": "ENUM",
15871
- "name": "ReadBalanceConsistencyMode",
15872
- "description": "The consistency configuration of a Ledger Account's balance queries. If not provided as an argument to a balance query, the default behavior is to read eventually consistent balances. See [Configure consistency](https://fragment.dev/guides/configure-consistency).",
17409
+ "kind": "INPUT_OBJECT",
17410
+ "name": "RefundPaymentInput",
17411
+ "description": "The Payment Refund to create.",
15873
17412
  "fields": null,
15874
- "inputFields": null,
15875
- "interfaces": null,
15876
- "enumValues": [
15877
- {
15878
- "name": "eventual",
15879
- "description": "Balance queries will read eventually consistent balances. This is the default behavior if `ReadBalanceConsistencyMode` is not provided as an argument to the balance field. Both Ledger Accounts configured with strongly and eventually consistent balance updates support this enum.",
15880
- "isDeprecated": false,
15881
- "deprecationReason": null
15882
- },
17413
+ "inputFields": [
15883
17414
  {
15884
- "name": "strong",
15885
- "description": "Balance queries will read strongly consistent balances. This is only allowed if the Ledger Account's `ownBalanceUpdates` in its `consistencyConfig` is `strong`.",
15886
- "isDeprecated": false,
15887
- "deprecationReason": null
17415
+ "name": "amount",
17416
+ "description": "The amount to refund, in whole cents.",
17417
+ "type": {
17418
+ "kind": "NON_NULL",
17419
+ "name": null,
17420
+ "ofType": {
17421
+ "kind": "SCALAR",
17422
+ "name": "Int96",
17423
+ "ofType": null
17424
+ }
17425
+ },
17426
+ "defaultValue": null
15888
17427
  },
15889
17428
  {
15890
- "name": "use_account",
15891
- "description": "Balance queries will use the value from the Ledger Account's `ownBalanceUpdates` in its `consistencyConfig`.",
15892
- "isDeprecated": false,
15893
- "deprecationReason": null
17429
+ "name": "parameters",
17430
+ "description": "Values for the parameters only the refund entries use.",
17431
+ "type": {
17432
+ "kind": "SCALAR",
17433
+ "name": "JSON",
17434
+ "ofType": null
17435
+ },
17436
+ "defaultValue": null
15894
17437
  }
15895
17438
  ],
17439
+ "interfaces": null,
17440
+ "enumValues": null,
15896
17441
  "possibleTypes": null
15897
17442
  },
15898
17443
  {
15899
17444
  "kind": "UNION",
15900
- "name": "ReconcileTxResponse",
17445
+ "name": "RefundPaymentResponse",
15901
17446
  "description": null,
15902
17447
  "fields": null,
15903
17448
  "inputFields": null,
@@ -15916,26 +17461,26 @@
15916
17461
  },
15917
17462
  {
15918
17463
  "kind": "OBJECT",
15919
- "name": "ReconcileTxResult",
17464
+ "name": "RefundPaymentResult",
15920
17465
  "ofType": null
15921
17466
  }
15922
17467
  ]
15923
17468
  },
15924
17469
  {
15925
17470
  "kind": "OBJECT",
15926
- "name": "ReconcileTxResult",
15927
- "description": null,
17471
+ "name": "RefundPaymentResult",
17472
+ "description": "The created Payment Refund.",
15928
17473
  "fields": [
15929
17474
  {
15930
- "name": "entry",
15931
- "description": "The ledger entry that was posted",
17475
+ "name": "isIkReplay",
17476
+ "description": "Whether an earlier call with the same `ik` created this Payment Refund.",
15932
17477
  "args": [],
15933
17478
  "type": {
15934
17479
  "kind": "NON_NULL",
15935
17480
  "name": null,
15936
17481
  "ofType": {
15937
- "kind": "OBJECT",
15938
- "name": "LedgerEntry",
17482
+ "kind": "SCALAR",
17483
+ "name": "Boolean",
15939
17484
  "ofType": null
15940
17485
  }
15941
17486
  },
@@ -15943,15 +17488,15 @@
15943
17488
  "deprecationReason": null
15944
17489
  },
15945
17490
  {
15946
- "name": "isIkReplay",
15947
- "description": "True if this request successfully completed before and the previous response is being returned",
17491
+ "name": "payment",
17492
+ "description": "The Payment after reserving the refund amount.",
15948
17493
  "args": [],
15949
17494
  "type": {
15950
17495
  "kind": "NON_NULL",
15951
17496
  "name": null,
15952
17497
  "ofType": {
15953
- "kind": "SCALAR",
15954
- "name": "Boolean",
17498
+ "kind": "OBJECT",
17499
+ "name": "Payment",
15955
17500
  "ofType": null
15956
17501
  }
15957
17502
  },
@@ -15959,24 +17504,16 @@
15959
17504
  "deprecationReason": null
15960
17505
  },
15961
17506
  {
15962
- "name": "lines",
15963
- "description": "The ledger lines that were created in that entry",
17507
+ "name": "refund",
17508
+ "description": "The created Payment Refund.",
15964
17509
  "args": [],
15965
17510
  "type": {
15966
17511
  "kind": "NON_NULL",
15967
17512
  "name": null,
15968
17513
  "ofType": {
15969
- "kind": "LIST",
15970
- "name": null,
15971
- "ofType": {
15972
- "kind": "NON_NULL",
15973
- "name": null,
15974
- "ofType": {
15975
- "kind": "OBJECT",
15976
- "name": "LedgerLine",
15977
- "ofType": null
15978
- }
15979
- }
17514
+ "kind": "OBJECT",
17515
+ "name": "PaymentRefund",
17516
+ "ofType": null
15980
17517
  }
15981
17518
  },
15982
17519
  "isDeprecated": false,
@@ -15988,21 +17525,47 @@
15988
17525
  "enumValues": null,
15989
17526
  "possibleTypes": null
15990
17527
  },
17528
+ {
17529
+ "kind": "UNION",
17530
+ "name": "RetryPaymentResponse",
17531
+ "description": null,
17532
+ "fields": null,
17533
+ "inputFields": null,
17534
+ "interfaces": null,
17535
+ "enumValues": null,
17536
+ "possibleTypes": [
17537
+ {
17538
+ "kind": "OBJECT",
17539
+ "name": "BadRequestError",
17540
+ "ofType": null
17541
+ },
17542
+ {
17543
+ "kind": "OBJECT",
17544
+ "name": "InternalError",
17545
+ "ofType": null
17546
+ },
17547
+ {
17548
+ "kind": "OBJECT",
17549
+ "name": "RetryPaymentResult",
17550
+ "ofType": null
17551
+ }
17552
+ ]
17553
+ },
15991
17554
  {
15992
17555
  "kind": "OBJECT",
15993
- "name": "ReconciliationReport",
15994
- "description": "Reconciliation counts grouped by age, measured from endTime.",
17556
+ "name": "RetryPaymentResult",
17557
+ "description": "The Payment and the attempt the Retry started.",
15995
17558
  "fields": [
15996
17559
  {
15997
- "name": "endTime",
15998
- "description": "Time of the request; the exclusive cutoff used to compute interval boundaries.",
17560
+ "name": "attempt",
17561
+ "description": "The attempt this `attemptIk` started. Its outcome events name it.",
15999
17562
  "args": [],
16000
17563
  "type": {
16001
17564
  "kind": "NON_NULL",
16002
17565
  "name": null,
16003
17566
  "ofType": {
16004
- "kind": "SCALAR",
16005
- "name": "DateTime",
17567
+ "kind": "OBJECT",
17568
+ "name": "SavedPaymentMethodPaymentAttempt",
16006
17569
  "ofType": null
16007
17570
  }
16008
17571
  },
@@ -16010,15 +17573,15 @@
16010
17573
  "deprecationReason": null
16011
17574
  },
16012
17575
  {
16013
- "name": "granularity",
16014
- "description": "Unit used to compute interval boundaries.",
17576
+ "name": "isIkReplay",
17577
+ "description": "Whether an earlier call with the same `attemptIk` started this attempt.",
16015
17578
  "args": [],
16016
17579
  "type": {
16017
17580
  "kind": "NON_NULL",
16018
17581
  "name": null,
16019
17582
  "ofType": {
16020
- "kind": "ENUM",
16021
- "name": "Granularity",
17583
+ "kind": "SCALAR",
17584
+ "name": "Boolean",
16022
17585
  "ofType": null
16023
17586
  }
16024
17587
  },
@@ -16026,24 +17589,16 @@
16026
17589
  "deprecationReason": null
16027
17590
  },
16028
17591
  {
16029
- "name": "intervals",
16030
- "description": "Intervals ordered youngest first. The final interval has no lower time bound.",
17592
+ "name": "payment",
17593
+ "description": "The retried Payment.",
16031
17594
  "args": [],
16032
17595
  "type": {
16033
17596
  "kind": "NON_NULL",
16034
17597
  "name": null,
16035
17598
  "ofType": {
16036
- "kind": "LIST",
16037
- "name": null,
16038
- "ofType": {
16039
- "kind": "NON_NULL",
16040
- "name": null,
16041
- "ofType": {
16042
- "kind": "OBJECT",
16043
- "name": "AgingInterval",
16044
- "ofType": null
16045
- }
16046
- }
17599
+ "kind": "OBJECT",
17600
+ "name": "Payment",
17601
+ "ofType": null
16047
17602
  }
16048
17603
  },
16049
17604
  "isDeprecated": false,
@@ -16150,6 +17705,55 @@
16150
17705
  "enumValues": null,
16151
17706
  "possibleTypes": null
16152
17707
  },
17708
+ {
17709
+ "kind": "OBJECT",
17710
+ "name": "SavedPaymentMethodPaymentAttempt",
17711
+ "description": "An attempt that charged a saved Payment Method.",
17712
+ "fields": [
17713
+ {
17714
+ "name": "id",
17715
+ "description": "The ID of this Payment attempt.",
17716
+ "args": [],
17717
+ "type": {
17718
+ "kind": "NON_NULL",
17719
+ "name": null,
17720
+ "ofType": {
17721
+ "kind": "SCALAR",
17722
+ "name": "ID",
17723
+ "ofType": null
17724
+ }
17725
+ },
17726
+ "isDeprecated": false,
17727
+ "deprecationReason": null
17728
+ },
17729
+ {
17730
+ "name": "status",
17731
+ "description": "The status of this Payment attempt.",
17732
+ "args": [],
17733
+ "type": {
17734
+ "kind": "NON_NULL",
17735
+ "name": null,
17736
+ "ofType": {
17737
+ "kind": "ENUM",
17738
+ "name": "PaymentAttemptStatus",
17739
+ "ofType": null
17740
+ }
17741
+ },
17742
+ "isDeprecated": false,
17743
+ "deprecationReason": null
17744
+ }
17745
+ ],
17746
+ "inputFields": null,
17747
+ "interfaces": [
17748
+ {
17749
+ "kind": "INTERFACE",
17750
+ "name": "PaymentAttempt",
17751
+ "ofType": null
17752
+ }
17753
+ ],
17754
+ "enumValues": null,
17755
+ "possibleTypes": null
17756
+ },
16153
17757
  {
16154
17758
  "kind": "INPUT_OBJECT",
16155
17759
  "name": "SceneEntryInput",
@@ -17693,6 +19297,18 @@
17693
19297
  "isDeprecated": false,
17694
19298
  "deprecationReason": null
17695
19299
  },
19300
+ {
19301
+ "name": "refund_failed",
19302
+ "description": "EXPERIMENTAL: An initiated refund failed.",
19303
+ "isDeprecated": false,
19304
+ "deprecationReason": null
19305
+ },
19306
+ {
19307
+ "name": "refund_initiated",
19308
+ "description": "EXPERIMENTAL: A refund of the settled payment is initiated.",
19309
+ "isDeprecated": false,
19310
+ "deprecationReason": null
19311
+ },
17696
19312
  {
17697
19313
  "name": "settled",
17698
19314
  "description": "The payment settled.",
@@ -17718,6 +19334,26 @@
17718
19334
  },
17719
19335
  "defaultValue": null
17720
19336
  },
19337
+ {
19338
+ "name": "refund_failed",
19339
+ "description": "EXPERIMENTAL: Posted when an initiated refund fails. Optional.",
19340
+ "type": {
19341
+ "kind": "INPUT_OBJECT",
19342
+ "name": "SchemaPaymentEntryInput",
19343
+ "ofType": null
19344
+ },
19345
+ "defaultValue": null
19346
+ },
19347
+ {
19348
+ "name": "refund_initiated",
19349
+ "description": "EXPERIMENTAL: Posted when a refund of the settled payment is initiated. Optional.",
19350
+ "type": {
19351
+ "kind": "INPUT_OBJECT",
19352
+ "name": "SchemaPaymentEntryInput",
19353
+ "ofType": null
19354
+ },
19355
+ "defaultValue": null
19356
+ },
17721
19357
  {
17722
19358
  "name": "settled",
17723
19359
  "description": "Posted when the payment settles. Every Payment Type must define it.",
@@ -18120,6 +19756,18 @@
18120
19756
  "isDeprecated": false,
18121
19757
  "deprecationReason": null
18122
19758
  },
19759
+ {
19760
+ "name": "payment_refund_line",
19761
+ "description": "The line removing the refund amount from the Payment Account when a Refund is initiated.",
19762
+ "isDeprecated": false,
19763
+ "deprecationReason": null
19764
+ },
19765
+ {
19766
+ "name": "payment_refund_reversal_line",
19767
+ "description": "The line restoring the refund amount to the Payment Account when a Refund fails.",
19768
+ "isDeprecated": false,
19769
+ "deprecationReason": null
19770
+ },
18123
19771
  {
18124
19772
  "name": "payment_settlement_line",
18125
19773
  "description": "The line carrying the settled payment amount, posted to the Payment Account.",