Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-barraza committed Jan 16, 2024
1 parent 29e2180 commit b78db55
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pay-api/src/pay_api/services/payment_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ def _publish_queue_message(self, payload):
f'Notification to Queue failed for the Account Mailer : {payload}.',
level='error')

def _create_account_event_payload(self, event_type: str, nsf_object: dict = None,
def create_account_event_payload(self, event_type: str, nsf_object: dict = None,
include_pay_info: bool = False):
"""Return event payload for account."""
payload: Dict[str, any] = {
Expand All @@ -794,8 +794,6 @@ def _create_account_event_payload(self, event_type: str, nsf_object: dict = None
payload['data']['paymentMethodDescription'] = nsf_object.payment.payment_method_code
payload['data']['filingIdentifier'] = nsf_object.filing_identifier
payload['data']['receiptNumber'] = nsf_object.receipt_number


if event_type == MessageType.PAD_ACCOUNT_CREATE.value:
payload['data']['padTosAcceptedBy'] = self.pad_tos_accepted_by
if include_pay_info:
Expand Down Expand Up @@ -832,7 +830,7 @@ def unlock_frozen_accounts(payment: Payment, filing_identifier: str, receipt_num
MessageType.NSF_UNLOCK_ACCOUNT.value,
nsf_object=nsf_object
)

try:
publish_response(payload=payload,
client_name=current_app.config['NATS_ACCOUNT_CLIENT_NAME'],
Expand Down

0 comments on commit b78db55

Please sign in to comment.