Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. mutation ($bookInput: HotelBookInput!, $settings: HotelSettingsInput) {
  2. hotelX {
  3. book(input: $bookInput, settings: $settings) {
  4. booking {
  5. price {
  6. currency
  7. binding
  8. net
  9. gross
  10. exchange {
  11. currency
  12. rate
  13. }
  14. markups {
  15. channel
  16. currency
  17. binding
  18. net
  19. gross
  20. exchange {
  21. currency
  22. rate
  23. }
  24. }
  25. }
  26. status
  27. remarks
  28. reference {
  29. client
  30. supplier
  31. }
  32. holder {
  33. name
  34. surname
  35. }
  36. hotel {
  37. creationDate
  38. checkIn
  39. checkOut
  40. hotelCode
  41. hotelName
  42. boardCode
  43. occupancies {
  44. id
  45. paxes {
  46. age
  47. }
  48. }
  49. rooms {
  50. code
  51. description
  52. occupancyRefId
  53. price {
  54. currency
  55. binding
  56. net
  57. gross
  58. exchange {
  59. currency
  60. rate
  61. }
  62. markups {
  63. channel
  64. currency
  65. binding
  66. net
  67. gross
  68. exchange {
  69. currency
  70. rate
  71. }
  72. }
  73. }
  74. }
  75. }
  76. }
  77. errors {
  78. code
  79. type
  80. description
  81. }
  82. warnings {
  83. code
  84. type
  85. description
  86. }
  87. }
  88. }
  89. }
  90.  
  91.  
  92. // GraphQL Variables //
  93. {
  94. "bookInput": {
  95. "optionRefId": "71@11[191210[191212[1[14[1[EN[EN[en[GBP[0[1[2396[1[14[1[0[200#0#false#EUR##0#[1|30#30/30#30#5|1|2019-12-10|2|143250|143278|14|0|0[1[30#30[2|30#30/30#30#5|1|2019-12-10|2|143250|143278|14|0|0[1[30#30#5[[After@200@Before@200@ExpireDate@12/12/2019@mercado@EN@tgx_sess@b7da6436-5a73-465a-9e0f-fa0cc9c3d6bd",
  96. "clientReference": "BookTest1100",
  97. "deltaPrice": {
  98. "amount": 200,
  99. "percent": 200,
  100. "applyBoth": true
  101. },
  102. "paymentCard": {
  103. "cardType": "VI",
  104. "holder": {
  105. "name": "Test",
  106. "surname": "Test"
  107. },
  108. "number": "0123456789101112",
  109. "CVC": "123",
  110. "expire": {
  111. "month": 10,
  112. "year": 19
  113. }
  114. },
  115. "holder": {
  116. "name": "Test",
  117. "surname": "Test"
  118. },
  119. "rooms": [
  120. {
  121. "occupancyRefId": 1,
  122. "paxes": [
  123. {
  124. "name": "Test1",
  125. "surname": "Test1",
  126. "age": 30
  127. },
  128. {
  129. "name": "Test2",
  130. "surname": "Test2",
  131. "age": 30
  132. }
  133. ]
  134. },
  135. {
  136. "occupancyRefId": 2,
  137. "paxes": [
  138. {
  139. "name": "Test1",
  140. "surname": "Test1",
  141. "age": 30
  142. },
  143. {
  144. "name": "Test2",
  145. "surname": "Test2",
  146. "age": 30
  147. },
  148. {
  149. "name": "Test3",
  150. "surname": "Test3",
  151. "age": 5
  152. }
  153. ]
  154. }
  155. ]
  156. },
  157. "settings": {
  158. "client": "sunmaster",
  159. "testMode": true,
  160. "context": "HOTELTEST"
  161. }
  162. }
  163.  
  164.  
  165. // Response //
  166.  
  167. {
  168. "data": {
  169. "hotelX": {
  170. "book": {
  171. "booking": {
  172. "price": null,
  173. "status": "UNKNOWN",
  174. "remarks": null,
  175. "reference": {
  176. "client": "BookTest1100",
  177. "supplier": null
  178. },
  179. "holder": null,
  180. "hotel": null
  181. },
  182. "errors": [
  183. {
  184. "code": "35",
  185. "type": "102",
  186. "description": "Confirmation error"
  187. }
  188. ],
  189. "warnings": null
  190. }
  191. }
  192. }
  193. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement