fix(dashboard): filter outbound shipping options in RMA (#11629)
**What** - filter out return shipping options for Claims/Exchanges - fix the incorrect display of "missing inventory" warning --- CLOSES CMRC-946 CLOSES CMRC-947
This commit is contained in:
@@ -15,28 +15,28 @@ export class ProductVariant {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method retrieves a paginated list of product variants. It sends a request to the
|
||||
* This method retrieves a paginated list of product variants. It sends a request to the
|
||||
* [List Product Variants](https://docs.medusajs.com/api/admin#product-variants_getproductvariants)
|
||||
* API route.
|
||||
*
|
||||
*
|
||||
* @param query - Filters and pagination configurations.
|
||||
* @param headers - Headers to pass in the request.
|
||||
* @returns The paginated list of product variants.
|
||||
*
|
||||
*
|
||||
* @example
|
||||
* To retrieve the list of product variants:
|
||||
*
|
||||
*
|
||||
* ```ts
|
||||
* sdk.admin.productVariant.list()
|
||||
* .then(({ variants, count, limit, offset }) => {
|
||||
* console.log(variants)
|
||||
* })
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* To configure the pagination, pass the `limit` and `offset` query parameters.
|
||||
*
|
||||
*
|
||||
* For example, to retrieve only 10 items and skip 10 items:
|
||||
*
|
||||
*
|
||||
* ```ts
|
||||
* sdk.admin.productVariant.list({
|
||||
* limit: 10,
|
||||
@@ -46,10 +46,10 @@ export class ProductVariant {
|
||||
* console.log(variants)
|
||||
* })
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* Using the `fields` query parameter, you can specify the fields and relations to retrieve
|
||||
* in each campaign:
|
||||
*
|
||||
*
|
||||
* ```ts
|
||||
* sdk.admin.productVariant.list({
|
||||
* fields: "id,products"
|
||||
@@ -58,7 +58,7 @@ export class ProductVariant {
|
||||
* console.log(variants)
|
||||
* })
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/api/store#select-fields-and-relations).
|
||||
*/
|
||||
async list(
|
||||
|
||||
Reference in New Issue
Block a user