Api reference
components.kyc.public.enums ¶
components.kyc.public.reimbursement_blocker ¶
BlockReimbursementsReason ¶
Bases: AlanBaseEnum
Reason why reimbursements are blocked for an entity.
ani_missing_justifications
class-attribute
instance-attribute
¶
ani_switch_overlapping
class-attribute
instance-attribute
¶
company_risk_rejected
class-attribute
instance-attribute
¶
pending_company_kyc
class-attribute
instance-attribute
¶
pending_company_risk_scoring
class-attribute
instance-attribute
¶
deactivate_reimbursement_blocker ¶
deactivate_reimbursement_blocker(
entity_identifier,
entity_identifier_type,
country,
reason,
commit=False,
)
Lift the active reimbursement blocker for an entity and reason.
Deactivates the matching active blocker (sets its ended_at).
Does nothing if no active blocker exists for this entity, country and reason.
Source code in components/kyc/subcomponents/reimbursement_blocker/public/actions.py
install_reimbursement_blocker ¶
install_reimbursement_blocker(
entity_identifier,
entity_identifier_type,
country,
reason,
block_from=None,
block_to=None,
save=True,
)
Block reimbursements for an entity and reason.
The entity is targeted by (entity_identifier, entity_identifier_type, country),
a single active blocker is enough to prevent reimbursements on its scope.
Idempotent: does nothing if the entity already has an active blocker
for the same reason and the same block_from / block_to span.