@@ -106,8 +106,8 @@ export class CartService {
106106 private productConfigurationManager : ProductConfigurationManager ,
107107 private promotionCodeManager : PromotionCodeManager ,
108108 private subscriptionManager : SubscriptionManager ,
109- @Inject ( StatsDService ) private statsd : StatsD ,
110- ) { }
109+ @Inject ( StatsDService ) private statsd : StatsD
110+ ) { }
111111
112112 /**
113113 * Should be used to wrap any method that mutates an existing cart.
@@ -355,7 +355,7 @@ export class CartService {
355355 if ( cartEligibilityStatus === CartEligibilityStatus . BLOCKED_IAP ) {
356356 return this . cartManager . createErrorCart (
357357 createCartParams ,
358- CartErrorReasonId . IAP_UPGRADE_CONTACT_SUPPORT
358+ CartErrorReasonId . IAP_BLOCKED_CONTACT_SUPPORT
359359 ) ;
360360 }
361361
@@ -390,12 +390,12 @@ export class CartService {
390390
391391 const accountCustomer = oldCart . uid
392392 ? await this . accountCustomerManager
393- . getAccountCustomerByUid ( oldCart . uid )
394- . catch ( ( error ) => {
395- if ( ! ( error instanceof AccountCustomerNotFoundError ) ) {
396- throw error ;
397- }
398- } )
393+ . getAccountCustomerByUid ( oldCart . uid )
394+ . catch ( ( error ) => {
395+ if ( ! ( error instanceof AccountCustomerNotFoundError ) ) {
396+ throw error ;
397+ }
398+ } )
399399 : undefined ;
400400
401401 if ( ! ( oldCart . taxAddress && oldCart . currency ) ) {
@@ -782,11 +782,18 @@ export class CartService {
782782 if ( cartEligibilityStatus === CartEligibilityStatus . UPGRADE ) {
783783 assert ( 'fromPrice' in eligibility , 'fromPrice not present for upgrade' ) ;
784784
785- const { price : priceForCurrency , unitAmountForCurrency } = await this . priceManager . retrievePricingForCurrency ( eligibility . fromPrice . id , cart . currency ) ;
785+ const { price : priceForCurrency , unitAmountForCurrency } =
786+ await this . priceManager . retrievePricingForCurrency (
787+ eligibility . fromPrice . id ,
788+ cart . currency
789+ ) ;
786790 assertNotNull ( unitAmountForCurrency ) ;
787791 assertNotNull ( priceForCurrency . recurring ) ;
788792
789- const interval = getSubplatInterval ( priceForCurrency . recurring . interval , priceForCurrency . recurring . interval_count ) ;
793+ const interval = getSubplatInterval (
794+ priceForCurrency . recurring . interval ,
795+ priceForCurrency . recurring . interval_count
796+ ) ;
790797 assert ( interval , 'Interval not found but is required' ) ;
791798
792799 fromPrice = {
0 commit comments