First thanks to you all, for your excellent work improving the Shopify integration.
I have been using the new query builders to get gift card information from Shopify.
The currencyCode returns 2 instead of GBP, which is incorrect.
Using what a third-party client matches the MoneyV2 reference.
var builder = new GiftCardsOperationQueryBuilder()
.Nodes(nodes =>
{
nodes.Id()
.Enabled()
.CreatedAt()
.UpdatedAt()
.ExpiresOn()
.LastCharacters()
.Balance(balance =>
{
balance.Amount()
.CurrencyCode();
});
})
.SetArguments(args => args.First(2).Query("12345678"));
Produces the following json:
query {
giftCards(first: 2, query: "12345678") {
nodes {
id
enabled
createdAt
updatedAt
expiresOn
lastCharacters
balance {
amount
currencyCode
}
}
}
}
Gift Cards
First thanks to you all, for your excellent work improving the Shopify integration.
I have been using the new query builders to get gift card information from Shopify.
The currencyCode returns 2 instead of GBP, which is incorrect.
Using what a third-party client matches the MoneyV2 reference.
Produces the following json:
Gift Cards