Skip to content

Commit 290a3bd

Browse files
committed
resolved conflicts
2 parents e5d2f88 + e4a0ff1 commit 290a3bd

File tree

47 files changed

+808
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+808
-116
lines changed

api-reference/essentials/error_codes.mdx

Lines changed: 45 additions & 28 deletions
Large diffs are not rendered by default.

api-reference/openapi_spec.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9766,6 +9766,28 @@
97669766
"enum": [
97679767
"user_vpa_id"
97689768
]
9769+
},
9770+
{
9771+
"type": "object",
9772+
"required": [
9773+
"language_preference"
9774+
],
9775+
"properties": {
9776+
"language_preference": {
9777+
"type": "object",
9778+
"required": [
9779+
"options"
9780+
],
9781+
"properties": {
9782+
"options": {
9783+
"type": "array",
9784+
"items": {
9785+
"type": "string"
9786+
}
9787+
}
9788+
}
9789+
}
9790+
}
97699791
}
97709792
],
97719793
"description": "Possible field type of required fields in payment_method_data"
@@ -12177,6 +12199,10 @@
1217712199
"date_of_birth": {
1217812200
"type": "string",
1217912201
"format": "date"
12202+
},
12203+
"language_preference": {
12204+
"type": "string",
12205+
"nullable": true
1218012206
}
1218112207
}
1218212208
},

config/config.example.toml

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ certificate = "/path/to/certificate.pem"
2626
# http_url = "http proxy url" # Proxy all HTTP traffic via this proxy
2727
# https_url = "https proxy url" # Proxy all HTTPS traffic via this proxy
2828
idle_pool_connection_timeout = 90 # Timeout for idle pool connections (defaults to 90s)
29+
bypass_proxy_urls = [] # A list of URLs that should bypass the proxy
2930

3031

