@revenuecat/purchases-js 1.62.0 → 1.63.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/Purchases.es.d.ts +23 -2
- package/dist/Purchases.es.js +8509 -8170
- package/dist/Purchases.umd.js +133 -126
- package/package.json +2 -2
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -47,7 +47,8 @@ declare enum BackendErrorCode {
|
|
|
47
47
|
BackendGatewaySetupErrorMissingRequiredPermission = 7900,
|
|
48
48
|
BackendGatewaySetupErrorSandboxModeOnly = 7901,
|
|
49
49
|
BackendInvalidPaddleAPIKey = 7967,
|
|
50
|
-
BackendQuickPurchaseUnavailable = 8172
|
|
50
|
+
BackendQuickPurchaseUnavailable = 8172,
|
|
51
|
+
BackendGatewaySetupErrorInvalidTaxOriginAddressDuringCheckout = 8174
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
/**
|
|
@@ -487,9 +488,12 @@ declare enum LocalizationKeys {
|
|
|
487
488
|
PaymentEntryPagePaymentStepTitle = "payment_entry_page.payment_step_title",
|
|
488
489
|
PaymentEntryPageTrialSubscriptionTermsInfo = "payment_entry_page.trial_subscription_terms_info",
|
|
489
490
|
PaymentEntryPageSubscriptionTermsInfo = "payment_entry_page.subscription_terms_info",
|
|
491
|
+
PaymentEntryPageSubscriptionTermsInfoWithoutAppName = "payment_entry_page.subscription_terms_info_without_app_name",
|
|
490
492
|
PaymentEntryPageOtpTermsInfo = "payment_entry_page.otp_terms_info",
|
|
493
|
+
PaymentEntryPageOtpTermsInfoWithoutAppName = "payment_entry_page.otp_terms_info_without_app_name",
|
|
491
494
|
PaymentEntryPageTermsLinkLabel = "payment_entry_page.terms_link_label",
|
|
492
495
|
PaymentEntryPageCheckoutConsentAgreement = "payment_entry_page.checkout_consent_agreement",
|
|
496
|
+
PaymentEntryPageCheckoutConsentAgreementWithoutAppName = "payment_entry_page.checkout_consent_agreement_without_app_name",
|
|
493
497
|
PaymentEntryPageCheckoutConsentTermsOfService = "payment_entry_page.checkout_consent_terms_of_service",
|
|
494
498
|
PaymentEntryPageSubscriptionInfo = "payment_entry_page.subscription_info",
|
|
495
499
|
PaymentEntryPageButtonPay = "payment_entry_page.button_pay",
|
|
@@ -497,6 +501,8 @@ declare enum LocalizationKeys {
|
|
|
497
501
|
PaymentEntryPageButtonWithPrice = "payment_entry_page.button_with_price",
|
|
498
502
|
PaymentEntryPageButtonPaymentMethod = "payment_entry_page.button_payment_method",
|
|
499
503
|
PaymentEntryPageExpressCheckoutDivider = "payment_entry_page.express_checkout_divider",
|
|
504
|
+
PaymentEntryPagePaymentMethodError = "payment_entry_page.payment_method_error",
|
|
505
|
+
PaymentEntryPagePaymentMethodErrorCardNotSupported = "payment_entry_page.payment_method_error_card_not_supported",
|
|
500
506
|
SuccessPagePurchaseSuccessful = "success_page.purchase_successful",
|
|
501
507
|
SuccessPageButtonClose = "success_page.button_close",
|
|
502
508
|
LoadingPageProcessingPayment = "loading_page.processing_payment",
|
|
@@ -521,6 +527,7 @@ declare enum LocalizationKeys {
|
|
|
521
527
|
ErrorPageErrorMessageInvalidTaxLocation = "error_page.error_message_invalid_tax_location",
|
|
522
528
|
ErrorPageErrorMessageStripeTaxNotActive = "error_page.error_message_stripe_tax_not_active",
|
|
523
529
|
ErrorPageErrorMessageStripeInvalidTaxOriginAddress = "error_page.error_message_stripe_invalid_tax_origin_address",
|
|
530
|
+
ErrorPageErrorMessageStripeInvalidTaxOriginAddressDuringCheckout = "error_page.error_message_stripe_invalid_tax_origin_address_during_checkout",
|
|
524
531
|
ErrorPageErrorMessageStripeMissingRequiredPermission = "error_page.error_message_stripe_missing_required_permission",
|
|
525
532
|
ErrorPageErrorMessageOnlyInSandbox = "error_page.error_only_in_sandbox",
|
|
526
533
|
ErrorButtonTryAgain = "error_page.button_try_again",
|
|
@@ -857,6 +864,8 @@ export declare const PAYWALL_COMPONENT_TYPES: {
|
|
|
857
864
|
/**
|
|
858
865
|
* A paywall control interaction, as passed to `PaywallListener.onInteraction`. Keys that do not apply
|
|
859
866
|
* are omitted.
|
|
867
|
+
*
|
|
868
|
+
* See https://rev.cat/paywall-interaction-events for what each component type sends.
|
|
860
869
|
* @public
|
|
861
870
|
*/
|
|
862
871
|
export declare interface PaywallInteractionEvent {
|
|
@@ -1416,7 +1425,8 @@ declare enum PurchaseFlowErrorCode {
|
|
|
1416
1425
|
StripeTaxNotActive = 6,
|
|
1417
1426
|
StripeInvalidTaxOriginAddress = 7,
|
|
1418
1427
|
StripeMissingRequiredPermission = 8,
|
|
1419
|
-
InvalidPaddleAPIKeyError = 9
|
|
1428
|
+
InvalidPaddleAPIKeyError = 9,
|
|
1429
|
+
StripeInvalidTaxOriginAddressDuringCheckout = 10
|
|
1420
1430
|
}
|
|
1421
1431
|
|
|
1422
1432
|
/**
|
|
@@ -1604,6 +1614,7 @@ export declare class Purchases {
|
|
|
1604
1614
|
/* Excluded from this release type: eventsTracker */
|
|
1605
1615
|
/* Excluded from this release type: _platformInfo */
|
|
1606
1616
|
/* Excluded from this release type: inMemoryCache */
|
|
1617
|
+
/* Excluded from this release type: offeringsRequests */
|
|
1607
1618
|
/* Excluded from this release type: cachedCurrentOffering */
|
|
1608
1619
|
/* Excluded from this release type: stripeBillingQuickPurchaseState */
|
|
1609
1620
|
/* Excluded from this release type: stripeBillingQuickPurchasePreparation */
|
|
@@ -1684,6 +1695,13 @@ export declare class Purchases {
|
|
|
1684
1695
|
* @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}
|
|
1685
1696
|
*/
|
|
1686
1697
|
getOfferings(params?: GetOfferingsParams): Promise<Offerings>;
|
|
1698
|
+
/**
|
|
1699
|
+
* Invalidates the cached offerings response for the current user.
|
|
1700
|
+
* The next call to {@link Purchases.getOfferings} or
|
|
1701
|
+
* {@link Purchases.getCurrentOfferingForPlacement} will fetch the latest
|
|
1702
|
+
* offerings from the network.
|
|
1703
|
+
*/
|
|
1704
|
+
invalidateOfferingsCache(): void;
|
|
1687
1705
|
/**
|
|
1688
1706
|
* Tracks an impression for a custom paywall.
|
|
1689
1707
|
*
|
|
@@ -1705,6 +1723,9 @@ export declare class Purchases {
|
|
|
1705
1723
|
* @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}
|
|
1706
1724
|
*/
|
|
1707
1725
|
getCurrentOfferingForPlacement(placementIdentifier: string, params?: GetOfferingsParams): Promise<Offering | null>;
|
|
1726
|
+
private getOfferingsResponse;
|
|
1727
|
+
private clearOfferingsCache;
|
|
1728
|
+
private invalidateRequestDataCaches;
|
|
1708
1729
|
private findOfferingById;
|
|
1709
1730
|
private getAllOfferings;
|
|
1710
1731
|
private fetchProductsForOfferings;
|