| Requires any of the roles: | Client, Admin, Partner |
| PUT | /payment_rewards/{Id} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@DataContract
public static class PaymentRewardsEdit
{
@DataMember(Order=1)
@Validate(Validator="NotNull")
public Long Id = null;
@DataMember(Order=2)
@Validate(Validator="NotNull")
public Integer TenantsId = null;
@DataMember(Order=3)
@Validate(Validator="NotNull")
public Long PaymentActionsId = null;
@DataMember(Order=4)
@Validate(Validator="NotNull")
public String Reward = null;
public Long getId() { return Id; }
public PaymentRewardsEdit setId(Long value) { this.Id = value; return this; }
public Integer getTenantsId() { return TenantsId; }
public PaymentRewardsEdit setTenantsId(Integer value) { this.TenantsId = value; return this; }
public Long getPaymentActionsId() { return PaymentActionsId; }
public PaymentRewardsEdit setPaymentActionsId(Long value) { this.PaymentActionsId = value; return this; }
public String getReward() { return Reward; }
public PaymentRewardsEdit setReward(String value) { this.Reward = value; return this; }
}
public static class PaymentRewardsEditResponse
{
@DataMember(Order=1)
public Long Id = null;
@DataMember(Order=2)
public Integer TenantsId = null;
@DataMember(Order=3)
public Long PaymentActionsId = null;
@DataMember(Order=4)
public String Reward = null;
@DataMember(Order=6)
public ResponseStatus ResponseStatus = null;
public Long getId() { return Id; }
public PaymentRewardsEditResponse setId(Long value) { this.Id = value; return this; }
public Integer getTenantsId() { return TenantsId; }
public PaymentRewardsEditResponse setTenantsId(Integer value) { this.TenantsId = value; return this; }
public Long getPaymentActionsId() { return PaymentActionsId; }
public PaymentRewardsEditResponse setPaymentActionsId(Long value) { this.PaymentActionsId = value; return this; }
public String getReward() { return Reward; }
public PaymentRewardsEditResponse setReward(String value) { this.Reward = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PaymentRewardsEditResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /payment_rewards/{Id} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":0,"TenantsId":0,"PaymentActionsId":0,"Reward":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Id":0,"TenantsId":0,"PaymentActionsId":0,"Reward":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}