{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/breezecash/json-schema/breezecash-update-customer-request-schema.json",
  "title": "UpdateCustomerRequest",
  "description": "Fields to update. Note two non-merge behaviors: (1) the name fields (`firstName`, `middleName`, `lastName`) are replaced as a group — if you send any one of them, the others you omit are cleared; (2) `address` is replaced wholesale, not deep-merged — omitted address sub-fields are cleared. Send the complete name set and full address you want to retain.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/breezecash-customers-api-openapi.yml#/components/schemas/UpdateCustomerRequest",
  "type": "object",
  "properties": {
    "address": {
      "type": "object",
      "properties": {
        "line1": {
          "type": "string",
          "maxLength": 255
        },
        "line2": {
          "type": "string",
          "maxLength": 255
        },
        "city": {
          "type": "string",
          "maxLength": 100
        },
        "country": {
          "type": "string",
          "maxLength": 2
        },
        "state": {
          "type": "string",
          "maxLength": 100
        },
        "postalCode": {
          "type": "string",
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{5}(-\\d{4})?$"
            },
            {
              "type": "string",
              "maxLength": 100
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 255
    },
    "phoneNumber": {
      "type": "string",
      "maxLength": 20
    },
    "firstName": {
      "type": "string",
      "maxLength": 100
    },
    "middleName": {
      "type": "string",
      "maxLength": 100
    },
    "lastName": {
      "type": "string",
      "maxLength": 100
    },
    "dateOfBirth": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
    },
    "supportedPaymentMethods": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "FIAT",
          "CRYPTO"
        ]
      }
    },
    "merchantTrustSignal": {
      "type": "object",
      "description": "Gameplay-derived trust signal for the customer. Stored on the customer record and used in risk evaluation.",
      "properties": {
        "playerId": {
          "type": "string",
          "description": "Your identifier for the player this signal refers to.",
          "maxLength": 255
        },
        "hoursPlayed": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Total hours the player has played. Non-negative integer. Send `null` to clear a previously stored value; omit to keep the stored value.",
          "minimum": 0
        },
        "playerLevel": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The player's current level. Non-negative integer. Send `null` to clear a previously stored value; omit to keep the stored value.",
          "minimum": 0
        },
        "trustStatus": {
          "type": [
            "string",
            "null"
          ],
          "description": "Your trust verdict for the player. Send `null` to clear a previously stored status; omit to keep the stored value.",
          "enum": [
            "GOOD",
            "BAD",
            null
          ]
        }
      },
      "required": [
        "playerId"
      ],
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}