@@ -435,23 +435,25 @@ export class CheckoutComponent implements OnInit {
435435 const updatedItems = JSON . parse ( JSON . stringify ( this . items ) ) ; // we need a deep clone isntead of shallow clone
436436 for ( const cartItem of updatedItems ) {
437437 const response = await lastValueFrom ( this . priceService . calculatePrice ( {
438- "id" : uuidv4 ( ) ,
439- "productOrderItem" :[ {
440- action : "add" ,
441- id : cartItem . id , // product offering id
442- itemTotalPrice :[ {
443- productOfferingPrice :{
444- id : cartItem . options . pricing [ 0 ] . id , //product offering price parent id
445- href : cartItem . options . pricing [ 0 ] . id ,
446- name : "" // Not using the pricePlan name in backend, we can discard thiss
447- } } ] ,
448- product : { productCharacteristic : cartItem . options . characteristics } ,
449- productOffering : { id : cartItem . id , href : cartItem . id } ,
450- quantity : "1"
451- } ] ,
452- billingAccount : {
453- id : this . selectedBillingAddress . id ,
454- href : this . selectedBillingAddress . id
438+ "productOrder" :{
439+ "id" : uuidv4 ( ) ,
440+ "productOrderItem" :[ {
441+ action : "add" ,
442+ id : cartItem . id , // product offering id
443+ itemTotalPrice :[ {
444+ productOfferingPrice :{
445+ id : cartItem . options . pricing [ 0 ] . id , //product offering price parent id
446+ href : cartItem . options . pricing [ 0 ] . id ,
447+ name : "" // Not using the pricePlan name in backend, we can discard thiss
448+ } } ] ,
449+ product : { productCharacteristic : cartItem . options . characteristics } ,
450+ productOffering : { id : cartItem . id , href : cartItem . id } ,
451+ quantity : "1"
452+ } ] ,
453+ billingAccount : {
454+ id : this . selectedBillingAddress . id ,
455+ href : this . selectedBillingAddress . id
456+ }
455457 }
456458 } ) ) ;
457459 let pricing : any [ ] = response . orderTotalPrice ;
0 commit comments