From 56d83e0a63991d07ee26ec7549f96d36c8e26faa Mon Sep 17 00:00:00 2001 From: Jeeva Ramachandran Date: Thu, 2 Jan 2025 13:13:51 +0530 Subject: [PATCH 1/5] update wasm package --- crates/connector_configs/Cargo.toml | 1 + crates/euclid_wasm/Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/connector_configs/Cargo.toml b/crates/connector_configs/Cargo.toml index 84be33529db..cca22b5a270 100644 --- a/crates/connector_configs/Cargo.toml +++ b/crates/connector_configs/Cargo.toml @@ -10,6 +10,7 @@ license.workspace = true default = ["payouts", "dummy_connector"] production = [] sandbox = [] +development = [] dummy_connector = ["api_models/dummy_connector"] payouts = ["api_models/payouts"] v1 = ["api_models/v1", "common_utils/v1"] diff --git a/crates/euclid_wasm/Cargo.toml b/crates/euclid_wasm/Cargo.toml index 19c425e4c01..66fc84db5ed 100644 --- a/crates/euclid_wasm/Cargo.toml +++ b/crates/euclid_wasm/Cargo.toml @@ -15,6 +15,7 @@ release = ["payouts"] dummy_connector = ["kgraph_utils/dummy_connector", "connector_configs/dummy_connector"] production = ["connector_configs/production"] sandbox = ["connector_configs/sandbox"] +development= ["connector_configs/development"] payouts = ["api_models/payouts", "euclid/payouts"] v1 = ["api_models/v1", "kgraph_utils/v1"] v2 = [] From 0c8147abe6c94eca1911be7b22cf4df3d2df06e2 Mon Sep 17 00:00:00 2001 From: Jeeva Ramachandran Date: Thu, 2 Jan 2025 16:20:05 +0530 Subject: [PATCH 2/5] update wasm package --- crates/connector_configs/toml/sandbox.toml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.toml index 7126b33b30f..dc31ebf8f80 100644 --- a/crates/connector_configs/toml/sandbox.toml +++ b/crates/connector_configs/toml/sandbox.toml @@ -1714,6 +1714,7 @@ key2="Certificate Key" payment_method_type = "Visa" [jpmorgan.connector_auth.BodyKey] api_key="Access Token" +key1="Client Secret" [klarna] [[klarna.pay_later]] @@ -4374,7 +4375,7 @@ placeholder="Enter locale" required=true type="Text" -[[ctp_mastercard.metadata.card_brands]] +[ctp_mastercard.metadata.card_brands] name="card_brands" label="Card Brands" placeholder="Enter Card Brands" @@ -4382,28 +4383,28 @@ required=true type="MultiSelect" options=["visa","mastercard"] -[[ctp_mastercard.metadata.acquirer_bin]] +[ctp_mastercard.metadata.acquirer_bin] name="acquirer_bin" label="Acquire Bin" placeholder="Enter Acquirer Bin" required=true type="Text" -[[ctp_mastercard.metadata.acquirer_merchant_id]] +[ctp_mastercard.metadata.acquirer_merchant_id] name="acquirer_merchant_id" label="Acquire Merchant Id" placeholder="Enter Acquirer Merchant Id" required=true type="Text" -[[ctp_mastercard.metadata.merchant_category_code]] +[ctp_mastercard.metadata.merchant_category_code] name="merchant_category_code" label="Merchant Category Code" placeholder="Enter Merchant Category Code" required=true type="Text" -[[ctp_mastercard.metadata.merchant_country_code]] +[ctp_mastercard.metadata.merchant_country_code] name="merchant_country_code" label="Merchant Country Code" placeholder="Enter Merchant Country Code" From 8e88406fce01b1512511fee60c6fa0fefdaa8a15 Mon Sep 17 00:00:00 2001 From: Jeeva Ramachandran Date: Mon, 6 Jan 2025 15:37:40 +0530 Subject: [PATCH 3/5] update wasm build script --- crates/connector_configs/Cargo.toml | 1 - crates/euclid_wasm/Cargo.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/crates/connector_configs/Cargo.toml b/crates/connector_configs/Cargo.toml index cca22b5a270..84be33529db 100644 --- a/crates/connector_configs/Cargo.toml +++ b/crates/connector_configs/Cargo.toml @@ -10,7 +10,6 @@ license.workspace = true default = ["payouts", "dummy_connector"] production = [] sandbox = [] -development = [] dummy_connector = ["api_models/dummy_connector"] payouts = ["api_models/payouts"] v1 = ["api_models/v1", "common_utils/v1"] diff --git a/crates/euclid_wasm/Cargo.toml b/crates/euclid_wasm/Cargo.toml index 66fc84db5ed..19c425e4c01 100644 --- a/crates/euclid_wasm/Cargo.toml +++ b/crates/euclid_wasm/Cargo.toml @@ -15,7 +15,6 @@ release = ["payouts"] dummy_connector = ["kgraph_utils/dummy_connector", "connector_configs/dummy_connector"] production = ["connector_configs/production"] sandbox = ["connector_configs/sandbox"] -development= ["connector_configs/development"] payouts = ["api_models/payouts", "euclid/payouts"] v1 = ["api_models/v1", "kgraph_utils/v1"] v2 = [] From d858b9b06ffd75039dd205284874396f2a4b725a Mon Sep 17 00:00:00 2001 From: Jeeva Ramachandran Date: Mon, 6 Jan 2025 16:21:02 +0530 Subject: [PATCH 4/5] update build script --- docker/wasm-build.Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/wasm-build.Dockerfile b/docker/wasm-build.Dockerfile index 015a055e4fd..faa2d211bd8 100644 --- a/docker/wasm-build.Dockerfile +++ b/docker/wasm-build.Dockerfile @@ -1,7 +1,6 @@ FROM rust:latest as builder -ARG RUN_ENV=sandbox -ARG EXTRA_FEATURES="" +ARG FEATURES="" ARG VERSION_FEATURE_SET="v1" RUN apt-get update \ @@ -19,7 +18,7 @@ ENV env=$env COPY . . RUN echo env RUN cargo install wasm-pack -RUN wasm-pack build --target web --out-dir /tmp/wasm --out-name euclid crates/euclid_wasm -- --features ${VERSION_FEATURE_SET},${RUN_ENV},${EXTRA_FEATURES} +RUN wasm-pack build --target web --out-dir /tmp/wasm --out-name euclid crates/euclid_wasm -- --features ${VERSION_FEATURE_SET},${FEATURES} FROM scratch From 2722a49b2b69eb5cafc2b48076403cf4419e8f7c Mon Sep 17 00:00:00 2001 From: Jeeva Ramachandran Date: Fri, 24 Jan 2025 15:54:43 +0530 Subject: [PATCH 5/5] update wasm --- crates/connector_configs/toml/production.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.toml index 35f2f14c748..5b963e07801 100644 --- a/crates/connector_configs/toml/production.toml +++ b/crates/connector_configs/toml/production.toml @@ -1478,6 +1478,7 @@ key2="Certificate Key" payment_method_type = "Visa" [jpmorgan.connector_auth.BodyKey] api_key="Access Token" +key1="Client Secret" [klarna] [[klarna.pay_later]]