Skip to content

Commit 5513318

Browse files
Sayak BhattacharyaSayak Bhattacharya
authored andcommitted
Merge branch 'main' into vantiv/mac/code
1 parent 03df037 commit 5513318

File tree

88 files changed

+1267
-123
lines changed

Some content is hidden

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

88 files changed

+1267
-123
lines changed

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-reference/v1/openapi_spec_v1.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7972,6 +7972,7 @@
79727972
"void_failed",
79737973
"auto_refunded",
79747974
"partial_charged",
7975+
"partially_authorized",
79757976
"partial_charged_and_chargeable",
79767977
"unresolved",
79777978
"pending",
@@ -14810,6 +14811,7 @@
1481014811
"payment_cancelled",
1481114812
"payment_cancelled_post_capture",
1481214813
"payment_authorized",
14814+
"payment_partially_authorized",
1481314815
"payment_captured",
1481414816
"payment_expired",
1481514817
"action_required",
@@ -16665,6 +16667,7 @@
1666516667
"requires_capture",
1666616668
"partially_captured",
1666716669
"partially_captured_and_capturable",
16670+
"partially_authorized_and_requires_capture",
1666816671
"conflicted",
1666916672
"expired"
1667016673
]
@@ -22697,6 +22700,11 @@
2269722700
"format": "date-time",
2269822701
"description": "Date the payer placed the order.",
2269922702
"nullable": true
22703+
},
22704+
"enable_partial_authorization": {
22705+
"type": "boolean",
22706+
"description": "Allow partial authorization for this payment",
22707+
"nullable": true
2270022708
}
2270122709
}
2270222710
},
@@ -23165,6 +23173,11 @@
2316523173
"format": "date-time",
2316623174
"description": "Date the payer placed the order.",
2316723175
"nullable": true
23176+
},
23177+
"enable_partial_authorization": {
23178+
"type": "boolean",
23179+
"description": "Allow partial authorization for this payment",
23180+
"nullable": true
2316823181
}
2316923182
}
2317023183
},
@@ -23766,6 +23779,11 @@
2376623779
"type": "string",
2376723780
"description": "Contains whole connector response",
2376823781
"nullable": true
23782+
},
23783+
"enable_partial_authorization": {
23784+
"type": "boolean",
23785+
"description": "Allow partial authorization for this payment",
23786+
"nullable": true
2376923787
}
2377023788
}
2377123789
},
@@ -24524,6 +24542,11 @@
2452424542
"format": "date-time",
2452524543
"description": "Date the payer placed the order.",
2452624544
"nullable": true
24545+
},
24546+
"enable_partial_authorization": {
24547+
"type": "boolean",
24548+
"description": "Allow partial authorization for this payment",
24549+
"nullable": true
2452724550
}
2452824551
},
2452924552
"additionalProperties": false
@@ -25151,6 +25174,11 @@
2515125174
"type": "string",
2515225175
"description": "Contains whole connector response",
2515325176
"nullable": true
25177+
},
25178+
"enable_partial_authorization": {
25179+
"type": "boolean",
25180+
"description": "Allow partial authorization for this payment",
25181+
"nullable": true
2515425182
}
2515525183
}
2515625184
},
@@ -25752,6 +25780,11 @@
2575225780
"format": "date-time",
2575325781
"description": "Date the payer placed the order.",
2575425782
"nullable": true
25783+
},
25784+
"enable_partial_authorization": {
25785+
"type": "boolean",
25786+
"description": "Allow partial authorization for this payment",
25787+
"nullable": true
2575525788
}
2575625789
}
2575725790
},

api-reference/v2/openapi_spec_v2.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4909,6 +4909,7 @@
49094909
"void_failed",
49104910
"auto_refunded",
49114911
"partial_charged",
4912+
"partially_authorized",
49124913
"partial_charged_and_chargeable",
49134914
"unresolved",
49144915
"pending",
@@ -10786,6 +10787,7 @@
1078610787
"payment_cancelled",
1078710788
"payment_cancelled_post_capture",
1078810789
"payment_authorized",
10790+
"payment_partially_authorized",
1078910791
"payment_captured",
1079010792
"payment_expired",
1079110793
"action_required",
@@ -12753,6 +12755,7 @@
1275312755
"requires_capture",
1275412756
"partially_captured",
1275512757
"partially_captured_and_capturable",
12758+
"partially_authorized_and_requires_capture",
1275612759
"conflicted",
1275712760
"expired"
1275812761
]

config/config.example.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,12 +1154,18 @@ url = "http://localhost:8080" # Open Router URL
11541154
base_url = "http://localhost:8000" # Unified Connector Service Base URL
11551155
connection_timeout = 10 # Connection Timeout Duration in Seconds
11561156

1157+
[grpc_client.recovery_decider_client] # Revenue recovery client base url
1158+
base_url = "http://127.0.0.1:8080" #Base URL
1159+
11571160
[billing_connectors_invoice_sync]
11581161
billing_connectors_which_requires_invoice_sync_call = "recurly" # List of billing connectors which has invoice sync api call
11591162

