| Requires the role: | Admin |
| GET | /payouts/batches/{Id} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class PayoutBatchGetRequest
{
public Integer id = null;
public Integer getId() { return id; }
public PayoutBatchGetRequest setId(Integer value) { this.id = value; return this; }
}
public static class PayoutBatchGetResult
{
public IsbPayoutBatch batch = null;
public ArrayList<IsbPayoutBatchRow> rows = null;
public Integer statusCode = null;
public String message = null;
public IsbPayoutBatch getBatch() { return batch; }
public PayoutBatchGetResult setBatch(IsbPayoutBatch value) { this.batch = value; return this; }
public ArrayList<IsbPayoutBatchRow> getRows() { return rows; }
public PayoutBatchGetResult setRows(ArrayList<IsbPayoutBatchRow> value) { this.rows = value; return this; }
public Integer getStatusCode() { return statusCode; }
public PayoutBatchGetResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public PayoutBatchGetResult setMessage(String value) { this.message = value; return this; }
}
public static class IsbPayoutBatch
{
public Integer id = null;
public String batchType = null;
public String operationId = null;
public Date createdAt = null;
public Date dateOfPayment = null;
public Integer rowCount = null;
public Long totalAmount = null;
@StringLength(2147483647)
public String requestXml = null;
@StringLength(2147483647)
public String responseXml = null;
public String status = null;
public Integer getId() { return id; }
public IsbPayoutBatch setId(Integer value) { this.id = value; return this; }
public String getBatchType() { return batchType; }
public IsbPayoutBatch setBatchType(String value) { this.batchType = value; return this; }
public String getOperationId() { return operationId; }
public IsbPayoutBatch setOperationId(String value) { this.operationId = value; return this; }
public Date getCreatedAt() { return createdAt; }
public IsbPayoutBatch setCreatedAt(Date value) { this.createdAt = value; return this; }
public Date getDateOfPayment() { return dateOfPayment; }
public IsbPayoutBatch setDateOfPayment(Date value) { this.dateOfPayment = value; return this; }
public Integer getRowCount() { return rowCount; }
public IsbPayoutBatch setRowCount(Integer value) { this.rowCount = value; return this; }
public Long getTotalAmount() { return totalAmount; }
public IsbPayoutBatch setTotalAmount(Long value) { this.totalAmount = value; return this; }
public String getRequestXml() { return requestXml; }
public IsbPayoutBatch setRequestXml(String value) { this.requestXml = value; return this; }
public String getResponseXml() { return responseXml; }
public IsbPayoutBatch setResponseXml(String value) { this.responseXml = value; return this; }
public String getStatus() { return status; }
public IsbPayoutBatch setStatus(String value) { this.status = value; return this; }
}
public static class IsbPayoutBatchRow
{
public Integer id = null;
@References(IsbPayoutBatch.class)
public Integer batchId = null;
public Integer eventId = null;
public Integer eventOwnerId = null;
public String kennitala = null;
public String bankAccount = null;
public Long amount = null;
public String reference = null;
public String status = null;
public String errorCode = null;
public String errorText = null;
public Integer getId() { return id; }
public IsbPayoutBatchRow setId(Integer value) { this.id = value; return this; }
public Integer getBatchId() { return batchId; }
public IsbPayoutBatchRow setBatchId(Integer value) { this.batchId = value; return this; }
public Integer getEventId() { return eventId; }
public IsbPayoutBatchRow setEventId(Integer value) { this.eventId = value; return this; }
public Integer getEventOwnerId() { return eventOwnerId; }
public IsbPayoutBatchRow setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
public String getKennitala() { return kennitala; }
public IsbPayoutBatchRow setKennitala(String value) { this.kennitala = value; return this; }
public String getBankAccount() { return bankAccount; }
public IsbPayoutBatchRow setBankAccount(String value) { this.bankAccount = value; return this; }
public Long getAmount() { return amount; }
public IsbPayoutBatchRow setAmount(Long value) { this.amount = value; return this; }
public String getReference() { return reference; }
public IsbPayoutBatchRow setReference(String value) { this.reference = value; return this; }
public String getStatus() { return status; }
public IsbPayoutBatchRow setStatus(String value) { this.status = value; return this; }
public String getErrorCode() { return errorCode; }
public IsbPayoutBatchRow setErrorCode(String value) { this.errorCode = value; return this; }
public String getErrorText() { return errorText; }
public IsbPayoutBatchRow setErrorText(String value) { this.errorText = value; return this; }
}
}
Java PayoutBatchGetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /payouts/batches/{Id} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
batch:
{
id: 0,
batchType: String,
operationId: String,
createdAt: 0001-01-01,
dateOfPayment: 0001-01-01,
rowCount: 0,
totalAmount: 0,
requestXml: String,
responseXml: String,
status: String
},
rows:
[
{
id: 0,
batchId: 0,
eventId: 0,
eventOwnerId: 0,
kennitala: String,
bankAccount: String,
amount: 0,
reference: String,
status: String,
errorCode: String,
errorText: String
}
],
statusCode: 0,
message: String
}