@longvansoftware/service-js-client 1.6.6 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { LineItem,  
     | 
| 
      
 1 
     | 
    
         
            +
            import { LineItem, CancelOrder, MemberDiscount, CampaignPromotion, OrderQuery } from "../../types/order";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import { Service } from "../serviceSDK";
         
     | 
| 
       3 
3 
     | 
    
         
             
            /**
         
     | 
| 
       4 
4 
     | 
    
         
             
             * Represents a service for managing orders.
         
     | 
| 
         @@ -130,7 +130,7 @@ export declare class OrderService extends Service { 
     | 
|
| 
       130 
130 
     | 
    
         
             
                 * @returns A promise that resolves when the customer and shipping address are updated.
         
     | 
| 
       131 
131 
     | 
    
         
             
                 * @throws If an error occurs while updating the customer and shipping address.
         
     | 
| 
       132 
132 
     | 
    
         
             
                 */
         
     | 
| 
       133 
     | 
    
         
            -
                updateDiscountPriceInOrder(orderId: string, orderItemId: string, requestData:  
     | 
| 
      
 133 
     | 
    
         
            +
                updateDiscountPriceInOrder(orderId: string, orderItemId: string, requestData: any): Promise<any>;
         
     | 
| 
       134 
134 
     | 
    
         
             
                /**
         
     | 
| 
       135 
135 
     | 
    
         
             
                 * Update cancel order
         
     | 
| 
       136 
136 
     | 
    
         
             
                 * @param orderId - The ID of the order.
         
     | 
| 
         @@ -307,7 +307,9 @@ class OrderService extends serviceSDK_1.Service { 
     | 
|
| 
       307 
307 
     | 
    
         
             
                 * @returns A promise that resolves when the customer and shipping address are updated.
         
     | 
| 
       308 
308 
     | 
    
         
             
                 * @throws If an error occurs while updating the customer and shipping address.
         
     | 
| 
       309 
309 
     | 
    
         
             
                 */
         
     | 
| 
       310 
     | 
    
         
            -
                updateDiscountPriceInOrder(orderId, orderItemId, requestData 
     | 
| 
      
 310 
     | 
    
         
            +
                updateDiscountPriceInOrder(orderId, orderItemId, requestData
         
     | 
| 
      
 311 
     | 
    
         
            +
                //DiscountCampaign
         
     | 
| 
      
 312 
     | 
    
         
            +
                ) {
         
     | 
| 
       311 
313 
     | 
    
         
             
                    return __awaiter(this, void 0, void 0, function* () {
         
     | 
| 
       312 
314 
     | 
    
         
             
                        const endpoint = `/orders/${this.orgId}/${this.storeId}/${orderId}/${orderItemId}/discount`;
         
     | 
| 
       313 
315 
     | 
    
         
             
                        const method = "PUT";
         
     |