fix(dashboard,js-sdk,types): Remove redundant body for markAsDelivered (#10964)

Resolves CMRC-623
This commit is contained in:
Kasper Fabricius Kristensen
2025-01-20 18:17:48 +01:00
committed by GitHub
parent 45b47bf813
commit d4e042e9ad
5 changed files with 18 additions and 21 deletions

View File

@@ -1,10 +1,10 @@
import {
AdminOrderChangesResponse,
FindParams,
HttpTypes,
PaginatedResponse,
SelectParams,
} from "@medusajs/types"
import { AdminOrderChangesResponse } from "@medusajs/types"
import { Client } from "../client"
import { ClientHeaders } from "../types"
@@ -411,7 +411,6 @@ export class Order {
*
* @param id - The order's ID.
* @param fulfillmentId - The fulfillment's ID.
* @param body - The delivery details.
* @param query - Configure the fields to retrieve in the order.
* @param headers - Headers to pass in the request
* @returns The order's details.
@@ -420,7 +419,6 @@ export class Order {
* sdk.admin.order.markAsDelivered(
* "order_123",
* "ful_123",
* {}
* )
* .then(({ order }) => {
* console.log(order)
@@ -429,7 +427,6 @@ export class Order {
async markAsDelivered(
id: string,
fulfillmentId: string,
body: HttpTypes.AdminMarkOrderFulfillmentAsDelivered,
query?: SelectParams,
headers?: ClientHeaders
) {
@@ -438,7 +435,6 @@ export class Order {
{
method: "POST",
headers,
body,
query,
}
)