{
    "type": "object",
    "title": "The Root Schema",
    "required": [
        "resp",
        "salt"
    ],
    "properties": {
        "resp": {
            "type": "object",
            "title": "The Response Schema",
            "required": [
                "project_id",
                "payment",
                "signature"
            ],
            "properties": {
                "project_id": {
                    "type": "integer",
                    "title": "The Project_id Schema",
                    "default": 0,
                    "examples": [
                        418
                    ]
                },
                "payment": {
                    "$id": "#/properties/resp/properties/payment",
                    "type": "object",
                    "title": "The Payment Schema",
                    "required": [
                        "status",
                        "id"
                    ],
                    "properties": {
                        "id": {
                            "$id": "#/properties/resp/properties/payment/properties/id",
                            "type": "string",
                            "title": "The Id Schema",
                            "default": "",
                            "examples": [
                                "cdf23ee5-ab66-4d50-b07c-86c1c51a8740"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "type": {
                            "$id": "#/properties/resp/properties/payment/properties/type",
                            "type": "string",
                            "title": "The Type Schema",
                            "default": "",
                            "examples": [
                                "purchase"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "status": {
                            "$id": "#/properties/resp/properties/payment/properties/status",
                            "type": "string",
                            "title": "The Status Schema",
                            "default": "",
                            "examples": [
                                "decline"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "date": {
                            "$id": "#/properties/resp/properties/payment/properties/date",
                            "type": "string",
                            "title": "The Date Schema",
                            "default": "",
                            "examples": [
                                "2018-10-03T10:31:32+0000"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "method": {
                            "$id": "#/properties/resp/properties/payment/properties/method",
                            "type": "string",
                            "title": "The Method Schema",
                            "default": "",
                            "examples": [
                                "card"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "sum": {
                            "$id": "#/properties/resp/properties/payment/properties/sum",
                            "type": "object",
                            "title": "The Sum Schema",
                            "properties": {
                                "amount": {
                                    "$id": "#/properties/resp/properties/payment/properties/sum/properties/amount",
                                    "type": "integer",
                                    "title": "The Amount Schema",
                                    "default": 0,
                                    "examples": [
                                        100
                                    ]
                                },
                                "currency": {
                                    "$id": "#/properties/resp/properties/payment/properties/sum/properties/currency",
                                    "type": "string",
                                    "title": "The Currency Schema",
                                    "default": "",
                                    "examples": [
                                        "USD"
                                    ],
                                    "pattern": "^(.*)$"
                                }
                            }
                        },
                        "description": {
                            "$id": "#/properties/resp/properties/payment/properties/description",
                            "type": "string",
                            "title": "The Description Schema",
                            "default": "",
                            "examples": [
                                ""
                            ],
                            "pattern": "^(.*)$"
                        }
                    }
                },
                "account": {
                    "$id": "#/properties/resp/properties/account",
                    "type": "object",
                    "title": "The Account Schema",
                    "required": [
                        "number"
                    ],
                    "properties": {
                        "number": {
                            "$id": "#/properties/resp/properties/account/properties/number",
                            "type": "string",
                            "title": "The Number Schema",
                            "default": "",
                            "examples": [
                                "541333******0035"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "type": {
                            "$id": "#/properties/resp/properties/account/properties/type",
                            "type": "string",
                            "title": "The Type Schema",
                            "default": "",
                            "examples": [
                                "mastercard"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "card_holder": {
                            "$id": "#/properties/resp/properties/account/properties/card_holder",
                            "type": "string",
                            "title": "The Card_holder Schema",
                            "default": "",
                            "examples": [
                                "QWERT"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "expiry_month": {
                            "$id": "#/properties/resp/properties/account/properties/expiry_month",
                            "type": "string",
                            "title": "The Expiry_month Schema",
                            "default": "",
                            "examples": [
                                "10"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "expiry_year": {
                            "$id": "#/properties/resp/properties/account/properties/expiry_year",
                            "type": "string",
                            "title": "The Expiry_year Schema",
                            "default": "",
                            "examples": [
                                "2018"
                            ],
                            "pattern": "^(.*)$"
                        }
                    }
                },
                "customer": {
                    "$id": "#/properties/resp/properties/customer",
                    "type": "object",
                    "title": "The Customer Schema",
                    "properties": {
                        "id": {
                            "$id": "#/properties/resp/properties/customer/properties/id",
                            "type": "string",
                            "title": "The Id Schema",
                            "default": "",
                            "examples": [
                                "cj99tfbgi022d0o2kuag9ypg6"
                            ],
                            "pattern": "^(.*)$"
                        }
                    }
                },
                "operation": {
                    "$id": "#/properties/resp/properties/operation",
                    "type": "object",
                    "title": "The Operation Schema",
                    "properties": {
                        "id": {
                            "$id": "#/properties/resp/properties/operation/properties/id",
                            "type": "integer",
                            "title": "The Id Schema",
                            "default": 0,
                            "examples": [
                                19402000001436
                            ]
                        },
                        "type": {
                            "$id": "#/properties/resp/properties/operation/properties/type",
                            "type": "string",
                            "title": "The Type Schema",
                            "default": "",
                            "examples": [
                                "sale"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "status": {
                            "$id": "#/properties/resp/properties/operation/properties/status",
                            "type": "string",
                            "title": "The Status Schema",
                            "default": "",
                            "examples": [
                                "decline"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "date": {
                            "$id": "#/properties/resp/properties/operation/properties/date",
                            "type": "string",
                            "title": "The Date Schema",
                            "default": "",
                            "examples": [
                                "2018-10-03T10:31:32+0000"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "created_date": {
                            "$id": "#/properties/resp/properties/operation/properties/created_date",
                            "type": "string",
                            "title": "The Created_date Schema",
                            "default": "",
                            "examples": [
                                "2018-10-03T10:31:26+0000"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "request_id": {
                            "$id": "#/properties/resp/properties/operation/properties/request_id",
                            "type": "string",
                            "title": "The Request_id Schema",
                            "default": "",
                            "examples": [
                                "2ff6419b3ff8a81a3f7e12e8e5ae7e229dc35241-044505986b181f44b9f2a169c65d5a90f83e5ae0"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "sum_initial": {
                            "$id": "#/properties/resp/properties/operation/properties/sum_initial",
                            "type": "object",
                            "title": "The Sum_initial Schema",
                            "properties": {
                                "amount": {
                                    "$id": "#/properties/resp/properties/operation/properties/sum_initial/properties/amount",
                                    "type": "integer",
                                    "title": "The Amount Schema",
                                    "default": 0,
                                    "examples": [
                                        100
                                    ]
                                },
                                "currency": {
                                    "$id": "#/properties/resp/properties/operation/properties/sum_initial/properties/currency",
                                    "type": "string",
                                    "title": "The Currency Schema",
                                    "default": "",
                                    "examples": [
                                        "USD"
                                    ],
                                    "pattern": "^(.*)$"
                                }
                            }
                        },
                        "sum_converted": {
                            "$id": "#/properties/resp/properties/operation/properties/sum_converted",
                            "type": "object",
                            "title": "The Sum_converted Schema",
                            "properties": {
                                "amount": {
                                    "$id": "#/properties/resp/properties/operation/properties/sum_converted/properties/amount",
                                    "type": "integer",
                                    "title": "The Amount Schema",
                                    "default": 0,
                                    "examples": [
                                        100
                                    ]
                                },
                                "currency": {
                                    "$id": "#/properties/resp/properties/operation/properties/sum_converted/properties/currency",
                                    "type": "string",
                                    "title": "The Currency Schema",
                                    "default": "",
                                    "examples": [
                                        "USD"
                                    ],
                                    "pattern": "^(.*)$"
                                }
                            }
                        },
                        "provider": {
                            "$id": "#/properties/resp/properties/operation/properties/provider",
                            "type": "object",
                            "title": "The Provider Schema",
                            "properties": {
                                "id": {
                                    "$id": "#/properties/resp/properties/operation/properties/provider/properties/id",
                                    "type": "integer",
                                    "title": "The Id Schema",
                                    "default": 0,
                                    "examples": [
                                        6
                                    ]
                                },
                                "payment_id": {
                                    "$id": "#/properties/resp/properties/operation/properties/provider/properties/payment_id",
                                    "type": "string",
                                    "title": "The Payment_id Schema",
                                    "default": "",
                                    "examples": [
                                        "15385626929802"
                                    ],
                                    "pattern": "^(.*)$"
                                },
                                "date": {
                                    "$id": "#/properties/resp/properties/operation/properties/provider/properties/date",
                                    "type": "string",
                                    "title": "The Date Schema",
                                    "default": "",
                                    "examples": [
                                        "2018-02-07T08:34:24+0000"
                                    ],
                                    "pattern": "^(.*)$"
                                },
                                "auth_code": {
                                    "$id": "#/properties/resp/properties/operation/properties/provider/properties/auth_code",
                                    "type": "string",
                                    "title": "The Auth_code Schema",
                                    "default": "",
                                    "examples": [
                                        "563253"
                                    ],
                                    "pattern": "^(.*)$"
                                },
                                "endpoint_id": {
                                    "$id": "#/properties/resp/properties/operation/properties/provider/properties/endpoint_id",
                                    "type": "integer",
                                    "title": "The Endpoint_id Schema",
                                    "default": 0,
                                    "examples": [
                                        6
                                    ]
                                }
                            }
                        },
                        "code": {
                            "$id": "#/properties/resp/properties/operation/properties/code",
                            "type": "string",
                            "title": "The Code Schema",
                            "default": "",
                            "examples": [
                                "0"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "message": {
                            "$id": "#/properties/resp/properties/operation/properties/message",
                            "type": "string",
                            "title": "The Message Schema",
                            "default": "",
                            "examples": [
                                "Success"
                            ],
                            "pattern": "^(.*)$"
                        },
                        "eci": {
                            "$id": "#/properties/resp/properties/operation/properties/eci",
                            "type": "string",
                            "title": "The Eci Schema",
                            "default": "",
                            "examples": [
                                "05"
                            ],
                            "pattern": "^(.*)$"
                        }
                    }
                },
                "signature": {
                    "$id": "#/properties/resp/properties/signature",
                    "type": "string",
                    "title": "The Signature Schema",
                    "default": "",
                    "examples": [
                        "tIv0Kw+j+vP9k2GUlGYaXhEiSjThD3yALgWXMrbhAZu+27RI/mpLXgAnWhcvW+l+549/47S54O3q4WZ+CYknjA=="
                    ],
                    "pattern": "^(.*)$"
                }
            }
        },
        "salt": {
            "$id": "#/properties/salt",
            "type": "string",
            "title": "The Salt Schema",
            "default": "",
            "examples": [
                "1d69b4066130fc6a9193e2ec7749788218b9c492a4008bc73aa1cfbed3f3df95b6dffe42c951fa921499aebd6255c471a7a2863b3a1c6b66d621d93ef9e2c543"
            ],
            "pattern": "^(.*)$"
        }
    }
}
