Execute approval action
Parameters
| ApprovalAPIInfo | A Struct that has Creator app info and approval type. |
|---|---|
| ApprovalStatus | Enum, status of the Approval. |
| actionComment | String, Comment for the Approval. |
| ApprovalSummary | Executing Action for the particular approval. |
| completionHandler | Approval summary detail will be returned in completion Handler. |
Example
ZCApprovalAPIService.executeApprovalAction(ofType: .approved, with: "Approval Message", inSummary: summary) { (result) in switch result { case .success(let action): print(action) tableView.reloadData() case .failure(let error): print(error) } }