@@ -439,7 +439,10 @@ context('check if the controller file created ', () => {
439
439
/ c o n t e n t : { ' a p p l i c a t i o n \/ j s o n ' : { schema: g e t M o d e l S c h e m a R e f \( O r d e r \) } } , \n / ,
440
440
/ } , \n . { 2 } } , \n .} \) \n { 2 } a s y n c c r e a t e \( \n / ,
441
441
/ \@ p a r a m \. p a t h \. n u m b e r \( ' i d ' \) i d : t y p e o f C u s t o m e r \. p r o t o t y p e \. i d , \n / ,
442
- / \@ r e q u e s t B o d y \( \{ \s + c o n t e n t : { \s + ' a p p l i c a t i o n \/ j s o n ' : { \s + s c h e m a : g e t M o d e l S c h e m a R e f \( O r d e r , { exclude: \[ ' i d ' \] } \) , \s + } , \s + } , \s + } \) o r d e r : O m i t < O r d e r , ' i d ' > , \n / ,
442
+ / \@ r e q u e s t B o d y \( \{ \s + c o n t e n t : { \s + ' a p p l i c a t i o n \/ j s o n ' : { \s + s c h e m a : g e t M o d e l S c h e m a R e f \( O r d e r , { \n / ,
443
+ / e x c l u d e : \[ ' i d ' \] , \n / ,
444
+ / o p t i o n a l : \[ ' c u s t o m e r I d ' \] \n / ,
445
+ / } \) , \s + } , \s + } , \s + } \) o r d e r : O m i t < O r d e r , ' i d ' > , \n / ,
443
446
/ \) : P r o m i s e < O r d e r > { \n / ,
444
447
/ r e t u r n t h i s \. c u s t o m e r R e p o s i t o r y \. o r d e r s \( i d \) \. c r e a t e \( o r d e r \) ; \n { 2 } } \n / ,
445
448
] ;
@@ -449,7 +452,10 @@ context('check if the controller file created ', () => {
449
452
/ c o n t e n t : { ' a p p l i c a t i o n \/ j s o n ' : { schema: g e t M o d e l S c h e m a R e f \( O r d e r C l a s s \) } } , \n / ,
450
453
/ } , \n . { 2 } } , \n .} \) \n { 2 } a s y n c c r e a t e \( \n / ,
451
454
/ \@ p a r a m \. p a t h \. n u m b e r \( ' i d ' \) i d : t y p e o f C u s t o m e r C l a s s \. p r o t o t y p e \. c u s t N u m b e r , \n / ,
452
- / \@ r e q u e s t B o d y \( \{ \s + c o n t e n t : { \s + ' a p p l i c a t i o n \/ j s o n ' : { \s + s c h e m a : g e t M o d e l S c h e m a R e f \( O r d e r C l a s s , { exclude: \[ ' o r d e r N u m b e r ' \] } \) , \s + } , \s + } , \s + } \) o r d e r C l a s s : O m i t < O r d e r C l a s s , ' o r d e r N u m b e r ' > , \n / ,
455
+ / \@ r e q u e s t B o d y \( \{ \s + c o n t e n t : { \s + ' a p p l i c a t i o n \/ j s o n ' : { \s + s c h e m a : g e t M o d e l S c h e m a R e f \( O r d e r C l a s s , { \n / ,
456
+ / e x c l u d e : \[ ' o r d e r N u m b e r ' \] , \n / ,
457
+ / o p t i o n a l : \[ ' c u s t o m e r C l a s s C u s t N u m b e r ' \] \n / ,
458
+ / } \) , \s + } , \s + } , \s + } \) o r d e r C l a s s : O m i t < O r d e r C l a s s , ' o r d e r N u m b e r ' > , \n / ,
453
459
/ \) : P r o m i s e < O r d e r C l a s s > { \n / ,
454
460
/ r e t u r n t h i s \. c u s t o m e r C l a s s R e p o s i t o r y \. o r d e r C l a s s e s \( i d \) \. c r e a t e \( o r d e r C l a s s \) ; \n { 2 } } \n / ,
455
461
] ;
@@ -459,7 +465,10 @@ context('check if the controller file created ', () => {
459
465
/ c o n t e n t : { ' a p p l i c a t i o n \/ j s o n ' : { schema: g e t M o d e l S c h e m a R e f \( O r d e r C l a s s T y p e \) } } , \n / ,
460
466
/ } , \n . { 2 } } , \n .} \) \n { 2 } a s y n c c r e a t e \( \n / ,
461
467
/ \@ p a r a m \. p a t h \. n u m b e r \( ' i d ' \) i d : t y p e o f C u s t o m e r C l a s s T y p e \. p r o t o t y p e \. c u s t N u m b e r , \n / ,
462
- / \@ r e q u e s t B o d y \( \{ \s + c o n t e n t : { \s + ' a p p l i c a t i o n \/ j s o n ' : { \s + s c h e m a : g e t M o d e l S c h e m a R e f \( O r d e r C l a s s T y p e , { exclude: \[ ' o r d e r S t r i n g ' \] } \) , \s + } , \s + } , \s + } \) o r d e r C l a s s T y p e : O m i t < O r d e r C l a s s T y p e , ' o r d e r S t r i n g ' > , \n / ,
468
+ / \@ r e q u e s t B o d y \( \{ \s + c o n t e n t : { \s + ' a p p l i c a t i o n \/ j s o n ' : { \s + s c h e m a : g e t M o d e l S c h e m a R e f \( O r d e r C l a s s T y p e , { \n / ,
469
+ / e x c l u d e : \[ ' o r d e r S t r i n g ' \] , \n / ,
470
+ / o p t i o n a l : \[ ' c u s t o m e r C l a s s T y p e C u s t N u m b e r ' \] \n / ,
471
+ / } \) , \s + } , \s + } , \s + } \) o r d e r C l a s s T y p e : O m i t < O r d e r C l a s s T y p e , ' o r d e r S t r i n g ' > , \n / ,
463
472
/ \) : P r o m i s e < O r d e r C l a s s T y p e > { \n / ,
464
473
/ r e t u r n t h i s \. c u s t o m e r C l a s s T y p e R e p o s i t o r y \. o r d e r C l a s s T y p e s \( i d \) \. c r e a t e \( o r d e r C l a s s T y p e \) ; \n { 2 } } \n / ,
465
474
] ;
0 commit comments