edutap.wallet_google.models.datatypes.general.PassConstraints#

pydantic model edutap.wallet_google.models.datatypes.general.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": {
         "$ref": "#/$defs/ScreenshotEligibility",
         "default": "SCREENSHOT_ELIGIBILITY_UNSPECIFIED"
      },
      "nfcConstraint": {
         "anyOf": [
            {
               "items": {
                  "$ref": "#/$defs/NfcConstraint"
               },
               "type": "array"
            },
            {
               "type": "null"
            }
         ],
         "title": "Nfcconstraint"
      }
   },
   "$defs": {
      "NfcConstraint": {
         "description": "see: https://developers.google.com/wallet/reference/rest/v1/PassConstraints#NfcConstraint",
         "enum": [
            "nfcConstraintUnspecified",
            "NFC_CONSTRAINT_UNSPECIFIED",
            "blockPayment",
            "BLOCK_PAYMENT",
            "blockClosedLoopTransit",
            "BLOCK_CLOSED_LOOP_TRANSIT"
         ],
         "title": "NfcConstraint",
         "type": "string"
      },
      "ScreenshotEligibility": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/PassConstraints#screenshoteligibility",
         "enum": [
            "screenshotEligibilityUnspecified",
            "SCREENSHOT_ELIGIBILITY_UNSPECIFIED",
            "eligible",
            "ELIGIBLE",
            "ineligible",
            "INELIGIBLE"
         ],
         "title": "ScreenshotEligibility",
         "type": "string"
      }
   }
}

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