@plyaz/types 1.21.1 → 1.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -114,6 +114,22 @@ export interface UpdateProductStatusParams {
|
|
|
114
114
|
/** Optional reason for status change */
|
|
115
115
|
reason?: string;
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Parameters for updating the status of a product.
|
|
119
|
+
*
|
|
120
|
+
* This can be used to activate or deactivate a product and optionally
|
|
121
|
+
* provide metadata describing the reason or context for the status change.
|
|
122
|
+
*
|
|
123
|
+
* @template T - Optional metadata object type
|
|
124
|
+
*/
|
|
125
|
+
export interface UpdateProductStatusResult<T extends object = object> {
|
|
126
|
+
/** The provider-specific product ID (e.g., Stripe product ID) */
|
|
127
|
+
providerProductId: string;
|
|
128
|
+
/** Desired product status (Active or Inactive) */
|
|
129
|
+
status: PROVIDER_PRODUCT_STATUS;
|
|
130
|
+
/** Optional metadata to provide additional context for the status update */
|
|
131
|
+
metadata: T;
|
|
132
|
+
}
|
|
117
133
|
/**
|
|
118
134
|
* Parameters to create pricing for a product in the provider
|
|
119
135
|
*/
|
package/package.json
CHANGED