shared-definitions.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import { graphql } from './graphql-shop';
  2. export const createMolliePaymentIntentDocument = graphql(`
  3. mutation createMolliePaymentIntent($input: MolliePaymentIntentInput!) {
  4. createMolliePaymentIntent(input: $input) {
  5. ... on MolliePaymentIntent {
  6. url
  7. }
  8. ... on MolliePaymentIntentError {
  9. errorCode
  10. message
  11. }
  12. }
  13. }
  14. `);
  15. export const getMolliePaymentMethodsDocument = graphql(`
  16. query molliePaymentMethods($input: MolliePaymentMethodsInput!) {
  17. molliePaymentMethods(input: $input) {
  18. id
  19. code
  20. description
  21. minimumAmount {
  22. value
  23. currency
  24. }
  25. maximumAmount {
  26. value
  27. currency
  28. }
  29. image {
  30. size1x
  31. size2x
  32. svg
  33. }
  34. }
  35. }
  36. `);
  37. export const createStripePaymentIntentDocument = graphql(`
  38. mutation createStripePaymentIntent {
  39. createStripePaymentIntent
  40. }
  41. `);
  42. export const createCustomStripePaymentIntentDocument = graphql(`
  43. mutation createCustomStripePaymentIntent {
  44. createCustomStripePaymentIntent
  45. }
  46. `);
  47. export const syncMolliePaymentStatusDocument = graphql(`
  48. mutation syncMolliePaymentStatus($orderCode: String!) {
  49. syncMolliePaymentStatus(orderCode: $orderCode) {
  50. id
  51. code
  52. state
  53. }
  54. }
  55. `);