| Required role: | Admin |
| All Verbs | /test/stripe/onceoff |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:collection';
class TestStripeOnceOff implements IConvertible
{
bool? Sandbox;
String? WebhookEndpoint;
int? Id;
TestStripeOnceOff({this.Sandbox,this.WebhookEndpoint,this.Id});
TestStripeOnceOff.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Sandbox = json['Sandbox'];
WebhookEndpoint = json['WebhookEndpoint'];
Id = json['Id'];
return this;
}
Map<String, dynamic> toJson() => {
'Sandbox': Sandbox,
'WebhookEndpoint': WebhookEndpoint,
'Id': Id
};
getTypeName() => "TestStripeOnceOff";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'TestStripeOnceOff': TypeInfo(TypeOf.Class, create:() => TestStripeOnceOff()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /test/stripe/onceoff HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Sandbox":false,"WebhookEndpoint":"String","Id":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{}