Skip to content

Commit 7494380

Browse files
authored
docs: add TSDocs for d9af2f5 (#15065)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
1 parent d9af2f5 commit 7494380

File tree

5 files changed

+27
-1
lines changed

5 files changed

+27
-1
lines changed

packages/core/core-flows/src/draft-order/workflows/compute-draft-order-adjustments.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import { acquireLockStep, releaseLockStep } from "../../locking"
2424
import { deleteOrderChangeActionsStep } from "../../order/steps/delete-order-change-actions"
2525
import { prepareOrderComputeActionContextStep } from "../../order/workflows/order-edit/utils/prepare-order-compute-action-context"
2626

27+
/**
28+
* The ID of the compute draft order adjustments workflow.
29+
*/
2730
export const computeDraftOrderAdjustmentsWorkflowId =
2831
"compute-draft-order-adjustments"
2932

packages/core/core-flows/src/order/workflows/compute-adjustments-for-preview.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export type ComputeAdjustmentsForPreviewWorkflowInput = {
4141
orderChange: OrderChangeDTO
4242
}
4343

44+
/**
45+
* The ID of the compute adjustments for preview workflow.
46+
*/
4447
export const computeAdjustmentsForPreviewWorkflowId =
4548
"compute-adjustments-for-preview"
4649
/**

packages/core/types/src/order/common.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,16 @@ export type ChangeActionType =
3131
| "PROMOTION_ADD"
3232
| "PROMOTION_REMOVE"
3333
| "ITEM_ADJUSTMENTS_REPLACE"
34-
| "SHIPPING_ADJUSTMENTS_REPLACE"
34+
| /**
35+
* Replace shipping method adjustments.
36+
*
37+
* @since 2.13.7
38+
*/
39+
"SHIPPING_ADJUSTMENTS_REPLACE"
3540

41+
/**
42+
* The order change's status.
43+
*/
3644
export type OrderChangeStatus =
3745
| "confirmed"
3846
| "declined"
@@ -134,6 +142,8 @@ export interface OrderShippingMethodAdjustmentDTO
134142

135143
/**
136144
* The version of the adjustment.
145+
*
146+
* @since 2.13.7
137147
*/
138148
version: number
139149
}
@@ -156,6 +166,8 @@ export interface OrderLineItemAdjustmentDTO extends OrderAdjustmentLineDTO {
156166

157167
/**
158168
* The version of the adjustment.
169+
*
170+
* @since 2.13.7
159171
*/
160172
version: number
161173
}

packages/core/types/src/order/mutations.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,8 @@ export interface CreateOrderShippingMethodAdjustmentDTO {
843843

844844
/**
845845
* The version of the adjustment.
846+
*
847+
* @since 2.13.7
846848
*/
847849
version?: number
848850
}

packages/modules/order/src/models/shipping-method-adjustment.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,10 @@ const _OrderShippingMethodAdjustment = model
3737
},
3838
])
3939

40+
/**
41+
* The Order Shipping Method Adjustment data model. This model represents adjustments applied to
42+
* order shipping methods, such as promotions or discounts.
43+
*
44+
* @since 2.13.7
45+
*/
4046
export const OrderShippingMethodAdjustment = _OrderShippingMethodAdjustment

0 commit comments

Comments
 (0)