Requires any of the roles: | bookingsupplier-administrator-write, superadmin, bookingsupplier-administrator-read |
GET | /gdpr/customers/{CustomerId} | Get all customer information stored on the customer | Get all information stored on the customer |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
@ValidateRequest(Validator="IsAuthenticated")
public static class GDPRCustomerQuery implements ICompany
{
/**
* Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown
*/
@ApiMember(Description="Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown ", IsRequired=true, ParameterType="query")
public UUID CompanyId = null;
/**
* Id of the customer
*/
@ApiMember(Description="Id of the customer", IsRequired=true, ParameterType="path")
public UUID CustomerId = null;
public UUID getCompanyId() { return CompanyId; }
public GDPRCustomerQuery setCompanyId(UUID value) { this.CompanyId = value; return this; }
public UUID getCustomerId() { return CustomerId; }
public GDPRCustomerQuery setCustomerId(UUID value) { this.CustomerId = value; return this; }
}
public static class GDPRCustomerQueryResponse
{
public ArrayList<GDPRCustomerBookingsResponse> Bookings = null;
public ArrayList<GDPRCustomerMessageLogResponse> MessageLog = null;
public UserProfileResponse UserProfile = null;
public GDPRCustomerInfoResponse Customer = null;
public ArrayList<GDPRCustomerCommentsResponse> CustomerComment = null;
public ArrayList<GDPRCustomerNewsletterLogResponse> NewsletterLog = null;
public ResponseStatus ResponseStatus = null;
public ArrayList<GDPRCustomerBookingsResponse> getBookings() { return Bookings; }
public GDPRCustomerQueryResponse setBookings(ArrayList<GDPRCustomerBookingsResponse> value) { this.Bookings = value; return this; }
public ArrayList<GDPRCustomerMessageLogResponse> getMessageLog() { return MessageLog; }
public GDPRCustomerQueryResponse setMessageLog(ArrayList<GDPRCustomerMessageLogResponse> value) { this.MessageLog = value; return this; }
public UserProfileResponse getUserProfile() { return UserProfile; }
public GDPRCustomerQueryResponse setUserProfile(UserProfileResponse value) { this.UserProfile = value; return this; }
public GDPRCustomerInfoResponse getCustomer() { return Customer; }
public GDPRCustomerQueryResponse setCustomer(GDPRCustomerInfoResponse value) { this.Customer = value; return this; }
public ArrayList<GDPRCustomerCommentsResponse> getCustomerComment() { return CustomerComment; }
public GDPRCustomerQueryResponse setCustomerComment(ArrayList<GDPRCustomerCommentsResponse> value) { this.CustomerComment = value; return this; }
public ArrayList<GDPRCustomerNewsletterLogResponse> getNewsletterLog() { return NewsletterLog; }
public GDPRCustomerQueryResponse setNewsletterLog(ArrayList<GDPRCustomerNewsletterLogResponse> value) { this.NewsletterLog = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public GDPRCustomerQueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class GDPRCustomerBookingsResponse
{
public UUID CompanyId = null;
public Integer Id = null;
public UUID CustomerId = null;
public Integer ServiceId = null;
public Integer StatusId = null;
public Date From = null;
public Date To = null;
public Date UnbookedOn = null;
public String UnbookedComments = null;
public String BookedComments = null;
public String BookedBy = null;
public String Comments = null;
public String TextField1 = null;
public String TextField2 = null;
public String TextField3 = null;
public String TextField4 = null;
public String TextField5 = null;
public String TextField6 = null;
public String TextField7 = null;
public String TextField8 = null;
public String TextField9 = null;
public String TextField10 = null;
public String TextField11 = null;
public String TextField12 = null;
public String TextField13 = null;
public String TextField14 = null;
public String TextField15 = null;
public String TextField16 = null;
public String TextField17 = null;
public String TextField18 = null;
public String TextField19 = null;
public String TextField20 = null;
public Date UpdatedDate = null;
public Date CreatedDate = null;
public String CommentsToCustomer = null;
public UUID getCompanyId() { return CompanyId; }
public GDPRCustomerBookingsResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getId() { return Id; }
public GDPRCustomerBookingsResponse setId(Integer value) { this.Id = value; return this; }
public UUID getCustomerId() { return CustomerId; }
public GDPRCustomerBookingsResponse setCustomerId(UUID value) { this.CustomerId = value; return this; }
public Integer getServiceId() { return ServiceId; }
public GDPRCustomerBookingsResponse setServiceId(Integer value) { this.ServiceId = value; return this; }
public Integer getStatusId() { return StatusId; }
public GDPRCustomerBookingsResponse setStatusId(Integer value) { this.StatusId = value; return this; }
public Date getFrom() { return From; }
public GDPRCustomerBookingsResponse setFrom(Date value) { this.From = value; return this; }
public Date getTo() { return To; }
public GDPRCustomerBookingsResponse setTo(Date value) { this.To = value; return this; }
public Date getUnbookedOn() { return UnbookedOn; }
public GDPRCustomerBookingsResponse setUnbookedOn(Date value) { this.UnbookedOn = value; return this; }
public String getUnbookedComments() { return UnbookedComments; }
public GDPRCustomerBookingsResponse setUnbookedComments(String value) { this.UnbookedComments = value; return this; }
public String getBookedComments() { return BookedComments; }
public GDPRCustomerBookingsResponse setBookedComments(String value) { this.BookedComments = value; return this; }
public String getBookedBy() { return BookedBy; }
public GDPRCustomerBookingsResponse setBookedBy(String value) { this.BookedBy = value; return this; }
public String getComments() { return Comments; }
public GDPRCustomerBookingsResponse setComments(String value) { this.Comments = value; return this; }
public String getTextField1() { return TextField1; }
public GDPRCustomerBookingsResponse setTextField1(String value) { this.TextField1 = value; return this; }
public String getTextField2() { return TextField2; }
public GDPRCustomerBookingsResponse setTextField2(String value) { this.TextField2 = value; return this; }
public String getTextField3() { return TextField3; }
public GDPRCustomerBookingsResponse setTextField3(String value) { this.TextField3 = value; return this; }
public String getTextField4() { return TextField4; }
public GDPRCustomerBookingsResponse setTextField4(String value) { this.TextField4 = value; return this; }
public String getTextField5() { return TextField5; }
public GDPRCustomerBookingsResponse setTextField5(String value) { this.TextField5 = value; return this; }
public String getTextField6() { return TextField6; }
public GDPRCustomerBookingsResponse setTextField6(String value) { this.TextField6 = value; return this; }
public String getTextField7() { return TextField7; }
public GDPRCustomerBookingsResponse setTextField7(String value) { this.TextField7 = value; return this; }
public String getTextField8() { return TextField8; }
public GDPRCustomerBookingsResponse setTextField8(String value) { this.TextField8 = value; return this; }
public String getTextField9() { return TextField9; }
public GDPRCustomerBookingsResponse setTextField9(String value) { this.TextField9 = value; return this; }
public String getTextField10() { return TextField10; }
public GDPRCustomerBookingsResponse setTextField10(String value) { this.TextField10 = value; return this; }
public String getTextField11() { return TextField11; }
public GDPRCustomerBookingsResponse setTextField11(String value) { this.TextField11 = value; return this; }
public String getTextField12() { return TextField12; }
public GDPRCustomerBookingsResponse setTextField12(String value) { this.TextField12 = value; return this; }
public String getTextField13() { return TextField13; }
public GDPRCustomerBookingsResponse setTextField13(String value) { this.TextField13 = value; return this; }
public String getTextField14() { return TextField14; }
public GDPRCustomerBookingsResponse setTextField14(String value) { this.TextField14 = value; return this; }
public String getTextField15() { return TextField15; }
public GDPRCustomerBookingsResponse setTextField15(String value) { this.TextField15 = value; return this; }
public String getTextField16() { return TextField16; }
public GDPRCustomerBookingsResponse setTextField16(String value) { this.TextField16 = value; return this; }
public String getTextField17() { return TextField17; }
public GDPRCustomerBookingsResponse setTextField17(String value) { this.TextField17 = value; return this; }
public String getTextField18() { return TextField18; }
public GDPRCustomerBookingsResponse setTextField18(String value) { this.TextField18 = value; return this; }
public String getTextField19() { return TextField19; }
public GDPRCustomerBookingsResponse setTextField19(String value) { this.TextField19 = value; return this; }
public String getTextField20() { return TextField20; }
public GDPRCustomerBookingsResponse setTextField20(String value) { this.TextField20 = value; return this; }
public Date getUpdatedDate() { return UpdatedDate; }
public GDPRCustomerBookingsResponse setUpdatedDate(Date value) { this.UpdatedDate = value; return this; }
public Date getCreatedDate() { return CreatedDate; }
public GDPRCustomerBookingsResponse setCreatedDate(Date value) { this.CreatedDate = value; return this; }
public String getCommentsToCustomer() { return CommentsToCustomer; }
public GDPRCustomerBookingsResponse setCommentsToCustomer(String value) { this.CommentsToCustomer = value; return this; }
}
public static class GDPRCustomerMessageLogResponse
{
public UUID CompanyId = null;
public Integer Id = null;
public Integer BookingId = null;
public String Receiver = null;
public String Sender = null;
public String MessageTitle = null;
public String MessageBody = null;
public String CreatedBy = null;
public Date Created = null;
public Boolean Sent = null;
public Date SentDate = null;
public Integer SendMethodId = null;
public UUID getCompanyId() { return CompanyId; }
public GDPRCustomerMessageLogResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getId() { return Id; }
public GDPRCustomerMessageLogResponse setId(Integer value) { this.Id = value; return this; }
public Integer getBookingId() { return BookingId; }
public GDPRCustomerMessageLogResponse setBookingId(Integer value) { this.BookingId = value; return this; }
public String getReceiver() { return Receiver; }
public GDPRCustomerMessageLogResponse setReceiver(String value) { this.Receiver = value; return this; }
public String getSender() { return Sender; }
public GDPRCustomerMessageLogResponse setSender(String value) { this.Sender = value; return this; }
public String getMessageTitle() { return MessageTitle; }
public GDPRCustomerMessageLogResponse setMessageTitle(String value) { this.MessageTitle = value; return this; }
public String getMessageBody() { return MessageBody; }
public GDPRCustomerMessageLogResponse setMessageBody(String value) { this.MessageBody = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public GDPRCustomerMessageLogResponse setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreated() { return Created; }
public GDPRCustomerMessageLogResponse setCreated(Date value) { this.Created = value; return this; }
public Boolean isSent() { return Sent; }
public GDPRCustomerMessageLogResponse setSent(Boolean value) { this.Sent = value; return this; }
public Date getSentDate() { return SentDate; }
public GDPRCustomerMessageLogResponse setSentDate(Date value) { this.SentDate = value; return this; }
public Integer getSendMethodId() { return SendMethodId; }
public GDPRCustomerMessageLogResponse setSendMethodId(Integer value) { this.SendMethodId = value; return this; }
}
public static class UserProfileResponse
{
public UUID Id = null;
public String Firstname = null;
public String Lastname = null;
public String Phone = null;
public String Email = null;
public UUID getId() { return Id; }
public UserProfileResponse setId(UUID value) { this.Id = value; return this; }
public String getFirstname() { return Firstname; }
public UserProfileResponse setFirstname(String value) { this.Firstname = value; return this; }
public String getLastname() { return Lastname; }
public UserProfileResponse setLastname(String value) { this.Lastname = value; return this; }
public String getPhone() { return Phone; }
public UserProfileResponse setPhone(String value) { this.Phone = value; return this; }
public String getEmail() { return Email; }
public UserProfileResponse setEmail(String value) { this.Email = value; return this; }
}
public static class GDPRCustomerInfoResponse
{
public UUID UserId = null;
public String Firstname = null;
public String Lastname = null;
public String Phone = null;
public String Email = null;
public Boolean Active = null;
public String FacebookUsername = null;
public String TextField1 = null;
public String TextField2 = null;
public String TextField3 = null;
public String TextField4 = null;
public String TextField5 = null;
public String TextField6 = null;
public String TextField7 = null;
public String TextField8 = null;
public String TextField9 = null;
public String TextField10 = null;
public String TextField11 = null;
public String TextField12 = null;
public String TextField13 = null;
public String TextField14 = null;
public String TextField15 = null;
public String TextField16 = null;
public String TextField17 = null;
public String TextField18 = null;
public String TextField19 = null;
public String TextField20 = null;
public Date Updated = null;
public Date Created = null;
public UUID getUserId() { return UserId; }
public GDPRCustomerInfoResponse setUserId(UUID value) { this.UserId = value; return this; }
public String getFirstname() { return Firstname; }
public GDPRCustomerInfoResponse setFirstname(String value) { this.Firstname = value; return this; }
public String getLastname() { return Lastname; }
public GDPRCustomerInfoResponse setLastname(String value) { this.Lastname = value; return this; }
public String getPhone() { return Phone; }
public GDPRCustomerInfoResponse setPhone(String value) { this.Phone = value; return this; }
public String getEmail() { return Email; }
public GDPRCustomerInfoResponse setEmail(String value) { this.Email = value; return this; }
public Boolean isActive() { return Active; }
public GDPRCustomerInfoResponse setActive(Boolean value) { this.Active = value; return this; }
public String getFacebookUsername() { return FacebookUsername; }
public GDPRCustomerInfoResponse setFacebookUsername(String value) { this.FacebookUsername = value; return this; }
public String getTextField1() { return TextField1; }
public GDPRCustomerInfoResponse setTextField1(String value) { this.TextField1 = value; return this; }
public String getTextField2() { return TextField2; }
public GDPRCustomerInfoResponse setTextField2(String value) { this.TextField2 = value; return this; }
public String getTextField3() { return TextField3; }
public GDPRCustomerInfoResponse setTextField3(String value) { this.TextField3 = value; return this; }
public String getTextField4() { return TextField4; }
public GDPRCustomerInfoResponse setTextField4(String value) { this.TextField4 = value; return this; }
public String getTextField5() { return TextField5; }
public GDPRCustomerInfoResponse setTextField5(String value) { this.TextField5 = value; return this; }
public String getTextField6() { return TextField6; }
public GDPRCustomerInfoResponse setTextField6(String value) { this.TextField6 = value; return this; }
public String getTextField7() { return TextField7; }
public GDPRCustomerInfoResponse setTextField7(String value) { this.TextField7 = value; return this; }
public String getTextField8() { return TextField8; }
public GDPRCustomerInfoResponse setTextField8(String value) { this.TextField8 = value; return this; }
public String getTextField9() { return TextField9; }
public GDPRCustomerInfoResponse setTextField9(String value) { this.TextField9 = value; return this; }
public String getTextField10() { return TextField10; }
public GDPRCustomerInfoResponse setTextField10(String value) { this.TextField10 = value; return this; }
public String getTextField11() { return TextField11; }
public GDPRCustomerInfoResponse setTextField11(String value) { this.TextField11 = value; return this; }
public String getTextField12() { return TextField12; }
public GDPRCustomerInfoResponse setTextField12(String value) { this.TextField12 = value; return this; }
public String getTextField13() { return TextField13; }
public GDPRCustomerInfoResponse setTextField13(String value) { this.TextField13 = value; return this; }
public String getTextField14() { return TextField14; }
public GDPRCustomerInfoResponse setTextField14(String value) { this.TextField14 = value; return this; }
public String getTextField15() { return TextField15; }
public GDPRCustomerInfoResponse setTextField15(String value) { this.TextField15 = value; return this; }
public String getTextField16() { return TextField16; }
public GDPRCustomerInfoResponse setTextField16(String value) { this.TextField16 = value; return this; }
public String getTextField17() { return TextField17; }
public GDPRCustomerInfoResponse setTextField17(String value) { this.TextField17 = value; return this; }
public String getTextField18() { return TextField18; }
public GDPRCustomerInfoResponse setTextField18(String value) { this.TextField18 = value; return this; }
public String getTextField19() { return TextField19; }
public GDPRCustomerInfoResponse setTextField19(String value) { this.TextField19 = value; return this; }
public String getTextField20() { return TextField20; }
public GDPRCustomerInfoResponse setTextField20(String value) { this.TextField20 = value; return this; }
public Date getUpdated() { return Updated; }
public GDPRCustomerInfoResponse setUpdated(Date value) { this.Updated = value; return this; }
public Date getCreated() { return Created; }
public GDPRCustomerInfoResponse setCreated(Date value) { this.Created = value; return this; }
}
public static class GDPRCustomerCommentsResponse
{
public UUID CompanyId = null;
public Integer Id = null;
public UUID CustomerId = null;
public String Comments = null;
public Date Updated = null;
public Date Created = null;
public Uri ImageUrl = null;
public UUID getCompanyId() { return CompanyId; }
public GDPRCustomerCommentsResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getId() { return Id; }
public GDPRCustomerCommentsResponse setId(Integer value) { this.Id = value; return this; }
public UUID getCustomerId() { return CustomerId; }
public GDPRCustomerCommentsResponse setCustomerId(UUID value) { this.CustomerId = value; return this; }
public String getComments() { return Comments; }
public GDPRCustomerCommentsResponse setComments(String value) { this.Comments = value; return this; }
public Date getUpdated() { return Updated; }
public GDPRCustomerCommentsResponse setUpdated(Date value) { this.Updated = value; return this; }
public Date getCreated() { return Created; }
public GDPRCustomerCommentsResponse setCreated(Date value) { this.Created = value; return this; }
public Uri getImageUrl() { return ImageUrl; }
public GDPRCustomerCommentsResponse setImageUrl(Uri value) { this.ImageUrl = value; return this; }
}
public static class GDPRCustomerNewsletterLogResponse
{
public UUID CompanyId = null;
public Integer Id = null;
public Integer NewslettersId = null;
public String Receiver = null;
public String Sender = null;
public String MessageTitle = null;
public String MessageBody = null;
public Boolean Sent = null;
public Date Created = null;
public UUID getCompanyId() { return CompanyId; }
public GDPRCustomerNewsletterLogResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getId() { return Id; }
public GDPRCustomerNewsletterLogResponse setId(Integer value) { this.Id = value; return this; }
public Integer getNewslettersId() { return NewslettersId; }
public GDPRCustomerNewsletterLogResponse setNewslettersId(Integer value) { this.NewslettersId = value; return this; }
public String getReceiver() { return Receiver; }
public GDPRCustomerNewsletterLogResponse setReceiver(String value) { this.Receiver = value; return this; }
public String getSender() { return Sender; }
public GDPRCustomerNewsletterLogResponse setSender(String value) { this.Sender = value; return this; }
public String getMessageTitle() { return MessageTitle; }
public GDPRCustomerNewsletterLogResponse setMessageTitle(String value) { this.MessageTitle = value; return this; }
public String getMessageBody() { return MessageBody; }
public GDPRCustomerNewsletterLogResponse setMessageBody(String value) { this.MessageBody = value; return this; }
public Boolean isSent() { return Sent; }
public GDPRCustomerNewsletterLogResponse setSent(Boolean value) { this.Sent = value; return this; }
public Date getCreated() { return Created; }
public GDPRCustomerNewsletterLogResponse setCreated(Date value) { this.Created = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /gdpr/customers/{CustomerId} HTTP/1.1 Host: api.bokamera.se Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Bookings: [ { Id: 0, ServiceId: 0, StatusId: 0, UnbookedOn: "0001-01-01T00:00:00", UnbookedComments: String, BookedComments: String, BookedBy: String, Comments: String, TextField1: String, TextField2: String, TextField3: String, TextField4: String, TextField5: String, TextField6: String, TextField7: String, TextField8: String, TextField9: String, TextField10: String, TextField11: String, TextField12: String, TextField13: String, TextField14: String, TextField15: String, TextField16: String, TextField17: String, TextField18: String, TextField19: String, TextField20: String, CommentsToCustomer: String } ], MessageLog: [ { Id: 0, BookingId: 0, Receiver: String, Sender: String, MessageTitle: String, MessageBody: String, CreatedBy: String, Sent: False, SentDate: "0001-01-01T00:00:00", SendMethodId: 0 } ], UserProfile: { Firstname: String, Lastname: String, Phone: String, Email: String }, Customer: { Firstname: String, Lastname: String, Phone: String, Email: String, Active: False, FacebookUsername: String, TextField1: String, TextField2: String, TextField3: String, TextField4: String, TextField5: String, TextField6: String, TextField7: String, TextField8: String, TextField9: String, TextField10: String, TextField11: String, TextField12: String, TextField13: String, TextField14: String, TextField15: String, TextField16: String, TextField17: String, TextField18: String, TextField19: String, TextField20: String }, CustomerComment: [ { Id: 0, Comments: String } ], NewsletterLog: [ { Id: 0, NewslettersId: 0, Receiver: String, Sender: String, MessageTitle: String, MessageBody: String, Sent: False } ], ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } } }