| POST | /recurringPayments/card | ||
|---|---|---|---|
| POST | /recurringPayments/{Id}/card |
import 'package:servicestack/servicestack.dart';
class UpdateRecurringPaymentCardResult implements IConvertible
{
bool? ok;
int? id;
String? effect;
String? priorStatus;
String? status;
bool? resumed;
DateTime? nextPayment;
int? statusCode;
String? message;
UpdateRecurringPaymentCardResult({this.ok,this.id,this.effect,this.priorStatus,this.status,this.resumed,this.nextPayment,this.statusCode,this.message});
UpdateRecurringPaymentCardResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ok = json['ok'];
id = json['id'];
effect = json['effect'];
priorStatus = json['priorStatus'];
status = json['status'];
resumed = json['resumed'];
nextPayment = JsonConverters.fromJson(json['nextPayment'],'DateTime',context!);
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'ok': ok,
'id': id,
'effect': effect,
'priorStatus': priorStatus,
'status': status,
'resumed': resumed,
'nextPayment': JsonConverters.toJson(nextPayment,'DateTime',context!),
'statusCode': statusCode,
'message': message
};
getTypeName() => "UpdateRecurringPaymentCardResult";
TypeContext? context = _ctx;
}
class UpdateRecurringPaymentCardRequest implements IConvertible
{
int? id;
String? paymentTokenId;
String? phone;
String? token;
String? panLastFour;
String? expYear;
String? expMonth;
String? via;
UpdateRecurringPaymentCardRequest({this.id,this.paymentTokenId,this.phone,this.token,this.panLastFour,this.expYear,this.expMonth,this.via});
UpdateRecurringPaymentCardRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
paymentTokenId = json['paymentTokenId'];
phone = json['phone'];
token = json['token'];
panLastFour = json['panLastFour'];
expYear = json['expYear'];
expMonth = json['expMonth'];
via = json['via'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'paymentTokenId': paymentTokenId,
'phone': phone,
'token': token,
'panLastFour': panLastFour,
'expYear': expYear,
'expMonth': expMonth,
'via': via
};
getTypeName() => "UpdateRecurringPaymentCardRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'UpdateRecurringPaymentCardResult': TypeInfo(TypeOf.Class, create:() => UpdateRecurringPaymentCardResult()),
'UpdateRecurringPaymentCardRequest': TypeInfo(TypeOf.Class, create:() => UpdateRecurringPaymentCardRequest()),
});
Dart UpdateRecurringPaymentCardRequest DTOs
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 /recurringPayments/card HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id":0,"paymentTokenId":"String","phone":"String","token":"String","panLastFour":"String","expYear":"String","expMonth":"String","via":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ok":false,"id":0,"effect":"String","priorStatus":"String","status":"String","resumed":false,"nextPayment":"0001-01-01T00:00:00.0000000","statusCode":0,"message":"String"}