{
	"info": {
		"_postman_id": "7d89bdd4-e525-4919-b8ca-b375de6e3b78",
		"name": "AIR API",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "List",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "fc906413-a408-45d8-83d7-bbcdb3fae6bb",
						"exec": [
							"pm.test(\"Status code is 200\", function () {",
							"    pm.response.to.have.status(200);",
							"});",
							"",
							"pm.environment.set(\"TMCAIRRequestID\", pm.response.json().requestID);",
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "adt",
							"value": "1",
							"type": "text"
						},
						{
							"key": "yth",
							"value": "0",
							"type": "text"
						},
						{
							"key": "chd",
							"value": "0",
							"type": "text"
						},
						{
							"key": "inf",
							"value": "0",
							"type": "text"
						},
						{
							"key": "search[0][origin]",
							"value": "ZAG",
							"type": "text"
						},
						{
							"key": "search[0][destination]",
							"value": "NYC",
							"type": "text"
						},
						{
							"key": "search[0][departure]",
							"value": "2019-11-19",
							"type": "text"
						},
						{
							"key": "search[1][origin]",
							"value": "NYC",
							"type": "text",
							"disabled": true
						},
						{
							"key": "search[1][destination]",
							"value": "ZAG",
							"type": "text",
							"disabled": true
						},
						{
							"key": "search[1][departure]",
							"value": "2019-10-25",
							"type": "text",
							"disabled": true
						}
					]
				},
				"url": {
					"raw": "https://air.tmc-solutions.xyz/v1/list?key={{TMCBrandKey}}",
					"protocol": "https",
					"host": [
						"air",
						"tmc-solutions",
						"xyz"
					],
					"path": [
						"v1",
						"list"
					],
					"query": [
						{
							"key": "key",
							"value": "{{TMCBrandKey}}"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Choose",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "requestID",
							"value": "{{TMCAIRRequestID}}",
							"type": "text"
						},
						{
							"key": "option",
							"value": "<string>",
							"type": "text"
						},
						{
							"key": "flights[0]",
							"value": "<string>",
							"type": "text"
						},
						{
							"key": "flights[1]",
							"value": "<string>",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://air.tmc-solutions.xyz/test/choose?key={{TMCBrandKey}}",
					"protocol": "https",
					"host": [
						"air",
						"tmc-solutions",
						"xyz"
					],
					"path": [
						"test",
						"choose"
					],
					"query": [
						{
							"key": "key",
							"value": "{{TMCBrandKey}}"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Book",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "requestID",
							"value": "{{TMCAIRRequestID}}",
							"type": "text"
						},
						{
							"key": "payment",
							"value": "invoice",
							"type": "text"
						},
						{
							"key": "customer[firstName]",
							"value": "Foo",
							"type": "text"
						},
						{
							"key": "customer[lastName]",
							"value": "Bar",
							"type": "text"
						},
						{
							"key": "customer[phone]",
							"value": "+3859123456789",
							"type": "text"
						},
						{
							"key": "customer[email]",
							"value": "foo//bar.com",
							"type": "text"
						},
						{
							"key": "passanger[0][firstName]",
							"value": "Foo",
							"type": "text"
						},
						{
							"key": "passanger[0][lastName]",
							"value": "Bar",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://air.tmc-solutions.xyz/test/book?key={{TMCBrandKey}}",
					"protocol": "https",
					"host": [
						"air",
						"tmc-solutions",
						"xyz"
					],
					"path": [
						"test",
						"book"
					],
					"query": [
						{
							"key": "key",
							"value": "{{TMCBrandKey}}"
						}
					]
				}
			},
			"response": []
		}
	]
}