@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.
- package/dist/frame/element-frame.js +35 -1
- package/dist/frame/element-frame.js.map +1 -1
- package/dist/frame/tokenizer-frame.js +111 -50
- package/dist/frame/tokenizer-frame.js.map +1 -1
- package/dist/oz-elements.esm.js +101 -68
- package/dist/oz-elements.esm.js.map +1 -1
- package/dist/oz-elements.umd.js +101 -68
- package/dist/oz-elements.umd.js.map +1 -1
- package/dist/react/frame/elementFrame.d.ts +7 -0
- package/dist/react/frame/tokenizerFrame.d.ts +4 -1
- package/dist/react/index.cjs.js +101 -68
- package/dist/react/index.cjs.js.map +1 -1
- package/dist/react/index.esm.js +101 -68
- package/dist/react/index.esm.js.map +1 -1
- package/dist/react/sdk/OzElement.d.ts +3 -1
- package/dist/react/sdk/OzVault.d.ts +3 -9
- package/dist/react/server/index.d.ts +11 -0
- package/dist/react/types/index.d.ts +29 -10
- package/dist/server/frame/elementFrame.d.ts +7 -0
- package/dist/server/frame/tokenizerFrame.d.ts +4 -1
- package/dist/server/index.cjs.js +14 -11
- package/dist/server/index.cjs.js.map +1 -1
- package/dist/server/index.esm.js +14 -11
- package/dist/server/index.esm.js.map +1 -1
- package/dist/server/sdk/OzElement.d.ts +3 -1
- package/dist/server/sdk/OzVault.d.ts +3 -9
- package/dist/server/server/index.d.ts +11 -0
- package/dist/server/types/index.d.ts +29 -10
- package/dist/types/frame/elementFrame.d.ts +7 -0
- package/dist/types/frame/tokenizerFrame.d.ts +4 -1
- package/dist/types/sdk/OzElement.d.ts +3 -1
- package/dist/types/sdk/OzVault.d.ts +3 -9
- package/dist/types/server/index.d.ts +11 -0
- package/dist/types/types/index.d.ts +29 -10
- 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
|
-
/**
|
|
422
|
-
|
|
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
|
-
/**
|
|
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.
|
|
448
|
+
/** E.164 format, max 50 chars. Required by the Pay API; optional here for flexibility. */
|
|
430
449
|
billingPhone?: string;
|
|
431
|
-
/**
|
|
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
|
-
/**
|
|
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.
|
|
456
|
+
/** 2-letter state/province code. Required by the Pay API; optional here for flexibility. */
|
|
438
457
|
billingState?: string;
|
|
439
|
-
/**
|
|
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.
|
|
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",
|