Skip to content

Commit

Permalink
fix: Correct input type for UpdateProductVariantPriceInput
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jan 21, 2025
1 parent 89eef7b commit 72d448d
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packages/admin-ui/src/lib/core/src/common/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6704,10 +6704,10 @@ export type UpdateProductVariantInput = {
* If the `delete` flag is `true`, the price will be deleted for the given Channel.
*/
export type UpdateProductVariantPriceInput = {
currencyCode?: InputMaybe<CurrencyCode>;
currencyCode: CurrencyCode;
customFields?: InputMaybe<Scalars['JSON']['input']>;
delete?: InputMaybe<Scalars['Boolean']['input']>;
price?: InputMaybe<Scalars['Money']['input']>;
price: Scalars['Money']['input'];
};

export type UpdatePromotionInput = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6430,10 +6430,10 @@ export type UpdateProductVariantInput = {
* If the `delete` flag is `true`, the price will be deleted for the given Channel.
*/
export type UpdateProductVariantPriceInput = {
currencyCode?: InputMaybe<CurrencyCode>;
currencyCode: CurrencyCode;
customFields?: InputMaybe<Scalars['JSON']['input']>;
delete?: InputMaybe<Scalars['Boolean']['input']>;
price?: InputMaybe<Scalars['Money']['input']>;
price: Scalars['Money']['input'];
};

export type UpdatePromotionInput = {
Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6616,10 +6616,10 @@ export type UpdateProductVariantInput = {
* If the `delete` flag is `true`, the price will be deleted for the given Channel.
*/
export type UpdateProductVariantPriceInput = {
currencyCode?: InputMaybe<CurrencyCode>;
currencyCode: CurrencyCode;
customFields?: InputMaybe<Scalars['JSON']['input']>;
delete?: InputMaybe<Scalars['Boolean']['input']>;
price?: InputMaybe<Scalars['Money']['input']>;
price: Scalars['Money']['input'];
};

export type UpdatePromotionInput = {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/e2e/graphql/generated-e2e-admin-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6430,10 +6430,10 @@ export type UpdateProductVariantInput = {
* If the `delete` flag is `true`, the price will be deleted for the given Channel.
*/
export type UpdateProductVariantPriceInput = {
currencyCode?: InputMaybe<CurrencyCode>;
currencyCode: CurrencyCode;
customFields?: InputMaybe<Scalars['JSON']['input']>;
delete?: InputMaybe<Scalars['Boolean']['input']>;
price?: InputMaybe<Scalars['Money']['input']>;
price: Scalars['Money']['input'];
};

export type UpdatePromotionInput = {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/api/schema/admin-api/product.api.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ 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.
"""
input UpdateProductVariantPriceInput {
currencyCode: CurrencyCode
price: Money
currencyCode: CurrencyCode!
price: Money!
delete: Boolean
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ export class ProductVariantService {
priceInput.price,
ctx.channelId,
priceInput.currencyCode,
(priceInput as any).customFields,
priceInput.customFields,
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6430,10 +6430,10 @@ export type UpdateProductVariantInput = {
* If the `delete` flag is `true`, the price will be deleted for the given Channel.
*/
export type UpdateProductVariantPriceInput = {
currencyCode?: InputMaybe<CurrencyCode>;
currencyCode: CurrencyCode;
customFields?: InputMaybe<Scalars['JSON']['input']>;
delete?: InputMaybe<Scalars['Boolean']['input']>;
price?: InputMaybe<Scalars['Money']['input']>;
price: Scalars['Money']['input'];
};

export type UpdatePromotionInput = {
Expand Down
4 changes: 2 additions & 2 deletions packages/payments-plugin/e2e/graphql/generated-admin-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6507,10 +6507,10 @@ export type UpdateProductVariantInput = {
* If the `delete` flag is `true`, the price will be deleted for the given Channel.
*/
export type UpdateProductVariantPriceInput = {
currencyCode?: InputMaybe<CurrencyCode>;
currencyCode: CurrencyCode;
customFields?: InputMaybe<Scalars['JSON']['input']>;
delete?: InputMaybe<Scalars['Boolean']['input']>;
price?: InputMaybe<Scalars['Money']['input']>;
price: Scalars['Money']['input'];
};

export type UpdatePromotionInput = {
Expand Down
2 changes: 1 addition & 1 deletion schema-admin.json

Large diffs are not rendered by default.

0 comments on commit 72d448d

Please sign in to comment.