|
@@ -894,6 +894,7 @@ export type CreateProductVariantInput = {
|
|
|
optionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
optionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
|
outOfStockThreshold?: InputMaybe<Scalars['Int']['input']>;
|
|
outOfStockThreshold?: InputMaybe<Scalars['Int']['input']>;
|
|
|
price?: InputMaybe<Scalars['Money']['input']>;
|
|
price?: InputMaybe<Scalars['Money']['input']>;
|
|
|
|
|
+ prices?: InputMaybe<Array<InputMaybe<CreateProductVariantPriceInput>>>;
|
|
|
productId: Scalars['ID']['input'];
|
|
productId: Scalars['ID']['input'];
|
|
|
sku: Scalars['String']['input'];
|
|
sku: Scalars['String']['input'];
|
|
|
stockLevels?: InputMaybe<Array<StockLevelInput>>;
|
|
stockLevels?: InputMaybe<Array<StockLevelInput>>;
|
|
@@ -910,6 +911,12 @@ export type CreateProductVariantOptionInput = {
|
|
|
translations: Array<ProductOptionTranslationInput>;
|
|
translations: Array<ProductOptionTranslationInput>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+export type CreateProductVariantPriceInput = {
|
|
|
|
|
+ currencyCode: CurrencyCode;
|
|
|
|
|
+ customFields?: InputMaybe<Scalars['JSON']['input']>;
|
|
|
|
|
+ price: Scalars['Money']['input'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
export type CreatePromotionInput = {
|
|
export type CreatePromotionInput = {
|
|
|
actions: Array<ConfigurableOperationInput>;
|
|
actions: Array<ConfigurableOperationInput>;
|
|
|
conditions: Array<ConfigurableOperationInput>;
|
|
conditions: Array<ConfigurableOperationInput>;
|
|
@@ -4877,16 +4884,6 @@ export type ProductVariantPrice = {
|
|
|
price: Scalars['Money']['output'];
|
|
price: Scalars['Money']['output'];
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/**
|
|
|
|
|
- * Used to set up update the price of a ProductVariant in a particular Channel.
|
|
|
|
|
- * If the `delete` flag is `true`, the price will be deleted for the given Channel.
|
|
|
|
|
- */
|
|
|
|
|
-export type ProductVariantPriceInput = {
|
|
|
|
|
- currencyCode: CurrencyCode;
|
|
|
|
|
- delete?: InputMaybe<Scalars['Boolean']['input']>;
|
|
|
|
|
- price: Scalars['Money']['input'];
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
export type ProductVariantSortParameter = {
|
|
export type ProductVariantSortParameter = {
|
|
|
createdAt?: InputMaybe<SortOrder>;
|
|
createdAt?: InputMaybe<SortOrder>;
|
|
|
id?: InputMaybe<SortOrder>;
|
|
id?: InputMaybe<SortOrder>;
|
|
@@ -6604,7 +6601,7 @@ export type UpdateProductVariantInput = {
|
|
|
/** Sets the price for the ProductVariant in the Channel's default currency */
|
|
/** Sets the price for the ProductVariant in the Channel's default currency */
|
|
|
price?: InputMaybe<Scalars['Money']['input']>;
|
|
price?: InputMaybe<Scalars['Money']['input']>;
|
|
|
/** Allows multiple prices to be set for the ProductVariant in different currencies. */
|
|
/** Allows multiple prices to be set for the ProductVariant in different currencies. */
|
|
|
- prices?: InputMaybe<Array<ProductVariantPriceInput>>;
|
|
|
|
|
|
|
+ prices?: InputMaybe<Array<UpdateProductVariantPriceInput>>;
|
|
|
sku?: InputMaybe<Scalars['String']['input']>;
|
|
sku?: InputMaybe<Scalars['String']['input']>;
|
|
|
stockLevels?: InputMaybe<Array<StockLevelInput>>;
|
|
stockLevels?: InputMaybe<Array<StockLevelInput>>;
|
|
|
stockOnHand?: InputMaybe<Scalars['Int']['input']>;
|
|
stockOnHand?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -6614,6 +6611,17 @@ export type UpdateProductVariantInput = {
|
|
|
useGlobalOutOfStockThreshold?: InputMaybe<Scalars['Boolean']['input']>;
|
|
useGlobalOutOfStockThreshold?: InputMaybe<Scalars['Boolean']['input']>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * Used to set up update the price of a ProductVariant in a particular Channel.
|
|
|
|
|
+ * If the `delete` flag is `true`, the price will be deleted for the given Channel.
|
|
|
|
|
+ */
|
|
|
|
|
+export type UpdateProductVariantPriceInput = {
|
|
|
|
|
+ currencyCode: CurrencyCode;
|
|
|
|
|
+ customFields?: InputMaybe<Scalars['JSON']['input']>;
|
|
|
|
|
+ delete?: InputMaybe<Scalars['Boolean']['input']>;
|
|
|
|
|
+ price: Scalars['Money']['input'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
export type UpdatePromotionInput = {
|
|
export type UpdatePromotionInput = {
|
|
|
actions?: InputMaybe<Array<ConfigurableOperationInput>>;
|
|
actions?: InputMaybe<Array<ConfigurableOperationInput>>;
|
|
|
conditions?: InputMaybe<Array<ConfigurableOperationInput>>;
|
|
conditions?: InputMaybe<Array<ConfigurableOperationInput>>;
|