From c073c3ec29c509d5f31564c1e3775ac309cda387 Mon Sep 17 00:00:00 2001 From: Radu Cornelia Mariana Date: Tue, 4 Jan 2022 13:30:54 +0200 Subject: [PATCH] added ageny_site for cost estimation --- src/index.js | 6 ++++-- src/model/Subscription.js | 8 +++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 274b7718..3ad9d826 100644 --- a/src/index.js +++ b/src/index.js @@ -603,14 +603,16 @@ export default class Client { user_licenses, big_dev, format = null, - country_code = null + country_code = null, + agency_site ) { const query = { plan, storage, environments, user_licenses, - big_dev + big_dev, + agency_site }; if (format) query.format = format; if (country_code) query.country_code = country_code; diff --git a/src/model/Subscription.js b/src/model/Subscription.js index 0c766fdc..c3286f3f 100644 --- a/src/model/Subscription.js +++ b/src/model/Subscription.js @@ -19,7 +19,13 @@ const creatableField = [ "default_branch" ]; -const modifiableField = ["plan", "environments", "storage", "big_dev"]; +const modifiableField = [ + "plan", + "environments", + "storage", + "big_dev", + "agency_site" +]; const url = "/v1/subscriptions/:id"; const STATUS_ACTIVE = "active";