{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/avetta/json-schema/avetta-3-29-14-portal-resource-schema.json",
  "title": "3.29.14_PortalResource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/avetta-pegasusscope-scope-controller-api-openapi.yml#/components/schemas/3.29.14_PortalResource",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "name": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "portalType": {
      "type": "string"
    },
    "connectClient": {
      "type": "boolean"
    },
    "idCheckRequired": {
      "type": "boolean"
    },
    "assetsEnabled": {
      "type": "boolean"
    },
    "companyComplianceSubscriptionEnabled": {
      "type": "boolean"
    },
    "companyComplianceSubscriptionRequired": {
      "type": "boolean"
    },
    "companyComplianceCompliantSubscriptionRequired": {
      "type": "boolean"
    },
    "active": {
      "type": "boolean"
    },
    "shoppingProvider": {
      "$ref": "#/$defs/3.29.14_ShoppingProviderResource"
    },
    "scope": {
      "$ref": "#/$defs/3.29.14_KeyedIntegerResource"
    },
    "idCheckConfig": {
      "$ref": "#/$defs/3.29.14_IdCheckConfigurationResource"
    },
    "allowRoleAndCompetencyAssignments": {
      "type": "boolean"
    },
    "settings": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "cardholderComplianceDefinition": {
      "$ref": "#/$defs/3.29.14_CardholderComplianceDefinitionResource"
    }
  },
  "$defs": {
    "3.29.14_CardholderComplianceDefinitionResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "portalId": {
          "type": "integer",
          "format": "int32"
        },
        "tmEnrolmentsPendingUntilDocsApproved": {
          "type": "boolean"
        },
        "products": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/3.29.14_CardholderComplianceProductResource"
          }
        },
        "subscriptions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/3.29.14_CardholderComplianceDefinitionSubscriptionResource"
          }
        }
      }
    },
    "3.29.14_CardholderComplianceDefinitionSubscriptionResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "cardholderType": {
          "type": "string",
          "enum": [
            "CONTRACTOR",
            "EMPLOYEE",
            "VISITOR"
          ]
        },
        "subscriptionRequired": {
          "type": "boolean"
        },
        "subscriptionMonths": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "3.29.14_CardholderComplianceProductResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "productType": {
          "type": "string",
          "enum": [
            "INITIAL_SUPPLY",
            "CARD_ONLY",
            "SUBSCRIPTION"
          ]
        },
        "cardholderType": {
          "type": "string",
          "enum": [
            "CONTRACTOR",
            "EMPLOYEE",
            "VISITOR"
          ]
        },
        "salesCode": {
          "type": "string"
        },
        "itemCode": {
          "type": "string"
        },
        "currency": {
          "type": "string",
          "enum": [
            "AUD",
            "EUR",
            "GBP",
            "NZD",
            "USD"
          ]
        },
        "costAmount": {
          "type": "number"
        },
        "taxAmount": {
          "type": "number"
        }
      }
    },
    "3.29.14_IdCheckConfigurationResource": {
      "type": "object",
      "properties": {
        "providerType": {
          "type": "string",
          "enum": [
            "PEGASUS",
            "AUSTRALIA_POST",
            "GREEN_ID"
          ]
        },
        "name": {
          "type": "string"
        },
        "accountId": {
          "type": "string"
        },
        "webServicesAPIKey": {
          "type": "string"
        },
        "javascriptAPIKey": {
          "type": "string"
        }
      }
    },
    "3.29.14_KeyedIntegerResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "3.29.14_ShoppingProviderResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string"
        },
        "eCommerceEnabled": {
          "type": "boolean"
        },
        "paymentMethodMandatory": {
          "type": "boolean"
        },
        "accountMandatoryForAccountPurchase": {
          "type": "boolean"
        },
        "chargeToClient": {
          "type": "boolean"
        },
        "refundAlertEmail": {
          "type": "string"
        },
        "active": {
          "type": "boolean"
        },
        "surcharge": {
          "type": "number"
        }
      }
    }
  }
}