| GET,POST | /payment_webhook/{payment_target}/{payment_run_mode}/{webhook_callback} | Paiements : webhooks - retour des formulaires de règlements |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
/**
* Paiements : webhooks - retour des formulaires de règlements
*/
@Api(Description="Paiements : webhooks - retour des formulaires de règlements")
public static class payment_webhook
{
public eapi_payment_target_enum payment_target = null;
public eapi_payment_run_mode_enum payment_run_mode = null;
public String webhook_callback = null;
public String type = null;
public eapi_payment_target_enum getPaymentTarget() { return payment_target; }
public payment_webhook setPaymentTarget(eapi_payment_target_enum value) { this.payment_target = value; return this; }
public eapi_payment_run_mode_enum getPaymentRunMode() { return payment_run_mode; }
public payment_webhook setPaymentRunMode(eapi_payment_run_mode_enum value) { this.payment_run_mode = value; return this; }
public String getWebhookCallback() { return webhook_callback; }
public payment_webhook setWebhookCallback(String value) { this.webhook_callback = value; return this; }
public String getType() { return type; }
public payment_webhook setType(String value) { this.type = value; return this; }
}
public static enum eapi_payment_target_enum
{
Labanquepostale,
Paybox,
Milliet;
}
public static enum eapi_payment_run_mode_enum
{
Test,
Live,
ForceLive;
}
}
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_webhook/{payment_target}/{payment_run_mode}/{webhook_callback} HTTP/1.1
Host: milliet.io
Accept: application/json
Content-Type: application/json
Content-Length: length
{"payment_target":"LABANQUEPOSTALE","payment_run_mode":"TEST","webhook_callback":"String","type":"String"}