Skip to content

Settlement Processing #325

@StuartFerguson

Description

@StuartFerguson

Need a scheduled task to run once a day and a powershell script to do the following

Get a client access token (securityServiceUrl/connect/token)
Get a list of merchants (baseurl/api/v2/estates/estateId/merchants) where estateId is the parameter passed in
for each merchant in the returned list
{
make a post to perform the settlement (baseUrl/api/estates/estateId/settlements/pendingSettlementDate/merchants/merchantId)
estate id is the parameter passed in to the script
merchantid is the current merchant
pendingSettlementDate is current date
}

The script will accept 5 mandatory parameters

  • estateId
  • baseUrl
  • securityServiceUrl
  • clientid
  • clientsecret

Any questions ask.

Is there a way to build some kind of unit test for this script ?

As part of the job can you build me an xml file that I can import to set the task up

Metadata

Metadata

Labels

taskTasks and work items

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions