{
    "basePath": "http://localhost/taxmapp-api/public",
    "swaggerVersion": "1.2",
    "apiVersion": "1.0.0",
    "resourcePath": "/payment",
    "apis": [
        {
            "path": "/v2/payment",
            "operations": [
                {
                    "method": "POST",
                    "summary": "Create payment for tax return",
                    "nickname": "payment-for-tax-return",
                    "parameters": [
                        {
                            "paramType": "body",
                            "name": "body",
                            "type": "PaymentTaxReturn",
                            "required": true,
                            "allowMultiple": true,
                            "description": "Json Object"
                        }
                    ],
                    "responseMessages": [
                        {
                            "code": 400,
                            "message": "Invalid request params"
                        },
                        {
                            "code": 401,
                            "message": "Caller is not authenticated"
                        },
                        {
                            "code": 404,
                            "message": "Resource not found"
                        }
                    ]
                }
            ]
        },
        {
            "path": "/v2/payment/{tax_return_id}/{type_id}",
            "operations": [
                {
                    "method": "GET",
                    "summary": "Check payment for tax return",
                    "nickname": "payment-tax-return",
                    "parameters": [
                        {
                            "paramType": "path",
                            "name": "tax_year_id",
                            "type": "string",
                            "required": true,
                            "allowMultiple": false,
                            "description": "Tax Year Id"
                        },
                        {
                            "paramType": "path",
                            "name": "type_id",
                            "type": "string",
                            "required": true,
                            "allowMultiple": false,
                            "description": "Type Id"
                        }
                    ],
                    "responseMessages": [
                        {
                            "code": 400,
                            "message": "Invalid request params"
                        },
                        {
                            "code": 401,
                            "message": "Caller is not authenticated"
                        },
                        {
                            "code": 404,
                            "message": "Resource not found"
                        }
                    ]
                }
            ]
        }
    ],
    "models": {
        "PaymentTaxReturn": {
            "id": "PaymentTaxReturn",
            "properties": {
                "name": {
                    "type": "string",
                    "defaultValue": "Test"
                },
                "email": {
                    "type": "string",
                    "defaultValue": "test@basetax.com"
                },
                "telephone": {
                    "type": "string",
                    "defaultValue": "123-(456)-789"
                },
                "tax_year_id": {
                    "type": "string",
                    "defaultValue": "4"
                },
                "plan": {
                    "type": "string",
                    "defaultValue": "planA"
                },
                "type_id": {
                    "type": "string",
                    "defaultValue": "1"
                },
                "token": {
                    "type": "string",
                    "defaultValue": "TOKEN_STRIPE_JS"
                }
            }
        }
    },
    "produces": [
        "application/json"
    ]
}