@getsupertab/supertab-js 3.22.2 → 3.23.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/pkg/prod/{browser-ponyfill-B7i99W2t.js → browser-ponyfill-CeCiPlVw.js} +1 -1
- package/dist/pkg/prod/{sentry-BEkD22Mu.js → sentry-BMLGC_XW.js} +1 -1
- package/dist/pkg/prod/{supertab-BswlSX5f.js → supertab-C80IjRQ6.js} +2653 -2616
- package/dist/pkg/prod/supertab.d.ts +14 -0
- package/dist/pkg/prod/supertab.js +1 -1
- package/package.json +1 -1
|
@@ -374,6 +374,11 @@ declare type ConfigurationParameters = {
|
|
|
374
374
|
mockEnabled?: boolean;
|
|
375
375
|
} & SystemUrls;
|
|
376
376
|
|
|
377
|
+
declare interface CreatePurchaseResult {
|
|
378
|
+
startPurchase: () => Promise<PurchaseStateSummary>;
|
|
379
|
+
destroy: () => void;
|
|
380
|
+
}
|
|
381
|
+
|
|
377
382
|
declare interface Currency {
|
|
378
383
|
code: string;
|
|
379
384
|
name: string;
|
|
@@ -456,6 +461,8 @@ declare type PurchaseOfferingRequest = {
|
|
|
456
461
|
|
|
457
462
|
declare type PurchaseOfferingRequestClientFacing = RequireAtLeastOne<BaseForPurchaseOfferingRequestClientFacing, "offeringId" | "onetimeOfferingId" | "purchaseIntentId">;
|
|
458
463
|
|
|
464
|
+
declare type PurchaseStateSummary = ExperienceStateSummary;
|
|
465
|
+
|
|
459
466
|
declare enum PurchaseStatus {
|
|
460
467
|
COMPLETED = "completed",
|
|
461
468
|
PENDING = "pending",
|
|
@@ -508,6 +515,13 @@ export declare class Supertab extends SupertabClient {
|
|
|
508
515
|
destroy: () => void;
|
|
509
516
|
initialState?: undefined;
|
|
510
517
|
}>;
|
|
518
|
+
createPurchase({ offeringId, merchantName, merchantLogoUrl, language, purchaseMetadata, }: {
|
|
519
|
+
offeringId: string;
|
|
520
|
+
merchantName?: string;
|
|
521
|
+
merchantLogoUrl?: string;
|
|
522
|
+
language?: string;
|
|
523
|
+
purchaseMetadata?: Metadata;
|
|
524
|
+
}): Promise<CreatePurchaseResult>;
|
|
511
525
|
private renderButton;
|
|
512
526
|
private createPaygateContainer;
|
|
513
527
|
private createPurchaseButtonContainer;
|