Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mutation ($bookInput: HotelBookInput!, $settings: HotelSettingsInput) {
- hotelX {
- book(input: $bookInput, settings: $settings) {
- booking {
- price {
- currency
- binding
- net
- gross
- exchange {
- currency
- rate
- }
- markups {
- channel
- currency
- binding
- net
- gross
- exchange {
- currency
- rate
- }
- }
- }
- status
- remarks
- reference {
- client
- supplier
- }
- holder {
- name
- surname
- }
- hotel {
- creationDate
- checkIn
- checkOut
- hotelCode
- hotelName
- boardCode
- occupancies {
- id
- paxes {
- age
- }
- }
- rooms {
- code
- description
- occupancyRefId
- price {
- currency
- binding
- net
- gross
- exchange {
- currency
- rate
- }
- markups {
- channel
- currency
- binding
- net
- gross
- exchange {
- currency
- rate
- }
- }
- }
- }
- }
- }
- errors {
- code
- type
- description
- }
- warnings {
- code
- type
- description
- }
- }
- }
- }
- // GraphQL Variables //
- {
- "bookInput": {
- "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",
- "clientReference": "BookTest1100",
- "deltaPrice": {
- "amount": 200,
- "percent": 200,
- "applyBoth": true
- },
- "paymentCard": {
- "cardType": "VI",
- "holder": {
- "name": "Test",
- "surname": "Test"
- },
- "number": "0123456789101112",
- "CVC": "123",
- "expire": {
- "month": 10,
- "year": 19
- }
- },
- "holder": {
- "name": "Test",
- "surname": "Test"
- },
- "rooms": [
- {
- "occupancyRefId": 1,
- "paxes": [
- {
- "name": "Test1",
- "surname": "Test1",
- "age": 30
- },
- {
- "name": "Test2",
- "surname": "Test2",
- "age": 30
- }
- ]
- },
- {
- "occupancyRefId": 2,
- "paxes": [
- {
- "name": "Test1",
- "surname": "Test1",
- "age": 30
- },
- {
- "name": "Test2",
- "surname": "Test2",
- "age": 30
- },
- {
- "name": "Test3",
- "surname": "Test3",
- "age": 5
- }
- ]
- }
- ]
- },
- "settings": {
- "client": "sunmaster",
- "testMode": true,
- "context": "HOTELTEST"
- }
- }
- // Response //
- {
- "data": {
- "hotelX": {
- "book": {
- "booking": {
- "price": null,
- "status": "UNKNOWN",
- "remarks": null,
- "reference": {
- "client": "BookTest1100",
- "supplier": null
- },
- "holder": null,
- "hotel": null
- },
- "errors": [
- {
- "code": "35",
- "type": "102",
- "description": "Confirmation error"
- }
- ],
- "warnings": null
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement