diff --git a/maas-schemas-ts/src/maas-backend/subscriptions/subscription-intent.ts b/maas-schemas-ts/src/maas-backend/subscriptions/subscription-intent.ts index 5dd12a948..7db61fce6 100644 --- a/maas-schemas-ts/src/maas-backend/subscriptions/subscription-intent.ts +++ b/maas-schemas-ts/src/maas-backend/subscriptions/subscription-intent.ts @@ -84,7 +84,6 @@ export type SubscriptionIntentCreate = t.Branded< } & { planId: Defined; planAddons: Defined; - coupons: Defined; }, SubscriptionIntentCreateBrand >; @@ -99,7 +98,6 @@ export const SubscriptionIntentCreate = t.brand( t.type({ planId: Defined, planAddons: Defined, - coupons: Defined, }), ]), ( @@ -113,7 +111,6 @@ export const SubscriptionIntentCreate = t.brand( } & { planId: Defined; planAddons: Defined; - coupons: Defined; }, SubscriptionIntentCreateBrand > => true, @@ -144,6 +141,7 @@ export type SubscriptionIntentBase = t.Branded< subscriptionId: Defined; nextPlanId: Defined; nextPlanAddons: Defined; + nextPlanCoupons: Defined; }, SubscriptionIntentBaseBrand >; @@ -168,6 +166,7 @@ export const SubscriptionIntentBase = t.brand( subscriptionId: Defined, nextPlanId: Defined, nextPlanAddons: Defined, + nextPlanCoupons: Defined, }), ]), ( @@ -191,6 +190,7 @@ export const SubscriptionIntentBase = t.brand( subscriptionId: Defined; nextPlanId: Defined; nextPlanAddons: Defined; + nextPlanCoupons: Defined; }, SubscriptionIntentBaseBrand > => true, diff --git a/maas-schemas/schemas/maas-backend/subscriptions/subscription-intent.json b/maas-schemas/schemas/maas-backend/subscriptions/subscription-intent.json index ece15704a..6306abf58 100644 --- a/maas-schemas/schemas/maas-backend/subscriptions/subscription-intent.json +++ b/maas-schemas/schemas/maas-backend/subscriptions/subscription-intent.json @@ -24,7 +24,7 @@ "$ref": "http://maasglobal.com/core/components/state.json#/definitions/subscriptionIntentState" } }, - "required": ["planId", "planAddons", "coupons"] + "required": ["planId", "planAddons"] }, "subscriptionIntentBase": { "type": "object", @@ -75,7 +75,7 @@ "$ref": "http://maasglobal.com/core/components/units.json#/definitions/time" } }, - "required": ["identityId", "subscriptionId", "nextPlanId", "nextPlanAddons"], + "required": ["identityId", "subscriptionId", "nextPlanId", "nextPlanAddons", "nextPlanCoupons"], "additionalProperties": false }, "addonId": {