edutap.wallet_google.models.primitives.PassConstraints#

pydantic model edutap.wallet_google.models.primitives.PassConstraints#

see https://developers.google.com/wallet/generic/rest/v1/PassConstraints

Show JSON schema
{
   "title": "PassConstraints",
   "description": "see https://developers.google.com/wallet/generic/rest/v1/PassConstraints",
   "type": "object",
   "properties": {
      "screenshotEligibility": {
         "allOf": [
            {
               "$ref": "#/$defs/ScreenshotEligibility"
            }
         ],
         "default": "SCREENSHOT_ELIGIBILITY_UNSPECIFIED"
      },
      "nfcConstraint": {
         "anyOf": [
            {
               "items": {
                  "$ref": "#/$defs/NfcConstraint"
               },
               "type": "array"
            },
            {
               "type": "null"
            }
         ],
         "title": "Nfcconstraint"
      }
   },
   "$defs": {
      "NfcConstraint": {
         "description": "see:",
         "enum": [
            "NFC_CONSTRAINT_UNSPECIFIED",
            "BLOCK_PAYMENT",
            "BLOCK_CLOSED_LOOP_TRANSIT"
         ],
         "title": "NfcConstraint",
         "type": "string"
      },
      "ScreenshotEligibility": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/PassConstraints#screenshoteligibility",
         "enum": [
            "SCREENSHOT_ELIGIBILITY_UNSPECIFIED",
            "ELIGIBLE",
            "INELIGIBLE"
         ],
         "title": "ScreenshotEligibility",
         "type": "string"
      }
   }
}

Fields:
field nfcConstraint: list[NfcConstraint] | None [Optional]#
field screenshotEligibility: ScreenshotEligibility = ScreenshotEligibility.SCREENSHOT_ELIGIBILITY_UNSPECIFIED#