{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "API",
    "description" : "Party APIs are designed all actions to manage information including different types of Party (not customers) such as employee, adjuster, coinsurance company, reinsurance company etc.Party is a separate entity and its different from customers Please note that it doesn't include branch/customer/sales channel as there will be seperate APIs provided for these types.Underwriting of party object model is a prerequisite to use API under this section.",
    "version" : "1.0/party",
    "x-mo-original-description" : "API Documentation",
    "x-mo-overwrite-description" : "Party APIs are designed all actions to manage information including different types of Party (not customers) such as employee, adjuster, coinsurance company, reinsurance company etc.Party is a separate entity and its different from customers Please note that it doesn't include branch/customer/sales channel as there will be seperate APIs provided for these types.Underwriting of party object model is a prerequisite to use API under this section."
  },
  "servers" : [ {
    "url" : "http://party.platform"
  } ],
  "paths" : {
    "/party/blackList/core/v1/bulkCreate" : {
      "post" : {
        "tags" : [ "BlackList" ],
        "summary" : "Bulk create blacklists.",
        "operationId" : "bulkCreateBlackListCore",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/BlackList"
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/BlackList"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Bulk create blacklists."
      }
    },
    "/party/blackList/core/v1/create" : {
      "post" : {
        "tags" : [ "BlackList" ],
        "summary" : "Create a blacklist.",
        "operationId" : "createBlackListCore",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/BlackList"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/BlackList"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Create a blacklist."
      }
    },
    "/party/blackList/core/v1/delete" : {
      "post" : {
        "tags" : [ "BlackList" ],
        "summary" : "Delete blackList by blackListId.",
        "operationId" : "deleteBlackListCore",
        "parameters" : [ {
          "name" : "blackListId",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Delete blackList by blackListId."
      }
    },
    "/party/blackList/core/v1/query" : {
      "post" : {
        "tags" : [ "BlackList" ],
        "summary" : "It is replaced by /party/blackList/core/v1/query/page.",
        "operationId" : "queryBlackListCore",
        "parameters" : [ {
          "name" : "blackListType",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "effectiveDate",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "format" : "date-time"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/QueryCondition"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/BlackList"
                  }
                }
              }
            }
          }
        },
        "deprecated" : true,
        "x-mo-since-at" : {
          "replaceSdk" : "queryPageBlackListCore",
          "serviceVersion" : "2025.03",
          "x-mo-deprecated-at" : "2026.01"
        },
        "x-mo-overwrite-deprecated" : true,
        "x-mo-overwrite-summary" : "It is replaced by /party/blackList/core/v1/query/page."
      }
    },
    "/party/blackList/core/v1/query/page" : {
      "post" : {
        "tags" : [ "BlackList" ],
        "summary" : "Paging to query blacklists by conditions.",
        "operationId" : "queryPageBlackListCore",
        "parameters" : [ {
          "name" : "pageIndex",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          }
        }, {
          "name" : "sortField",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "sortType",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/QueryCondition"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PagedResultBlackList"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Paging to query blacklists by conditions."
      }
    },
    "/party/blackList/core/v1/update" : {
      "post" : {
        "tags" : [ "BlackList" ],
        "summary" : "Update a blacklist.",
        "operationId" : "updateBlackListCore",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/BlackList"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/BlackList"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Update a blacklist."
      }
    },
    "/party/blackList/v1/query/page/includeDeleted" : {
      "post" : {
        "tags" : [ "BlackList" ],
        "operationId" : "queryPageBlackListIncludeDeleted",
        "parameters" : [ {
          "name" : "pageIndex",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          }
        }, {
          "name" : "sortField",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "sortType",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/QueryCondition"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PagedResultMap"
                }
              }
            }
          }
        }
      }
    },
    "/party/v1/delete" : {
      "get" : {
        "tags" : [ "Party" ],
        "summary" : "Delete party by party id.",
        "operationId" : "delete",
        "parameters" : [ {
          "name" : "partyId",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Delete party by party id."
      }
    },
    "/party/v1/party/byPartyId" : {
      "get" : {
        "tags" : [ "Party" ],
        "summary" : "Query a party by partyId.",
        "operationId" : "loadPartyByPartyId",
        "parameters" : [ {
          "name" : "partyId",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Party"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Query a party by partyId."
      }
    },
    "/party/v1/party/byPartyIds" : {
      "post" : {
        "tags" : [ "Party" ],
        "operationId" : "loadPartyByPartyIds",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "type" : "integer",
                  "format" : "int64"
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "partyIds"
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Party"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2026.01"
        }
      }
    },
    "/party/v1/party/byPartyIdsWithDesc" : {
      "post" : {
        "tags" : [ "Party" ],
        "operationId" : "loadPartyByPartyIdsWithDesc",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "type" : "integer",
                  "format" : "int64"
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "partyIds"
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Party"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "26.03"
        }
      }
    },
    "/party/v1/party/create" : {
      "post" : {
        "tags" : [ "Party" ],
        "summary" : "Create a party.",
        "operationId" : "createParty",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/Party"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Party"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Create a party."
      }
    },
    "/party/v1/party/createBatch" : {
      "post" : {
        "tags" : [ "Party" ],
        "operationId" : "createPartyBatch",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/Party"
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Party"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2026.01"
        }
      }
    },
    "/party/v1/party/getAllPartyList" : {
      "post" : {
        "tags" : [ "Party" ],
        "summary" : "Query parties based on PartyId and partyTypes, starting from the specified PartyId to query a limited number of parties. Among them, startPartyId is the starting PartyId of the query, and limit is the limit on the number of queries.",
        "operationId" : "getAllPartyList",
        "parameters" : [ {
          "name" : "startPartyId",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        }, {
          "name" : "limit",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "partyTypeList"
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Party"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Query parties based on PartyId and partyTypes, starting from the specified PartyId to query a limited number of parties. Among them, startPartyId is the starting PartyId of the query, and limit is the limit on the number of queries."
      }
    },
    "/party/v1/party/getPartyIdByPartyTypeAndCode" : {
      "get" : {
        "tags" : [ "Party" ],
        "summary" : "Query PartyId by partyCode and partyType.",
        "operationId" : "getPartyIdByPartyTypeAndCode",
        "parameters" : [ {
          "name" : "partyType",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "partyCode",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "integer",
                  "format" : "int64"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Query PartyId by partyCode and partyType."
      }
    },
    "/party/v1/party/getPartyIdByPartyTypeListAndCode" : {
      "get" : {
        "tags" : [ "Party" ],
        "summary" : "Query PartyId by partyCode and partyTypeList.",
        "operationId" : "getPartyIdByPartyTypeListAndCode",
        "parameters" : [ {
          "name" : "partyTypeList",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        }, {
          "name" : "partyCode",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "integer",
                  "format" : "int64"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Query PartyId by partyCode and partyTypeList."
      }
    },
    "/party/v1/party/update" : {
      "post" : {
        "tags" : [ "Party" ],
        "summary" : "Update a party.",
        "operationId" : "updateParty",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/Party"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Party"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Update a party."
      }
    },
    "/party/v1/party/updateBatch" : {
      "post" : {
        "tags" : [ "Party" ],
        "operationId" : "updatePartyBatch",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/Party"
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Party"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2026.01"
        }
      }
    },
    "/party/v1/query" : {
      "post" : {
        "tags" : [ "Party" ],
        "summary" : "Search party by conditions.",
        "operationId" : "query",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SearchConditionRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/QueryResult"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Search party by conditions."
      }
    },
    "/party/v1/queryChangeRecord" : {
      "get" : {
        "tags" : [ "Party" ],
        "operationId" : "queryChangeRecordList",
        "parameters" : [ {
          "name" : "changeTableName",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "refId",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/PtyChangeRecord"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2026.01"
        }
      }
    }
  },
  "components" : {
    "schemas" : {
      "BlackList" : {
        "type" : "object",
        "description" : "Black List",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "@type" : {
            "type" : "string"
          },
          "ApplyBusinessLineCode" : {
            "type" : "string"
          },
          "ApplyOrgCode" : {
            "type" : "string"
          },
          "BlackListFileName" : {
            "type" : "string"
          },
          "BlackListFileSize" : {
            "type" : "integer",
            "format" : "int64"
          },
          "BlackListId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "BlackListReasonCode" : {
            "type" : "string"
          },
          "BlackListSource" : {
            "type" : "string"
          },
          "BlackListType" : {
            "type" : "string"
          },
          "BusinessObjectId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "DeletedFlag" : {
            "type" : "string"
          },
          "DisplayName" : {
            "type" : "string"
          },
          "EffectiveDate" : {
            "type" : "string",
            "format" : "date-time"
          },
          "ExpirationDate" : {
            "type" : "string",
            "format" : "date-time"
          },
          "InsertBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "InsertTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "LastModifier" : {
            "type" : "integer",
            "format" : "int64"
          },
          "LastModifyTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "RegistrationDate" : {
            "type" : "string",
            "format" : "date-time"
          },
          "Remark" : {
            "type" : "string"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "TreatmentType" : {
            "type" : "string"
          },
          "UpdateBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "UpdateTime" : {
            "type" : "string",
            "format" : "date-time"
          }
        },
        "x-mo-dd-driven" : {
          "modelName" : "BlackList",
          "module" : "PTY",
          "objectCode" : "BlackList"
        }
      },
      "GroupResult" : {
        "type" : "object",
        "properties" : {
          "EsDocs" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "object"
              }
            }
          },
          "GroupTotalNum" : {
            "type" : "integer",
            "format" : "int64"
          },
          "GroupValue" : {
            "type" : "string"
          },
          "InnerDocs" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "object"
              }
            }
          }
        }
      },
      "Order" : {
        "type" : "object",
        "properties" : {
          "Ascending" : {
            "type" : "boolean"
          },
          "FieldName" : {
            "type" : "string"
          }
        }
      },
      "PageQuery" : {
        "type" : "object",
        "properties" : {
          "Orders" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/Order"
            }
          },
          "PageNumber" : {
            "type" : "integer",
            "format" : "int32"
          },
          "PageSize" : {
            "type" : "integer",
            "format" : "int32"
          }
        }
      },
      "PagedResultBlackList" : {
        "type" : "object",
        "properties" : {
          "ElementsInCurrentPage" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/BlackList"
            }
          },
          "NumberOfElementsInCurrentPage" : {
            "type" : "integer",
            "format" : "int32"
          },
          "PageQuery" : {
            "$ref" : "#/components/schemas/PageQuery"
          },
          "TotalElements" : {
            "type" : "integer",
            "format" : "int64"
          },
          "TotalPages" : {
            "type" : "integer",
            "format" : "int32"
          }
        }
      },
      "PagedResultMap" : {
        "type" : "object",
        "properties" : {
          "ElementsInCurrentPage" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "object"
              }
            }
          },
          "NumberOfElementsInCurrentPage" : {
            "type" : "integer",
            "format" : "int32"
          },
          "PageQuery" : {
            "$ref" : "#/components/schemas/PageQuery"
          },
          "TotalElements" : {
            "type" : "integer",
            "format" : "int64"
          },
          "TotalPages" : {
            "type" : "integer",
            "format" : "int32"
          }
        }
      },
      "Party" : {
        "type" : "object",
        "description" : "Party",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "@type" : {
            "type" : "string"
          },
          "BusinessObjectId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "IdValidThru" : {
            "type" : "string",
            "format" : "date-time"
          },
          "IndiIdNo" : {
            "type" : "string"
          },
          "InsertBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "InsertTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "IsOrgParty" : {
            "type" : "string"
          },
          "MergedPartyId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "NationalityCode" : {
            "type" : "string"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "OrgOrganizationCertiNumber" : {
            "type" : "string"
          },
          "OrgOrganizationCertiType" : {
            "type" : "string"
          },
          "PartyAccountList" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/PartyAccount"
            }
          },
          "PartyAddressList" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/PartyAddress"
            }
          },
          "PartyCode" : {
            "type" : "string"
          },
          "PartyContactList" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/PartyContact"
            }
          },
          "PartyId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "PartyName" : {
            "type" : "string"
          },
          "PartyType" : {
            "type" : "string",
            "x-mo-overwrite-x-mo-codetable" : "PartyType",
            "x-mo-codetable" : "PartyType"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "UpdateBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "UpdateTime" : {
            "type" : "string",
            "format" : "date-time"
          }
        },
        "x-mo-dd-driven" : {
          "modelName" : "Party",
          "module" : "PTY",
          "objectCode" : "Party"
        }
      },
      "PartyAccount" : {
        "type" : "object",
        "description" : "Party Account",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "@type" : {
            "type" : "string"
          },
          "AccountHolderIdNo" : {
            "type" : "string"
          },
          "AccountHolderIdType" : {
            "type" : "string"
          },
          "AccountHolderName" : {
            "type" : "string"
          },
          "AccountId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "AccountNo" : {
            "type" : "string"
          },
          "AccountPurpose" : {
            "type" : "integer",
            "format" : "int32"
          },
          "AccountStatus" : {
            "type" : "string"
          },
          "AccountType" : {
            "type" : "string"
          },
          "BankId" : {
            "type" : "integer",
            "format" : "int32"
          },
          "BusinessObjectId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "InsertBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "InsertTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "IsPrimaryAccount" : {
            "type" : "string"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "PartyId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "UpdateBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "UpdateTime" : {
            "type" : "string",
            "format" : "date-time"
          }
        },
        "x-mo-dd-driven" : {
          "modelName" : "PartyAccount",
          "module" : "PTY",
          "objectCode" : "PartyAccount"
        }
      },
      "PartyAddress" : {
        "type" : "object",
        "description" : "Party Address",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "@type" : {
            "type" : "string"
          },
          "AddressId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "AddressStatus" : {
            "type" : "integer",
            "format" : "int32"
          },
          "AddressType" : {
            "type" : "integer",
            "format" : "int32"
          },
          "BusinessObjectId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "CountryCode" : {
            "type" : "string"
          },
          "FullAddress" : {
            "type" : "string"
          },
          "InsertBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "InsertTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "IsPrimaryAddress" : {
            "type" : "string"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "PartyId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "PostCode" : {
            "type" : "string"
          },
          "RegionCode" : {
            "type" : "string"
          },
          "RegionId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "UpdateBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "UpdateTime" : {
            "type" : "string",
            "format" : "date-time"
          }
        },
        "x-mo-dd-driven" : {
          "modelName" : "PartyAddress",
          "module" : "PTY",
          "objectCode" : "PartyAddress"
        }
      },
      "PartyContact" : {
        "type" : "object",
        "description" : "Party Contact",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "@type" : {
            "type" : "string"
          },
          "BusinessObjectId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "BusinessTel" : {
            "type" : "string"
          },
          "ContactId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "ContactStatus" : {
            "type" : "integer",
            "format" : "int32"
          },
          "Email" : {
            "type" : "string"
          },
          "Fax" : {
            "type" : "string"
          },
          "HandPhone" : {
            "type" : "string"
          },
          "HomeTel" : {
            "type" : "string"
          },
          "InsertBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "InsertTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "IsPrimaryContact" : {
            "type" : "string"
          },
          "Mobile" : {
            "type" : "string"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "PartyId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "UpdateBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "UpdateTime" : {
            "type" : "string",
            "format" : "date-time"
          }
        },
        "x-mo-dd-driven" : {
          "modelName" : "PartyContact",
          "module" : "PTY",
          "objectCode" : "PartyContact"
        }
      },
      "PtyChangeRecord" : {
        "type" : "object",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "AppChangeBy" : {
            "type" : "string"
          },
          "ChangeBy" : {
            "type" : "integer",
            "format" : "int64"
          },
          "ChangeFieldName" : {
            "type" : "string"
          },
          "ChangeTableName" : {
            "type" : "string"
          },
          "ChangeTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "NewContent" : {
            "type" : "string"
          },
          "NewValue" : {
            "type" : "string"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "OriginContent" : {
            "type" : "string"
          },
          "OriginValue" : {
            "type" : "string"
          },
          "RecordId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "RefId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "UserId" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "QueryCondition" : {
        "type" : "object",
        "properties" : {
          "AndSearchConditionsList" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/QueryCondition"
            }
          },
          "Conditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "ExistFieldsConditions" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "FuzzyConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "GtRangeConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "GteRangeConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "GteltRangeConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "GtelteRangeConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "GtltRangeConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "GtlteRangeConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "InConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "InFuzzyConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "LtRangeConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "LteRangeConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "NotExistFieldsConditions" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "NotInConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "NotInFuzzyConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "object"
              }
            }
          },
          "NotSearchConditionsList" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/QueryCondition"
            }
          },
          "OrSearchConditionsList" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/QueryCondition"
            }
          }
        }
      },
      "QueryResult" : {
        "type" : "object",
        "properties" : {
          "AggConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "Aggs" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "GroupField" : {
            "type" : "string"
          },
          "MaxPageCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "PageNo" : {
            "type" : "integer",
            "format" : "int32"
          },
          "PageSize" : {
            "type" : "integer",
            "format" : "int32"
          },
          "Results" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/GroupResult"
            }
          },
          "Total" : {
            "type" : "integer",
            "format" : "int64"
          },
          "TotalExactHitCount" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "SearchConditionRequest" : {
        "type" : "object",
        "properties" : {
          "AggConditions" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "GroupField" : {
            "type" : "string"
          },
          "GroupMethod" : {
            "type" : "string"
          },
          "IncludeFields" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "Index" : {
            "type" : "string"
          },
          "Module" : {
            "type" : "string"
          },
          "PageNo" : {
            "type" : "integer",
            "format" : "int32"
          },
          "PageSize" : {
            "type" : "integer",
            "format" : "int32"
          },
          "QueryCondition" : {
            "$ref" : "#/components/schemas/QueryCondition"
          },
          "SortField" : {
            "type" : "string"
          },
          "SortFieldTypeList" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "string"
              }
            }
          },
          "SortFieldsAndTypes" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string",
              "deprecated" : true
            },
            "deprecated" : true
          },
          "SortType" : {
            "type" : "string"
          },
          "WithCodeDesc" : {
            "type" : "boolean"
          },
          "WithExactHitCount" : {
            "type" : "boolean"
          }
        }
      }
    }
  },
  "x-mo-gateway-auth-enabled" : true,
  "x-mo-gateway-cors-enabled" : false
}