11601163
[revenue_recovery]
1161-
monitoring_threshold_in_seconds = 2592000 # 30*24*60*60 secs , threshold for monitoring the retry system
1162-
retry_algorithm_type = "cascading" # type of retry algorithm
1164+
monitoring_threshold_in_seconds = 60 # 60 secs , threshold for monitoring the retry system
1165+
retry_algorithm_type = "cascading" # type of retry algorithm
1166+
1167+
[revenue_recovery.recovery_timestamp] # Timestamp configuration for Revenue Recovery
1168+
initial_timestamp_in_hours = 1 # number of hours added to start time for Decider service of Revenue Recovery
11631169

11641170
[clone_connector_allowlist]
11651171
merchant_ids = "merchant_ids" # Comma-separated list of allowed merchant IDs

config/deployments/env_specific.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ host = "localhost" # Client Host
354354
port = 7000 # Client Port
355355
service = "dynamo" # Service name
356356

357+
[grpc_client.recovery_decider_client] # Revenue recovery client base url
358+
base_url = "http://127.0.0.1:8080" #Base URL
359+
357360
[theme.storage]
358361
file_storage_backend = "aws_s3" # Theme storage backend to be used
359362

@@ -382,6 +385,9 @@ connector_names = "connector_names" # Comma-separated list of allowed connec
382385
base_url = "http://localhost:8000" # Unified Connector Service Base URL
383386
connection_timeout = 10 # Connection Timeout Duration in Seconds
384387

388+
[revenue_recovery.recovery_timestamp] # Timestamp configuration for Revenue Recovery
389+
initial_timestamp_in_hours = 1 # number of hours added to start time for Decider service of Revenue Recovery
390+
385391
[chat]
386392
enabled = false # Enable or disable chat features
387393
hyperswitch_ai_host = "http://0.0.0.0:8000" # Hyperswitch ai workflow host

config/deployments/integration_test.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ billing_connectors_which_requires_invoice_sync_call = "recurly"
820820

821821

822822
[revenue_recovery]
823-
monitoring_threshold_in_seconds = 2592000
823+
monitoring_threshold_in_seconds = 60
824824
retry_algorithm_type = "cascading"
825825

826826
[authentication_providers]

config/deployments/production.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,8 +836,8 @@ click_to_pay = {connector_list = "adyen, cybersource, trustpay"}
836836

837837

838838
[revenue_recovery]
839-
monitoring_threshold_in_seconds = 2592000
839+
monitoring_threshold_in_seconds = 60
840840
retry_algorithm_type = "cascading"
841841

842842
[list_dispute_supported_connectors]
843-
connector_list = "worldpayvantiv"
843+
connector_list = "worldpayvantiv"

config/deployments/sandbox.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ billing_connectors_which_requires_invoice_sync_call = "recurly"
841841
click_to_pay = {connector_list = "adyen, cybersource, trustpay"}
842842

843843
[revenue_recovery]
844-
monitoring_threshold_in_seconds = 2592000
844+
monitoring_threshold_in_seconds = 60
845845
retry_algorithm_type = "cascading"
846846

847847
[list_dispute_supported_connectors]

config/development.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,9 @@ host = "localhost"
12281228
port = 8000
12291229
service = "dynamo"
12301230

1231+
[grpc_client.recovery_decider_client] # Revenue recovery client base url
1232+
base_url = "http://127.0.0.1:8080" #Base URL
1233+
12311234
[theme.storage]
12321235
file_storage_backend = "file_system" # Theme storage backend to be used
12331236

@@ -1264,9 +1267,12 @@ ucs_only_connectors = [
12641267
]
12651268

12661269
[revenue_recovery]
1267-
monitoring_threshold_in_seconds = 2592000
1270+
monitoring_threshold_in_seconds = 60
12681271
retry_algorithm_type = "cascading"
12691272

1273+
[revenue_recovery.recovery_timestamp]
1274+
initial_timestamp_in_hours = 1
1275+
12701276
[clone_connector_allowlist]
12711277
merchant_ids = "merchant_123, merchant_234" # Comma-separated list of allowed merchant IDs
12721278
connector_names = "stripe, adyen" # Comma-separated list of allowed connector names

config/docker_compose.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ hyperswitch_ai_host = "http://0.0.0.0:8000"
11561156
click_to_pay = {connector_list = "adyen, cybersource, trustpay"}
11571157

11581158
[revenue_recovery]
1159-
monitoring_threshold_in_seconds = 2592000 # threshold for monitoring the retry system
1159+
monitoring_threshold_in_seconds = 60 # threshold for monitoring the retry system
11601160
retry_algorithm_type = "cascading" # type of retry algorithm
11611161

11621162
[clone_connector_allowlist]

0 commit comments

Comments
 (0)