chore: add since tags for latest release (#13739)

This commit is contained in:
Shahed Nasser
2025-10-13 11:24:51 +03:00
committed by GitHub
parent fc2ded4b10
commit 958b003a11
3 changed files with 17 additions and 0 deletions
@@ -80,6 +80,8 @@ export class RefundReason {
* [Get Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_getrefundreasonsid) * [Get Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_getrefundreasonsid)
* API route. * API route.
* *
* @since 2.11.0
*
* @param id - The refund reason's ID. * @param id - The refund reason's ID.
* @param query - Configure the fields and relations to retrieve in the refund reason. * @param query - Configure the fields and relations to retrieve in the refund reason.
* @param headers - Headers to pass in the request. * @param headers - Headers to pass in the request.
@@ -127,6 +129,8 @@ export class RefundReason {
* [Create Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_postrefundreasons) * [Create Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_postrefundreasons)
* API route. * API route.
* *
* @since 2.11.0
*
* @param body - The details of the refund reason to create. * @param body - The details of the refund reason to create.
* @param query - Configure the fields and relations to retrieve in the refund reason. * @param query - Configure the fields and relations to retrieve in the refund reason.
* @param headers - Headers to pass in the request. * @param headers - Headers to pass in the request.
@@ -162,6 +166,8 @@ export class RefundReason {
* [Update Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_postrefundreasonsid) * [Update Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_postrefundreasonsid)
* API route. * API route.
* *
* @since 2.11.0
*
* @param id - The refund reason's ID. * @param id - The refund reason's ID.
* @param body - The details of the refund reason to update. * @param body - The details of the refund reason to update.
* @param query - Configure the fields and relations to retrieve in the refund reason. * @param query - Configure the fields and relations to retrieve in the refund reason.
@@ -199,6 +205,8 @@ export class RefundReason {
* [Delete Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_deleterefundreasonsid) * [Delete Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_deleterefundreasonsid)
* API route. * API route.
* *
* @since 2.11.0
*
* @param id - The refund reason's ID. * @param id - The refund reason's ID.
* @param query - Query parameters to pass to the request. * @param query - Query parameters to pass to the request.
* @param headers - Headers to pass in the request. * @param headers - Headers to pass in the request.
@@ -1,6 +1,9 @@
import { model } from "@medusajs/framework/utils" import { model } from "@medusajs/framework/utils"
import CampaignBudget from "./campaign-budget" import CampaignBudget from "./campaign-budget"
/**
* @since 2.11.0
*/
const CampaignBudgetUsage = model const CampaignBudgetUsage = model
.define( .define(
{ {
@@ -17,9 +17,15 @@ const CampaignBudget = model
mappedBy: "budget", mappedBy: "budget",
}), }),
/**
* @since 2.11.0
*/
attribute: model.text().nullable(), // e.g. "customer_id", "customer_email" attribute: model.text().nullable(), // e.g. "customer_id", "customer_email"
// usages when budget type is "limit/use by attribute" // usages when budget type is "limit/use by attribute"
/**
* @since 2.11.0
*/
usages: model.hasMany(() => CampaignBudgetUsage, { usages: model.hasMany(() => CampaignBudgetUsage, {
mappedBy: "budget", mappedBy: "budget",
}), }),