{
  "openapi": "3.0.1",
  "info": {
    "title": "NativeAppSDK.Api.ServiceLayer",
    "version": "1.0"
  },
  "paths": {
    "/api/v1/certificates/public-keys": {
      "get": {
        "tags": [
          "CertificatesPinning"
        ],
        "parameters": [
          {
            "name": "UUID",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/configurations": {
      "get": {
        "tags": [
          "Configurations"
        ],
        "parameters": [
          {
            "name": "X-Brand-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-Platform-OS",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Language-Code",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/players/{id}/documentVerification/settings": {
      "get": {
        "tags": [
          "DocumentVerification"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Brand-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/players/{id}/documentVerification/documents": {
      "post": {
        "tags": [
          "DocumentVerification"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Brand-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessDocumentVerificationRequestBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessDocumentVerificationRequestBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessDocumentVerificationRequestBody"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/players/{id}/favoriteGames": {
      "get": {
        "tags": [
          "FavouriteGames"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "FavouriteGames"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetFavouriteGamesRequestBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetFavouriteGamesRequestBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetFavouriteGamesRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/players/{id}/favoriteGames": {
      "get": {
        "tags": [
          "FavouriteGames"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "FavouriteGames"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetFavouriteGamesRequestBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetFavouriteGamesRequestBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetFavouriteGamesRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/players/{id}/geoLocations": {
      "get": {
        "tags": [
          "GeoLocations"
        ],
        "parameters": [
          {
            "name": "X-Brand-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Platfrom-OS",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Previous-License-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Is-Periodic-Check",
            "in": "header",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "X-Verification-Trigger-Type-Id",
            "in": "header",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "GeoLocations"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeoLocationPostRequestBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GeoLocationPostRequestBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GeoLocationPostRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/players/{id}/payments/apple-pay/client-token": {
      "get": {
        "tags": [
          "GetClientToken"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/logs": {
      "post": {
        "tags": [
          "Logs"
        ],
        "parameters": [
          {
            "name": "X-Brand-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LogsPostRequestBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LogsPostRequestBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LogsPostRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/players/{id}/loyaltyPoints": {
      "get": {
        "tags": [
          "LoyaltyPoints"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Brand-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/metadata/currentServerTime": {
      "get": {
        "tags": [
          "Metadata"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServerTimeInfoResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerTimeInfoResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerTimeInfoResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/metadata/currentServerTime": {
      "get": {
        "tags": [
          "Metadata"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServerTimeInfoResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerTimeInfoResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerTimeInfoResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/players/{id}/configurations": {
      "get": {
        "tags": [
          "PlayerConfigurations"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Brand-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-Platform-OS",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/sessions/logout": {
      "post": {
        "tags": [
          "Sessions"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LogoutRequestBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LogoutRequestBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LogoutRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/api/v1/sessions": {
      "patch": {
        "tags": [
          "Sessions"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeepAliveRequestBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/KeepAliveRequestBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/KeepAliveRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/api/statistics/topWinners": {
      "get": {
        "tags": [
          "TopWinners"
        ],
        "parameters": [
          {
            "name": "X-Brand-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/statistics/topWinners": {
      "get": {
        "tags": [
          "TopWinners"
        ],
        "parameters": [
          {
            "name": "X-Brand-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v1/players/{id}/wallet": {
      "get": {
        "tags": [
          "Wallet"
        ],
        "parameters": [
          {
            "name": "X-Session-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Brand-ID",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ClientMessage": {
        "required": [
          "clientTimeStamp",
          "logLevel",
          "message"
        ],
        "type": "object",
        "properties": {
          "message": {
            "minLength": 1,
            "type": "string"
          },
          "clientTimeStamp": {
            "minLength": 1,
            "type": "string"
          },
          "logLevel": {
            "minLength": 1,
            "type": "string"
          },
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "methodName": {
            "type": "string",
            "nullable": true
          },
          "className": {
            "type": "string",
            "nullable": true
          },
          "playerID": {
            "type": "string",
            "nullable": true
          },
          "gameID": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "GeoLocationPostRequestBody": {
        "required": [
          "providerData"
        ],
        "type": "object",
        "properties": {
          "providerData": {
            "minLength": 1,
            "type": "string"
          },
          "providerCode": {
            "type": "integer",
            "format": "int32"
          },
          "providerMessage": {
            "type": "string",
            "nullable": true
          },
          "recurOnHoldPurchaseSubscriptions": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "KeepAliveRequestBody": {
        "required": [
          "playerID"
        ],
        "type": "object",
        "properties": {
          "playerID": {
            "minLength": 1,
            "type": "string"
          },
          "isUpdateLastAccessDate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "LogoutRequestBody": {
        "required": [
          "playerID"
        ],
        "type": "object",
        "properties": {
          "playerID": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "LogsPostRequestBody": {
        "required": [
          "clientMessages"
        ],
        "type": "object",
        "properties": {
          "clientMessages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClientMessage"
            }
          },
          "deviceID": {
            "type": "string",
            "nullable": true
          },
          "appVersion": {
            "type": "string",
            "nullable": true
          },
          "machineId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "ProcessDocumentVerificationRequestBody": {
        "required": [
          "provider",
          "providerData"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "minLength": 1,
            "type": "string"
          },
          "providerData": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ServerTimeInfoResponse": {
        "type": "object",
        "properties": {
          "serverTime": {
            "type": "string",
            "nullable": true
          },
          "timeZone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetFavouriteGamesRequestBody": {
        "required": [
          "gameIds"
        ],
        "type": "object",
        "properties": {
          "gameIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        },
        "additionalProperties": false
      }
    }
  }
}