digitaluapi

<back to all web services

PaymentPlansLookup

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
GET/payment_plans
import 'package:servicestack/servicestack.dart';
import 'dart:collection';

// @DataContract
class PaymentPlansLookup implements IConvertible
{
    // @DataMember(Order=2)
    int? TenantsId;

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

    // @DataMember(Order=4)
    DateTime? Date;

    // @DataMember(Order=5)
    int? MaxMonths;

    // @DataMember(Order=6)
    double? DiscountAmount;

    // @DataMember(Order=7)
    int? DiscountCurrenciesId;

    // @DataMember(Order=8)
    int? StatusCodesId;

    PaymentPlansLookup({this.TenantsId,this.ActionsId,this.Date,this.MaxMonths,this.DiscountAmount,this.DiscountCurrenciesId,this.StatusCodesId});
    PaymentPlansLookup.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        TenantsId = json['TenantsId'];
        ActionsId = json['ActionsId'];
        Date = JsonConverters.fromJson(json['Date'],'DateTime',context!);
        MaxMonths = json['MaxMonths'];
        DiscountAmount = JsonConverters.toDouble(json['DiscountAmount']);
        DiscountCurrenciesId = json['DiscountCurrenciesId'];
        StatusCodesId = json['StatusCodesId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'TenantsId': TenantsId,
        'ActionsId': ActionsId,
        'Date': JsonConverters.toJson(Date,'DateTime',context!),
        'MaxMonths': MaxMonths,
        'DiscountAmount': DiscountAmount,
        'DiscountCurrenciesId': DiscountCurrenciesId,
        'StatusCodesId': StatusCodesId
    };

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

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

Dart PaymentPlansLookup DTOs

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

HTTP + JSV

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

GET /payment_plans HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

[
	{
		TenantsId: 0,
		ActionsId: 0,
		Date: 0001-01-01,
		MaxMonths: 0,
		DiscountAmount: 0,
		DiscountCurrenciesId: 0,
		StatusCodesId: 0,
		ResponseStatus: 
		{
			ErrorCode: String,
			Message: String,
			StackTrace: String,
			Errors: 
			[
				{
					ErrorCode: String,
					FieldName: String,
					Message: String,
					Meta: 
					{
						String: String
					}
				}
			],
			Meta: 
			{
				String: String
			}
		}
	}
]