@402flow/sdk 0.1.0-alpha.1

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,1652 @@
1
+ import { z } from 'zod';
2
+ export declare const receiptAuthorizationOutcomeSchema: z.ZodEnum<["allowed"]>;
3
+ export type ReceiptAuthorizationOutcome = z.infer<typeof receiptAuthorizationOutcomeSchema>;
4
+ export declare const settlementEvidenceClassSchema: z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>;
5
+ export type SettlementEvidenceClass = z.infer<typeof settlementEvidenceClassSchema>;
6
+ export declare const fulfillmentStatusSchema: z.ZodEnum<["succeeded", "failed", "inconclusive"]>;
7
+ export type FulfillmentStatus = z.infer<typeof fulfillmentStatusSchema>;
8
+ export declare const paymentProofSourceSchema: z.ZodEnum<["merchant", "local_simulation"]>;
9
+ export type PaymentProofSource = z.infer<typeof paymentProofSourceSchema>;
10
+ export declare const paidRequestProtocolSchema: z.ZodEnum<["x402", "l402"]>;
11
+ export type PaidRequestProtocol = z.infer<typeof paidRequestProtocolSchema>;
12
+ export declare const paidRequestHttpMethodSchema: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
13
+ export type PaidRequestHttpMethod = z.infer<typeof paidRequestHttpMethodSchema>;
14
+ export declare const paidRequestReasonCodeSchema: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
15
+ export type PaidRequestReasonCode = z.infer<typeof paidRequestReasonCodeSchema>;
16
+ export declare const defaultMoneyPrecision = 6;
17
+ export declare const externalIdSchema: z.ZodString;
18
+ export declare const monetaryAmountSchema: z.ZodString;
19
+ export declare const currencyCodeSchema: z.ZodString;
20
+ export declare const moneyUnitSchema: z.ZodLiteral<"minor">;
21
+ export declare function monetaryAmountToMinorUnits(amount: string, precision: number): string;
22
+ export declare const normalizedMoneySchema: z.ZodEffects<z.ZodObject<{
23
+ asset: z.ZodString;
24
+ amount: z.ZodString;
25
+ amountMinor: z.ZodString;
26
+ precision: z.ZodNumber;
27
+ unit: z.ZodLiteral<"minor">;
28
+ }, "strip", z.ZodTypeAny, {
29
+ asset: string;
30
+ amount: string;
31
+ amountMinor: string;
32
+ precision: number;
33
+ unit: "minor";
34
+ }, {
35
+ asset: string;
36
+ amount: string;
37
+ amountMinor: string;
38
+ precision: number;
39
+ unit: "minor";
40
+ }>, {
41
+ asset: string;
42
+ amount: string;
43
+ amountMinor: string;
44
+ precision: number;
45
+ unit: "minor";
46
+ }, {
47
+ asset: string;
48
+ amount: string;
49
+ amountMinor: string;
50
+ precision: number;
51
+ unit: "minor";
52
+ }>;
53
+ export type NormalizedMoney = z.infer<typeof normalizedMoneySchema>;
54
+ export declare const paidRequestContextSchema: z.ZodObject<{
55
+ organization: z.ZodString;
56
+ agent: z.ZodString;
57
+ purpose: z.ZodOptional<z.ZodString>;
58
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ organization: string;
61
+ agent: string;
62
+ purpose?: string | undefined;
63
+ metadata?: Record<string, unknown> | undefined;
64
+ }, {
65
+ organization: string;
66
+ agent: string;
67
+ purpose?: string | undefined;
68
+ metadata?: Record<string, unknown> | undefined;
69
+ }>;
70
+ export type PaidRequestContext = z.infer<typeof paidRequestContextSchema>;
71
+ export declare const paidRequestTargetSchema: z.ZodObject<{
72
+ merchant: z.ZodString;
73
+ paymentRail: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ merchant: string;
76
+ paymentRail: string;
77
+ }, {
78
+ merchant: string;
79
+ paymentRail: string;
80
+ }>;
81
+ export type PaidRequestTarget = z.infer<typeof paidRequestTargetSchema>;
82
+ export declare const paidRequestHttpRequestSchema: z.ZodObject<{
83
+ url: z.ZodString;
84
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
85
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
86
+ body: z.ZodOptional<z.ZodString>;
87
+ bodyHash: z.ZodOptional<z.ZodString>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ url: string;
90
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
91
+ headers?: Record<string, string> | undefined;
92
+ body?: string | undefined;
93
+ bodyHash?: string | undefined;
94
+ }, {
95
+ url: string;
96
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
97
+ headers?: Record<string, string> | undefined;
98
+ body?: string | undefined;
99
+ bodyHash?: string | undefined;
100
+ }>;
101
+ export type PaidRequestHttpRequest = z.infer<typeof paidRequestHttpRequestSchema>;
102
+ export declare const paidRequestChallengeSchema: z.ZodObject<{
103
+ protocol: z.ZodEnum<["x402", "l402"]>;
104
+ money: z.ZodEffects<z.ZodObject<{
105
+ asset: z.ZodString;
106
+ amount: z.ZodString;
107
+ amountMinor: z.ZodString;
108
+ precision: z.ZodNumber;
109
+ unit: z.ZodLiteral<"minor">;
110
+ }, "strip", z.ZodTypeAny, {
111
+ asset: string;
112
+ amount: string;
113
+ amountMinor: string;
114
+ precision: number;
115
+ unit: "minor";
116
+ }, {
117
+ asset: string;
118
+ amount: string;
119
+ amountMinor: string;
120
+ precision: number;
121
+ unit: "minor";
122
+ }>, {
123
+ asset: string;
124
+ amount: string;
125
+ amountMinor: string;
126
+ precision: number;
127
+ unit: "minor";
128
+ }, {
129
+ asset: string;
130
+ amount: string;
131
+ amountMinor: string;
132
+ precision: number;
133
+ unit: "minor";
134
+ }>;
135
+ payee: z.ZodOptional<z.ZodString>;
136
+ memo: z.ZodOptional<z.ZodString>;
137
+ raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ protocol: "x402" | "l402";
140
+ money: {
141
+ asset: string;
142
+ amount: string;
143
+ amountMinor: string;
144
+ precision: number;
145
+ unit: "minor";
146
+ };
147
+ raw: Record<string, unknown>;
148
+ payee?: string | undefined;
149
+ memo?: string | undefined;
150
+ }, {
151
+ protocol: "x402" | "l402";
152
+ money: {
153
+ asset: string;
154
+ amount: string;
155
+ amountMinor: string;
156
+ precision: number;
157
+ unit: "minor";
158
+ };
159
+ payee?: string | undefined;
160
+ memo?: string | undefined;
161
+ raw?: Record<string, unknown> | undefined;
162
+ }>;
163
+ export type PaidRequestChallenge = z.infer<typeof paidRequestChallengeSchema>;
164
+ export declare const sdkPaymentDecisionRequestSchema: z.ZodObject<{
165
+ context: z.ZodObject<{
166
+ organization: z.ZodString;
167
+ agent: z.ZodString;
168
+ purpose: z.ZodOptional<z.ZodString>;
169
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ organization: string;
172
+ agent: string;
173
+ purpose?: string | undefined;
174
+ metadata?: Record<string, unknown> | undefined;
175
+ }, {
176
+ organization: string;
177
+ agent: string;
178
+ purpose?: string | undefined;
179
+ metadata?: Record<string, unknown> | undefined;
180
+ }>;
181
+ target: z.ZodObject<{
182
+ merchant: z.ZodString;
183
+ paymentRail: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ merchant: string;
186
+ paymentRail: string;
187
+ }, {
188
+ merchant: string;
189
+ paymentRail: string;
190
+ }>;
191
+ request: z.ZodObject<{
192
+ url: z.ZodString;
193
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
194
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
195
+ body: z.ZodOptional<z.ZodString>;
196
+ bodyHash: z.ZodOptional<z.ZodString>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ url: string;
199
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
200
+ headers?: Record<string, string> | undefined;
201
+ body?: string | undefined;
202
+ bodyHash?: string | undefined;
203
+ }, {
204
+ url: string;
205
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
206
+ headers?: Record<string, string> | undefined;
207
+ body?: string | undefined;
208
+ bodyHash?: string | undefined;
209
+ }>;
210
+ challenge: z.ZodObject<{
211
+ protocol: z.ZodEnum<["x402", "l402"]>;
212
+ money: z.ZodEffects<z.ZodObject<{
213
+ asset: z.ZodString;
214
+ amount: z.ZodString;
215
+ amountMinor: z.ZodString;
216
+ precision: z.ZodNumber;
217
+ unit: z.ZodLiteral<"minor">;
218
+ }, "strip", z.ZodTypeAny, {
219
+ asset: string;
220
+ amount: string;
221
+ amountMinor: string;
222
+ precision: number;
223
+ unit: "minor";
224
+ }, {
225
+ asset: string;
226
+ amount: string;
227
+ amountMinor: string;
228
+ precision: number;
229
+ unit: "minor";
230
+ }>, {
231
+ asset: string;
232
+ amount: string;
233
+ amountMinor: string;
234
+ precision: number;
235
+ unit: "minor";
236
+ }, {
237
+ asset: string;
238
+ amount: string;
239
+ amountMinor: string;
240
+ precision: number;
241
+ unit: "minor";
242
+ }>;
243
+ payee: z.ZodOptional<z.ZodString>;
244
+ memo: z.ZodOptional<z.ZodString>;
245
+ raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ protocol: "x402" | "l402";
248
+ money: {
249
+ asset: string;
250
+ amount: string;
251
+ amountMinor: string;
252
+ precision: number;
253
+ unit: "minor";
254
+ };
255
+ raw: Record<string, unknown>;
256
+ payee?: string | undefined;
257
+ memo?: string | undefined;
258
+ }, {
259
+ protocol: "x402" | "l402";
260
+ money: {
261
+ asset: string;
262
+ amount: string;
263
+ amountMinor: string;
264
+ precision: number;
265
+ unit: "minor";
266
+ };
267
+ payee?: string | undefined;
268
+ memo?: string | undefined;
269
+ raw?: Record<string, unknown> | undefined;
270
+ }>;
271
+ idempotencyKey: z.ZodOptional<z.ZodString>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ context: {
274
+ organization: string;
275
+ agent: string;
276
+ purpose?: string | undefined;
277
+ metadata?: Record<string, unknown> | undefined;
278
+ };
279
+ target: {
280
+ merchant: string;
281
+ paymentRail: string;
282
+ };
283
+ request: {
284
+ url: string;
285
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
286
+ headers?: Record<string, string> | undefined;
287
+ body?: string | undefined;
288
+ bodyHash?: string | undefined;
289
+ };
290
+ challenge: {
291
+ protocol: "x402" | "l402";
292
+ money: {
293
+ asset: string;
294
+ amount: string;
295
+ amountMinor: string;
296
+ precision: number;
297
+ unit: "minor";
298
+ };
299
+ raw: Record<string, unknown>;
300
+ payee?: string | undefined;
301
+ memo?: string | undefined;
302
+ };
303
+ idempotencyKey?: string | undefined;
304
+ }, {
305
+ context: {
306
+ organization: string;
307
+ agent: string;
308
+ purpose?: string | undefined;
309
+ metadata?: Record<string, unknown> | undefined;
310
+ };
311
+ target: {
312
+ merchant: string;
313
+ paymentRail: string;
314
+ };
315
+ request: {
316
+ url: string;
317
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
318
+ headers?: Record<string, string> | undefined;
319
+ body?: string | undefined;
320
+ bodyHash?: string | undefined;
321
+ };
322
+ challenge: {
323
+ protocol: "x402" | "l402";
324
+ money: {
325
+ asset: string;
326
+ amount: string;
327
+ amountMinor: string;
328
+ precision: number;
329
+ unit: "minor";
330
+ };
331
+ payee?: string | undefined;
332
+ memo?: string | undefined;
333
+ raw?: Record<string, unknown> | undefined;
334
+ };
335
+ idempotencyKey?: string | undefined;
336
+ }>;
337
+ export type SdkPaymentDecisionRequest = z.infer<typeof sdkPaymentDecisionRequestSchema>;
338
+ export declare const sdkReceiptSchema: z.ZodObject<{
339
+ receiptId: z.ZodString;
340
+ paidRequestId: z.ZodString;
341
+ paymentAttemptId: z.ZodString;
342
+ organizationId: z.ZodString;
343
+ agentId: z.ZodString;
344
+ merchantId: z.ZodString;
345
+ protocol: z.ZodEnum<["x402", "l402"]>;
346
+ money: z.ZodEffects<z.ZodObject<{
347
+ asset: z.ZodString;
348
+ amount: z.ZodString;
349
+ amountMinor: z.ZodString;
350
+ precision: z.ZodNumber;
351
+ unit: z.ZodLiteral<"minor">;
352
+ }, "strip", z.ZodTypeAny, {
353
+ asset: string;
354
+ amount: string;
355
+ amountMinor: string;
356
+ precision: number;
357
+ unit: "minor";
358
+ }, {
359
+ asset: string;
360
+ amount: string;
361
+ amountMinor: string;
362
+ precision: number;
363
+ unit: "minor";
364
+ }>, {
365
+ asset: string;
366
+ amount: string;
367
+ amountMinor: string;
368
+ precision: number;
369
+ unit: "minor";
370
+ }, {
371
+ asset: string;
372
+ amount: string;
373
+ amountMinor: string;
374
+ precision: number;
375
+ unit: "minor";
376
+ }>;
377
+ authorizationOutcome: z.ZodEnum<["allowed"]>;
378
+ requestUrl: z.ZodString;
379
+ requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
380
+ paymentReference: z.ZodOptional<z.ZodString>;
381
+ evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
382
+ settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
383
+ settlementIdentifier: z.ZodOptional<z.ZodString>;
384
+ fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
385
+ createdAt: z.ZodString;
386
+ completedAt: z.ZodOptional<z.ZodString>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ protocol: "x402" | "l402";
389
+ money: {
390
+ asset: string;
391
+ amount: string;
392
+ amountMinor: string;
393
+ precision: number;
394
+ unit: "minor";
395
+ };
396
+ receiptId: string;
397
+ paidRequestId: string;
398
+ paymentAttemptId: string;
399
+ organizationId: string;
400
+ agentId: string;
401
+ merchantId: string;
402
+ authorizationOutcome: "allowed";
403
+ requestUrl: string;
404
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
405
+ createdAt: string;
406
+ paymentReference?: string | undefined;
407
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
408
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
409
+ settlementIdentifier?: string | undefined;
410
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
411
+ completedAt?: string | undefined;
412
+ }, {
413
+ protocol: "x402" | "l402";
414
+ money: {
415
+ asset: string;
416
+ amount: string;
417
+ amountMinor: string;
418
+ precision: number;
419
+ unit: "minor";
420
+ };
421
+ receiptId: string;
422
+ paidRequestId: string;
423
+ paymentAttemptId: string;
424
+ organizationId: string;
425
+ agentId: string;
426
+ merchantId: string;
427
+ authorizationOutcome: "allowed";
428
+ requestUrl: string;
429
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
430
+ createdAt: string;
431
+ paymentReference?: string | undefined;
432
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
433
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
434
+ settlementIdentifier?: string | undefined;
435
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
436
+ completedAt?: string | undefined;
437
+ }>;
438
+ export type SdkReceipt = z.infer<typeof sdkReceiptSchema>;
439
+ export declare const sdkMerchantResponseSchema: z.ZodObject<{
440
+ status: z.ZodNumber;
441
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
442
+ body: z.ZodDefault<z.ZodString>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ status: number;
445
+ headers: Record<string, string>;
446
+ body: string;
447
+ }, {
448
+ status: number;
449
+ headers?: Record<string, string> | undefined;
450
+ body?: string | undefined;
451
+ }>;
452
+ export type SdkMerchantResponse = z.infer<typeof sdkMerchantResponseSchema>;
453
+ export declare const sdkPaymentDecisionAllowResponseSchema: z.ZodObject<{
454
+ outcome: z.ZodLiteral<"allow">;
455
+ paidRequestId: z.ZodString;
456
+ paymentAttemptId: z.ZodString;
457
+ reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
458
+ reason: z.ZodString;
459
+ merchantResponse: z.ZodObject<{
460
+ status: z.ZodNumber;
461
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
462
+ body: z.ZodDefault<z.ZodString>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ status: number;
465
+ headers: Record<string, string>;
466
+ body: string;
467
+ }, {
468
+ status: number;
469
+ headers?: Record<string, string> | undefined;
470
+ body?: string | undefined;
471
+ }>;
472
+ receipt: z.ZodObject<{
473
+ receiptId: z.ZodString;
474
+ paidRequestId: z.ZodString;
475
+ paymentAttemptId: z.ZodString;
476
+ organizationId: z.ZodString;
477
+ agentId: z.ZodString;
478
+ merchantId: z.ZodString;
479
+ protocol: z.ZodEnum<["x402", "l402"]>;
480
+ money: z.ZodEffects<z.ZodObject<{
481
+ asset: z.ZodString;
482
+ amount: z.ZodString;
483
+ amountMinor: z.ZodString;
484
+ precision: z.ZodNumber;
485
+ unit: z.ZodLiteral<"minor">;
486
+ }, "strip", z.ZodTypeAny, {
487
+ asset: string;
488
+ amount: string;
489
+ amountMinor: string;
490
+ precision: number;
491
+ unit: "minor";
492
+ }, {
493
+ asset: string;
494
+ amount: string;
495
+ amountMinor: string;
496
+ precision: number;
497
+ unit: "minor";
498
+ }>, {
499
+ asset: string;
500
+ amount: string;
501
+ amountMinor: string;
502
+ precision: number;
503
+ unit: "minor";
504
+ }, {
505
+ asset: string;
506
+ amount: string;
507
+ amountMinor: string;
508
+ precision: number;
509
+ unit: "minor";
510
+ }>;
511
+ authorizationOutcome: z.ZodEnum<["allowed"]>;
512
+ requestUrl: z.ZodString;
513
+ requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
514
+ paymentReference: z.ZodOptional<z.ZodString>;
515
+ evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
516
+ settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
517
+ settlementIdentifier: z.ZodOptional<z.ZodString>;
518
+ fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
519
+ createdAt: z.ZodString;
520
+ completedAt: z.ZodOptional<z.ZodString>;
521
+ }, "strip", z.ZodTypeAny, {
522
+ protocol: "x402" | "l402";
523
+ money: {
524
+ asset: string;
525
+ amount: string;
526
+ amountMinor: string;
527
+ precision: number;
528
+ unit: "minor";
529
+ };
530
+ receiptId: string;
531
+ paidRequestId: string;
532
+ paymentAttemptId: string;
533
+ organizationId: string;
534
+ agentId: string;
535
+ merchantId: string;
536
+ authorizationOutcome: "allowed";
537
+ requestUrl: string;
538
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
539
+ createdAt: string;
540
+ paymentReference?: string | undefined;
541
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
542
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
543
+ settlementIdentifier?: string | undefined;
544
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
545
+ completedAt?: string | undefined;
546
+ }, {
547
+ protocol: "x402" | "l402";
548
+ money: {
549
+ asset: string;
550
+ amount: string;
551
+ amountMinor: string;
552
+ precision: number;
553
+ unit: "minor";
554
+ };
555
+ receiptId: string;
556
+ paidRequestId: string;
557
+ paymentAttemptId: string;
558
+ organizationId: string;
559
+ agentId: string;
560
+ merchantId: string;
561
+ authorizationOutcome: "allowed";
562
+ requestUrl: string;
563
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
564
+ createdAt: string;
565
+ paymentReference?: string | undefined;
566
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
567
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
568
+ settlementIdentifier?: string | undefined;
569
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
570
+ completedAt?: string | undefined;
571
+ }>;
572
+ }, "strip", z.ZodTypeAny, {
573
+ paidRequestId: string;
574
+ paymentAttemptId: string;
575
+ outcome: "allow";
576
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
577
+ reason: string;
578
+ merchantResponse: {
579
+ status: number;
580
+ headers: Record<string, string>;
581
+ body: string;
582
+ };
583
+ receipt: {
584
+ protocol: "x402" | "l402";
585
+ money: {
586
+ asset: string;
587
+ amount: string;
588
+ amountMinor: string;
589
+ precision: number;
590
+ unit: "minor";
591
+ };
592
+ receiptId: string;
593
+ paidRequestId: string;
594
+ paymentAttemptId: string;
595
+ organizationId: string;
596
+ agentId: string;
597
+ merchantId: string;
598
+ authorizationOutcome: "allowed";
599
+ requestUrl: string;
600
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
601
+ createdAt: string;
602
+ paymentReference?: string | undefined;
603
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
604
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
605
+ settlementIdentifier?: string | undefined;
606
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
607
+ completedAt?: string | undefined;
608
+ };
609
+ }, {
610
+ paidRequestId: string;
611
+ paymentAttemptId: string;
612
+ outcome: "allow";
613
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
614
+ reason: string;
615
+ merchantResponse: {
616
+ status: number;
617
+ headers?: Record<string, string> | undefined;
618
+ body?: string | undefined;
619
+ };
620
+ receipt: {
621
+ protocol: "x402" | "l402";
622
+ money: {
623
+ asset: string;
624
+ amount: string;
625
+ amountMinor: string;
626
+ precision: number;
627
+ unit: "minor";
628
+ };
629
+ receiptId: string;
630
+ paidRequestId: string;
631
+ paymentAttemptId: string;
632
+ organizationId: string;
633
+ agentId: string;
634
+ merchantId: string;
635
+ authorizationOutcome: "allowed";
636
+ requestUrl: string;
637
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
638
+ createdAt: string;
639
+ paymentReference?: string | undefined;
640
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
641
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
642
+ settlementIdentifier?: string | undefined;
643
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
644
+ completedAt?: string | undefined;
645
+ };
646
+ }>;
647
+ export declare const sdkPaymentDecisionPaidFulfillmentFailedResponseSchema: z.ZodObject<{
648
+ outcome: z.ZodLiteral<"paid_fulfillment_failed">;
649
+ paidRequestId: z.ZodString;
650
+ paymentAttemptId: z.ZodString;
651
+ reasonCode: z.ZodLiteral<"merchant_rejected">;
652
+ reason: z.ZodString;
653
+ merchantResponse: z.ZodObject<{
654
+ status: z.ZodNumber;
655
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
656
+ body: z.ZodDefault<z.ZodString>;
657
+ }, "strip", z.ZodTypeAny, {
658
+ status: number;
659
+ headers: Record<string, string>;
660
+ body: string;
661
+ }, {
662
+ status: number;
663
+ headers?: Record<string, string> | undefined;
664
+ body?: string | undefined;
665
+ }>;
666
+ settlementEvidenceClass: z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>;
667
+ fulfillmentStatus: z.ZodLiteral<"failed">;
668
+ receipt: z.ZodObject<{
669
+ receiptId: z.ZodString;
670
+ paidRequestId: z.ZodString;
671
+ paymentAttemptId: z.ZodString;
672
+ organizationId: z.ZodString;
673
+ agentId: z.ZodString;
674
+ merchantId: z.ZodString;
675
+ protocol: z.ZodEnum<["x402", "l402"]>;
676
+ money: z.ZodEffects<z.ZodObject<{
677
+ asset: z.ZodString;
678
+ amount: z.ZodString;
679
+ amountMinor: z.ZodString;
680
+ precision: z.ZodNumber;
681
+ unit: z.ZodLiteral<"minor">;
682
+ }, "strip", z.ZodTypeAny, {
683
+ asset: string;
684
+ amount: string;
685
+ amountMinor: string;
686
+ precision: number;
687
+ unit: "minor";
688
+ }, {
689
+ asset: string;
690
+ amount: string;
691
+ amountMinor: string;
692
+ precision: number;
693
+ unit: "minor";
694
+ }>, {
695
+ asset: string;
696
+ amount: string;
697
+ amountMinor: string;
698
+ precision: number;
699
+ unit: "minor";
700
+ }, {
701
+ asset: string;
702
+ amount: string;
703
+ amountMinor: string;
704
+ precision: number;
705
+ unit: "minor";
706
+ }>;
707
+ authorizationOutcome: z.ZodEnum<["allowed"]>;
708
+ requestUrl: z.ZodString;
709
+ requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
710
+ paymentReference: z.ZodOptional<z.ZodString>;
711
+ evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
712
+ settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
713
+ settlementIdentifier: z.ZodOptional<z.ZodString>;
714
+ fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
715
+ createdAt: z.ZodString;
716
+ completedAt: z.ZodOptional<z.ZodString>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ protocol: "x402" | "l402";
719
+ money: {
720
+ asset: string;
721
+ amount: string;
722
+ amountMinor: string;
723
+ precision: number;
724
+ unit: "minor";
725
+ };
726
+ receiptId: string;
727
+ paidRequestId: string;
728
+ paymentAttemptId: string;
729
+ organizationId: string;
730
+ agentId: string;
731
+ merchantId: string;
732
+ authorizationOutcome: "allowed";
733
+ requestUrl: string;
734
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
735
+ createdAt: string;
736
+ paymentReference?: string | undefined;
737
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
738
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
739
+ settlementIdentifier?: string | undefined;
740
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
741
+ completedAt?: string | undefined;
742
+ }, {
743
+ protocol: "x402" | "l402";
744
+ money: {
745
+ asset: string;
746
+ amount: string;
747
+ amountMinor: string;
748
+ precision: number;
749
+ unit: "minor";
750
+ };
751
+ receiptId: string;
752
+ paidRequestId: string;
753
+ paymentAttemptId: string;
754
+ organizationId: string;
755
+ agentId: string;
756
+ merchantId: string;
757
+ authorizationOutcome: "allowed";
758
+ requestUrl: string;
759
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
760
+ createdAt: string;
761
+ paymentReference?: string | undefined;
762
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
763
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
764
+ settlementIdentifier?: string | undefined;
765
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
766
+ completedAt?: string | undefined;
767
+ }>;
768
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ paidRequestId: string;
771
+ paymentAttemptId: string;
772
+ settlementEvidenceClass: "none" | "inconclusive" | "merchant_verifiable_success" | "settled";
773
+ fulfillmentStatus: "failed";
774
+ outcome: "paid_fulfillment_failed";
775
+ reasonCode: "merchant_rejected";
776
+ reason: string;
777
+ merchantResponse: {
778
+ status: number;
779
+ headers: Record<string, string>;
780
+ body: string;
781
+ };
782
+ receipt: {
783
+ protocol: "x402" | "l402";
784
+ money: {
785
+ asset: string;
786
+ amount: string;
787
+ amountMinor: string;
788
+ precision: number;
789
+ unit: "minor";
790
+ };
791
+ receiptId: string;
792
+ paidRequestId: string;
793
+ paymentAttemptId: string;
794
+ organizationId: string;
795
+ agentId: string;
796
+ merchantId: string;
797
+ authorizationOutcome: "allowed";
798
+ requestUrl: string;
799
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
800
+ createdAt: string;
801
+ paymentReference?: string | undefined;
802
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
803
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
804
+ settlementIdentifier?: string | undefined;
805
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
806
+ completedAt?: string | undefined;
807
+ };
808
+ evidence?: Record<string, unknown> | undefined;
809
+ }, {
810
+ paidRequestId: string;
811
+ paymentAttemptId: string;
812
+ settlementEvidenceClass: "none" | "inconclusive" | "merchant_verifiable_success" | "settled";
813
+ fulfillmentStatus: "failed";
814
+ outcome: "paid_fulfillment_failed";
815
+ reasonCode: "merchant_rejected";
816
+ reason: string;
817
+ merchantResponse: {
818
+ status: number;
819
+ headers?: Record<string, string> | undefined;
820
+ body?: string | undefined;
821
+ };
822
+ receipt: {
823
+ protocol: "x402" | "l402";
824
+ money: {
825
+ asset: string;
826
+ amount: string;
827
+ amountMinor: string;
828
+ precision: number;
829
+ unit: "minor";
830
+ };
831
+ receiptId: string;
832
+ paidRequestId: string;
833
+ paymentAttemptId: string;
834
+ organizationId: string;
835
+ agentId: string;
836
+ merchantId: string;
837
+ authorizationOutcome: "allowed";
838
+ requestUrl: string;
839
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
840
+ createdAt: string;
841
+ paymentReference?: string | undefined;
842
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
843
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
844
+ settlementIdentifier?: string | undefined;
845
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
846
+ completedAt?: string | undefined;
847
+ };
848
+ evidence?: Record<string, unknown> | undefined;
849
+ }>;
850
+ export declare const sdkPaymentDecisionExecutionFailedResponseSchema: z.ZodObject<{
851
+ outcome: z.ZodLiteral<"execution_failed">;
852
+ paidRequestId: z.ZodString;
853
+ paymentAttemptId: z.ZodString;
854
+ reasonCode: z.ZodEnum<["merchant_rejected", "settlement_proof_conflict"]>;
855
+ reason: z.ZodString;
856
+ merchantResponse: z.ZodObject<{
857
+ status: z.ZodNumber;
858
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
859
+ body: z.ZodDefault<z.ZodString>;
860
+ }, "strip", z.ZodTypeAny, {
861
+ status: number;
862
+ headers: Record<string, string>;
863
+ body: string;
864
+ }, {
865
+ status: number;
866
+ headers?: Record<string, string> | undefined;
867
+ body?: string | undefined;
868
+ }>;
869
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
870
+ }, "strip", z.ZodTypeAny, {
871
+ paidRequestId: string;
872
+ paymentAttemptId: string;
873
+ outcome: "execution_failed";
874
+ reasonCode: "merchant_rejected" | "settlement_proof_conflict";
875
+ reason: string;
876
+ merchantResponse: {
877
+ status: number;
878
+ headers: Record<string, string>;
879
+ body: string;
880
+ };
881
+ evidence?: Record<string, unknown> | undefined;
882
+ }, {
883
+ paidRequestId: string;
884
+ paymentAttemptId: string;
885
+ outcome: "execution_failed";
886
+ reasonCode: "merchant_rejected" | "settlement_proof_conflict";
887
+ reason: string;
888
+ merchantResponse: {
889
+ status: number;
890
+ headers?: Record<string, string> | undefined;
891
+ body?: string | undefined;
892
+ };
893
+ evidence?: Record<string, unknown> | undefined;
894
+ }>;
895
+ export declare const sdkPaymentDecisionPreflightFailedResponseSchema: z.ZodObject<{
896
+ outcome: z.ZodLiteral<"preflight_failed">;
897
+ paidRequestId: z.ZodString;
898
+ paymentAttemptId: z.ZodString;
899
+ reasonCode: z.ZodLiteral<"preflight_incompatible">;
900
+ reason: z.ZodString;
901
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
902
+ }, "strip", z.ZodTypeAny, {
903
+ paidRequestId: string;
904
+ paymentAttemptId: string;
905
+ outcome: "preflight_failed";
906
+ reasonCode: "preflight_incompatible";
907
+ reason: string;
908
+ evidence?: Record<string, unknown> | undefined;
909
+ }, {
910
+ paidRequestId: string;
911
+ paymentAttemptId: string;
912
+ outcome: "preflight_failed";
913
+ reasonCode: "preflight_incompatible";
914
+ reason: string;
915
+ evidence?: Record<string, unknown> | undefined;
916
+ }>;
917
+ export declare const sdkPaymentDecisionExecutingResponseSchema: z.ZodObject<{
918
+ outcome: z.ZodLiteral<"executing">;
919
+ paidRequestId: z.ZodString;
920
+ paymentAttemptId: z.ZodString;
921
+ reasonCode: z.ZodLiteral<"payment_execution_in_progress">;
922
+ reason: z.ZodString;
923
+ }, "strip", z.ZodTypeAny, {
924
+ paidRequestId: string;
925
+ paymentAttemptId: string;
926
+ outcome: "executing";
927
+ reasonCode: "payment_execution_in_progress";
928
+ reason: string;
929
+ }, {
930
+ paidRequestId: string;
931
+ paymentAttemptId: string;
932
+ outcome: "executing";
933
+ reasonCode: "payment_execution_in_progress";
934
+ reason: string;
935
+ }>;
936
+ export declare const sdkPaymentDecisionInconclusiveResponseSchema: z.ZodObject<{
937
+ outcome: z.ZodLiteral<"inconclusive">;
938
+ paidRequestId: z.ZodString;
939
+ paymentAttemptId: z.ZodString;
940
+ reasonCode: z.ZodLiteral<"merchant_transport_lost">;
941
+ reason: z.ZodString;
942
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
943
+ }, "strip", z.ZodTypeAny, {
944
+ paidRequestId: string;
945
+ paymentAttemptId: string;
946
+ outcome: "inconclusive";
947
+ reasonCode: "merchant_transport_lost";
948
+ reason: string;
949
+ evidence?: Record<string, unknown> | undefined;
950
+ }, {
951
+ paidRequestId: string;
952
+ paymentAttemptId: string;
953
+ outcome: "inconclusive";
954
+ reasonCode: "merchant_transport_lost";
955
+ reason: string;
956
+ evidence?: Record<string, unknown> | undefined;
957
+ }>;
958
+ export declare const sdkPaymentDecisionDenyResponseSchema: z.ZodObject<{
959
+ outcome: z.ZodLiteral<"deny">;
960
+ paidRequestId: z.ZodOptional<z.ZodString>;
961
+ reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
962
+ reason: z.ZodString;
963
+ policyReviewEventId: z.ZodOptional<z.ZodString>;
964
+ }, "strip", z.ZodTypeAny, {
965
+ outcome: "deny";
966
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
967
+ reason: string;
968
+ paidRequestId?: string | undefined;
969
+ policyReviewEventId?: string | undefined;
970
+ }, {
971
+ outcome: "deny";
972
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
973
+ reason: string;
974
+ paidRequestId?: string | undefined;
975
+ policyReviewEventId?: string | undefined;
976
+ }>;
977
+ export declare const sdkPaymentDecisionResponseSchema: z.ZodDiscriminatedUnion<"outcome", [z.ZodObject<{
978
+ outcome: z.ZodLiteral<"allow">;
979
+ paidRequestId: z.ZodString;
980
+ paymentAttemptId: z.ZodString;
981
+ reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
982
+ reason: z.ZodString;
983
+ merchantResponse: z.ZodObject<{
984
+ status: z.ZodNumber;
985
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
986
+ body: z.ZodDefault<z.ZodString>;
987
+ }, "strip", z.ZodTypeAny, {
988
+ status: number;
989
+ headers: Record<string, string>;
990
+ body: string;
991
+ }, {
992
+ status: number;
993
+ headers?: Record<string, string> | undefined;
994
+ body?: string | undefined;
995
+ }>;
996
+ receipt: z.ZodObject<{
997
+ receiptId: z.ZodString;
998
+ paidRequestId: z.ZodString;
999
+ paymentAttemptId: z.ZodString;
1000
+ organizationId: z.ZodString;
1001
+ agentId: z.ZodString;
1002
+ merchantId: z.ZodString;
1003
+ protocol: z.ZodEnum<["x402", "l402"]>;
1004
+ money: z.ZodEffects<z.ZodObject<{
1005
+ asset: z.ZodString;
1006
+ amount: z.ZodString;
1007
+ amountMinor: z.ZodString;
1008
+ precision: z.ZodNumber;
1009
+ unit: z.ZodLiteral<"minor">;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ asset: string;
1012
+ amount: string;
1013
+ amountMinor: string;
1014
+ precision: number;
1015
+ unit: "minor";
1016
+ }, {
1017
+ asset: string;
1018
+ amount: string;
1019
+ amountMinor: string;
1020
+ precision: number;
1021
+ unit: "minor";
1022
+ }>, {
1023
+ asset: string;
1024
+ amount: string;
1025
+ amountMinor: string;
1026
+ precision: number;
1027
+ unit: "minor";
1028
+ }, {
1029
+ asset: string;
1030
+ amount: string;
1031
+ amountMinor: string;
1032
+ precision: number;
1033
+ unit: "minor";
1034
+ }>;
1035
+ authorizationOutcome: z.ZodEnum<["allowed"]>;
1036
+ requestUrl: z.ZodString;
1037
+ requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1038
+ paymentReference: z.ZodOptional<z.ZodString>;
1039
+ evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
1040
+ settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
1041
+ settlementIdentifier: z.ZodOptional<z.ZodString>;
1042
+ fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
1043
+ createdAt: z.ZodString;
1044
+ completedAt: z.ZodOptional<z.ZodString>;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ protocol: "x402" | "l402";
1047
+ money: {
1048
+ asset: string;
1049
+ amount: string;
1050
+ amountMinor: string;
1051
+ precision: number;
1052
+ unit: "minor";
1053
+ };
1054
+ receiptId: string;
1055
+ paidRequestId: string;
1056
+ paymentAttemptId: string;
1057
+ organizationId: string;
1058
+ agentId: string;
1059
+ merchantId: string;
1060
+ authorizationOutcome: "allowed";
1061
+ requestUrl: string;
1062
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1063
+ createdAt: string;
1064
+ paymentReference?: string | undefined;
1065
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1066
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1067
+ settlementIdentifier?: string | undefined;
1068
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1069
+ completedAt?: string | undefined;
1070
+ }, {
1071
+ protocol: "x402" | "l402";
1072
+ money: {
1073
+ asset: string;
1074
+ amount: string;
1075
+ amountMinor: string;
1076
+ precision: number;
1077
+ unit: "minor";
1078
+ };
1079
+ receiptId: string;
1080
+ paidRequestId: string;
1081
+ paymentAttemptId: string;
1082
+ organizationId: string;
1083
+ agentId: string;
1084
+ merchantId: string;
1085
+ authorizationOutcome: "allowed";
1086
+ requestUrl: string;
1087
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1088
+ createdAt: string;
1089
+ paymentReference?: string | undefined;
1090
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1091
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1092
+ settlementIdentifier?: string | undefined;
1093
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1094
+ completedAt?: string | undefined;
1095
+ }>;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ paidRequestId: string;
1098
+ paymentAttemptId: string;
1099
+ outcome: "allow";
1100
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1101
+ reason: string;
1102
+ merchantResponse: {
1103
+ status: number;
1104
+ headers: Record<string, string>;
1105
+ body: string;
1106
+ };
1107
+ receipt: {
1108
+ protocol: "x402" | "l402";
1109
+ money: {
1110
+ asset: string;
1111
+ amount: string;
1112
+ amountMinor: string;
1113
+ precision: number;
1114
+ unit: "minor";
1115
+ };
1116
+ receiptId: string;
1117
+ paidRequestId: string;
1118
+ paymentAttemptId: string;
1119
+ organizationId: string;
1120
+ agentId: string;
1121
+ merchantId: string;
1122
+ authorizationOutcome: "allowed";
1123
+ requestUrl: string;
1124
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1125
+ createdAt: string;
1126
+ paymentReference?: string | undefined;
1127
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1128
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1129
+ settlementIdentifier?: string | undefined;
1130
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1131
+ completedAt?: string | undefined;
1132
+ };
1133
+ }, {
1134
+ paidRequestId: string;
1135
+ paymentAttemptId: string;
1136
+ outcome: "allow";
1137
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1138
+ reason: string;
1139
+ merchantResponse: {
1140
+ status: number;
1141
+ headers?: Record<string, string> | undefined;
1142
+ body?: string | undefined;
1143
+ };
1144
+ receipt: {
1145
+ protocol: "x402" | "l402";
1146
+ money: {
1147
+ asset: string;
1148
+ amount: string;
1149
+ amountMinor: string;
1150
+ precision: number;
1151
+ unit: "minor";
1152
+ };
1153
+ receiptId: string;
1154
+ paidRequestId: string;
1155
+ paymentAttemptId: string;
1156
+ organizationId: string;
1157
+ agentId: string;
1158
+ merchantId: string;
1159
+ authorizationOutcome: "allowed";
1160
+ requestUrl: string;
1161
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1162
+ createdAt: string;
1163
+ paymentReference?: string | undefined;
1164
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1165
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1166
+ settlementIdentifier?: string | undefined;
1167
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1168
+ completedAt?: string | undefined;
1169
+ };
1170
+ }>, z.ZodObject<{
1171
+ outcome: z.ZodLiteral<"paid_fulfillment_failed">;
1172
+ paidRequestId: z.ZodString;
1173
+ paymentAttemptId: z.ZodString;
1174
+ reasonCode: z.ZodLiteral<"merchant_rejected">;
1175
+ reason: z.ZodString;
1176
+ merchantResponse: z.ZodObject<{
1177
+ status: z.ZodNumber;
1178
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1179
+ body: z.ZodDefault<z.ZodString>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ status: number;
1182
+ headers: Record<string, string>;
1183
+ body: string;
1184
+ }, {
1185
+ status: number;
1186
+ headers?: Record<string, string> | undefined;
1187
+ body?: string | undefined;
1188
+ }>;
1189
+ settlementEvidenceClass: z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>;
1190
+ fulfillmentStatus: z.ZodLiteral<"failed">;
1191
+ receipt: z.ZodObject<{
1192
+ receiptId: z.ZodString;
1193
+ paidRequestId: z.ZodString;
1194
+ paymentAttemptId: z.ZodString;
1195
+ organizationId: z.ZodString;
1196
+ agentId: z.ZodString;
1197
+ merchantId: z.ZodString;
1198
+ protocol: z.ZodEnum<["x402", "l402"]>;
1199
+ money: z.ZodEffects<z.ZodObject<{
1200
+ asset: z.ZodString;
1201
+ amount: z.ZodString;
1202
+ amountMinor: z.ZodString;
1203
+ precision: z.ZodNumber;
1204
+ unit: z.ZodLiteral<"minor">;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ asset: string;
1207
+ amount: string;
1208
+ amountMinor: string;
1209
+ precision: number;
1210
+ unit: "minor";
1211
+ }, {
1212
+ asset: string;
1213
+ amount: string;
1214
+ amountMinor: string;
1215
+ precision: number;
1216
+ unit: "minor";
1217
+ }>, {
1218
+ asset: string;
1219
+ amount: string;
1220
+ amountMinor: string;
1221
+ precision: number;
1222
+ unit: "minor";
1223
+ }, {
1224
+ asset: string;
1225
+ amount: string;
1226
+ amountMinor: string;
1227
+ precision: number;
1228
+ unit: "minor";
1229
+ }>;
1230
+ authorizationOutcome: z.ZodEnum<["allowed"]>;
1231
+ requestUrl: z.ZodString;
1232
+ requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1233
+ paymentReference: z.ZodOptional<z.ZodString>;
1234
+ evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
1235
+ settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
1236
+ settlementIdentifier: z.ZodOptional<z.ZodString>;
1237
+ fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
1238
+ createdAt: z.ZodString;
1239
+ completedAt: z.ZodOptional<z.ZodString>;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ protocol: "x402" | "l402";
1242
+ money: {
1243
+ asset: string;
1244
+ amount: string;
1245
+ amountMinor: string;
1246
+ precision: number;
1247
+ unit: "minor";
1248
+ };
1249
+ receiptId: string;
1250
+ paidRequestId: string;
1251
+ paymentAttemptId: string;
1252
+ organizationId: string;
1253
+ agentId: string;
1254
+ merchantId: string;
1255
+ authorizationOutcome: "allowed";
1256
+ requestUrl: string;
1257
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1258
+ createdAt: string;
1259
+ paymentReference?: string | undefined;
1260
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1261
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1262
+ settlementIdentifier?: string | undefined;
1263
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1264
+ completedAt?: string | undefined;
1265
+ }, {
1266
+ protocol: "x402" | "l402";
1267
+ money: {
1268
+ asset: string;
1269
+ amount: string;
1270
+ amountMinor: string;
1271
+ precision: number;
1272
+ unit: "minor";
1273
+ };
1274
+ receiptId: string;
1275
+ paidRequestId: string;
1276
+ paymentAttemptId: string;
1277
+ organizationId: string;
1278
+ agentId: string;
1279
+ merchantId: string;
1280
+ authorizationOutcome: "allowed";
1281
+ requestUrl: string;
1282
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1283
+ createdAt: string;
1284
+ paymentReference?: string | undefined;
1285
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1286
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1287
+ settlementIdentifier?: string | undefined;
1288
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1289
+ completedAt?: string | undefined;
1290
+ }>;
1291
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1292
+ }, "strip", z.ZodTypeAny, {
1293
+ paidRequestId: string;
1294
+ paymentAttemptId: string;
1295
+ settlementEvidenceClass: "none" | "inconclusive" | "merchant_verifiable_success" | "settled";
1296
+ fulfillmentStatus: "failed";
1297
+ outcome: "paid_fulfillment_failed";
1298
+ reasonCode: "merchant_rejected";
1299
+ reason: string;
1300
+ merchantResponse: {
1301
+ status: number;
1302
+ headers: Record<string, string>;
1303
+ body: string;
1304
+ };
1305
+ receipt: {
1306
+ protocol: "x402" | "l402";
1307
+ money: {
1308
+ asset: string;
1309
+ amount: string;
1310
+ amountMinor: string;
1311
+ precision: number;
1312
+ unit: "minor";
1313
+ };
1314
+ receiptId: string;
1315
+ paidRequestId: string;
1316
+ paymentAttemptId: string;
1317
+ organizationId: string;
1318
+ agentId: string;
1319
+ merchantId: string;
1320
+ authorizationOutcome: "allowed";
1321
+ requestUrl: string;
1322
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1323
+ createdAt: string;
1324
+ paymentReference?: string | undefined;
1325
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1326
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1327
+ settlementIdentifier?: string | undefined;
1328
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1329
+ completedAt?: string | undefined;
1330
+ };
1331
+ evidence?: Record<string, unknown> | undefined;
1332
+ }, {
1333
+ paidRequestId: string;
1334
+ paymentAttemptId: string;
1335
+ settlementEvidenceClass: "none" | "inconclusive" | "merchant_verifiable_success" | "settled";
1336
+ fulfillmentStatus: "failed";
1337
+ outcome: "paid_fulfillment_failed";
1338
+ reasonCode: "merchant_rejected";
1339
+ reason: string;
1340
+ merchantResponse: {
1341
+ status: number;
1342
+ headers?: Record<string, string> | undefined;
1343
+ body?: string | undefined;
1344
+ };
1345
+ receipt: {
1346
+ protocol: "x402" | "l402";
1347
+ money: {
1348
+ asset: string;
1349
+ amount: string;
1350
+ amountMinor: string;
1351
+ precision: number;
1352
+ unit: "minor";
1353
+ };
1354
+ receiptId: string;
1355
+ paidRequestId: string;
1356
+ paymentAttemptId: string;
1357
+ organizationId: string;
1358
+ agentId: string;
1359
+ merchantId: string;
1360
+ authorizationOutcome: "allowed";
1361
+ requestUrl: string;
1362
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1363
+ createdAt: string;
1364
+ paymentReference?: string | undefined;
1365
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1366
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1367
+ settlementIdentifier?: string | undefined;
1368
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1369
+ completedAt?: string | undefined;
1370
+ };
1371
+ evidence?: Record<string, unknown> | undefined;
1372
+ }>, z.ZodObject<{
1373
+ outcome: z.ZodLiteral<"executing">;
1374
+ paidRequestId: z.ZodString;
1375
+ paymentAttemptId: z.ZodString;
1376
+ reasonCode: z.ZodLiteral<"payment_execution_in_progress">;
1377
+ reason: z.ZodString;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ paidRequestId: string;
1380
+ paymentAttemptId: string;
1381
+ outcome: "executing";
1382
+ reasonCode: "payment_execution_in_progress";
1383
+ reason: string;
1384
+ }, {
1385
+ paidRequestId: string;
1386
+ paymentAttemptId: string;
1387
+ outcome: "executing";
1388
+ reasonCode: "payment_execution_in_progress";
1389
+ reason: string;
1390
+ }>, z.ZodObject<{
1391
+ outcome: z.ZodLiteral<"preflight_failed">;
1392
+ paidRequestId: z.ZodString;
1393
+ paymentAttemptId: z.ZodString;
1394
+ reasonCode: z.ZodLiteral<"preflight_incompatible">;
1395
+ reason: z.ZodString;
1396
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ paidRequestId: string;
1399
+ paymentAttemptId: string;
1400
+ outcome: "preflight_failed";
1401
+ reasonCode: "preflight_incompatible";
1402
+ reason: string;
1403
+ evidence?: Record<string, unknown> | undefined;
1404
+ }, {
1405
+ paidRequestId: string;
1406
+ paymentAttemptId: string;
1407
+ outcome: "preflight_failed";
1408
+ reasonCode: "preflight_incompatible";
1409
+ reason: string;
1410
+ evidence?: Record<string, unknown> | undefined;
1411
+ }>, z.ZodObject<{
1412
+ outcome: z.ZodLiteral<"execution_failed">;
1413
+ paidRequestId: z.ZodString;
1414
+ paymentAttemptId: z.ZodString;
1415
+ reasonCode: z.ZodEnum<["merchant_rejected", "settlement_proof_conflict"]>;
1416
+ reason: z.ZodString;
1417
+ merchantResponse: z.ZodObject<{
1418
+ status: z.ZodNumber;
1419
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1420
+ body: z.ZodDefault<z.ZodString>;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ status: number;
1423
+ headers: Record<string, string>;
1424
+ body: string;
1425
+ }, {
1426
+ status: number;
1427
+ headers?: Record<string, string> | undefined;
1428
+ body?: string | undefined;
1429
+ }>;
1430
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ paidRequestId: string;
1433
+ paymentAttemptId: string;
1434
+ outcome: "execution_failed";
1435
+ reasonCode: "merchant_rejected" | "settlement_proof_conflict";
1436
+ reason: string;
1437
+ merchantResponse: {
1438
+ status: number;
1439
+ headers: Record<string, string>;
1440
+ body: string;
1441
+ };
1442
+ evidence?: Record<string, unknown> | undefined;
1443
+ }, {
1444
+ paidRequestId: string;
1445
+ paymentAttemptId: string;
1446
+ outcome: "execution_failed";
1447
+ reasonCode: "merchant_rejected" | "settlement_proof_conflict";
1448
+ reason: string;
1449
+ merchantResponse: {
1450
+ status: number;
1451
+ headers?: Record<string, string> | undefined;
1452
+ body?: string | undefined;
1453
+ };
1454
+ evidence?: Record<string, unknown> | undefined;
1455
+ }>, z.ZodObject<{
1456
+ outcome: z.ZodLiteral<"inconclusive">;
1457
+ paidRequestId: z.ZodString;
1458
+ paymentAttemptId: z.ZodString;
1459
+ reasonCode: z.ZodLiteral<"merchant_transport_lost">;
1460
+ reason: z.ZodString;
1461
+ evidence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1462
+ }, "strip", z.ZodTypeAny, {
1463
+ paidRequestId: string;
1464
+ paymentAttemptId: string;
1465
+ outcome: "inconclusive";
1466
+ reasonCode: "merchant_transport_lost";
1467
+ reason: string;
1468
+ evidence?: Record<string, unknown> | undefined;
1469
+ }, {
1470
+ paidRequestId: string;
1471
+ paymentAttemptId: string;
1472
+ outcome: "inconclusive";
1473
+ reasonCode: "merchant_transport_lost";
1474
+ reason: string;
1475
+ evidence?: Record<string, unknown> | undefined;
1476
+ }>, z.ZodObject<{
1477
+ outcome: z.ZodLiteral<"deny">;
1478
+ paidRequestId: z.ZodOptional<z.ZodString>;
1479
+ reasonCode: z.ZodEnum<["policy_allow", "policy_denied", "policy_review_required", "payment_execution_in_progress", "preflight_incompatible", "merchant_rejected", "settlement_proof_conflict", "merchant_transport_lost", "payment_rail_missing", "payment_rail_wrong_organization", "payment_rail_disabled", "payment_rail_incompatible"]>;
1480
+ reason: z.ZodString;
1481
+ policyReviewEventId: z.ZodOptional<z.ZodString>;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ outcome: "deny";
1484
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1485
+ reason: string;
1486
+ paidRequestId?: string | undefined;
1487
+ policyReviewEventId?: string | undefined;
1488
+ }, {
1489
+ outcome: "deny";
1490
+ reasonCode: "policy_allow" | "policy_denied" | "policy_review_required" | "payment_execution_in_progress" | "preflight_incompatible" | "merchant_rejected" | "settlement_proof_conflict" | "merchant_transport_lost" | "payment_rail_missing" | "payment_rail_wrong_organization" | "payment_rail_disabled" | "payment_rail_incompatible";
1491
+ reason: string;
1492
+ paidRequestId?: string | undefined;
1493
+ policyReviewEventId?: string | undefined;
1494
+ }>]>;
1495
+ export type SdkPaymentDecisionResponse = z.infer<typeof sdkPaymentDecisionResponseSchema>;
1496
+ export declare const sdkReceiptResponseSchema: z.ZodObject<{
1497
+ receipt: z.ZodObject<{
1498
+ receiptId: z.ZodString;
1499
+ paidRequestId: z.ZodString;
1500
+ paymentAttemptId: z.ZodString;
1501
+ organizationId: z.ZodString;
1502
+ agentId: z.ZodString;
1503
+ merchantId: z.ZodString;
1504
+ protocol: z.ZodEnum<["x402", "l402"]>;
1505
+ money: z.ZodEffects<z.ZodObject<{
1506
+ asset: z.ZodString;
1507
+ amount: z.ZodString;
1508
+ amountMinor: z.ZodString;
1509
+ precision: z.ZodNumber;
1510
+ unit: z.ZodLiteral<"minor">;
1511
+ }, "strip", z.ZodTypeAny, {
1512
+ asset: string;
1513
+ amount: string;
1514
+ amountMinor: string;
1515
+ precision: number;
1516
+ unit: "minor";
1517
+ }, {
1518
+ asset: string;
1519
+ amount: string;
1520
+ amountMinor: string;
1521
+ precision: number;
1522
+ unit: "minor";
1523
+ }>, {
1524
+ asset: string;
1525
+ amount: string;
1526
+ amountMinor: string;
1527
+ precision: number;
1528
+ unit: "minor";
1529
+ }, {
1530
+ asset: string;
1531
+ amount: string;
1532
+ amountMinor: string;
1533
+ precision: number;
1534
+ unit: "minor";
1535
+ }>;
1536
+ authorizationOutcome: z.ZodEnum<["allowed"]>;
1537
+ requestUrl: z.ZodString;
1538
+ requestMethod: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
1539
+ paymentReference: z.ZodOptional<z.ZodString>;
1540
+ evidenceSource: z.ZodOptional<z.ZodEnum<["merchant", "local_simulation"]>>;
1541
+ settlementEvidenceClass: z.ZodOptional<z.ZodEnum<["none", "inconclusive", "merchant_verifiable_success", "settled"]>>;
1542
+ settlementIdentifier: z.ZodOptional<z.ZodString>;
1543
+ fulfillmentStatus: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "inconclusive"]>>;
1544
+ createdAt: z.ZodString;
1545
+ completedAt: z.ZodOptional<z.ZodString>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ protocol: "x402" | "l402";
1548
+ money: {
1549
+ asset: string;
1550
+ amount: string;
1551
+ amountMinor: string;
1552
+ precision: number;
1553
+ unit: "minor";
1554
+ };
1555
+ receiptId: string;
1556
+ paidRequestId: string;
1557
+ paymentAttemptId: string;
1558
+ organizationId: string;
1559
+ agentId: string;
1560
+ merchantId: string;
1561
+ authorizationOutcome: "allowed";
1562
+ requestUrl: string;
1563
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1564
+ createdAt: string;
1565
+ paymentReference?: string | undefined;
1566
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1567
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1568
+ settlementIdentifier?: string | undefined;
1569
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1570
+ completedAt?: string | undefined;
1571
+ }, {
1572
+ protocol: "x402" | "l402";
1573
+ money: {
1574
+ asset: string;
1575
+ amount: string;
1576
+ amountMinor: string;
1577
+ precision: number;
1578
+ unit: "minor";
1579
+ };
1580
+ receiptId: string;
1581
+ paidRequestId: string;
1582
+ paymentAttemptId: string;
1583
+ organizationId: string;
1584
+ agentId: string;
1585
+ merchantId: string;
1586
+ authorizationOutcome: "allowed";
1587
+ requestUrl: string;
1588
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1589
+ createdAt: string;
1590
+ paymentReference?: string | undefined;
1591
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1592
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1593
+ settlementIdentifier?: string | undefined;
1594
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1595
+ completedAt?: string | undefined;
1596
+ }>;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ receipt: {
1599
+ protocol: "x402" | "l402";
1600
+ money: {
1601
+ asset: string;
1602
+ amount: string;
1603
+ amountMinor: string;
1604
+ precision: number;
1605
+ unit: "minor";
1606
+ };
1607
+ receiptId: string;
1608
+ paidRequestId: string;
1609
+ paymentAttemptId: string;
1610
+ organizationId: string;
1611
+ agentId: string;
1612
+ merchantId: string;
1613
+ authorizationOutcome: "allowed";
1614
+ requestUrl: string;
1615
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1616
+ createdAt: string;
1617
+ paymentReference?: string | undefined;
1618
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1619
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1620
+ settlementIdentifier?: string | undefined;
1621
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1622
+ completedAt?: string | undefined;
1623
+ };
1624
+ }, {
1625
+ receipt: {
1626
+ protocol: "x402" | "l402";
1627
+ money: {
1628
+ asset: string;
1629
+ amount: string;
1630
+ amountMinor: string;
1631
+ precision: number;
1632
+ unit: "minor";
1633
+ };
1634
+ receiptId: string;
1635
+ paidRequestId: string;
1636
+ paymentAttemptId: string;
1637
+ organizationId: string;
1638
+ agentId: string;
1639
+ merchantId: string;
1640
+ authorizationOutcome: "allowed";
1641
+ requestUrl: string;
1642
+ requestMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1643
+ createdAt: string;
1644
+ paymentReference?: string | undefined;
1645
+ evidenceSource?: "merchant" | "local_simulation" | undefined;
1646
+ settlementEvidenceClass?: "none" | "inconclusive" | "merchant_verifiable_success" | "settled" | undefined;
1647
+ settlementIdentifier?: string | undefined;
1648
+ fulfillmentStatus?: "inconclusive" | "succeeded" | "failed" | undefined;
1649
+ completedAt?: string | undefined;
1650
+ };
1651
+ }>;
1652
+ export type SdkReceiptResponse = z.infer<typeof sdkReceiptResponseSchema>;