PUT | /payment/payson/v1/updatestatus | Update current status on booking from purchase callback for payson checkout 1.0. Will only update if the status has changed. | Payson checkout 1.0 |
---|
import 'package:servicestack/servicestack.dart';
class PaysonCheckout1UpdateStatus implements ICompany, IConvertible
{
/**
* The company id, if empty will use the company id for the user you are logged in with.
*/
// @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
String? CompanyId;
/**
* The booking id.
*/
// @ApiMember(Description="The booking id.")
int? BookingId;
/**
* The payment token.
*/
// @ApiMember(Description="The payment token.")
String? Token;
PaysonCheckout1UpdateStatus({this.CompanyId,this.BookingId,this.Token});
PaysonCheckout1UpdateStatus.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CompanyId = json['CompanyId'];
BookingId = json['BookingId'];
Token = json['Token'];
return this;
}
Map<String, dynamic> toJson() => {
'CompanyId': CompanyId,
'BookingId': BookingId,
'Token': Token
};
getTypeName() => "PaysonCheckout1UpdateStatus";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: <String, TypeInfo> {
'PaysonCheckout1UpdateStatus': TypeInfo(TypeOf.Class, create:() => PaysonCheckout1UpdateStatus()),
});
Dart PaysonCheckout1UpdateStatus DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /payment/payson/v1/updatestatus HTTP/1.1
Host: api.bokamera.se
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"CompanyId":"00000000-0000-0000-0000-000000000000","BookingId":0,"Token":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {}