shared-definitions.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. `);