@stackonward/onex-checkout 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,983 @@
1
+ import { ApiClient } from '@stackonward/api-client';
2
+ import { z } from 'zod';
3
+
4
+ type ProtocolErrorCode = "invalid_request" | "invalid_response" | "unsupported_presentation";
5
+ declare class CheckoutProtocolError extends Error {
6
+ readonly code: ProtocolErrorCode;
7
+ constructor(code: ProtocolErrorCode, subject: string);
8
+ }
9
+ declare const purchaseOption: z.ZodObject<{
10
+ purchase_option_id: z.ZodOptional<z.ZodNumber>;
11
+ complete_without_payment: z.ZodOptional<z.ZodLiteral<true>>;
12
+ item_name: z.ZodEffects<z.ZodString, string, string>;
13
+ amount: z.ZodString;
14
+ currency: z.ZodString;
15
+ renewal_terms: z.ZodOptional<z.ZodObject<{
16
+ amount: z.ZodString;
17
+ currency: z.ZodString;
18
+ billing_period: z.ZodEnum<["weekly", "monthly", "quarterly", "semi_annual", "annual"]>;
19
+ billing_interval: z.ZodNumber;
20
+ }, "strip", z.ZodTypeAny, {
21
+ amount: string;
22
+ currency: string;
23
+ billing_period: "weekly" | "monthly" | "quarterly" | "semi_annual" | "annual";
24
+ billing_interval: number;
25
+ }, {
26
+ amount: string;
27
+ currency: string;
28
+ billing_period: "weekly" | "monthly" | "quarterly" | "semi_annual" | "annual";
29
+ billing_interval: number;
30
+ }>>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ amount: string;
33
+ currency: string;
34
+ item_name: string;
35
+ purchase_option_id?: number | undefined;
36
+ complete_without_payment?: true | undefined;
37
+ renewal_terms?: {
38
+ amount: string;
39
+ currency: string;
40
+ billing_period: "weekly" | "monthly" | "quarterly" | "semi_annual" | "annual";
41
+ billing_interval: number;
42
+ } | undefined;
43
+ }, {
44
+ amount: string;
45
+ currency: string;
46
+ item_name: string;
47
+ purchase_option_id?: number | undefined;
48
+ complete_without_payment?: true | undefined;
49
+ renewal_terms?: {
50
+ amount: string;
51
+ currency: string;
52
+ billing_period: "weekly" | "monthly" | "quarterly" | "semi_annual" | "annual";
53
+ billing_interval: number;
54
+ } | undefined;
55
+ }>;
56
+ declare const session: z.ZodObject<{
57
+ checkout_session_no: z.ZodEffects<z.ZodString, string, string>;
58
+ status: z.ZodEnum<["open", "settling", "closing", "completing", "completed", "compensating", "compensated", "canceled", "expired", "requires_attention"]>;
59
+ revision: z.ZodNumber;
60
+ expires_at: z.ZodString;
61
+ active_execution_no: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
62
+ pricing_input: z.ZodOptional<z.ZodObject<{
63
+ currency: z.ZodString;
64
+ available_currencies: z.ZodArray<z.ZodString, "many">;
65
+ }, "strip", z.ZodTypeAny, {
66
+ currency: string;
67
+ available_currencies: string[];
68
+ }, {
69
+ currency: string;
70
+ available_currencies: string[];
71
+ }>>;
72
+ purchase_options: z.ZodArray<z.ZodObject<{
73
+ purchase_option_id: z.ZodOptional<z.ZodNumber>;
74
+ complete_without_payment: z.ZodOptional<z.ZodLiteral<true>>;
75
+ item_name: z.ZodEffects<z.ZodString, string, string>;
76
+ amount: z.ZodString;
77
+ currency: z.ZodString;
78
+ renewal_terms: z.ZodOptional<z.ZodObject<{
79
+ amount: z.ZodString;
80
+ currency: z.ZodString;
81
+ billing_period: z.ZodEnum<["weekly", "monthly", "quarterly", "semi_annual", "annual"]>;
82
+ billing_interval: z.ZodNumber;
83
+ }, "strip", z.ZodTypeAny, {
84
+ amount: string;
85
+ currency: string;
86
+ billing_period: "weekly" | "monthly" | "quarterly" | "semi_annual" | "annual";
87
+ billing_interval: number;
88
+ }, {
89
+ amount: string;
90
+ currency: string;
91
+ billing_period: "weekly" | "monthly" | "quarterly" | "semi_annual" | "annual";
92
+ billing_interval: number;
93
+ }>>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ amount: string;
96
+ currency: string;
97
+ item_name: string;
98
+ purchase_option_id?: number | undefined;
99
+ complete_without_payment?: true | undefined;
100
+ renewal_terms?: {
101
+ amount: string;
102
+ currency: string;
103
+ billing_period: "weekly" | "monthly" | "quarterly" | "semi_annual" | "annual";
104
+ billing_interval: number;
105
+ } | undefined;
106
+ }, {
107
+ amount: string;
108
+ currency: string;
109
+ item_name: string;
110
+ purchase_option_id?: number | undefined;
111
+ complete_without_payment?: true | undefined;
112
+ renewal_terms?: {
113
+ amount: string;
114
+ currency: string;
115
+ billing_period: "weekly" | "monthly" | "quarterly" | "semi_annual" | "annual";
116
+ billing_interval: number;
117
+ } | undefined;
118
+ }>, "many">;
119
+ available_actions: z.ZodArray<z.ZodEnum<["list_payment_methods", "complete_without_payment"]>, "many">;
120
+ }, "strip", z.ZodTypeAny, {
121
+ status: "open" | "settling" | "closing" | "completing" | "completed" | "compensating" | "compensated" | "canceled" | "expired" | "requires_attention";
122
+ checkout_session_no: string;
123
+ revision: number;
124
+ expires_at: string;
125
+ active_execution_no: string | null;
126
+ purchase_options: {
127
+ amount: string;
128
+ currency: string;
129
+ item_name: string;
130
+ purchase_option_id?: number | undefined;
131
+ complete_without_payment?: true | undefined;
132
+ renewal_terms?: {
133
+ amount: string;
134
+ currency: string;
135
+ billing_period: "weekly" | "monthly" | "quarterly" | "semi_annual" | "annual";
136
+ billing_interval: number;
137
+ } | undefined;
138
+ }[];
139
+ available_actions: ("complete_without_payment" | "list_payment_methods")[];
140
+ pricing_input?: {
141
+ currency: string;
142
+ available_currencies: string[];
143
+ } | undefined;
144
+ }, {
145
+ status: "open" | "settling" | "closing" | "completing" | "completed" | "compensating" | "compensated" | "canceled" | "expired" | "requires_attention";
146
+ checkout_session_no: string;
147
+ revision: number;
148
+ expires_at: string;
149
+ active_execution_no: string | null;
150
+ purchase_options: {
151
+ amount: string;
152
+ currency: string;
153
+ item_name: string;
154
+ purchase_option_id?: number | undefined;
155
+ complete_without_payment?: true | undefined;
156
+ renewal_terms?: {
157
+ amount: string;
158
+ currency: string;
159
+ billing_period: "weekly" | "monthly" | "quarterly" | "semi_annual" | "annual";
160
+ billing_interval: number;
161
+ } | undefined;
162
+ }[];
163
+ available_actions: ("complete_without_payment" | "list_payment_methods")[];
164
+ pricing_input?: {
165
+ currency: string;
166
+ available_currencies: string[];
167
+ } | undefined;
168
+ }>;
169
+ declare const checkoutField: z.ZodObject<{
170
+ requirement: z.ZodEnum<["required", "conditional", "recommended", "provider_auto", "internal", "not_collected"]>;
171
+ collection: z.ZodEnum<["checkout_form", "provider_component", "wallet_sheet", "request_context", "not_collected"]>;
172
+ required_countries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
173
+ reason: z.ZodOptional<z.ZodString>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
176
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
177
+ required_countries?: string[] | undefined;
178
+ reason?: string | undefined;
179
+ }, {
180
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
181
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
182
+ required_countries?: string[] | undefined;
183
+ reason?: string | undefined;
184
+ }>;
185
+ declare const method: z.ZodObject<{
186
+ method_reference: z.ZodEffects<z.ZodString, string, string>;
187
+ method_binding: z.ZodEffects<z.ZodString, string, string>;
188
+ provider: z.ZodEffects<z.ZodString, string, string>;
189
+ provider_environment: z.ZodEnum<["sandbox", "live"]>;
190
+ pm_id: z.ZodEffects<z.ZodString, string, string>;
191
+ name: z.ZodEffects<z.ZodString, string, string>;
192
+ logo: z.ZodOptional<z.ZodString>;
193
+ payment_authority_kind: z.ZodEnum<["catalog_purchase_option", "target_policy"]>;
194
+ purchase_option_id: z.ZodOptional<z.ZodNumber>;
195
+ purchase_option_label: z.ZodOptional<z.ZodString>;
196
+ renewal_policy: z.ZodOptional<z.ZodEnum<["manual", "auto"]>>;
197
+ amount: z.ZodString;
198
+ currency: z.ZodString;
199
+ payment_required: z.ZodBoolean;
200
+ provider_setup_required: z.ZodBoolean;
201
+ setup_requirement: z.ZodEnum<["none", "reusable_authorization", "hosted_subscription", "both"]>;
202
+ setup_execution_mode: z.ZodEnum<["none", "bundled_with_payment", "standalone"]>;
203
+ country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
+ presentation_mode: z.ZodEffects<z.ZodString, string, string>;
205
+ presentation_flow: z.ZodEffects<z.ZodString, string, string>;
206
+ presentation_version: z.ZodNumber;
207
+ requires_provider_client_payload: z.ZodBoolean;
208
+ checkout_fields: z.ZodRecord<z.ZodString, z.ZodObject<{
209
+ requirement: z.ZodEnum<["required", "conditional", "recommended", "provider_auto", "internal", "not_collected"]>;
210
+ collection: z.ZodEnum<["checkout_form", "provider_component", "wallet_sheet", "request_context", "not_collected"]>;
211
+ required_countries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
212
+ reason: z.ZodOptional<z.ZodString>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
215
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
216
+ required_countries?: string[] | undefined;
217
+ reason?: string | undefined;
218
+ }, {
219
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
220
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
221
+ required_countries?: string[] | undefined;
222
+ reason?: string | undefined;
223
+ }>>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ method_reference: string;
226
+ method_binding: string;
227
+ provider: string;
228
+ provider_environment: "sandbox" | "live";
229
+ pm_id: string;
230
+ name: string;
231
+ payment_authority_kind: "catalog_purchase_option" | "target_policy";
232
+ amount: string;
233
+ currency: string;
234
+ payment_required: boolean;
235
+ provider_setup_required: boolean;
236
+ setup_requirement: "none" | "reusable_authorization" | "hosted_subscription" | "both";
237
+ setup_execution_mode: "none" | "bundled_with_payment" | "standalone";
238
+ presentation_mode: string;
239
+ presentation_flow: string;
240
+ presentation_version: number;
241
+ requires_provider_client_payload: boolean;
242
+ checkout_fields: Record<string, {
243
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
244
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
245
+ required_countries?: string[] | undefined;
246
+ reason?: string | undefined;
247
+ }>;
248
+ logo?: string | undefined;
249
+ purchase_option_id?: number | undefined;
250
+ purchase_option_label?: string | undefined;
251
+ renewal_policy?: "manual" | "auto" | undefined;
252
+ country_code?: string | null | undefined;
253
+ }, {
254
+ method_reference: string;
255
+ method_binding: string;
256
+ provider: string;
257
+ provider_environment: "sandbox" | "live";
258
+ pm_id: string;
259
+ name: string;
260
+ payment_authority_kind: "catalog_purchase_option" | "target_policy";
261
+ amount: string;
262
+ currency: string;
263
+ payment_required: boolean;
264
+ provider_setup_required: boolean;
265
+ setup_requirement: "none" | "reusable_authorization" | "hosted_subscription" | "both";
266
+ setup_execution_mode: "none" | "bundled_with_payment" | "standalone";
267
+ presentation_mode: string;
268
+ presentation_flow: string;
269
+ presentation_version: number;
270
+ requires_provider_client_payload: boolean;
271
+ checkout_fields: Record<string, {
272
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
273
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
274
+ required_countries?: string[] | undefined;
275
+ reason?: string | undefined;
276
+ }>;
277
+ logo?: string | undefined;
278
+ purchase_option_id?: number | undefined;
279
+ purchase_option_label?: string | undefined;
280
+ renewal_policy?: "manual" | "auto" | undefined;
281
+ country_code?: string | null | undefined;
282
+ }>;
283
+ declare const methods: z.ZodObject<{
284
+ session_revision: z.ZodNumber;
285
+ groups: z.ZodArray<z.ZodObject<{
286
+ key: z.ZodEffects<z.ZodString, string, string>;
287
+ label: z.ZodString;
288
+ methods: z.ZodArray<z.ZodObject<{
289
+ method_reference: z.ZodEffects<z.ZodString, string, string>;
290
+ method_binding: z.ZodEffects<z.ZodString, string, string>;
291
+ provider: z.ZodEffects<z.ZodString, string, string>;
292
+ provider_environment: z.ZodEnum<["sandbox", "live"]>;
293
+ pm_id: z.ZodEffects<z.ZodString, string, string>;
294
+ name: z.ZodEffects<z.ZodString, string, string>;
295
+ logo: z.ZodOptional<z.ZodString>;
296
+ payment_authority_kind: z.ZodEnum<["catalog_purchase_option", "target_policy"]>;
297
+ purchase_option_id: z.ZodOptional<z.ZodNumber>;
298
+ purchase_option_label: z.ZodOptional<z.ZodString>;
299
+ renewal_policy: z.ZodOptional<z.ZodEnum<["manual", "auto"]>>;
300
+ amount: z.ZodString;
301
+ currency: z.ZodString;
302
+ payment_required: z.ZodBoolean;
303
+ provider_setup_required: z.ZodBoolean;
304
+ setup_requirement: z.ZodEnum<["none", "reusable_authorization", "hosted_subscription", "both"]>;
305
+ setup_execution_mode: z.ZodEnum<["none", "bundled_with_payment", "standalone"]>;
306
+ country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ presentation_mode: z.ZodEffects<z.ZodString, string, string>;
308
+ presentation_flow: z.ZodEffects<z.ZodString, string, string>;
309
+ presentation_version: z.ZodNumber;
310
+ requires_provider_client_payload: z.ZodBoolean;
311
+ checkout_fields: z.ZodRecord<z.ZodString, z.ZodObject<{
312
+ requirement: z.ZodEnum<["required", "conditional", "recommended", "provider_auto", "internal", "not_collected"]>;
313
+ collection: z.ZodEnum<["checkout_form", "provider_component", "wallet_sheet", "request_context", "not_collected"]>;
314
+ required_countries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
315
+ reason: z.ZodOptional<z.ZodString>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
318
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
319
+ required_countries?: string[] | undefined;
320
+ reason?: string | undefined;
321
+ }, {
322
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
323
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
324
+ required_countries?: string[] | undefined;
325
+ reason?: string | undefined;
326
+ }>>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ method_reference: string;
329
+ method_binding: string;
330
+ provider: string;
331
+ provider_environment: "sandbox" | "live";
332
+ pm_id: string;
333
+ name: string;
334
+ payment_authority_kind: "catalog_purchase_option" | "target_policy";
335
+ amount: string;
336
+ currency: string;
337
+ payment_required: boolean;
338
+ provider_setup_required: boolean;
339
+ setup_requirement: "none" | "reusable_authorization" | "hosted_subscription" | "both";
340
+ setup_execution_mode: "none" | "bundled_with_payment" | "standalone";
341
+ presentation_mode: string;
342
+ presentation_flow: string;
343
+ presentation_version: number;
344
+ requires_provider_client_payload: boolean;
345
+ checkout_fields: Record<string, {
346
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
347
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
348
+ required_countries?: string[] | undefined;
349
+ reason?: string | undefined;
350
+ }>;
351
+ logo?: string | undefined;
352
+ purchase_option_id?: number | undefined;
353
+ purchase_option_label?: string | undefined;
354
+ renewal_policy?: "manual" | "auto" | undefined;
355
+ country_code?: string | null | undefined;
356
+ }, {
357
+ method_reference: string;
358
+ method_binding: string;
359
+ provider: string;
360
+ provider_environment: "sandbox" | "live";
361
+ pm_id: string;
362
+ name: string;
363
+ payment_authority_kind: "catalog_purchase_option" | "target_policy";
364
+ amount: string;
365
+ currency: string;
366
+ payment_required: boolean;
367
+ provider_setup_required: boolean;
368
+ setup_requirement: "none" | "reusable_authorization" | "hosted_subscription" | "both";
369
+ setup_execution_mode: "none" | "bundled_with_payment" | "standalone";
370
+ presentation_mode: string;
371
+ presentation_flow: string;
372
+ presentation_version: number;
373
+ requires_provider_client_payload: boolean;
374
+ checkout_fields: Record<string, {
375
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
376
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
377
+ required_countries?: string[] | undefined;
378
+ reason?: string | undefined;
379
+ }>;
380
+ logo?: string | undefined;
381
+ purchase_option_id?: number | undefined;
382
+ purchase_option_label?: string | undefined;
383
+ renewal_policy?: "manual" | "auto" | undefined;
384
+ country_code?: string | null | undefined;
385
+ }>, "many">;
386
+ }, "strip", z.ZodTypeAny, {
387
+ key: string;
388
+ label: string;
389
+ methods: {
390
+ method_reference: string;
391
+ method_binding: string;
392
+ provider: string;
393
+ provider_environment: "sandbox" | "live";
394
+ pm_id: string;
395
+ name: string;
396
+ payment_authority_kind: "catalog_purchase_option" | "target_policy";
397
+ amount: string;
398
+ currency: string;
399
+ payment_required: boolean;
400
+ provider_setup_required: boolean;
401
+ setup_requirement: "none" | "reusable_authorization" | "hosted_subscription" | "both";
402
+ setup_execution_mode: "none" | "bundled_with_payment" | "standalone";
403
+ presentation_mode: string;
404
+ presentation_flow: string;
405
+ presentation_version: number;
406
+ requires_provider_client_payload: boolean;
407
+ checkout_fields: Record<string, {
408
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
409
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
410
+ required_countries?: string[] | undefined;
411
+ reason?: string | undefined;
412
+ }>;
413
+ logo?: string | undefined;
414
+ purchase_option_id?: number | undefined;
415
+ purchase_option_label?: string | undefined;
416
+ renewal_policy?: "manual" | "auto" | undefined;
417
+ country_code?: string | null | undefined;
418
+ }[];
419
+ }, {
420
+ key: string;
421
+ label: string;
422
+ methods: {
423
+ method_reference: string;
424
+ method_binding: string;
425
+ provider: string;
426
+ provider_environment: "sandbox" | "live";
427
+ pm_id: string;
428
+ name: string;
429
+ payment_authority_kind: "catalog_purchase_option" | "target_policy";
430
+ amount: string;
431
+ currency: string;
432
+ payment_required: boolean;
433
+ provider_setup_required: boolean;
434
+ setup_requirement: "none" | "reusable_authorization" | "hosted_subscription" | "both";
435
+ setup_execution_mode: "none" | "bundled_with_payment" | "standalone";
436
+ presentation_mode: string;
437
+ presentation_flow: string;
438
+ presentation_version: number;
439
+ requires_provider_client_payload: boolean;
440
+ checkout_fields: Record<string, {
441
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
442
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
443
+ required_countries?: string[] | undefined;
444
+ reason?: string | undefined;
445
+ }>;
446
+ logo?: string | undefined;
447
+ purchase_option_id?: number | undefined;
448
+ purchase_option_label?: string | undefined;
449
+ renewal_policy?: "manual" | "auto" | undefined;
450
+ country_code?: string | null | undefined;
451
+ }[];
452
+ }>, "many">;
453
+ }, "strip", z.ZodTypeAny, {
454
+ session_revision: number;
455
+ groups: {
456
+ key: string;
457
+ label: string;
458
+ methods: {
459
+ method_reference: string;
460
+ method_binding: string;
461
+ provider: string;
462
+ provider_environment: "sandbox" | "live";
463
+ pm_id: string;
464
+ name: string;
465
+ payment_authority_kind: "catalog_purchase_option" | "target_policy";
466
+ amount: string;
467
+ currency: string;
468
+ payment_required: boolean;
469
+ provider_setup_required: boolean;
470
+ setup_requirement: "none" | "reusable_authorization" | "hosted_subscription" | "both";
471
+ setup_execution_mode: "none" | "bundled_with_payment" | "standalone";
472
+ presentation_mode: string;
473
+ presentation_flow: string;
474
+ presentation_version: number;
475
+ requires_provider_client_payload: boolean;
476
+ checkout_fields: Record<string, {
477
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
478
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
479
+ required_countries?: string[] | undefined;
480
+ reason?: string | undefined;
481
+ }>;
482
+ logo?: string | undefined;
483
+ purchase_option_id?: number | undefined;
484
+ purchase_option_label?: string | undefined;
485
+ renewal_policy?: "manual" | "auto" | undefined;
486
+ country_code?: string | null | undefined;
487
+ }[];
488
+ }[];
489
+ }, {
490
+ session_revision: number;
491
+ groups: {
492
+ key: string;
493
+ label: string;
494
+ methods: {
495
+ method_reference: string;
496
+ method_binding: string;
497
+ provider: string;
498
+ provider_environment: "sandbox" | "live";
499
+ pm_id: string;
500
+ name: string;
501
+ payment_authority_kind: "catalog_purchase_option" | "target_policy";
502
+ amount: string;
503
+ currency: string;
504
+ payment_required: boolean;
505
+ provider_setup_required: boolean;
506
+ setup_requirement: "none" | "reusable_authorization" | "hosted_subscription" | "both";
507
+ setup_execution_mode: "none" | "bundled_with_payment" | "standalone";
508
+ presentation_mode: string;
509
+ presentation_flow: string;
510
+ presentation_version: number;
511
+ requires_provider_client_payload: boolean;
512
+ checkout_fields: Record<string, {
513
+ requirement: "required" | "conditional" | "recommended" | "provider_auto" | "internal" | "not_collected";
514
+ collection: "not_collected" | "checkout_form" | "provider_component" | "wallet_sheet" | "request_context";
515
+ required_countries?: string[] | undefined;
516
+ reason?: string | undefined;
517
+ }>;
518
+ logo?: string | undefined;
519
+ purchase_option_id?: number | undefined;
520
+ purchase_option_label?: string | undefined;
521
+ renewal_policy?: "manual" | "auto" | undefined;
522
+ country_code?: string | null | undefined;
523
+ }[];
524
+ }[];
525
+ }>;
526
+ declare const billingAddress: z.ZodObject<{
527
+ line1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
528
+ line2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
529
+ city: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
530
+ state: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
531
+ postal_code: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
532
+ country: z.ZodOptional<z.ZodString>;
533
+ }, "strict", z.ZodTypeAny, {
534
+ line1?: string | undefined;
535
+ line2?: string | undefined;
536
+ city?: string | undefined;
537
+ country?: string | undefined;
538
+ state?: string | undefined;
539
+ postal_code?: string | undefined;
540
+ }, {
541
+ line1?: string | undefined;
542
+ line2?: string | undefined;
543
+ city?: string | undefined;
544
+ country?: string | undefined;
545
+ state?: string | undefined;
546
+ postal_code?: string | undefined;
547
+ }>;
548
+ declare const execution: z.ZodObject<{
549
+ checkout_session_no: z.ZodEffects<z.ZodString, string, string>;
550
+ execution_no: z.ZodEffects<z.ZodString, string, string>;
551
+ status: z.ZodEnum<["prepared", "dispatch_pending", "processing", "requires_action", "succeeded", "failed", "cancel_requested", "canceling", "canceled", "expired", "unknown"]>;
552
+ purpose: z.ZodEnum<["payment", "provider_setup"]>;
553
+ selection_status: z.ZodOptional<z.ZodEnum<["active", "superseded", "session_closed"]>>;
554
+ order_no: z.ZodOptional<z.ZodString>;
555
+ customer_name: z.ZodOptional<z.ZodString>;
556
+ billing_address: z.ZodOptional<z.ZodObject<{
557
+ line1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
558
+ line2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
559
+ city: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
560
+ state: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
561
+ postal_code: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
562
+ country: z.ZodOptional<z.ZodString>;
563
+ }, "strict", z.ZodTypeAny, {
564
+ line1?: string | undefined;
565
+ line2?: string | undefined;
566
+ city?: string | undefined;
567
+ country?: string | undefined;
568
+ state?: string | undefined;
569
+ postal_code?: string | undefined;
570
+ }, {
571
+ line1?: string | undefined;
572
+ line2?: string | undefined;
573
+ city?: string | undefined;
574
+ country?: string | undefined;
575
+ state?: string | undefined;
576
+ postal_code?: string | undefined;
577
+ }>>;
578
+ payment_no: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
579
+ provider: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
580
+ pm_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
581
+ payment_authority_kind: z.ZodEnum<["catalog_purchase_option", "target_policy"]>;
582
+ purchase_option_id: z.ZodOptional<z.ZodNumber>;
583
+ method_binding: z.ZodEffects<z.ZodString, string, string>;
584
+ amount: z.ZodString;
585
+ currency: z.ZodString;
586
+ presentation: z.ZodNullable<z.ZodObject<{
587
+ mode: z.ZodEffects<z.ZodString, string, string>;
588
+ flow: z.ZodEffects<z.ZodString, string, string>;
589
+ version: z.ZodNumber;
590
+ checkout_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
591
+ payload: z.ZodUnknown;
592
+ }, "strip", z.ZodTypeAny, {
593
+ mode: string;
594
+ flow: string;
595
+ version: number;
596
+ checkout_url?: string | null | undefined;
597
+ payload?: unknown;
598
+ }, {
599
+ mode: string;
600
+ flow: string;
601
+ version: number;
602
+ checkout_url?: string | null | undefined;
603
+ payload?: unknown;
604
+ }>>;
605
+ command_status: z.ZodOptional<z.ZodString>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ status: "unknown" | "canceled" | "expired" | "prepared" | "dispatch_pending" | "processing" | "requires_action" | "succeeded" | "failed" | "cancel_requested" | "canceling";
608
+ method_binding: string;
609
+ payment_authority_kind: "catalog_purchase_option" | "target_policy";
610
+ amount: string;
611
+ currency: string;
612
+ checkout_session_no: string;
613
+ execution_no: string;
614
+ purpose: "payment" | "provider_setup";
615
+ presentation: {
616
+ mode: string;
617
+ flow: string;
618
+ version: number;
619
+ checkout_url?: string | null | undefined;
620
+ payload?: unknown;
621
+ } | null;
622
+ provider?: string | undefined;
623
+ pm_id?: string | undefined;
624
+ purchase_option_id?: number | undefined;
625
+ selection_status?: "active" | "superseded" | "session_closed" | undefined;
626
+ order_no?: string | undefined;
627
+ customer_name?: string | undefined;
628
+ billing_address?: {
629
+ line1?: string | undefined;
630
+ line2?: string | undefined;
631
+ city?: string | undefined;
632
+ country?: string | undefined;
633
+ state?: string | undefined;
634
+ postal_code?: string | undefined;
635
+ } | undefined;
636
+ payment_no?: string | null | undefined;
637
+ command_status?: string | undefined;
638
+ }, {
639
+ status: "unknown" | "canceled" | "expired" | "prepared" | "dispatch_pending" | "processing" | "requires_action" | "succeeded" | "failed" | "cancel_requested" | "canceling";
640
+ method_binding: string;
641
+ payment_authority_kind: "catalog_purchase_option" | "target_policy";
642
+ amount: string;
643
+ currency: string;
644
+ checkout_session_no: string;
645
+ execution_no: string;
646
+ purpose: "payment" | "provider_setup";
647
+ presentation: {
648
+ mode: string;
649
+ flow: string;
650
+ version: number;
651
+ checkout_url?: string | null | undefined;
652
+ payload?: unknown;
653
+ } | null;
654
+ provider?: string | undefined;
655
+ pm_id?: string | undefined;
656
+ purchase_option_id?: number | undefined;
657
+ selection_status?: "active" | "superseded" | "session_closed" | undefined;
658
+ order_no?: string | undefined;
659
+ customer_name?: string | undefined;
660
+ billing_address?: {
661
+ line1?: string | undefined;
662
+ line2?: string | undefined;
663
+ city?: string | undefined;
664
+ country?: string | undefined;
665
+ state?: string | undefined;
666
+ postal_code?: string | undefined;
667
+ } | undefined;
668
+ payment_no?: string | null | undefined;
669
+ command_status?: string | undefined;
670
+ }>;
671
+ declare const cancellation: z.ZodObject<{
672
+ checkout_session_no: z.ZodEffects<z.ZodString, string, string>;
673
+ execution_no: z.ZodEffects<z.ZodString, string, string>;
674
+ session_status: z.ZodEnum<["open", "settling", "closing", "completing", "completed", "compensating", "compensated", "canceled", "expired", "requires_attention"]>;
675
+ execution_status: z.ZodEnum<["prepared", "dispatch_pending", "processing", "requires_action", "succeeded", "failed", "cancel_requested", "canceling", "canceled", "expired", "unknown"]>;
676
+ command_status: z.ZodString;
677
+ pending_provider_commands: z.ZodNumber;
678
+ }, "strip", z.ZodTypeAny, {
679
+ checkout_session_no: string;
680
+ execution_no: string;
681
+ command_status: string;
682
+ session_status: "open" | "settling" | "closing" | "completing" | "completed" | "compensating" | "compensated" | "canceled" | "expired" | "requires_attention";
683
+ execution_status: "unknown" | "canceled" | "expired" | "prepared" | "dispatch_pending" | "processing" | "requires_action" | "succeeded" | "failed" | "cancel_requested" | "canceling";
684
+ pending_provider_commands: number;
685
+ }, {
686
+ checkout_session_no: string;
687
+ execution_no: string;
688
+ command_status: string;
689
+ session_status: "open" | "settling" | "closing" | "completing" | "completed" | "compensating" | "compensated" | "canceled" | "expired" | "requires_attention";
690
+ execution_status: "unknown" | "canceled" | "expired" | "prepared" | "dispatch_pending" | "processing" | "requires_action" | "succeeded" | "failed" | "cancel_requested" | "canceling";
691
+ pending_provider_commands: number;
692
+ }>;
693
+ declare const completion: z.ZodObject<{
694
+ checkout_session_no: z.ZodEffects<z.ZodString, string, string>;
695
+ session_status: z.ZodEnum<["open", "settling", "closing", "completing", "completed", "compensating", "compensated", "canceled", "expired", "requires_attention"]>;
696
+ order_no: z.ZodEffects<z.ZodString, string, string>;
697
+ fulfillment_status: z.ZodEffects<z.ZodString, string, string>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ checkout_session_no: string;
700
+ order_no: string;
701
+ session_status: "open" | "settling" | "closing" | "completing" | "completed" | "compensating" | "compensated" | "canceled" | "expired" | "requires_attention";
702
+ fulfillment_status: string;
703
+ }, {
704
+ checkout_session_no: string;
705
+ order_no: string;
706
+ session_status: "open" | "settling" | "closing" | "completing" | "completed" | "compensating" | "compensated" | "canceled" | "expired" | "requires_attention";
707
+ fulfillment_status: string;
708
+ }>;
709
+ declare const reviseInput: z.ZodObject<{
710
+ currency: z.ZodString;
711
+ expected_revision: z.ZodNumber;
712
+ }, "strict", z.ZodTypeAny, {
713
+ currency: string;
714
+ expected_revision: number;
715
+ }, {
716
+ currency: string;
717
+ expected_revision: number;
718
+ }>;
719
+ declare const revisionResult: z.ZodObject<{
720
+ checkout_session_no: z.ZodEffects<z.ZodString, string, string>;
721
+ revision: z.ZodNumber;
722
+ currency: z.ZodString;
723
+ }, "strip", z.ZodTypeAny, {
724
+ currency: string;
725
+ checkout_session_no: string;
726
+ revision: number;
727
+ }, {
728
+ currency: string;
729
+ checkout_session_no: string;
730
+ revision: number;
731
+ }>;
732
+ declare const startInput: z.ZodObject<{
733
+ session_revision: z.ZodNumber;
734
+ method_reference: z.ZodEffects<z.ZodString, string, string>;
735
+ customer_name: z.ZodOptional<z.ZodString>;
736
+ billing_address: z.ZodOptional<z.ZodObject<{
737
+ line1: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
738
+ line2: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
739
+ city: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
740
+ state: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
741
+ postal_code: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
742
+ country: z.ZodOptional<z.ZodString>;
743
+ }, "strict", z.ZodTypeAny, {
744
+ line1?: string | undefined;
745
+ line2?: string | undefined;
746
+ city?: string | undefined;
747
+ country?: string | undefined;
748
+ state?: string | undefined;
749
+ postal_code?: string | undefined;
750
+ }, {
751
+ line1?: string | undefined;
752
+ line2?: string | undefined;
753
+ city?: string | undefined;
754
+ country?: string | undefined;
755
+ state?: string | undefined;
756
+ postal_code?: string | undefined;
757
+ }>>;
758
+ }, "strict", z.ZodTypeAny, {
759
+ method_reference: string;
760
+ session_revision: number;
761
+ customer_name?: string | undefined;
762
+ billing_address?: {
763
+ line1?: string | undefined;
764
+ line2?: string | undefined;
765
+ city?: string | undefined;
766
+ country?: string | undefined;
767
+ state?: string | undefined;
768
+ postal_code?: string | undefined;
769
+ } | undefined;
770
+ }, {
771
+ method_reference: string;
772
+ session_revision: number;
773
+ customer_name?: string | undefined;
774
+ billing_address?: {
775
+ line1?: string | undefined;
776
+ line2?: string | undefined;
777
+ city?: string | undefined;
778
+ country?: string | undefined;
779
+ state?: string | undefined;
780
+ postal_code?: string | undefined;
781
+ } | undefined;
782
+ }>;
783
+ type PurchaseOption = z.infer<typeof purchaseOption>;
784
+ type SessionState = z.infer<typeof session>;
785
+ type PaymentMethods = z.infer<typeof methods>;
786
+ type CheckoutMethod = z.infer<typeof method>;
787
+ type CheckoutField = z.infer<typeof checkoutField>;
788
+ type BillingAddress = z.infer<typeof billingAddress>;
789
+ type StartInput = z.infer<typeof startInput>;
790
+ type ReviseInput = z.infer<typeof reviseInput>;
791
+ type RevisionResult = z.infer<typeof revisionResult>;
792
+ type Cancellation = z.infer<typeof cancellation>;
793
+ type Completion = z.infer<typeof completion>;
794
+ type ExecutionResponse = z.infer<typeof execution>;
795
+
796
+ declare const airwallexMethods: readonly [{
797
+ readonly id: "card";
798
+ readonly submission: "form";
799
+ readonly requiresCardholderName: true;
800
+ }, {
801
+ readonly id: "apple_pay";
802
+ readonly submission: "native";
803
+ readonly requiresCardholderName: false;
804
+ }, {
805
+ readonly id: "google_pay";
806
+ readonly submission: "native";
807
+ readonly requiresCardholderName: false;
808
+ }];
809
+ declare const airwallexPayload: z.ZodObject<{
810
+ sdk_environment: z.ZodEnum<["demo", "prod"]>;
811
+ merchant_display_name: z.ZodEffects<z.ZodString, string, string>;
812
+ client_secret: z.ZodEffects<z.ZodString, string, string>;
813
+ payment_intent_id: z.ZodEffects<z.ZodString, string, string>;
814
+ customer_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
815
+ payment_consent: z.ZodOptional<z.ZodObject<{
816
+ next_triggered_by: z.ZodLiteral<"merchant">;
817
+ merchant_trigger_reason: z.ZodLiteral<"scheduled">;
818
+ }, "strip", z.ZodTypeAny, {
819
+ next_triggered_by: "merchant";
820
+ merchant_trigger_reason: "scheduled";
821
+ }, {
822
+ next_triggered_by: "merchant";
823
+ merchant_trigger_reason: "scheduled";
824
+ }>>;
825
+ country_code: z.ZodOptional<z.ZodString>;
826
+ merchant_country_code: z.ZodOptional<z.ZodString>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ sdk_environment: "prod" | "demo";
829
+ merchant_display_name: string;
830
+ client_secret: string;
831
+ payment_intent_id: string;
832
+ country_code?: string | undefined;
833
+ customer_id?: string | undefined;
834
+ payment_consent?: {
835
+ next_triggered_by: "merchant";
836
+ merchant_trigger_reason: "scheduled";
837
+ } | undefined;
838
+ merchant_country_code?: string | undefined;
839
+ }, {
840
+ sdk_environment: "prod" | "demo";
841
+ merchant_display_name: string;
842
+ client_secret: string;
843
+ payment_intent_id: string;
844
+ country_code?: string | undefined;
845
+ customer_id?: string | undefined;
846
+ payment_consent?: {
847
+ next_triggered_by: "merchant";
848
+ merchant_trigger_reason: "scheduled";
849
+ } | undefined;
850
+ merchant_country_code?: string | undefined;
851
+ }>;
852
+ interface AirwallexPresentation extends Presentation {
853
+ flow: "airwallex_dropin";
854
+ version: 2;
855
+ payload: z.infer<typeof airwallexPayload>;
856
+ }
857
+ declare function airwallexEnvironment(environment: CheckoutMethod["provider_environment"]): "prod" | "demo";
858
+ declare function airwallexSession(execution: Execution<AirwallexPresentation>): {
859
+ kind: "setup";
860
+ customerId: string;
861
+ intentId: string;
862
+ amount: string;
863
+ currency: string;
864
+ clientSecret: string;
865
+ } | {
866
+ kind: "recurring";
867
+ intentId: string;
868
+ customerId: string;
869
+ amount: string;
870
+ currency: string;
871
+ clientSecret: string;
872
+ } | {
873
+ kind: "payment";
874
+ intentId: string;
875
+ amount: string;
876
+ currency: string;
877
+ clientSecret: string;
878
+ };
879
+
880
+ interface Presentation {
881
+ mode: "embedded";
882
+ flow: string;
883
+ version: number;
884
+ payload: unknown;
885
+ }
886
+ type PresentationContext = Pick<ExecutionResponse, "amount" | "purpose" | "provider" | "pm_id">;
887
+ interface PresentationDecoder<T extends Presentation> {
888
+ readonly flow: T["flow"];
889
+ readonly version: T["version"];
890
+ decode(payload: unknown, context: PresentationContext): T;
891
+ assertMethod?(method: CheckoutMethod, presentation: T): void;
892
+ }
893
+ type Decoded<Decoders extends readonly PresentationDecoder<Presentation>[]> = ReturnType<Decoders[number]["decode"]>;
894
+ type Execution<T extends Presentation = AirwallexPresentation> = Omit<ExecutionResponse, "presentation"> & {
895
+ presentation: T | null;
896
+ };
897
+ declare function parsePresentation(value: unknown, context: PresentationContext, decoders?: undefined): AirwallexPresentation;
898
+ declare function parsePresentation<const Decoders extends readonly PresentationDecoder<Presentation>[]>(value: unknown, context: PresentationContext, decoders: Decoders): AirwallexPresentation | Decoded<Decoders>;
899
+ declare function parsePresentation<const Decoders extends readonly PresentationDecoder<Presentation>[]>(value: unknown, context: PresentationContext, decoders: Decoders | undefined): AirwallexPresentation | Decoded<Decoders>;
900
+ declare function parsePresentation<T extends Presentation>(value: unknown, context: PresentationContext, decoders: readonly PresentationDecoder<T>[] | undefined): AirwallexPresentation | T;
901
+ declare function assertExecutionMethod<T extends Presentation>(method: CheckoutMethod, execution: Execution<T>, decoders?: readonly PresentationDecoder<Presentation>[]): void;
902
+
903
+ interface CheckoutClientOptions<T extends Presentation = never> {
904
+ transport: Pick<ApiClient, "get" | "post">;
905
+ basePath: string;
906
+ mutationHeaders?: () => HeadersInit | Promise<HeadersInit>;
907
+ presentations?: readonly PresentationDecoder<T>[];
908
+ }
909
+ interface CheckoutClient<T extends Presentation = never> {
910
+ session(no: string, signal?: AbortSignal): Promise<SessionState>;
911
+ methods(no: string, signal?: AbortSignal): Promise<PaymentMethods>;
912
+ start(no: string, input: StartInput, idempotencyKey: string, signal?: AbortSignal): Promise<Execution<AirwallexPresentation | T>>;
913
+ execution(no: string, executionNo: string, signal?: AbortSignal): Promise<Execution<AirwallexPresentation | T>>;
914
+ reconcile(no: string, executionNo: string, signal?: AbortSignal): Promise<Execution<AirwallexPresentation | T>>;
915
+ cancel(no: string, executionNo: string, idempotencyKey: string, signal?: AbortSignal): Promise<Cancellation>;
916
+ complete(no: string, expectedRevision: number, idempotencyKey: string, signal?: AbortSignal): Promise<Completion>;
917
+ }
918
+ interface RegisteredCheckoutClient<T extends Presentation = never> extends CheckoutClient<T> {
919
+ revise(no: string, input: ReviseInput, idempotencyKey: string, signal?: AbortSignal): Promise<RevisionResult>;
920
+ assertMethod(method: CheckoutMethod, execution: Execution<AirwallexPresentation | T>): void;
921
+ }
922
+ type ClientOptions = Omit<CheckoutClientOptions, "presentations">;
923
+ type DecoderList = readonly PresentationDecoder<Presentation>[];
924
+ declare function createCheckoutClient<const Decoders extends DecoderList>(options: ClientOptions & {
925
+ presentations: Decoders;
926
+ }): RegisteredCheckoutClient<Decoded<Decoders>>;
927
+ declare function createCheckoutClient(options: ClientOptions & {
928
+ presentations?: undefined;
929
+ }): RegisteredCheckoutClient;
930
+ declare function createCheckoutClient<const Decoders extends DecoderList>(options: ClientOptions & {
931
+ presentations?: Decoders | undefined;
932
+ }): RegisteredCheckoutClient<Decoded<Decoders>>;
933
+ declare function createCheckoutClient<T extends Presentation = never>(options: CheckoutClientOptions<T>): RegisteredCheckoutClient<T>;
934
+
935
+ interface PayerValues extends BillingAddress {
936
+ cardholder_name?: string;
937
+ phone_number?: string;
938
+ }
939
+ declare const definitions: readonly [{
940
+ readonly code: "cardholder_name";
941
+ readonly key: "cardholder_name";
942
+ readonly autocomplete: "cc-name";
943
+ readonly maxLength: 120;
944
+ }, {
945
+ readonly code: "phone_number";
946
+ readonly key: "phone_number";
947
+ readonly autocomplete: "tel";
948
+ }, {
949
+ readonly code: "billing_line1";
950
+ readonly key: "line1";
951
+ readonly autocomplete: "address-line1";
952
+ }, {
953
+ readonly code: "billing_line2";
954
+ readonly key: "line2";
955
+ readonly autocomplete: "address-line2";
956
+ }, {
957
+ readonly code: "billing_city";
958
+ readonly key: "city";
959
+ readonly autocomplete: "address-level2";
960
+ }, {
961
+ readonly code: "billing_country";
962
+ readonly key: "country";
963
+ readonly autocomplete: "country";
964
+ }, {
965
+ readonly code: "billing_region";
966
+ readonly key: "state";
967
+ readonly autocomplete: "address-level1";
968
+ }, {
969
+ readonly code: "billing_postal_code";
970
+ readonly key: "postal_code";
971
+ readonly autocomplete: "postal-code";
972
+ }];
973
+ type PayerField = (typeof definitions)[number] & {
974
+ required: boolean;
975
+ };
976
+ declare function collectPayerFields(fields: CheckoutMethod["checkout_fields"], country?: string): PayerField[];
977
+ declare function isCardholderNameValid(name: string): boolean;
978
+ declare function hasValidPayerValues(fields: readonly PayerField[], values: PayerValues): boolean;
979
+ declare function billingAddressInput(fields: readonly PayerField[], values: PayerValues): BillingAddress | undefined;
980
+ declare function supportsPayerFields(fields: CheckoutMethod["checkout_fields"]): boolean;
981
+
982
+ export { CheckoutProtocolError, airwallexEnvironment, airwallexMethods, airwallexSession, assertExecutionMethod, billingAddressInput, collectPayerFields, createCheckoutClient, hasValidPayerValues, isCardholderNameValid, parsePresentation, supportsPayerFields };
983
+ export type { AirwallexPresentation, BillingAddress, Cancellation, CheckoutClient, CheckoutClientOptions, CheckoutField, CheckoutMethod, Completion, Execution, PayerField, PayerValues, PaymentMethods, Presentation, PresentationContext, PresentationDecoder, ProtocolErrorCode, PurchaseOption, RegisteredCheckoutClient, ReviseInput, RevisionResult, SessionState, StartInput };