edutap.wallet_google.models.primitives.retail.DiscoverableProgram#

pydantic model edutap.wallet_google.models.primitives.retail.DiscoverableProgram#

see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/loyaltyclass#discoverableprogram

Show JSON schema
{
   "title": "DiscoverableProgram",
   "description": "see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/loyaltyclass#discoverableprogram",
   "type": "object",
   "properties": {
      "merchantSignupInfo": {
         "anyOf": [
            {
               "$ref": "#/$defs/DiscoverableProgramMerchantSignupInfo"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      },
      "merchantSigninInfo": {
         "anyOf": [
            {
               "$ref": "#/$defs/DiscoverableProgramMerchantSigninInfo"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      },
      "state": {
         "allOf": [
            {
               "$ref": "#/$defs/State"
            }
         ],
         "default": "STATE_UNSPECIFIED"
      }
   },
   "$defs": {
      "DiscoverableProgramMerchantSigninInfo": {
         "description": "see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/loyaltyclass#discoverableprogrammerchantsignininfo",
         "properties": {
            "signinWebsite": {
               "$ref": "#/$defs/Uri"
            }
         },
         "required": [
            "signinWebsite"
         ],
         "title": "DiscoverableProgramMerchantSigninInfo",
         "type": "object"
      },
      "DiscoverableProgramMerchantSignupInfo": {
         "description": "see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/loyaltyclass#LoyaltyClass.DiscoverableProgramMerchantSigninInfo",
         "properties": {
            "signupWebsite": {
               "$ref": "#/$defs/Uri"
            },
            "signupSharedDatas": {
               "items": {
                  "$ref": "#/$defs/SharedDataType"
               },
               "title": "Signupshareddatas",
               "type": "array"
            }
         },
         "required": [
            "signupWebsite",
            "signupSharedDatas"
         ],
         "title": "DiscoverableProgramMerchantSignupInfo",
         "type": "object"
      },
      "LocalizedString": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString",
         "properties": {
            "defaultValue": {
               "$ref": "#/$defs/TranslatedString"
            },
            "translatedValues": {
               "default": [],
               "items": {
                  "$ref": "#/$defs/TranslatedString"
               },
               "title": "Translatedvalues",
               "type": "array"
            }
         },
         "required": [
            "defaultValue"
         ],
         "title": "LocalizedString",
         "type": "object"
      },
      "SharedDataType": {
         "description": "see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/loyaltyclass#shareddatatype",
         "enum": [
            "SHARED_DATA_TYPE_UNSPECIFIED",
            "FIRST_NAME",
            "LAST_NAME",
            "STREET_ADDRESS",
            "ADDRESS_LINE_1",
            "ADDRESS_LINE_2",
            "ADDRESS_LINE_3",
            "CITY",
            "STATE",
            "ZIPCODE",
            "COUNTRY",
            "EMAIL",
            "PHONE"
         ],
         "title": "SharedDataType",
         "type": "string"
      },
      "State": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/State\n     https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/State",
         "enum": [
            "STATE_UNSPECIFIED",
            "ACTIVE",
            "COMPLETED",
            "EXPIRED",
            "INACTIVE"
         ],
         "title": "State",
         "type": "string"
      },
      "TranslatedString": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString#translatedstring",
         "properties": {
            "language": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Language"
            },
            "value": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Value"
            }
         },
         "title": "TranslatedString",
         "type": "object"
      },
      "Uri": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/Uri",
         "properties": {
            "uri": {
               "anyOf": [
                  {
                     "format": "uri",
                     "minLength": 1,
                     "type": "string"
                  },
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Uri"
            },
            "description": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Description"
            },
            "localizedDescription": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/LocalizedString"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "id": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Id"
            }
         },
         "title": "Uri",
         "type": "object"
      }
   }
}

Fields:
field merchantSigninInfo: DiscoverableProgramMerchantSigninInfo | None = None#
field merchantSignupInfo: DiscoverableProgramMerchantSignupInfo | None = None#
field state: State = State.STATE_UNSPECIFIED#