{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/verifone/refs/heads/main/json-schema/paypal-ecommerce-api-model2.json",
  "title": "Model2",
  "description": "Model2 from PayPal eComm API",
  "required": [
    "frequency",
    "sequence",
    "tenureType"
  ],
  "type": "object",
  "properties": {
    "pricingScheme": {
      "$ref": "#/components/schemas/pricingScheme"
    },
    "frequency": {
      "$ref": "#/components/schemas/frequency"
    },
    "tenureType": {
      "type": "string",
      "description": "The interval at which the subscription is charged or billed.",
      "enum": [
        "REGULAR",
        "TRIAL"
      ]
    },
    "sequence": {
      "type": "number",
      "description": "The order in which this cycle is to run among other billing cycles."
    },
    "totalCycles": {
      "type": "number",
      "description": "The number of times this billing cycle gets executed."
    }
  }
}