| 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 .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<UpdateRecurringPaymentCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<ExpMonth>String</ExpMonth>
<ExpYear>String</ExpYear>
<Id>0</Id>
<PanLastFour>String</PanLastFour>
<PaymentTokenId>String</PaymentTokenId>
<Phone>String</Phone>
<Token>String</Token>
<Via>String</Via>
</UpdateRecurringPaymentCardRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <UpdateRecurringPaymentCardResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Effect>String</Effect> <Id>0</Id> <Message>String</Message> <NextPayment>0001-01-01T00:00:00</NextPayment> <Ok>false</Ok> <PriorStatus>String</PriorStatus> <Resumed>false</Resumed> <Status>String</Status> <StatusCode>0</StatusCode> </UpdateRecurringPaymentCardResult>