Money Out

using DirectScale.Disco.Extension.Hooks.Merchants.MoneyOut;

SaveAdjustments

public class ACHUS : IHook<SaveAdjustmentsHookRequest, SaveAdjustmentsHookResponse>
{
  public SaveAdjustments() { }
  
  public SaveAdjustmentsHookResponse Invoke(SaveAdjustmentsHookRequest request, Func<SaveAdjustmentsHookRequest, SaveAdjustmentsHookResponse> func)
  {
    return func(request);
  }
}
services.AddTransient<IHook<SaveAdjustmentsHookRequest, SaveAdjustmentsHookResponse>();
{
  "Adjustments": null,
  "SingleAdjustmentOnly": false
}
{
  "Adjustments": null
}


ACH Hooks

using DirectScale.Disco.Extension.Hooks.Merchants.MoneyOut.Ach;

The following Hooks are specific to ACH (Automated Clearing House) payment integration.


AchUS

Set up ACH for the United States (US).

public class AchUS: IHook<AchUSFileWriterHookRequest, AchUSFileWriterHookResponse>
{
  public AchUS() { }
  
  public AchUSFileWriterHookResponse Invoke(AchUSFileWriterHookRequest request, Func<AchUSFileWriterHookRequest, AchUSFileWriterHookResponse> func)
  {
    return func(request);
  }
}
services.AddTransient<IHook<AchUSFileWriterHookRequest, AchUSFileWriterHookResponse>, ACHUS>();
{
  "Payments": null
}
{
  "BatchFileData": "AA=="
}

AchJP

Set up ACH for Japan (JP).

public class AchJP: IHook<AchJPFileWriterHookRequest, AchJPFileWriterHookResponse>
{
  public AchJP() { }
  
  public AchJPFileWriterHookResponse Invoke(AchJPFileWriterHookRequest request, Func<AchJPFileWriterHookRequest, AchJPFileWriterHookResponse> func)
  {
    return func(request);
  }
}
services.AddTransient<IHook<AchJPFileWriterHookRequest, AchJPFileWriterHookResponse>, AchJP>();
{
  "Payments": null
}
{
  "BatchFileData": "AA=="
}

AchTW

Set up ACH for Taiwan (TW).

public class AchTW: IHook<AchTWFileWriterHookRequest, AchTWFileWriterHookResponse>
{
  public AchTW() { }
  
  public AchTWFileWriterHookResponse Invoke(AchTWFileWriterHookRequest request, Func<AchTWFileWriterHookRequest, AchTWFileWriterHookResponse> func)
  {
    return func(request);
  }
}
services.AddTransient<IHook<AchTWFileWriterHookRequest, AchTWFileWriterHookResponse>, AchTW>();
{
  "Payments": null
}
{
  "BatchFileData": "AA=="
}

Did this page help you?