Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. const {gql} = require('apollo-server-express');
  2.  
  3. module.exports = gql`
  4. type VerificationQA {
  5. questionId: Int
  6. questionText: String
  7. answerChoices: [VerificationChoice]
  8. }
  9. type VerificationChoice {
  10. choiceId: Int!
  11. answerText: String!
  12. }
  13. type CreditResponse {
  14. creditSuccess: Boolean!
  15. totalDue: [LineItem]
  16. phone:String
  17. identityVerification: [VerificationQA]
  18. billing: BillingResponse
  19. appointments: [Appointment]
  20. }
  21. input Contact {
  22. firstName: String!
  23. lastName: String!
  24. email: String!
  25. phone: String
  26. }
  27.  
  28. input VerificationAnswer {
  29. questionId: Int!
  30. selectedChoiceId: Int!
  31. }
  32.  
  33. extend type Mutation{
  34. runCredit(orderId: String!, contact: Contact, verificationAnswers: [VerificationAnswer]): CreditResponse
  35. }
  36. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement