Skip to content

Commit

Permalink
No need to be too strict and require coupons
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhtr committed Jun 8, 2020
1 parent fd0b5a5 commit 0ece43e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export type SubscriptionIntentCreate = t.Branded<
} & {
planId: Defined;
planAddons: Defined;
coupons: Defined;
},
SubscriptionIntentCreateBrand
>;
Expand All @@ -99,7 +98,6 @@ export const SubscriptionIntentCreate = t.brand(
t.type({
planId: Defined,
planAddons: Defined,
coupons: Defined,
}),
]),
(
Expand All @@ -113,7 +111,6 @@ export const SubscriptionIntentCreate = t.brand(
} & {
planId: Defined;
planAddons: Defined;
coupons: Defined;
},
SubscriptionIntentCreateBrand
> => true,
Expand Down Expand Up @@ -144,6 +141,7 @@ export type SubscriptionIntentBase = t.Branded<
subscriptionId: Defined;
nextPlanId: Defined;
nextPlanAddons: Defined;
nextPlanCoupons: Defined;
},
SubscriptionIntentBaseBrand
>;
Expand All @@ -168,6 +166,7 @@ export const SubscriptionIntentBase = t.brand(
subscriptionId: Defined,
nextPlanId: Defined,
nextPlanAddons: Defined,
nextPlanCoupons: Defined,
}),
]),
(
Expand All @@ -191,6 +190,7 @@ export const SubscriptionIntentBase = t.brand(
subscriptionId: Defined;
nextPlanId: Defined;
nextPlanAddons: Defined;
nextPlanCoupons: Defined;
},
SubscriptionIntentBaseBrand
> => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"$ref": "http://maasglobal.com/core/components/state.json#/definitions/subscriptionIntentState"
}
},
"required": ["planId", "planAddons", "coupons"]
"required": ["planId", "planAddons"]
},
"subscriptionIntentBase": {
"type": "object",
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 0ece43e

Please sign in to comment.