| POST,OPTIONS | /v1/dispatch/public/pickup/card-confirm |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DispatchPickupCardConfirmRequest
{
public String BookToken = null;
public String SetupIntentId = null;
public String getBookToken() { return BookToken; }
public DispatchPickupCardConfirmRequest setBookToken(String value) { this.BookToken = value; return this; }
public String getSetupIntentId() { return SetupIntentId; }
public DispatchPickupCardConfirmRequest setSetupIntentId(String value) { this.SetupIntentId = value; return this; }
}
public static class DispatchPickupCardConfirmResponse
{
public String Code = null;
public String CardLast4 = null;
public Boolean Ok = null;
public ResponseStatus ResponseStatus = null;
public String getCode() { return Code; }
public DispatchPickupCardConfirmResponse setCode(String value) { this.Code = value; return this; }
public String getCardLast4() { return CardLast4; }
public DispatchPickupCardConfirmResponse setCardLast4(String value) { this.CardLast4 = value; return this; }
public Boolean isOk() { return Ok; }
public DispatchPickupCardConfirmResponse setOk(Boolean value) { this.Ok = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public DispatchPickupCardConfirmResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java DispatchPickupCardConfirmRequest 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.
POST /v1/dispatch/public/pickup/card-confirm HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
BookToken: String,
SetupIntentId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Code: String,
CardLast4: String,
Ok: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}