chore: add since tags for latest release (#13739)
This commit is contained in:
@@ -80,6 +80,8 @@ export class RefundReason {
|
||||
* [Get Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_getrefundreasonsid)
|
||||
* API route.
|
||||
*
|
||||
* @since 2.11.0
|
||||
*
|
||||
* @param id - The refund reason's ID.
|
||||
* @param query - Configure the fields and relations to retrieve in the refund reason.
|
||||
* @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)
|
||||
* API route.
|
||||
*
|
||||
* @since 2.11.0
|
||||
*
|
||||
* @param body - The details of the refund reason to create.
|
||||
* @param query - Configure the fields and relations to retrieve in the refund reason.
|
||||
* @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)
|
||||
* API route.
|
||||
*
|
||||
* @since 2.11.0
|
||||
*
|
||||
* @param id - The refund reason's ID.
|
||||
* @param body - The details of the refund reason to update.
|
||||
* @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)
|
||||
* API route.
|
||||
*
|
||||
* @since 2.11.0
|
||||
*
|
||||
* @param id - The refund reason's ID.
|
||||
* @param query - Query parameters to pass to the request.
|
||||
* @param headers - Headers to pass in the request.
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { model } from "@medusajs/framework/utils"
|
||||
import CampaignBudget from "./campaign-budget"
|
||||
|
||||
/**
|
||||
* @since 2.11.0
|
||||
*/
|
||||
const CampaignBudgetUsage = model
|
||||
.define(
|
||||
{
|
||||
|
||||
@@ -17,9 +17,15 @@ const CampaignBudget = model
|
||||
mappedBy: "budget",
|
||||
}),
|
||||
|
||||
/**
|
||||
* @since 2.11.0
|
||||
*/
|
||||
attribute: model.text().nullable(), // e.g. "customer_id", "customer_email"
|
||||
|
||||
// usages when budget type is "limit/use by attribute"
|
||||
/**
|
||||
* @since 2.11.0
|
||||
*/
|
||||
usages: model.hasMany(() => CampaignBudgetUsage, {
|
||||
mappedBy: "budget",
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user