| Requires any of the roles: | Client, Admin, Partner |
| PUT | /payment_gateways/{Id} |
|---|
"use strict";
export class PaymentGatewaysEditResponse {
/** @param {{Id?:number,TenantsId?:number,PaymentActionsId?:number,Name?:string,ServiceKey?:string,NotifyUrl?:string,RedirectUrl?:string,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {number} */
TenantsId;
/** @type {number} */
PaymentActionsId;
/** @type {string} */
Name;
/** @type {string} */
ServiceKey;
/** @type {string} */
NotifyUrl;
/** @type {string} */
RedirectUrl;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class PaymentGatewaysEdit {
/** @param {{Id?:number,TenantsId?:number,PaymentActionsId?:number,Name?:string,ServiceKey?:string,NotifyUrl?:string,RedirectUrl?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {number} */
TenantsId;
/** @type {number} */
PaymentActionsId;
/** @type {string} */
Name;
/** @type {string} */
ServiceKey;
/** @type {string} */
NotifyUrl;
/** @type {string} */
RedirectUrl;
}
JavaScript PaymentGatewaysEdit 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_gateways/{Id} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Id":0,"TenantsId":0,"PaymentActionsId":0,"Name":"String","ServiceKey":"String","NotifyUrl":"String","RedirectUrl":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Id":0,"TenantsId":0,"PaymentActionsId":0,"Name":"String","ServiceKey":"String","NotifyUrl":"String","RedirectUrl":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}