@graphcommerce/magento-cart-coupon 2.105.22 → 2.105.26

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-cart-coupon",
3
- "version": "2.105.22",
3
+ "version": "2.105.26",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -13,20 +13,20 @@
13
13
  }
14
14
  },
15
15
  "devDependencies": {
16
- "@graphcommerce/browserslist-config-pwa": "^3.0.1",
17
- "@graphcommerce/eslint-config-pwa": "^3.0.5",
18
- "@graphcommerce/prettier-config-pwa": "^3.0.2",
19
- "@graphcommerce/typescript-config-pwa": "^3.1.0",
20
- "@playwright/test": "^1.15.0"
16
+ "@graphcommerce/browserslist-config-pwa": "^3.0.2",
17
+ "@graphcommerce/eslint-config-pwa": "^3.0.7",
18
+ "@graphcommerce/prettier-config-pwa": "^3.0.3",
19
+ "@graphcommerce/typescript-config-pwa": "^3.1.1",
20
+ "@playwright/test": "^1.15.2"
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.4.16",
24
- "@graphcommerce/graphql": "^2.103.5",
25
- "@graphcommerce/image": "^2.104.8",
26
- "@graphcommerce/magento-cart": "^3.1.9",
27
- "@graphcommerce/magento-store": "^3.0.20",
28
- "@graphcommerce/next-ui": "^3.3.0",
29
- "@graphcommerce/react-hook-form": "^2.102.6",
24
+ "@graphcommerce/graphql": "^2.103.7",
25
+ "@graphcommerce/image": "^2.104.10",
26
+ "@graphcommerce/magento-cart": "^3.1.13",
27
+ "@graphcommerce/magento-store": "^3.0.24",
28
+ "@graphcommerce/next-ui": "^3.4.0",
29
+ "@graphcommerce/react-hook-form": "^2.102.8",
30
30
  "@graphql-typed-document-node/core": "^3.1.0",
31
31
  "@material-ui/core": "^4.12.3",
32
32
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -35,5 +35,6 @@
35
35
  "next": "^11.1.2",
36
36
  "react": "^17.0.2",
37
37
  "react-dom": "^17.0.2"
38
- }
38
+ },
39
+ "gitHead": "f94866e061369b3d3824d1953a7bfb65c603568f"
39
40
  }
package/Api/Coupon.gql.ts DELETED
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- import * as Types from '@graphcommerce/graphql';
3
-
4
- export type CouponFragment = { __typename: 'Cart', id: string, applied_coupons?: Array<{ code: string } | null | undefined> | null | undefined, shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, prices?: { __typename: 'CartPrices', applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined };
@@ -1,13 +0,0 @@
1
- /* eslint-disable */
2
- import * as Types from '@graphcommerce/graphql';
3
-
4
- import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
-
6
- export const ApplyCouponFormDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ApplyCouponForm"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"couponCode"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applyCouponToCart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"coupon_code"},"value":{"kind":"Variable","name":{"kind":"Name","value":"couponCode"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_coupons"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}}]}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"price_incl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price_excl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_taxes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"grand_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_with_discount_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ApplyCouponFormMutation, ApplyCouponFormMutationVariables>;
7
- export type ApplyCouponFormMutationVariables = Types.Exact<{
8
- cartId: Types.Scalars['String'];
9
- couponCode: Types.Scalars['String'];
10
- }>;
11
-
12
-
13
- export type ApplyCouponFormMutation = { applyCouponToCart?: { cart: { __typename: 'Cart', id: string, applied_coupons?: Array<{ code: string } | null | undefined> | null | undefined, shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, prices?: { __typename: 'CartPrices', applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } } | null | undefined };
@@ -1,12 +0,0 @@
1
- /* eslint-disable */
2
- import * as Types from '@graphcommerce/graphql';
3
-
4
- import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
-
6
- export const GetCouponDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCoupon"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_coupons"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}}]}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"price_incl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price_excl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_taxes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"grand_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_with_discount_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetCouponQuery, GetCouponQueryVariables>;
7
- export type GetCouponQueryVariables = Types.Exact<{
8
- cartId: Types.Scalars['String'];
9
- }>;
10
-
11
-
12
- export type GetCouponQuery = { cart?: { __typename: 'Cart', id: string, applied_coupons?: Array<{ code: string } | null | undefined> | null | undefined, shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, prices?: { __typename: 'CartPrices', applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | null | undefined };
@@ -1,12 +0,0 @@
1
- /* eslint-disable */
2
- import * as Types from '@graphcommerce/graphql';
3
-
4
- import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
-
6
- export const RemoveCouponFormDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RemoveCouponForm"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"removeCouponFromCart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_coupons"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}}]}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"price_incl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price_excl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_taxes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"grand_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_with_discount_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<RemoveCouponFormMutation, RemoveCouponFormMutationVariables>;
7
- export type RemoveCouponFormMutationVariables = Types.Exact<{
8
- cartId: Types.Scalars['String'];
9
- }>;
10
-
11
-
12
- export type RemoveCouponFormMutation = { removeCouponFromCart?: { cart?: { __typename: 'Cart', id: string, applied_coupons?: Array<{ code: string } | null | undefined> | null | undefined, shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, prices?: { __typename: 'CartPrices', applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | null | undefined } | null | undefined };