Files
medusa-store/docs/content/references/js-client/classes/AdminShippingOptionsResource.md
Shahed Nasser 02d5c1da88 docs: update Typedoc and regenerate references (#1994)
* generated new services reference

* changed from automatic push to automated pull request

* updated typedoc, regenerated JS Client reference

* regenerated the reference after updating typedoc

* added action for js client
2022-08-04 17:29:52 +03:00

4.3 KiB

Class: AdminShippingOptionsResource

Hierarchy

  • default

    AdminShippingOptionsResource

Methods

create

create(payload, customHeaders?): ResponsePromise<AdminShippingOptionsRes>

Description

creates a shipping option.

Parameters

Name Type
payload AdminPostShippingOptionsReq
customHeaders Record<string, any>

Returns

ResponsePromise<AdminShippingOptionsRes>

created shipping option.

Defined in

medusa-js/src/resources/admin/shipping-options.ts:20


delete

delete(id, customHeaders?): ResponsePromise<DeleteResponse>

Description

deletes a shipping option

Parameters

Name Type Description
id string id of shipping option to delete.
customHeaders Record<string, any>

Returns

ResponsePromise<DeleteResponse>

deleted response

Defined in

medusa-js/src/resources/admin/shipping-options.ts:50


list

list(query?, customHeaders?): ResponsePromise<AdminShippingOptionsListRes>

Description

lists shipping options matching a query

Parameters

Name Type Description
query? AdminGetShippingOptionsParams query for searching shipping options
customHeaders Record<string, any>

Returns

ResponsePromise<AdminShippingOptionsListRes>

a list of shipping options matching the query.

Defined in

medusa-js/src/resources/admin/shipping-options.ts:78


retrieve

retrieve(id, customHeaders?): ResponsePromise<AdminShippingOptionsRes>

Description

get a shipping option

Parameters

Name Type Description
id string id of the shipping option to retrieve.
customHeaders Record<string, any>

Returns

ResponsePromise<AdminShippingOptionsRes>

the shipping option with the given id

Defined in

medusa-js/src/resources/admin/shipping-options.ts:64


update

update(id, payload, customHeaders?): ResponsePromise<AdminShippingOptionsRes>

Description

updates a shipping option

Parameters

Name Type Description
id string id of the shipping option to update.
payload AdminPostShippingOptionsOptionReq update to apply to shipping option.
customHeaders Record<string, any>

Returns

ResponsePromise<AdminShippingOptionsRes>

the updated shipping option.

Defined in

medusa-js/src/resources/admin/shipping-options.ts:35