From 16141ba7cff8478ec9dd055d11fefcc64c04cd69 Mon Sep 17 00:00:00 2001 From: Win Date: Fri, 19 Jul 2024 12:24:08 +0700 Subject: [PATCH 1/4] MOL-18/PICT-195: add postman collection --- .../sctm_connector.postman_collection.json | 436 ++++++++++++++++++ 1 file changed, 436 insertions(+) create mode 100644 docs/postman/sctm_connector.postman_collection.json diff --git a/docs/postman/sctm_connector.postman_collection.json b/docs/postman/sctm_connector.postman_collection.json new file mode 100644 index 0000000..23aedcd --- /dev/null +++ b/docs/postman/sctm_connector.postman_collection.json @@ -0,0 +1,436 @@ +{ + "info": { + "_postman_id": "8fb1a9c2-1d84-49cb-8871-5c80b3d92e15", + "name": "SCTM Collection", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "14200932", + "_collection_link": "https://adventure-1591.postman.co/workspace/Adventure-Workspace~471ca30a-668a-4dde-88b2-8fa80e5dae88/collection/14200932-8fb1a9c2-1d84-49cb-8871-5c80b3d92e15?action=share&source=collection_link&creator=14200932" + }, + "item": [ + { + "name": "List payment methods", + "item": [ + { + "name": "2.1. Get payment methods by CREATE", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "tests[\"Status code \" + responseCode.code] = responseCode.code === 200 || responseCode.code === 201;", + "var data = JSON.parse(responseBody);", + "if(data.results && data.results[0] && data.results[0].id && data.results[0].version){", + " pm.environment.set(\"payment-id\", data.results[0].id); ", + " pm.environment.set(\"payment-version\", data.results[0].version);", + "}", + "if(data.results && data.results[0] && data.results[0].key){", + " pm.environment.set(\"payment-key\", data.results[0].key); ", + "}", + "if(data.version){", + " pm.environment.set(\"payment-version\", data.version);", + "}", + "if(data.id){", + " pm.environment.set(\"payment-id\", data.id); ", + "}", + "if(data.key){", + " pm.environment.set(\"payment-key\", data.key);", + "}", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "oauth2", + "oauth2": [ + { + "key": "accessToken", + "value": "{{ctp_access_token}}", + "type": "string" + }, + { + "key": "addTokenTo", + "value": "header", + "type": "string" + }, + { + "key": "tokenType", + "value": "Bearer", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"amountPlanned\" : {\n \"currencyCode\" : \"EUR\",\n \"centAmount\" : 1000,\n \"fractionDigits\": 2\n },\n \"paymentMethodInfo\" : {\n \"paymentInterface\" : \"Mollie\", // required to be verify with our connector\n \"method\" : \"\"\n },\n \"custom\": {\n \"type\": {\n \"typeId\": \"type\",\n \"key\": \"sctm-payment-custom-type\"\n },\n \"fields\": {\n \"sctm_payment_methods_request\": \"{\\n\\\"locale\\\":\\\"de_DE\\\"\\n}\", // hold all the filter options\n \"sctm_payment_methods_response\": \"\" // hold the payment list from Mollie response\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/{{project-key}}/payments", + "host": [ + "{{host}}" + ], + "path": [ + "{{project-key}}", + "payments" + ], + "query": [ + { + "key": "expand", + "value": "", + "disabled": true + } + ] + }, + "description": "Creating a Payment produces the [PaymentCreated](ctp:api:type:PaymentCreatedMessage) Message.\n" + }, + "response": [] + }, + { + "name": "2.2. Get payment methods by UPDATE", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "tests[\"Status code \" + responseCode.code] = responseCode.code === 200 || responseCode.code === 201;", + "var data = JSON.parse(responseBody);", + "if(data.results && data.results[0] && data.results[0].id && data.results[0].version){", + " pm.environment.set(\"payment-id\", data.results[0].id); ", + " pm.environment.set(\"payment-version\", data.results[0].version);", + "}", + "if(data.results && data.results[0] && data.results[0].key){", + " pm.environment.set(\"payment-key\", data.results[0].key); ", + "}", + "if(data.version){", + " pm.environment.set(\"payment-version\", data.version);", + "}", + "if(data.id){", + " pm.environment.set(\"payment-id\", data.id); ", + "}", + "if(data.key){", + " pm.environment.set(\"payment-key\", data.key);", + "}", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "oauth2", + "oauth2": [ + { + "key": "accessToken", + "value": "{{ctp_access_token}}", + "type": "string" + }, + { + "key": "addTokenTo", + "value": "header", + "type": "string" + }, + { + "key": "tokenType", + "value": "Bearer", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"version\": {{payment-version}},\n \"actions\": [\n {\n // kindly adjust centAmount value to your preference\n \"action\": \"changeAmountPlanned\",\n \"amount\": {\n \"type\": \"centPrecision\",\n \"currencyCode\": \"EUR\",\n \"centAmount\": 2000\n }\n },\n {\n // should be empty to refresh the payment list\n \"action\": \"setCustomField\",\n \"name\": \"sctm_payment_methods_response\",\n \"value\": \"\"\n },\n {\n // should be empty to revalidate the card component method\n \"action\": \"setCustomField\",\n \"name\": \"sctm_mollie_profile_id\",\n \"value\": \"\"\n }\n ]\n}" + }, + "url": { + "raw": "{{host}}/{{project-key}}/payments/{{payment-id}}", + "host": [ + "{{host}}" + ], + "path": [ + "{{project-key}}", + "payments", + "{{payment-id}}" + ], + "query": [ + { + "key": "expand", + "value": "", + "disabled": true + } + ] + }, + "description": "post Payments" + }, + "response": [] + } + ], + "description": "## GET PAYMENT METHODS\n\nNo matter when payment methods is retrieved, the `payment` object has to be **create/update** for the connector procedure to be triggered\n\n1. A `payment` object must be instantiated/modified via CT extension actions\n \n2. The object has several parameters as described in the table below\n \n3. The connector will return the corresponding update actions to this `payment` object\n \n4. Then, these update actions will be consumed and update the `payment` object with its Mollie responses\n \n\n**Parameters**\n\n| **Name** | **Required** | **Note** |\n| --- | --- | --- |\n| amountPlanned | √ | To detemine Mollie payment amount |\n| paymentMethodInfo.paymentInterface | √ | To be verified this is a Mollie payment by the connector |\n| custom.fields.sctm_payment_methods_response | √ | **To hold the payment methods list as responsed by Mollie** |\n| custom.fields.sctm_payment_methods_request | √ | To hold all the listing option for inquiring available Mollie payment methods |\n| custom.fields.sctm_payment_methods_request.sequenceType | | To hold Mollie `sequenceType` option |\n| custom.fields.sctm_payment_methods_request.locale | | To hold Mollie `locale` option |\n| custom.fields.sctm_payment_methods_request.resource | | To hold Mollie `resource` option |\n| custom.fields.sctm_payment_methods_request.billingCountry | | To hold Mollie `billingCountry` option |\n| custom.fields.sctm_payment_methods_request.includeWallets | | To hold Mollie `includeWallets` option |\n| custom.fields.sctm_payment_methods_request.orderLineCategories | | To hold Mollie `orderLineCategories` option |\n| custom.fields.sctm_payment_methods_request.include | | To hold Mollie `include` option |\n| custom.fields.sctm_mollie_profile_id | | To be used for the Mollie card component - its value determining if `card component` method is available or not |\n\n# (i) How to test using this collection\n\n1. Get a commercetools (CT) access token (via [Obtain access token request](https://adventure-1591.postman.co/workspace/Adventure-Workspace~471ca30a-668a-4dde-88b2-8fa80e5dae88/request/14200932-afa0eab6-aa38-40c2-8bba-bff2cc779b55?action=share&source=copy-link&creator=14200932&ctx=documentation))\n \n2. Determine which way to trigger the get payment methods\n \n 1. via CREATE CT payment ([2.1 request](https://adventure-1591.postman.co/workspace/Adventure-Workspace~471ca30a-668a-4dde-88b2-8fa80e5dae88/request/14200932-996c2323-560c-4183-9fa4-59fe771b0749?action=share&source=copy-link&creator=14200932&ctx=documentation))\n \n 2. via UPDATE CT payment ([2.2 request](https://adventure-1591.postman.co/workspace/Adventure-Workspace~471ca30a-668a-4dde-88b2-8fa80e5dae88/request/14200932-d27b1de5-eabb-48a1-9dfe-47000a3fe4f4?action=share&source=copy-link&creator=14200932&ctx=documentation))\n \n3. As a result of these requests, the custom field named `sctm_payment_methods_response` will be updated **with all the available Mollie payment methods** for _the sumitted amount along with all filtering options_" + }, + { + "name": "Create Payment", + "item": [ + { + "name": "2.a. Create Payment", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "tests[\"Status code \" + responseCode.code] = responseCode.code === 200 || responseCode.code === 201;", + "var data = JSON.parse(responseBody);", + "if(data.results && data.results[0] && data.results[0].id && data.results[0].version){", + " pm.environment.set(\"payment-id\", data.results[0].id); ", + " pm.environment.set(\"payment-version\", data.results[0].version);", + "}", + "if(data.results && data.results[0] && data.results[0].key){", + " pm.environment.set(\"payment-key\", data.results[0].key); ", + "}", + "if(data.version){", + " pm.environment.set(\"payment-version\", data.version);", + "}", + "if(data.id){", + " pm.environment.set(\"payment-id\", data.id); ", + "}", + "if(data.key){", + " pm.environment.set(\"payment-key\", data.key);", + "}", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "oauth2", + "oauth2": [ + { + "key": "accessToken", + "value": "{{ctp_access_token}}", + "type": "string" + }, + { + "key": "addTokenTo", + "value": "header", + "type": "string" + }, + { + "key": "tokenType", + "value": "Bearer", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"key\" : \"000048\",\n \"amountPlanned\" : {\n \"currencyCode\" : \"EUR\",\n \"centAmount\" : 1000,\n \"fractionDigits\": 2\n },\n \"paymentMethodInfo\" : {\n \"paymentInterface\" : \"Mollie\",\n \"method\" : \"creditcard\",\n \"name\" : {\n \"en\" : \"Credit Card\"\n }\n },\n \"transactions\" : [ {\n \"timestamp\" : \"2015-10-20T08:54:24.000Z\",\n \"type\" : \"Charge\",\n \"amount\" : {\n \"currencyCode\" : \"USD\",\n \"centAmount\" : 1000\n },\n \"state\" : \"Initial\"\n } ],\n \"custom\": {\n \"type\": {\n \"typeId\": \"type\",\n \"key\": \"sctm-payment-custom-fields\"\n },\n \"fields\": {\n \"sctm_create_payment_request\": \"{\\\"description\\\":\\\"Test\\\",\\\"locale\\\":\\\"en_GB\\\",\\\"redirectUrl\\\":\\\"https://www.google.com/\\\"}\"\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/{{project-key}}/payments", + "host": [ + "{{host}}" + ], + "path": [ + "{{project-key}}", + "payments" + ], + "query": [ + { + "key": "expand", + "value": "", + "disabled": true + } + ] + }, + "description": "Creating a Payment produces the [PaymentCreated](ctp:api:type:PaymentCreatedMessage) Message.\n" + }, + "response": [] + }, + { + "name": "2.b. Create Payment", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "tests[\"Status code \" + responseCode.code] = responseCode.code === 200 || responseCode.code === 201;", + "var data = JSON.parse(responseBody);", + "if(data.results && data.results[0] && data.results[0].id && data.results[0].version){", + " pm.environment.set(\"payment-id\", data.results[0].id); ", + " pm.environment.set(\"payment-version\", data.results[0].version);", + "}", + "if(data.results && data.results[0] && data.results[0].key){", + " pm.environment.set(\"payment-key\", data.results[0].key); ", + "}", + "if(data.version){", + " pm.environment.set(\"payment-version\", data.version);", + "}", + "if(data.id){", + " pm.environment.set(\"payment-id\", data.id); ", + "}", + "if(data.key){", + " pm.environment.set(\"payment-key\", data.key);", + "}", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "oauth2", + "oauth2": [ + { + "key": "accessToken", + "value": "{{ctp_access_token}}", + "type": "string" + }, + { + "key": "addTokenTo", + "value": "header", + "type": "string" + }, + { + "key": "tokenType", + "value": "Bearer", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"key\" : \"000049\",\n \"amountPlanned\" : {\n \"currencyCode\" : \"EUR\",\n \"centAmount\" : 1000,\n \"fractionDigits\": 2\n },\n \"paymentMethodInfo\" : {\n \"paymentInterface\" : \"Mollie\",\n \"method\" : \"creditcard\",\n \"name\" : {\n \"en\" : \"Credit Card\"\n }\n },\n \"transactions\" : [ \n {\n \"timestamp\" : \"2015-10-20T08:54:24.000Z\",\n \"type\" : \"Charge\",\n \"amount\" : {\n \"currencyCode\" : \"USD\",\n \"centAmount\" : 200\n },\n \"state\" : \"Failure\"\n },\n {\n \"timestamp\" : \"2015-10-20T08:54:24.000Z\",\n \"type\" : \"Charge\",\n \"amount\" : {\n \"currencyCode\" : \"USD\",\n \"centAmount\" : 330\n },\n \"state\" : \"Initial\"\n }\n ],\n \"custom\": {\n \"type\": {\n \"typeId\": \"type\",\n \"key\": \"sctm-payment-custom-fields\"\n },\n \"fields\": {\n \"sctm_create_payment_request\": \"{\\\"description\\\":\\\"Test\\\",\\\"locale\\\":\\\"en_GB\\\",\\\"redirectUrl\\\":\\\"https://www.google.com/\\\"}\"\n }\n }\n}" + }, + "url": { + "raw": "{{host}}/{{project-key}}/payments", + "host": [ + "{{host}}" + ], + "path": [ + "{{project-key}}", + "payments" + ], + "query": [ + { + "key": "expand", + "value": "", + "disabled": true + } + ] + }, + "description": "Creating a Payment produces the [PaymentCreated](ctp:api:type:PaymentCreatedMessage) Message.\n" + }, + "response": [] + } + ], + "description": "Steps to trigger the connector to create a Mollie Payment:\n\n1\\. Obtain the access token:\n\n- Open the `Obtain access token` request, press on the send button to send request. After sending the request succesfully, it will automatically store the access_token in the response for later use ([via Obtain access token request](https://adventure-1591.postman.co/workspace/Adventure-Workspace~471ca30a-668a-4dde-88b2-8fa80e5dae88/request/14200932-afa0eab6-aa38-40c2-8bba-bff2cc779b55?action=share&source=copy-link&creator=14200932&ctx=documentation))\n \n\n2.\n\na. Create Payment with one transaction\n\n- Represent for the case that the user want to make a payment right after shopping.\n \n- Response expectation:\n \n - Transaction state will be updated to `Pending`\n \n - Transaction timestamp will be updated\n \n - Transaction `interactionId` will have a value like tr_XXXXXX, this is the Mollie Payment ID\n \n - interfaceInteractions now will have a custom field, that custom fieldset will include:\n \n - id: Unique string generated by the connector\n \n - actionType: will be `createPayment` in this case\n \n - requestValue: JSON string contain CommerceTools transaction ID and payment method\n \n - resoponeValue: JSON string contain Mollie Payment ID, Checkout URL and the CommerceTools transaction ID\n \n\nb. Create Payment with more than one transaction\n\n- Represent the case that the user could made a payment before but failed or something like that, therefor he wants to make a new payment again, therefor our CommerceTools Payment object will have at least 2 transactions: the first one is the failed one (called transaction A) and the second one represent for the current creating payment process (call transaction B)\n \n- Response expectation: really the same with the 2.a, except that the only target transaction (the one which will be updated) is the transaction B above" + }, + { + "name": "1. Obtain access token", + "event": [ + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "tests[\"Status code is 200\"] = responseCode.code === 200;", + "var data = JSON.parse(responseBody);", + "if(data.access_token){", + " pm.environment.set(\"ctp_access_token\", data.access_token);", + "}", + "if (data.scope) {", + " parts = data.scope.split(\" \");", + " parts = parts.filter(scope => scope.includes(\":\")).map(scope => scope.split(\":\"))", + " if (parts.length > 0) {", + " scopeParts = parts[0];", + " pm.environment.set(\"project-key\", scopeParts[1]);", + " parts = parts.filter(scope => scope.length >= 3)", + " if (parts.length > 0) {", + " scopeParts = parts[0];", + " pm.environment.set(\"store-key\", scopeParts[2]);", + " }", + " }", + "}" + ] + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "username", + "value": "{{client_id}}", + "type": "string" + }, + { + "key": "password", + "value": "{{client_secret}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{auth_url}}/oauth/token?grant_type=client_credentials", + "host": [ + "{{auth_url}}" + ], + "path": [ + "oauth", + "token" + ], + "query": [ + { + "key": "grant_type", + "value": "client_credentials" + } + ] + }, + "description": "Use this request to obtain an access token for your commercetools platform project via Client Credentials Flow. As a prerequisite you must have filled out environment variables in Postman for projectKey, client_id and client_secret to use this." + }, + "response": [] + } + ] +} \ No newline at end of file From 8ec0718c2a7104f42bc3faf1e0c6bb8c38963f00 Mon Sep 17 00:00:00 2001 From: Win Date: Fri, 19 Jul 2024 12:28:22 +0700 Subject: [PATCH 2/4] MOL-18/PICT-195: add postman collection (cont) --- .../sctm_connector.postman_environment.json | 141 ++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 docs/postman/sctm_connector.postman_environment.json diff --git a/docs/postman/sctm_connector.postman_environment.json b/docs/postman/sctm_connector.postman_environment.json new file mode 100644 index 0000000..306c7b0 --- /dev/null +++ b/docs/postman/sctm_connector.postman_environment.json @@ -0,0 +1,141 @@ +{ + "id": "e53360a5-a9ef-41d2-a8b7-8751477b3e90", + "name": "SCTM Connector", + "values": [ + { + "key": "host", + "value": "https://api.{region}.commercetools.com", + "type": "text", + "enabled": true + }, + { + "key": "auth_url", + "value": "https://auth.{{region}}.commercetools.com", + "type": "text", + "enabled": true + }, + { + "key": "client_id", + "value": "", + "type": "text", + "enabled": true + }, + { + "key": "client_secret", + "value": "", + "type": "text", + "enabled": true + }, + { + "key": "ctp_access_token", + "value": "", + "type": "text", + "enabled": true + }, + { + "key": "project-key", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "extension-id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "extension-version", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "extension-key", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "custom-object-version", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "custom-object-id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "custom-object-key", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "extension-public-url", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "type-version", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "type-id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "type-key", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "cart-version", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "cart-id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "mollie_api_key", + "value": "", + "type": "default", + "enabled": true + }, + { + "key": "payment-version", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "payment-id", + "value": "", + "type": "any", + "enabled": true + }, + { + "key": "payment-key", + "value": "", + "type": "any", + "enabled": true + } + ], + "_postman_variable_scope": "environment", + "_postman_exported_at": "2024-07-19T05:27:44.896Z", + "_postman_exported_using": "Postman/11.4.0" +} \ No newline at end of file From 396f88375c4961cfb93303458777ff9048cd86f7 Mon Sep 17 00:00:00 2001 From: Win Date: Fri, 19 Jul 2024 12:29:23 +0700 Subject: [PATCH 3/4] MOL-18/PICT-195: update version --- processor/package-lock.json | 76 +------------------------------------ processor/package.json | 2 +- 2 files changed, 3 insertions(+), 75 deletions(-) diff --git a/processor/package-lock.json b/processor/package-lock.json index 3fd4888..27132d2 100644 --- a/processor/package-lock.json +++ b/processor/package-lock.json @@ -1,12 +1,12 @@ { "name": "shopmacher-mollie-processor", - "version": "0.0.11", + "version": "0.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "shopmacher-mollie-processor", - "version": "0.0.11", + "version": "0.0.12", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -2036,11 +2036,6 @@ "node": ">=0.10.0" } }, - "node_modules/color/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, "node_modules/jest-validate": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", @@ -2097,18 +2092,6 @@ "integrity": "sha512-xiNMgCuoy4mCL4JTywk9XFs5xpRUcKxtWEcMR6FNMtsgewYTIgIR+nvlP4A4iRCAzRsHMnPhvTRrzp4AGcRTEA==", "dev": true }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/update-browserslist-db": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", @@ -2234,15 +2217,6 @@ "node": ">=10" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, "node_modules/jest-cli": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", @@ -3192,14 +3166,6 @@ "semver": "bin/semver.js" } }, - "node_modules/winston-transport/node_modules/@colors/colors": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", - "integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==", - "engines": { - "node": ">=0.1.90" - } - }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -4572,11 +4538,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, "node_modules/define-properties": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", @@ -4880,18 +4841,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -6542,21 +6491,6 @@ "node": ">= 0.6" } }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/ngrok": { "version": "5.0.0-beta.2", "resolved": "https://registry.npmjs.org/ngrok/-/ngrok-5.0.0-beta.2.tgz", @@ -7717,12 +7651,6 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, "node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", diff --git a/processor/package.json b/processor/package.json index 6e337a1..a171706 100644 --- a/processor/package.json +++ b/processor/package.json @@ -1,7 +1,7 @@ { "name": "shopmacher-mollie-processor", "description": "Integration between commercetools and mollie payment service provider", - "version": "0.0.11", + "version": "0.0.12", "main": "index.js", "private": true, "scripts": { From 8fbf2b2879ea7b0c326016ebbfae066b4340b793 Mon Sep 17 00:00:00 2001 From: Win Date: Fri, 19 Jul 2024 12:41:24 +0700 Subject: [PATCH 4/4] MOL-18/PICT-195: update version --- processor/package-lock.json | 72 +++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/processor/package-lock.json b/processor/package-lock.json index 27132d2..b26dbef 100644 --- a/processor/package-lock.json +++ b/processor/package-lock.json @@ -2036,6 +2036,11 @@ "node": ">=0.10.0" } }, + "node_modules/color/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, "node_modules/jest-validate": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", @@ -2092,6 +2097,18 @@ "integrity": "sha512-xiNMgCuoy4mCL4JTywk9XFs5xpRUcKxtWEcMR6FNMtsgewYTIgIR+nvlP4A4iRCAzRsHMnPhvTRrzp4AGcRTEA==", "dev": true }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/update-browserslist-db": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", @@ -2217,6 +2234,15 @@ "node": ">=10" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, "node_modules/jest-cli": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", @@ -3166,6 +3192,14 @@ "semver": "bin/semver.js" } }, + "node_modules/winston-transport/node_modules/@colors/colors": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", + "integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==", + "engines": { + "node": ">=0.1.90" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -4538,6 +4572,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, "node_modules/define-properties": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", @@ -4841,6 +4880,18 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -6491,6 +6542,21 @@ "node": ">= 0.6" } }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/ngrok": { "version": "5.0.0-beta.2", "resolved": "https://registry.npmjs.org/ngrok/-/ngrok-5.0.0-beta.2.tgz", @@ -7651,6 +7717,12 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, "node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",