3132
# Configuration for the Key Manager Service
@@ -284,30 +285,30 @@ stripe = { banks = "alior_bank,bank_millennium,bank_nowy_bfg_sa,bank_pekao_sa,ba
284285
wallets = ["klarna", "mifinity", "braintree", "applepay"]
285286
rewards = ["cashtocode", "zen"]
286287
cards = [
287-
"adyen",
288-
"adyenplatform",
289-
"authorizedotnet",
290-
"coinbase",
291-
"cryptopay",
292-
"braintree",
293-
"checkout",
294-
"cybersource",
295-
"datatrans",
296-
"globalpay",
297-
"globepay",
298-
"gocardless",
299-
"gpayments",
300-
"helcim",
301-
"mollie",
302-
"paypal",
303-
"shift4",
304-
"square",
305-
"stax",
306-
"stripe",
307-
"threedsecureio",
308-
"worldpay",
309-
"zen",
310-
"zsl",
288+
"adyen",
289+
"adyenplatform",
290+
"authorizedotnet",
291+
"coinbase",
292+
"cryptopay",
293+
"braintree",
294+
"checkout",
295+
"cybersource",
296+
"datatrans",
297+
"globalpay",
298+
"globepay",
299+
"gocardless",
300+
"gpayments",
301+
"helcim",
302+
"mollie",
303+
"paypal",
304+
"shift4",
305+
"square",
306+
"stax",
307+
"stripe",
308+
"threedsecureio",
309+
"worldpay",
310+
"zen",
311+
"zsl",
311312
]
312313

313314
# Scheduler settings provides a point to modify the behaviour of scheduler flow.
@@ -438,13 +439,13 @@ card.debit = { connector_list = "cybersource" } # Update Mandate supported paym
438439
# Required fields info used while listing the payment_method_data
439440
[required_fields.pay_later] # payment_method = "pay_later"
440441
afterpay_clearpay = { fields = { stripe = [ # payment_method_type = afterpay_clearpay, connector = "stripe"
441-
# Required fields vector with its respective display name in front-end and field_type
442-
{ required_field = "shipping.address.first_name", display_name = "first_name", field_type = "text" },
443-
{ required_field = "shipping.address.last_name", display_name = "last_name", field_type = "text" },
444-
{ required_field = "shipping.address.country", display_name = "country", field_type = { drop_down = { options = [
445-
"US",
446-
"IN",
447-
] } } },
442+
# Required fields vector with its respective display name in front-end and field_type
443+
{ required_field = "shipping.address.first_name", display_name = "first_name", field_type = "text" },
444+
{ required_field = "shipping.address.last_name", display_name = "last_name", field_type = "text" },
445+
{ required_field = "shipping.address.country", display_name = "country", field_type = { drop_down = { options = [
446+
"US",
447+
"IN",
448+
] } } },
448449
] } }
449450

450451
[payouts]
@@ -484,7 +485,7 @@ boleto = { country = "BR", currency = "BRL" }
484485
open_banking_uk = { country = "DE,GB,AT,BE,CY,EE,ES,FI,FR,GR,HR,IE,IT,LT,LU,LV,MT,NL,PT,SI,SK,BG,CZ,DK,HU,NO,PL,RO,SE,AU,BR", currency = "EUR,GBP,DKK,NOK,PLN,SEK,AUD,BRL" }
485486

486487
[pm_filters.razorpay]
487-
upi_collect = {country = "IN", currency = "INR"}
488+
upi_collect = { country = "IN", currency = "INR" }
488489

489490
[pm_filters.zen]
490491
credit = { not_available_flows = { capture_method = "manual" } }
@@ -586,7 +587,7 @@ card = "credit,debit"
586587

587588
#Payout Method Filters Based on Country and Currency
588589
[payout_method_filters.adyenplatform]
589-
sepa = { country = "ES,SK,AT,NL,DE,BE,FR,FI,PT,IE,EE,LT,LV,IT,CZ,DE,HU,NO,PL,SE,GB,CH" , currency = "EUR,CZK,DKK,HUF,NOK,PLN,SEK,GBP,CHF" }
590+
sepa = { country = "ES,SK,AT,NL,DE,BE,FR,FI,PT,IE,EE,LT,LV,IT,CZ,DE,HU,NO,PL,SE,GB,CH", currency = "EUR,CZK,DKK,HUF,NOK,PLN,SEK,GBP,CHF" }
590591

591592
[payout_method_filters.stripe]
592593
ach = { country = "US", currency = "USD" }
@@ -636,19 +637,19 @@ enabled = true # Switch to enable or disable PayPal onboard
636637
source = "logs" # The event sink to push events supports kafka or logs (stdout)
637638

638639
[events.kafka]
639-
brokers = [] # Kafka broker urls for bootstrapping the client
640-
fraud_check_analytics_topic = "topic" # Kafka topic to be used for FraudCheck events
641-
intent_analytics_topic = "topic" # Kafka topic to be used for PaymentIntent events
642-
attempt_analytics_topic = "topic" # Kafka topic to be used for PaymentAttempt events
643-
refund_analytics_topic = "topic" # Kafka topic to be used for Refund events
644-
api_logs_topic = "topic" # Kafka topic to be used for incoming api events
645-
connector_logs_topic = "topic" # Kafka topic to be used for connector api events
646-
outgoing_webhook_logs_topic = "topic" # Kafka topic to be used for outgoing webhook events
647-
dispute_analytics_topic = "topic" # Kafka topic to be used for Dispute events
648-
audit_events_topic = "topic" # Kafka topic to be used for Payment Audit events
649-
payout_analytics_topic = "topic" # Kafka topic to be used for Payouts and PayoutAttempt events
650-
consolidated_events_topic = "topic" # Kafka topic to be used for Consolidated events
651-
authentication_analytics_topic = "topic" # Kafka topic to be used for Authentication events
640+
brokers = [] # Kafka broker urls for bootstrapping the client
641+
fraud_check_analytics_topic = "topic" # Kafka topic to be used for FraudCheck events
642+
intent_analytics_topic = "topic" # Kafka topic to be used for PaymentIntent events
643+
attempt_analytics_topic = "topic" # Kafka topic to be used for PaymentAttempt events
644+
refund_analytics_topic = "topic" # Kafka topic to be used for Refund events
645+
api_logs_topic = "topic" # Kafka topic to be used for incoming api events
646+
connector_logs_topic = "topic" # Kafka topic to be used for connector api events
647+
outgoing_webhook_logs_topic = "topic" # Kafka topic to be used for outgoing webhook events
648+
dispute_analytics_topic = "topic" # Kafka topic to be used for Dispute events
649+
audit_events_topic = "topic" # Kafka topic to be used for Payment Audit events
650+
payout_analytics_topic = "topic" # Kafka topic to be used for Payouts and PayoutAttempt events
651+
consolidated_events_topic = "topic" # Kafka topic to be used for Consolidated events
652+
authentication_analytics_topic = "topic" # Kafka topic to be used for Authentication events
652653

653654
# File storage configuration
654655
[file_storage]

config/deployments/env_specific.toml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ partner_id = "paypal_partner_id"
4343

4444
[connector_request_reference_id_config]
4545
merchant_ids_send_payment_id_as_connector_request_id = [
46-
"merchant_id_1",
47-
"merchant_id_2",
48-
"etc.,",
46+
"merchant_id_1",
47+
"merchant_id_2",
48+
"etc.,",
4949
]
5050

5151
[cors]
@@ -70,19 +70,19 @@ sts_role_session_name = "" # An identifier for the assumed role session, used to
7070
source = "logs" # The event sink to push events supports kafka or logs (stdout)
7171

7272
[events.kafka]
73-
brokers = [] # Kafka broker urls for bootstrapping the client
74-
intent_analytics_topic = "topic" # Kafka topic to be used for PaymentIntent events
75-
attempt_analytics_topic = "topic" # Kafka topic to be used for PaymentAttempt events
76-
refund_analytics_topic = "topic" # Kafka topic to be used for Refund events
77-
api_logs_topic = "topic" # Kafka topic to be used for incoming api events
78-
connector_logs_topic = "topic" # Kafka topic to be used for connector api events
79-
outgoing_webhook_logs_topic = "topic" # Kafka topic to be used for outgoing webhook events
80-
dispute_analytics_topic = "topic" # Kafka topic to be used for Dispute events
81-
audit_events_topic = "topic" # Kafka topic to be used for Payment Audit events
82-
payout_analytics_topic = "topic" # Kafka topic to be used for Payouts and PayoutAttempt events
83-
consolidated_events_topic = "topic" # Kafka topic to be used for Consolidated events
84-
authentication_analytics_topic = "topic" # Kafka topic to be used for Authentication events
85-
fraud_check_analytics_topic = "topic" # Kafka topic to be used for Fraud Check events
73+
brokers = [] # Kafka broker urls for bootstrapping the client
74+
intent_analytics_topic = "topic" # Kafka topic to be used for PaymentIntent events
75+
attempt_analytics_topic = "topic" # Kafka topic to be used for PaymentAttempt events
76+
refund_analytics_topic = "topic" # Kafka topic to be used for Refund events
77+
api_logs_topic = "topic" # Kafka topic to be used for incoming api events
78+
connector_logs_topic = "topic" # Kafka topic to be used for connector api events
79+
outgoing_webhook_logs_topic = "topic" # Kafka topic to be used for outgoing webhook events
80+
dispute_analytics_topic = "topic" # Kafka topic to be used for Dispute events
81+
audit_events_topic = "topic" # Kafka topic to be used for Payment Audit events
82+
payout_analytics_topic = "topic" # Kafka topic to be used for Payouts and PayoutAttempt events
83+
consolidated_events_topic = "topic" # Kafka topic to be used for Consolidated events
84+
authentication_analytics_topic = "topic" # Kafka topic to be used for Authentication events
85+
fraud_check_analytics_topic = "topic" # Kafka topic to be used for Fraud Check events
8686

8787
# File storage configuration
8888
[file_storage]
@@ -190,6 +190,7 @@ redis_expiry = 900 # Redis expiry time in milliseconds
190190
[proxy]
191191
http_url = "http://proxy_http_url" # Outgoing proxy http URL to proxy the HTTP traffic
192192
https_url = "https://proxy_https_url" # Outgoing proxy https URL to proxy the HTTPS traffic
193+
bypass_proxy_urls = [] # A list of URLs that should bypass the proxy
193194

194195
# Redis credentials
195196
[redis]
@@ -210,8 +211,8 @@ unresponsive_timeout = 10 # An optional timeout for Unresponsive commands in sec
210211
max_feed_count = 200 # The maximum number of frames that will be fed to a socket before flushing.
211212
cluster_enabled = true # boolean
212213
cluster_urls = [
213-
"redis.cluster.uri-1:8080",
214-
"redis.cluster.uri-2:4115",
214+
"redis.cluster.uri-1:8080",
215+
"redis.cluster.uri-2:4115",
215216
] # List of redis cluster urls
216217

217218
# Replica SQL data store credentials
@@ -295,7 +296,7 @@ enabled = false
295296
global_tenant = { schema = "public", redis_key_prefix = "" }
296297

297298
[multitenancy.tenants]
298-
public = { name = "hyperswitch", base_url = "http://localhost:8080", schema = "public", redis_key_prefix = "", clickhouse_database = "default"}
299+
public = { name = "hyperswitch", base_url = "http://localhost:8080", schema = "public", redis_key_prefix = "", clickhouse_database = "default" }
299300

300301
[user_auth_methods]
301302
encryption_key = "user_auth_table_encryption_key" # Encryption key used for encrypting data in user_authentication_methods table

crates/api_models/src/enums.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ pub enum FieldType {
470470
DropDown { options: Vec<String> },
471471
UserDateOfBirth,
472472
UserVpaId,
473+
LanguagePreference { options: Vec<String> },
473474
}
474475

475476
impl FieldType {
@@ -556,6 +557,7 @@ impl PartialEq for FieldType {
556557
) => options_self.eq(options_other),
557558
(Self::UserDateOfBirth, Self::UserDateOfBirth) => true,
558559
(Self::UserVpaId, Self::UserVpaId) => true,
560+
(Self::LanguagePreference { .. }, Self::LanguagePreference { .. }) => true,
559561
_unused => false,
560562
}
561563
}

crates/api_models/src/payments.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2785,6 +2785,7 @@ pub struct SwishQrData {}
27852785
pub struct MifinityData {
27862786
#[schema(value_type = Date)]
27872787
pub date_of_birth: Secret<Date>,
2788+
pub language_preference: Option<String>,
27882789
}
27892790

27902791
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]

0 commit comments

Comments
 (0)