@@ -8,6 +8,7 @@ import { GoogleManager } from '@fxa/google';
88import {
99 CartInvalidStateForActionError ,
1010 CartService ,
11+ type PaymentsSearchParams ,
1112 SubscriptionAttributionParams ,
1213 SuccessCartDTO ,
1314 TaxChangeAllowedStatus ,
@@ -207,8 +208,11 @@ export class NextJSActionsService {
207208 @NextIOValidator ( GetCartActionArgs , GetCartActionResult )
208209 @WithTypeCachableAsyncLocalStorage ( )
209210 @CaptureTimingWithStatsD ( )
210- async getCart ( args : { cartId : string } ) {
211- return this . cartService . getCart ( args . cartId ) ;
211+ async getCart ( args : {
212+ cartId : string ;
213+ searchParams ?: PaymentsSearchParams ;
214+ } ) {
215+ return this . cartService . getCart ( args . cartId , args . searchParams ) ;
212216 }
213217
214218 @SanitizeExceptions ( )
@@ -249,8 +253,11 @@ export class NextJSActionsService {
249253 @NextIOValidator ( GetCartActionArgs , GetSuccessCartActionResult )
250254 @WithTypeCachableAsyncLocalStorage ( )
251255 @CaptureTimingWithStatsD ( )
252- async getSuccessCart ( args : { cartId : string } ) : Promise < SuccessCartDTO > {
253- const cart = await this . cartService . getCart ( args . cartId ) ;
256+ async getSuccessCart ( args : {
257+ cartId : string ;
258+ searchParams ?: PaymentsSearchParams ;
259+ } ) : Promise < SuccessCartDTO > {
260+ const cart = await this . cartService . getCart ( args . cartId , args . searchParams ) ;
254261
255262 if ( cart . state !== CartState . SUCCESS ) {
256263 throw new Error ( 'Cart is not in success state' ) ;
0 commit comments