{
	"info": {
		"_postman_id": "51d2256b-cd3a-4502-8ed1-a070382d5bf1",
		"name": "bnpl PROD empty",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "47773703"
	},
	"item": [
		{
			"name": "list-plans",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"pm.variables.set('msgId', uuidv4());",
							"function uuidv4() {",
							"    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {",
							"        var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);",
							"        return v.toString(16);",
							"    })",
							"}"
						],
						"type": "text/javascript",
						"packages": {},
						"requests": {}
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "token",
						"value": "",
						"type": "text"
					},
					{
						"key": "x-Merchant-ID",
						"value": "",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\"senderInfo\":{\"lang\":1,\"sender\":\"00968xxxxxxxx\",\"senderType\":\"M\",\"msgId\":\"unique-messge-id\",\"deviceId\":\"device-id\"},\"amount\":\"amount-in-OMR\",\"merchantId\":\"merchant-service-id\"}\r\n",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://bnpl-api-prod.fintec.solutions/bnpl/mw/list-plans",
					"protocol": "https",
					"host": [
						"bnpl-api-prod",
						"fintec",
						"solutions"
					],
					"path": [
						"bnpl",
						"mw",
						"list-plans"
					]
				}
			},
			"response": []
		},
		{
			"name": "generate-otp",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "token",
						"value": "",
						"type": "text"
					},
					{
						"key": "x-Merchant-ID",
						"value": "",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\"senderInfo\":{\"lang\":1,\"sender\":\"00968xxxxxxxx\",\"senderType\":\"M\",\"msgId\":\"unique-message-id\"},\"storeInformation\":{\"name\":\"your-store-name\"}}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://bnpl-api-prod.fintec.solutions/bnpl/mw/generate-otp",
					"protocol": "https",
					"host": [
						"bnpl-api-prod",
						"fintec",
						"solutions"
					],
					"path": [
						"bnpl",
						"mw",
						"generate-otp"
					]
				}
			},
			"response": []
		},
		{
			"name": "list of cards",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"pm.variables.set('msgId', uuidv4());",
							"function uuidv4() {",
							"    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {",
							"        var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);",
							"        return v.toString(16);",
							"    })",
							"}"
						],
						"type": "text/javascript",
						"packages": {},
						"requests": {}
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "token",
						"value": "",
						"type": "text"
					},
					{
						"key": "x-Merchant-ID",
						"value": "",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\"senderInfo\":{\"lang\":1,\"sender\":\"00968xxxxxxxx\",\"senderType\":\"M\",\"deviceId\":\"device-id\",\"msgId\":\"unique-message-id\",\"otp\":\"hashed-otp\"}}\n",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://bnpl-api-prod.fintec.solutions/bnpl/mw/list-card",
					"protocol": "https",
					"host": [
						"bnpl-api-prod",
						"fintec",
						"solutions"
					],
					"path": [
						"bnpl",
						"mw",
						"list-card"
					]
				}
			},
			"response": []
		},
		{
			"name": "confirm plan",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"pm.variables.set('msgId', uuidv4());",
							"function uuidv4() {",
							"    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {",
							"        var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);",
							"        return v.toString(16);",
							"    })",
							"}"
						],
						"type": "text/javascript",
						"packages": {},
						"requests": {}
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "token",
						"value": "",
						"type": "text"
					},
					{
						"key": "x-Merchant-ID",
						"value": "",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\"senderInfo\":{\"lang\":1,\"otp\":\"hashed-otp\",\"sender\":\"00968xxxxxxxx\",\"senderType\":\"M\",\"msgId\":\"unique-message-id\",\"deviceId\":\"device-id\"},\"planInfo\":{\"planId\":1,\"principleId\":0,\"merchantId\":\"merchant-service-id\",\"account\":\"customer-card\"},\"amount\":\"amount-in-OMR\"}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://bnpl-api-prod.fintec.solutions/bnpl/mw/confirm-plan",
					"protocol": "https",
					"host": [
						"bnpl-api-prod",
						"fintec",
						"solutions"
					],
					"path": [
						"bnpl",
						"mw",
						"confirm-plan"
					]
				}
			},
			"response": []
		},
		{
			"name": "Refund",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "x-Merchant-ID",
						"value": "",
						"type": "text"
					},
					{
						"key": "token",
						"value": "",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\"senderInfo\":{\"lang\":1,\"sender\":\"merchant-service-id\",\"senderType\":\"C\",\"otp\":null,\"deviceId\":\"device-id\",\"msgId\":\"unique-message-id\"},\"refundInfo\":{\"loanId\":\"loan-id\",\"amount\":\"original-full-amount-in-OMR\"}}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://bnpl-api-prod.fintec.solutions/bnpl/mw/bnpl-refund",
					"protocol": "https",
					"host": [
						"bnpl-api-prod",
						"fintec",
						"solutions"
					],
					"path": [
						"bnpl",
						"mw",
						"bnpl-refund"
					]
				}
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					"pm.variables.set('msgId', uuidv4());",
					"function uuidv4() {",
					"    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {",
					"        var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);",
					"        return v.toString(16);",
					"    })",
					"}",
					"",
					"pm.variables.set('x', y());",
					"function y() {",
					"var x = Math.floor(1000000 + Math.random() * 90000000);   ",
					"return ('00968'+x);   }"
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "bnpl",
			"value": "https://quantum-bnplonboardi-master-bnpl-apis.mobile-dev.progressoft.cloud",
			"type": "string"
		}
	]
}