Download the PHP package mageworx/module-giftcards-graphql without Composer
On this page you can find all versions of the php package mageworx/module-giftcards-graphql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mageworx/module-giftcards-graphql
More information about mageworx/module-giftcards-graphql
Files in mageworx/module-giftcards-graphql
Package module-giftcards-graphql
Short Description MageWorx Gift Cards GraphQl
License OSL-3.0 AFL-3.0
Informations about the package module-giftcards-graphql
MageWorx_GiftCardsGraphQl
GraphQL API module for Mageworx Magento 2 Gift Cards extension.
Installation
1) Installation using composer (from packagist)
- Execute the following command:
composer require mageworx/module-giftcards-graphql
2) Copy-to-paste method
- Download this module and upload it to the
app/code/MageWorx/GiftCardsGraphQl
directory (create "GiftCardsGraphQl" first if missing)
How to use
1. The mwGiftCardInfo query returns the information about the Gift Cards.
Query attribute is defined below:
By default you can use the following attributes:
MwGiftCardBalance object:
Request:
Response:
2. The applyMwGiftCardToCart mutation allows you to add any Gift Card to the cart.
Syntax:
The ApplyMwGiftCardToCartInput object must contain the following attributes:
The ApplyMwGiftCardToCartOutput object contains the Cart object.
Cart object:
AppliedMwGiftCards object
MwGiftCardBalance object
Request:
Response:
3. The removeMwGiftCardFromCart mutation allows you to remove Gift Card in the cart.
Syntax:
The RemoveMwGiftCardToCartInput object must contain the following attributes:
The RemoveMwGiftCardFromCartOutput object contains the Cart object.
Cart object:
AppliedMwGiftCards object
MwGiftCardBalance object
Request:
Response:
4. Gift Card product
This request allows you to retrieve the information about Mageworx Gift card product.
MageWorxGiftCards implements ProductInterface. The MageWorxGiftCards object contains the following attributes:
MageWorxGiftCardAdditionalPrice attributes
MageWorxGiftCardCustomerGroup attribute
Request:
Response:
5. MageWorxGiftCardsCartItem implementation
The MageWorxGiftCardsCartItem object implements CartItemInterface. The MageWorxGiftCardsCartItem object contains the following attributes:
Request:
Response:
6. The addGiftCardProductsToCart mutation allows you to add any Gift Card Product to the cart.
Syntax:
The AddGiftCardProductsToCartInput object must contain the following attributes:
GiftCardProductCartItemInput object:
GiftCardProductOptionsInput object:
The AddGiftCardProductsToCartOutput object contains the Cart object:
Request:
Response:
All versions of module-giftcards-graphql with dependencies
magento/module-catalog Version >= 102.0.0 < 105
magento/module-ui Version >= 100.1.0
magento/framework Version >=102.0.0 <104
magento/module-quote-graph-ql Version >= 100.3.2 < 100.5
magento/module-url-rewrite-graph-ql Version >= 100.4.2 < 100.5