@revenuecat/purchases-js 1.61.0 → 1.62.1

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.
@@ -21,6 +21,7 @@ declare enum BackendErrorCode {
21
21
  BackendProductIdForGoogleReceiptNotProvided = 7106,
22
22
  BackendInvalidPlayStoreCredentials = 7107,
23
23
  BackendInternalServerError = 7110,
24
+ BackendTooManyRequests = 7114,
24
25
  BackendEmptyAppUserId = 7220,
25
26
  BackendInvalidAuthToken = 7224,
26
27
  BackendInvalidAPIKey = 7225,
@@ -46,7 +47,8 @@ declare enum BackendErrorCode {
46
47
  BackendGatewaySetupErrorMissingRequiredPermission = 7900,
47
48
  BackendGatewaySetupErrorSandboxModeOnly = 7901,
48
49
  BackendInvalidPaddleAPIKey = 7967,
49
- BackendQuickPurchaseUnavailable = 8172
50
+ BackendQuickPurchaseUnavailable = 8172,
51
+ BackendGatewaySetupErrorInvalidTaxOriginAddressDuringCheckout = 8174
50
52
  }
51
53
 
52
54
  /**
@@ -486,9 +488,12 @@ declare enum LocalizationKeys {
486
488
  PaymentEntryPagePaymentStepTitle = "payment_entry_page.payment_step_title",
487
489
  PaymentEntryPageTrialSubscriptionTermsInfo = "payment_entry_page.trial_subscription_terms_info",
488
490
  PaymentEntryPageSubscriptionTermsInfo = "payment_entry_page.subscription_terms_info",
491
+ PaymentEntryPageSubscriptionTermsInfoWithoutAppName = "payment_entry_page.subscription_terms_info_without_app_name",
489
492
  PaymentEntryPageOtpTermsInfo = "payment_entry_page.otp_terms_info",
493
+ PaymentEntryPageOtpTermsInfoWithoutAppName = "payment_entry_page.otp_terms_info_without_app_name",
490
494
  PaymentEntryPageTermsLinkLabel = "payment_entry_page.terms_link_label",
491
495
  PaymentEntryPageCheckoutConsentAgreement = "payment_entry_page.checkout_consent_agreement",
496
+ PaymentEntryPageCheckoutConsentAgreementWithoutAppName = "payment_entry_page.checkout_consent_agreement_without_app_name",
492
497
  PaymentEntryPageCheckoutConsentTermsOfService = "payment_entry_page.checkout_consent_terms_of_service",
493
498
  PaymentEntryPageSubscriptionInfo = "payment_entry_page.subscription_info",
494
499
  PaymentEntryPageButtonPay = "payment_entry_page.button_pay",
@@ -496,6 +501,8 @@ declare enum LocalizationKeys {
496
501
  PaymentEntryPageButtonWithPrice = "payment_entry_page.button_with_price",
497
502
  PaymentEntryPageButtonPaymentMethod = "payment_entry_page.button_payment_method",
498
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",
499
506
  SuccessPagePurchaseSuccessful = "success_page.purchase_successful",
500
507
  SuccessPageButtonClose = "success_page.button_close",
501
508
  LoadingPageProcessingPayment = "loading_page.processing_payment",
@@ -520,6 +527,7 @@ declare enum LocalizationKeys {
520
527
  ErrorPageErrorMessageInvalidTaxLocation = "error_page.error_message_invalid_tax_location",
521
528
  ErrorPageErrorMessageStripeTaxNotActive = "error_page.error_message_stripe_tax_not_active",
522
529
  ErrorPageErrorMessageStripeInvalidTaxOriginAddress = "error_page.error_message_stripe_invalid_tax_origin_address",
530
+ ErrorPageErrorMessageStripeInvalidTaxOriginAddressDuringCheckout = "error_page.error_message_stripe_invalid_tax_origin_address_during_checkout",
523
531
  ErrorPageErrorMessageStripeMissingRequiredPermission = "error_page.error_message_stripe_missing_required_permission",
524
532
  ErrorPageErrorMessageOnlyInSandbox = "error_page.error_only_in_sandbox",
525
533
  ErrorButtonTryAgain = "error_page.button_try_again",
@@ -1415,7 +1423,8 @@ declare enum PurchaseFlowErrorCode {
1415
1423
  StripeTaxNotActive = 6,
1416
1424
  StripeInvalidTaxOriginAddress = 7,
1417
1425
  StripeMissingRequiredPermission = 8,
1418
- InvalidPaddleAPIKeyError = 9
1426
+ InvalidPaddleAPIKeyError = 9,
1427
+ StripeInvalidTaxOriginAddressDuringCheckout = 10
1419
1428
  }
1420
1429
 
1421
1430
  /**
@@ -1524,6 +1533,7 @@ export declare interface PurchaseParams {
1524
1533
  * for example from a URL parameter.
1525
1534
  */
1526
1535
  discountCode?: string;
1536
+ /* Excluded from this release type: discountId */
1527
1537
  /**
1528
1538
  * @experimental
1529
1539
  * Called when the applied discount code changes in the Web Billing checkout.
@@ -1628,6 +1638,7 @@ export declare class Purchases {
1628
1638
  /* Excluded from this release type: buildInfoPerPackage */
1629
1639
  /* Excluded from this release type: buildPaywallContextPackages */
1630
1640
  /* Excluded from this release type: getPlatformInfo */
1641
+ /* Excluded from this release type: applyPaddleDiscountsToOffering */
1631
1642
  /**
1632
1643
  * Get the singleton instance of Purchases. It's preferred to use the instance
1633
1644
  * obtained from the `configure` method when possible.