digitaluapi

<back to all web services

PaymentActionsEdit

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
PUT/payment_actions/{Id}
import 'package:servicestack/servicestack.dart';

class PaymentActionsEditResponse implements IConvertible
{
    // @DataMember(Order=1)
    int? Id;

    // @DataMember(Order=2)
    int? TenantsId;

    // @DataMember(Order=3)
    int? ActionsId;

    // @DataMember(Order=5)
    ResponseStatus? ResponseStatus;

    PaymentActionsEditResponse({this.Id,this.TenantsId,this.ActionsId,this.ResponseStatus});
    PaymentActionsEditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        TenantsId = json['TenantsId'];
        ActionsId = json['ActionsId'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'TenantsId': TenantsId,
        'ActionsId': ActionsId,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "PaymentActionsEditResponse";
    TypeContext? context = _ctx;
}

// @DataContract
class PaymentActionsEdit implements IConvertible
{
    // @DataMember(Order=1)
    // @Validate(Validator="NotNull")
    int? Id;

    // @DataMember(Order=2)
    // @Validate(Validator="NotNull")
    int? TenantsId;

    // @DataMember(Order=3)
    // @Validate(Validator="NotNull")
    int? ActionsId;

    PaymentActionsEdit({this.Id,this.TenantsId,this.ActionsId});
    PaymentActionsEdit.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        TenantsId = json['TenantsId'];
        ActionsId = json['ActionsId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'TenantsId': TenantsId,
        'ActionsId': ActionsId
    };

    getTypeName() => "PaymentActionsEdit";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
    'PaymentActionsEditResponse': TypeInfo(TypeOf.Class, create:() => PaymentActionsEditResponse()),
    'PaymentActionsEdit': TypeInfo(TypeOf.Class, create:() => PaymentActionsEdit()),
});

Dart PaymentActionsEdit DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /payment_actions/{Id} HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Id":0,"TenantsId":0,"ActionsId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Id":0,"TenantsId":0,"ActionsId":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}