@@ -109,24 +109,6 @@ export abstract class SlasClientCommand<T extends typeof Command> extends OAuthC
109109 } ) ,
110110 } ;
111111
112- /**
113- * Get the SLAS client, ensuring short code is configured.
114- */
115- protected getSlasClient ( ) : SlasClient {
116- const { shortCode} = this . resolvedConfig ;
117- if ( ! shortCode ) {
118- this . error (
119- t (
120- 'error.shortCodeRequired' ,
121- 'SCAPI short code required. Provide --short-code, set SFCC_SHORTCODE, or configure short-code in dw.json.' ,
122- ) ,
123- ) ;
124- }
125-
126- const oauthStrategy = this . getOAuthStrategy ( ) ;
127- return createSlasClient ( { shortCode} , oauthStrategy ) ;
128- }
129-
130112 /**
131113 * Ensure tenant exists, creating it if necessary.
132114 * This is required before creating SLAS clients.
@@ -193,4 +175,22 @@ export abstract class SlasClientCommand<T extends typeof Command> extends OAuthC
193175 this . log ( t ( 'commands.slas.client.create.tenantCreated' , 'SLAS tenant created successfully.' ) ) ;
194176 }
195177 }
178+
179+ /**
180+ * Get the SLAS client, ensuring short code is configured.
181+ */
182+ protected getSlasClient ( ) : SlasClient {
183+ const { shortCode} = this . resolvedConfig ;
184+ if ( ! shortCode ) {
185+ this . error (
186+ t (
187+ 'error.shortCodeRequired' ,
188+ 'SCAPI short code required. Provide --short-code, set SFCC_SHORTCODE, or configure short-code in dw.json.' ,
189+ ) ,
190+ ) ;
191+ }
192+
193+ const oauthStrategy = this . getOAuthStrategy ( ) ;
194+ return createSlasClient ( { shortCode} , oauthStrategy ) ;
195+ }
196196}
0 commit comments