From b31edda94d5e8b79632e36183680211d98f2c05d Mon Sep 17 00:00:00 2001 From: Marc Serrat Date: Tue, 12 May 2020 17:42:06 +0200 Subject: [PATCH] Added reconciliation param, changed default sample endpoint --- src/Param.php | 5 +++++ tests/Unit/ConfigTest.php | 2 +- .../Unit/DirectoryTests/config.mocked.AssetandRequests.json | 2 +- tests/Unit/DirectoryTests/config.mocked.ProductList.json | 2 +- tests/Unit/DirectoryTests/config.mocked.TierConfigList.json | 2 +- tests/Unit/DirectoryTests/config.mocked.createRequest.json | 2 +- tests/Unit/DirectoryTests/config.mocked.getProduct.json | 2 +- tests/Unit/DirectoryTests/config.mocked.getTierAccounts.json | 2 +- tests/Unit/DirectoryTests/config.mocked.getTierConfig.json | 2 +- tests/Unit/DirectoryTests/config.mocked.json | 2 +- tests/Unit/FulfillmentTests/cfg.valid.json | 2 +- tests/Unit/FulfillmentTests/config.json | 2 +- tests/Unit/FulfillmentTests/config.mocked.json | 2 +- tests/Unit/FulfillmentTests/config.mocked4tierconfig.json | 2 +- tests/Unit/FulfillmentTests/config.mocked4tmpl.json | 2 +- .../Runtime/Providers/config.mocker4usagefileautomation.json | 2 +- .../Unit/SubscriptionTests/config.mocked.testOperations.json | 2 +- .../SubscriptionTests/config.mocked.testSetAttributes.json | 2 +- tests/Unit/TierAccountRequests/config.creation.mocked.json | 2 +- tests/Unit/TierAccountRequests/config.mocked.json | 2 +- tests/Unit/UsageTests/config.json | 2 +- tests/Unit/UsageTests/config.mocked4usageautomation.json | 2 +- .../Unit/UsageTests/config.mocked4usageautomationbasics.json | 2 +- tests/Unit/UsageTests/config.mocked4usagefileautomation.json | 2 +- tests/Unit/cfg.invalid.format.json | 2 +- tests/Unit/cfg.invalid.noapikey.json | 2 +- tests/Unit/cfg.invalid.runtimeservices.json | 2 +- tests/Unit/cfg.valid.json | 2 +- tests/Unit/cfg.valid.runtimeservices.json | 2 +- tests/Unit/config.file.mocked.json | 2 +- tests/Unit/config.json | 2 +- 31 files changed, 35 insertions(+), 30 deletions(-) diff --git a/src/Param.php b/src/Param.php index 5648a1d..24e905a 100644 --- a/src/Param.php +++ b/src/Param.php @@ -74,6 +74,11 @@ class Param extends Model */ public $marketplace; + /** + * @var boolean + */ + public $reconciliation; + /** * Assign error on parameter * @param string $msg - Error message to assign diff --git a/tests/Unit/ConfigTest.php b/tests/Unit/ConfigTest.php index e469ff4..a23afec 100644 --- a/tests/Unit/ConfigTest.php +++ b/tests/Unit/ConfigTest.php @@ -28,7 +28,7 @@ public function testInstantiationArray() { $cfg = new Config([ "apiKey" => "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint" => "https://api.connect.cloud.im/public/v1", + "apiEndpoint" => "https://api.connect.cloudblue.com/public/v1", "logLevel" => "info", "timeout" => 10, "sslVerifyHost" => true diff --git a/tests/Unit/DirectoryTests/config.mocked.AssetandRequests.json b/tests/Unit/DirectoryTests/config.mocked.AssetandRequests.json index 18aa56b..950dbda 100644 --- a/tests/Unit/DirectoryTests/config.mocked.AssetandRequests.json +++ b/tests/Unit/DirectoryTests/config.mocked.AssetandRequests.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/DirectoryTests/config.mocked.ProductList.json b/tests/Unit/DirectoryTests/config.mocked.ProductList.json index 0da8edc..0d76fe4 100644 --- a/tests/Unit/DirectoryTests/config.mocked.ProductList.json +++ b/tests/Unit/DirectoryTests/config.mocked.ProductList.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/DirectoryTests/config.mocked.TierConfigList.json b/tests/Unit/DirectoryTests/config.mocked.TierConfigList.json index ba5642d..57c1f19 100644 --- a/tests/Unit/DirectoryTests/config.mocked.TierConfigList.json +++ b/tests/Unit/DirectoryTests/config.mocked.TierConfigList.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/DirectoryTests/config.mocked.createRequest.json b/tests/Unit/DirectoryTests/config.mocked.createRequest.json index b5b278c..b177269 100644 --- a/tests/Unit/DirectoryTests/config.mocked.createRequest.json +++ b/tests/Unit/DirectoryTests/config.mocked.createRequest.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/DirectoryTests/config.mocked.getProduct.json b/tests/Unit/DirectoryTests/config.mocked.getProduct.json index 6723c79..fd4ccbe 100644 --- a/tests/Unit/DirectoryTests/config.mocked.getProduct.json +++ b/tests/Unit/DirectoryTests/config.mocked.getProduct.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/DirectoryTests/config.mocked.getTierAccounts.json b/tests/Unit/DirectoryTests/config.mocked.getTierAccounts.json index 982c660..fbc036d 100644 --- a/tests/Unit/DirectoryTests/config.mocked.getTierAccounts.json +++ b/tests/Unit/DirectoryTests/config.mocked.getTierAccounts.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/DirectoryTests/config.mocked.getTierConfig.json b/tests/Unit/DirectoryTests/config.mocked.getTierConfig.json index b5fb581..eb36d82 100644 --- a/tests/Unit/DirectoryTests/config.mocked.getTierConfig.json +++ b/tests/Unit/DirectoryTests/config.mocked.getTierConfig.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/DirectoryTests/config.mocked.json b/tests/Unit/DirectoryTests/config.mocked.json index e4f4321..f9d13e5 100644 --- a/tests/Unit/DirectoryTests/config.mocked.json +++ b/tests/Unit/DirectoryTests/config.mocked.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/FulfillmentTests/cfg.valid.json b/tests/Unit/FulfillmentTests/cfg.valid.json index b2fc8dc..3446e0a 100644 --- a/tests/Unit/FulfillmentTests/cfg.valid.json +++ b/tests/Unit/FulfillmentTests/cfg.valid.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": "info", "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/FulfillmentTests/config.json b/tests/Unit/FulfillmentTests/config.json index 466d424..f424d0e 100644 --- a/tests/Unit/FulfillmentTests/config.json +++ b/tests/Unit/FulfillmentTests/config.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": "info", "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/FulfillmentTests/config.mocked.json b/tests/Unit/FulfillmentTests/config.mocked.json index a6faa4a..f2915ec 100644 --- a/tests/Unit/FulfillmentTests/config.mocked.json +++ b/tests/Unit/FulfillmentTests/config.mocked.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/FulfillmentTests/config.mocked4tierconfig.json b/tests/Unit/FulfillmentTests/config.mocked4tierconfig.json index 674edd8..3281526 100644 --- a/tests/Unit/FulfillmentTests/config.mocked4tierconfig.json +++ b/tests/Unit/FulfillmentTests/config.mocked4tierconfig.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/FulfillmentTests/config.mocked4tmpl.json b/tests/Unit/FulfillmentTests/config.mocked4tmpl.json index d632cad..c81fc1f 100644 --- a/tests/Unit/FulfillmentTests/config.mocked4tmpl.json +++ b/tests/Unit/FulfillmentTests/config.mocked4tmpl.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/Runtime/Providers/config.mocker4usagefileautomation.json b/tests/Unit/Runtime/Providers/config.mocker4usagefileautomation.json index 510f2ea..c8b0279 100644 --- a/tests/Unit/Runtime/Providers/config.mocker4usagefileautomation.json +++ b/tests/Unit/Runtime/Providers/config.mocker4usagefileautomation.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffceca", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/SubscriptionTests/config.mocked.testOperations.json b/tests/Unit/SubscriptionTests/config.mocked.testOperations.json index 5872157..7aeda2c 100644 --- a/tests/Unit/SubscriptionTests/config.mocked.testOperations.json +++ b/tests/Unit/SubscriptionTests/config.mocked.testOperations.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/SubscriptionTests/config.mocked.testSetAttributes.json b/tests/Unit/SubscriptionTests/config.mocked.testSetAttributes.json index 15df425..41a838e 100644 --- a/tests/Unit/SubscriptionTests/config.mocked.testSetAttributes.json +++ b/tests/Unit/SubscriptionTests/config.mocked.testSetAttributes.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/TierAccountRequests/config.creation.mocked.json b/tests/Unit/TierAccountRequests/config.creation.mocked.json index 19ebac1..ece50f8 100644 --- a/tests/Unit/TierAccountRequests/config.creation.mocked.json +++ b/tests/Unit/TierAccountRequests/config.creation.mocked.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/TierAccountRequests/config.mocked.json b/tests/Unit/TierAccountRequests/config.mocked.json index 49cb4f9..e52741b 100644 --- a/tests/Unit/TierAccountRequests/config.mocked.json +++ b/tests/Unit/TierAccountRequests/config.mocked.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/UsageTests/config.json b/tests/Unit/UsageTests/config.json index 466d424..f424d0e 100644 --- a/tests/Unit/UsageTests/config.json +++ b/tests/Unit/UsageTests/config.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": "info", "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/UsageTests/config.mocked4usageautomation.json b/tests/Unit/UsageTests/config.mocked4usageautomation.json index f36ad24..5661f48 100644 --- a/tests/Unit/UsageTests/config.mocked4usageautomation.json +++ b/tests/Unit/UsageTests/config.mocked4usageautomation.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/UsageTests/config.mocked4usageautomationbasics.json b/tests/Unit/UsageTests/config.mocked4usageautomationbasics.json index 377fa32..2ee8d2c 100644 --- a/tests/Unit/UsageTests/config.mocked4usageautomationbasics.json +++ b/tests/Unit/UsageTests/config.mocked4usageautomationbasics.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/UsageTests/config.mocked4usagefileautomation.json b/tests/Unit/UsageTests/config.mocked4usagefileautomation.json index cbcaa0b..bae9bcd 100644 --- a/tests/Unit/UsageTests/config.mocked4usagefileautomation.json +++ b/tests/Unit/UsageTests/config.mocked4usagefileautomation.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/cfg.invalid.format.json b/tests/Unit/cfg.invalid.format.json index 6eb7866..4067509 100644 --- a/tests/Unit/cfg.invalid.format.json +++ b/tests/Unit/cfg.invalid.format.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": "info", "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/cfg.invalid.noapikey.json b/tests/Unit/cfg.invalid.noapikey.json index 016b1a1..6fd55e6 100644 --- a/tests/Unit/cfg.invalid.noapikey.json +++ b/tests/Unit/cfg.invalid.noapikey.json @@ -1,6 +1,6 @@ { "apiKey": null, - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": "info", "timeout": 10, "sslVerifyHost": false diff --git a/tests/Unit/cfg.invalid.runtimeservices.json b/tests/Unit/cfg.invalid.runtimeservices.json index c4f82af..d77d7fc 100644 --- a/tests/Unit/cfg.invalid.runtimeservices.json +++ b/tests/Unit/cfg.invalid.runtimeservices.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": "info", "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/cfg.valid.json b/tests/Unit/cfg.valid.json index b2fc8dc..3446e0a 100644 --- a/tests/Unit/cfg.valid.json +++ b/tests/Unit/cfg.valid.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": "info", "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/cfg.valid.runtimeservices.json b/tests/Unit/cfg.valid.runtimeservices.json index 466d424..f424d0e 100644 --- a/tests/Unit/cfg.valid.runtimeservices.json +++ b/tests/Unit/cfg.valid.runtimeservices.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": "info", "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/config.file.mocked.json b/tests/Unit/config.file.mocked.json index a93d568..30e0f74 100644 --- a/tests/Unit/config.file.mocked.json +++ b/tests/Unit/config.file.mocked.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": 4, "timeout": 10, "sslVerifyHost": false, diff --git a/tests/Unit/config.json b/tests/Unit/config.json index 466d424..f424d0e 100644 --- a/tests/Unit/config.json +++ b/tests/Unit/config.json @@ -1,6 +1,6 @@ { "apiKey": "ApiKey SU-766-419-989:56fda6081cd5200f089d28f7f9a6d390bf7ffcec", - "apiEndpoint": "https://api.connect.cloud.im/public/v1", + "apiEndpoint": "https://api.connect.cloudblue.com/public/v1", "logLevel": "info", "timeout": 10, "sslVerifyHost": false,