Skip to content

Latest commit

 

History

History
62 lines (57 loc) · 2.03 KB

rule.md

File metadata and controls

62 lines (57 loc) · 2.03 KB

Rule service API

This service contains methods related to fees, limits and other rules.

rule.condition.check

Check for limits/fraud and return applicable tier (local) fee * parameters * transferType - type of transfer (push, pending, bulk, and so on) * destinationURL - recipient URL * sourceURL - sender URL * sourceAmount | * destinationAmount - the source or the destination amount of the transfer * currency - the respective currency of the amount * result * destinationAmount | * sourceAmount - the destination or source amount, including fees/rates * currency - the amount currency * errors * rule.unknownDestination - receiver not found * rule.unknownSource - sender not found * rule.invalidAmount * rule.invalidCurrency * rule.fraudViolation
* rule.limitViolation

rule.push.execute

Instruct the rule service that a transfer will be executed * parameters * tranferType - type of transfer (push, pending, bulk, etc.) * destinationURL - recipient URL * sourceURL - sender URL
* sourceAmount - source amount * destinationAmount - the destination amount of the transfer * sourceCurrency - the source currency of the amount * destinationCurrency - the destination currency of the amount * transferId - a unique identifier of the transfer * result * * errors * rule.unknownDestination - receiver not found * rule.unknownSource - sender not found * rule.invalidSourceAmount * rule.invalidSourceCurrency * rule.invalidDestinationAmount * rule.invalidDestinationCurrency * rule.invalidTransferId * rule.duplicatedTransferId * rule.fraudViolation
* rule.limitViolation

rule.push.reverse

Instruct the rule service that a transfer with a token reference is roll backed * parameters * TransferId - a unique identifier of the transfer * result * * errors * rule.invalidTransferId * rule.alreadyReversed

rule.voucher.check

Check voucher's applicability