@ozura/elements 1.2.0-next.26 → 1.2.0-next.28

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.
Files changed (35) hide show
  1. package/dist/frame/element-frame.js +35 -1
  2. package/dist/frame/element-frame.js.map +1 -1
  3. package/dist/frame/tokenizer-frame.js +111 -50
  4. package/dist/frame/tokenizer-frame.js.map +1 -1
  5. package/dist/oz-elements.esm.js +101 -68
  6. package/dist/oz-elements.esm.js.map +1 -1
  7. package/dist/oz-elements.umd.js +101 -68
  8. package/dist/oz-elements.umd.js.map +1 -1
  9. package/dist/react/frame/elementFrame.d.ts +7 -0
  10. package/dist/react/frame/tokenizerFrame.d.ts +4 -1
  11. package/dist/react/index.cjs.js +101 -68
  12. package/dist/react/index.cjs.js.map +1 -1
  13. package/dist/react/index.esm.js +101 -68
  14. package/dist/react/index.esm.js.map +1 -1
  15. package/dist/react/sdk/OzElement.d.ts +3 -1
  16. package/dist/react/sdk/OzVault.d.ts +3 -9
  17. package/dist/react/server/index.d.ts +11 -0
  18. package/dist/react/types/index.d.ts +29 -10
  19. package/dist/server/frame/elementFrame.d.ts +7 -0
  20. package/dist/server/frame/tokenizerFrame.d.ts +4 -1
  21. package/dist/server/index.cjs.js +14 -11
  22. package/dist/server/index.cjs.js.map +1 -1
  23. package/dist/server/index.esm.js +14 -11
  24. package/dist/server/index.esm.js.map +1 -1
  25. package/dist/server/sdk/OzElement.d.ts +3 -1
  26. package/dist/server/sdk/OzVault.d.ts +3 -9
  27. package/dist/server/server/index.d.ts +11 -0
  28. package/dist/server/types/index.d.ts +29 -10
  29. package/dist/types/frame/elementFrame.d.ts +7 -0
  30. package/dist/types/frame/tokenizerFrame.d.ts +4 -1
  31. package/dist/types/sdk/OzElement.d.ts +3 -1
  32. package/dist/types/sdk/OzVault.d.ts +3 -9
  33. package/dist/types/server/index.d.ts +11 -0
  34. package/dist/types/types/index.d.ts +29 -10
  35. package/package.json +1 -1
@@ -418,27 +418,46 @@ export interface CardSaleRequest {
418
418
  amount: string;
419
419
  /** ISO 4217, e.g. "USD". */
420
420
  currency: string;
421
- /** From TokenResponse.token */
422
- ozuraCardToken: string;
421
+ /**
422
+ * Who initiated the transaction. Required by the Pay API.
423
+ * - `'cit'` — Customer-Initiated Transaction (default for web checkouts).
424
+ * - `'mit'` — Merchant-Initiated (scheduled recurring charge, customer not present).
425
+ * - `'ucof'` — Unscheduled Credential-on-File (threshold billing, account-updater, etc.).
426
+ * - `'refund'` — Voids, returns, reversals (not a stored-credential use).
427
+ */
428
+ transactionInitiationType: 'cit' | 'mit' | 'ucof' | 'refund';
429
+ /**
430
+ * Channel through which the transaction is processed. Required by the Pay API.
431
+ * - `'ecommerce'` — Online, customer self-serve (default for web checkouts).
432
+ * - `'moto'` — Mail order / telephone order.
433
+ * - `'cardPresent'`— POS / in-person.
434
+ * - `'recurring'` — Scheduled MIT charge; never the initial CIT charge.
435
+ */
436
+ transactionChannel: 'cardPresent' | 'ecommerce' | 'moto' | 'recurring';
437
+ /** From TokenResponse.token. The vault token representing the stored card. */
438
+ ozuraVaultToken: string;
423
439
  /** From TokenResponse.cvcSession */
424
440
  ozuraCvcSession: string;
425
441
  billingFirstName: string;
426
442
  billingLastName: string;
427
- /** Optional but must be non-empty if provided — Pay API enforces minLength 1. Omit the key rather than send "". */
443
+ /**
444
+ * Required by the Pay API (minLength 1). Optional here so merchants can omit it
445
+ * in rare server-side-only flows, but the Pay API will reject the request if absent.
446
+ */
428
447
  billingEmail?: string;
429
- /** E.164 format, max 50 chars. Optional but must be non-empty if provided. */
448
+ /** E.164 format, max 50 chars. Required by the Pay API; optional here for flexibility. */
430
449
  billingPhone?: string;
431
- /** Optional but must be non-empty if provided. */
450
+ /** Required by the Pay API; optional here for flexibility. Must be non-empty if provided. */
432
451
  billingAddress1?: string;
433
- /** Omit entirely if blank — schema enforces minLength 1 if present. */
452
+ /** Omit entirely if blank — Pay API schema enforces minLength 1 if present. */
434
453
  billingAddress2?: string;
435
- /** Optional but must be non-empty if provided. */
454
+ /** Required by the Pay API; optional here for flexibility. Must be non-empty if provided. */
436
455
  billingCity?: string;
437
- /** 2-letter state/province code. Optional but must be non-empty if provided. */
456
+ /** 2-letter state/province code. Required by the Pay API; optional here for flexibility. */
438
457
  billingState?: string;
439
- /** Optional but must be non-empty if provided. */
458
+ /** Required by the Pay API; optional here for flexibility. Must be non-empty if provided. */
440
459
  billingZipcode?: string;
441
- /** ISO 3166-1 alpha-2. Defaults to 'US'. */
460
+ /** ISO 3166-1 alpha-2. Required by the Pay API. Defaults to 'US' in `Ozura.cardSale()`. */
442
461
  billingCountry?: string;
443
462
  /** Fetch from your server — use an internal route, not api.ipify.org (ad-blockers block it). */
444
463
  clientIpAddress: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozura/elements",
3
- "version": "1.2.0-next.26",
3
+ "version": "1.2.0-next.28",
4
4
  "description": "PCI-compliant card tokenization SDK for the Ozura Vault — collect card data in iframe-isolated fields and tokenize without PCI scope",
5
5
  "main": "dist/oz-elements.umd.js",
6
6
  "module": "dist/oz-elements.esm.js",