POST | /payment/stripe/v1/webhook | Webhook for Stripe checkout 1.0 | Webhook for Stripe checkout 1.0 |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class StripeWebhook extends Event
{
public String RawBody = null;
public HashMap<String,String> Headers = null;
public String getRawBody() { return RawBody; }
public StripeWebhook setRawBody(String value) { this.RawBody = value; return this; }
public HashMap<String,String> getHeaders() { return Headers; }
public StripeWebhook setHeaders(HashMap<String,String> value) { this.Headers = value; return this; }
}
public static class Event extends StripeEntity_1<Event> implements IHasId, IHasObject
{
public String Id = null;
public String Object = null;
public String Account = null;
public String ApiVersion = null;
public Date Created = null;
public EventData Data = null;
public Boolean Livemode = null;
public Long PendingWebhooks = null;
public EventRequest Request = null;
public String Type = null;
public String getId() { return Id; }
public Event setId(String value) { this.Id = value; return this; }
public String getObject() { return Object; }
public Event setObject(String value) { this.Object = value; return this; }
public String getAccount() { return Account; }
public Event setAccount(String value) { this.Account = value; return this; }
public String getApiVersion() { return ApiVersion; }
public Event setApiVersion(String value) { this.ApiVersion = value; return this; }
public Date getCreated() { return Created; }
public Event setCreated(Date value) { this.Created = value; return this; }
public EventData getData() { return Data; }
public Event setData(EventData value) { this.Data = value; return this; }
public Boolean isLivemode() { return Livemode; }
public Event setLivemode(Boolean value) { this.Livemode = value; return this; }
public Long getPendingWebhooks() { return PendingWebhooks; }
public Event setPendingWebhooks(Long value) { this.PendingWebhooks = value; return this; }
public EventRequest getRequest() { return Request; }
public Event setRequest(EventRequest value) { this.Request = value; return this; }
public String getType() { return Type; }
public Event setType(String value) { this.Type = value; return this; }
}
public static class StripeEntity_1<T> extends StripeEntity
{
}
public static class StripeEntity implements IStripeEntity
{
}
public static class EventData extends StripeEntity_1<EventData>
{
public IHasObject Object = null;
public Object PreviousAttributes = null;
public IHasObject getObject() { return Object; }
public EventData setObject(IHasObject value) { this.Object = value; return this; }
public Object getPreviousAttributes() { return PreviousAttributes; }
public EventData setPreviousAttributes(Object value) { this.PreviousAttributes = value; return this; }
}
public static interface IHasObject
{
public String Object = null;
}
public static class EventRequest extends StripeEntity_1<EventRequest> implements IHasId
{
public String Id = null;
public String IdempotencyKey = null;
public String getId() { return Id; }
public EventRequest setId(String value) { this.Id = value; return this; }
public String getIdempotencyKey() { return IdempotencyKey; }
public EventRequest setIdempotencyKey(String value) { this.IdempotencyKey = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /payment/stripe/v1/webhook HTTP/1.1
Host: testapi.bokamera.se
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{Unable to show example output for type 'StripeWebhook' using the custom 'other' filter}Exception has been thrown by the target of an invocation.
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {}