Skip to content

Commit

Permalink
chore(wasm): add wasm changes for ctp_mastercard connector (#6838)
Browse files Browse the repository at this point in the history
  • Loading branch information
sai-harsha-vardhan authored Dec 17, 2024
1 parent e8bfd0e commit b301d09
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 2 deletions.
5 changes: 5 additions & 0 deletions crates/connector_configs/src/common_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ pub struct ApiModelMetaData {
pub source_balance_account: Option<String>,
pub brand_id: Option<String>,
pub destination_account_number: Option<String>,
pub dpa_id: Option<String>,
pub dpa_name: Option<String>,
pub locale: Option<String>,
pub card_brands: Option<Vec<String>>,
pub merchant_category_code: Option<String>,
}

#[serde_with::skip_serializing_none]
Expand Down
5 changes: 5 additions & 0 deletions crates/connector_configs/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ pub struct ConfigMetadata {
pub source_balance_account: Option<InputData>,
pub brand_id: Option<InputData>,
pub destination_account_number: Option<InputData>,
pub dpa_id: Option<String>,
pub dpa_name: Option<String>,
pub locale: Option<String>,
pub card_brands: Option<Vec<String>>,
pub merchant_category_code: Option<String>,
}

#[serde_with::skip_serializing_none]
Expand Down
63 changes: 62 additions & 1 deletion crates/connector_configs/toml/development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4373,4 +4373,65 @@ merchant_secret="Source verification key"
[elavon.connector_auth.SignatureKey]
api_key="Account Id"
key1="User ID"
api_secret="Pin"
api_secret="Pin"

[ctp_mastercard]
[ctp_mastercard.connector_auth.HeaderKey]
api_key="API Key"

[ctp_mastercard.metadata.dpa_id]
name="dpa_id"
label="DPA Id"
placeholder="Enter DPA Id"
required=true
type="Text"

[ctp_mastercard.metadata.dpa_name]
name="dpa_name"
label="DPA Name"
placeholder="Enter DPA Name"
required=true
type="Text"

[ctp_mastercard.metadata.locale]
name="locale"
label="Locale"
placeholder="Enter locale"
required=true
type="Text"

[[ctp_mastercard.metadata.card_brands]]
name="card_brands"
label="Card Brands"
placeholder="Enter Card Brands"
required=true
type="MultiSelect"
options=["visa","mastercard"]

[[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]]
name="acquirer_merchant_id"
label="Acquire Merchant Id"
placeholder="Enter Acquirer Merchant Id"
required=true
type="Text"

[[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]]
name="merchant_country_code"
label="Merchant Country Code"
placeholder="Enter Merchant Country Code"
required=true
type="Text"
63 changes: 62 additions & 1 deletion crates/connector_configs/toml/sandbox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4318,4 +4318,65 @@ merchant_secret="Source verification key"
[elavon.connector_auth.SignatureKey]
api_key="Account Id"
key1="User ID"
api_secret="Pin"
api_secret="Pin"

[ctp_mastercard]
[ctp_mastercard.connector_auth.HeaderKey]
api_key="API Key"

[ctp_mastercard.metadata.dpa_id]
name="dpa_id"
label="DPA Id"
placeholder="Enter DPA Id"
required=true
type="Text"

[ctp_mastercard.metadata.dpa_name]
name="dpa_name"
label="DPA Name"
placeholder="Enter DPA Name"
required=true
type="Text"

[ctp_mastercard.metadata.locale]
name="locale"
label="Locale"
placeholder="Enter locale"
required=true
type="Text"

[[ctp_mastercard.metadata.card_brands]]
name="card_brands"
label="Card Brands"
placeholder="Enter Card Brands"
required=true
type="MultiSelect"
options=["visa","mastercard"]

[[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]]
name="acquirer_merchant_id"
label="Acquire Merchant Id"
placeholder="Enter Acquirer Merchant Id"
required=true
type="Text"

[[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]]
name="merchant_country_code"
label="Merchant Country Code"
placeholder="Enter Merchant Country Code"
required=true
type="Text"

0 comments on commit b301d09

Please sign in to comment.