|
1 | 1 | /** |
2 | | - * @oas [delete] /admin/products/{id}/options/{option_id} |
3 | | - * operationId: DeleteProductsIdOptionsOption_id |
4 | | - * summary: Delete an Option from Product |
5 | | - * x-sidebar-summary: Delete Option |
6 | | - * description: | |
7 | | - * Delete an option from a product. |
8 | | - * |
9 | | - * Values of this option in the product's variants are removed. |
| 2 | + * @oas [get] /admin/price-lists/{id}/prices |
| 3 | + * operationId: GetPriceListsIdPrices |
| 4 | + * summary: List Prices for a Price List |
| 5 | + * x-sidebar-summary: List Prices |
| 6 | + * description: Retrieve a list of prices in a price list. The prices can be filtered by fields like FILTER FIELDS. The prices can also be paginated. |
10 | 7 | * x-authenticated: true |
11 | 8 | * parameters: |
12 | 9 | * - name: id |
13 | 10 | * in: path |
14 | | - * description: The product's ID. |
15 | | - * required: true |
16 | | - * schema: |
17 | | - * type: string |
18 | | - * - name: option_id |
19 | | - * in: path |
20 | | - * description: The product option's ID. |
| 11 | + * description: The price list's ID. |
21 | 12 | * required: true |
22 | 13 | * schema: |
23 | 14 | * type: string |
24 | 15 | * - name: fields |
25 | 16 | * in: query |
26 | | - * description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default |
27 | | - * fields. without prefix it will replace the entire default fields. |
| 17 | + * description: Comma-separated fields that should be included in the returned data. If a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default |
| 18 | + * fields. Without prefix it will replace the entire default fields. |
28 | 19 | * required: false |
29 | 20 | * schema: |
30 | 21 | * type: string |
31 | 22 | * title: fields |
32 | | - * description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default |
33 | | - * fields. without prefix it will replace the entire default fields. |
| 23 | + * description: Comma-separated fields that should be included in the returned data. If a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default |
| 24 | + * fields. Without prefix it will replace the entire default fields. |
34 | 25 | * externalDocs: |
35 | 26 | * url: "#select-fields-and-relations" |
36 | 27 | * security: |
|
51 | 42 | * }, |
52 | 43 | * }) |
53 | 44 | * |
54 | | - * sdk.admin.product.deleteOption("prod_123", "prodopt_123") |
55 | | - * .then(({ deleted }) => { |
56 | | - * console.log(deleted) |
| 45 | + * sdk.admin.priceList.prices("plist_123") |
| 46 | + * .then(({ prices }) => { |
| 47 | + * console.log(prices) |
57 | 48 | * }) |
58 | 49 | * - lang: Shell |
59 | 50 | * label: cURL |
60 | 51 | * source: |- |
61 | | - * curl -X DELETE '{backend_url}/admin/products/{id}/options/{option_id}' \ |
62 | | - * -H 'Authorization: Bearer {jwt_token}' |
| 52 | + * curl '{backend_url}/admin/price-lists/{id}/prices' \ |
| 53 | + * -H 'Authorization: Bearer {access_token}' |
63 | 54 | * tags: |
64 | | - * - Products |
| 55 | + * - Price Lists |
65 | 56 | * responses: |
66 | 57 | * "200": |
67 | 58 | * description: OK |
68 | 59 | * content: |
69 | 60 | * application/json: |
70 | 61 | * schema: |
71 | | - * $ref: "#/components/schemas/AdminProductOptionDeleteResponse" |
| 62 | + * $ref: "#/components/schemas/AdminPriceListPriceListResponse" |
72 | 63 | * "400": |
73 | 64 | * $ref: "#/components/responses/400_error" |
74 | 65 | * "401": |
|
81 | 72 | * $ref: "#/components/responses/invalid_request_error" |
82 | 73 | * "500": |
83 | 74 | * $ref: "#/components/responses/500_error" |
84 | | - * x-workflow: deleteProductOptionsWorkflow |
85 | | - * x-events: |
86 | | - * - name: product-option.deleted |
87 | | - * payload: |- |
88 | | - * ```ts |
89 | | - * { |
90 | | - * id, // The ID of the product option |
91 | | - * } |
92 | | - * ``` |
93 | | - * description: Emitted when product options are deleted. |
94 | | - * deprecated: false |
| 75 | + * x-since: 2.12.3 |
95 | 76 | * |
96 | 77 | */ |
97 | 78 |
|
0 commit comments