@vonpay/checkout-node 0.15.1 → 1.1.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.
package/dist/types.d.ts CHANGED
@@ -166,6 +166,97 @@ export interface ShippingAddress {
166
166
  country: string;
167
167
  }
168
168
  /** Response from GET /v1/sessions/:id */
169
+ /**
170
+ * Result of `sessions.confirmReturn()` — did this buyer actually pay?
171
+ *
172
+ * Exists because `verifyReturnSignature` answers a narrower question than most
173
+ * integrators think it does. It returns `true` for an **authentic** message,
174
+ * and a declined payment is signed just as authentically as an approved one.
175
+ * Reading that boolean as "they paid" is the single most expensive mistake
176
+ * available on this path, and every one of our own sample apps made it before
177
+ * 2026-08-17.
178
+ *
179
+ * ⚠️ `paid: true` does NOT mean "safe to fulfil". It means this buyer paid; it
180
+ * says nothing about whether you have ALREADY fulfilled this order. The status
181
+ * keeps reading `succeeded` on every replay of the same URL, so you must still
182
+ * record which session IDs you have fulfilled and refuse to fulfil one twice.
183
+ * Nothing in an SDK can do that for you — it needs your database.
184
+ */
185
+ export interface ReturnOutcome {
186
+ /**
187
+ * The one field to branch on: the SERVER reports this session succeeded.
188
+ *
189
+ * Determined by the authenticated session read, never by the redirect URL and
190
+ * never by the signature. See `signatureValid` for why that distinction is
191
+ * load-bearing rather than pedantic.
192
+ */
193
+ paid: boolean;
194
+ /**
195
+ * Whether the return URL's signature verified — `null` when no secret was
196
+ * supplied and no check was performed.
197
+ *
198
+ * ⚠️ THREE STATES, NOT TWO, ON PURPOSE. `false` means "checked and it failed";
199
+ * `null` means "not checked". Collapsing those is the bug class this whole
200
+ * type exists to prevent, and 1.0.0 shipped exactly that collapse in the
201
+ * other direction: a failed signature short-circuited to `paid: false` before
202
+ * the server was ever asked.
203
+ *
204
+ * That was fatal in practice, because the redirect is signed with a
205
+ * PLATFORM-WIDE secret no merchant holds or could safely be given — holding
206
+ * it would let any merchant forge any other merchant's confirmations. So the
207
+ * documented integration verified with a secret that could never match, every
208
+ * check failed, and every genuinely successful payment reported as unpaid.
209
+ *
210
+ * The signature is now optional hardening layered on top of the server read.
211
+ * It can tell you a URL looks tampered with; it can no longer stop you
212
+ * learning that the buyer paid.
213
+ */
214
+ signatureValid: boolean | null;
215
+ /** The session the return refers to. Absent when the URL carried no session id. */
216
+ sessionId?: string;
217
+ /**
218
+ * The AUTHORITATIVE status read from the server, not the status carried in
219
+ * the redirect URL. Absent when there was no session id to look up.
220
+ *
221
+ * Typed as the `SessionState` union, not a bare string: the single most
222
+ * important comparison in this flow is against this value, and a typo
223
+ * (`"suceeded"`) would otherwise compile clean and silently never match.
224
+ */
225
+ status?: SessionState;
226
+ /**
227
+ * Absent when `paid`. Otherwise which failure occurred — these need opposite
228
+ * responses, so they are distinguishable rather than collapsed into one
229
+ * falsy result.
230
+ *
231
+ * Note there is no longer an `"invalid_signature"` value: a bad signature no
232
+ * longer decides whether the buyer paid, so it cannot be the reason they did
233
+ * not. Read `signatureValid` for that, independently of `paid`.
234
+ */
235
+ reason?: "missing_session" | "not_succeeded" | "still_pending";
236
+ /**
237
+ * The amount, in the smallest currency unit, as reported by the SERVER.
238
+ *
239
+ * ⚠️ Render THIS, never `params.amount` from the redirect. The query string is
240
+ * buyer-controlled and unauthenticated: anyone can complete a real 1-unit
241
+ * payment, edit `amount` in their own return URL, and screenshot a
242
+ * "confirmation" for any figure they like, on your real domain over your real
243
+ * TLS. Two independent security reviews traced that exact path, and its root
244
+ * cause was this field's absence — `confirmReturn` already fetched the
245
+ * authenticated value and then discarded it, leaving integrators no honest
246
+ * source to render from.
247
+ *
248
+ * Absent when there was no session to look up.
249
+ */
250
+ amount?: number;
251
+ /** The currency, from the same authenticated read as {@link amount}. Render this, not the URL's. */
252
+ currency?: string;
253
+ /**
254
+ * The processor transaction id, from the authenticated read. Render this
255
+ * rather than `params.transaction_id` — a receipt showing an attacker-chosen
256
+ * reference is a ready-made dispute artefact.
257
+ */
258
+ transactionId?: string;
259
+ }
169
260
  export interface SessionStatus {
170
261
  id: string;
171
262
  status: SessionState;
@@ -234,6 +325,21 @@ export interface ChargeFailedData {
234
325
  failure_reason: string | null;
235
326
  /** Normalized decline code (e.g. `card_declined`, `insufficient_funds`). */
236
327
  failure_code: string | null;
328
+ /**
329
+ * Which of YOUR OWN rules refused this charge — the custom code you set on
330
+ * that rule in your provider dashboard. Present only when `failure_code` is
331
+ * `blocked_by_rule`; `null` on every other outcome.
332
+ *
333
+ * This is what lets you tell one of your rules from another: a brand rule and
334
+ * a country rule produce the identical `failure_code`, and only this field
335
+ * separates them. Without it, "we don't take Amex" and "we don't ship to your
336
+ * country" are indistinguishable, so both fall through to a generic message.
337
+ *
338
+ * `null` on a `blocked_by_rule` decline usually means the rule has no custom
339
+ * code set — nothing on the wire distinguishes one unnamed rule from another.
340
+ * Also `null` on providers that don't report rule refusals separately.
341
+ */
342
+ rule_code: string | null;
237
343
  /** Raw ISO-8583 network decline code (e.g. `05`, `51`) for issuer debugging. */
238
344
  network_decline_code: string | null;
239
345
  card: WebhookCard | null;
@@ -243,13 +349,76 @@ export interface ChargeRefundedData {
243
349
  payment_intent_id: string | null;
244
350
  transaction_id: string | null;
245
351
  refund_id: string | null;
352
+ /**
353
+ * ⚠️ **Ambiguous across connectors — prefer the two fields below.** Some
354
+ * binders put the CUMULATIVE refunded total here, others put THIS refund's
355
+ * delta. They agree only on the first refund of a charge. The wire cannot
356
+ * tell you which one you are reading.
357
+ */
246
358
  amount: number | null;
359
+ /**
360
+ * The amount THIS event moved, in minor units — never cumulative.
361
+ * `null` when the emitting connector genuinely cannot derive it; never
362
+ * guessed, and never silently absent (a missing key reads as zero to a
363
+ * careless consumer, which on a refund amount is the expensive direction).
364
+ */
365
+ refund_amount: number | null;
366
+ /**
367
+ * Total refunded against the parent charge INCLUDING this event, in minor
368
+ * units. Answers "is this charge now fully refunded?" without accumulating
369
+ * state. `null` when the connector cannot derive it.
370
+ */
371
+ amount_refunded_total: number | null;
247
372
  currency: string | null;
248
373
  reason: string | null;
374
+ /**
375
+ * ⚠️ **Inherits the `amount` ambiguity — do not trust it on a second partial
376
+ * refund.** Each connector computes it from whichever amount it holds, so a
377
+ * 100 charge refunded 60 then 40 is fully refunded but some connectors still
378
+ * report `true` on the second event. Compare `refund_amount` /
379
+ * `amount_refunded_total` against `original_charge_amount` yourself.
380
+ */
249
381
  is_partial: boolean | null;
250
382
  original_charge_amount: number | null;
251
383
  card: WebhookCard | null;
252
384
  }
385
+ /**
386
+ * The failure twin of `charge.refunded` — a refund that could not be
387
+ * completed. **No money moved on this event**: `amount` is the reversal
388
+ * amount that FAILED to move.
389
+ *
390
+ * Mirrors `charge.refunded`'s shape deliberately, so one row-mapping function
391
+ * can serve both, plus the two fields unique to a failure.
392
+ */
393
+ export interface RefundFailedData {
394
+ session_id: string | null;
395
+ payment_intent_id: string | null;
396
+ transaction_id: string | null;
397
+ refund_id: string | null;
398
+ /** See {@link ChargeRefundedData.amount} — same ambiguity. */
399
+ amount: number | null;
400
+ /** See {@link ChargeRefundedData.refund_amount}. */
401
+ refund_amount: number | null;
402
+ /** See {@link ChargeRefundedData.amount_refunded_total}. */
403
+ amount_refunded_total: number | null;
404
+ currency: string | null;
405
+ reason: string | null;
406
+ /**
407
+ * Connector-agnostic refund-failure code from a LOCKED two-value set:
408
+ * `"refund_declined"` (the gateway returned a terminal decline) or
409
+ * `"refund_unresolved"` (no provider response — the state is unknown).
410
+ *
411
+ * This is a REFUND vocabulary, distinct from the payment-decline
412
+ * `failure_code` on `charge.failed`.
413
+ */
414
+ reason_code: string | null;
415
+ /** See {@link ChargeRefundedData.is_partial} — same caveat. */
416
+ is_partial: boolean | null;
417
+ original_charge_amount: number | null;
418
+ /** Whether a merchant retry may be attempted for this refund. */
419
+ retry_available: boolean | null;
420
+ card: WebhookCard | null;
421
+ }
253
422
  export interface PaymentIntentSucceededData {
254
423
  session_id: string | null;
255
424
  payment_intent_id: string | null;
@@ -265,6 +434,8 @@ export interface PaymentIntentFailedData {
265
434
  currency: string | null;
266
435
  failure_reason: string | null;
267
436
  failure_code: string | null;
437
+ /** See {@link ChargeFailedData.rule_code} — identical semantics. */
438
+ rule_code: string | null;
268
439
  network_decline_code: string | null;
269
440
  }
270
441
  export interface PaymentIntentCancelledData {
@@ -290,6 +461,8 @@ export interface SessionFailedData {
290
461
  currency: string | null;
291
462
  failure_reason: string | null;
292
463
  failure_code: string | null;
464
+ /** See {@link ChargeFailedData.rule_code} — identical semantics. */
465
+ rule_code: string | null;
293
466
  network_decline_code: string | null;
294
467
  }
295
468
  export interface DisputeData {
@@ -316,7 +489,7 @@ export interface PayoutData {
316
489
  * vonpay-checkout/src/lib/webhook-events-catalog.ts. This union is the
317
490
  * source of truth for the coherence guard.
318
491
  */
319
- export type WebhookEventType = "charge.succeeded" | "charge.failed" | "charge.refunded" | "payment_intent.succeeded" | "payment_intent.failed" | "payment_intent.cancelled" | "session.succeeded" | "session.failed" | "dispute.created" | "dispute.won" | "dispute.lost" | "application.approved" | "application.denied" | "merchant.ready_for_payments" | "payout.paid" | "payout.failed";
492
+ export type WebhookEventType = "charge.succeeded" | "charge.failed" | "charge.refunded" | "refund.failed" | "payment_intent.succeeded" | "payment_intent.failed" | "payment_intent.cancelled" | "session.succeeded" | "session.failed" | "dispute.created" | "dispute.won" | "dispute.lost" | "application.approved" | "application.denied" | "merchant.ready_for_payments" | "payout.paid" | "payout.failed";
320
493
  /** Common outbound envelope; the discriminant is `type`. */
321
494
  interface WebhookEventEnvelope<TType extends WebhookEventType, TData> {
322
495
  /** vp_evt_* — unique per outbound event; dedupe on this (handlers must be
@@ -333,6 +506,7 @@ interface WebhookEventEnvelope<TType extends WebhookEventType, TData> {
333
506
  export type ChargeSucceededEvent = WebhookEventEnvelope<"charge.succeeded", ChargeSucceededData>;
334
507
  export type ChargeFailedEvent = WebhookEventEnvelope<"charge.failed", ChargeFailedData>;
335
508
  export type ChargeRefundedEvent = WebhookEventEnvelope<"charge.refunded", ChargeRefundedData>;
509
+ export type RefundFailedEvent = WebhookEventEnvelope<"refund.failed", RefundFailedData>;
336
510
  export type PaymentIntentSucceededEvent = WebhookEventEnvelope<"payment_intent.succeeded", PaymentIntentSucceededData>;
337
511
  export type PaymentIntentFailedEvent = WebhookEventEnvelope<"payment_intent.failed", PaymentIntentFailedData>;
338
512
  export type PaymentIntentCancelledEvent = WebhookEventEnvelope<"payment_intent.cancelled", PaymentIntentCancelledData>;
@@ -365,7 +539,7 @@ export type PayoutFailedEvent = WebhookEventEnvelope<"payout.failed", PayoutData
365
539
  * was never built server-side, so no merchant ever received one. Do not
366
540
  * restore it speculatively.
367
541
  */
368
- export type WebhookEvent = ChargeSucceededEvent | ChargeFailedEvent | ChargeRefundedEvent | PaymentIntentSucceededEvent | PaymentIntentFailedEvent | PaymentIntentCancelledEvent | SessionSucceededEvent | SessionFailedEvent | DisputeCreatedEvent | DisputeWonEvent | DisputeLostEvent | ApplicationApprovedEvent | ApplicationDeniedEvent | MerchantReadyForPaymentsEvent | PayoutPaidEvent | PayoutFailedEvent;
542
+ export type WebhookEvent = ChargeSucceededEvent | ChargeFailedEvent | ChargeRefundedEvent | RefundFailedEvent | PaymentIntentSucceededEvent | PaymentIntentFailedEvent | PaymentIntentCancelledEvent | SessionSucceededEvent | SessionFailedEvent | DisputeCreatedEvent | DisputeWonEvent | DisputeLostEvent | ApplicationApprovedEvent | ApplicationDeniedEvent | MerchantReadyForPaymentsEvent | PayoutPaidEvent | PayoutFailedEvent;
369
543
  /**
370
544
  * A webhook envelope whose `type` is not modeled by this SDK version
371
545
  * (forward-compatibility). `constructEvent` still returns it — signature
@@ -419,16 +593,90 @@ export interface RedirectToUrlAction {
419
593
  *
420
594
  * Named `PaymentIntentNextAction` (not `NextAction`) to avoid colliding with
421
595
  * the unrelated error-self-heal {@link NextAction} exported from `error-help`.
596
+ *
597
+ * ⛔ THIS VALUE IS TRANSIENT. CAPTURE IT FROM THIS RESPONSE OR IT IS GONE.
598
+ *
599
+ * It is returned on the response to the call that CREATES the payment, and
600
+ * nowhere else. It is never persisted — the payment-intent row has no column
601
+ * for it — so `GET /v1/payment_intents/:id` omits it by design: that endpoint
602
+ * returns persisted state, and the challenge handle is not persisted state.
603
+ * (This SDK does not expose that read at all — `paymentIntents` has only
604
+ * `create`, `capture` and `void` — so polling it means hand-rolling the
605
+ * request, and it will never carry this field.)
606
+ *
607
+ * No webhook carries it either: the outbound catalog fires
608
+ * `payment_intent.succeeded`, `payment_intent.failed` and
609
+ * `payment_intent.cancelled`, and has no `requires_action` event. An
610
+ * idempotent replay of the original call returns `status: "requires_action"`
611
+ * with `next_action: null`. So there is NO recovery path — capture it here.
612
+ *
613
+ * WHAT HAPPENS IF YOU DO NOT. The intent stays in `requires_action`; nothing
614
+ * on our side times it out. It leaves that state only when the provider
615
+ * reports a terminal outcome, which our reconciler then records — in the
616
+ * production case below, hours later. The buyer is never shown a challenge, so
617
+ * the sale is simply lost.
618
+ *
619
+ * ⚠️ If you create your order BEFORE charging, the order is NOT tidied up for
620
+ * you while this is pending — our order sweep deliberately counts
621
+ * `requires_action` as charged and will never cancel on it. It is only once
622
+ * the intent flips to `failed` that the order is swept as abandoned. From the
623
+ * buyer's side the order went through and later vanished.
624
+ *
625
+ * This has happened in production to an integration that polled the intent
626
+ * instead of reading this field, so treat the warning as a report rather than
627
+ * a caution.
628
+ *
629
+ * (On a gateway that also returns `client_confirm`, the browser can drive the
630
+ * same challenge from that handle instead — so "the payment stops" is exact
631
+ * only when this is the sole handle you were given. Do not rely on that
632
+ * without checking which your gateway returns.)
422
633
  */
423
634
  export type PaymentIntentNextAction = RedirectToUrlAction;
635
+ /**
636
+ * The shape returned by the payment-intent CREATE and CONFIRM responses.
637
+ *
638
+ * ⚠️ Not every field survives a later read. `GET /v1/payment_intents/:id`
639
+ * returns persisted state only, so the transient binder-response fields —
640
+ * {@link PaymentIntent.nextAction} above all — are absent there. The name
641
+ * `PaymentIntent` reads like a durable resource; the challenge handle on it is
642
+ * not. See {@link PaymentIntentNextAction}.
643
+ */
424
644
  export interface PaymentIntent {
425
645
  id: string;
426
646
  status: PaymentIntentStatus;
427
647
  amount: number;
428
648
  currency: string;
429
649
  captureMethod: "automatic" | "manual";
650
+ /**
651
+ * Present when `status === "requires_action"`. ⛔ Read it NOW — see
652
+ * {@link PaymentIntentNextAction}. It cannot be fetched again.
653
+ */
430
654
  nextAction: PaymentIntentNextAction | null;
431
655
  declineCode: string | null;
656
+ /**
657
+ * Which of YOUR OWN rules refused this charge. Present only when
658
+ * `declineCode` is `blocked_by_rule`; `null` otherwise. See
659
+ * {@link ChargeFailedData.rule_code} for the full semantics — this is the
660
+ * same value on the resource rather than on the webhook.
661
+ *
662
+ * ⛔ Server-side only. Never returned to the buyer's browser: it describes
663
+ * your configuration, and exposing it would let anyone holding your
664
+ * publishable key enumerate which cards and countries you refuse.
665
+ */
666
+ ruleCode: string | null;
667
+ /**
668
+ * The EFFECTIVE buyer this charge was attributed to — the buyer the stored
669
+ * `paymentMethod` was saved for when it carries one, else the `buyerId` you
670
+ * sent. Those are not always the same value, which is the whole reason to
671
+ * read it back: a rebill against a stored card is attributed to the card's
672
+ * saved buyer. Absent when neither applies.
673
+ */
674
+ buyerId?: string;
675
+ /**
676
+ * Echoes the `buyerEmail` you sent, confirming it was accepted for buyer
677
+ * attribution. Absent when you did not send one.
678
+ */
679
+ buyerEmail?: string;
432
680
  createdAt: string;
433
681
  metadata: Record<string, string>;
434
682
  }
@@ -634,12 +882,79 @@ export interface CreatePaymentIntentParams {
634
882
  * direct-charge flows; optional for hosted / SetupIntent flows.
635
883
  */
636
884
  paymentMethod?: PaymentMethodRef;
885
+ /**
886
+ * Id of the checkout session this charge belongs to. **Send it whenever the
887
+ * payment originated from a session** — it is what arms the server's
888
+ * double-charge guard: if that session already charged the buyer at submit
889
+ * time (embedded card fields with charge-at-submit enabled), this request is
890
+ * refused instead of billing the card a second time.
891
+ *
892
+ * Not stored on the payment, and ignored when the session did not already
893
+ * charge — so it is safe to always send. Wire field `session_id`.
894
+ */
895
+ sessionId?: string;
896
+ /**
897
+ * Your own customer reference — the same value passed as `buyerId` when
898
+ * creating the checkout session.
899
+ *
900
+ * **This is a protection, and it only applies when you send it.** When a
901
+ * stored `paymentMethod` was saved against a buyer, the server requires this
902
+ * to match the buyer the card was saved for; a mismatch returns
903
+ * `404 payment_method_not_found`. That is what stops a saved card being
904
+ * charged against the WRONG customer — so send it on every charge against a
905
+ * saved card. Omit it for guest or one-off charges; tokens saved with no
906
+ * buyer on file are unrestricted.
907
+ *
908
+ * It also links the charge to the buyer record for dashboard/analytics
909
+ * attribution, and is passed to your payment provider so recurring charges
910
+ * are identifiable in their dashboard. Both are best-effort and never block
911
+ * the charge. When the stored `paymentMethod` already carries a buyer, that
912
+ * saved buyer wins for attribution and is echoed back as the effective
913
+ * buyer. Wire field `buyer_id`.
914
+ */
915
+ buyerId?: string;
916
+ /**
917
+ * Buyer email for this charge — same semantics as `buyerEmail` on session
918
+ * create, for flows that start from a payment intent rather than a session.
919
+ * Wire field `buyer_email`.
920
+ */
921
+ buyerEmail?: string;
637
922
  }
638
923
  export interface CapturePaymentIntentParams {
639
924
  /** Optional partial-capture amount in minor units. Omit to capture the full authorized amount. */
640
925
  amountToCapture?: number;
641
926
  }
642
- export type RefundStatus = "pending" | "succeeded" | "failed";
927
+ /**
928
+ * A refund's own lifecycle. Mirrors the `Refund.status` enum in the served
929
+ * production spec (`openapi.yaml` -> `components.schemas.Refund.status`) and
930
+ * `vonpay-checkout/src/lib/db/refunds.ts`.
931
+ *
932
+ * ⛔ **`requested` means IN PROGRESS — do not retry.** `POST /v1/refunds`
933
+ * answers **202 + `requested`** when the provider settles refunds
934
+ * asynchronously: the refund is real and accepted, the money has not moved
935
+ * yet. Retrying issues a SECOND refund and the buyer is paid twice, out of
936
+ * your balance. Resolve it by subscribing to `charge.refunded` (completed) or
937
+ * `refund.failed` (did not) — there is no refund-retrieve endpoint to poll.
938
+ *
939
+ * ⚠️ **`pending` was never a real value and has been removed.** Through 1.0.0
940
+ * this union read `"pending" | "succeeded" | "failed"`. The server has never
941
+ * returned `pending`, and it did not contain `requested` or `canceled`, both
942
+ * of which the server DOES return. A `switch` written against the old union
943
+ * had no branch for the one value whose documented handling is "do not
944
+ * retry", and the compiler could not warn because the type said it could not
945
+ * occur. If you were matching on `"pending"`, match on `"requested"`.
946
+ */
947
+ export declare const REFUND_STATUSES: readonly ["requested", "succeeded", "failed", "canceled"];
948
+ /**
949
+ * A refund's own lifecycle, derived from {@link REFUND_STATUSES}.
950
+ *
951
+ * ⚠️ Derived from a runtime array ON PURPOSE, not written as a bare literal
952
+ * union. `tsconfig` excludes test files from `typecheck`, so a type-only
953
+ * assertion in a test file is never compiled and pins nothing — a future
954
+ * revert of this union would pass every gate in this repo. Anchoring the type
955
+ * to a value gives the test something it can actually execute.
956
+ */
957
+ export type RefundStatus = (typeof REFUND_STATUSES)[number];
643
958
  export interface Refund {
644
959
  id: string;
645
960
  paymentIntent: string;
@@ -687,6 +1002,52 @@ export interface TokenCard {
687
1002
  * Stripe-aligned semantics (matches Stripe's `setup_future_usage`).
688
1003
  */
689
1004
  export type SetupForFutureUse = "on_session" | "off_session";
1005
+ /**
1006
+ * Whether the buyer agreed this card may be **shown back to them** in a later
1007
+ * checkout — a different permission from {@link SetupForFutureUse}, which is
1008
+ * whether you may **charge** it again. Agreeing to a subscription is not
1009
+ * agreeing to see that card offered on an unrelated purchase months later,
1010
+ * so the two are captured separately.
1011
+ *
1012
+ * - `"always"` — may be displayed. **The only value that makes a card appear
1013
+ * in `GET /v1/public/sessions/{sessionId}/payment_methods`**, which is the
1014
+ * endpoint the browser SDK's `saved-methods` picker reads. A card saved with
1015
+ * any other value is invisible to that picker.
1016
+ * - `"limited"` — saved for one specific arrangement (a subscription); never
1017
+ * offer it back as a general saved card.
1018
+ * - `"unspecified"` — you did not ask the buyer. Grants nothing.
1019
+ *
1020
+ * ⚠️ **Recorded ONLY when a card is first saved, and never addable afterwards**
1021
+ * — the same one-way door as {@link SetupForFutureUse}. A card saved without
1022
+ * `"always"` can never be shown back to its owner, for the life of the token.
1023
+ * There is no later call that can add it.
1024
+ *
1025
+ * Stripe-aligned semantics (matches Stripe's `allow_redisplay`).
1026
+ */
1027
+ export type AllowRedisplay = "always" | "limited" | "unspecified";
1028
+ /**
1029
+ * What a saved card will be used for, declared to the card networks at vault
1030
+ * time via {@link CreateTokenParams.storedCredentialUse}.
1031
+ *
1032
+ * Deliberately an ALIAS of {@link MITReason} rather than a parallel enum, so
1033
+ * the two vocabularies cannot textually diverge inside this SDK — the networks
1034
+ * expect the declaration made when the card is saved and the `mit.reason` sent
1035
+ * on every later charge to describe **one** arrangement.
1036
+ *
1037
+ * ⚠️ That is the whole of what the alias buys, and it is less than it sounds:
1038
+ * nothing here validates either value against the live API, and nothing stops
1039
+ * you declaring one arrangement at save and sending a different `mit.reason`
1040
+ * at charge — that mismatch is not detectable by the type system, or by us.
1041
+ *
1042
+ * - `recurring` — fixed amount on a fixed schedule (a subscription).
1043
+ * - `unscheduled` — variable amount or irregular timing (top-ups, usage bills).
1044
+ * - `installment` — a known total split into scheduled parts.
1045
+ *
1046
+ * ⚠️ Not every processor accepts every member. Declaring an arrangement the
1047
+ * merchant does not actually have — to win approvals — is a compliance
1048
+ * problem, not a configuration choice.
1049
+ */
1050
+ export type StoredCredentialUse = MITReason;
690
1051
  export interface Token {
691
1052
  id: string;
692
1053
  status: TokenStatus;
@@ -710,6 +1071,77 @@ export interface CreateTokenParams {
710
1071
  * resulting token.
711
1072
  */
712
1073
  setupForFutureUse?: SetupForFutureUse;
1074
+ /**
1075
+ * Whether the buyer agreed this card may be shown back to them in a later
1076
+ * checkout. See {@link AllowRedisplay}. This is the DISPLAY permission and is
1077
+ * distinct from `setupForFutureUse`, the CHARGE permission — one tick in your
1078
+ * UI may honestly grant both, but only if your label said so.
1079
+ *
1080
+ * **Omitting this is not neutral.** The contract asks for the field on every
1081
+ * save: `"unspecified"` is a real answer, an absent field is not. So when you
1082
+ * leave this undefined the SDK sends `"unspecified"` rather than dropping the
1083
+ * field — that grants nothing, exactly like omitting it, but records the
1084
+ * honest fact instead of a blank indistinguishable from a card saved before
1085
+ * the permission existed.
1086
+ *
1087
+ * Send `"always"` when your save-card control told the buyer their card would
1088
+ * be offered back to them; send `"limited"` when it covered only one
1089
+ * arrangement. There is deliberately no smarter default — inferring
1090
+ * `"always"` would over-grant a permission that cannot be revoked on the
1091
+ * token, and it cannot be added later.
1092
+ */
1093
+ allowRedisplay?: AllowRedisplay;
1094
+ /**
1095
+ * Three-letter currency code, used ONLY to run a **zero-amount card
1096
+ * verification** while saving the card.
1097
+ *
1098
+ * Saving a card normally creates no payment at all — so there is no payment
1099
+ * for the card networks to attach the "this card is stored for later use"
1100
+ * flag to, and a later merchant-initiated charge has nothing to anchor to.
1101
+ * Supplying a currency runs the save as a $0 verification carrying that flag.
1102
+ * No money moves and nothing is held.
1103
+ *
1104
+ * Optional and never defaulted — there is no correct fallback currency, so
1105
+ * omitting it simply keeps the plain save. Also requires the merchant to be
1106
+ * enabled for verification; when they are not, this field is accepted and
1107
+ * ignored.
1108
+ *
1109
+ * ⚠️ If the card is refused during verification it is **not** saved and the
1110
+ * response is `402` — ask the buyer for a different card.
1111
+ */
1112
+ currency?: string;
1113
+ /**
1114
+ * What the saved card will be used for, declared to the card networks.
1115
+ *
1116
+ * ⚠️ This is not a labelling nicety — the declared word can decide whether
1117
+ * later charges are APPROVED. Declaring the wrong arrangement, or leaving it
1118
+ * undeclared so the acquirer picks a default, can produce declines and
1119
+ * security-code demands on charges that would otherwise have succeeded.
1120
+ * Exact behaviour is acquirer-specific; test it on yours.
1121
+ *
1122
+ * Send the **same value** you will later send as `mit.reason` on
1123
+ * `payment_intents.create` — the networks expect the save and the subsequent
1124
+ * charges to describe one arrangement. See {@link MITReason}, which is the
1125
+ * same vocabulary on the charge side.
1126
+ *
1127
+ * ⚠️ **It is inert unless THREE things are all true**, and when they are not
1128
+ * it is accepted and silently ignored — no error, no warning field:
1129
+ *
1130
+ * 1. {@link CreateTokenParams.currency} is set (the zero-amount
1131
+ * verification is what carries the declaration to the network — with no
1132
+ * transaction there is nothing to attach it to);
1133
+ * 2. the token is attached to a buyer (`buyerId`, or a buyer identity the
1134
+ * server can resolve) — the verification needs someone to vault against;
1135
+ * 3. your account is enabled for zero-amount verification. This is **off by
1136
+ * default** and enabled per-merchant.
1137
+ *
1138
+ * So setting this field alone does NOT make the declaration. If you are
1139
+ * relying on it for a subscription product, confirm with support that (3) is
1140
+ * on for your account — otherwise your rebills are anchored to a save that
1141
+ * told the network nothing was stored, which is the failure this field
1142
+ * exists to prevent.
1143
+ */
1144
+ storedCredentialUse?: StoredCredentialUse;
713
1145
  metadata?: Record<string, string>;
714
1146
  }
715
1147
  export interface Capabilities {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,SAAS,CAAC,EAAE;QACV,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB;;;;;WAKG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,2DAA2D;AAC3D,MAAM,MAAM,aAAa,GAAG,CAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,oBAAoB,KAC1B,IAAI,CAAC;AAEV,oDAAoD;AACpD,MAAM,WAAW,oBAAoB;IACnC,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,GAAG,CAAC,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;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC"}
package/dist/types.js CHANGED
@@ -5,4 +5,25 @@
5
5
  * before changing.
6
6
  */
7
7
  export const MIRROR_CONTRACT_VERSION = "2026-05-15";
8
+ /**
9
+ * A refund's own lifecycle. Mirrors the `Refund.status` enum in the served
10
+ * production spec (`openapi.yaml` -> `components.schemas.Refund.status`) and
11
+ * `vonpay-checkout/src/lib/db/refunds.ts`.
12
+ *
13
+ * ⛔ **`requested` means IN PROGRESS — do not retry.** `POST /v1/refunds`
14
+ * answers **202 + `requested`** when the provider settles refunds
15
+ * asynchronously: the refund is real and accepted, the money has not moved
16
+ * yet. Retrying issues a SECOND refund and the buyer is paid twice, out of
17
+ * your balance. Resolve it by subscribing to `charge.refunded` (completed) or
18
+ * `refund.failed` (did not) — there is no refund-retrieve endpoint to poll.
19
+ *
20
+ * ⚠️ **`pending` was never a real value and has been removed.** Through 1.0.0
21
+ * this union read `"pending" | "succeeded" | "failed"`. The server has never
22
+ * returned `pending`, and it did not contain `requested` or `canceled`, both
23
+ * of which the server DOES return. A `switch` written against the old union
24
+ * had no branch for the one value whose documented handling is "do not
25
+ * retry", and the compiler could not warn because the type said it could not
26
+ * occur. If you were matching on `"pending"`, match on `"requested"`.
27
+ */
28
+ export const REFUND_STATUSES = ["requested", "succeeded", "failed", "canceled"];
8
29
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAmnBA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AA+2BA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC;AA+NpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonpay/checkout-node",
3
- "version": "0.15.1",
3
+ "version": "1.1.0",
4
4
  "description": "Von Payments Checkout SDK for Node.js",
5
5
  "license": "MIT",
6
6
  "type": "module",