digitaluapi

<back to all web services

PaymentConditionsEdit

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
PUT/payment_conditions/{Id}
"use strict";
export class PaymentConditionsEditResponse {
    /** @param {{Id?:number,TenantsId?:number,PaymentActionsId?:number,DebtsField?:string,Operator?:string,Parameter1?:string,Parameter2?:string,ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Id;
    /** @type {number} */
    TenantsId;
    /** @type {number} */
    PaymentActionsId;
    /** @type {string} */
    DebtsField;
    /** @type {string} */
    Operator;
    /** @type {string} */
    Parameter1;
    /** @type {string} */
    Parameter2;
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class PaymentConditionsEdit {
    /** @param {{Id?:number,TenantsId?:number,PaymentActionsId?:number,DebtsField?:string,Operator?:string,Parameter1?:string,Parameter2?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Id;
    /** @type {number} */
    TenantsId;
    /** @type {number} */
    PaymentActionsId;
    /** @type {string} */
    DebtsField;
    /** @type {string} */
    Operator;
    /** @type {string} */
    Parameter1;
    /** @type {string} */
    Parameter2;
}

JavaScript PaymentConditionsEdit 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.

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

{
	Id: 0,
	TenantsId: 0,
	PaymentActionsId: 0,
	DebtsField: String,
	Operator: String,
	Parameter1: String,
	Parameter2: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	TenantsId: 0,
	PaymentActionsId: 0,
	DebtsField: String,
	Operator: String,
	Parameter1: String,
	Parameter2: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}