POST | /payment/billmate/apisettings/test | Test Qvickly api settings | Test Qvickly api settings for the logged in company |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
@ValidateRequest(Validator="IsAuthenticated")
public static class TestQvicklyApiSettingsQuery implements ICompany
{
/**
* The company id, if empty will use the company id for the user you are logged in with.
*/
@ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
public UUID CompanyId = null;
/**
* The Qvickly Id
*/
@ApiMember(Description="The Qvickly Id")
public Integer Id = null;
/**
* The Qvickly secret
*/
@ApiMember(Description="The Qvickly secret")
public String Secret = null;
/**
* The Qvickly receiver email
*/
@ApiMember(Description="The Qvickly receiver email")
public String ReceiverEmail = null;
/**
* The Qvickly receiver firstname
*/
@ApiMember(Description="The Qvickly receiver firstname")
public String ReceiverFirstname = null;
/**
* The Qvickly receiver lastname
*/
@ApiMember(Description="The Qvickly receiver lastname")
public String ReceiverLastname = null;
public UUID getCompanyId() { return CompanyId; }
public TestQvicklyApiSettingsQuery setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getId() { return Id; }
public TestQvicklyApiSettingsQuery setId(Integer value) { this.Id = value; return this; }
public String getSecret() { return Secret; }
public TestQvicklyApiSettingsQuery setSecret(String value) { this.Secret = value; return this; }
public String getReceiverEmail() { return ReceiverEmail; }
public TestQvicklyApiSettingsQuery setReceiverEmail(String value) { this.ReceiverEmail = value; return this; }
public String getReceiverFirstname() { return ReceiverFirstname; }
public TestQvicklyApiSettingsQuery setReceiverFirstname(String value) { this.ReceiverFirstname = value; return this; }
public String getReceiverLastname() { return ReceiverLastname; }
public TestQvicklyApiSettingsQuery setReceiverLastname(String value) { this.ReceiverLastname = value; return this; }
}
public static class QvicklyApiSettingsTestResponse
{
/**
* If the settings works or not
*/
@ApiMember(Description="If the settings works or not")
public Boolean Success = null;
public Boolean isSuccess() { return Success; }
public QvicklyApiSettingsTestResponse setSuccess(Boolean value) { this.Success = value; return this; }
}
}
Java TestQvicklyApiSettingsQuery DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /payment/billmate/apisettings/test HTTP/1.1
Host: api.bokamera.se
Accept: application/json
Content-Type: application/json
Content-Length: length
{"CompanyId":"00000000-0000-0000-0000-000000000000","Id":0,"Secret":"String","ReceiverEmail":"String","ReceiverFirstname":"String","ReceiverLastname":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"Success":false}