| GET,POST | /payment_webhook/{payment_target}/{payment_run_mode}/{webhook_callback} | Paiements : webhooks - retour des formulaires de règlements |
|---|
import 'package:servicestack/servicestack.dart';
enum eapi_payment_target_enum
{
LABANQUEPOSTALE,
PAYBOX,
MILLIET,
}
enum eapi_payment_run_mode_enum
{
TEST,
LIVE,
FORCE_LIVE,
}
/**
* Paiements : webhooks - retour des formulaires de règlements
*/
// @Api(Description="Paiements : webhooks - retour des formulaires de règlements")
class payment_webhook implements IConvertible
{
eapi_payment_target_enum? payment_target;
eapi_payment_run_mode_enum? payment_run_mode;
String? webhook_callback;
String? type;
payment_webhook({this.payment_target,this.payment_run_mode,this.webhook_callback,this.type});
payment_webhook.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
payment_target = JsonConverters.fromJson(json['payment_target'],'eapi_payment_target_enum',context!);
payment_run_mode = JsonConverters.fromJson(json['payment_run_mode'],'eapi_payment_run_mode_enum',context!);
webhook_callback = json['webhook_callback'];
type = json['type'];
return this;
}
Map<String, dynamic> toJson() => {
'payment_target': JsonConverters.toJson(payment_target,'eapi_payment_target_enum',context!),
'payment_run_mode': JsonConverters.toJson(payment_run_mode,'eapi_payment_run_mode_enum',context!),
'webhook_callback': webhook_callback,
'type': type
};
getTypeName() => "payment_webhook";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'milliet.io', types: <String, TypeInfo> {
'eapi_payment_target_enum': TypeInfo(TypeOf.Enum, enumValues:eapi_payment_target_enum.values),
'eapi_payment_run_mode_enum': TypeInfo(TypeOf.Enum, enumValues:eapi_payment_run_mode_enum.values),
'payment_webhook': TypeInfo(TypeOf.Class, create:() => payment_webhook()),
});
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"}