Skip to content

Commit 465687a

Browse files
lkostrowskiclaude
andcommitted
Add gift card payment method display in order transactions
Add GiftCardPaymentMethod component to display Saleor gift card payment details (icon + masked code) in order transaction cards. Update GraphQL fragment to fetch SaleorGiftcardPaymentMethodDetails with code field. Add Storybook story for the new payment method. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 664d662 commit 465687a

12 files changed

Lines changed: 623 additions & 662 deletions

schema-main.graphql

Lines changed: 122 additions & 154 deletions
Large diffs are not rendered by default.

src/fragments/orders.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,11 @@ export const transactionItemFragment = gql`
642642
lastDigits
643643
}
644644
645+
fragment SaleorGiftcardPaymentMethodDetails on SaleorGiftcardPaymentMethodDetails {
646+
name
647+
code
648+
}
649+
645650
fragment TransactionItem on TransactionItem {
646651
...TransactionBaseItem
647652
pspReference
@@ -666,6 +671,9 @@ export const transactionItemFragment = gql`
666671
... on OtherPaymentMethodDetails {
667672
...OtherPaymentMethodDetails
668673
}
674+
... on SaleorGiftcardPaymentMethodDetails {
675+
...SaleorGiftcardPaymentMethodDetails
676+
}
669677
}
670678
events {
671679
...TransactionEvent

src/graphql/fabbrica.generated.ts

Lines changed: 128 additions & 110 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)