| 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 java.io.InputStream;
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
{
/**
* List of all bookings associated with the customer
*/
@ApiMember(Description="List of all bookings associated with the customer")
public ArrayList<GDPRCustomerBookingsResponse> Bookings = new ArrayList<GDPRCustomerBookingsResponse>();
/**
* List of all message logs associated with the customer
*/
@ApiMember(Description="List of all message logs associated with the customer")
public ArrayList<GDPRCustomerMessageLogResponse> MessageLog = new ArrayList<GDPRCustomerMessageLogResponse>();
/**
* The user profile information for the customer
*/
@ApiMember(Description="The user profile information for the customer")
public UserProfileResponse UserProfile = null;
/**
* Detailed customer information
*/
@ApiMember(Description="Detailed customer information")
public GDPRCustomerInfoResponse Customer = null;
/**
* List of all comments associated with the customer
*/
@ApiMember(Description="List of all comments associated with the customer")
public ArrayList<GDPRCustomerCommentsResponse> CustomerComment = new ArrayList<GDPRCustomerCommentsResponse>();
/**
* List of all newsletter logs associated with the customer
*/
@ApiMember(Description="List of all newsletter logs associated with the customer")
public ArrayList<GDPRCustomerNewsletterLogResponse> NewsletterLog = new ArrayList<GDPRCustomerNewsletterLogResponse>();
/**
* Response status information
*/
@ApiMember(Description="Response status information")
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
{
/**
* The company ID associated with this booking
*/
@ApiMember(Description="The company ID associated with this booking")
public UUID CompanyId = null;
/**
* The unique identifier of the booking
*/
@ApiMember(Description="The unique identifier of the booking")
public Integer Id = null;
/**
* The customer ID associated with this booking
*/
@ApiMember(Description="The customer ID associated with this booking")
public UUID CustomerId = null;
/**
* The service ID for this booking
*/
@ApiMember(Description="The service ID for this booking")
public Integer ServiceId = null;
/**
* The current status of the booking
*/
@ApiMember(Description="The current status of the booking")
public Integer StatusId = null;
/**
* The start date and time of the booking
*/
@ApiMember(Description="The start date and time of the booking")
public Date From = null;
/**
* The end date and time of the booking
*/
@ApiMember(Description="The end date and time of the booking")
public Date To = null;
/**
* The date when the booking was cancelled or unbooked
*/
@ApiMember(Description="The date when the booking was cancelled or unbooked")
public Date UnbookedOn = null;
/**
* Comments added when the booking was cancelled
*/
@ApiMember(Description="Comments added when the booking was cancelled")
public String UnbookedComments = null;
/**
* Comments added when the booking was created
*/
@ApiMember(Description="Comments added when the booking was created")
public String BookedComments = null;
/**
* The name of the person who made the booking
*/
@ApiMember(Description="The name of the person who made the booking")
public String BookedBy = null;
/**
* General comments about the booking
*/
@ApiMember(Description="General comments about the booking")
public String Comments = null;
/**
* Custom text field 1
*/
@ApiMember(Description="Custom text field 1")
public String TextField1 = null;
/**
* Custom text field 2
*/
@ApiMember(Description="Custom text field 2")
public String TextField2 = null;
/**
* Custom text field 3
*/
@ApiMember(Description="Custom text field 3")
public String TextField3 = null;
/**
* Custom text field 4
*/
@ApiMember(Description="Custom text field 4")
public String TextField4 = null;
/**
* Custom text field 5
*/
@ApiMember(Description="Custom text field 5")
public String TextField5 = null;
/**
* Custom text field 6
*/
@ApiMember(Description="Custom text field 6")
public String TextField6 = null;
/**
* Custom text field 7
*/
@ApiMember(Description="Custom text field 7")
public String TextField7 = null;
/**
* Custom text field 8
*/
@ApiMember(Description="Custom text field 8")
public String TextField8 = null;
/**
* Custom text field 9
*/
@ApiMember(Description="Custom text field 9")
public String TextField9 = null;
/**
* Custom text field 10
*/
@ApiMember(Description="Custom text field 10")
public String TextField10 = null;
/**
* Custom text field 11
*/
@ApiMember(Description="Custom text field 11")
public String TextField11 = null;
/**
* Custom text field 12
*/
@ApiMember(Description="Custom text field 12")
public String TextField12 = null;
/**
* Custom text field 13
*/
@ApiMember(Description="Custom text field 13")
public String TextField13 = null;
/**
* Custom text field 14
*/
@ApiMember(Description="Custom text field 14")
public String TextField14 = null;
/**
* Custom text field 15
*/
@ApiMember(Description="Custom text field 15")
public String TextField15 = null;
/**
* Custom text field 16
*/
@ApiMember(Description="Custom text field 16")
public String TextField16 = null;
/**
* Custom text field 17
*/
@ApiMember(Description="Custom text field 17")
public String TextField17 = null;
/**
* Custom text field 18
*/
@ApiMember(Description="Custom text field 18")
public String TextField18 = null;
/**
* Custom text field 19
*/
@ApiMember(Description="Custom text field 19")
public String TextField19 = null;
/**
* Custom text field 20
*/
@ApiMember(Description="Custom text field 20")
public String TextField20 = null;
/**
* The date when the booking was last updated
*/
@ApiMember(Description="The date when the booking was last updated")
public Date UpdatedDate = null;
/**
* The date when the booking was created
*/
@ApiMember(Description="The date when the booking was created")
public Date CreatedDate = null;
/**
* Comments sent to the customer about this booking
*/
@ApiMember(Description="Comments sent to the customer about this booking")
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
{
/**
* The company ID associated with this message
*/
@ApiMember(Description="The company ID associated with this message")
public UUID CompanyId = null;
/**
* The unique identifier of the message
*/
@ApiMember(Description="The unique identifier of the message")
public Integer Id = null;
/**
* The booking ID this message is related to, if any
*/
@ApiMember(Description="The booking ID this message is related to, if any")
public Integer BookingId = null;
/**
* The recipient of the message
*/
@ApiMember(Description="The recipient of the message")
public String Receiver = null;
/**
* The sender of the message
*/
@ApiMember(Description="The sender of the message")
public String Sender = null;
/**
* The title or subject of the message
*/
@ApiMember(Description="The title or subject of the message")
public String MessageTitle = null;
/**
* The body content of the message
*/
@ApiMember(Description="The body content of the message")
public String MessageBody = null;
/**
* The name of the person who created the message
*/
@ApiMember(Description="The name of the person who created the message")
public String CreatedBy = null;
/**
* The date when the message was created
*/
@ApiMember(Description="The date when the message was created")
public Date Created = null;
/**
* Whether the message was successfully sent
*/
@ApiMember(Description="Whether the message was successfully sent")
public Boolean Sent = null;
/**
* The date when the message was sent
*/
@ApiMember(Description="The date when the message was sent")
public Date SentDate = null;
/**
* The method used to send the message (e.g., email, SMS)
*/
@ApiMember(Description="The method used to send the message (e.g., email, SMS)")
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 InvoiceAddressResponse InvoiceAddress = 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 InvoiceAddressResponse getInvoiceAddress() { return InvoiceAddress; }
public UserProfileResponse setInvoiceAddress(InvoiceAddressResponse value) { this.InvoiceAddress = value; return this; }
}
public static class InvoiceAddressResponse
{
public UUID InvoiceAddressId = null;
public UUID UserId = null;
public String CorporateIdentityNumber = null;
public String InvoiceAddress1 = null;
public String InvoiceAddress2 = null;
public String InvoiceCity = null;
public String InvoicePostalCode = null;
public String InvoiceCountryCode = null;
public UUID getInvoiceAddressId() { return InvoiceAddressId; }
public InvoiceAddressResponse setInvoiceAddressId(UUID value) { this.InvoiceAddressId = value; return this; }
public UUID getUserId() { return UserId; }
public InvoiceAddressResponse setUserId(UUID value) { this.UserId = value; return this; }
public String getCorporateIdentityNumber() { return CorporateIdentityNumber; }
public InvoiceAddressResponse setCorporateIdentityNumber(String value) { this.CorporateIdentityNumber = value; return this; }
public String getInvoiceAddress1() { return InvoiceAddress1; }
public InvoiceAddressResponse setInvoiceAddress1(String value) { this.InvoiceAddress1 = value; return this; }
public String getInvoiceAddress2() { return InvoiceAddress2; }
public InvoiceAddressResponse setInvoiceAddress2(String value) { this.InvoiceAddress2 = value; return this; }
public String getInvoiceCity() { return InvoiceCity; }
public InvoiceAddressResponse setInvoiceCity(String value) { this.InvoiceCity = value; return this; }
public String getInvoicePostalCode() { return InvoicePostalCode; }
public InvoiceAddressResponse setInvoicePostalCode(String value) { this.InvoicePostalCode = value; return this; }
public String getInvoiceCountryCode() { return InvoiceCountryCode; }
public InvoiceAddressResponse setInvoiceCountryCode(String value) { this.InvoiceCountryCode = value; return this; }
}
public static class GDPRCustomerInfoResponse
{
/**
* The unique identifier of the user
*/
@ApiMember(Description="The unique identifier of the user")
public UUID UserId = null;
/**
* The user's first name
*/
@ApiMember(Description="The user's first name")
public String Firstname = null;
/**
* The user's last name
*/
@ApiMember(Description="The user's last name")
public String Lastname = null;
/**
* The user's phone number
*/
@ApiMember(Description="The user's phone number")
public String Phone = null;
/**
* The user's email address
*/
@ApiMember(Description="The user's email address")
public String Email = null;
/**
* Whether the user account is currently active
*/
@ApiMember(Description="Whether the user account is currently active")
public Boolean Active = null;
/**
* The user's Facebook username
*/
@ApiMember(Description="The user's Facebook username")
public String FacebookUsername = null;
/**
* Custom text field 1
*/
@ApiMember(Description="Custom text field 1")
public String TextField1 = null;
/**
* Custom text field 2
*/
@ApiMember(Description="Custom text field 2")
public String TextField2 = null;
/**
* Custom text field 3
*/
@ApiMember(Description="Custom text field 3")
public String TextField3 = null;
/**
* Custom text field 4
*/
@ApiMember(Description="Custom text field 4")
public String TextField4 = null;
/**
* Custom text field 5
*/
@ApiMember(Description="Custom text field 5")
public String TextField5 = null;
/**
* Custom text field 6
*/
@ApiMember(Description="Custom text field 6")
public String TextField6 = null;
/**
* Custom text field 7
*/
@ApiMember(Description="Custom text field 7")
public String TextField7 = null;
/**
* Custom text field 8
*/
@ApiMember(Description="Custom text field 8")
public String TextField8 = null;
/**
* Custom text field 9
*/
@ApiMember(Description="Custom text field 9")
public String TextField9 = null;
/**
* Custom text field 10
*/
@ApiMember(Description="Custom text field 10")
public String TextField10 = null;
/**
* Custom text field 11
*/
@ApiMember(Description="Custom text field 11")
public String TextField11 = null;
/**
* Custom text field 12
*/
@ApiMember(Description="Custom text field 12")
public String TextField12 = null;
/**
* Custom text field 13
*/
@ApiMember(Description="Custom text field 13")
public String TextField13 = null;
/**
* Custom text field 14
*/
@ApiMember(Description="Custom text field 14")
public String TextField14 = null;
/**
* Custom text field 15
*/
@ApiMember(Description="Custom text field 15")
public String TextField15 = null;
/**
* Custom text field 16
*/
@ApiMember(Description="Custom text field 16")
public String TextField16 = null;
/**
* Custom text field 17
*/
@ApiMember(Description="Custom text field 17")
public String TextField17 = null;
/**
* Custom text field 18
*/
@ApiMember(Description="Custom text field 18")
public String TextField18 = null;
/**
* Custom text field 19
*/
@ApiMember(Description="Custom text field 19")
public String TextField19 = null;
/**
* Custom text field 20
*/
@ApiMember(Description="Custom text field 20")
public String TextField20 = null;
/**
* The date when the customer information was last updated
*/
@ApiMember(Description="The date when the customer information was last updated")
public Date Updated = null;
/**
* The date when the customer information was created
*/
@ApiMember(Description="The date when the customer information was created")
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
{
/**
* The company ID associated with this comment
*/
@ApiMember(Description="The company ID associated with this comment")
public UUID CompanyId = null;
/**
* The unique identifier of the comment
*/
@ApiMember(Description="The unique identifier of the comment")
public Integer Id = null;
/**
* The customer ID this comment is associated with
*/
@ApiMember(Description="The customer ID this comment is associated with")
public UUID CustomerId = null;
/**
* The content of the comment
*/
@ApiMember(Description="The content of the comment")
public String Comments = null;
/**
* The date when the comment was last updated
*/
@ApiMember(Description="The date when the comment was last updated")
public Date Updated = null;
/**
* The date when the comment was created
*/
@ApiMember(Description="The date when the comment was created")
public Date Created = null;
/**
* URL to any image associated with the comment
*/
@ApiMember(Description="URL to any image associated with the comment")
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
{
/**
* The company ID associated with this newsletter
*/
@ApiMember(Description="The company ID associated with this newsletter")
public UUID CompanyId = null;
/**
* The unique identifier of the newsletter log entry
*/
@ApiMember(Description="The unique identifier of the newsletter log entry")
public Integer Id = null;
/**
* The newsletter ID this log entry is related to, if any
*/
@ApiMember(Description="The newsletter ID this log entry is related to, if any")
public Integer NewslettersId = null;
/**
* The recipient of the newsletter
*/
@ApiMember(Description="The recipient of the newsletter")
public String Receiver = null;
/**
* The sender of the newsletter
*/
@ApiMember(Description="The sender of the newsletter")
public String Sender = null;
/**
* The title or subject of the newsletter
*/
@ApiMember(Description="The title or subject of the newsletter")
public String MessageTitle = null;
/**
* The body content of the newsletter
*/
@ApiMember(Description="The body content of the newsletter")
public String MessageBody = null;
/**
* Whether the newsletter was successfully sent
*/
@ApiMember(Description="Whether the newsletter was successfully sent")
public Boolean Sent = null;
/**
* The date when the newsletter was created
*/
@ApiMember(Description="The date when the newsletter was created")
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 .xml suffix or ?format=xml
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.bookmore.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GDPRCustomerQueryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
<Bookings>
<GDPRCustomerBookingsResponse>
<BookedBy>String</BookedBy>
<BookedComments>String</BookedComments>
<Comments>String</Comments>
<CommentsToCustomer>String</CommentsToCustomer>
<CompanyId>00000000-0000-0000-0000-000000000000</CompanyId>
<CreatedDate>0001-01-01T00:00:00</CreatedDate>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<From>0001-01-01T00:00:00</From>
<Id>0</Id>
<ServiceId>0</ServiceId>
<StatusId>0</StatusId>
<TextField1>String</TextField1>
<TextField10>String</TextField10>
<TextField11>String</TextField11>
<TextField12>String</TextField12>
<TextField13>String</TextField13>
<TextField14>String</TextField14>
<TextField15>String</TextField15>
<TextField16>String</TextField16>
<TextField17>String</TextField17>
<TextField18>String</TextField18>
<TextField19>String</TextField19>
<TextField2>String</TextField2>
<TextField20>String</TextField20>
<TextField3>String</TextField3>
<TextField4>String</TextField4>
<TextField5>String</TextField5>
<TextField6>String</TextField6>
<TextField7>String</TextField7>
<TextField8>String</TextField8>
<TextField9>String</TextField9>
<To>0001-01-01T00:00:00</To>
<UnbookedComments>String</UnbookedComments>
<UnbookedOn>0001-01-01T00:00:00</UnbookedOn>
<UpdatedDate>0001-01-01T00:00:00</UpdatedDate>
</GDPRCustomerBookingsResponse>
</Bookings>
<Customer>
<Active>false</Active>
<Created>0001-01-01T00:00:00</Created>
<Email>String</Email>
<FacebookUsername>String</FacebookUsername>
<Firstname>String</Firstname>
<Lastname>String</Lastname>
<Phone>String</Phone>
<TextField1>String</TextField1>
<TextField10>String</TextField10>
<TextField11>String</TextField11>
<TextField12>String</TextField12>
<TextField13>String</TextField13>
<TextField14>String</TextField14>
<TextField15>String</TextField15>
<TextField16>String</TextField16>
<TextField17>String</TextField17>
<TextField18>String</TextField18>
<TextField19>String</TextField19>
<TextField2>String</TextField2>
<TextField20>String</TextField20>
<TextField3>String</TextField3>
<TextField4>String</TextField4>
<TextField5>String</TextField5>
<TextField6>String</TextField6>
<TextField7>String</TextField7>
<TextField8>String</TextField8>
<TextField9>String</TextField9>
<Updated>0001-01-01T00:00:00</Updated>
<UserId>00000000-0000-0000-0000-000000000000</UserId>
</Customer>
<CustomerComment>
<GDPRCustomerCommentsResponse>
<Comments>String</Comments>
<CompanyId>00000000-0000-0000-0000-000000000000</CompanyId>
<Created>0001-01-01T00:00:00</Created>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<Id>0</Id>
<ImageUrl i:nil="true" />
<Updated>0001-01-01T00:00:00</Updated>
</GDPRCustomerCommentsResponse>
</CustomerComment>
<MessageLog>
<GDPRCustomerMessageLogResponse>
<BookingId>0</BookingId>
<CompanyId>00000000-0000-0000-0000-000000000000</CompanyId>
<Created>0001-01-01T00:00:00</Created>
<CreatedBy>String</CreatedBy>
<Id>0</Id>
<MessageBody>String</MessageBody>
<MessageTitle>String</MessageTitle>
<Receiver>String</Receiver>
<SendMethodId>0</SendMethodId>
<Sender>String</Sender>
<Sent>false</Sent>
<SentDate>0001-01-01T00:00:00</SentDate>
</GDPRCustomerMessageLogResponse>
</MessageLog>
<NewsletterLog>
<GDPRCustomerNewsletterLogResponse>
<CompanyId>00000000-0000-0000-0000-000000000000</CompanyId>
<Created>0001-01-01T00:00:00</Created>
<Id>0</Id>
<MessageBody>String</MessageBody>
<MessageTitle>String</MessageTitle>
<NewslettersId>0</NewslettersId>
<Receiver>String</Receiver>
<Sender>String</Sender>
<Sent>false</Sent>
</GDPRCustomerNewsletterLogResponse>
</NewsletterLog>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<UserProfile>
<Email>String</Email>
<Firstname>String</Firstname>
<Id>00000000-0000-0000-0000-000000000000</Id>
<InvoiceAddress>
<CorporateIdentityNumber>String</CorporateIdentityNumber>
<InvoiceAddress1>String</InvoiceAddress1>
<InvoiceAddress2>String</InvoiceAddress2>
<InvoiceAddressId>00000000-0000-0000-0000-000000000000</InvoiceAddressId>
<InvoiceCity>String</InvoiceCity>
<InvoiceCountryCode>String</InvoiceCountryCode>
<InvoicePostalCode>String</InvoicePostalCode>
<UserId>00000000-0000-0000-0000-000000000000</UserId>
</InvoiceAddress>
<Lastname>String</Lastname>
<Phone>String</Phone>
</UserProfile>
</GDPRCustomerQueryResponse>