Skip to main content

Class: AddressesResource

Hierarchy

  • Copy to Clipboard

    Copy to Clipboard

Methods

addAddress

addAddress(Copy to Clipboard, Copy to Clipboard): Copy to Clipboard<Copy to Clipboard>

Adds an address to a customers saved addresses

Parameters

NameTypeDescription
Copy to ClipboardCopy to Clipboardcontains information to create an address
Copy to ClipboardCopy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Returns

Copy to Clipboard<Copy to Clipboard>

Defined in

medusa-js/src/resources/addresses.ts:16


deleteAddress

deleteAddress(Copy to Clipboard, Copy to Clipboard): Copy to Clipboard<Copy to Clipboard>

Deletes an address of a customer

Parameters

NameTypeDescription
Copy to ClipboardCopy to Clipboardid of the address to delete
Copy to ClipboardCopy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Returns

Copy to Clipboard<Copy to Clipboard>

Defined in

medusa-js/src/resources/addresses.ts:30


updateAddress

updateAddress(Copy to Clipboard, Copy to Clipboard, Copy to Clipboard): Copy to Clipboard<Copy to Clipboard>

Update an address of a customer

Parameters

NameTypeDescription
Copy to ClipboardCopy to Clipboardid of customer
Copy to ClipboardCopy to Clipboardaddress update
Copy to ClipboardCopy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Returns

Copy to Clipboard<Copy to Clipboard>

Defined in

medusa-js/src/resources/addresses.ts:45