File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ def _transaction_id(s: Optional[str]) -> str:
385385 raise ValueError
386386
387387
388- validate_report_schema = Schema (
388+ _validate_report_schema = Schema (
389389 {
390390 "chargeback_code" : str ,
391391 "ip_address" : _ip_address ,
@@ -398,7 +398,7 @@ def _transaction_id(s: Optional[str]) -> str:
398398)
399399
400400
401- def validate_at_least_one_identifier_field (report ):
401+ def _validate_at_least_one_identifier_field (report ):
402402 optional_fields = ["ip_address" , "maxmind_id" , "minfraud_id" , "transaction_id" ]
403403 if not any (field in report for field in optional_fields ):
404404 raise ValueError (
@@ -409,6 +409,6 @@ def validate_at_least_one_identifier_field(report):
409409
410410def validate_report (report ):
411411 """Validate minFraud Transaction Report fields."""
412- validate_report_schema (report )
413- validate_at_least_one_identifier_field (report )
412+ _validate_report_schema (report )
413+ _validate_at_least_one_identifier_field (report )
414414 return True
You can’t perform that action at this time.
0 commit comments