{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/q2/json-schema/q2-card-provision-google-pay200-response-schema.json",
  "title": "CardProvisionGooglePay200Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/q2-card-provision-api-openapi.yml#/components/schemas/CardProvisionGooglePay200Response",
  "allOf": [
    {
      "$ref": "#/$defs/0"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "description": "`expirationDate` is always returned. Other fields may be omitted.\n",
          "properties": {
            "address": {
              "allOf": [
                {
                  "description": "Customer `Residence` address"
                },
                {
                  "$ref": "#/$defs/AddressItem"
                }
              ]
            },
            "expirationDate": {
              "type": "object",
              "properties": {
                "month": {
                  "type": "string"
                },
                "year": {
                  "type": "string"
                }
              }
            },
            "googlePayPhoneNumber": {
              "type": "object",
              "properties": {
                "countryCode": {
                  "type": "string"
                },
                "extension": {
                  "type": "string"
                },
                "phoneNumber": {
                  "type": "string"
                }
              }
            },
            "last4": {
              "type": "string",
              "description": "Last 4 digits of the card PAN"
            },
            "opaquePaymentCard": {
              "type": "string",
              "format": "byte",
              "description": "Base64 encoded opaque card data that is needed for tokenization. This value should be passed through to Google as is."
            }
          }
        }
      },
      "required": [
        "expirationDate"
      ]
    }
  ],
  "$defs": {
    "AddressItem": {
      "type": "object",
      "required": [
        "addressLine1",
        "addressType",
        "city",
        "country",
        "postalCode",
        "state"
      ],
      "properties": {
        "addressLine1": {
          "$ref": "#/$defs/AddressLine"
        },
        "addressLine2": {
          "$ref": "#/$defs/AddressLine"
        },
        "addressLine3": {
          "$ref": "#/$defs/AddressLine"
        },
        "addressLine4": {
          "$ref": "#/$defs/AddressLine"
        },
        "addressType": {
          "type": "string",
          "enum": [
            "Individual",
            "Mailing",
            "PrimaryBusiness",
            "Business",
            "Registered",
            "TaxFormMailing"
          ]
        },
        "city": {
          "$ref": "#/$defs/CityProperty"
        },
        "country": {
          "$ref": "#/$defs/CountryProperty"
        },
        "isActive": {
          "type": "boolean",
          "readOnly": true
        },
        "postalCode": {
          "$ref": "#/$defs/PostalCode"
        },
        "state": {
          "$ref": "#/$defs/FormationState"
        }
      }
    },
    "AddressLine": {
      "type": "string",
      "maxLength": 100
    },
    "CityProperty": {
      "type": "string",
      "maxLength": 50
    },
    "CountryProperty": {
      "type": "string",
      "maxLength": 50
    },
    "FormationState": {
      "type": "string",
      "maxLength": 2
    },
    "PostalCode": {
      "type": "string",
      "maxLength": 9
    }
  }
}