changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": {},
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "error": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "message": {
- "type": "string"
- },
- "next_action": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- },
- "required": [
- "operation_id",
- "status"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": {},
+ "properties": {
+ "action": {
+ "enum": [
+ "subscribe",
+ "change",
+ "cancel",
+ "resume"
+ ],
+ "type": "string"
+ },
+ "amount_due": {
+ "description": "Amount due now in the currency's minor units.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "amount_is_estimate": {
+ "type": "boolean"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "effective_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "expires_in_seconds": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "next_action": {
+ "const": "execute_subscription_change",
+ "type": "string"
+ },
+ "number_limit": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "plan": {
+ "anyOf": [
+ {
+ "enum": [
+ "starter",
+ "pro",
+ "pro_starter",
+ "pro_plus",
+ "pro_max"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "promotion_code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "proration_date": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "quote_id": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "recurring_amount": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Monthly list price in minor units, before discounts and tax."
+ },
+ "recurring_amount_basis": {
+ "const": "monthly_list_price_before_discounts_and_tax",
+ "type": "string"
+ },
+ "requires_user_authorization": {
+ "const": true,
+ "type": "boolean"
+ },
+ "trial_days": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "voice_limit": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "quote_id",
+ "action",
+ "plan",
+ "amount_due",
+ "currency",
+ "amount_is_estimate",
+ "trial_days",
+ "promotion_code",
+ "recurring_amount",
+ "recurring_amount_basis",
+ "effective_at",
+ "number_limit",
+ "voice_limit",
+ "proration_date",
+ "requires_user_authorization",
+ "expires_in_seconds",
+ "next_action"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "error": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "next_action": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation_id",
+ "status"
+ ],
+ "type": "object"
+ }
+]