Skip to content

Commit

Permalink
API - topic publish for btr product filing (#1896)
Browse files Browse the repository at this point in the history
Signed-off-by: Kial Jinnah <[email protected]>
  • Loading branch information
kialj876 authored Feb 7, 2025
1 parent d7951de commit 6d43ff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pay-api/src/pay_api/utils/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ class DisbursementMethod(Enum):
class Product(Enum):
"""Product."""

BTR = "BTR"
BUSINESS = "BUSINESS"
BUSINESS_SEARCH = "BUSINESS_SEARCH"
NRO = "NRO"
Expand Down
2 changes: 1 addition & 1 deletion pay-api/src/pay_api/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def get_topic_for_corp_type(corp_type: str):
if corp_type == CorpType.NRO.value:
return current_app.config.get("NAMEX_PAY_TOPIC")
product_code = CodeService.find_code_value_by_type_and_code(Code.CORP_TYPE.value, corp_type).get("product")
if product_code in [Product.BUSINESS.value, Product.BUSINESS_SEARCH.value]:
if product_code in [Product.BUSINESS.value, Product.BUSINESS_SEARCH.value, Product.BTR.value]:
return current_app.config.get("BUSINESS_PAY_TOPIC")
if product_code == Product.STRR.value:
return current_app.config.get("STRR_PAY_TOPIC")
Expand Down

0 comments on commit 6d43ff6

Please sign in to comment.